|
|
@@ -1071,6 +1071,7 @@ Optional Packages:
|
|
|
--with-netsnmp=PATH Net-SNMP directory
|
|
|
--with-netsnmp-inc=PATH Net-SNMP include directory
|
|
|
--with-netsnmp-lib=PATH Net-SNMP library directory
|
|
|
+ --with-fhs Use FHS layout
|
|
|
|
|
|
Some influential environment variables:
|
|
|
CXX C++ compiler command
|
|
|
@@ -1534,6 +1535,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+# AC_CONFIG_HEADER must be called right after AC_INIT.
|
|
|
+ ac_config_headers="$ac_config_headers config.h"
|
|
|
|
|
|
am__api_version="1.9"
|
|
|
ac_aux_dir=
|
|
|
@@ -4277,7 +4281,7 @@ ia64-*-hpux*)
|
|
|
;;
|
|
|
*-*-irix6*)
|
|
|
# Find out which ABI we are using.
|
|
|
- echo '#line 4280 "configure"' > conftest.$ac_ext
|
|
|
+ echo '#line 4284 "configure"' > conftest.$ac_ext
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
(eval $ac_compile) 2>&5
|
|
|
ac_status=$?
|
|
|
@@ -5385,7 +5389,7 @@ fi
|
|
|
|
|
|
|
|
|
# Provide some information about the compiler.
|
|
|
-echo "$as_me:5388:" \
|
|
|
+echo "$as_me:5392:" \
|
|
|
"checking for Fortran 77 compiler version" >&5
|
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
|
|
@@ -6419,11 +6423,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:6422: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:6426: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:6426: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:6430: \$? = $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
|
|
|
@@ -6652,11 +6656,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:6655: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:6659: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:6659: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:6663: \$? = $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
|
|
|
@@ -6712,11 +6716,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:6715: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:6719: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:6719: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:6723: \$? = $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
|
|
|
@@ -8046,7 +8050,7 @@ linux*)
|
|
|
libsuff=
|
|
|
case "$host_cpu" in
|
|
|
x86_64*|s390x*|powerpc64*)
|
|
|
- echo '#line 8049 "configure"' > conftest.$ac_ext
|
|
|
+ echo '#line 8053 "configure"' > conftest.$ac_ext
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
(eval $ac_compile) 2>&5
|
|
|
ac_status=$?
|
|
|
@@ -8917,7 +8921,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 8920 "configure"
|
|
|
+#line 8924 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
|
@@ -9015,7 +9019,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 9018 "configure"
|
|
|
+#line 9022 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
|
@@ -11194,11 +11198,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:11197: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:11201: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:11201: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:11205: \$? = $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
|
|
|
@@ -11254,11 +11258,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:11257: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:11261: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:11261: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:11265: \$? = $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
|
|
|
@@ -11765,7 +11769,7 @@ linux*)
|
|
|
libsuff=
|
|
|
case "$host_cpu" in
|
|
|
x86_64*|s390x*|powerpc64*)
|
|
|
- echo '#line 11768 "configure"' > conftest.$ac_ext
|
|
|
+ echo '#line 11772 "configure"' > conftest.$ac_ext
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
(eval $ac_compile) 2>&5
|
|
|
ac_status=$?
|
|
|
@@ -12636,7 +12640,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 12639 "configure"
|
|
|
+#line 12643 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
|
@@ -12734,7 +12738,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 12737 "configure"
|
|
|
+#line 12741 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
|
@@ -13561,11 +13565,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:13564: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:13568: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:13568: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:13572: \$? = $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
|
|
|
@@ -13621,11 +13625,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:13624: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:13628: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:13628: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:13632: \$? = $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
|
|
|
@@ -14935,7 +14939,7 @@ linux*)
|
|
|
libsuff=
|
|
|
case "$host_cpu" in
|
|
|
x86_64*|s390x*|powerpc64*)
|
|
|
- echo '#line 14938 "configure"' > conftest.$ac_ext
|
|
|
+ echo '#line 14942 "configure"' > conftest.$ac_ext
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
(eval $ac_compile) 2>&5
|
|
|
ac_status=$?
|
|
|
@@ -15676,11 +15680,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:15679: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:15683: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:15683: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:15687: \$? = $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
|
|
|
@@ -15909,11 +15913,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:15912: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:15916: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:15916: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:15920: \$? = $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
|
|
|
@@ -15969,11 +15973,11 @@ else
|
|
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:15972: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:15976: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:15976: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:15980: \$? = $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
|
|
|
@@ -17303,7 +17307,7 @@ linux*)
|
|
|
libsuff=
|
|
|
case "$host_cpu" in
|
|
|
x86_64*|s390x*|powerpc64*)
|
|
|
- echo '#line 17306 "configure"' > conftest.$ac_ext
|
|
|
+ echo '#line 17310 "configure"' > conftest.$ac_ext
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
(eval $ac_compile) 2>&5
|
|
|
ac_status=$?
|
|
|
@@ -18174,7 +18178,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 18177 "configure"
|
|
|
+#line 18181 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
|
@@ -18272,7 +18276,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 18275 "configure"
|
|
|
+#line 18279 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
|
@@ -24947,6 +24951,53 @@ echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
fi
|
|
|
|
|
|
+# BEGIN COPYRIGHT BLOCK
|
|
|
+# Copyright (C) 2006 Red Hat, Inc.
|
|
|
+# All rights reserved.
|
|
|
+#
|
|
|
+# This program is free software; you can redistribute it and/or
|
|
|
+# modify it under the terms of the GNU General Public License
|
|
|
+# as published by the Free Software Foundation; either version 2
|
|
|
+# of the License, or (at your option) any later version.
|
|
|
+#
|
|
|
+# This program is distributed in the hope that it will be useful,
|
|
|
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+# GNU General Public License for more details.
|
|
|
+#
|
|
|
+# You should have received a copy of the GNU General Public License
|
|
|
+# along with this program; if not, write to the Free Software
|
|
|
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
+#
|
|
|
+# END COPYRIGHT BLOCK
|
|
|
+
|
|
|
+{ echo "$as_me:$LINENO: checking for FHS..." >&5
|
|
|
+echo "$as_me: checking for FHS..." >&6;}
|
|
|
+
|
|
|
+# check for --with-fhs
|
|
|
+echo "$as_me:$LINENO: checking for --with-fhs" >&5
|
|
|
+echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
|
|
|
+
|
|
|
+# Check whether --with-fhs or --without-fhs was given.
|
|
|
+if test "${with_fhs+set}" = set; then
|
|
|
+ withval="$with_fhs"
|
|
|
+
|
|
|
+ with_fhs=yes
|
|
|
+
|
|
|
+else
|
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
|
+echo "${ECHO_T}no" >&6
|
|
|
+fi;
|
|
|
+
|
|
|
+if test "$with_fhs" = "yes"; then
|
|
|
+
|
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
|
+#define IS_FHS 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
|
|
|
# write out paths for binary components
|
|
|
|
|
|
@@ -25013,6 +25064,17 @@ else
|
|
|
fi
|
|
|
|
|
|
|
|
|
+
|
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
|
+#define LDAP_DEBUG 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+
|
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
|
+#define LDAP_DONT_USE_SMARTHEAP 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+
|
|
|
ac_config_files="$ac_config_files Makefile"
|
|
|
|
|
|
|
|
|
@@ -25090,38 +25152,7 @@ s/^[^=]*=[ ]*$//;
|
|
|
}'
|
|
|
fi
|
|
|
|
|
|
-# Transform confdefs.h into DEFS.
|
|
|
-# Protect against shell expansion while executing Makefile rules.
|
|
|
-# Protect against Makefile macro expansion.
|
|
|
-#
|
|
|
-# If the first sed substitution is executed (which looks for macros that
|
|
|
-# take arguments), then we branch to the quote section. Otherwise,
|
|
|
-# look for a macro that doesn't take arguments.
|
|
|
-cat >confdef2opt.sed <<\_ACEOF
|
|
|
-t clear
|
|
|
-: clear
|
|
|
-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
|
|
|
-t quote
|
|
|
-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
|
|
|
-t quote
|
|
|
-d
|
|
|
-: quote
|
|
|
-s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
|
|
|
-s,\[,\\&,g
|
|
|
-s,\],\\&,g
|
|
|
-s,\$,$$,g
|
|
|
-p
|
|
|
-_ACEOF
|
|
|
-# We use echo to avoid assuming a particular line-breaking character.
|
|
|
-# The extra dot is to prevent the shell from consuming trailing
|
|
|
-# line-breaks from the sub-command output. A line-break within
|
|
|
-# single-quotes doesn't work because, if this script is created in a
|
|
|
-# platform that uses two characters for line-breaks (e.g., DOS), tr
|
|
|
-# would break.
|
|
|
-ac_LF_and_DOT=`echo; echo .`
|
|
|
-DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
|
|
|
-rm -f confdef2opt.sed
|
|
|
-
|
|
|
+DEFS=-DHAVE_CONFIG_H
|
|
|
|
|
|
ac_libobjs=
|
|
|
ac_ltlibobjs=
|
|
|
@@ -25497,10 +25528,15 @@ Usage: $0 [OPTIONS] [FILE]...
|
|
|
--recheck update $as_me by reconfiguring in the same conditions
|
|
|
--file=FILE[:TEMPLATE]
|
|
|
instantiate the configuration file FILE
|
|
|
+ --header=FILE[:TEMPLATE]
|
|
|
+ instantiate the configuration header FILE
|
|
|
|
|
|
Configuration files:
|
|
|
$config_files
|
|
|
|
|
|
+Configuration headers:
|
|
|
+$config_headers
|
|
|
+
|
|
|
Configuration commands:
|
|
|
$config_commands
|
|
|
|
|
|
@@ -25621,6 +25657,7 @@ do
|
|
|
# Handling of arguments.
|
|
|
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
|
|
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
|
|
+ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
|
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
|
|
{ (exit 1); exit 1; }; };;
|
|
|
@@ -25633,6 +25670,7 @@ done
|
|
|
# bizarre bug on SunOS 4.1.3.
|
|
|
if $ac_need_defaults; then
|
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
|
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
|
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
|
|
fi
|
|
|
|
|
|
@@ -26058,6 +26096,251 @@ done
|
|
|
_ACEOF
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
|
|
|
+#
|
|
|
+# CONFIG_HEADER section.
|
|
|
+#
|
|
|
+
|
|
|
+# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
|
+# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
|
+#
|
|
|
+# ac_d sets the value in "#define NAME VALUE" lines.
|
|
|
+ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
|
+ac_dB='[ ].*$,\1#\2'
|
|
|
+ac_dC=' '
|
|
|
+ac_dD=',;t'
|
|
|
+# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
|
+ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
+ac_uB='$,\1#\2define\3'
|
|
|
+ac_uC=' '
|
|
|
+ac_uD=',;t'
|
|
|
+
|
|
|
+for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
|
|
+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
+ case $ac_file in
|
|
|
+ - | *:- | *:-:* ) # input from stdin
|
|
|
+ cat >$tmp/stdin
|
|
|
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
|
|
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
|
|
+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
|
|
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
|
|
+ * ) ac_file_in=$ac_file.in ;;
|
|
|
+ esac
|
|
|
+
|
|
|
+ test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
|
|
+echo "$as_me: creating $ac_file" >&6;}
|
|
|
+
|
|
|
+ # First look for the input files in the build tree, otherwise in the
|
|
|
+ # src tree.
|
|
|
+ ac_file_inputs=`IFS=:
|
|
|
+ for f in $ac_file_in; do
|
|
|
+ case $f in
|
|
|
+ -) echo $tmp/stdin ;;
|
|
|
+ [\\/$]*)
|
|
|
+ # Absolute (can't be DOS-style, as IFS=:)
|
|
|
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
|
|
+echo "$as_me: error: cannot find input file: $f" >&2;}
|
|
|
+ { (exit 1); exit 1; }; }
|
|
|
+ # Do quote $f, to prevent DOS paths from being IFS'd.
|
|
|
+ echo "$f";;
|
|
|
+ *) # Relative
|
|
|
+ if test -f "$f"; then
|
|
|
+ # Build tree
|
|
|
+ echo "$f"
|
|
|
+ elif test -f "$srcdir/$f"; then
|
|
|
+ # Source tree
|
|
|
+ echo "$srcdir/$f"
|
|
|
+ else
|
|
|
+ # /dev/null tree
|
|
|
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
|
|
+echo "$as_me: error: cannot find input file: $f" >&2;}
|
|
|
+ { (exit 1); exit 1; }; }
|
|
|
+ fi;;
|
|
|
+ esac
|
|
|
+ done` || { (exit 1); exit 1; }
|
|
|
+ # Remove the trailing spaces.
|
|
|
+ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
|
|
+
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+# Transform confdefs.h into two sed scripts, `conftest.defines' and
|
|
|
+# `conftest.undefs', that substitutes the proper values into
|
|
|
+# config.h.in to produce config.h. The first handles `#define'
|
|
|
+# templates, and the second `#undef' templates.
|
|
|
+# And first: Protect against being on the right side of a sed subst in
|
|
|
+# config.status. Protect against being in an unquoted here document
|
|
|
+# in config.status.
|
|
|
+rm -f conftest.defines conftest.undefs
|
|
|
+# Using a here document instead of a string reduces the quoting nightmare.
|
|
|
+# Putting comments in sed scripts is not portable.
|
|
|
+#
|
|
|
+# `end' is used to avoid that the second main sed command (meant for
|
|
|
+# 0-ary CPP macros) applies to n-ary macro definitions.
|
|
|
+# See the Autoconf documentation for `clear'.
|
|
|
+cat >confdef2sed.sed <<\_ACEOF
|
|
|
+s/[\\&,]/\\&/g
|
|
|
+s,[\\$`],\\&,g
|
|
|
+t clear
|
|
|
+: clear
|
|
|
+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
|
|
+t end
|
|
|
+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
|
|
+: end
|
|
|
+_ACEOF
|
|
|
+# If some macros were called several times there might be several times
|
|
|
+# the same #defines, which is useless. Nevertheless, we may not want to
|
|
|
+# sort them, since we want the *last* AC-DEFINE to be honored.
|
|
|
+uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
|
|
+sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
|
|
+rm -f confdef2sed.sed
|
|
|
+
|
|
|
+# This sed command replaces #undef with comments. This is necessary, for
|
|
|
+# example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
|
+# on some systems where configure will not decide to define it.
|
|
|
+cat >>conftest.undefs <<\_ACEOF
|
|
|
+s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+# Break up conftest.defines because some shells have a limit on the size
|
|
|
+# of here documents, and old seds have small limits too (100 cmds).
|
|
|
+echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
|
|
+echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
|
|
+echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
|
|
+echo ' :' >>$CONFIG_STATUS
|
|
|
+rm -f conftest.tail
|
|
|
+while grep . conftest.defines >/dev/null
|
|
|
+do
|
|
|
+ # Write a limited-size here document to $tmp/defines.sed.
|
|
|
+ echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
|
|
+ # Speed up: don't consider the non `#define' lines.
|
|
|
+ echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
|
|
+ # Work around the forget-to-reset-the-flag bug.
|
|
|
+ echo 't clr' >>$CONFIG_STATUS
|
|
|
+ echo ': clr' >>$CONFIG_STATUS
|
|
|
+ sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
|
|
+ echo 'CEOF
|
|
|
+ sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
|
|
+ rm -f $tmp/in
|
|
|
+ mv $tmp/out $tmp/in
|
|
|
+' >>$CONFIG_STATUS
|
|
|
+ sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
|
|
+ rm -f conftest.defines
|
|
|
+ mv conftest.tail conftest.defines
|
|
|
+done
|
|
|
+rm -f conftest.defines
|
|
|
+echo ' fi # grep' >>$CONFIG_STATUS
|
|
|
+echo >>$CONFIG_STATUS
|
|
|
+
|
|
|
+# Break up conftest.undefs because some shells have a limit on the size
|
|
|
+# of here documents, and old seds have small limits too (100 cmds).
|
|
|
+echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
|
|
+rm -f conftest.tail
|
|
|
+while grep . conftest.undefs >/dev/null
|
|
|
+do
|
|
|
+ # Write a limited-size here document to $tmp/undefs.sed.
|
|
|
+ echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
|
|
+ # Speed up: don't consider the non `#undef'
|
|
|
+ echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
|
|
+ # Work around the forget-to-reset-the-flag bug.
|
|
|
+ echo 't clr' >>$CONFIG_STATUS
|
|
|
+ echo ': clr' >>$CONFIG_STATUS
|
|
|
+ sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
|
|
+ echo 'CEOF
|
|
|
+ sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
|
|
+ rm -f $tmp/in
|
|
|
+ mv $tmp/out $tmp/in
|
|
|
+' >>$CONFIG_STATUS
|
|
|
+ sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
|
|
+ rm -f conftest.undefs
|
|
|
+ mv conftest.tail conftest.undefs
|
|
|
+done
|
|
|
+rm -f conftest.undefs
|
|
|
+
|
|
|
+cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
|
+ # use $as_me), people would be surprised to read:
|
|
|
+ # /* config.h. Generated by config.status. */
|
|
|
+ if test x"$ac_file" = x-; then
|
|
|
+ echo "/* Generated by configure. */" >$tmp/config.h
|
|
|
+ else
|
|
|
+ echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
|
|
+ fi
|
|
|
+ cat $tmp/in >>$tmp/config.h
|
|
|
+ rm -f $tmp/in
|
|
|
+ if test x"$ac_file" != x-; then
|
|
|
+ if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
|
|
+ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
|
|
+echo "$as_me: $ac_file is unchanged" >&6;}
|
|
|
+ else
|
|
|
+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
|
|
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
+ X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
|
+ X"$ac_file" : 'X\(//\)$' \| \
|
|
|
+ X"$ac_file" : 'X\(/\)' \| \
|
|
|
+ . : '\(.\)' 2>/dev/null ||
|
|
|
+echo X"$ac_file" |
|
|
|
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
|
|
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
|
|
+ /^X\(\/\/\)$/{ s//\1/; q; }
|
|
|
+ /^X\(\/\).*/{ s//\1/; q; }
|
|
|
+ s/.*/./; q'`
|
|
|
+ { if $as_mkdir_p; then
|
|
|
+ mkdir -p "$ac_dir"
|
|
|
+ else
|
|
|
+ as_dir="$ac_dir"
|
|
|
+ as_dirs=
|
|
|
+ while test ! -d "$as_dir"; do
|
|
|
+ as_dirs="$as_dir $as_dirs"
|
|
|
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
|
|
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
+ X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
|
+ X"$as_dir" : 'X\(//\)$' \| \
|
|
|
+ X"$as_dir" : 'X\(/\)' \| \
|
|
|
+ . : '\(.\)' 2>/dev/null ||
|
|
|
+echo X"$as_dir" |
|
|
|
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
|
|
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
|
|
+ /^X\(\/\/\)$/{ s//\1/; q; }
|
|
|
+ /^X\(\/\).*/{ s//\1/; q; }
|
|
|
+ s/.*/./; q'`
|
|
|
+ done
|
|
|
+ test ! -n "$as_dirs" || mkdir $as_dirs
|
|
|
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
|
|
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
|
|
+ { (exit 1); exit 1; }; }; }
|
|
|
+
|
|
|
+ rm -f $ac_file
|
|
|
+ mv $tmp/config.h $ac_file
|
|
|
+ fi
|
|
|
+ else
|
|
|
+ cat $tmp/config.h
|
|
|
+ rm -f $tmp/config.h
|
|
|
+ fi
|
|
|
+# Compute $ac_file's index in $config_headers.
|
|
|
+_am_stamp_count=1
|
|
|
+for _am_header in $config_headers :; do
|
|
|
+ case $_am_header in
|
|
|
+ $ac_file | $ac_file:* )
|
|
|
+ break ;;
|
|
|
+ * )
|
|
|
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
|
+ esac
|
|
|
+done
|
|
|
+echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
|
|
|
+$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
+ X$ac_file : 'X\(//\)[^/]' \| \
|
|
|
+ X$ac_file : 'X\(//\)$' \| \
|
|
|
+ X$ac_file : 'X\(/\)' \| \
|
|
|
+ . : '\(.\)' 2>/dev/null ||
|
|
|
+echo X$ac_file |
|
|
|
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
|
|
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
|
|
+ /^X\(\/\/\)$/{ s//\1/; q; }
|
|
|
+ /^X\(\/\).*/{ s//\1/; q; }
|
|
|
+ s/.*/./; q'`/stamp-h$_am_stamp_count
|
|
|
+done
|
|
|
+_ACEOF
|
|
|
+cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
+
|
|
|
#
|
|
|
# CONFIG_COMMANDS section.
|
|
|
#
|