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 '/^.*\/\([^/][^/]*\)\/*$/{
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
175
138
if test "x$CONFIG_SHELL" = x; then
176
if (eval ":") 2>/dev/null; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
177
178
as_have_required=yes
179
180
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
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246
190
test -z "$as_dir" && as_dir=.
249
194
for as_base in sh bash ksh sh5; do
250
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
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
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367
222
export CONFIG_SHELL
368
223
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
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235
$0: about your system, including any error possibly output
236
$0: before this message. Then install a modern shell, or
237
$0: manually run the script under such a shell if you do
244
SHELL=${CONFIG_SHELL-/bin/sh}
246
# Unset more variables known to interfere with behavior of common tools.
247
CLICOLOR_FORCE= GREP_OPTIONS=
248
unset CLICOLOR_FORCE GREP_OPTIONS
250
## --------------------- ##
251
## M4sh Shell Functions. ##
252
## --------------------- ##
255
# Portably unset VAR.
258
{ eval $1=; unset $1;}
262
# as_fn_set_status STATUS
263
# -----------------------
264
# Set $? to STATUS, without forking.
272
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282
# Create "$as_dir" as a directory, including parents if necessary.
287
-*) as_dir=./$as_dir;;
289
test -d "$as_dir" || eval $as_mkdir_p || {
293
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296
as_dirs="'$as_qdir' $as_dirs"
297
as_dir=`$as_dirname -- "$as_dir" ||
298
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299
X"$as_dir" : 'X\(//\)[^/]' \| \
300
X"$as_dir" : 'X\(//\)$' \| \
301
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302
$as_echo X"$as_dir" |
303
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320
test -d "$as_dir" && break
322
test -z "$as_dirs" || eval "mkdir $as_dirs"
323
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327
# as_fn_append VAR VALUE
328
# ----------------------
329
# Append the text in VALUE to the end of the definition contained in VAR. Take
330
# advantage of any shell optimizations that allow amortized linear growth over
331
# repeated appends, instead of the typical quadratic growth present in naive
333
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334
eval 'as_fn_append ()
347
# Perform arithmetic evaluation on the ARGs, and store the result in the
348
# global $as_val. Take advantage of shells that can avoid forks. The arguments
349
# must be portable across $(()) and expr.
350
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358
as_val=`expr "$@" || test $? -eq 1`
363
# as_fn_error ERROR [LINENO LOG_FD]
364
# ---------------------------------
365
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367
# script with status $?, using 1 if that was 0.
370
as_status=$?; test $as_status -eq 0 && as_status=1
372
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375
$as_echo "$as_me: error: $1" >&2
376
as_fn_exit $as_status
379
if expr a : '\(a\)' >/dev/null 2>&1 &&
380
test "X`expr 00001 : '.*\(...\)'`" = X001; then
386
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398
as_me=`$as_basename -- "$0" ||
399
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400
X"$0" : 'X\(//\)$' \| \
401
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403
sed '/^.*\/\([^/][^/]*\)\/*$/{
417
# Avoid depending upon Character Ranges.
418
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421
as_cr_digits='0123456789'
422
as_cr_alnum=$as_cr_Letters$as_cr_digits
425
as_lineno_1=$LINENO as_lineno_1a=$LINENO
426
as_lineno_2=$LINENO as_lineno_2a=$LINENO
427
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1689
1747
test -n "$ac_init_help" && exit $ac_status
1690
1748
if $ac_init_version; then
1692
libICE configure 1.0.6
1693
generated by GNU Autoconf 2.63
1750
libICE configure 1.0.7
1751
generated by GNU Autoconf 2.65
1695
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1753
Copyright (C) 2009 Free Software Foundation, Inc.
1697
1754
This configure script is free software; the Free Software Foundation
1698
1755
gives unlimited permission to copy, distribute and modify it.
1760
## ------------------------ ##
1761
## Autoconf initialization. ##
1762
## ------------------------ ##
1764
# ac_fn_c_try_compile LINENO
1765
# --------------------------
1766
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1767
ac_fn_c_try_compile ()
1769
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770
rm -f conftest.$ac_objext
1771
if { { ac_try="$ac_compile"
1773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774
*) ac_try_echo=$ac_try;;
1776
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777
$as_echo "$ac_try_echo"; } >&5
1778
(eval "$ac_compile") 2>conftest.err
1780
if test -s conftest.err; then
1781
grep -v '^ *+' conftest.err >conftest.er1
1782
cat conftest.er1 >&5
1783
mv -f conftest.er1 conftest.err
1785
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786
test $ac_status = 0; } && {
1787
test -z "$ac_c_werror_flag" ||
1788
test ! -s conftest.err
1789
} && test -s conftest.$ac_objext; then :
1792
$as_echo "$as_me: failed program was:" >&5
1793
sed 's/^/| /' conftest.$ac_ext >&5
1797
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
as_fn_set_status $ac_retval
1800
} # ac_fn_c_try_compile
1802
# ac_fn_c_check_decl LINENO SYMBOL VAR
1803
# ------------------------------------
1804
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1805
ac_fn_c_check_decl ()
1807
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1809
$as_echo_n "checking whether $2 is declared... " >&6; }
1810
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811
$as_echo_n "(cached) " >&6
1813
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814
/* end confdefs.h. */
1827
if ac_fn_c_try_compile "$LINENO"; then :
1832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836
$as_echo "$ac_res" >&6; }
1837
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839
} # ac_fn_c_check_decl
1841
# ac_fn_c_try_cpp LINENO
1842
# ----------------------
1843
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847
if { { ac_try="$ac_cpp conftest.$ac_ext"
1849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850
*) ac_try_echo=$ac_try;;
1852
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853
$as_echo "$ac_try_echo"; } >&5
1854
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856
if test -s conftest.err; then
1857
grep -v '^ *+' conftest.err >conftest.er1
1858
cat conftest.er1 >&5
1859
mv -f conftest.er1 conftest.err
1861
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862
test $ac_status = 0; } >/dev/null && {
1863
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1864
test ! -s conftest.err
1868
$as_echo "$as_me: failed program was:" >&5
1869
sed 's/^/| /' conftest.$ac_ext >&5
1873
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
as_fn_set_status $ac_retval
1878
# ac_fn_c_try_run LINENO
1879
# ----------------------
1880
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881
# that executables *can* be run.
1884
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885
if { { ac_try="$ac_link"
1887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888
*) ac_try_echo=$ac_try;;
1890
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891
$as_echo "$ac_try_echo"; } >&5
1892
(eval "$ac_link") 2>&5
1894
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896
{ { case "(($ac_try" in
1897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898
*) ac_try_echo=$ac_try;;
1900
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901
$as_echo "$ac_try_echo"; } >&5
1902
(eval "$ac_try") 2>&5
1904
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905
test $ac_status = 0; }; }; then :
1908
$as_echo "$as_me: program exited with status $ac_status" >&5
1909
$as_echo "$as_me: failed program was:" >&5
1910
sed 's/^/| /' conftest.$ac_ext >&5
1912
ac_retval=$ac_status
1914
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
as_fn_set_status $ac_retval
1920
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1921
# -------------------------------------------------------
1922
# Tests whether HEADER exists and can be compiled using the include files in
1923
# INCLUDES, setting the cache variable VAR accordingly.
1924
ac_fn_c_check_header_compile ()
1926
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928
$as_echo_n "checking for $2... " >&6; }
1929
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930
$as_echo_n "(cached) " >&6
1932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933
/* end confdefs.h. */
1937
if ac_fn_c_try_compile "$LINENO"; then :
1942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946
$as_echo "$ac_res" >&6; }
1947
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
} # ac_fn_c_check_header_compile
1951
# ac_fn_c_try_link LINENO
1952
# -----------------------
1953
# Try to link conftest.$ac_ext, and return whether this succeeded.
1956
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957
rm -f conftest.$ac_objext conftest$ac_exeext
1958
if { { ac_try="$ac_link"
1960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961
*) ac_try_echo=$ac_try;;
1963
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964
$as_echo "$ac_try_echo"; } >&5
1965
(eval "$ac_link") 2>conftest.err
1967
if test -s conftest.err; then
1968
grep -v '^ *+' conftest.err >conftest.er1
1969
cat conftest.er1 >&5
1970
mv -f conftest.er1 conftest.err
1972
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973
test $ac_status = 0; } && {
1974
test -z "$ac_c_werror_flag" ||
1975
test ! -s conftest.err
1976
} && test -s conftest$ac_exeext && {
1977
test "$cross_compiling" = yes ||
1978
$as_test_x conftest$ac_exeext
1982
$as_echo "$as_me: failed program was:" >&5
1983
sed 's/^/| /' conftest.$ac_ext >&5
1987
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989
# interfere with the next link command; also delete a directory that is
1990
# left behind by Apple's compiler. We do this before executing the actions.
1991
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993
as_fn_set_status $ac_retval
1995
} # ac_fn_c_try_link
1997
# ac_fn_c_check_func LINENO FUNC VAR
1998
# ----------------------------------
1999
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2000
ac_fn_c_check_func ()
2002
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004
$as_echo_n "checking for $2... " >&6; }
2005
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006
$as_echo_n "(cached) " >&6
2008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009
/* end confdefs.h. */
2010
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2011
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2012
#define $2 innocuous_$2
2014
/* System header to define __stub macros and hopefully few prototypes,
2015
which can conflict with char $2 (); below.
2016
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2017
<limits.h> exists even on freestanding compilers. */
2020
# include <limits.h>
2022
# include <assert.h>
2027
/* Override any GCC internal prototype to avoid an error.
2028
Use char because int might match the return type of a GCC
2029
builtin and then its argument prototype would still apply. */
2034
/* The GNU C library defines this for functions which it implements
2035
to always fail with ENOSYS. Some functions are actually named
2036
something starting with __ and the normal name is an alias. */
2037
#if defined __stub_$2 || defined __stub___$2
2049
if ac_fn_c_try_link "$LINENO"; then :
2054
rm -f core conftest.err conftest.$ac_objext \
2055
conftest$ac_exeext conftest.$ac_ext
2058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059
$as_echo "$ac_res" >&6; }
2060
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062
} # ac_fn_c_check_func
2064
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2065
# ----------------------------------------------------
2066
# Tries to find if the field MEMBER exists in type AGGR, after including
2067
# INCLUDES, setting cache variable VAR accordingly.
2068
ac_fn_c_check_member ()
2070
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2072
$as_echo_n "checking for $2.$3... " >&6; }
2073
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2074
$as_echo_n "(cached) " >&6
2076
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077
/* end confdefs.h. */
2089
if ac_fn_c_try_compile "$LINENO"; then :
2092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093
/* end confdefs.h. */
2099
if (sizeof ac_aggr.$3)
2105
if ac_fn_c_try_compile "$LINENO"; then :
2110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116
$as_echo "$ac_res" >&6; }
2117
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119
} # ac_fn_c_check_member
2121
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122
# -------------------------------------------
2123
# Tests whether TYPE exists after having included INCLUDES, setting cache
2124
# variable VAR accordingly.
2125
ac_fn_c_check_type ()
2127
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129
$as_echo_n "checking for $2... " >&6; }
2130
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131
$as_echo_n "(cached) " >&6
2134
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135
/* end confdefs.h. */
2146
if ac_fn_c_try_compile "$LINENO"; then :
2147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148
/* end confdefs.h. */
2159
if ac_fn_c_try_compile "$LINENO"; then :
2164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170
$as_echo "$ac_res" >&6; }
2171
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173
} # ac_fn_c_check_type
1702
2174
cat >config.log <<_ACEOF
1703
2175
This file contains any messages produced by compilers while
1704
2176
running configure, to aid debugging if configure makes a mistake.
1706
It was created by libICE $as_me 1.0.6, which was
1707
generated by GNU Autoconf 2.63. Invocation command line was
2178
It was created by libICE $as_me 1.0.7, which was
2179
generated by GNU Autoconf 2.65. Invocation command line was
3868
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3869
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3870
if test "${ac_cv_path_SED+set}" = set; then
4047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4048
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4049
if test "${ac_cv_prog_cc_c99+set}" = set; then :
3871
4050
$as_echo_n "(cached) " >&6
3873
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3874
for ac_i in 1 2 3 4 5 6 7; do
3875
ac_script="$ac_script$as_nl$ac_script"
3877
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3878
$as_unset ac_script || ac_script=
3879
if test -z "$SED"; then
3880
ac_path_SED_found=false
3881
# Loop through the user's path and test for each of PROGNAME-LIST
3882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052
ac_cv_prog_cc_c99=no
4054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055
/* end confdefs.h. */
4057
#include <stdbool.h>
4062
// Check varargs macros. These examples are taken from C99 6.10.3.5.
4063
#define debug(...) fprintf (stderr, __VA_ARGS__)
4064
#define showlist(...) puts (#__VA_ARGS__)
4065
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4067
test_varargs_macros (void)
4072
debug ("X = %d\n", x);
4073
showlist (The first, second, and third items.);
4074
report (x>y, "x is %d but y is %d", x, y);
4077
// Check long long types.
4078
#define BIG64 18446744073709551615ull
4079
#define BIG32 4294967295ul
4080
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4082
your preprocessor is broken;
4086
your preprocessor is broken;
4088
static long long int bignum = -9223372036854775807LL;
4089
static unsigned long long int ubignum = BIG64;
4091
struct incomplete_array
4099
const wchar_t *name;
4103
typedef const char *ccp;
4106
test_restrict (ccp restrict text)
4108
// See if C++-style comments work.
4109
// Iterate through items via the restricted pointer.
4110
// Also check for declarations in for loops.
4111
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4116
// Check varargs and va_copy.
4118
test_varargs (const char *format, ...)
4121
va_start (args, format);
4123
va_copy (args_copy, args);
4134
str = va_arg (args_copy, const char *);
4137
number = va_arg (args_copy, int);
4140
fnumber = va_arg (args_copy, double);
4155
_Bool success = false;
4158
if (test_restrict ("String literal") == 0)
4160
char *restrict newvar = "Another string";
4163
test_varargs ("s, d' f .", "string", 65, 34.234);
4164
test_varargs_macros ();
4166
// Check flexible array members.
4167
struct incomplete_array *ia =
4168
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4170
for (int i = 0; i < ia->datasize; ++i)
4171
ia->data[i] = i * 1.234;
4173
// Check named initializers.
4174
struct named_init ni = {
4176
.name = L"Test wide string",
4177
.average = 543.34343,
4182
int dynamic_array[ni.number];
4183
dynamic_array[ni.number - 1] = 543;
4185
// work around unused variable warnings
4186
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4187
|| dynamic_array[ni.number - 1] != 543);
4193
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3886
test -z "$as_dir" && as_dir=.
3887
for ac_prog in sed gsed; do
3888
for ac_exec_ext in '' $ac_executable_extensions; do
3889
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3890
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3891
# Check for GNU ac_path_SED and select it if it is found.
3892
# Check for GNU $ac_path_SED
3893
case `"$ac_path_SED" --version 2>&1` in
3895
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3898
$as_echo_n 0123456789 >"conftest.in"
3901
cat "conftest.in" "conftest.in" >"conftest.tmp"
3902
mv "conftest.tmp" "conftest.in"
3903
cp "conftest.in" "conftest.nl"
3904
$as_echo '' >> "conftest.nl"
3905
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907
ac_count=`expr $ac_count + 1`
3908
if test $ac_count -gt ${ac_path_SED_max-0}; then
3909
# Best one so far, save it but keep looking for a better one
3910
ac_cv_path_SED="$ac_path_SED"
3911
ac_path_SED_max=$ac_count
3913
# 10*(2^10) chars as input seems more than enough
3914
test $ac_count -gt 10 && break
3916
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195
CC="$ac_save_CC $ac_arg"
4196
if ac_fn_c_try_compile "$LINENO"; then :
4197
ac_cv_prog_cc_c99=$ac_arg
4199
rm -f core conftest.err conftest.$ac_objext
4200
test "x$ac_cv_prog_cc_c99" != "xno" && break
4202
rm -f conftest.$ac_ext
4207
case "x$ac_cv_prog_cc_c99" in
4209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4210
$as_echo "none needed" >&6; } ;;
4212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4213
$as_echo "unsupported" >&6; } ;;
4215
CC="$CC $ac_cv_prog_cc_c99"
4216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4217
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3919
$ac_path_SED_found && break 3
4219
if test "x$ac_cv_prog_cc_c99" != xno; then :
4226
ac_cpp='$CPP $CPPFLAGS'
4227
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4231
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4232
# On Suns, sometimes $CPP names a directory.
4233
if test -n "$CPP" && test -d "$CPP"; then
4236
if test -z "$CPP"; then
4237
if test "${ac_cv_prog_CPP+set}" = set; then :
4238
$as_echo_n "(cached) " >&6
4240
# Double quotes because CPP needs to be expanded
4241
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4244
for ac_c_preproc_warn_flag in '' yes
4246
# Use a header file that comes with gcc, so configuring glibc
4247
# with a fresh cross-compiler works.
4248
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249
# <limits.h> exists even on freestanding compilers.
4250
# On the NeXT, cc -E runs the code through the compiler's parser,
4251
# not just through cpp. "Syntax error" is here to catch this case.
4252
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253
/* end confdefs.h. */
4255
# include <limits.h>
4257
# include <assert.h>
4261
if ac_fn_c_try_cpp "$LINENO"; then :
4264
# Broken: fails on valid input.
4267
rm -f conftest.err conftest.$ac_ext
4269
# OK, works on sane cases. Now check whether nonexistent headers
4270
# can be detected and how.
4271
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272
/* end confdefs.h. */
4273
#include <ac_nonexistent.h>
4275
if ac_fn_c_try_cpp "$LINENO"; then :
4276
# Broken: success on invalid input.
4279
# Passes both tests.
4283
rm -f conftest.err conftest.$ac_ext
4286
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287
rm -f conftest.err conftest.$ac_ext
4288
if $ac_preproc_ok; then :
4300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4301
$as_echo "$CPP" >&6; }
4303
for ac_c_preproc_warn_flag in '' yes
4305
# Use a header file that comes with gcc, so configuring glibc
4306
# with a fresh cross-compiler works.
4307
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308
# <limits.h> exists even on freestanding compilers.
4309
# On the NeXT, cc -E runs the code through the compiler's parser,
4310
# not just through cpp. "Syntax error" is here to catch this case.
4311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312
/* end confdefs.h. */
4314
# include <limits.h>
4316
# include <assert.h>
4320
if ac_fn_c_try_cpp "$LINENO"; then :
4323
# Broken: fails on valid input.
4326
rm -f conftest.err conftest.$ac_ext
4328
# OK, works on sane cases. Now check whether nonexistent headers
4329
# can be detected and how.
4330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331
/* end confdefs.h. */
4332
#include <ac_nonexistent.h>
4334
if ac_fn_c_try_cpp "$LINENO"; then :
4335
# Broken: success on invalid input.
4338
# Passes both tests.
4342
rm -f conftest.err conftest.$ac_ext
3924
if test -z "$ac_cv_path_SED"; then
3925
{ { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3926
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3927
{ (exit 1); exit 1; }; }
4345
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4346
rm -f conftest.err conftest.$ac_ext
4347
if $ac_preproc_ok; then :
3934
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3935
$as_echo "$ac_cv_path_SED" >&6; }
3936
SED="$ac_cv_path_SED"
3939
test -z "$SED" && SED=sed
3940
Xsed="$SED -e 1s/^X//"
3952
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4350
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4353
See \`config.log' for more details." "$LINENO" 5; }
4357
ac_cpp='$CPP $CPPFLAGS'
4358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3953
4364
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3954
if test "${ac_cv_path_GREP+set}" = set; then
4365
if test "${ac_cv_path_GREP+set}" = set; then :
3955
4366
$as_echo_n "(cached) " >&6
3957
4368
if test -z "$GREP"; then
4081
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4082
4489
$as_echo "$ac_cv_path_EGREP" >&6; }
4083
4490
EGREP="$ac_cv_path_EGREP"
4086
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4494
$as_echo_n "checking for ANSI C header files... " >&6; }
4495
if test "${ac_cv_header_stdc+set}" = set; then :
4496
$as_echo_n "(cached) " >&6
4498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499
/* end confdefs.h. */
4513
if ac_fn_c_try_compile "$LINENO"; then :
4514
ac_cv_header_stdc=yes
4516
ac_cv_header_stdc=no
4518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520
if test $ac_cv_header_stdc = yes; then
4521
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523
/* end confdefs.h. */
4527
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528
$EGREP "memchr" >/dev/null 2>&1; then :
4531
ac_cv_header_stdc=no
4537
if test $ac_cv_header_stdc = yes; then
4538
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4539
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540
/* end confdefs.h. */
4544
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545
$EGREP "free" >/dev/null 2>&1; then :
4548
ac_cv_header_stdc=no
4554
if test $ac_cv_header_stdc = yes; then
4555
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556
if test "$cross_compiling" = yes; then :
4559
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560
/* end confdefs.h. */
4563
#if ((' ' & 0x0FF) == 0x020)
4564
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4565
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4567
# define ISLOWER(c) \
4568
(('a' <= (c) && (c) <= 'i') \
4569
|| ('j' <= (c) && (c) <= 'r') \
4570
|| ('s' <= (c) && (c) <= 'z'))
4571
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4579
for (i = 0; i < 256; i++)
4580
if (XOR (islower (i), ISLOWER (i))
4581
|| toupper (i) != TOUPPER (i))
4586
if ac_fn_c_try_run "$LINENO"; then :
4589
ac_cv_header_stdc=no
4591
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4592
conftest.$ac_objext conftest.beam conftest.$ac_ext
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4598
$as_echo "$ac_cv_header_stdc" >&6; }
4599
if test $ac_cv_header_stdc = yes; then
4601
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4605
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4606
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4607
inttypes.h stdint.h unistd.h
4609
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4610
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4612
eval as_val=\$$as_ac_Header
4613
if test "x$as_val" = x""yes; then :
4614
cat >>confdefs.h <<_ACEOF
4615
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4626
if test -n "$ac_tool_prefix"; then
4627
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4628
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630
$as_echo_n "checking for $ac_word... " >&6; }
4631
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4632
$as_echo_n "(cached) " >&6
4636
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643
test -z "$as_dir" && as_dir=.
4644
for ac_exec_ext in '' $ac_executable_extensions; do
4645
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4647
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4658
if test -n "$PKG_CONFIG"; then
4659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4660
$as_echo "$PKG_CONFIG" >&6; }
4662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663
$as_echo "no" >&6; }
4668
if test -z "$ac_cv_path_PKG_CONFIG"; then
4669
ac_pt_PKG_CONFIG=$PKG_CONFIG
4670
# Extract the first word of "pkg-config", so it can be a program name with args.
4671
set dummy pkg-config; ac_word=$2
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673
$as_echo_n "checking for $ac_word... " >&6; }
4674
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4675
$as_echo_n "(cached) " >&6
4677
case $ac_pt_PKG_CONFIG in
4679
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686
test -z "$as_dir" && as_dir=.
4687
for ac_exec_ext in '' $ac_executable_extensions; do
4688
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4690
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4701
if test -n "$ac_pt_PKG_CONFIG"; then
4702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4703
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706
$as_echo "no" >&6; }
4709
if test "x$ac_pt_PKG_CONFIG" = x; then
4712
case $cross_compiling:$ac_tool_warned in
4714
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716
ac_tool_warned=yes ;;
4718
PKG_CONFIG=$ac_pt_PKG_CONFIG
4721
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4725
if test -n "$PKG_CONFIG"; then
4726
_pkg_min_version=0.9.0
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4728
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4729
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731
$as_echo "yes" >&6; }
4733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734
$as_echo "no" >&6; }
4739
# Make sure we can run config.sub.
4740
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4741
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4744
$as_echo_n "checking build system type... " >&6; }
4745
if test "${ac_cv_build+set}" = set; then :
4746
$as_echo_n "(cached) " >&6
4748
ac_build_alias=$build_alias
4749
test "x$ac_build_alias" = x &&
4750
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4751
test "x$ac_build_alias" = x &&
4752
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4753
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4754
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4758
$as_echo "$ac_cv_build" >&6; }
4759
case $ac_cv_build in
4761
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4764
ac_save_IFS=$IFS; IFS='-'
4770
# Remember, the first character of IFS is used to create $*,
4771
# except with old shells:
4774
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4778
$as_echo_n "checking host system type... " >&6; }
4779
if test "${ac_cv_host+set}" = set; then :
4780
$as_echo_n "(cached) " >&6
4782
if test "x$host_alias" = x; then
4783
ac_cv_host=$ac_cv_build
4785
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4786
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4791
$as_echo "$ac_cv_host" >&6; }
4794
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4797
ac_save_IFS=$IFS; IFS='-'
4803
# Remember, the first character of IFS is used to create $*,
4804
# except with old shells:
4807
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4811
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4812
if test "${ac_cv_path_SED+set}" = set; then :
4813
$as_echo_n "(cached) " >&6
4815
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4816
for ac_i in 1 2 3 4 5 6 7; do
4817
ac_script="$ac_script$as_nl$ac_script"
4819
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4820
{ ac_script=; unset ac_script;}
4821
if test -z "$SED"; then
4822
ac_path_SED_found=false
4823
# Loop through the user's path and test for each of PROGNAME-LIST
4824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828
test -z "$as_dir" && as_dir=.
4829
for ac_prog in sed gsed; do
4830
for ac_exec_ext in '' $ac_executable_extensions; do
4831
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4832
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4833
# Check for GNU ac_path_SED and select it if it is found.
4834
# Check for GNU $ac_path_SED
4835
case `"$ac_path_SED" --version 2>&1` in
4837
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4840
$as_echo_n 0123456789 >"conftest.in"
4843
cat "conftest.in" "conftest.in" >"conftest.tmp"
4844
mv "conftest.tmp" "conftest.in"
4845
cp "conftest.in" "conftest.nl"
4846
$as_echo '' >> "conftest.nl"
4847
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849
as_fn_arith $ac_count + 1 && ac_count=$as_val
4850
if test $ac_count -gt ${ac_path_SED_max-0}; then
4851
# Best one so far, save it but keep looking for a better one
4852
ac_cv_path_SED="$ac_path_SED"
4853
ac_path_SED_max=$ac_count
4855
# 10*(2^10) chars as input seems more than enough
4856
test $ac_count -gt 10 && break
4858
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861
$ac_path_SED_found && break 3
4866
if test -z "$ac_cv_path_SED"; then
4867
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4875
$as_echo "$ac_cv_path_SED" >&6; }
4876
SED="$ac_cv_path_SED"
4883
if test "x$GCC" = xyes ; then
4884
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4885
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4886
-Wbad-function-cast -Wformat=2"
4887
case `$CC -dumpversion` in
4889
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4893
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4894
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4900
if test "x$SUNCC" = "xyes"; then
4907
# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4911
# Check whether --enable-strict-compilation was given.
4912
if test "${enable_strict_compilation+set}" = set; then :
4913
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4918
if test "x$STRICT_COMPILE" = "xyes"; then
4919
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4920
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4926
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4927
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4933
if test "x$GCC" = xyes ; then
4934
STRICT_CFLAGS="-pedantic -Werror"
4935
elif test "x$SUNCC" = "xyes"; then
4936
STRICT_CFLAGS="-errwarn"
4937
elif test "x$INTELCC" = "xyes"; then
4938
STRICT_CFLAGS="-Werror"
4941
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4946
cat >>confdefs.h <<_ACEOF
4947
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4950
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4951
if test "x$PVM" = "x"; then
4955
cat >>confdefs.h <<_ACEOF
4956
#define PACKAGE_VERSION_MINOR $PVM
4959
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4960
if test "x$PVP" = "x"; then
4964
cat >>confdefs.h <<_ACEOF
4965
#define PACKAGE_VERSION_PATCHLEVEL $PVP
4970
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4971
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4972
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4973
echo 'git directory not found: installing possibly empty changelog.' >&2)"
4978
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4979
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4980
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4981
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4982
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4989
if test x$APP_MAN_SUFFIX = x ; then
4992
if test x$APP_MAN_DIR = x ; then
4993
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4996
if test x$LIB_MAN_SUFFIX = x ; then
4999
if test x$LIB_MAN_DIR = x ; then
5000
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5003
if test x$FILE_MAN_SUFFIX = x ; then
5005
solaris*) FILE_MAN_SUFFIX=4 ;;
5006
*) FILE_MAN_SUFFIX=5 ;;
5009
if test x$FILE_MAN_DIR = x ; then
5010
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5013
if test x$MISC_MAN_SUFFIX = x ; then
5015
solaris*) MISC_MAN_SUFFIX=5 ;;
5016
*) MISC_MAN_SUFFIX=7 ;;
5019
if test x$MISC_MAN_DIR = x ; then
5020
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5023
if test x$DRIVER_MAN_SUFFIX = x ; then
5025
solaris*) DRIVER_MAN_SUFFIX=7 ;;
5026
*) DRIVER_MAN_SUFFIX=4 ;;
5029
if test x$DRIVER_MAN_DIR = x ; then
5030
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5033
if test x$ADMIN_MAN_SUFFIX = x ; then
5035
solaris*) ADMIN_MAN_SUFFIX=1m ;;
5036
*) ADMIN_MAN_SUFFIX=8 ;;
5039
if test x$ADMIN_MAN_DIR = x ; then
5040
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5057
XORG_MAN_PAGE="X Version 11"
5060
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5061
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5062
-e 's|__xservername__|Xorg|g' \
5063
-e 's|__xconfigfile__|xorg.conf|g' \
5064
-e 's|__projectroot__|\$(prefix)|g' \
5065
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5066
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5067
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5068
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5069
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5070
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5074
# Check whether --enable-silent-rules was given.
5075
if test "${enable_silent_rules+set}" = set; then :
5076
enableval=$enable_silent_rules;
5079
case $enable_silent_rules in
5080
yes) AM_DEFAULT_VERBOSITY=0;;
5081
no) AM_DEFAULT_VERBOSITY=1;;
5082
*) AM_DEFAULT_VERBOSITY=0;;
5089
if test "x$default" = x ; then
5092
# Check whether --enable-docs was given.
5093
if test "${enable_docs+set}" = set; then :
5094
enableval=$enable_docs; build_docs=$enableval
5099
if test x$build_docs = xyes; then
5101
ENABLE_DOCS_FALSE='#'
5103
ENABLE_DOCS_TRUE='#'
5107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
5108
$as_echo_n "checking whether to build documentation... " >&6; }
5109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
5110
$as_echo "$build_docs" >&6; }
5114
if test "x$spec_default" = x ; then
5117
# Check whether --enable-specs was given.
5118
if test "${enable_specs+set}" = set; then :
5119
enableval=$enable_specs; build_specs=$enableval
5121
build_specs=$spec_default
5124
if test x$build_specs = xyes; then
5126
ENABLE_SPECS_FALSE='#'
5128
ENABLE_SPECS_TRUE='#'
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
5133
$as_echo_n "checking whether to build functional specifications... " >&6; }
5134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
5135
$as_echo "$build_specs" >&6; }
5140
# Check whether --with-xmlto was given.
5141
if test "${with_xmlto+set}" = set; then :
5142
withval=$with_xmlto; use_xmlto=$withval
5148
if test "x$use_xmlto" = x"auto"; then
5149
# Extract the first word of "xmlto", so it can be a program name with args.
5150
set dummy xmlto; ac_word=$2
5151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152
$as_echo_n "checking for $ac_word... " >&6; }
5153
if test "${ac_cv_path_XMLTO+set}" = set; then :
5154
$as_echo_n "(cached) " >&6
5158
ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165
test -z "$as_dir" && as_dir=.
5166
for ac_exec_ext in '' $ac_executable_extensions; do
5167
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168
ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5169
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179
XMLTO=$ac_cv_path_XMLTO
5180
if test -n "$XMLTO"; then
5181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5182
$as_echo "$XMLTO" >&6; }
5184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185
$as_echo "no" >&6; }
5189
if test "x$XMLTO" = "x"; then
5190
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
5191
$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
5196
elif test "x$use_xmlto" = x"yes" ; then
5197
# Extract the first word of "xmlto", so it can be a program name with args.
5198
set dummy xmlto; ac_word=$2
5199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200
$as_echo_n "checking for $ac_word... " >&6; }
5201
if test "${ac_cv_path_XMLTO+set}" = set; then :
5202
$as_echo_n "(cached) " >&6
5206
ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213
test -z "$as_dir" && as_dir=.
5214
for ac_exec_ext in '' $ac_executable_extensions; do
5215
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216
ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5217
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227
XMLTO=$ac_cv_path_XMLTO
5228
if test -n "$XMLTO"; then
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5230
$as_echo "$XMLTO" >&6; }
5232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233
$as_echo "no" >&6; }
5237
if test "x$XMLTO" = "x"; then
5238
as_fn_error "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
5241
elif test "x$use_xmlto" = x"no" ; then
5242
if test "x$XMLTO" != "x"; then
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
5244
$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
5248
as_fn_error "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
5251
# Test for a minimum version of xmlto, if provided.
5252
if test "$have_xmlto" = yes; then
5253
# scrape the xmlto version
5254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
5255
$as_echo_n "checking the xmlto version... " >&6; }
5256
xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
5257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
5258
$as_echo "$xmlto_version" >&6; }
5259
as_arg_v1=$xmlto_version
5261
awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5264
if test "x$use_xmlto" = xauto; then
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5266
$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5269
as_fn_error "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
5280
# Test for the ability of xmlto to generate a text target
5282
cat > conftest.xml << "EOF"
5284
if test "$have_xmlto" = yes; then :
5285
if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5288
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5289
$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5293
if test $have_xmlto_text = yes; then
5294
HAVE_XMLTO_TEXT_TRUE=
5295
HAVE_XMLTO_TEXT_FALSE='#'
5297
HAVE_XMLTO_TEXT_TRUE='#'
5298
HAVE_XMLTO_TEXT_FALSE=
5301
if test "$have_xmlto" = yes; then
5303
HAVE_XMLTO_FALSE='#'
5313
# Check whether --with-fop was given.
5314
if test "${with_fop+set}" = set; then :
5315
withval=$with_fop; use_fop=$withval
5321
if test "x$use_fop" = x"auto"; then
5322
# Extract the first word of "fop", so it can be a program name with args.
5323
set dummy fop; ac_word=$2
5324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325
$as_echo_n "checking for $ac_word... " >&6; }
5326
if test "${ac_cv_path_FOP+set}" = set; then :
5327
$as_echo_n "(cached) " >&6
5331
ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338
test -z "$as_dir" && as_dir=.
5339
for ac_exec_ext in '' $ac_executable_extensions; do
5340
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341
ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5342
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353
if test -n "$FOP"; then
5354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5355
$as_echo "$FOP" >&6; }
5357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358
$as_echo "no" >&6; }
5362
if test "x$FOP" = "x"; then
5363
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5364
$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5369
elif test "x$use_fop" = x"yes" ; then
5370
# Extract the first word of "fop", so it can be a program name with args.
5371
set dummy fop; ac_word=$2
5372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373
$as_echo_n "checking for $ac_word... " >&6; }
5374
if test "${ac_cv_path_FOP+set}" = set; then :
5375
$as_echo_n "(cached) " >&6
5379
ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386
test -z "$as_dir" && as_dir=.
5387
for ac_exec_ext in '' $ac_executable_extensions; do
5388
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389
ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5390
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401
if test -n "$FOP"; then
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5403
$as_echo "$FOP" >&6; }
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406
$as_echo "no" >&6; }
5410
if test "x$FOP" = "x"; then
5411
as_fn_error "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5414
elif test "x$use_fop" = x"no" ; then
5415
if test "x$FOP" != "x"; then
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5417
$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5421
as_fn_error "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5423
if test "$have_fop" = yes; then
5433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5434
$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5436
if test -n "$PKG_CONFIG" && \
5437
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5438
($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5440
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5441
test $ac_status = 0; }; then
5442
XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5448
# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5449
# the path and the name of the doc stylesheet
5450
if test "x$XORG_SGML_PATH" != "x" ; then
5451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5452
$as_echo "$XORG_SGML_PATH" >&6; }
5453
STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5454
XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457
$as_echo "no" >&6; }
5463
if test "x$XSL_STYLESHEET" != "x"; then
5464
HAVE_STYLESHEETS_TRUE=
5465
HAVE_STYLESHEETS_FALSE='#'
5467
HAVE_STYLESHEETS_TRUE='#'
5468
HAVE_STYLESHEETS_FALSE=
5473
# Checks for programs.
5476
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5477
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5482
macro_version='2.2.6b'
5483
macro_revision='1.3017'
5497
ltmain="$ac_aux_dir/ltmain.sh"
5499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5500
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5501
if test "${ac_cv_path_SED+set}" = set; then :
5502
$as_echo_n "(cached) " >&6
5504
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5505
for ac_i in 1 2 3 4 5 6 7; do
5506
ac_script="$ac_script$as_nl$ac_script"
5508
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5509
{ ac_script=; unset ac_script;}
5510
if test -z "$SED"; then
5511
ac_path_SED_found=false
5512
# Loop through the user's path and test for each of PROGNAME-LIST
5513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517
test -z "$as_dir" && as_dir=.
5518
for ac_prog in sed gsed; do
5519
for ac_exec_ext in '' $ac_executable_extensions; do
5520
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5521
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5522
# Check for GNU ac_path_SED and select it if it is found.
5523
# Check for GNU $ac_path_SED
5524
case `"$ac_path_SED" --version 2>&1` in
5526
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5529
$as_echo_n 0123456789 >"conftest.in"
5532
cat "conftest.in" "conftest.in" >"conftest.tmp"
5533
mv "conftest.tmp" "conftest.in"
5534
cp "conftest.in" "conftest.nl"
5535
$as_echo '' >> "conftest.nl"
5536
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538
as_fn_arith $ac_count + 1 && ac_count=$as_val
5539
if test $ac_count -gt ${ac_path_SED_max-0}; then
5540
# Best one so far, save it but keep looking for a better one
5541
ac_cv_path_SED="$ac_path_SED"
5542
ac_path_SED_max=$ac_count
5544
# 10*(2^10) chars as input seems more than enough
5545
test $ac_count -gt 10 && break
5547
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5550
$ac_path_SED_found && break 3
5555
if test -z "$ac_cv_path_SED"; then
5556
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5564
$as_echo "$ac_cv_path_SED" >&6; }
5565
SED="$ac_cv_path_SED"
5568
test -z "$SED" && SED=sed
5569
Xsed="$SED -e 1s/^X//"
5581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4087
5582
$as_echo_n "checking for fgrep... " >&6; }
4088
if test "${ac_cv_path_FGREP+set}" = set; then
5583
if test "${ac_cv_path_FGREP+set}" = set; then :
4089
5584
$as_echo_n "(cached) " >&6
4091
5586
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6480
ac_cpp='$CPP $CPPFLAGS'
6481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6485
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6486
# On Suns, sometimes $CPP names a directory.
6487
if test -n "$CPP" && test -d "$CPP"; then
6490
if test -z "$CPP"; then
6491
if test "${ac_cv_prog_CPP+set}" = set; then
6492
$as_echo_n "(cached) " >&6
6494
# Double quotes because CPP needs to be expanded
6495
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6498
for ac_c_preproc_warn_flag in '' yes
6500
# Use a header file that comes with gcc, so configuring glibc
6501
# with a fresh cross-compiler works.
6502
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6503
# <limits.h> exists even on freestanding compilers.
6504
# On the NeXT, cc -E runs the code through the compiler's parser,
6505
# not just through cpp. "Syntax error" is here to catch this case.
6506
cat >conftest.$ac_ext <<_ACEOF
6509
cat confdefs.h >>conftest.$ac_ext
6510
cat >>conftest.$ac_ext <<_ACEOF
6511
/* end confdefs.h. */
6513
# include <limits.h>
6515
# include <assert.h>
6519
if { (ac_try="$ac_cpp conftest.$ac_ext"
6521
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522
*) ac_try_echo=$ac_try;;
6524
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6525
$as_echo "$ac_try_echo") >&5
6526
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6528
grep -v '^ *+' conftest.er1 >conftest.err
6530
cat conftest.err >&5
6531
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532
(exit $ac_status); } >/dev/null && {
6533
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6534
test ! -s conftest.err
6538
$as_echo "$as_me: failed program was:" >&5
6539
sed 's/^/| /' conftest.$ac_ext >&5
6541
# Broken: fails on valid input.
6545
rm -f conftest.err conftest.$ac_ext
6547
# OK, works on sane cases. Now check whether nonexistent headers
6548
# can be detected and how.
6549
cat >conftest.$ac_ext <<_ACEOF
6552
cat confdefs.h >>conftest.$ac_ext
6553
cat >>conftest.$ac_ext <<_ACEOF
6554
/* end confdefs.h. */
6555
#include <ac_nonexistent.h>
6557
if { (ac_try="$ac_cpp conftest.$ac_ext"
6559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560
*) ac_try_echo=$ac_try;;
6562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6563
$as_echo "$ac_try_echo") >&5
6564
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6566
grep -v '^ *+' conftest.er1 >conftest.err
6568
cat conftest.err >&5
6569
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570
(exit $ac_status); } >/dev/null && {
6571
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6572
test ! -s conftest.err
6574
# Broken: success on invalid input.
6577
$as_echo "$as_me: failed program was:" >&5
6578
sed 's/^/| /' conftest.$ac_ext >&5
6580
# Passes both tests.
6585
rm -f conftest.err conftest.$ac_ext
6588
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6589
rm -f conftest.err conftest.$ac_ext
6590
if $ac_preproc_ok; then
6602
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6603
$as_echo "$CPP" >&6; }
6605
for ac_c_preproc_warn_flag in '' yes
6607
# Use a header file that comes with gcc, so configuring glibc
6608
# with a fresh cross-compiler works.
6609
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6610
# <limits.h> exists even on freestanding compilers.
6611
# On the NeXT, cc -E runs the code through the compiler's parser,
6612
# not just through cpp. "Syntax error" is here to catch this case.
6613
cat >conftest.$ac_ext <<_ACEOF
6616
cat confdefs.h >>conftest.$ac_ext
6617
cat >>conftest.$ac_ext <<_ACEOF
6618
/* end confdefs.h. */
6620
# include <limits.h>
6622
# include <assert.h>
6626
if { (ac_try="$ac_cpp conftest.$ac_ext"
6628
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629
*) ac_try_echo=$ac_try;;
6631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632
$as_echo "$ac_try_echo") >&5
6633
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6635
grep -v '^ *+' conftest.er1 >conftest.err
6637
cat conftest.err >&5
6638
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639
(exit $ac_status); } >/dev/null && {
6640
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6641
test ! -s conftest.err
6645
$as_echo "$as_me: failed program was:" >&5
6646
sed 's/^/| /' conftest.$ac_ext >&5
6648
# Broken: fails on valid input.
6652
rm -f conftest.err conftest.$ac_ext
6654
# OK, works on sane cases. Now check whether nonexistent headers
6655
# can be detected and how.
6656
cat >conftest.$ac_ext <<_ACEOF
6659
cat confdefs.h >>conftest.$ac_ext
6660
cat >>conftest.$ac_ext <<_ACEOF
6661
/* end confdefs.h. */
6662
#include <ac_nonexistent.h>
6664
if { (ac_try="$ac_cpp conftest.$ac_ext"
6666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667
*) ac_try_echo=$ac_try;;
6669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6670
$as_echo "$ac_try_echo") >&5
6671
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6673
grep -v '^ *+' conftest.er1 >conftest.err
6675
cat conftest.err >&5
6676
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677
(exit $ac_status); } >/dev/null && {
6678
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6679
test ! -s conftest.err
6681
# Broken: success on invalid input.
6684
$as_echo "$as_me: failed program was:" >&5
6685
sed 's/^/| /' conftest.$ac_ext >&5
6687
# Passes both tests.
6692
rm -f conftest.err conftest.$ac_ext
6695
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6696
rm -f conftest.err conftest.$ac_ext
6697
if $ac_preproc_ok; then
6700
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6701
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6702
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6703
See \`config.log' for more details." >&5
6704
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6705
See \`config.log' for more details." >&2;}
6706
{ (exit 1); exit 1; }; }; }
6710
ac_cpp='$CPP $CPPFLAGS'
6711
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6717
$as_echo_n "checking for ANSI C header files... " >&6; }
6718
if test "${ac_cv_header_stdc+set}" = set; then
6719
$as_echo_n "(cached) " >&6
6721
cat >conftest.$ac_ext <<_ACEOF
6724
cat confdefs.h >>conftest.$ac_ext
6725
cat >>conftest.$ac_ext <<_ACEOF
6726
/* end confdefs.h. */
6740
rm -f conftest.$ac_objext
6741
if { (ac_try="$ac_compile"
6743
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744
*) ac_try_echo=$ac_try;;
6746
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6747
$as_echo "$ac_try_echo") >&5
6748
(eval "$ac_compile") 2>conftest.er1
6750
grep -v '^ *+' conftest.er1 >conftest.err
6752
cat conftest.err >&5
6753
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754
(exit $ac_status); } && {
6755
test -z "$ac_c_werror_flag" ||
6756
test ! -s conftest.err
6757
} && test -s conftest.$ac_objext; then
6758
ac_cv_header_stdc=yes
6760
$as_echo "$as_me: failed program was:" >&5
6761
sed 's/^/| /' conftest.$ac_ext >&5
6763
ac_cv_header_stdc=no
6766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768
if test $ac_cv_header_stdc = yes; then
6769
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6770
cat >conftest.$ac_ext <<_ACEOF
6773
cat confdefs.h >>conftest.$ac_ext
6774
cat >>conftest.$ac_ext <<_ACEOF
6775
/* end confdefs.h. */
6779
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6780
$EGREP "memchr" >/dev/null 2>&1; then
6783
ac_cv_header_stdc=no
6789
if test $ac_cv_header_stdc = yes; then
6790
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6791
cat >conftest.$ac_ext <<_ACEOF
6794
cat confdefs.h >>conftest.$ac_ext
6795
cat >>conftest.$ac_ext <<_ACEOF
6796
/* end confdefs.h. */
6800
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6801
$EGREP "free" >/dev/null 2>&1; then
6804
ac_cv_header_stdc=no
6810
if test $ac_cv_header_stdc = yes; then
6811
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6812
if test "$cross_compiling" = yes; then
6815
cat >conftest.$ac_ext <<_ACEOF
6818
cat confdefs.h >>conftest.$ac_ext
6819
cat >>conftest.$ac_ext <<_ACEOF
6820
/* end confdefs.h. */
6823
#if ((' ' & 0x0FF) == 0x020)
6824
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6825
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6827
# define ISLOWER(c) \
6828
(('a' <= (c) && (c) <= 'i') \
6829
|| ('j' <= (c) && (c) <= 'r') \
6830
|| ('s' <= (c) && (c) <= 'z'))
6831
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6834
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6839
for (i = 0; i < 256; i++)
6840
if (XOR (islower (i), ISLOWER (i))
6841
|| toupper (i) != TOUPPER (i))
6846
rm -f conftest$ac_exeext
6847
if { (ac_try="$ac_link"
6849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850
*) ac_try_echo=$ac_try;;
6852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853
$as_echo "$ac_try_echo") >&5
6854
(eval "$ac_link") 2>&5
6856
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6858
{ (case "(($ac_try" in
6859
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860
*) ac_try_echo=$ac_try;;
6862
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6863
$as_echo "$ac_try_echo") >&5
6864
(eval "$ac_try") 2>&5
6866
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867
(exit $ac_status); }; }; then
6870
$as_echo "$as_me: program exited with status $ac_status" >&5
6871
$as_echo "$as_me: failed program was:" >&5
6872
sed 's/^/| /' conftest.$ac_ext >&5
6875
ac_cv_header_stdc=no
6877
rm -rf conftest.dSYM
6878
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6884
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6885
$as_echo "$ac_cv_header_stdc" >&6; }
6886
if test $ac_cv_header_stdc = yes; then
6888
cat >>confdefs.h <<\_ACEOF
6889
#define STDC_HEADERS 1
6894
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6904
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6905
inttypes.h stdint.h unistd.h
6907
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6908
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6909
$as_echo_n "checking for $ac_header... " >&6; }
6910
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6911
$as_echo_n "(cached) " >&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
6921
#include <$ac_header>
6923
rm -f conftest.$ac_objext
6924
if { (ac_try="$ac_compile"
6926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927
*) ac_try_echo=$ac_try;;
6929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930
$as_echo "$ac_try_echo") >&5
6931
(eval "$ac_compile") 2>conftest.er1
6933
grep -v '^ *+' conftest.er1 >conftest.err
6935
cat conftest.err >&5
6936
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937
(exit $ac_status); } && {
6938
test -z "$ac_c_werror_flag" ||
6939
test ! -s conftest.err
6940
} && test -s conftest.$ac_objext; then
6941
eval "$as_ac_Header=yes"
6943
$as_echo "$as_me: failed program was:" >&5
6944
sed 's/^/| /' conftest.$ac_ext >&5
6946
eval "$as_ac_Header=no"
6949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951
ac_res=`eval 'as_val=${'$as_ac_Header'}
6952
$as_echo "$as_val"'`
6953
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6954
$as_echo "$ac_res" >&6; }
6955
as_val=`eval 'as_val=${'$as_ac_Header'}
6956
$as_echo "$as_val"'`
6957
if test "x$as_val" = x""yes; then
6958
cat >>confdefs.h <<_ACEOF
6959
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6968
7911
for ac_header in dlfcn.h
6970
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6971
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6972
$as_echo_n "checking for $ac_header... " >&6; }
6973
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6974
$as_echo_n "(cached) " >&6
6976
cat >conftest.$ac_ext <<_ACEOF
6979
cat confdefs.h >>conftest.$ac_ext
6980
cat >>conftest.$ac_ext <<_ACEOF
6981
/* end confdefs.h. */
6982
$ac_includes_default
6984
#include <$ac_header>
6986
rm -f conftest.$ac_objext
6987
if { (ac_try="$ac_compile"
6989
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990
*) ac_try_echo=$ac_try;;
6992
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993
$as_echo "$ac_try_echo") >&5
6994
(eval "$ac_compile") 2>conftest.er1
6996
grep -v '^ *+' conftest.er1 >conftest.err
6998
cat conftest.err >&5
6999
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
(exit $ac_status); } && {
7001
test -z "$ac_c_werror_flag" ||
7002
test ! -s conftest.err
7003
} && test -s conftest.$ac_objext; then
7004
eval "$as_ac_Header=yes"
7006
$as_echo "$as_me: failed program was:" >&5
7007
sed 's/^/| /' conftest.$ac_ext >&5
7009
eval "$as_ac_Header=no"
7012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014
ac_res=`eval 'as_val=${'$as_ac_Header'}
7015
$as_echo "$as_val"'`
7016
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7017
$as_echo "$ac_res" >&6; }
7018
as_val=`eval 'as_val=${'$as_ac_Header'}
7019
$as_echo "$as_val"'`
7020
if test "x$as_val" = x""yes; then
7913
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7915
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7021
7916
cat >>confdefs.h <<_ACEOF
7022
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7917
#define HAVE_DLFCN_H 1
11964
if test "x$GCC" = xyes ; then
11965
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11966
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11967
-Wbad-function-cast"
11968
case `$CC -dumpversion` in
11970
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11974
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11975
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11976
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11977
$as_echo_n "(cached) " >&6
11979
cat >conftest.$ac_ext <<_ACEOF
11982
cat confdefs.h >>conftest.$ac_ext
11983
cat >>conftest.$ac_ext <<_ACEOF
11984
/* end confdefs.h. */
11985
$ac_includes_default
11997
rm -f conftest.$ac_objext
11998
if { (ac_try="$ac_compile"
11999
case "(($ac_try" in
12000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001
*) ac_try_echo=$ac_try;;
12003
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004
$as_echo "$ac_try_echo") >&5
12005
(eval "$ac_compile") 2>conftest.er1
12007
grep -v '^ *+' conftest.er1 >conftest.err
12009
cat conftest.err >&5
12010
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011
(exit $ac_status); } && {
12012
test -z "$ac_c_werror_flag" ||
12013
test ! -s conftest.err
12014
} && test -s conftest.$ac_objext; then
12015
ac_cv_have_decl___SUNPRO_C=yes
12017
$as_echo "$as_me: failed program was:" >&5
12018
sed 's/^/| /' conftest.$ac_ext >&5
12020
ac_cv_have_decl___SUNPRO_C=no
12023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
12026
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
12027
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
12033
if test "x$SUNCC" = "xyes"; then
12038
# Check whether --enable-silent-rules was given.
12039
if test "${enable_silent_rules+set}" = set; then
12040
enableval=$enable_silent_rules;
12043
case $enable_silent_rules in
12044
yes) AM_DEFAULT_VERBOSITY=0;;
12045
no) AM_DEFAULT_VERBOSITY=1;;
12046
*) AM_DEFAULT_VERBOSITY=0;;
12052
12282
# Checks for pkg-config packages
12055
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12056
if test -n "$ac_tool_prefix"; then
12057
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12058
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12059
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12060
$as_echo_n "checking for $ac_word... " >&6; }
12061
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12062
$as_echo_n "(cached) " >&6
12064
case $PKG_CONFIG in
12066
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070
for as_dir in $PATH
12073
test -z "$as_dir" && as_dir=.
12074
for ac_exec_ext in '' $ac_executable_extensions; do
12075
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12077
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12087
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12088
if test -n "$PKG_CONFIG"; then
12089
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12090
$as_echo "$PKG_CONFIG" >&6; }
12092
{ $as_echo "$as_me:$LINENO: result: no" >&5
12093
$as_echo "no" >&6; }
12098
if test -z "$ac_cv_path_PKG_CONFIG"; then
12099
ac_pt_PKG_CONFIG=$PKG_CONFIG
12100
# Extract the first word of "pkg-config", so it can be a program name with args.
12101
set dummy pkg-config; ac_word=$2
12102
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12103
$as_echo_n "checking for $ac_word... " >&6; }
12104
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12105
$as_echo_n "(cached) " >&6
12107
case $ac_pt_PKG_CONFIG in
12109
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113
for as_dir in $PATH
12116
test -z "$as_dir" && as_dir=.
12117
for ac_exec_ext in '' $ac_executable_extensions; do
12118
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12119
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12120
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12130
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12131
if test -n "$ac_pt_PKG_CONFIG"; then
12132
{ $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12133
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12135
{ $as_echo "$as_me:$LINENO: result: no" >&5
12136
$as_echo "no" >&6; }
12139
if test "x$ac_pt_PKG_CONFIG" = x; then
12142
case $cross_compiling:$ac_tool_warned in
12144
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12145
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12146
ac_tool_warned=yes ;;
12148
PKG_CONFIG=$ac_pt_PKG_CONFIG
12151
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12155
if test -n "$PKG_CONFIG"; then
12156
_pkg_min_version=0.9.0
12157
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12158
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12159
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12160
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12161
$as_echo "yes" >&6; }
12163
{ $as_echo "$as_me:$LINENO: result: no" >&5
12164
$as_echo "no" >&6; }
12170
12284
pkg_failed=no
12171
{ $as_echo "$as_me:$LINENO: checking for ICE" >&5
12285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5
12172
12286
$as_echo_n "checking for ICE... " >&6; }
12174
12288
if test -n "$ICE_CFLAGS"; then
12175
12289
pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
12176
12290
elif test -n "$PKG_CONFIG"; then
12177
12291
if test -n "$PKG_CONFIG" && \
12178
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
12292
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
12179
12293
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12181
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182
(exit $ac_status); }; then
12295
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12296
test $ac_status = 0; }; then
12183
12297
pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
12185
12299
pkg_failed=yes
12616
12617
ac_res=-l$ac_lib
12617
12618
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12619
rm -f conftest.$ac_objext conftest$ac_exeext
12620
if { (ac_try="$ac_link"
12621
case "(($ac_try" in
12622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623
*) ac_try_echo=$ac_try;;
12625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626
$as_echo "$ac_try_echo") >&5
12627
(eval "$ac_link") 2>conftest.er1
12629
grep -v '^ *+' conftest.er1 >conftest.err
12631
cat conftest.err >&5
12632
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633
(exit $ac_status); } && {
12634
test -z "$ac_c_werror_flag" ||
12635
test ! -s conftest.err
12636
} && test -s conftest$ac_exeext && {
12637
test "$cross_compiling" = yes ||
12638
$as_test_x conftest$ac_exeext
12620
if ac_fn_c_try_link "$LINENO"; then :
12640
12621
ac_cv_search_gethostbyname=$ac_res
12642
$as_echo "$as_me: failed program was:" >&5
12643
sed 's/^/| /' conftest.$ac_ext >&5
12648
rm -rf conftest.dSYM
12649
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12651
if test "${ac_cv_search_gethostbyname+set}" = set; then
12623
rm -f core conftest.err conftest.$ac_objext \
12625
if test "${ac_cv_search_gethostbyname+set}" = set; then :
12655
if test "${ac_cv_search_gethostbyname+set}" = set; then
12629
if test "${ac_cv_search_gethostbyname+set}" = set; then :
12658
12632
ac_cv_search_gethostbyname=no
12660
12634
rm conftest.$ac_ext
12661
12635
LIBS=$ac_func_search_save_LIBS
12663
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12664
12638
$as_echo "$ac_cv_search_gethostbyname" >&6; }
12665
12639
ac_res=$ac_cv_search_gethostbyname
12666
if test "$ac_res" != no; then
12640
if test "$ac_res" != no; then :
12667
12641
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12672
{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
12673
$as_echo_n "checking for main in -lws2_32... " >&6; }
12674
if test "${ac_cv_lib_ws2_32_main+set}" = set; then
12675
$as_echo_n "(cached) " >&6
12677
ac_check_lib_save_LIBS=$LIBS
12678
LIBS="-lws2_32 $LIBS"
12679
cat >conftest.$ac_ext <<_ACEOF
12682
cat confdefs.h >>conftest.$ac_ext
12683
cat >>conftest.$ac_ext <<_ACEOF
12684
/* end confdefs.h. */
12695
rm -f conftest.$ac_objext conftest$ac_exeext
12696
if { (ac_try="$ac_link"
12697
case "(($ac_try" in
12698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699
*) ac_try_echo=$ac_try;;
12701
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12702
$as_echo "$ac_try_echo") >&5
12703
(eval "$ac_link") 2>conftest.er1
12705
grep -v '^ *+' conftest.er1 >conftest.err
12707
cat conftest.err >&5
12708
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709
(exit $ac_status); } && {
12710
test -z "$ac_c_werror_flag" ||
12711
test ! -s conftest.err
12712
} && test -s conftest$ac_exeext && {
12713
test "$cross_compiling" = yes ||
12714
$as_test_x conftest$ac_exeext
12716
ac_cv_lib_ws2_32_main=yes
12718
$as_echo "$as_me: failed program was:" >&5
12719
sed 's/^/| /' conftest.$ac_ext >&5
12721
ac_cv_lib_ws2_32_main=no
12724
rm -rf conftest.dSYM
12725
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12726
conftest$ac_exeext conftest.$ac_ext
12727
LIBS=$ac_check_lib_save_LIBS
12729
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
12730
$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12731
if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
12732
cat >>confdefs.h <<_ACEOF
12733
#define HAVE_LIBWS2_32 1
12736
LIBS="-lws2_32 $LIBS"
12739
ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12742
12646
# Needs to come after above checks for libsocket & libnsl for SVR4 systems
12743
12647
# Check whether --enable-ipv6 was given.
12744
if test "${enable_ipv6+set}" = set; then
12648
if test "${enable_ipv6+set}" = set; then :
12745
12649
enableval=$enable_ipv6; IPV6CONN=$enableval
12747
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12748
$as_echo_n "checking for getaddrinfo... " >&6; }
12749
if test "${ac_cv_func_getaddrinfo+set}" = set; then
12750
$as_echo_n "(cached) " >&6
12752
cat >conftest.$ac_ext <<_ACEOF
12755
cat confdefs.h >>conftest.$ac_ext
12756
cat >>conftest.$ac_ext <<_ACEOF
12757
/* end confdefs.h. */
12758
/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
12759
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12760
#define getaddrinfo innocuous_getaddrinfo
12762
/* System header to define __stub macros and hopefully few prototypes,
12763
which can conflict with char getaddrinfo (); below.
12764
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12765
<limits.h> exists even on freestanding compilers. */
12768
# include <limits.h>
12770
# include <assert.h>
12775
/* Override any GCC internal prototype to avoid an error.
12776
Use char because int might match the return type of a GCC
12777
builtin and then its argument prototype would still apply. */
12781
char getaddrinfo ();
12782
/* The GNU C library defines this for functions which it implements
12783
to always fail with ENOSYS. Some functions are actually named
12784
something starting with __ and the normal name is an alias. */
12785
#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
12792
return getaddrinfo ();
12797
rm -f conftest.$ac_objext conftest$ac_exeext
12798
if { (ac_try="$ac_link"
12799
case "(($ac_try" in
12800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801
*) ac_try_echo=$ac_try;;
12803
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804
$as_echo "$ac_try_echo") >&5
12805
(eval "$ac_link") 2>conftest.er1
12807
grep -v '^ *+' conftest.er1 >conftest.err
12809
cat conftest.err >&5
12810
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811
(exit $ac_status); } && {
12812
test -z "$ac_c_werror_flag" ||
12813
test ! -s conftest.err
12814
} && test -s conftest$ac_exeext && {
12815
test "$cross_compiling" = yes ||
12816
$as_test_x conftest$ac_exeext
12818
ac_cv_func_getaddrinfo=yes
12820
$as_echo "$as_me: failed program was:" >&5
12821
sed 's/^/| /' conftest.$ac_ext >&5
12823
ac_cv_func_getaddrinfo=no
12826
rm -rf conftest.dSYM
12827
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12828
conftest$ac_exeext conftest.$ac_ext
12830
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
12831
$as_echo "$ac_cv_func_getaddrinfo" >&6; }
12832
if test "x$ac_cv_func_getaddrinfo" = x""yes; then
12651
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12652
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
12840
{ $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
12660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12841
12661
$as_echo_n "checking if IPv6 support should be built... " >&6; }
12842
12662
if test "$IPV6CONN" = "yes"; then
12844
cat >>confdefs.h <<\_ACEOF
12664
$as_echo "#define IPv6 1" >>confdefs.h
12849
{ $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5
12667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12850
12668
$as_echo "$IPV6CONN" >&6; }
12852
12670
# 4.3BSD-Reno added a new member to struct sockaddr_in
12853
{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
12854
$as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
12855
if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
12856
$as_echo_n "(cached) " >&6
12858
cat >conftest.$ac_ext <<_ACEOF
12861
cat confdefs.h >>conftest.$ac_ext
12862
cat >>conftest.$ac_ext <<_ACEOF
12863
/* end confdefs.h. */
12865
#include <sys/types.h>
12866
#include <sys/socket.h>
12867
#include <netinet/in.h>
12873
static struct sockaddr_in ac_aggr;
12874
if (ac_aggr.sin_len)
12880
rm -f conftest.$ac_objext
12881
if { (ac_try="$ac_compile"
12882
case "(($ac_try" in
12883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884
*) ac_try_echo=$ac_try;;
12886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12887
$as_echo "$ac_try_echo") >&5
12888
(eval "$ac_compile") 2>conftest.er1
12890
grep -v '^ *+' conftest.er1 >conftest.err
12892
cat conftest.err >&5
12893
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894
(exit $ac_status); } && {
12895
test -z "$ac_c_werror_flag" ||
12896
test ! -s conftest.err
12897
} && test -s conftest.$ac_objext; then
12898
ac_cv_member_struct_sockaddr_in_sin_len=yes
12900
$as_echo "$as_me: failed program was:" >&5
12901
sed 's/^/| /' conftest.$ac_ext >&5
12903
cat >conftest.$ac_ext <<_ACEOF
12906
cat confdefs.h >>conftest.$ac_ext
12907
cat >>conftest.$ac_ext <<_ACEOF
12908
/* end confdefs.h. */
12910
#include <sys/types.h>
12911
#include <sys/socket.h>
12912
#include <netinet/in.h>
12918
static struct sockaddr_in ac_aggr;
12919
if (sizeof ac_aggr.sin_len)
12925
rm -f conftest.$ac_objext
12926
if { (ac_try="$ac_compile"
12927
case "(($ac_try" in
12928
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929
*) ac_try_echo=$ac_try;;
12931
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12932
$as_echo "$ac_try_echo") >&5
12933
(eval "$ac_compile") 2>conftest.er1
12935
grep -v '^ *+' conftest.er1 >conftest.err
12937
cat conftest.err >&5
12938
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939
(exit $ac_status); } && {
12940
test -z "$ac_c_werror_flag" ||
12941
test ! -s conftest.err
12942
} && test -s conftest.$ac_objext; then
12943
ac_cv_member_struct_sockaddr_in_sin_len=yes
12945
$as_echo "$as_me: failed program was:" >&5
12946
sed 's/^/| /' conftest.$ac_ext >&5
12948
ac_cv_member_struct_sockaddr_in_sin_len=no
12951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
12957
$as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
12958
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
12960
cat >>confdefs.h <<\_ACEOF
12961
#define BSD44SOCKETS 1
12671
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12672
#include <sys/types.h>
12673
#include <sys/socket.h>
12674
#include <netinet/in.h>
12677
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12679
$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
12967
12684
# POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12968
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
12969
$as_echo_n "checking for socklen_t... " >&6; }
12970
if test "${ac_cv_type_socklen_t+set}" = set; then
12971
$as_echo_n "(cached) " >&6
12973
ac_cv_type_socklen_t=no
12974
cat >conftest.$ac_ext <<_ACEOF
12977
cat confdefs.h >>conftest.$ac_ext
12978
cat >>conftest.$ac_ext <<_ACEOF
12979
/* end confdefs.h. */
12981
$ac_includes_default
12982
#include <sys/socket.h>
12987
if (sizeof (socklen_t))
12993
rm -f conftest.$ac_objext
12994
if { (ac_try="$ac_compile"
12995
case "(($ac_try" in
12996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997
*) ac_try_echo=$ac_try;;
12999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13000
$as_echo "$ac_try_echo") >&5
13001
(eval "$ac_compile") 2>conftest.er1
13003
grep -v '^ *+' conftest.er1 >conftest.err
13005
cat conftest.err >&5
13006
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007
(exit $ac_status); } && {
13008
test -z "$ac_c_werror_flag" ||
13009
test ! -s conftest.err
13010
} && test -s conftest.$ac_objext; then
13011
cat >conftest.$ac_ext <<_ACEOF
13014
cat confdefs.h >>conftest.$ac_ext
13015
cat >>conftest.$ac_ext <<_ACEOF
13016
/* end confdefs.h. */
13018
$ac_includes_default
13019
#include <sys/socket.h>
13024
if (sizeof ((socklen_t)))
13030
rm -f conftest.$ac_objext
13031
if { (ac_try="$ac_compile"
13032
case "(($ac_try" in
13033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034
*) ac_try_echo=$ac_try;;
13036
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13037
$as_echo "$ac_try_echo") >&5
13038
(eval "$ac_compile") 2>conftest.er1
13040
grep -v '^ *+' conftest.er1 >conftest.err
13042
cat conftest.err >&5
13043
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044
(exit $ac_status); } && {
13045
test -z "$ac_c_werror_flag" ||
13046
test ! -s conftest.err
13047
} && test -s conftest.$ac_objext; then
13050
$as_echo "$as_me: failed program was:" >&5
13051
sed 's/^/| /' conftest.$ac_ext >&5
13053
ac_cv_type_socklen_t=yes
13056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058
$as_echo "$as_me: failed program was:" >&5
13059
sed 's/^/| /' conftest.$ac_ext >&5
13064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13067
$as_echo "$ac_cv_type_socklen_t" >&6; }
13068
if test "x$ac_cv_type_socklen_t" = x""yes; then
12685
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12686
$ac_includes_default
12687
#include <sys/socket.h>
12689
if test "x$ac_cv_type_socklen_t" = x""yes; then :
13070
12691
cat >>confdefs.h <<_ACEOF
13071
12692
#define HAVE_SOCKLEN_T 1