Commit 283a487e authored by Roland Levillain's avatar Roland Levillain
Browse files

Have configure be terser.

	* configure.ac: Remove intermediate messages.
	Add option `--enable-verbose', and show the final summary only
	when it is turned on.
	Use escaped version of `[' and `]' in message.
	Document this option...
	* README (Verbose Display): ...here.
parent f8e324b5
2010-10-20 Roland Levillain <roland@lrde.epita.fr>
Have configure be terser.
* configure.ac: Remove intermediate messages.
Add option `--enable-verbose', and show the final summary only
when it is turned on.
Use escaped version of `[' and `]' in message.
Document this option...
* README (Verbose Display): ...here.
2010-10-20 Roland Levillain <roland@lrde.epita.fr> 2010-10-20 Roland Levillain <roland@lrde.epita.fr>
Ensure paths passed to `--with-*' options are visited before others. Ensure paths passed to `--with-*' options are visited before others.
......
...@@ -157,6 +157,18 @@ environment CONFIG_SITE to set up a configuration environment (see ...@@ -157,6 +157,18 @@ environment CONFIG_SITE to set up a configuration environment (see
Autoconf's manual). Autoconf's manual).
Verbose Display
===============
A more verbose display can be turned on by passing the
`--enable-verbose' flag to configure:
% ../configure --enable-verbose
Before configuring files, configure will display a summary of the
configuration step.
Installation Path Installation Path
================= =================
......
...@@ -194,11 +194,6 @@ AM_CONDITIONAL([DARWIN], [echo "$host_os" | grep '^darwin']) ...@@ -194,11 +194,6 @@ AM_CONDITIONAL([DARWIN], [echo "$host_os" | grep '^darwin'])
# Prepare calls to pkg-config # Prepare calls to pkg-config
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG
AC_MSG_RESULT([])
AC_MSG_RESULT([])
AC_MSG_RESULT([Checking external libraries])
AC_MSG_RESULT([-------------------------------------------------------------------------------])
### Support for FreeImagePlus has been disabled for Olena 1.0. ### Support for FreeImagePlus has been disabled for Olena 1.0.
## OLN_WITH_LIB([FreeImagePlus], [FreeImagePlus.h], [freeimageplus]) ## OLN_WITH_LIB([FreeImagePlus], [FreeImagePlus.h], [freeimageplus])
...@@ -211,10 +206,6 @@ oln_have_boost_preprocessor=no ...@@ -211,10 +206,6 @@ oln_have_boost_preprocessor=no
oln_have_boost_tuple=no oln_have_boost_tuple=no
if test "x$with_boost" != xno; then if test "x$with_boost" != xno; then
AC_MSG_RESULT([])
AC_MSG_RESULT([* Boost])
AC_MSG_RESULT([-------])
# Is Boost installed? # Is Boost installed?
BOOST_REQUIRE([], oln_have_boost=no) BOOST_REQUIRE([], oln_have_boost=no)
...@@ -249,12 +240,6 @@ AM_CONDITIONAL([HAVE_BOOST_TUPLE], [test "x$oln_have_boost_tuple" = xyes]) ...@@ -249,12 +240,6 @@ AM_CONDITIONAL([HAVE_BOOST_TUPLE], [test "x$oln_have_boost_tuple" = xyes])
## CFITSIO library. ## ## CFITSIO library. ##
## ---------------- ## ## ---------------- ##
if test "x$with_cfitsio" != xno; then
AC_MSG_RESULT([])
AC_MSG_RESULT([* libcfitsio])
AC_MSG_RESULT([------------])
fi
OLN_WITH_LIB([CFITSIO], [fitsio.h], [cfitsio]) OLN_WITH_LIB([CFITSIO], [fitsio.h], [cfitsio])
...@@ -278,14 +263,9 @@ AC_ARG_WITH([magickxx], ...@@ -278,14 +263,9 @@ AC_ARG_WITH([magickxx],
oln_have_magickxx=no oln_have_magickxx=no
if test "x$with_magickxx" != xno; then if test "x$with_magickxx" != xno; then
AC_MSG_RESULT([])
AC_MSG_RESULT([* libMagick++])
AC_MSG_RESULT([---------------])
# Try to use ImageMagick from a specified path. # Try to use ImageMagick from a specified path.
if test "x$with_magickxx" != xyes; then if test "x$with_magickxx" != xyes; then
AC_MSG_CHECKING([with given path $with_magickxx]) AC_MSG_CHECKING([with given path $with_magickxx])
AC_MSG_RESULT([])
OLN_WITH_LIB([Magick++], [Magick++.h], [Magick++], [magickxx], OLN_WITH_LIB([Magick++], [Magick++.h], [Magick++], [magickxx],
[MAGICKXX]) [MAGICKXX])
fi fi
...@@ -293,11 +273,8 @@ if test "x$with_magickxx" != xno; then ...@@ -293,11 +273,8 @@ if test "x$with_magickxx" != xno; then
# Check with pkg-config if previous test failed or if no path have # Check with pkg-config if previous test failed or if no path have
# been passed through --with-magickxx argument. # been passed through --with-magickxx argument.
if test "x$oln_have_magickxx" = xno; then if test "x$oln_have_magickxx" = xno; then
AC_MSG_CHECKING([with pkg-config])
AC_MSG_RESULT([])
PKG_CHECK_MODULES(MAGICKXX,[ImageMagick++], oln_have_magickxx=yes, PKG_CHECK_MODULES(MAGICKXX,[ImageMagick++], oln_have_magickxx=yes,
oln_have_magickxx=no) oln_have_magickxx=no)
AC_MSG_RESULT([])
if test "x$oln_have_magickxx" = xyes; then if test "x$oln_have_magickxx" = xyes; then
AC_DEFINE([HAVE_MAGICKXX], 1, AC_DEFINE([HAVE_MAGICKXX], 1,
...@@ -322,10 +299,6 @@ AM_CONDITIONAL(HAVE_MAGICKXX, test "x$oln_have_magickxx" = xyes) ...@@ -322,10 +299,6 @@ AM_CONDITIONAL(HAVE_MAGICKXX, test "x$oln_have_magickxx" = xyes)
oln_have_qt=no oln_have_qt=no
if test "x$with_qt" != xno; then if test "x$with_qt" != xno; then
AC_MSG_RESULT([])
AC_MSG_RESULT([* Qt])
AC_MSG_RESULT([----])
AT_WITH_QT([+xml], [], [], AT_WITH_QT([+xml], [], [],
AC_MSG_WARN([Qt dependent programs will be disabled.])) AC_MSG_WARN([Qt dependent programs will be disabled.]))
...@@ -346,12 +319,6 @@ AM_CONDITIONAL([HAVE_QT], [test "x$oln_have_qt" = xyes]) ...@@ -346,12 +319,6 @@ AM_CONDITIONAL([HAVE_QT], [test "x$oln_have_qt" = xyes])
## Tesseract. ## ## Tesseract. ##
## ---------- ## ## ---------- ##
if test "x$with_tesseract" != xno; then
AC_MSG_RESULT([])
AC_MSG_RESULT([* Tesseract])
AC_MSG_RESULT([-----------])
fi
OLN_WITH_LIB([TESSERACT], [tesseract/baseapi.h], [tesseract_full], OLN_WITH_LIB([TESSERACT], [tesseract/baseapi.h], [tesseract_full],
[tesseract], [TESSERACT]) [tesseract], [TESSERACT])
...@@ -360,12 +327,6 @@ OLN_WITH_LIB([TESSERACT], [tesseract/baseapi.h], [tesseract_full], ...@@ -360,12 +327,6 @@ OLN_WITH_LIB([TESSERACT], [tesseract/baseapi.h], [tesseract_full],
## TIFF library. ## ## TIFF library. ##
## ------------- ## ## ------------- ##
if test "x$with_tiff" != xno; then
AC_MSG_RESULT([])
AC_MSG_RESULT([* libtiff])
AC_MSG_RESULT([---------])
fi
OLN_WITH_LIB([TIFF], [tiff.h], [tiff]) OLN_WITH_LIB([TIFF], [tiff.h], [tiff])
...@@ -373,25 +334,11 @@ OLN_WITH_LIB([TIFF], [tiff.h], [tiff]) ...@@ -373,25 +334,11 @@ OLN_WITH_LIB([TIFF], [tiff.h], [tiff])
## GDCM library (Grassroots DiCom). ## ## GDCM library (Grassroots DiCom). ##
## -------------------------------- ## ## -------------------------------- ##
if test "x$with_gdcm" != xno; then
AC_MSG_RESULT([])
AC_MSG_RESULT([* libgdcm])
AC_MSG_RESULT([---------])
fi
OLN_WITH_LIB([GDCM], [gdcm-2.0/gdcmReader.h], [gdcmCommon], [gdcm], OLN_WITH_LIB([GDCM], [gdcm-2.0/gdcmReader.h], [gdcmCommon], [gdcm],
[GDCM], [GDCM],
[-lgdcmDICT -lgdcmDSED -lgdcmIOD -lgdcmMSFF -lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg -lgdcmuuid -lgdcmzlib]) [-lgdcmDICT -lgdcmDSED -lgdcmIOD -lgdcmMSFF -lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg -lgdcmuuid -lgdcmzlib])
AC_MSG_RESULT([])
AC_MSG_RESULT([-------------------------------------------------------------------------------])
AC_MSG_RESULT([])
AC_MSG_RESULT([])
## ---------------------------- ## ## ---------------------------- ##
## (Bundled) trimesh2 library. ## ## (Bundled) trimesh2 library. ##
## ---------------------------- ## ## ---------------------------- ##
...@@ -735,12 +682,19 @@ if test -z "$TOOLS_CXXFLAGS"; then ...@@ -735,12 +682,19 @@ if test -z "$TOOLS_CXXFLAGS"; then
fi fi
fi fi
AC_MSG_RESULT([-------------------------------------------------------------------------------])
AC_MSG_RESULT([Update Olena configuration])
AC_OUTPUT
## ----------------- ##
## Verbose display. ##
## ----------------- ##
# Do not print this information by default, since `configure' outputs
# should be kept short. Longer explanations are always available in
# config.log.
AC_MSG_RESULT([ AC_ARG_ENABLE([verbose],
[AS_HELP_STRING([--enable-verbose], [enable verbose display])],
[if test "x$enable_verbose" != xno; then
AC_MSG_RESULT([
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Configuration summary. Configuration summary.
...@@ -753,17 +707,17 @@ Build system type: $build ...@@ -753,17 +707,17 @@ Build system type: $build
================ ================
Option Enabled and available Option Enabled and available
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Boost Preprocessor --with-boost=[DIR] $oln_have_boost_preprocessor Boost Preprocessor --with-boost=@<:@=DIR@:>@ $oln_have_boost_preprocessor
Boost Tuple --with-boost=[DIR] $oln_have_boost_tuple Boost Tuple --with-boost=@<:@=DIR@:>@ $oln_have_boost_tuple
CFITSIO --with-cfitsio[=DIR] $oln_have_cfitsio CFITSIO --with-cfitsio@<:@=DIR@:>@ $oln_have_cfitsio
GDCM --with-gdcm[=DIR] $oln_have_gdcm GDCM --with-gdcm@<:@=DIR@:>@ $oln_have_gdcm
Magick++ --with-magickxx $oln_have_magickxx Magick++ --with-magickxx $oln_have_magickxx
Qt --with-qt $oln_have_qt Qt --with-qt $oln_have_qt
Tesseract --with-tesseract[=DIR] $oln_have_tesseract Tesseract --with-tesseract@<:@=DIR@:>@ $oln_have_tesseract
TIFF --with-tiff[=DIR] $oln_have_tiff TIFF --with-tiff@<:@=DIR@:>@ $oln_have_tiff
Trimesh --enable-trimesh $enable_trimesh Trimesh --enable-trimesh $enable_trimesh
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
...@@ -774,10 +728,10 @@ Trimesh --enable-trimesh $enable_trimesh ...@@ -774,10 +728,10 @@ Trimesh --enable-trimesh $enable_trimesh
=========== ===========
Option Enabled Option Enabled
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Scribo --enable-scribo $enable_scribo Scribo --enable-scribo $enable_scribo
Swilena --enable-swilena $enable_swilena Swilena --enable-swilena $enable_swilena
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
...@@ -788,10 +742,10 @@ Swilena --enable-swilena $enable_swilena ...@@ -788,10 +742,10 @@ Swilena --enable-swilena $enable_swilena
============= =============
Option Enabled Option Enabled
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Apps --enable-apps $enable_apps Apps --enable-apps $enable_apps
Tools --enable-tools $enable_tools Tools --enable-tools $enable_tools
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
...@@ -808,13 +762,13 @@ Options used to compile and link: ...@@ -808,13 +762,13 @@ Options used to compile and link:
LIBS = $MAGICK_LIBS LIBS = $MAGICK_LIBS
CXX = $CXX CXX = $CXX
CXXFLAGS = $CXXFLAGS CXXFLAGS = $CXXFLAGS
PKG_CONFIG = $PKG_CONFIG PKG_CONFIG = $PKG_CONFIG
QT_PATH = $QT_PATH QT_PATH = $QT_PATH
QMAKE = $QMAKE QMAKE = $QMAKE
MOC = $MOC MOC = $MOC
UIC = $UIC UIC = $UIC
RCC = $RCC RCC = $RCC
BOOST_ROOT = $BOOST_ROOT BOOST_ROOT = $BOOST_ROOT
MAGICKXX_CFLAGS = $MAGICKXX_CPPFLAGS MAGICKXX_CFLAGS = $MAGICKXX_CPPFLAGS
MAGICKXX_LIBS = $MAGICKXX_LDFLAGS MAGICKXX_LIBS = $MAGICKXX_LDFLAGS
SCRIBO_CXXFLAGS = $SCRIBO_CXXFLAGS SCRIBO_CXXFLAGS = $SCRIBO_CXXFLAGS
...@@ -824,9 +778,17 @@ Options used to compile and link: ...@@ -824,9 +778,17 @@ Options used to compile and link:
******************************************************************************* *******************************************************************************
Olena is configured as stated above. Please verify that this configuration Olena is configured as stated above. Please verify that this configuration
matches your expectations. matches your expectations.
Then, type 'make' to build Olena and 'make install' to install it on Then, type 'make' to build Olena and 'make install' to install it on
your system. your system.
]) ])
fi])
## -------- ##
## Output. ##
## -------- ##
AC_OUTPUT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment