LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2011, 05:41 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
view ./configure options?


I have a src package which uses automake for make. How can I view the available options in configure command for enabling and disabling options?
 
Old 07-10-2011, 08:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Run
Code:
./configure --help
Regards
 
Old 07-10-2011, 02:26 PM   #3
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
I think it is standard configure help messages. Some programs have --with-... --disable-... --enable-...
I am looking for specific configure options come from application developers
 
Old 07-10-2011, 03:56 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
then in the src folder RUN
Code:
./configure --help
that WILL give you the build options for that source code, if the developers added it ?
an example for Celestia from svn
-- see the options in RED ---
Code:
`configure' configures celestia SVN5163 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/celestia]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-cairo          use cairo for GTK splash screen
  --enable-theora         create Ogg/Theora video
  --disable-nls           do not use Native Language Support
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --disable-rpath         do not hardcode runtime library paths
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-debug          Produce an executable with debugging symbols
  --enable-pedantic       Enable -pedantic when compiling
  --enable-profile        Produce a profiled executable[default=no]
  --enable-debug=ARG      enables debug symbols (yes|no|full) [default=no]
  --disable-debug         disables debug output and debug symbols [default=no]
  --enable-strict         compiles with strict compiler options (may not
                          work!)
  --disable-warnings      disables compilation with -Wall and similar
  --enable-profile        creates profiling infos [default=no]
  --enable-pch            enables precompiled header support (currently only
                          KCC or gcc >=3.4+unsermake) [default=no]
  --enable-coverage       use gcc coverage testing
  --enable-new-ldflags    enable the new linker flags
  --enable-final          build size optimized apps (experimental - needs lots
                          of memory)
  --enable-closure        delay template instantiation
  --enable-nmcheck        enable automatic namespace cleanness check
  --disable-schemas-install	Disable the schemas installation
  --enable-libsuffix      /lib directory suffix (64,32,none,auto[=default])
  --enable-pie            platform supports PIE linking [default=detect]
  --enable-embedded       link to Qt-embedded, don't use X
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
  --enable-mac            link to Qt/Mac (don't use X)
  --disable-mt            link to non-threaded Qt (deprecated)
  --disable-threading     disables threading even if libpthread found
  --disable-rpath         do not use the rpath feature of ld
  --disable-path-check    don't try to find out, where to install
  --enable-hipparcos-dir=DIR
                          Specify location of HIPPARCOS/TYCHO stardata

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-glut             Use Glut for the UI
  --with-gtk              Use Gtk for an enhanced GUI
  --with-gnome            Use Gnome for an enhanced GUI
  --with-kde              Use KDE for an enhanced GUI
  --with-qt               Use Qt4 for an enhanced GUI
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  --without-libintl-prefix     don't search for libintl in includedir and libdir
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-cspice-dir=DIR   Specify SPICE directory location
  --with-gconf-source=sourceaddress      Config database for installing schema files.
  --with-gconf-schema-file-dir=dir        Directory for installing schema files.
  --with-extra-includes=DIR
                          adds non standard include paths
  --with-extra-libs=DIR   adds non standard library paths
  --with-qt-dir=DIR       where the root of Qt is installed
  --with-qt-includes=DIR  where the Qt includes are.
  --with-qt-libraries=DIR where the Qt library is installed.
  --without-arts          build without aRts [default=no]
  --with-lua              Use Lua for Celestia Extension Language support

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor
  CXXCPP      C++ preprocessor
  PKG_CONFIG  path to pkg-config utility
  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  GTK_LIBS    linker flags for GTK, overriding pkg-config
  CAIRO_CFLAGS
              C compiler flags for CAIRO, overriding pkg-config
  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
  XMKMF       Path to xmkmf, Makefile generator for X Window System
  QT_CFLAGS   C compiler flags for QT, overriding pkg-config
  QT_LIBS     linker flags for QT, overriding pkg-config
  THEORA_CFLAGS
              C compiler flags for THEORA, overriding pkg-config
  THEORA_LIBS linker flags for THEORA, overriding pkg-config
  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
  LUA_LIBS    linker flags for LUA, overriding pkg-config
  LUALIB_CFLAGS
              C compiler flags for LUALIB, overriding pkg-config
  LUALIB_LIBS linker flags for LUALIB, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <celestia-developers@lists.sf.net>.

if the developers added them then they will show

also it would help to know what this program is .
 
Old 07-11-2011, 04:35 AM   #5
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
ok thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
View ./confgure options passed for an installed .deb? Akonbobot Linux - Software 4 12-11-2007 12:58 PM
how to get configure options from a rpm? edenCC Linux - Software 7 07-26-2007 01:52 PM
postgresql or ./configure options nukeu666 Linux - Software 0 11-12-2005 04:47 AM
Possible to view program's configure compilation options tisource Linux - General 0 11-16-2004 07:08 PM
./configure - which options? Zingaro2002 Linux - General 4 01-24-2003 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration