134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
test "X`expr 00001 : '.*\(...\)'`" = X001; then
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
X"$0" : 'X\(//\)$' \| \
153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155
sed '/^.*\/\([^/][^/]*\)\/*$/{
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
173
136
if test "x$CONFIG_SHELL" = x; then
174
if (eval ":") 2>/dev/null; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
175
176
as_have_required=yes
177
178
as_have_required=no
180
if test $as_have_required = yes && (eval ":
190
as_func_ret_success () {
193
as_func_ret_failure () {
198
if as_func_success; then
202
echo as_func_success failed.
205
if as_func_failure; then
207
echo as_func_failure succeeded.
210
if as_func_ret_success; then
214
echo as_func_ret_success failed.
217
if as_func_ret_failure; then
219
echo as_func_ret_failure succeeded.
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226
echo positional parameters were not saved.
229
test \$exitcode = 0) || { (exit 1); exit 1; }
234
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
188
test -z "$as_dir" && as_dir=.
247
192
for as_base in sh bash ksh sh5; do
248
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
255
for as_shell in $as_candidate_shells $SHELL; do
256
# Try only shells that exist, to save several forks.
257
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in
268
*posix*) set -o posix ;;
277
CONFIG_SHELL=$as_shell
279
if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
# is contrary to our usage. Disable this feature.
285
alias -g '${1+"$@"}'='"$@"'
288
case `(set -o) 2>/dev/null` in
289
*posix*) set -o posix ;;
305
as_func_ret_success () {
308
as_func_ret_failure () {
313
if as_func_success; then
317
echo as_func_success failed.
320
if as_func_failure; then
322
echo as_func_failure succeeded.
325
if as_func_ret_success; then
329
echo as_func_ret_success failed.
332
if as_func_ret_failure; then
334
echo as_func_ret_failure succeeded.
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
341
echo positional parameters were not saved.
344
test $exitcode = 0) || { (exit 1); exit 1; }
349
test "x$as_lineno_1" != "x$as_lineno_2" &&
350
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
if test "x$CONFIG_SHELL" != x; then
362
for as_var in BASH_ENV ENV
363
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
365
220
export CONFIG_SHELL
366
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370
if test $as_have_required = no; then
371
echo This script requires a shell more modern than all the
372
echo shells that I found on your system. Please install a
373
echo modern shell, or manually run the script under such a
374
echo shell if you do have one.
375
{ (exit 1); exit 1; }
385
(eval "as_func_return () {
394
as_func_ret_success () {
397
as_func_ret_failure () {
402
if as_func_success; then
406
echo as_func_success failed.
409
if as_func_failure; then
411
echo as_func_failure succeeded.
414
if as_func_ret_success; then
418
echo as_func_ret_success failed.
421
if as_func_ret_failure; then
423
echo as_func_ret_failure succeeded.
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430
echo positional parameters were not saved.
433
test \$exitcode = 0") || {
434
echo No shell found that supports shell functions.
435
echo Please tell bug-autoconf@gnu.org about your system,
436
echo including any error possibly output before this message.
437
echo This can help us improve future autoconf versions.
438
echo Configuration will now proceed without shell functions.
445
test "x$as_lineno_1" != "x$as_lineno_2" &&
446
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
# uniformly replaced by the line number. The first 'sed' inserts a
450
# line-number line after each line using $LINENO; the second 'sed'
451
# does the real work. The second script uses 'N' to pair each
452
# line-number line with the line containing $LINENO, and appends
453
# trailing '-' during substitution so that $LINENO is not a special
455
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
# scripts with optimization help from Paolo Bonzini. Blame Lee
457
# E. McMahon (1931-1989) for sed's syntax. :-)
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232
$0: including any error possibly output before this
233
$0: message. Then install a modern shell, or manually run
234
$0: the script under such a shell if you do have one."
240
SHELL=${CONFIG_SHELL-/bin/sh}
242
# Unset more variables known to interfere with behavior of common tools.
243
CLICOLOR_FORCE= GREP_OPTIONS=
244
unset CLICOLOR_FORCE GREP_OPTIONS
246
## --------------------- ##
247
## M4sh Shell Functions. ##
248
## --------------------- ##
251
# Portably unset VAR.
254
{ eval $1=; unset $1;}
258
# as_fn_set_status STATUS
259
# -----------------------
260
# Set $? to STATUS, without forking.
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278
# Create "$as_dir" as a directory, including parents if necessary.
283
-*) as_dir=./$as_dir;;
285
test -d "$as_dir" || eval $as_mkdir_p || {
289
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292
as_dirs="'$as_qdir' $as_dirs"
293
as_dir=`$as_dirname -- "$as_dir" ||
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295
X"$as_dir" : 'X\(//\)[^/]' \| \
296
X"$as_dir" : 'X\(//\)$' \| \
297
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298
$as_echo X"$as_dir" |
299
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316
test -d "$as_dir" && break
318
test -z "$as_dirs" || eval "mkdir $as_dirs"
319
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
# as_fn_append VAR VALUE
324
# ----------------------
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
326
# advantage of any shell optimizations that allow amortized linear growth over
327
# repeated appends, instead of the typical quadratic growth present in naive
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330
eval 'as_fn_append ()
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
345
# must be portable across $(()) and expr.
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354
as_val=`expr "$@" || test $? -eq 1`
359
# as_fn_error ERROR [LINENO LOG_FD]
360
# ---------------------------------
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363
# script with status $?, using 1 if that was 0.
366
as_status=$?; test $as_status -eq 0 && as_status=1
368
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
$as_echo "$as_me: error: $1" >&2
372
as_fn_exit $as_status
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
376
test "X`expr 00001 : '.*\(...\)'`" = X001; then
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394
as_me=`$as_basename -- "$0" ||
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396
X"$0" : 'X\(//\)$' \| \
397
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
sed '/^.*\/\([^/][^/]*\)\/*$/{
413
# Avoid depending upon Character Ranges.
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417
as_cr_digits='0123456789'
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
421
as_lineno_1=$LINENO as_lineno_1a=$LINENO
422
as_lineno_2=$LINENO as_lineno_2a=$LINENO
423
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1545
1492
if $ac_init_version; then
1548
generated by GNU Autoconf 2.63
1495
generated by GNU Autoconf 2.65
1550
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1551
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1497
Copyright (C) 2009 Free Software Foundation, Inc.
1552
1498
This configure script is free software; the Free Software Foundation
1553
1499
gives unlimited permission to copy, distribute and modify it.
1504
## ------------------------ ##
1505
## Autoconf initialization. ##
1506
## ------------------------ ##
1508
# ac_fn_c_try_compile LINENO
1509
# --------------------------
1510
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1511
ac_fn_c_try_compile ()
1513
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514
rm -f conftest.$ac_objext
1515
if { { ac_try="$ac_compile"
1517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518
*) ac_try_echo=$ac_try;;
1520
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521
$as_echo "$ac_try_echo"; } >&5
1522
(eval "$ac_compile") 2>conftest.err
1524
if test -s conftest.err; then
1525
grep -v '^ *+' conftest.err >conftest.er1
1526
cat conftest.er1 >&5
1527
mv -f conftest.er1 conftest.err
1529
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530
test $ac_status = 0; } && {
1531
test -z "$ac_c_werror_flag" ||
1532
test ! -s conftest.err
1533
} && test -s conftest.$ac_objext; then :
1536
$as_echo "$as_me: failed program was:" >&5
1537
sed 's/^/| /' conftest.$ac_ext >&5
1541
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542
as_fn_set_status $ac_retval
1544
} # ac_fn_c_try_compile
1546
# ac_fn_c_try_link LINENO
1547
# -----------------------
1548
# Try to link conftest.$ac_ext, and return whether this succeeded.
1551
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552
rm -f conftest.$ac_objext conftest$ac_exeext
1553
if { { ac_try="$ac_link"
1555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556
*) ac_try_echo=$ac_try;;
1558
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559
$as_echo "$ac_try_echo"; } >&5
1560
(eval "$ac_link") 2>conftest.err
1562
if test -s conftest.err; then
1563
grep -v '^ *+' conftest.err >conftest.er1
1564
cat conftest.er1 >&5
1565
mv -f conftest.er1 conftest.err
1567
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568
test $ac_status = 0; } && {
1569
test -z "$ac_c_werror_flag" ||
1570
test ! -s conftest.err
1571
} && test -s conftest$ac_exeext && {
1572
test "$cross_compiling" = yes ||
1573
$as_test_x conftest$ac_exeext
1577
$as_echo "$as_me: failed program was:" >&5
1578
sed 's/^/| /' conftest.$ac_ext >&5
1582
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1583
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1584
# interfere with the next link command; also delete a directory that is
1585
# left behind by Apple's compiler. We do this before executing the actions.
1586
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1587
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588
as_fn_set_status $ac_retval
1590
} # ac_fn_c_try_link
1592
# ac_fn_c_try_cpp LINENO
1593
# ----------------------
1594
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598
if { { ac_try="$ac_cpp conftest.$ac_ext"
1600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601
*) ac_try_echo=$ac_try;;
1603
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604
$as_echo "$ac_try_echo"; } >&5
1605
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607
if test -s conftest.err; then
1608
grep -v '^ *+' conftest.err >conftest.er1
1609
cat conftest.er1 >&5
1610
mv -f conftest.er1 conftest.err
1612
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613
test $ac_status = 0; } >/dev/null && {
1614
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615
test ! -s conftest.err
1619
$as_echo "$as_me: failed program was:" >&5
1620
sed 's/^/| /' conftest.$ac_ext >&5
1624
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625
as_fn_set_status $ac_retval
1629
# ac_fn_c_try_run LINENO
1630
# ----------------------
1631
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632
# that executables *can* be run.
1635
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636
if { { ac_try="$ac_link"
1638
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639
*) ac_try_echo=$ac_try;;
1641
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642
$as_echo "$ac_try_echo"; } >&5
1643
(eval "$ac_link") 2>&5
1645
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647
{ { case "(($ac_try" in
1648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649
*) ac_try_echo=$ac_try;;
1651
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652
$as_echo "$ac_try_echo"; } >&5
1653
(eval "$ac_try") 2>&5
1655
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656
test $ac_status = 0; }; }; then :
1659
$as_echo "$as_me: program exited with status $ac_status" >&5
1660
$as_echo "$as_me: failed program was:" >&5
1661
sed 's/^/| /' conftest.$ac_ext >&5
1663
ac_retval=$ac_status
1665
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667
as_fn_set_status $ac_retval
1671
# ac_fn_cxx_try_compile LINENO
1672
# ----------------------------
1673
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674
ac_fn_cxx_try_compile ()
1676
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677
rm -f conftest.$ac_objext
1678
if { { ac_try="$ac_compile"
1680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681
*) ac_try_echo=$ac_try;;
1683
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684
$as_echo "$ac_try_echo"; } >&5
1685
(eval "$ac_compile") 2>conftest.err
1687
if test -s conftest.err; then
1688
grep -v '^ *+' conftest.err >conftest.er1
1689
cat conftest.er1 >&5
1690
mv -f conftest.er1 conftest.err
1692
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693
test $ac_status = 0; } && {
1694
test -z "$ac_cxx_werror_flag" ||
1695
test ! -s conftest.err
1696
} && test -s conftest.$ac_objext; then :
1699
$as_echo "$as_me: failed program was:" >&5
1700
sed 's/^/| /' conftest.$ac_ext >&5
1704
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705
as_fn_set_status $ac_retval
1707
} # ac_fn_cxx_try_compile
1709
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1710
# -------------------------------------------------------
1711
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1712
# the include files in INCLUDES and setting the cache variable VAR
1714
ac_fn_c_check_header_mongrel ()
1716
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719
$as_echo_n "checking for $2... " >&6; }
1720
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721
$as_echo_n "(cached) " >&6
1724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725
$as_echo "$ac_res" >&6; }
1727
# Is the header compilable?
1728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1729
$as_echo_n "checking $2 usability... " >&6; }
1730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731
/* end confdefs.h. */
1735
if ac_fn_c_try_compile "$LINENO"; then :
1736
ac_header_compiler=yes
1738
ac_header_compiler=no
1740
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1742
$as_echo "$ac_header_compiler" >&6; }
1744
# Is the header present?
1745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1746
$as_echo_n "checking $2 presence... " >&6; }
1747
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748
/* end confdefs.h. */
1751
if ac_fn_c_try_cpp "$LINENO"; then :
1752
ac_header_preproc=yes
1754
ac_header_preproc=no
1756
rm -f conftest.err conftest.$ac_ext
1757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1758
$as_echo "$ac_header_preproc" >&6; }
1760
# So? What about this header?
1761
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1763
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1764
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1765
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1766
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1770
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1771
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1772
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1773
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1774
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1775
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1776
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1777
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782
$as_echo_n "checking for $2... " >&6; }
1783
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784
$as_echo_n "(cached) " >&6
1786
eval "$3=\$ac_header_compiler"
1789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790
$as_echo "$ac_res" >&6; }
1792
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794
} # ac_fn_c_check_header_mongrel
1796
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797
# -------------------------------------------------------
1798
# Tests whether HEADER exists and can be compiled using the include files in
1799
# INCLUDES, setting the cache variable VAR accordingly.
1800
ac_fn_c_check_header_compile ()
1802
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804
$as_echo_n "checking for $2... " >&6; }
1805
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806
$as_echo_n "(cached) " >&6
1808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809
/* end confdefs.h. */
1813
if ac_fn_c_try_compile "$LINENO"; then :
1818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822
$as_echo "$ac_res" >&6; }
1823
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825
} # ac_fn_c_check_header_compile
1827
# ac_fn_c_check_func LINENO FUNC VAR
1828
# ----------------------------------
1829
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1830
ac_fn_c_check_func ()
1832
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834
$as_echo_n "checking for $2... " >&6; }
1835
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836
$as_echo_n "(cached) " >&6
1838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839
/* end confdefs.h. */
1840
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842
#define $2 innocuous_$2
1844
/* System header to define __stub macros and hopefully few prototypes,
1845
which can conflict with char $2 (); below.
1846
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847
<limits.h> exists even on freestanding compilers. */
1850
# include <limits.h>
1852
# include <assert.h>
1857
/* Override any GCC internal prototype to avoid an error.
1858
Use char because int might match the return type of a GCC
1859
builtin and then its argument prototype would still apply. */
1864
/* The GNU C library defines this for functions which it implements
1865
to always fail with ENOSYS. Some functions are actually named
1866
something starting with __ and the normal name is an alias. */
1867
#if defined __stub_$2 || defined __stub___$2
1879
if ac_fn_c_try_link "$LINENO"; then :
1884
rm -f core conftest.err conftest.$ac_objext \
1885
conftest$ac_exeext conftest.$ac_ext
1888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889
$as_echo "$ac_res" >&6; }
1890
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892
} # ac_fn_c_check_func
1557
1893
cat >config.log <<_ACEOF
1558
1894
This file contains any messages produced by compilers while
1559
1895
running configure, to aid debugging if configure makes a mistake.
1561
1897
It was created by $as_me, which was
1562
generated by GNU Autoconf 2.63. Invocation command line was
1898
generated by GNU Autoconf 2.65. Invocation command line was
2828
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3131
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829
3132
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2831
See \`config.log' for more details." >&5
2832
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2833
See \`config.log' for more details." >&2;}
2834
{ (exit 1); exit 1; }; }; }
3133
as_fn_error "no acceptable C compiler found in \$PATH
3134
See \`config.log' for more details." "$LINENO" 5; }
2836
3136
# Provide some information about the compiler.
2837
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3137
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2838
3138
set X $ac_compile
2840
{ (ac_try="$ac_compiler --version >&5"
2842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843
*) ac_try_echo=$ac_try;;
2845
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846
$as_echo "$ac_try_echo") >&5
2847
(eval "$ac_compiler --version >&5") 2>&5
2849
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
(exit $ac_status); }
2851
{ (ac_try="$ac_compiler -v >&5"
2853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854
*) ac_try_echo=$ac_try;;
2856
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857
$as_echo "$ac_try_echo") >&5
2858
(eval "$ac_compiler -v >&5") 2>&5
2860
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861
(exit $ac_status); }
2862
{ (ac_try="$ac_compiler -V >&5"
2864
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865
*) ac_try_echo=$ac_try;;
2867
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868
$as_echo "$ac_try_echo") >&5
2869
(eval "$ac_compiler -V >&5") 2>&5
2871
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872
(exit $ac_status); }
3140
for ac_option in --version -v -V -qversion; do
3141
{ { ac_try="$ac_compiler $ac_option >&5"
3143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144
*) ac_try_echo=$ac_try;;
3146
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147
$as_echo "$ac_try_echo"; } >&5
3148
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3150
if test -s conftest.err; then
3152
... rest of stderr output deleted ...
3153
10q' conftest.err >conftest.er1
3154
cat conftest.er1 >&5
3156
rm -f conftest.er1 conftest.err
3157
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158
test $ac_status = 0; }
2874
cat >conftest.$ac_ext <<_ACEOF
2877
cat confdefs.h >>conftest.$ac_ext
2878
cat >>conftest.$ac_ext <<_ACEOF
3161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879
3162
/* end confdefs.h. */
3240
if test -z "$ac_file"; then :
3241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242
$as_echo "no" >&6; }
3243
$as_echo "$as_me: failed program was:" >&5
3244
sed 's/^/| /' conftest.$ac_ext >&5
2958
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3246
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248
{ as_fn_set_status 77
3249
as_fn_error "C compiler cannot create executables
3250
See \`config.log' for more details." "$LINENO" 5; }; }
3252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253
$as_echo "yes" >&6; }
3255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3256
$as_echo_n "checking for C compiler default output file name... " >&6; }
3257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2959
3258
$as_echo "$ac_file" >&6; }
2960
if test -z "$ac_file"; then
2961
$as_echo "$as_me: failed program was:" >&5
2962
sed 's/^/| /' conftest.$ac_ext >&5
2964
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2965
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2967
See \`config.log' for more details." >&5
2968
$as_echo "$as_me: error: C compiler cannot create executables
2969
See \`config.log' for more details." >&2;}
2970
{ (exit 77); exit 77; }; }; }
2973
3259
ac_exeext=$ac_cv_exeext
2975
# Check that the compiler produces executables we can run. If not, either
2976
# the compiler is broken, or we cross compile.
2977
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2978
$as_echo_n "checking whether the C compiler works... " >&6; }
2979
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2980
# If not cross compiling, check that we can run a simple program.
2981
if test "$cross_compiling" != yes; then
2982
if { ac_try='./$ac_file'
2983
{ (case "(($ac_try" in
2984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985
*) ac_try_echo=$ac_try;;
2987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988
$as_echo "$ac_try_echo") >&5
2989
(eval "$ac_try") 2>&5
2991
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992
(exit $ac_status); }; }; then
2995
if test "$cross_compiling" = maybe; then
2998
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2999
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3000
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3001
If you meant to cross compile, use \`--host'.
3002
See \`config.log' for more details." >&5
3003
$as_echo "$as_me: error: cannot run C compiled programs.
3004
If you meant to cross compile, use \`--host'.
3005
See \`config.log' for more details." >&2;}
3006
{ (exit 1); exit 1; }; }; }
3010
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3011
$as_echo "yes" >&6; }
3013
3261
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3014
3262
ac_clean_files=$ac_clean_files_save
3015
# Check that the compiler produces executables we can run. If not, either
3016
# the compiler is broken, or we cross compile.
3017
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3018
$as_echo_n "checking whether we are cross compiling... " >&6; }
3019
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3020
$as_echo "$cross_compiling" >&6; }
3022
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3023
3264
$as_echo_n "checking for suffix of executables... " >&6; }
3024
if { (ac_try="$ac_link"
3265
if { { ac_try="$ac_link"
3025
3266
case "(($ac_try" in
3026
3267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027
3268
*) ac_try_echo=$ac_try;;
3029
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3030
$as_echo "$ac_try_echo") >&5
3270
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271
$as_echo "$ac_try_echo"; } >&5
3031
3272
(eval "$ac_link") 2>&5
3033
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034
(exit $ac_status); }; then
3274
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275
test $ac_status = 0; }; then :
3035
3276
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3036
3277
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3037
3278
# work properly (i.e., refer to `conftest.exe'), while it won't with
3049
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3290
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050
3291
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3052
See \`config.log' for more details." >&5
3053
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3054
See \`config.log' for more details." >&2;}
3055
{ (exit 1); exit 1; }; }; }
3292
as_fn_error "cannot compute suffix of executables: cannot compile and link
3293
See \`config.log' for more details." "$LINENO" 5; }
3058
rm -f conftest$ac_cv_exeext
3059
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3295
rm -f conftest conftest$ac_cv_exeext
3296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3060
3297
$as_echo "$ac_cv_exeext" >&6; }
3062
3299
rm -f conftest.$ac_ext
3063
3300
EXEEXT=$ac_cv_exeext
3064
3301
ac_exeext=$EXEEXT
3065
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3302
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303
/* end confdefs.h. */
3308
FILE *f = fopen ("conftest.out", "w");
3309
return ferror (f) || fclose (f) != 0;
3315
ac_clean_files="$ac_clean_files conftest.out"
3316
# Check that the compiler produces executables we can run. If not, either
3317
# the compiler is broken, or we cross compile.
3318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3319
$as_echo_n "checking whether we are cross compiling... " >&6; }
3320
if test "$cross_compiling" != yes; then
3321
{ { ac_try="$ac_link"
3323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324
*) ac_try_echo=$ac_try;;
3326
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327
$as_echo "$ac_try_echo"; } >&5
3328
(eval "$ac_link") 2>&5
3330
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331
test $ac_status = 0; }
3332
if { ac_try='./conftest$ac_cv_exeext'
3333
{ { case "(($ac_try" in
3334
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335
*) ac_try_echo=$ac_try;;
3337
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338
$as_echo "$ac_try_echo"; } >&5
3339
(eval "$ac_try") 2>&5
3341
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342
test $ac_status = 0; }; }; then
3345
if test "$cross_compiling" = maybe; then
3348
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350
as_fn_error "cannot run C compiled programs.
3351
If you meant to cross compile, use \`--host'.
3352
See \`config.log' for more details." "$LINENO" 5; }
3356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3357
$as_echo "$cross_compiling" >&6; }
3359
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3360
ac_clean_files=$ac_clean_files_save
3361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3066
3362
$as_echo_n "checking for suffix of object files... " >&6; }
3067
if test "${ac_cv_objext+set}" = set; then
3363
if test "${ac_cv_objext+set}" = set; then :
3068
3364
$as_echo_n "(cached) " >&6
3070
cat >conftest.$ac_ext <<_ACEOF
3073
cat confdefs.h >>conftest.$ac_ext
3074
cat >>conftest.$ac_ext <<_ACEOF
3366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075
3367
/* end confdefs.h. */
3976
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4106
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977
4107
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3979
See \`config.log' for more details." >&5
3980
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3981
See \`config.log' for more details." >&2;}
3982
{ (exit 1); exit 1; }; }; }
4108
as_fn_error "no acceptable C compiler found in \$PATH
4109
See \`config.log' for more details." "$LINENO" 5; }
3984
4111
# Provide some information about the compiler.
3985
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4112
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3986
4113
set X $ac_compile
3988
{ (ac_try="$ac_compiler --version >&5"
3990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991
*) ac_try_echo=$ac_try;;
3993
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3994
$as_echo "$ac_try_echo") >&5
3995
(eval "$ac_compiler --version >&5") 2>&5
3997
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998
(exit $ac_status); }
3999
{ (ac_try="$ac_compiler -v >&5"
4001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002
*) ac_try_echo=$ac_try;;
4004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4005
$as_echo "$ac_try_echo") >&5
4006
(eval "$ac_compiler -v >&5") 2>&5
4008
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009
(exit $ac_status); }
4010
{ (ac_try="$ac_compiler -V >&5"
4012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013
*) ac_try_echo=$ac_try;;
4015
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4016
$as_echo "$ac_try_echo") >&5
4017
(eval "$ac_compiler -V >&5") 2>&5
4019
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020
(exit $ac_status); }
4115
for ac_option in --version -v -V -qversion; do
4116
{ { ac_try="$ac_compiler $ac_option >&5"
4118
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119
*) ac_try_echo=$ac_try;;
4121
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122
$as_echo "$ac_try_echo"; } >&5
4123
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4125
if test -s conftest.err; then
4127
... rest of stderr output deleted ...
4128
10q' conftest.err >conftest.er1
4129
cat conftest.er1 >&5
4131
rm -f conftest.er1 conftest.err
4132
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133
test $ac_status = 0; }
4022
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4023
4137
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4024
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4138
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4025
4139
$as_echo_n "(cached) " >&6
4027
cat >conftest.$ac_ext <<_ACEOF
4030
cat confdefs.h >>conftest.$ac_ext
4031
cat >>conftest.$ac_ext <<_ACEOF
4141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032
4142
/* end confdefs.h. */
4786
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4773
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4787
4774
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4788
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4789
See \`config.log' for more details." >&5
4790
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4791
See \`config.log' for more details." >&2;}
4792
{ (exit 1); exit 1; }; }; }
4775
as_fn_error "no acceptable C compiler found in \$PATH
4776
See \`config.log' for more details." "$LINENO" 5; }
4794
4778
# Provide some information about the compiler.
4795
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4779
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4796
4780
set X $ac_compile
4798
{ (ac_try="$ac_compiler --version >&5"
4800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801
*) ac_try_echo=$ac_try;;
4803
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4804
$as_echo "$ac_try_echo") >&5
4805
(eval "$ac_compiler --version >&5") 2>&5
4807
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808
(exit $ac_status); }
4809
{ (ac_try="$ac_compiler -v >&5"
4811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812
*) ac_try_echo=$ac_try;;
4814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4815
$as_echo "$ac_try_echo") >&5
4816
(eval "$ac_compiler -v >&5") 2>&5
4818
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819
(exit $ac_status); }
4820
{ (ac_try="$ac_compiler -V >&5"
4822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823
*) ac_try_echo=$ac_try;;
4825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826
$as_echo "$ac_try_echo") >&5
4827
(eval "$ac_compiler -V >&5") 2>&5
4829
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830
(exit $ac_status); }
4782
for ac_option in --version -v -V -qversion; do
4783
{ { ac_try="$ac_compiler $ac_option >&5"
4785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786
*) ac_try_echo=$ac_try;;
4788
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4789
$as_echo "$ac_try_echo"; } >&5
4790
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4792
if test -s conftest.err; then
4794
... rest of stderr output deleted ...
4795
10q' conftest.err >conftest.er1
4796
cat conftest.er1 >&5
4798
rm -f conftest.er1 conftest.err
4799
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800
test $ac_status = 0; }
4832
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4833
4804
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4834
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4805
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4835
4806
$as_echo_n "(cached) " >&6
4837
cat >conftest.$ac_ext <<_ACEOF
4840
cat confdefs.h >>conftest.$ac_ext
4841
cat >>conftest.$ac_ext <<_ACEOF
4808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842
4809
/* end confdefs.h. */
5448
if { (ac_try="$ac_cpp conftest.$ac_ext"
5450
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451
*) ac_try_echo=$ac_try;;
5453
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454
$as_echo "$ac_try_echo") >&5
5455
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5457
grep -v '^ *+' conftest.er1 >conftest.err
5459
cat conftest.err >&5
5460
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461
(exit $ac_status); } >/dev/null && {
5462
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5463
test ! -s conftest.err
5240
if ac_fn_c_try_cpp "$LINENO"; then :
5467
$as_echo "$as_me: failed program was:" >&5
5468
sed 's/^/| /' conftest.$ac_ext >&5
5470
5243
# Broken: fails on valid input.
5474
5246
rm -f conftest.err conftest.$ac_ext
5476
5248
# OK, works on sane cases. Now check whether nonexistent headers
5477
5249
# can be detected and how.
5478
cat >conftest.$ac_ext <<_ACEOF
5481
cat confdefs.h >>conftest.$ac_ext
5482
cat >>conftest.$ac_ext <<_ACEOF
5250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483
5251
/* end confdefs.h. */
5484
5252
#include <ac_nonexistent.h>
5486
if { (ac_try="$ac_cpp conftest.$ac_ext"
5488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489
*) ac_try_echo=$ac_try;;
5491
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492
$as_echo "$ac_try_echo") >&5
5493
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5495
grep -v '^ *+' conftest.er1 >conftest.err
5497
cat conftest.err >&5
5498
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499
(exit $ac_status); } >/dev/null && {
5500
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5501
test ! -s conftest.err
5254
if ac_fn_c_try_cpp "$LINENO"; then :
5503
5255
# Broken: success on invalid input.
5506
$as_echo "$as_me: failed program was:" >&5
5507
sed 's/^/| /' conftest.$ac_ext >&5
5509
5258
# Passes both tests.
5510
5259
ac_preproc_ok=:
5514
5262
rm -f conftest.err conftest.$ac_ext
5517
5265
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5518
5266
rm -f conftest.err conftest.$ac_ext
5519
if $ac_preproc_ok; then
5267
if $ac_preproc_ok; then :
5522
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5270
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5523
5271
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5524
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5525
See \`config.log' for more details." >&5
5526
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5527
See \`config.log' for more details." >&2;}
5528
{ (exit 1); exit 1; }; }; }
5272
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5273
See \`config.log' for more details." "$LINENO" 5; }
5999
if { (ac_try="$ac_cpp conftest.$ac_ext"
6001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002
*) ac_try_echo=$ac_try;;
6004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005
$as_echo "$ac_try_echo") >&5
6006
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6008
grep -v '^ *+' conftest.er1 >conftest.err
6010
cat conftest.err >&5
6011
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012
(exit $ac_status); } >/dev/null && {
6013
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6014
test ! -s conftest.err
5622
if ac_fn_c_try_cpp "$LINENO"; then :
6018
$as_echo "$as_me: failed program was:" >&5
6019
sed 's/^/| /' conftest.$ac_ext >&5
6021
5625
# Broken: fails on valid input.
6025
5628
rm -f conftest.err conftest.$ac_ext
6027
5630
# OK, works on sane cases. Now check whether nonexistent headers
6028
5631
# can be detected and how.
6029
cat >conftest.$ac_ext <<_ACEOF
6032
cat confdefs.h >>conftest.$ac_ext
6033
cat >>conftest.$ac_ext <<_ACEOF
5632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034
5633
/* end confdefs.h. */
6035
5634
#include <ac_nonexistent.h>
6037
if { (ac_try="$ac_cpp conftest.$ac_ext"
6039
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040
*) ac_try_echo=$ac_try;;
6042
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6043
$as_echo "$ac_try_echo") >&5
6044
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6046
grep -v '^ *+' conftest.er1 >conftest.err
6048
cat conftest.err >&5
6049
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050
(exit $ac_status); } >/dev/null && {
6051
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6052
test ! -s conftest.err
5636
if ac_fn_c_try_cpp "$LINENO"; then :
6054
5637
# Broken: success on invalid input.
6057
$as_echo "$as_me: failed program was:" >&5
6058
sed 's/^/| /' conftest.$ac_ext >&5
6060
5640
# Passes both tests.
6061
5641
ac_preproc_ok=:
6065
5644
rm -f conftest.err conftest.$ac_ext
6068
5647
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069
5648
rm -f conftest.err conftest.$ac_ext
6070
if $ac_preproc_ok; then
5649
if $ac_preproc_ok; then :
6073
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5652
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6074
5653
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6075
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6076
See \`config.log' for more details." >&5
6077
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6078
See \`config.log' for more details." >&2;}
6079
{ (exit 1); exit 1; }; }; }
5654
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5655
See \`config.log' for more details." "$LINENO" 5; }
6616
6073
# existing .o file with -o, though they will create one.
6617
6074
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6618
6075
rm -f conftest2.*
6619
if { (case "(($ac_try" in
6620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621
*) ac_try_echo=$ac_try;;
6623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6624
$as_echo "$ac_try_echo") >&5
6625
(eval "$ac_try") 2>&5
6627
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628
(exit $ac_status); } &&
6629
test -f conftest2.$ac_objext && { (case "(($ac_try" in
6630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631
*) ac_try_echo=$ac_try;;
6633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6634
$as_echo "$ac_try_echo") >&5
6635
(eval "$ac_try") 2>&5
6637
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638
(exit $ac_status); };
6076
if { { case "(($ac_try" in
6077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078
*) ac_try_echo=$ac_try;;
6080
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6081
$as_echo "$ac_try_echo"; } >&5
6082
(eval "$ac_try") 2>&5
6084
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6085
test $ac_status = 0; } &&
6086
test -f conftest2.$ac_objext && { { case "(($ac_try" in
6087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088
*) ac_try_echo=$ac_try;;
6090
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6091
$as_echo "$ac_try_echo"; } >&5
6092
(eval "$ac_try") 2>&5
6094
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6095
test $ac_status = 0; };
6640
6097
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6641
6098
if test "x$CC" != xcc; then
6642
6099
# Test first that cc exists at all.
6643
6100
if { ac_try='cc -c conftest.$ac_ext >&5'
6644
{ (case "(($ac_try" in
6101
{ { case "(($ac_try" in
6645
6102
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646
6103
*) ac_try_echo=$ac_try;;
6648
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649
$as_echo "$ac_try_echo") >&5
6105
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6106
$as_echo "$ac_try_echo"; } >&5
6650
6107
(eval "$ac_try") 2>&5
6652
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653
(exit $ac_status); }; }; then
6109
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110
test $ac_status = 0; }; }; then
6654
6111
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6655
6112
rm -f conftest2.*
6656
if { (case "(($ac_try" in
6657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658
*) ac_try_echo=$ac_try;;
6660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6661
$as_echo "$ac_try_echo") >&5
6662
(eval "$ac_try") 2>&5
6664
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665
(exit $ac_status); } &&
6666
test -f conftest2.$ac_objext && { (case "(($ac_try" in
6667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668
*) ac_try_echo=$ac_try;;
6670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6671
$as_echo "$ac_try_echo") >&5
6672
(eval "$ac_try") 2>&5
6674
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675
(exit $ac_status); };
6113
if { { case "(($ac_try" in
6114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115
*) ac_try_echo=$ac_try;;
6117
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6118
$as_echo "$ac_try_echo"; } >&5
6119
(eval "$ac_try") 2>&5
6121
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122
test $ac_status = 0; } &&
6123
test -f conftest2.$ac_objext && { { case "(($ac_try" in
6124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125
*) ac_try_echo=$ac_try;;
6127
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6128
$as_echo "$ac_try_echo"; } >&5
6129
(eval "$ac_try") 2>&5
6131
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132
test $ac_status = 0; };
6677
6134
# cc works too.
6896
for ac_header in locale.h
6898
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6899
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6900
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6901
$as_echo_n "checking for $ac_header... " >&6; }
6902
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6903
$as_echo_n "(cached) " >&6
6905
ac_res=`eval 'as_val=${'$as_ac_Header'}
6906
$as_echo "$as_val"'`
6907
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6908
$as_echo "$ac_res" >&6; }
6910
# Is the header compilable?
6911
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6912
$as_echo_n "checking $ac_header usability... " >&6; }
6913
cat >conftest.$ac_ext <<_ACEOF
6916
cat confdefs.h >>conftest.$ac_ext
6917
cat >>conftest.$ac_ext <<_ACEOF
6918
/* end confdefs.h. */
6919
$ac_includes_default
6920
#include <$ac_header>
6922
rm -f conftest.$ac_objext
6923
if { (ac_try="$ac_compile"
6925
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926
*) ac_try_echo=$ac_try;;
6928
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6929
$as_echo "$ac_try_echo") >&5
6930
(eval "$ac_compile") 2>conftest.er1
6932
grep -v '^ *+' conftest.er1 >conftest.err
6934
cat conftest.err >&5
6935
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936
(exit $ac_status); } && {
6937
test -z "$ac_c_werror_flag" ||
6938
test ! -s conftest.err
6939
} && test -s conftest.$ac_objext; then
6940
ac_header_compiler=yes
6942
$as_echo "$as_me: failed program was:" >&5
6943
sed 's/^/| /' conftest.$ac_ext >&5
6945
ac_header_compiler=no
6948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6950
$as_echo "$ac_header_compiler" >&6; }
6952
# Is the header present?
6953
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6954
$as_echo_n "checking $ac_header presence... " >&6; }
6955
cat >conftest.$ac_ext <<_ACEOF
6958
cat confdefs.h >>conftest.$ac_ext
6959
cat >>conftest.$ac_ext <<_ACEOF
6960
/* end confdefs.h. */
6961
#include <$ac_header>
6963
if { (ac_try="$ac_cpp conftest.$ac_ext"
6965
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966
*) ac_try_echo=$ac_try;;
6968
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6969
$as_echo "$ac_try_echo") >&5
6970
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6972
grep -v '^ *+' conftest.er1 >conftest.err
6974
cat conftest.err >&5
6975
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976
(exit $ac_status); } >/dev/null && {
6977
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6978
test ! -s conftest.err
6980
ac_header_preproc=yes
6982
$as_echo "$as_me: failed program was:" >&5
6983
sed 's/^/| /' conftest.$ac_ext >&5
6985
ac_header_preproc=no
6988
rm -f conftest.err conftest.$ac_ext
6989
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6990
$as_echo "$ac_header_preproc" >&6; }
6992
# So? What about this header?
6993
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6995
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6996
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6997
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6998
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6999
ac_header_preproc=yes
7002
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7003
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7004
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7005
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7006
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7007
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7008
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7009
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7010
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7011
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7012
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7013
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7017
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7018
$as_echo_n "checking for $ac_header... " >&6; }
7019
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7020
$as_echo_n "(cached) " >&6
7022
eval "$as_ac_Header=\$ac_header_preproc"
7024
ac_res=`eval 'as_val=${'$as_ac_Header'}
7025
$as_echo "$as_val"'`
7026
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7027
$as_echo "$ac_res" >&6; }
7030
as_val=`eval 'as_val=${'$as_ac_Header'}
7031
$as_echo "$as_val"'`
7032
if test "x$as_val" = x""yes; then
6295
for ac_header in locale.h
6297
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
6298
if test "x$ac_cv_header_locale_h" = x""yes; then :
7033
6299
cat >>confdefs.h <<_ACEOF
7034
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6300
#define HAVE_LOCALE_H 1
7114
if test "${ac_cv_header_libintl_h+set}" = set; then
7115
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
7116
$as_echo_n "checking for libintl.h... " >&6; }
7117
if test "${ac_cv_header_libintl_h+set}" = set; then
7118
$as_echo_n "(cached) " >&6
7120
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7121
$as_echo "$ac_cv_header_libintl_h" >&6; }
7123
# Is the header compilable?
7124
{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
7125
$as_echo_n "checking libintl.h usability... " >&6; }
7126
cat >conftest.$ac_ext <<_ACEOF
7129
cat confdefs.h >>conftest.$ac_ext
7130
cat >>conftest.$ac_ext <<_ACEOF
7131
/* end confdefs.h. */
7132
$ac_includes_default
7133
#include <libintl.h>
7135
rm -f conftest.$ac_objext
7136
if { (ac_try="$ac_compile"
7138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139
*) ac_try_echo=$ac_try;;
7141
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7142
$as_echo "$ac_try_echo") >&5
7143
(eval "$ac_compile") 2>conftest.er1
7145
grep -v '^ *+' conftest.er1 >conftest.err
7147
cat conftest.err >&5
7148
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149
(exit $ac_status); } && {
7150
test -z "$ac_c_werror_flag" ||
7151
test ! -s conftest.err
7152
} && test -s conftest.$ac_objext; then
7153
ac_header_compiler=yes
7155
$as_echo "$as_me: failed program was:" >&5
7156
sed 's/^/| /' conftest.$ac_ext >&5
7158
ac_header_compiler=no
7161
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7163
$as_echo "$ac_header_compiler" >&6; }
7165
# Is the header present?
7166
{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
7167
$as_echo_n "checking libintl.h presence... " >&6; }
7168
cat >conftest.$ac_ext <<_ACEOF
7171
cat confdefs.h >>conftest.$ac_ext
7172
cat >>conftest.$ac_ext <<_ACEOF
7173
/* end confdefs.h. */
7174
#include <libintl.h>
7176
if { (ac_try="$ac_cpp conftest.$ac_ext"
7178
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179
*) ac_try_echo=$ac_try;;
7181
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7182
$as_echo "$ac_try_echo") >&5
7183
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7185
grep -v '^ *+' conftest.er1 >conftest.err
7187
cat conftest.err >&5
7188
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189
(exit $ac_status); } >/dev/null && {
7190
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7191
test ! -s conftest.err
7193
ac_header_preproc=yes
7195
$as_echo "$as_me: failed program was:" >&5
7196
sed 's/^/| /' conftest.$ac_ext >&5
7198
ac_header_preproc=no
7201
rm -f conftest.err conftest.$ac_ext
7202
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7203
$as_echo "$ac_header_preproc" >&6; }
7205
# So? What about this header?
7206
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7208
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7209
$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7210
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7211
$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7212
ac_header_preproc=yes
7215
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7216
$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7217
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7218
$as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7219
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7220
$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7221
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7222
$as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7223
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7224
$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7225
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7226
$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7230
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
7231
$as_echo_n "checking for libintl.h... " >&6; }
7232
if test "${ac_cv_header_libintl_h+set}" = set; then
7233
$as_echo_n "(cached) " >&6
7235
ac_cv_header_libintl_h=$ac_header_preproc
7237
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7238
$as_echo "$ac_cv_header_libintl_h" >&6; }
7241
if test "x$ac_cv_header_libintl_h" = x""yes; then
6349
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
6350
if test "x$ac_cv_header_libintl_h" = x""yes; then :
7242
6351
gt_cv_func_dgettext_libintl="no"
7243
6352
libintl_extra_libs=""
7246
6355
# First check in libc
7248
{ $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
7249
6358
$as_echo_n "checking for ngettext in libc... " >&6; }
7250
if test "${gt_cv_func_ngettext_libc+set}" = set; then
6359
if test "${gt_cv_func_ngettext_libc+set}" = set; then :
7251
6360
$as_echo_n "(cached) " >&6
7253
cat >conftest.$ac_ext <<_ACEOF
7256
cat confdefs.h >>conftest.$ac_ext
7257
cat >>conftest.$ac_ext <<_ACEOF
6362
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258
6363
/* end confdefs.h. */
7260
6365
#include <libintl.h>
7330
rm -f conftest.$ac_objext conftest$ac_exeext
7331
if { (ac_try="$ac_link"
7333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334
*) ac_try_echo=$ac_try;;
7336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7337
$as_echo "$ac_try_echo") >&5
7338
(eval "$ac_link") 2>conftest.er1
7340
grep -v '^ *+' conftest.er1 >conftest.err
7342
cat conftest.err >&5
7343
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344
(exit $ac_status); } && {
7345
test -z "$ac_c_werror_flag" ||
7346
test ! -s conftest.err
7347
} && test -s conftest$ac_exeext && {
7348
test "$cross_compiling" = yes ||
7349
$as_test_x conftest$ac_exeext
6406
if ac_fn_c_try_link "$LINENO"; then :
7351
6407
gt_cv_func_dgettext_libc=yes
7353
$as_echo "$as_me: failed program was:" >&5
7354
sed 's/^/| /' conftest.$ac_ext >&5
7356
gt_cv_func_dgettext_libc=no
7359
rm -rf conftest.dSYM
7360
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7361
conftest$ac_exeext conftest.$ac_ext
7364
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6409
gt_cv_func_dgettext_libc=no
6411
rm -f core conftest.err conftest.$ac_objext \
6412
conftest$ac_exeext conftest.$ac_ext
6415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
7365
6416
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
7368
6419
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7370
for ac_func in bind_textdomain_codeset
7372
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7373
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7374
$as_echo_n "checking for $ac_func... " >&6; }
7375
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7376
$as_echo_n "(cached) " >&6
7378
cat >conftest.$ac_ext <<_ACEOF
7381
cat confdefs.h >>conftest.$ac_ext
7382
cat >>conftest.$ac_ext <<_ACEOF
7383
/* end confdefs.h. */
7384
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7385
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7386
#define $ac_func innocuous_$ac_func
7388
/* System header to define __stub macros and hopefully few prototypes,
7389
which can conflict with char $ac_func (); below.
7390
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7391
<limits.h> exists even on freestanding compilers. */
7394
# include <limits.h>
7396
# include <assert.h>
7401
/* Override any GCC internal prototype to avoid an error.
7402
Use char because int might match the return type of a GCC
7403
builtin and then its argument prototype would still apply. */
7408
/* The GNU C library defines this for functions which it implements
7409
to always fail with ENOSYS. Some functions are actually named
7410
something starting with __ and the normal name is an alias. */
7411
#if defined __stub_$ac_func || defined __stub___$ac_func
7423
rm -f conftest.$ac_objext conftest$ac_exeext
7424
if { (ac_try="$ac_link"
7426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427
*) ac_try_echo=$ac_try;;
7429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7430
$as_echo "$ac_try_echo") >&5
7431
(eval "$ac_link") 2>conftest.er1
7433
grep -v '^ *+' conftest.er1 >conftest.err
7435
cat conftest.err >&5
7436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437
(exit $ac_status); } && {
7438
test -z "$ac_c_werror_flag" ||
7439
test ! -s conftest.err
7440
} && test -s conftest$ac_exeext && {
7441
test "$cross_compiling" = yes ||
7442
$as_test_x conftest$ac_exeext
7444
eval "$as_ac_var=yes"
7446
$as_echo "$as_me: failed program was:" >&5
7447
sed 's/^/| /' conftest.$ac_ext >&5
7449
eval "$as_ac_var=no"
7452
rm -rf conftest.dSYM
7453
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7454
conftest$ac_exeext conftest.$ac_ext
7456
ac_res=`eval 'as_val=${'$as_ac_var'}
7457
$as_echo "$as_val"'`
7458
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7459
$as_echo "$ac_res" >&6; }
7460
as_val=`eval 'as_val=${'$as_ac_var'}
7461
$as_echo "$as_val"'`
7462
if test "x$as_val" = x""yes; then
6420
for ac_func in bind_textdomain_codeset
6422
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6423
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
7463
6424
cat >>confdefs.h <<_ACEOF
7464
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6425
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
7840
6656
glib_save_LIBS="$LIBS"
7841
6657
LIBS="$LIBS -lintl $libintl_extra_libs"
7842
6658
unset ac_cv_func_bind_textdomain_codeset
7844
for ac_func in bind_textdomain_codeset
7846
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7847
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7848
$as_echo_n "checking for $ac_func... " >&6; }
7849
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7850
$as_echo_n "(cached) " >&6
7852
cat >conftest.$ac_ext <<_ACEOF
7855
cat confdefs.h >>conftest.$ac_ext
7856
cat >>conftest.$ac_ext <<_ACEOF
7857
/* end confdefs.h. */
7858
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7859
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7860
#define $ac_func innocuous_$ac_func
7862
/* System header to define __stub macros and hopefully few prototypes,
7863
which can conflict with char $ac_func (); below.
7864
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865
<limits.h> exists even on freestanding compilers. */
7868
# include <limits.h>
7870
# include <assert.h>
7875
/* Override any GCC internal prototype to avoid an error.
7876
Use char because int might match the return type of a GCC
7877
builtin and then its argument prototype would still apply. */
7882
/* The GNU C library defines this for functions which it implements
7883
to always fail with ENOSYS. Some functions are actually named
7884
something starting with __ and the normal name is an alias. */
7885
#if defined __stub_$ac_func || defined __stub___$ac_func
7897
rm -f conftest.$ac_objext conftest$ac_exeext
7898
if { (ac_try="$ac_link"
7900
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901
*) ac_try_echo=$ac_try;;
7903
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904
$as_echo "$ac_try_echo") >&5
7905
(eval "$ac_link") 2>conftest.er1
7907
grep -v '^ *+' conftest.er1 >conftest.err
7909
cat conftest.err >&5
7910
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911
(exit $ac_status); } && {
7912
test -z "$ac_c_werror_flag" ||
7913
test ! -s conftest.err
7914
} && test -s conftest$ac_exeext && {
7915
test "$cross_compiling" = yes ||
7916
$as_test_x conftest$ac_exeext
7918
eval "$as_ac_var=yes"
7920
$as_echo "$as_me: failed program was:" >&5
7921
sed 's/^/| /' conftest.$ac_ext >&5
7923
eval "$as_ac_var=no"
7926
rm -rf conftest.dSYM
7927
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928
conftest$ac_exeext conftest.$ac_ext
7930
ac_res=`eval 'as_val=${'$as_ac_var'}
7931
$as_echo "$as_val"'`
7932
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7933
$as_echo "$ac_res" >&6; }
7934
as_val=`eval 'as_val=${'$as_ac_var'}
7935
$as_echo "$as_val"'`
7936
if test "x$as_val" = x""yes; then
6659
for ac_func in bind_textdomain_codeset
6661
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6662
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
7937
6663
cat >>confdefs.h <<_ACEOF
7938
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6664
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
7999
6723
MSGFMT="$ac_cv_path_MSGFMT"
8000
6724
if test "$MSGFMT" != "no"; then
8001
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
6725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8002
6726
$as_echo "$MSGFMT" >&6; }
8004
{ $as_echo "$as_me:$LINENO: result: no" >&5
6728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005
6729
$as_echo "no" >&6; }
8007
6731
if test "$MSGFMT" != "no"; then
8008
6732
glib_save_LIBS="$LIBS"
8009
6733
LIBS="$LIBS $INTLLIBS"
8011
for ac_func in dcgettext
8013
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8014
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8015
$as_echo_n "checking for $ac_func... " >&6; }
8016
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8017
$as_echo_n "(cached) " >&6
8019
cat >conftest.$ac_ext <<_ACEOF
8022
cat confdefs.h >>conftest.$ac_ext
8023
cat >>conftest.$ac_ext <<_ACEOF
8024
/* end confdefs.h. */
8025
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8026
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8027
#define $ac_func innocuous_$ac_func
8029
/* System header to define __stub macros and hopefully few prototypes,
8030
which can conflict with char $ac_func (); below.
8031
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8032
<limits.h> exists even on freestanding compilers. */
8035
# include <limits.h>
8037
# include <assert.h>
8042
/* Override any GCC internal prototype to avoid an error.
8043
Use char because int might match the return type of a GCC
8044
builtin and then its argument prototype would still apply. */
8049
/* The GNU C library defines this for functions which it implements
8050
to always fail with ENOSYS. Some functions are actually named
8051
something starting with __ and the normal name is an alias. */
8052
#if defined __stub_$ac_func || defined __stub___$ac_func
8064
rm -f conftest.$ac_objext conftest$ac_exeext
8065
if { (ac_try="$ac_link"
8067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068
*) ac_try_echo=$ac_try;;
8070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8071
$as_echo "$ac_try_echo") >&5
8072
(eval "$ac_link") 2>conftest.er1
8074
grep -v '^ *+' conftest.er1 >conftest.err
8076
cat conftest.err >&5
8077
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078
(exit $ac_status); } && {
8079
test -z "$ac_c_werror_flag" ||
8080
test ! -s conftest.err
8081
} && test -s conftest$ac_exeext && {
8082
test "$cross_compiling" = yes ||
8083
$as_test_x conftest$ac_exeext
8085
eval "$as_ac_var=yes"
8087
$as_echo "$as_me: failed program was:" >&5
8088
sed 's/^/| /' conftest.$ac_ext >&5
8090
eval "$as_ac_var=no"
8093
rm -rf conftest.dSYM
8094
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8095
conftest$ac_exeext conftest.$ac_ext
8097
ac_res=`eval 'as_val=${'$as_ac_var'}
8098
$as_echo "$as_val"'`
8099
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8100
$as_echo "$ac_res" >&6; }
8101
as_val=`eval 'as_val=${'$as_ac_var'}
8102
$as_echo "$as_val"'`
8103
if test "x$as_val" = x""yes; then
6734
for ac_func in dcgettext
6736
ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
6737
if test "x$ac_cv_func_dcgettext" = x""yes; then :
8104
6738
cat >>confdefs.h <<_ACEOF
8105
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6739
#define HAVE_DCGETTEXT 1
8112
{ $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
6746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8113
6747
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
8114
6748
cat >conftest.foo <<_ACEOF
8233
rm -f conftest.$ac_objext conftest$ac_exeext
8234
if { (ac_try="$ac_link"
8236
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237
*) ac_try_echo=$ac_try;;
8239
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8240
$as_echo "$ac_try_echo") >&5
8241
(eval "$ac_link") 2>conftest.er1
8243
grep -v '^ *+' conftest.er1 >conftest.err
8245
cat conftest.err >&5
8246
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247
(exit $ac_status); } && {
8248
test -z "$ac_c_werror_flag" ||
8249
test ! -s conftest.err
8250
} && test -s conftest$ac_exeext && {
8251
test "$cross_compiling" = yes ||
8252
$as_test_x conftest$ac_exeext
6863
if ac_fn_c_try_link "$LINENO"; then :
8255
6865
DATADIRNAME=share
8257
$as_echo "$as_me: failed program was:" >&5
8258
sed 's/^/| /' conftest.$ac_ext >&5
8262
{ $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8263
$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
8264
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8265
$as_echo_n "(cached) " >&6
8267
cat >conftest.$ac_ext <<_ACEOF
8270
cat confdefs.h >>conftest.$ac_ext
8271
cat >>conftest.$ac_ext <<_ACEOF
8272
/* end confdefs.h. */
8273
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8274
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8277
/* System header to define __stub macros and hopefully few prototypes,
8278
which can conflict with char bind_textdomain_codeset (); below.
8279
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280
<limits.h> exists even on freestanding compilers. */
8283
# include <limits.h>
8285
# include <assert.h>
8288
#undef bind_textdomain_codeset
8290
/* Override any GCC internal prototype to avoid an error.
8291
Use char because int might match the return type of a GCC
8292
builtin and then its argument prototype would still apply. */
8296
char bind_textdomain_codeset ();
8297
/* The GNU C library defines this for functions which it implements
8298
to always fail with ENOSYS. Some functions are actually named
8299
something starting with __ and the normal name is an alias. */
8300
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8307
return bind_textdomain_codeset ();
8312
rm -f conftest.$ac_objext conftest$ac_exeext
8313
if { (ac_try="$ac_link"
8315
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316
*) ac_try_echo=$ac_try;;
8318
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319
$as_echo "$ac_try_echo") >&5
8320
(eval "$ac_link") 2>conftest.er1
8322
grep -v '^ *+' conftest.er1 >conftest.err
8324
cat conftest.err >&5
8325
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326
(exit $ac_status); } && {
8327
test -z "$ac_c_werror_flag" ||
8328
test ! -s conftest.err
8329
} && test -s conftest$ac_exeext && {
8330
test "$cross_compiling" = yes ||
8331
$as_test_x conftest$ac_exeext
8333
ac_cv_func_bind_textdomain_codeset=yes
8335
$as_echo "$as_me: failed program was:" >&5
8336
sed 's/^/| /' conftest.$ac_ext >&5
8338
ac_cv_func_bind_textdomain_codeset=no
8341
rm -rf conftest.dSYM
8342
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8343
conftest$ac_exeext conftest.$ac_ext
8345
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8346
$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
8347
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
6869
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6870
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
8349
6872
DATADIRNAME=share
8648
7167
# Put the nasty error message in config.log where it belongs
8649
7168
echo "$GLIB_PKG_ERRORS" >&5
8651
{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0 ) were not met:
8655
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8656
installed software in a non-standard prefix.
8658
Alternatively, you may set the environment variables GLIB_CFLAGS
8659
and GLIB_LIBS to avoid the need to call pkg-config.
8660
See the pkg-config man page for more details.
8662
$as_echo "$as_me: error: Package requirements (glib-2.0 ) were not met:
8666
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8667
installed software in a non-standard prefix.
8669
Alternatively, you may set the environment variables GLIB_CFLAGS
8670
and GLIB_LIBS to avoid the need to call pkg-config.
8671
See the pkg-config man page for more details.
8673
{ (exit 1); exit 1; }; }
7170
as_fn_error "Package requirements (glib-2.0 ) were not met:
7174
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7175
installed software in a non-standard prefix.
7177
Alternatively, you may set the environment variables GLIB_CFLAGS
7178
and GLIB_LIBS to avoid the need to call pkg-config.
7179
See the pkg-config man page for more details.
8674
7181
elif test $pkg_failed = untried; then
8675
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7182
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8676
7183
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8677
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8678
is in your PATH or set the PKG_CONFIG environment variable to the full
8681
Alternatively, you may set the environment variables GLIB_CFLAGS
8682
and GLIB_LIBS to avoid the need to call pkg-config.
8683
See the pkg-config man page for more details.
8685
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8686
See \`config.log' for more details." >&5
8687
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8688
is in your PATH or set the PKG_CONFIG environment variable to the full
8691
Alternatively, you may set the environment variables GLIB_CFLAGS
8692
and GLIB_LIBS to avoid the need to call pkg-config.
8693
See the pkg-config man page for more details.
8695
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8696
See \`config.log' for more details." >&2;}
8697
{ (exit 1); exit 1; }; }; }
7184
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
7185
is in your PATH or set the PKG_CONFIG environment variable to the full
7188
Alternatively, you may set the environment variables GLIB_CFLAGS
7189
and GLIB_LIBS to avoid the need to call pkg-config.
7190
See the pkg-config man page for more details.
7192
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7193
See \`config.log' for more details." "$LINENO" 5; }
8699
7195
GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8700
7196
GLIB_LIBS=$pkg_cv_GLIB_LIBS
8701
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8702
7198
$as_echo "yes" >&6; }
8735
7230
if test "$GECKO_CFLAGS" = ""; then
8738
{ $as_echo "$as_me:$LINENO: checking for GECKO" >&5
8739
$as_echo_n "checking for GECKO... " >&6; }
8741
if test -n "$GECKO_CFLAGS"; then
8742
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
8743
elif test -n "$PKG_CONFIG"; then
8744
if test -n "$PKG_CONFIG" && \
8745
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxul < 1.9.2\"") >&5
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7234
$as_echo_n "checking for GECKO... " >&6; }
7236
if test -n "$GECKO_CFLAGS"; then
7237
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7238
elif test -n "$PKG_CONFIG"; then
7239
if test -n "$PKG_CONFIG" && \
7240
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul >= 2.0\""; } >&5
7241
($PKG_CONFIG --exists --print-errors "libxul >= 2.0") 2>&5
7243
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244
test $ac_status = 0; }; then
7245
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "libxul >= 2.0" 2>/dev/null`
7252
if test -n "$GECKO_LIBS"; then
7253
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7254
elif test -n "$PKG_CONFIG"; then
7255
if test -n "$PKG_CONFIG" && \
7256
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul >= 2.0\""; } >&5
7257
($PKG_CONFIG --exists --print-errors "libxul >= 2.0") 2>&5
7259
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260
test $ac_status = 0; }; then
7261
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "libxul >= 2.0" 2>/dev/null`
7271
if test $pkg_failed = yes; then
7273
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7274
_pkg_short_errors_supported=yes
7276
_pkg_short_errors_supported=no
7278
if test $_pkg_short_errors_supported = yes; then
7279
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul >= 2.0" 2>&1`
7281
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul >= 2.0" 2>&1`
7283
# Put the nasty error message in config.log where it belongs
7284
echo "$GECKO_PKG_ERRORS" >&5
7286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287
$as_echo "no" >&6; }
7288
{ $as_echo "$as_me:${as_lineno-$LINENO}: libxul >= 2.0 beta 5 not found, trying another" >&5
7289
$as_echo "$as_me: libxul >= 2.0 beta 5 not found, trying another" >&6;}
7290
elif test $pkg_failed = untried; then
7291
{ $as_echo "$as_me:${as_lineno-$LINENO}: libxul >= 2.0 beta 5 not found, trying another" >&5
7292
$as_echo "$as_me: libxul >= 2.0 beta 5 not found, trying another" >&6;}
7294
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7295
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7297
$as_echo "yes" >&6; }
7298
GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC"
7299
$as_echo "#define HAVE_NEW_XULRUNNER 1" >>confdefs.h
7300
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using libxul >= 2.0 beta 5" >&5
7301
$as_echo "$as_me: Using libxul >= 2.0 beta 5" >&6;}
7306
if test "$GECKO_CFLAGS" = ""; then
7309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7310
$as_echo_n "checking for GECKO... " >&6; }
7312
if test -n "$GECKO_CFLAGS"; then
7313
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7314
elif test -n "$PKG_CONFIG"; then
7315
if test -n "$PKG_CONFIG" && \
7316
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul < 1.9.2\""; } >&5
8746
7317
($PKG_CONFIG --exists --print-errors "libxul < 1.9.2") 2>&5
8748
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749
(exit $ac_status); }; then
7319
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320
test $ac_status = 0; }; then
8750
7321
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "libxul < 1.9.2" 2>/dev/null`
9459
8028
# Put the nasty error message in config.log where it belongs
9460
8029
echo "$DBUS_PKG_ERRORS" >&5
9462
{ { $as_echo "$as_me:$LINENO: error: Package requirements (dbus-1 >= 0.95 dbus-glib-1 >= 0.70) were not met:
9466
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9467
installed software in a non-standard prefix.
9469
Alternatively, you may set the environment variables DBUS_CFLAGS
9470
and DBUS_LIBS to avoid the need to call pkg-config.
9471
See the pkg-config man page for more details.
9473
$as_echo "$as_me: error: Package requirements (dbus-1 >= 0.95 dbus-glib-1 >= 0.70) were not met:
9477
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9478
installed software in a non-standard prefix.
9480
Alternatively, you may set the environment variables DBUS_CFLAGS
9481
and DBUS_LIBS to avoid the need to call pkg-config.
9482
See the pkg-config man page for more details.
9484
{ (exit 1); exit 1; }; }
8031
as_fn_error "Package requirements (dbus-1 >= 0.95 dbus-glib-1 >= 0.70) were not met:
8035
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8036
installed software in a non-standard prefix.
8038
Alternatively, you may set the environment variables DBUS_CFLAGS
8039
and DBUS_LIBS to avoid the need to call pkg-config.
8040
See the pkg-config man page for more details.
9485
8042
elif test $pkg_failed = untried; then
9486
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8043
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9487
8044
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9488
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9489
is in your PATH or set the PKG_CONFIG environment variable to the full
9492
Alternatively, you may set the environment variables DBUS_CFLAGS
9493
and DBUS_LIBS to avoid the need to call pkg-config.
9494
See the pkg-config man page for more details.
9496
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9497
See \`config.log' for more details." >&5
9498
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9499
is in your PATH or set the PKG_CONFIG environment variable to the full
9502
Alternatively, you may set the environment variables DBUS_CFLAGS
9503
and DBUS_LIBS to avoid the need to call pkg-config.
9504
See the pkg-config man page for more details.
9506
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9507
See \`config.log' for more details." >&2;}
9508
{ (exit 1); exit 1; }; }; }
8045
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
8046
is in your PATH or set the PKG_CONFIG environment variable to the full
8049
Alternatively, you may set the environment variables DBUS_CFLAGS
8050
and DBUS_LIBS to avoid the need to call pkg-config.
8051
See the pkg-config man page for more details.
8053
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8054
See \`config.log' for more details." "$LINENO" 5; }
9510
8056
DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
9511
8057
DBUS_LIBS=$pkg_cv_DBUS_LIBS
9512
{ $as_echo "$as_me:$LINENO: result: yes" >&5
8058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9513
8059
$as_echo "yes" >&6; }
9901
8439
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9902
{ { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9903
Usually this means the macro was only invoked conditionally." >&5
9904
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9905
Usually this means the macro was only invoked conditionally." >&2;}
9906
{ (exit 1); exit 1; }; }
8440
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
8441
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9908
8443
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9909
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9910
Usually this means the macro was only invoked conditionally." >&5
9911
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9912
Usually this means the macro was only invoked conditionally." >&2;}
9913
{ (exit 1); exit 1; }; }
9915
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9916
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9917
Usually this means the macro was only invoked conditionally." >&5
9918
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9919
Usually this means the macro was only invoked conditionally." >&2;}
9920
{ (exit 1); exit 1; }; }
9922
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9923
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9924
Usually this means the macro was only invoked conditionally." >&5
9925
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9926
Usually this means the macro was only invoked conditionally." >&2;}
9927
{ (exit 1); exit 1; }; }
9929
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9930
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9931
Usually this means the macro was only invoked conditionally." >&5
9932
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9933
Usually this means the macro was only invoked conditionally." >&2;}
9934
{ (exit 1); exit 1; }; }
8444
as_fn_error "conditional \"AMDEP\" was never defined.
8445
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8447
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8448
as_fn_error "conditional \"am__fastdepCC\" was never defined.
8449
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8451
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8452
as_fn_error "conditional \"am__fastdepCC\" was never defined.
8453
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8455
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8456
as_fn_error "conditional \"am__fastdepCC\" was never defined.
8457
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9936
8459
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9937
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9938
Usually this means the macro was only invoked conditionally." >&5
9939
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9940
Usually this means the macro was only invoked conditionally." >&2;}
9941
{ (exit 1); exit 1; }; }
9943
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
9944
{ { $as_echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9945
Usually this means the macro was only invoked conditionally." >&5
9946
$as_echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9947
Usually this means the macro was only invoked conditionally." >&2;}
9948
{ (exit 1); exit 1; }; }
9950
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
9951
{ { $as_echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9952
Usually this means the macro was only invoked conditionally." >&5
9953
$as_echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9954
Usually this means the macro was only invoked conditionally." >&2;}
9955
{ (exit 1); exit 1; }; }
9957
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
9958
{ { $as_echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9959
Usually this means the macro was only invoked conditionally." >&5
9960
$as_echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9961
Usually this means the macro was only invoked conditionally." >&2;}
9962
{ (exit 1); exit 1; }; }
9964
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
9965
{ { $as_echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9966
Usually this means the macro was only invoked conditionally." >&5
9967
$as_echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9968
Usually this means the macro was only invoked conditionally." >&2;}
9969
{ (exit 1); exit 1; }; }
8460
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
8461
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8463
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8464
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8465
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8467
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8468
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8469
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8471
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8472
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8473
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8475
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8476
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8477
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9972
8480
: ${CONFIG_STATUS=./config.status}
9973
8481
ac_write_fail=0
9974
8482
ac_clean_files_save=$ac_clean_files
9975
8483
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9976
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8484
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9977
8485
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9978
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8487
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9980
8489
# Generated by $as_me.
9981
8490
# Run this file to recreate the current configuration.