Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
msc
sextractor
Commits
d3931ecf
Commit
d3931ecf
authored
Sep 08, 2009
by
Emmanuel Bertin
Browse files
Changed the --enable-automatic-flags configure option to --enable-auto-flags.
Added --enable-best-link configure option.
parent
54b951b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure
View file @
d3931ecf
...
...
@@ -918,7 +918,7 @@ SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_auto
matic
_flags
enable_auto_flags
enable_icc
enable_dependency_tracking
enable_static
...
...
@@ -936,6 +936,7 @@ with_fftw_incdir
with_xsl_url
enable_threads
enable_gprof
enable_best_link
'
ac_precious_vars='build_alias
host_alias
...
...
@@ -1582,8 +1583,7 @@ 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-automatic-flags
Let the configure script choose the compilation
--enable-auto-flags Let the configure script choose the compilation
flags (off by default)
--enable-icc Enable special mode for compilation with the Intel
compiler (off by default)
...
...
@@ -1600,7 +1600,9 @@ Optional Features:
default)
--enable-gprof Enable special mode for compilation with the gprof
profiler (off by default)
--enable-static Enable static linking (off by default)
--enable-best-link Choose the right combination of static and dynamic
linking to make the executable as portable as
possible (off by default)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
...
...
@@ -2616,9 +2618,9 @@ cclist="cc gcc"
# Provide special option for choosing automatically the compilation flags.
{ $as_echo "$as_me:$LINENO: checking if compilation flags are set automatically" >&5
$as_echo_n "checking if compilation flags are set automatically... " >&6; }
# Check whether --enable-auto
matic
-flags was given.
if test "${enable_auto
matic
_flags+set}" = set; then
enableval=$enable_auto
matic
_flags; use_autoflag="yes"
# Check whether --enable-auto-flags was given.
if test "${enable_auto_flags+set}" = set; then
enableval=$enable_auto_flags; use_autoflag="yes"
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
...
...
@@ -5320,7 +5322,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 532
3
"configure"' > conftest.$ac_ext
echo '#line 532
5
"configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
...
...
@@ -8095,11 +8097,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8
098
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:8
100
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:810
2
: \$? = $ac_status" >&5
echo "$as_me:810
4
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -8385,11 +8387,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:83
88
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:83
90
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:839
2
: \$? = $ac_status" >&5
echo "$as_me:839
4
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -8489,11 +8491,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:849
2
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:849
4
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:849
6
: \$? = $ac_status" >&5
echo "$as_me:849
8
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
...
...
@@ -10876,7 +10878,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 108
79
"configure"
#line 108
81
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -10976,7 +10978,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 109
79
"configure"
#line 109
81
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -13404,11 +13406,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:1340
7
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:1340
9
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:1341
1
: \$? = $ac_status" >&5
echo "$as_me:1341
3
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -13508,11 +13510,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:1351
1
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:1351
3
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:1351
5
: \$? = $ac_status" >&5
echo "$as_me:1351
7
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
...
...
@@ -15072,11 +15074,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:1507
5
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:1507
7
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:150
79
: \$? = $ac_status" >&5
echo "$as_me:150
81
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -15176,11 +15178,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:151
79
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:151
81
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:1518
3
: \$? = $ac_status" >&5
echo "$as_me:1518
5
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
...
...
@@ -17373,11 +17375,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:1737
6
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:1737
8
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:1738
0
: \$? = $ac_status" >&5
echo "$as_me:1738
2
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -17663,11 +17665,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:1766
6
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:1766
8
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:1767
0
: \$? = $ac_status" >&5
echo "$as_me:1767
2
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -17767,11 +17769,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:1777
0
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:1777
2
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:1777
4
: \$? = $ac_status" >&5
echo "$as_me:1777
6
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
...
...
@@ -22993,16 +22995,16 @@ $as_echo "no" >&6; }
fi
# Enable
static
linking
{ $as_echo "$as_me:$LINENO: checking st
atic
linking" >&5
$as_echo_n "checking st
atic
linking... " >&6; }
# Check whether --enable-
static
was given.
if test "${enable_
static
+set}" = set; then
enableval=$enable_
static; use_static
="yes"
# Enable linking
options for making the executable as portable as possible.
{ $as_echo "$as_me:$LINENO: checking
be
st linking
option
" >&5
$as_echo_n "checking
be
st linking
option
... " >&6; }
# Check whether --enable-
best-link
was given.
if test "${enable_
best_link
+set}" = set; then
enableval=$enable_
best_link; use_best
="yes"
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
use_st
atic
="no"
use_
be
st="no"
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
...
...
@@ -27737,12 +27739,12 @@ if test "$use_gprof" = "yes"; then
else
AM_CFLAGS="$AM_CFLAGS -pg"
fi
use_st
atic
="no"
use_
be
st="no"
fi
#
Static
linking option
if test "$use_st
atic
" = "yes"; then
AM_LDFLAGS="-static -shared-libgcc $AM_LDFLAGS"
#
"Best"
linking option
if test "$use_
be
st" = "yes"; then
AM_LDFLAGS="-static -shared-libgcc
-static-libtool-libs
$AM_LDFLAGS"
fi
...
...
configure.ac
View file @
d3931ecf
...
...
@@ -34,8 +34,8 @@ cclist="cc gcc"
# Provide special option for choosing automatically the compilation flags.
AC_MSG_CHECKING([if compilation flags are set automatically])
AC_ARG_ENABLE(auto
matic
-flags,
[AC_HELP_STRING([--enable-auto
matic
-flags],
AC_ARG_ENABLE(auto-flags,
[AC_HELP_STRING([--enable-auto-flags],
[Let the configure script choose the compilation flags \
(off by default)])],
use_autoflag="yes"
...
...
@@ -172,15 +172,15 @@ AC_ARG_ENABLE(gprof,
use_gprof="no"
AC_MSG_RESULT([no]))
# Enable
static
linking
AC_MSG_CHECKING([st
atic
linking])
AC_ARG_ENABLE(
static
,
[AC_HELP_STRING([--enable-
static
],
[
Enable static linking
\
(off by default)])],
use_st
atic
="yes"
# Enable linking
options for making the executable as portable as possible.
AC_MSG_CHECKING([
be
st linking
option
])
AC_ARG_ENABLE(
best-link
,
[AC_HELP_STRING([--enable-
best-link
],
[
Choose the right combination of static and dynamic linking to make
\
the executable as portable as possible
(off by default)])],
use_
be
st="yes"
AC_MSG_RESULT([yes]),
use_st
atic
="no"
use_
be
st="no"
AC_MSG_RESULT([no]))
################# Actions to complete in case of multhreading ################
...
...
@@ -228,12 +228,12 @@ if test "$use_gprof" = "yes"; then
else
AM_CFLAGS="$AM_CFLAGS -pg"
fi
use_st
atic
="no"
use_
be
st="no"
fi
#
Static
linking option
if test "$use_st
atic
" = "yes"; then
AM_LDFLAGS="-static -shared-libgcc $AM_LDFLAGS"
#
"Best"
linking option
if test "$use_
be
st" = "yes"; then
AM_LDFLAGS="-static -shared-libgcc
-static-libtool-libs
$AM_LDFLAGS"
fi
AC_SUBST(AM_CFLAGS)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment