136
# Required to use basename.
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
test "X`expr 00001 : '.*\(...\)'`" = X001; then
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151
# Name of the executable.
152
as_me=`$as_basename -- "$0" ||
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
X"$0" : 'X\(//\)$' \| \
155
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157
sed '/^.*\/\([^/][^/]*\)\/*$/{
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
175
139
if test "x$CONFIG_SHELL" = x; then
176
if (eval ":") 2>/dev/null; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in #(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1"
178
if (eval "$as_required") 2>/dev/null; then :
177
179
as_have_required=yes
179
181
as_have_required=no
182
if test $as_have_required = yes && (eval ":
192
as_func_ret_success () {
195
as_func_ret_failure () {
200
if as_func_success; then
204
echo as_func_success failed.
207
if as_func_failure; then
209
echo as_func_failure succeeded.
212
if as_func_ret_success; then
216
echo as_func_ret_success failed.
219
if as_func_ret_failure; then
221
echo as_func_ret_failure succeeded.
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228
echo positional parameters were not saved.
231
test \$exitcode = 0) || { (exit 1); exit 1; }
236
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
") 2> /dev/null; then
242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
188
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246
191
test -z "$as_dir" && as_dir=.
249
195
for as_base in sh bash ksh sh5; do
250
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
196
# Try only shells that exist, to save several forks.
197
as_shell=$as_dir/$as_base
198
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200
CONFIG_SHELL=$as_shell as_have_required=yes
201
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211
CONFIG_SHELL=$SHELL as_have_required=yes
257
for as_shell in $as_candidate_shells $SHELL; do
258
# Try only shells that exist, to save several forks.
259
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
{ ("$as_shell") 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
279
CONFIG_SHELL=$as_shell
281
if { "$as_shell" 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
# is contrary to our usage. Disable this feature.
287
alias -g '${1+"$@"}'='"$@"'
290
case `(set -o) 2>/dev/null` in
291
*posix*) set -o posix ;;
307
as_func_ret_success () {
310
as_func_ret_failure () {
315
if as_func_success; then
319
echo as_func_success failed.
322
if as_func_failure; then
324
echo as_func_failure succeeded.
327
if as_func_ret_success; then
331
echo as_func_ret_success failed.
334
if as_func_ret_failure; then
336
echo as_func_ret_failure succeeded.
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
343
echo positional parameters were not saved.
346
test $exitcode = 0) || { (exit 1); exit 1; }
351
test "x$as_lineno_1" != "x$as_lineno_2" &&
352
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363
if test "x$CONFIG_SHELL" != x; then
364
for as_var in BASH_ENV ENV
365
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
216
if test "x$CONFIG_SHELL" != x; then :
217
# We cannot yet assume a decent shell, so we have to provide a
218
# neutralization value for shells without unset; and this also
219
# works around shells that cannot unset nonexistent variables.
220
# Preserve -v and -x to the replacement shell.
223
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367
224
export CONFIG_SHELL
368
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372
if test $as_have_required = no; then
373
echo This script requires a shell more modern than all the
374
echo shells that I found on your system. Please install a
375
echo modern shell, or manually run the script under such a
376
echo shell if you do have one.
377
{ (exit 1); exit 1; }
387
(eval "as_func_return () {
396
as_func_ret_success () {
399
as_func_ret_failure () {
404
if as_func_success; then
408
echo as_func_success failed.
411
if as_func_failure; then
413
echo as_func_failure succeeded.
416
if as_func_ret_success; then
420
echo as_func_ret_success failed.
423
if as_func_ret_failure; then
425
echo as_func_ret_failure succeeded.
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432
echo positional parameters were not saved.
435
test \$exitcode = 0") || {
436
echo No shell found that supports shell functions.
437
echo Please tell bug-autoconf@gnu.org about your system,
438
echo including any error possibly output before this message.
439
echo This can help us improve future autoconf versions.
440
echo Configuration will now proceed without shell functions.
447
test "x$as_lineno_1" != "x$as_lineno_2" &&
448
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
# uniformly replaced by the line number. The first 'sed' inserts a
452
# line-number line after each line using $LINENO; the second 'sed'
453
# does the real work. The second script uses 'N' to pair each
454
# line-number line with the line containing $LINENO, and appends
455
# trailing '-' during substitution so that $LINENO is not a special
457
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
# scripts with optimization help from Paolo Bonzini. Blame Lee
459
# E. McMahon (1931-1989) for sed's syntax. :-)
226
*v*x* | *x*v* ) as_opts=-vx ;;
231
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234
if test x$as_have_required = xno; then :
235
$as_echo "$0: This script requires a shell more modern than all"
236
$as_echo "$0: the shells that I found on your system."
237
if test x${ZSH_VERSION+set} = xset ; then
238
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
241
$as_echo "$0: Please tell bug-autoconf@gnu.org and
242
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243
$0: about your system, including any error possibly output
244
$0: before this message. Then install a modern shell, or
245
$0: manually run the script under such a shell if you do
252
SHELL=${CONFIG_SHELL-/bin/sh}
254
# Unset more variables known to interfere with behavior of common tools.
255
CLICOLOR_FORCE= GREP_OPTIONS=
256
unset CLICOLOR_FORCE GREP_OPTIONS
258
## --------------------- ##
259
## M4sh Shell Functions. ##
260
## --------------------- ##
263
# Portably unset VAR.
266
{ eval $1=; unset $1;}
270
# as_fn_set_status STATUS
271
# -----------------------
272
# Set $? to STATUS, without forking.
280
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290
# Create "$as_dir" as a directory, including parents if necessary.
295
-*) as_dir=./$as_dir;;
297
test -d "$as_dir" || eval $as_mkdir_p || {
301
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304
as_dirs="'$as_qdir' $as_dirs"
305
as_dir=`$as_dirname -- "$as_dir" ||
306
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307
X"$as_dir" : 'X\(//\)[^/]' \| \
308
X"$as_dir" : 'X\(//\)$' \| \
309
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310
$as_echo X"$as_dir" |
311
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328
test -d "$as_dir" && break
330
test -z "$as_dirs" || eval "mkdir $as_dirs"
331
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335
# as_fn_append VAR VALUE
336
# ----------------------
337
# Append the text in VALUE to the end of the definition contained in VAR. Take
338
# advantage of any shell optimizations that allow amortized linear growth over
339
# repeated appends, instead of the typical quadratic growth present in naive
341
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342
eval 'as_fn_append ()
355
# Perform arithmetic evaluation on the ARGs, and store the result in the
356
# global $as_val. Take advantage of shells that can avoid forks. The arguments
357
# must be portable across $(()) and expr.
358
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366
as_val=`expr "$@" || test $? -eq 1`
371
# as_fn_error STATUS ERROR [LINENO LOG_FD]
372
# ----------------------------------------
373
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375
# script with STATUS, using 1 if that was 0.
378
as_status=$1; test $as_status -eq 0 && as_status=1
380
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383
$as_echo "$as_me: error: $2" >&2
384
as_fn_exit $as_status
387
if expr a : '\(a\)' >/dev/null 2>&1 &&
388
test "X`expr 00001 : '.*\(...\)'`" = X001; then
394
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406
as_me=`$as_basename -- "$0" ||
407
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408
X"$0" : 'X\(//\)$' \| \
409
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411
sed '/^.*\/\([^/][^/]*\)\/*$/{
425
# Avoid depending upon Character Ranges.
426
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429
as_cr_digits='0123456789'
430
as_cr_alnum=$as_cr_Letters$as_cr_digits
433
as_lineno_1=$LINENO as_lineno_1a=$LINENO
434
as_lineno_2=$LINENO as_lineno_2a=$LINENO
435
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1498
1452
test -n "$ac_init_help" && exit $ac_status
1499
1453
if $ac_init_version; then
1501
xdriinfo configure 1.0.3
1502
generated by GNU Autoconf 2.63
1455
xdriinfo configure 1.0.4
1456
generated by GNU Autoconf 2.68
1504
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1505
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1458
Copyright (C) 2010 Free Software Foundation, Inc.
1506
1459
This configure script is free software; the Free Software Foundation
1507
1460
gives unlimited permission to copy, distribute and modify it.
1465
## ------------------------ ##
1466
## Autoconf initialization. ##
1467
## ------------------------ ##
1469
# ac_fn_c_try_compile LINENO
1470
# --------------------------
1471
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1472
ac_fn_c_try_compile ()
1474
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475
rm -f conftest.$ac_objext
1476
if { { ac_try="$ac_compile"
1478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479
*) ac_try_echo=$ac_try;;
1481
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482
$as_echo "$ac_try_echo"; } >&5
1483
(eval "$ac_compile") 2>conftest.err
1485
if test -s conftest.err; then
1486
grep -v '^ *+' conftest.err >conftest.er1
1487
cat conftest.er1 >&5
1488
mv -f conftest.er1 conftest.err
1490
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491
test $ac_status = 0; } && {
1492
test -z "$ac_c_werror_flag" ||
1493
test ! -s conftest.err
1494
} && test -s conftest.$ac_objext; then :
1497
$as_echo "$as_me: failed program was:" >&5
1498
sed 's/^/| /' conftest.$ac_ext >&5
1502
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503
as_fn_set_status $ac_retval
1505
} # ac_fn_c_try_compile
1507
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1508
# ---------------------------------------------
1509
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1511
ac_fn_c_check_decl ()
1513
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514
as_decl_name=`echo $2|sed 's/ *(.*//'`
1515
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1516
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1517
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1518
if eval \${$3+:} false; then :
1519
$as_echo_n "(cached) " >&6
1521
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1522
/* end confdefs.h. */
1527
#ifndef $as_decl_name
1529
(void) $as_decl_use;
1531
(void) $as_decl_name;
1539
if ac_fn_c_try_compile "$LINENO"; then :
1544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1548
$as_echo "$ac_res" >&6; }
1549
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551
} # ac_fn_c_check_decl
1553
# ac_fn_c_try_cpp LINENO
1554
# ----------------------
1555
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559
if { { ac_try="$ac_cpp conftest.$ac_ext"
1561
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562
*) ac_try_echo=$ac_try;;
1564
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565
$as_echo "$ac_try_echo"; } >&5
1566
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568
if test -s conftest.err; then
1569
grep -v '^ *+' conftest.err >conftest.er1
1570
cat conftest.er1 >&5
1571
mv -f conftest.er1 conftest.err
1573
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574
test $ac_status = 0; } > conftest.i && {
1575
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576
test ! -s conftest.err
1580
$as_echo "$as_me: failed program was:" >&5
1581
sed 's/^/| /' conftest.$ac_ext >&5
1585
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586
as_fn_set_status $ac_retval
1590
# ac_fn_c_try_run LINENO
1591
# ----------------------
1592
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1593
# that executables *can* be run.
1596
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597
if { { ac_try="$ac_link"
1599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600
*) ac_try_echo=$ac_try;;
1602
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603
$as_echo "$ac_try_echo"; } >&5
1604
(eval "$ac_link") 2>&5
1606
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1608
{ { case "(($ac_try" in
1609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610
*) ac_try_echo=$ac_try;;
1612
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613
$as_echo "$ac_try_echo"; } >&5
1614
(eval "$ac_try") 2>&5
1616
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617
test $ac_status = 0; }; }; then :
1620
$as_echo "$as_me: program exited with status $ac_status" >&5
1621
$as_echo "$as_me: failed program was:" >&5
1622
sed 's/^/| /' conftest.$ac_ext >&5
1624
ac_retval=$ac_status
1626
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628
as_fn_set_status $ac_retval
1632
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633
# -------------------------------------------------------
1634
# Tests whether HEADER exists and can be compiled using the include files in
1635
# INCLUDES, setting the cache variable VAR accordingly.
1636
ac_fn_c_check_header_compile ()
1638
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640
$as_echo_n "checking for $2... " >&6; }
1641
if eval \${$3+:} false; then :
1642
$as_echo_n "(cached) " >&6
1644
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645
/* end confdefs.h. */
1649
if ac_fn_c_try_compile "$LINENO"; then :
1654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658
$as_echo "$ac_res" >&6; }
1659
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
} # ac_fn_c_check_header_compile
1663
# ac_fn_c_try_link LINENO
1664
# -----------------------
1665
# Try to link conftest.$ac_ext, and return whether this succeeded.
1668
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669
rm -f conftest.$ac_objext conftest$ac_exeext
1670
if { { ac_try="$ac_link"
1672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673
*) ac_try_echo=$ac_try;;
1675
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676
$as_echo "$ac_try_echo"; } >&5
1677
(eval "$ac_link") 2>conftest.err
1679
if test -s conftest.err; then
1680
grep -v '^ *+' conftest.err >conftest.er1
1681
cat conftest.er1 >&5
1682
mv -f conftest.er1 conftest.err
1684
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685
test $ac_status = 0; } && {
1686
test -z "$ac_c_werror_flag" ||
1687
test ! -s conftest.err
1688
} && test -s conftest$ac_exeext && {
1689
test "$cross_compiling" = yes ||
1690
$as_test_x conftest$ac_exeext
1694
$as_echo "$as_me: failed program was:" >&5
1695
sed 's/^/| /' conftest.$ac_ext >&5
1699
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701
# interfere with the next link command; also delete a directory that is
1702
# left behind by Apple's compiler. We do this before executing the actions.
1703
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
as_fn_set_status $ac_retval
1707
} # ac_fn_c_try_link
1511
1708
cat >config.log <<_ACEOF
1512
1709
This file contains any messages produced by compilers while
1513
1710
running configure, to aid debugging if configure makes a mistake.
1515
It was created by xdriinfo $as_me 1.0.3, which was
1516
generated by GNU Autoconf 2.63. Invocation command line was
1712
It was created by xdriinfo $as_me 1.0.4, which was
1713
generated by GNU Autoconf 2.68. Invocation command line was
3077
if test -z "$ac_file"; then :
3078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079
$as_echo "no" >&6; }
3080
$as_echo "$as_me: failed program was:" >&5
3081
sed 's/^/| /' conftest.$ac_ext >&5
2872
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3083
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085
as_fn_error 77 "C compiler cannot create executables
3086
See \`config.log' for more details" "$LINENO" 5; }
3088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089
$as_echo "yes" >&6; }
3091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092
$as_echo_n "checking for C compiler default output file name... " >&6; }
3093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2873
3094
$as_echo "$ac_file" >&6; }
2874
if test -z "$ac_file"; then
2875
$as_echo "$as_me: failed program was:" >&5
2876
sed 's/^/| /' conftest.$ac_ext >&5
2878
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2879
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2881
See \`config.log' for more details." >&5
2882
$as_echo "$as_me: error: C compiler cannot create executables
2883
See \`config.log' for more details." >&2;}
2884
{ (exit 77); exit 77; }; }; }
2887
3095
ac_exeext=$ac_cv_exeext
2889
# Check that the compiler produces executables we can run. If not, either
2890
# the compiler is broken, or we cross compile.
2891
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2892
$as_echo_n "checking whether the C compiler works... " >&6; }
2893
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2894
# If not cross compiling, check that we can run a simple program.
2895
if test "$cross_compiling" != yes; then
2896
if { ac_try='./$ac_file'
2897
{ (case "(($ac_try" in
2898
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899
*) ac_try_echo=$ac_try;;
2901
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902
$as_echo "$ac_try_echo") >&5
2903
(eval "$ac_try") 2>&5
2905
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906
(exit $ac_status); }; }; then
2909
if test "$cross_compiling" = maybe; then
2912
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2913
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2915
If you meant to cross compile, use \`--host'.
2916
See \`config.log' for more details." >&5
2917
$as_echo "$as_me: error: cannot run C compiled programs.
2918
If you meant to cross compile, use \`--host'.
2919
See \`config.log' for more details." >&2;}
2920
{ (exit 1); exit 1; }; }; }
2924
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2925
$as_echo "yes" >&6; }
2927
3097
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2928
3098
ac_clean_files=$ac_clean_files_save
2929
# Check that the compiler produces executables we can run. If not, either
2930
# the compiler is broken, or we cross compile.
2931
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2932
$as_echo_n "checking whether we are cross compiling... " >&6; }
2933
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2934
$as_echo "$cross_compiling" >&6; }
2936
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2937
3100
$as_echo_n "checking for suffix of executables... " >&6; }
2938
if { (ac_try="$ac_link"
3101
if { { ac_try="$ac_link"
2939
3102
case "(($ac_try" in
2940
3103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941
3104
*) ac_try_echo=$ac_try;;
2943
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944
$as_echo "$ac_try_echo") >&5
3106
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107
$as_echo "$ac_try_echo"; } >&5
2945
3108
(eval "$ac_link") 2>&5
2947
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948
(exit $ac_status); }; then
3110
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111
test $ac_status = 0; }; then :
2949
3112
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2950
3113
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2951
3114
# work properly (i.e., refer to `conftest.exe'), while it won't with
3566
# Find a good install program. We prefer a C program (faster),
3567
# so one script is as good as another. But avoid the broken or
3568
# incompatible versions:
3569
# SysV /etc/install, /usr/sbin/install
3570
# SunOS /usr/etc/install
3571
# IRIX /sbin/install
3573
# AmigaOS /C/install, which installs bootblocks on floppy discs
3574
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3575
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3576
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3577
# OS/2's system install, which has a completely different semantic
3578
# ./install, which can be erroneously created by make from ./install.sh.
3579
# Reject install programs that cannot install multiple files.
3580
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3581
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3582
if test -z "$INSTALL"; then
3583
if test "${ac_cv_path_install+set}" = set; then
3584
$as_echo_n "(cached) " >&6
3586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590
test -z "$as_dir" && as_dir=.
3591
# Account for people who put trailing slashes in PATH elements.
3593
./ | .// | /cC/* | \
3594
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3595
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3598
# OSF1 and SCO ODT 3.0 have their own names for install.
3599
# Don't use installbsd from OSF since it installs stuff as root
3601
for ac_prog in ginstall scoinst install; do
3602
for ac_exec_ext in '' $ac_executable_extensions; do
3603
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3604
if test $ac_prog = install &&
3605
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3606
# AIX install. It has an incompatible calling convention.
3608
elif test $ac_prog = install &&
3609
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3610
# program-specific install script used by HP pwplus--don't use.
3613
rm -rf conftest.one conftest.two conftest.dir
3614
echo one > conftest.one
3615
echo two > conftest.two
3617
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3618
test -s conftest.one && test -s conftest.two &&
3619
test -s conftest.dir/conftest.one &&
3620
test -s conftest.dir/conftest.two
3622
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3635
rm -rf conftest.one conftest.two conftest.dir
3638
if test "${ac_cv_path_install+set}" = set; then
3639
INSTALL=$ac_cv_path_install
3641
# As a last resort, use the slow shell script. Don't cache a
3642
# value for INSTALL within a source directory, because that will
3643
# break other packages using the cache if that directory is
3644
# removed, or if the value is a relative name.
3645
INSTALL=$ac_install_sh
3648
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3649
$as_echo "$INSTALL" >&6; }
3651
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3652
# It thinks the first close brace ends the variable substitution.
3653
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3662
$as_echo_n "checking return type of signal handlers... " >&6; }
3663
if test "${ac_cv_type_signal+set}" = set; then
3664
$as_echo_n "(cached) " >&6
3666
cat >conftest.$ac_ext <<_ACEOF
3669
cat confdefs.h >>conftest.$ac_ext
3670
cat >>conftest.$ac_ext <<_ACEOF
3671
/* end confdefs.h. */
3672
#include <sys/types.h>
3678
return *(signal (0, 0)) (0) == 1;
3683
rm -f conftest.$ac_objext
3684
if { (ac_try="$ac_compile"
3686
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687
*) ac_try_echo=$ac_try;;
3689
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3690
$as_echo "$ac_try_echo") >&5
3691
(eval "$ac_compile") 2>conftest.er1
3693
grep -v '^ *+' conftest.er1 >conftest.err
3695
cat conftest.err >&5
3696
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697
(exit $ac_status); } && {
3698
test -z "$ac_c_werror_flag" ||
3699
test ! -s conftest.err
3700
} && test -s conftest.$ac_objext; then
3701
ac_cv_type_signal=int
3703
$as_echo "$as_me: failed program was:" >&5
3704
sed 's/^/| /' conftest.$ac_ext >&5
3706
ac_cv_type_signal=void
3709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3712
$as_echo "$ac_cv_type_signal" >&6; }
3714
cat >>confdefs.h <<_ACEOF
3715
#define RETSIGTYPE $ac_cv_type_signal
3721
ac_cpp='$CPP $CPPFLAGS'
3722
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3726
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3727
# On Suns, sometimes $CPP names a directory.
3728
if test -n "$CPP" && test -d "$CPP"; then
3731
if test -z "$CPP"; then
3732
if test "${ac_cv_prog_CPP+set}" = set; then
3733
$as_echo_n "(cached) " >&6
3735
# Double quotes because CPP needs to be expanded
3736
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3739
for ac_c_preproc_warn_flag in '' yes
3741
# Use a header file that comes with gcc, so configuring glibc
3742
# with a fresh cross-compiler works.
3743
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744
# <limits.h> exists even on freestanding compilers.
3745
# On the NeXT, cc -E runs the code through the compiler's parser,
3746
# not just through cpp. "Syntax error" is here to catch this case.
3747
cat >conftest.$ac_ext <<_ACEOF
3750
cat confdefs.h >>conftest.$ac_ext
3751
cat >>conftest.$ac_ext <<_ACEOF
3752
/* end confdefs.h. */
3754
# include <limits.h>
3756
# include <assert.h>
3760
if { (ac_try="$ac_cpp conftest.$ac_ext"
3762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763
*) ac_try_echo=$ac_try;;
3765
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766
$as_echo "$ac_try_echo") >&5
3767
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3769
grep -v '^ *+' conftest.er1 >conftest.err
3771
cat conftest.err >&5
3772
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
(exit $ac_status); } >/dev/null && {
3774
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3775
test ! -s conftest.err
3779
$as_echo "$as_me: failed program was:" >&5
3780
sed 's/^/| /' conftest.$ac_ext >&5
3782
# Broken: fails on valid input.
3786
rm -f conftest.err conftest.$ac_ext
3788
# OK, works on sane cases. Now check whether nonexistent headers
3789
# can be detected and how.
3790
cat >conftest.$ac_ext <<_ACEOF
3793
cat confdefs.h >>conftest.$ac_ext
3794
cat >>conftest.$ac_ext <<_ACEOF
3795
/* end confdefs.h. */
3796
#include <ac_nonexistent.h>
3798
if { (ac_try="$ac_cpp conftest.$ac_ext"
3800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801
*) ac_try_echo=$ac_try;;
3803
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3804
$as_echo "$ac_try_echo") >&5
3805
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3807
grep -v '^ *+' conftest.er1 >conftest.err
3809
cat conftest.err >&5
3810
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811
(exit $ac_status); } >/dev/null && {
3812
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3813
test ! -s conftest.err
3815
# Broken: success on invalid input.
3818
$as_echo "$as_me: failed program was:" >&5
3819
sed 's/^/| /' conftest.$ac_ext >&5
3821
# Passes both tests.
3826
rm -f conftest.err conftest.$ac_ext
3829
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3830
rm -f conftest.err conftest.$ac_ext
3831
if $ac_preproc_ok; then
3843
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3844
$as_echo "$CPP" >&6; }
3846
for ac_c_preproc_warn_flag in '' yes
3848
# Use a header file that comes with gcc, so configuring glibc
3849
# with a fresh cross-compiler works.
3850
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851
# <limits.h> exists even on freestanding compilers.
3852
# On the NeXT, cc -E runs the code through the compiler's parser,
3853
# not just through cpp. "Syntax error" is here to catch this case.
3854
cat >conftest.$ac_ext <<_ACEOF
3857
cat confdefs.h >>conftest.$ac_ext
3858
cat >>conftest.$ac_ext <<_ACEOF
3859
/* end confdefs.h. */
3861
# include <limits.h>
3863
# include <assert.h>
3867
if { (ac_try="$ac_cpp conftest.$ac_ext"
3869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870
*) ac_try_echo=$ac_try;;
3872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3873
$as_echo "$ac_try_echo") >&5
3874
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3876
grep -v '^ *+' conftest.er1 >conftest.err
3878
cat conftest.err >&5
3879
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880
(exit $ac_status); } >/dev/null && {
3881
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3882
test ! -s conftest.err
3886
$as_echo "$as_me: failed program was:" >&5
3887
sed 's/^/| /' conftest.$ac_ext >&5
3889
# Broken: fails on valid input.
3893
rm -f conftest.err conftest.$ac_ext
3895
# OK, works on sane cases. Now check whether nonexistent headers
3896
# can be detected and how.
3897
cat >conftest.$ac_ext <<_ACEOF
3900
cat confdefs.h >>conftest.$ac_ext
3901
cat >>conftest.$ac_ext <<_ACEOF
3902
/* end confdefs.h. */
3903
#include <ac_nonexistent.h>
3905
if { (ac_try="$ac_cpp conftest.$ac_ext"
3907
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908
*) ac_try_echo=$ac_try;;
3910
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911
$as_echo "$ac_try_echo") >&5
3912
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3914
grep -v '^ *+' conftest.er1 >conftest.err
3916
cat conftest.err >&5
3917
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
(exit $ac_status); } >/dev/null && {
3919
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920
test ! -s conftest.err
3922
# Broken: success on invalid input.
3925
$as_echo "$as_me: failed program was:" >&5
3926
sed 's/^/| /' conftest.$ac_ext >&5
3928
# Passes both tests.
3933
rm -f conftest.err conftest.$ac_ext
3936
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937
rm -f conftest.err conftest.$ac_ext
3938
if $ac_preproc_ok; then
3941
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3942
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3944
See \`config.log' for more details." >&5
3945
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3946
See \`config.log' for more details." >&2;}
3947
{ (exit 1); exit 1; }; }; }
3951
ac_cpp='$CPP $CPPFLAGS'
3952
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3959
if test "${ac_cv_path_GREP+set}" = set; then
3960
$as_echo_n "(cached) " >&6
3962
if test -z "$GREP"; then
3963
ac_path_GREP_found=false
3964
# Loop through the user's path and test for each of PROGNAME-LIST
3965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969
test -z "$as_dir" && as_dir=.
3970
for ac_prog in grep ggrep; do
3971
for ac_exec_ext in '' $ac_executable_extensions; do
3972
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3974
# Check for GNU ac_path_GREP and select it if it is found.
3975
# Check for GNU $ac_path_GREP
3976
case `"$ac_path_GREP" --version 2>&1` in
3978
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3981
$as_echo_n 0123456789 >"conftest.in"
3984
cat "conftest.in" "conftest.in" >"conftest.tmp"
3985
mv "conftest.tmp" "conftest.in"
3986
cp "conftest.in" "conftest.nl"
3987
$as_echo 'GREP' >> "conftest.nl"
3988
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990
ac_count=`expr $ac_count + 1`
3991
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992
# Best one so far, save it but keep looking for a better one
3993
ac_cv_path_GREP="$ac_path_GREP"
3994
ac_path_GREP_max=$ac_count
3996
# 10*(2^10) chars as input seems more than enough
3997
test $ac_count -gt 10 && break
3999
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002
$ac_path_GREP_found && break 3
4007
if test -z "$ac_cv_path_GREP"; then
4008
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4009
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4010
{ (exit 1); exit 1; }; }
4013
ac_cv_path_GREP=$GREP
4017
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4018
$as_echo "$ac_cv_path_GREP" >&6; }
4019
GREP="$ac_cv_path_GREP"
4022
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4023
$as_echo_n "checking for egrep... " >&6; }
4024
if test "${ac_cv_path_EGREP+set}" = set; then
4025
$as_echo_n "(cached) " >&6
4027
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4028
then ac_cv_path_EGREP="$GREP -E"
4030
if test -z "$EGREP"; then
4031
ac_path_EGREP_found=false
4032
# Loop through the user's path and test for each of PROGNAME-LIST
4033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4037
test -z "$as_dir" && as_dir=.
4038
for ac_prog in egrep; do
4039
for ac_exec_ext in '' $ac_executable_extensions; do
4040
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4042
# Check for GNU ac_path_EGREP and select it if it is found.
4043
# Check for GNU $ac_path_EGREP
4044
case `"$ac_path_EGREP" --version 2>&1` in
4046
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4049
$as_echo_n 0123456789 >"conftest.in"
4052
cat "conftest.in" "conftest.in" >"conftest.tmp"
4053
mv "conftest.tmp" "conftest.in"
4054
cp "conftest.in" "conftest.nl"
4055
$as_echo 'EGREP' >> "conftest.nl"
4056
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058
ac_count=`expr $ac_count + 1`
4059
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060
# Best one so far, save it but keep looking for a better one
4061
ac_cv_path_EGREP="$ac_path_EGREP"
4062
ac_path_EGREP_max=$ac_count
4064
# 10*(2^10) chars as input seems more than enough
4065
test $ac_count -gt 10 && break
4067
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4070
$ac_path_EGREP_found && break 3
4075
if test -z "$ac_cv_path_EGREP"; then
4076
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4077
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4078
{ (exit 1); exit 1; }; }
4081
ac_cv_path_EGREP=$EGREP
4086
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4087
$as_echo "$ac_cv_path_EGREP" >&6; }
4088
EGREP="$ac_cv_path_EGREP"
4091
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092
$as_echo_n "checking for ANSI C header files... " >&6; }
4093
if test "${ac_cv_header_stdc+set}" = set; then
4094
$as_echo_n "(cached) " >&6
4096
cat >conftest.$ac_ext <<_ACEOF
4099
cat confdefs.h >>conftest.$ac_ext
4100
cat >>conftest.$ac_ext <<_ACEOF
4101
/* end confdefs.h. */
4115
rm -f conftest.$ac_objext
4116
if { (ac_try="$ac_compile"
4118
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119
*) ac_try_echo=$ac_try;;
4121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122
$as_echo "$ac_try_echo") >&5
4123
(eval "$ac_compile") 2>conftest.er1
4125
grep -v '^ *+' conftest.er1 >conftest.err
4127
cat conftest.err >&5
4128
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129
(exit $ac_status); } && {
4130
test -z "$ac_c_werror_flag" ||
4131
test ! -s conftest.err
4132
} && test -s conftest.$ac_objext; then
4133
ac_cv_header_stdc=yes
4135
$as_echo "$as_me: failed program was:" >&5
4136
sed 's/^/| /' conftest.$ac_ext >&5
4138
ac_cv_header_stdc=no
4141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143
if test $ac_cv_header_stdc = yes; then
4144
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145
cat >conftest.$ac_ext <<_ACEOF
4148
cat confdefs.h >>conftest.$ac_ext
4149
cat >>conftest.$ac_ext <<_ACEOF
4150
/* end confdefs.h. */
4154
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155
$EGREP "memchr" >/dev/null 2>&1; then
4158
ac_cv_header_stdc=no
4164
if test $ac_cv_header_stdc = yes; then
4165
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166
cat >conftest.$ac_ext <<_ACEOF
4169
cat confdefs.h >>conftest.$ac_ext
4170
cat >>conftest.$ac_ext <<_ACEOF
4171
/* end confdefs.h. */
4175
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176
$EGREP "free" >/dev/null 2>&1; then
4179
ac_cv_header_stdc=no
4185
if test $ac_cv_header_stdc = yes; then
4186
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187
if test "$cross_compiling" = yes; then
4190
cat >conftest.$ac_ext <<_ACEOF
4193
cat confdefs.h >>conftest.$ac_ext
4194
cat >>conftest.$ac_ext <<_ACEOF
4195
/* end confdefs.h. */
4198
#if ((' ' & 0x0FF) == 0x020)
4199
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4200
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4202
# define ISLOWER(c) \
4203
(('a' <= (c) && (c) <= 'i') \
4204
|| ('j' <= (c) && (c) <= 'r') \
4205
|| ('s' <= (c) && (c) <= 'z'))
4206
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214
for (i = 0; i < 256; i++)
4215
if (XOR (islower (i), ISLOWER (i))
4216
|| toupper (i) != TOUPPER (i))
4221
rm -f conftest$ac_exeext
4222
if { (ac_try="$ac_link"
4224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225
*) ac_try_echo=$ac_try;;
4227
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4228
$as_echo "$ac_try_echo") >&5
4229
(eval "$ac_link") 2>&5
4231
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4233
{ (case "(($ac_try" in
4234
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235
*) ac_try_echo=$ac_try;;
4237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4238
$as_echo "$ac_try_echo") >&5
4239
(eval "$ac_try") 2>&5
4241
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242
(exit $ac_status); }; }; then
4245
$as_echo "$as_me: program exited with status $ac_status" >&5
4246
$as_echo "$as_me: failed program was:" >&5
4247
sed 's/^/| /' conftest.$ac_ext >&5
4250
ac_cv_header_stdc=no
4252
rm -rf conftest.dSYM
4253
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4259
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4260
$as_echo "$ac_cv_header_stdc" >&6; }
4261
if test $ac_cv_header_stdc = yes; then
4263
cat >>confdefs.h <<\_ACEOF
4264
#define STDC_HEADERS 1
4269
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4279
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4280
inttypes.h stdint.h unistd.h
4282
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4284
$as_echo_n "checking for $ac_header... " >&6; }
4285
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4286
$as_echo_n "(cached) " >&6
4288
cat >conftest.$ac_ext <<_ACEOF
4291
cat confdefs.h >>conftest.$ac_ext
4292
cat >>conftest.$ac_ext <<_ACEOF
4293
/* end confdefs.h. */
4294
$ac_includes_default
4296
#include <$ac_header>
4298
rm -f conftest.$ac_objext
4299
if { (ac_try="$ac_compile"
4301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302
*) ac_try_echo=$ac_try;;
4304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4305
$as_echo "$ac_try_echo") >&5
4306
(eval "$ac_compile") 2>conftest.er1
4308
grep -v '^ *+' conftest.er1 >conftest.err
4310
cat conftest.err >&5
4311
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312
(exit $ac_status); } && {
4313
test -z "$ac_c_werror_flag" ||
4314
test ! -s conftest.err
4315
} && test -s conftest.$ac_objext; then
4316
eval "$as_ac_Header=yes"
4318
$as_echo "$as_me: failed program was:" >&5
4319
sed 's/^/| /' conftest.$ac_ext >&5
4321
eval "$as_ac_Header=no"
4324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326
ac_res=`eval 'as_val=${'$as_ac_Header'}
4327
$as_echo "$as_val"'`
4328
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4329
$as_echo "$ac_res" >&6; }
4330
as_val=`eval 'as_val=${'$as_ac_Header'}
4331
$as_echo "$as_val"'`
4332
if test "x$as_val" = x""yes; then
4333
cat >>confdefs.h <<_ACEOF
4334
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4342
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4343
3588
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4344
if test "${ac_cv_prog_cc_c99+set}" = set; then
3589
if ${ac_cv_prog_cc_c99+:} false; then :
4345
3590
$as_echo_n "(cached) " >&6
4347
3592
ac_cv_prog_cc_c99=no
4349
cat >conftest.$ac_ext <<_ACEOF
4352
cat confdefs.h >>conftest.$ac_ext
4353
cat >>conftest.$ac_ext <<_ACEOF
3594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354
3595
/* end confdefs.h. */
4355
3596
#include <stdarg.h>
4356
3597
#include <stdbool.h>
4529
3747
case "x$ac_cv_prog_cc_c99" in
4531
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4532
3750
$as_echo "none needed" >&6; } ;;
4534
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4535
3753
$as_echo "unsupported" >&6; } ;;
4537
3755
CC="$CC $ac_cv_prog_cc_c99"
4538
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4539
3757
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3759
if test "x$ac_cv_prog_cc_c99" != xno; then :
3766
ac_cpp='$CPP $CPPFLAGS'
3767
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3771
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3772
# On Suns, sometimes $CPP names a directory.
3773
if test -n "$CPP" && test -d "$CPP"; then
3776
if test -z "$CPP"; then
3777
if ${ac_cv_prog_CPP+:} false; then :
3778
$as_echo_n "(cached) " >&6
3780
# Double quotes because CPP needs to be expanded
3781
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3784
for ac_c_preproc_warn_flag in '' yes
3786
# Use a header file that comes with gcc, so configuring glibc
3787
# with a fresh cross-compiler works.
3788
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789
# <limits.h> exists even on freestanding compilers.
3790
# On the NeXT, cc -E runs the code through the compiler's parser,
3791
# not just through cpp. "Syntax error" is here to catch this case.
3792
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793
/* end confdefs.h. */
3795
# include <limits.h>
3797
# include <assert.h>
3801
if ac_fn_c_try_cpp "$LINENO"; then :
3804
# Broken: fails on valid input.
3807
rm -f conftest.err conftest.i conftest.$ac_ext
3809
# OK, works on sane cases. Now check whether nonexistent headers
3810
# can be detected and how.
3811
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812
/* end confdefs.h. */
3813
#include <ac_nonexistent.h>
3815
if ac_fn_c_try_cpp "$LINENO"; then :
3816
# Broken: success on invalid input.
3819
# Passes both tests.
3823
rm -f conftest.err conftest.i conftest.$ac_ext
3826
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827
rm -f conftest.i conftest.err conftest.$ac_ext
3828
if $ac_preproc_ok; then :
3840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3841
$as_echo "$CPP" >&6; }
3843
for ac_c_preproc_warn_flag in '' yes
3845
# Use a header file that comes with gcc, so configuring glibc
3846
# with a fresh cross-compiler works.
3847
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3848
# <limits.h> exists even on freestanding compilers.
3849
# On the NeXT, cc -E runs the code through the compiler's parser,
3850
# not just through cpp. "Syntax error" is here to catch this case.
3851
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852
/* end confdefs.h. */
3854
# include <limits.h>
3856
# include <assert.h>
3860
if ac_fn_c_try_cpp "$LINENO"; then :
3863
# Broken: fails on valid input.
3866
rm -f conftest.err conftest.i conftest.$ac_ext
3868
# OK, works on sane cases. Now check whether nonexistent headers
3869
# can be detected and how.
3870
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871
/* end confdefs.h. */
3872
#include <ac_nonexistent.h>
3874
if ac_fn_c_try_cpp "$LINENO"; then :
3875
# Broken: success on invalid input.
3878
# Passes both tests.
3882
rm -f conftest.err conftest.i conftest.$ac_ext
3885
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3886
rm -f conftest.i conftest.err conftest.$ac_ext
3887
if $ac_preproc_ok; then :
3890
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3893
See \`config.log' for more details" "$LINENO" 5; }
3897
ac_cpp='$CPP $CPPFLAGS'
3898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3904
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3905
if ${ac_cv_path_GREP+:} false; then :
3906
$as_echo_n "(cached) " >&6
3908
if test -z "$GREP"; then
3909
ac_path_GREP_found=false
3910
# Loop through the user's path and test for each of PROGNAME-LIST
3911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915
test -z "$as_dir" && as_dir=.
3916
for ac_prog in grep ggrep; do
3917
for ac_exec_ext in '' $ac_executable_extensions; do
3918
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3919
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3920
# Check for GNU ac_path_GREP and select it if it is found.
3921
# Check for GNU $ac_path_GREP
3922
case `"$ac_path_GREP" --version 2>&1` in
3924
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3927
$as_echo_n 0123456789 >"conftest.in"
3930
cat "conftest.in" "conftest.in" >"conftest.tmp"
3931
mv "conftest.tmp" "conftest.in"
3932
cp "conftest.in" "conftest.nl"
3933
$as_echo 'GREP' >> "conftest.nl"
3934
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936
as_fn_arith $ac_count + 1 && ac_count=$as_val
3937
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3938
# Best one so far, save it but keep looking for a better one
3939
ac_cv_path_GREP="$ac_path_GREP"
3940
ac_path_GREP_max=$ac_count
3942
# 10*(2^10) chars as input seems more than enough
3943
test $ac_count -gt 10 && break
3945
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3948
$ac_path_GREP_found && break 3
3953
if test -z "$ac_cv_path_GREP"; then
3954
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3957
ac_cv_path_GREP=$GREP
3961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3962
$as_echo "$ac_cv_path_GREP" >&6; }
3963
GREP="$ac_cv_path_GREP"
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3967
$as_echo_n "checking for egrep... " >&6; }
3968
if ${ac_cv_path_EGREP+:} false; then :
3969
$as_echo_n "(cached) " >&6
3971
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972
then ac_cv_path_EGREP="$GREP -E"
3974
if test -z "$EGREP"; then
3975
ac_path_EGREP_found=false
3976
# Loop through the user's path and test for each of PROGNAME-LIST
3977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3981
test -z "$as_dir" && as_dir=.
3982
for ac_prog in egrep; do
3983
for ac_exec_ext in '' $ac_executable_extensions; do
3984
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3985
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3986
# Check for GNU ac_path_EGREP and select it if it is found.
3987
# Check for GNU $ac_path_EGREP
3988
case `"$ac_path_EGREP" --version 2>&1` in
3990
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3993
$as_echo_n 0123456789 >"conftest.in"
3996
cat "conftest.in" "conftest.in" >"conftest.tmp"
3997
mv "conftest.tmp" "conftest.in"
3998
cp "conftest.in" "conftest.nl"
3999
$as_echo 'EGREP' >> "conftest.nl"
4000
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002
as_fn_arith $ac_count + 1 && ac_count=$as_val
4003
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4004
# Best one so far, save it but keep looking for a better one
4005
ac_cv_path_EGREP="$ac_path_EGREP"
4006
ac_path_EGREP_max=$ac_count
4008
# 10*(2^10) chars as input seems more than enough
4009
test $ac_count -gt 10 && break
4011
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4014
$ac_path_EGREP_found && break 3
4019
if test -z "$ac_cv_path_EGREP"; then
4020
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4023
ac_cv_path_EGREP=$EGREP
4028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4029
$as_echo "$ac_cv_path_EGREP" >&6; }
4030
EGREP="$ac_cv_path_EGREP"
4033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4034
$as_echo_n "checking for ANSI C header files... " >&6; }
4035
if ${ac_cv_header_stdc+:} false; then :
4036
$as_echo_n "(cached) " >&6
4038
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039
/* end confdefs.h. */
4053
if ac_fn_c_try_compile "$LINENO"; then :
4054
ac_cv_header_stdc=yes
4056
ac_cv_header_stdc=no
4058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060
if test $ac_cv_header_stdc = yes; then
4061
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4062
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063
/* end confdefs.h. */
4067
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068
$EGREP "memchr" >/dev/null 2>&1; then :
4071
ac_cv_header_stdc=no
4077
if test $ac_cv_header_stdc = yes; then
4078
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4079
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080
/* end confdefs.h. */
4084
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085
$EGREP "free" >/dev/null 2>&1; then :
4088
ac_cv_header_stdc=no
4094
if test $ac_cv_header_stdc = yes; then
4095
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4096
if test "$cross_compiling" = yes; then :
4099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100
/* end confdefs.h. */
4103
#if ((' ' & 0x0FF) == 0x020)
4104
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4105
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4107
# define ISLOWER(c) \
4108
(('a' <= (c) && (c) <= 'i') \
4109
|| ('j' <= (c) && (c) <= 'r') \
4110
|| ('s' <= (c) && (c) <= 'z'))
4111
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4114
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4119
for (i = 0; i < 256; i++)
4120
if (XOR (islower (i), ISLOWER (i))
4121
|| toupper (i) != TOUPPER (i))
4126
if ac_fn_c_try_run "$LINENO"; then :
4129
ac_cv_header_stdc=no
4131
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4132
conftest.$ac_objext conftest.beam conftest.$ac_ext
4137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4138
$as_echo "$ac_cv_header_stdc" >&6; }
4139
if test $ac_cv_header_stdc = yes; then
4141
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4145
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4146
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4147
inttypes.h stdint.h unistd.h
4149
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4150
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4152
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4153
cat >>confdefs.h <<_ACEOF
4154
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4164
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4165
if test -n "$ac_tool_prefix"; then
4166
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4167
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169
$as_echo_n "checking for $ac_word... " >&6; }
4170
if ${ac_cv_path_PKG_CONFIG+:} false; then :
4171
$as_echo_n "(cached) " >&6
4175
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182
test -z "$as_dir" && as_dir=.
4183
for ac_exec_ext in '' $ac_executable_extensions; do
4184
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4186
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4197
if test -n "$PKG_CONFIG"; then
4198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4199
$as_echo "$PKG_CONFIG" >&6; }
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202
$as_echo "no" >&6; }
4207
if test -z "$ac_cv_path_PKG_CONFIG"; then
4208
ac_pt_PKG_CONFIG=$PKG_CONFIG
4209
# Extract the first word of "pkg-config", so it can be a program name with args.
4210
set dummy pkg-config; ac_word=$2
4211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212
$as_echo_n "checking for $ac_word... " >&6; }
4213
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4214
$as_echo_n "(cached) " >&6
4216
case $ac_pt_PKG_CONFIG in
4218
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225
test -z "$as_dir" && as_dir=.
4226
for ac_exec_ext in '' $ac_executable_extensions; do
4227
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4229
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4240
if test -n "$ac_pt_PKG_CONFIG"; then
4241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4242
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245
$as_echo "no" >&6; }
4248
if test "x$ac_pt_PKG_CONFIG" = x; then
4251
case $cross_compiling:$ac_tool_warned in
4253
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255
ac_tool_warned=yes ;;
4257
PKG_CONFIG=$ac_pt_PKG_CONFIG
4260
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4264
if test -n "$PKG_CONFIG"; then
4265
_pkg_min_version=0.9.0
4266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4267
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4268
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4270
$as_echo "yes" >&6; }
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273
$as_echo "no" >&6; }
4544
4278
# Make sure we can run config.sub.
4545
4279
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4546
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4547
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4548
{ (exit 1); exit 1; }; }
4280
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4550
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4551
4283
$as_echo_n "checking build system type... " >&6; }
4552
if test "${ac_cv_build+set}" = set; then
4284
if ${ac_cv_build+:} false; then :
4553
4285
$as_echo_n "(cached) " >&6
4555
4287
ac_build_alias=$build_alias
4556
4288
test "x$ac_build_alias" = x &&
4557
4289
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4558
4290
test "x$ac_build_alias" = x &&
4559
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4560
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4561
{ (exit 1); exit 1; }; }
4291
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4562
4292
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4563
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4564
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4565
{ (exit 1); exit 1; }; }
4293
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4569
4297
$as_echo "$ac_cv_build" >&6; }
4570
4298
case $ac_cv_build in
4572
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4573
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4574
{ (exit 1); exit 1; }; };;
4300
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4576
4302
build=$ac_cv_build
4577
4303
ac_save_IFS=$IFS; IFS='-'
4624
4346
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4350
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4351
if ${ac_cv_path_SED+:} false; then :
4352
$as_echo_n "(cached) " >&6
4354
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4355
for ac_i in 1 2 3 4 5 6 7; do
4356
ac_script="$ac_script$as_nl$ac_script"
4358
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4359
{ ac_script=; unset ac_script;}
4360
if test -z "$SED"; then
4361
ac_path_SED_found=false
4362
# Loop through the user's path and test for each of PROGNAME-LIST
4363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367
test -z "$as_dir" && as_dir=.
4368
for ac_prog in sed gsed; do
4369
for ac_exec_ext in '' $ac_executable_extensions; do
4370
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4371
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4372
# Check for GNU ac_path_SED and select it if it is found.
4373
# Check for GNU $ac_path_SED
4374
case `"$ac_path_SED" --version 2>&1` in
4376
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4379
$as_echo_n 0123456789 >"conftest.in"
4382
cat "conftest.in" "conftest.in" >"conftest.tmp"
4383
mv "conftest.tmp" "conftest.in"
4384
cp "conftest.in" "conftest.nl"
4385
$as_echo '' >> "conftest.nl"
4386
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388
as_fn_arith $ac_count + 1 && ac_count=$as_val
4389
if test $ac_count -gt ${ac_path_SED_max-0}; then
4390
# Best one so far, save it but keep looking for a better one
4391
ac_cv_path_SED="$ac_path_SED"
4392
ac_path_SED_max=$ac_count
4394
# 10*(2^10) chars as input seems more than enough
4395
test $ac_count -gt 10 && break
4397
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400
$ac_path_SED_found && break 3
4405
if test -z "$ac_cv_path_SED"; then
4406
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4414
$as_echo "$ac_cv_path_SED" >&6; }
4415
SED="$ac_cv_path_SED"
4630
4422
if test "x$GCC" = xyes ; then
4631
4423
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4632
4424
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4633
-Wbad-function-cast"
4425
-Wbad-function-cast -Wformat=2"
4634
4426
case `$CC -dumpversion` in
4636
4428
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4640
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4641
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4642
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4643
$as_echo_n "(cached) " >&6
4645
cat >conftest.$ac_ext <<_ACEOF
4648
cat confdefs.h >>conftest.$ac_ext
4649
cat >>conftest.$ac_ext <<_ACEOF
4650
/* end confdefs.h. */
4651
$ac_includes_default
4663
rm -f conftest.$ac_objext
4664
if { (ac_try="$ac_compile"
4666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667
*) ac_try_echo=$ac_try;;
4669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670
$as_echo "$ac_try_echo") >&5
4671
(eval "$ac_compile") 2>conftest.er1
4673
grep -v '^ *+' conftest.er1 >conftest.err
4675
cat conftest.err >&5
4676
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677
(exit $ac_status); } && {
4678
test -z "$ac_c_werror_flag" ||
4679
test ! -s conftest.err
4680
} && test -s conftest.$ac_objext; then
4681
ac_cv_have_decl___SUNPRO_C=yes
4683
$as_echo "$as_me: failed program was:" >&5
4684
sed 's/^/| /' conftest.$ac_ext >&5
4686
ac_cv_have_decl___SUNPRO_C=no
4689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4692
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4693
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4432
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4433
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4596
XORG_MAN_PAGE="X Version 11"
4599
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4600
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4601
-e 's|__xservername__|Xorg|g' \
4602
-e 's|__xconfigfile__|xorg.conf|g' \
4603
-e 's|__projectroot__|\$(prefix)|g' \
4604
-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4605
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4606
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4607
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4608
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4609
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4610
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4614
# Check whether --enable-silent-rules was given.
4615
if test "${enable_silent_rules+set}" = set; then :
4616
enableval=$enable_silent_rules;
4619
case $enable_silent_rules in
4620
yes) AM_DEFAULT_VERBOSITY=0;;
4621
no) AM_DEFAULT_VERBOSITY=1;;
4622
*) AM_DEFAULT_VERBOSITY=0;;
4979
4628
# Checks for pkg-config packages
4982
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4983
if test -n "$ac_tool_prefix"; then
4984
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4985
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4986
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4987
$as_echo_n "checking for $ac_word... " >&6; }
4988
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4989
$as_echo_n "(cached) " >&6
4993
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000
test -z "$as_dir" && as_dir=.
5001
for ac_exec_ext in '' $ac_executable_extensions; do
5002
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5004
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5015
if test -n "$PKG_CONFIG"; then
5016
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5017
$as_echo "$PKG_CONFIG" >&6; }
5019
{ $as_echo "$as_me:$LINENO: result: no" >&5
5020
$as_echo "no" >&6; }
5025
if test -z "$ac_cv_path_PKG_CONFIG"; then
5026
ac_pt_PKG_CONFIG=$PKG_CONFIG
5027
# Extract the first word of "pkg-config", so it can be a program name with args.
5028
set dummy pkg-config; ac_word=$2
5029
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5030
$as_echo_n "checking for $ac_word... " >&6; }
5031
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5032
$as_echo_n "(cached) " >&6
5034
case $ac_pt_PKG_CONFIG in
5036
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043
test -z "$as_dir" && as_dir=.
5044
for ac_exec_ext in '' $ac_executable_extensions; do
5045
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5047
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5058
if test -n "$ac_pt_PKG_CONFIG"; then
5059
{ $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5060
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5062
{ $as_echo "$as_me:$LINENO: result: no" >&5
5063
$as_echo "no" >&6; }
5066
if test "x$ac_pt_PKG_CONFIG" = x; then
5069
case $cross_compiling:$ac_tool_warned in
5071
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073
ac_tool_warned=yes ;;
5075
PKG_CONFIG=$ac_pt_PKG_CONFIG
5078
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5082
if test -n "$PKG_CONFIG"; then
5083
_pkg_min_version=0.9.0
5084
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5085
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5086
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5087
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5088
$as_echo "yes" >&6; }
5090
{ $as_echo "$as_me:$LINENO: result: no" >&5
5091
$as_echo "no" >&6; }
5098
{ $as_echo "$as_me:$LINENO: checking for XDRIINFO" >&5
4631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDRIINFO" >&5
5099
4632
$as_echo_n "checking for XDRIINFO... " >&6; }
5101
4634
if test -n "$XDRIINFO_CFLAGS"; then
5102
4635
pkg_cv_XDRIINFO_CFLAGS="$XDRIINFO_CFLAGS"
5103
4636
elif test -n "$PKG_CONFIG"; then
5104
4637
if test -n "$PKG_CONFIG" && \
5105
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 glproto\"") >&5
4638
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 glproto\""; } >&5
5106
4639
($PKG_CONFIG --exists --print-errors "x11 glproto") 2>&5
5108
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109
(exit $ac_status); }; then
4641
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642
test $ac_status = 0; }; then
5110
4643
pkg_cv_XDRIINFO_CFLAGS=`$PKG_CONFIG --cflags "x11 glproto" 2>/dev/null`