Bug 64252

Summary: Enable printing configure arguments
Product: Ports & Packages Reporter: Gautam Gopalakrishnan <ggop>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
configure.patch none

Description Gautam Gopalakrishnan 2004-03-14 09:40:06 UTC
While sending bug reports, it's useful to know the build arguments
passed to the configure script. Some (like vim) support getting
their compile time options, but most others don't.  This patch will
print the arguments and environment of configure. So if we remember
the WITH_ and WITHOUT_ arguments used, we can get the information
needed (only relevant bits shown here)

$ cd /usr/ports/x11-toolkits/gtk20
$ make PRINT_CONFIGURE_ARGS=yes
===>  Configuring for gtk-2.2.4_2
===> With environment: 'CPPFLAGS=-I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include LDFLAGS=-L/usr/local/lib -L/usr/X11R6/lib SHELL=/bin/sh CONFIG_SHELL=/bin/sh PORTOBJFORMAT=elf PATH=/usr/local/libexec/libtool13:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/home/ggop/bin lt_cv_sys_max_cmd_len=65536'
===> With arguments: '--enable-static --with-xinput=yes --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --prefix=/usr/X11R6 --build=i386-portbld-freebsd5.2.1'


$ cd /usr/ports/www/mozilla-devel
$ make WITHOUT_MAILNEWS=yes PRINT_CONFIGURE_ARGS=yes
===>  Configuring for mozilla-1.7.a_2,2
===> With environment: 'MOZ_INTERNAL_LIBART_LGPL=1 LOCALBASE=/usr/local SHELL=/bin/sh CONFIG_SHELL=/bin/sh PORTOBJFORMAT=elf MAKE=gmake lt_cv_sys_max_cmd_len=65536'
===> With arguments: '--disable-auto-deps --enable-chrome-format=jar --disable-cpp-exceptions --disable-cpp-rtti --enable-crypto --disable-debug --disable-debug --disable-gtktest --disable-freetypetest --disable-installer --disable-glibtest --enable-double-buffer --enable-mathml --disable-md --disable-pedantic --disable-bidi --disable-plaintext-editor-only --enable-strip --enable-svg --enable-svg-renderer-libart --disable-tests --disable-xterm-updates --enable-xinerama --with-system-zlib --with-system-jpeg=/usr/local --with-system-mng=/usr/local --with-system-png=/usr/local --with-pthreads --disable-ldap --disable-mailnews --enable-extensions=default,irc,xmlterm --disable-jsd --disable-dtd-debug --enable-default-toolkit=gtk2 --enable-xft --enable-reorder --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --prefix=/usr/X11R6 --build=i386-portbld-freebsd5.2.1'

How-To-Repeat: 	We pass PRINT_CONFIGURE_ARGS=yes to make and the target has
	to be configure-message or something later. This prints
	CONFIGURE_ENV and CONFIGURE_ARGS, one per line.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2004-03-14 14:52:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Drop this on portmgr's head
Comment 2 Oliver Eikemeier 2004-03-14 16:20:55 UTC
If we do this a general DEBUG switch with more information would be nice.
Comment 3 Kris Kennaway freebsd_committer freebsd_triage 2004-03-21 02:36:24 UTC
State Changed
From-To: open->closed

Thanks for the suggestion, but you can just use 'make -V CONFIGURE_ENV 
-V CONFIGURE_ARGS' to extract this information if you want it.