12728
12729
# Let make expand exec_prefix.
12729
12730
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12731
# Transform confdefs.h into DEFS.
12732
# Protect against shell expansion while executing Makefile rules.
12733
# Protect against Makefile macro expansion.
12735
# If the first sed substitution is executed (which looks for macros that
12736
# take arguments), then branch to the quote section. Otherwise,
12737
# look for a macro that doesn't take arguments.
12747
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12749
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12753
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12766
DEFS=`sed -n "$ac_script" confdefs.h`
12732
DEFS=-DHAVE_CONFIG_H
12770
12735
ac_ltlibobjs=
13242
13207
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13210
case $ac_config_headers in *"
13211
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13247
13215
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13248
13216
# Files that config.status was made for.
13249
13217
config_files="$ac_config_files"
13218
config_headers="$ac_config_headers"
13250
13219
config_commands="$ac_config_commands"
13339
13313
as_fn_append CONFIG_FILES " '$ac_optarg'"
13340
13314
ac_need_defaults=false;;
13341
--he | --h | --help | --hel | -h )
13315
--header | --heade | --head | --hea )
13318
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13320
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13321
ac_need_defaults=false;;
13323
# Conflict between --help and --header
13324
as_fn_error $? "ambiguous option: \`$1'
13325
Try \`$0 --help' for more information.";;
13326
--help | --hel | -h )
13342
13327
$as_echo "$ac_cs_usage"; exit ;;
13343
13328
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13344
13329
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13630
13617
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13631
13618
fi # test -n "$CONFIG_FILES"
13634
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13620
# Set up the scripts for CONFIG_HEADERS section.
13621
# No need to generate them if there are no CONFIG_HEADERS.
13622
# This happens for instance with `./config.status Makefile'.
13623
if test -n "$CONFIG_HEADERS"; then
13624
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13628
# Transform confdefs.h into an awk script `defines.awk', embedded as
13629
# here-document in config.status, that substitutes the proper values into
13630
# config.h.in to produce config.h.
13632
# Create a delimiter string that does not exist in confdefs.h, to ease
13633
# handling of long lines.
13635
for ac_last_try in false false :; do
13636
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13637
if test -z "$ac_tt"; then
13639
elif $ac_last_try; then
13640
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13642
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13646
# For the awk script, D is an array of macro values keyed by name,
13647
# likewise P contains macro parameters if any. Preserve backslash
13648
# newline sequences.
13650
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13652
s/.\{148\}/&'"$ac_delim"'/g
13655
s/^[ ]*#[ ]*define[ ][ ]*/ /
13662
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13664
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13668
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13669
D["\1"]=" \3\\\\\\n"\\/p
13671
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13676
s/.\{148\}/&'"$ac_delim"'/g
13681
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13684
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13686
' <confdefs.h | sed '
13687
s/'"$ac_delim"'/"\\\
13688
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13690
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13691
for (key in D) D_is_set[key] = 1
13694
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13696
split(line, arg, " ")
13697
if (arg[1] == "#") {
13701
defundef = substr(arg[1], 2)
13704
split(mac1, mac2, "(") #)
13706
prefix = substr(line, 1, index(line, defundef) - 1)
13707
if (D_is_set[macro]) {
13708
# Preserve the white space surrounding the "#".
13709
print prefix "define", macro P[macro] D[macro]
13712
# Replace #undef with comments. This is necessary, for example,
13713
# in the case of _POSIX_SOURCE, which is predefined and required
13714
# on some systems where configure will not decide to define it.
13715
if (defundef == "undef") {
13716
print "/*", prefix defundef, macro, "*/"
13724
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13725
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13726
fi # test -n "$CONFIG_HEADERS"
13729
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13851
13946
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13952
if test x"$ac_file" != x-; then
13954
$as_echo "/* $configure_input */" \
13955
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13956
} >"$ac_tmp/config.h" \
13957
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13958
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13959
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13960
$as_echo "$as_me: $ac_file is unchanged" >&6;}
13963
mv "$ac_tmp/config.h" "$ac_file" \
13964
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13967
$as_echo "/* $configure_input */" \
13968
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13969
|| as_fn_error $? "could not create -" "$LINENO" 5
13971
# Compute "$ac_file"'s index in $config_headers.
13974
for _am_header in $config_headers :; do
13975
case $_am_header in
13976
$_am_arg | $_am_arg:* )
13979
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
13982
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13983
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13984
X"$_am_arg" : 'X\(//\)[^/]' \| \
13985
X"$_am_arg" : 'X\(//\)$' \| \
13986
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13987
$as_echo X"$_am_arg" |
13988
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13992
/^X\(\/\/\)[^/].*/{
14004
s/.*/./; q'`/stamp-h$_am_stamp_count
13855
14007
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13856
14008
$as_echo "$as_me: executing $ac_file commands" >&6;}