135
# Required to use basename.
136
if expr a : '\(a\)' >/dev/null 2>&1 &&
137
test "X`expr 00001 : '.*\(...\)'`" = X001; then
143
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
150
# Name of the executable.
151
as_me=`$as_basename -- "$0" ||
152
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
153
X"$0" : 'X\(//\)$' \| \
154
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156
sed '/^.*\/\([^/][^/]*\)\/*$/{
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
174
135
if test "x$CONFIG_SHELL" = x; then
175
if (eval ":") 2>/dev/null; then
136
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140
# is contrary to our usage. Disable this feature.
141
alias -g '\${1+\"\$@\"}'='\"\$@\"'
144
case \`(set -o) 2>/dev/null\` in #(
152
as_required="as_fn_return () { (exit \$1); }
153
as_fn_success () { as_fn_return 0; }
154
as_fn_failure () { as_fn_return 1; }
155
as_fn_ret_success () { return 0; }
156
as_fn_ret_failure () { return 1; }
159
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
exitcode=1; echo positional parameters were not saved.
168
test x\$exitcode = x0 || exit 1"
169
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173
test \$(( 1 + 1 )) = 2 || exit 1"
174
if (eval "$as_required") 2>/dev/null; then :
176
175
as_have_required=yes
178
177
as_have_required=no
181
if test $as_have_required = yes && (eval ":
191
as_func_ret_success () {
194
as_func_ret_failure () {
199
if as_func_success; then
203
echo as_func_success failed.
206
if as_func_failure; then
208
echo as_func_failure succeeded.
211
if as_func_ret_success; then
215
echo as_func_ret_success failed.
218
if as_func_ret_failure; then
220
echo as_func_ret_failure succeeded.
223
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227
echo positional parameters were not saved.
230
test \$exitcode = 0) || { (exit 1); exit 1; }
235
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
236
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
237
") 2> /dev/null; then
241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
179
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
242
184
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245
187
test -z "$as_dir" && as_dir=.
248
191
for as_base in sh bash ksh sh5; do
249
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
192
# Try only shells that exist, to save several forks.
193
as_shell=$as_dir/$as_base
194
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196
CONFIG_SHELL=$as_shell as_have_required=yes
197
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207
CONFIG_SHELL=$SHELL as_have_required=yes
256
for as_shell in $as_candidate_shells $SHELL; do
257
# Try only shells that exist, to save several forks.
258
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
259
{ ("$as_shell") 2> /dev/null <<\_ASEOF
260
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
264
# is contrary to our usage. Disable this feature.
265
alias -g '${1+"$@"}'='"$@"'
268
case `(set -o) 2>/dev/null` in
269
*posix*) set -o posix ;;
278
CONFIG_SHELL=$as_shell
280
if { "$as_shell" 2> /dev/null <<\_ASEOF
281
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
285
# is contrary to our usage. Disable this feature.
286
alias -g '${1+"$@"}'='"$@"'
289
case `(set -o) 2>/dev/null` in
290
*posix*) set -o posix ;;
306
as_func_ret_success () {
309
as_func_ret_failure () {
314
if as_func_success; then
318
echo as_func_success failed.
321
if as_func_failure; then
323
echo as_func_failure succeeded.
326
if as_func_ret_success; then
330
echo as_func_ret_success failed.
333
if as_func_ret_failure; then
335
echo as_func_ret_failure succeeded.
338
if ( set x; as_func_ret_success y && test x = "$1" ); then
342
echo positional parameters were not saved.
345
test $exitcode = 0) || { (exit 1); exit 1; }
350
test "x$as_lineno_1" != "x$as_lineno_2" &&
351
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
362
if test "x$CONFIG_SHELL" != x; then
363
for as_var in BASH_ENV ENV
364
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
212
if test "x$CONFIG_SHELL" != x; then :
213
# We cannot yet assume a decent shell, so we have to provide a
214
# neutralization value for shells without unset; and this also
215
# works around shells that cannot unset nonexistent variables.
218
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
366
219
export CONFIG_SHELL
367
220
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371
if test $as_have_required = no; then
372
echo This script requires a shell more modern than all the
373
echo shells that I found on your system. Please install a
374
echo modern shell, or manually run the script under such a
375
echo shell if you do have one.
376
{ (exit 1); exit 1; }
386
(eval "as_func_return () {
395
as_func_ret_success () {
398
as_func_ret_failure () {
403
if as_func_success; then
407
echo as_func_success failed.
410
if as_func_failure; then
412
echo as_func_failure succeeded.
415
if as_func_ret_success; then
419
echo as_func_ret_success failed.
422
if as_func_ret_failure; then
424
echo as_func_ret_failure succeeded.
427
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431
echo positional parameters were not saved.
434
test \$exitcode = 0") || {
435
echo No shell found that supports shell functions.
436
echo Please tell bug-autoconf@gnu.org about your system,
437
echo including any error possibly output before this message.
438
echo This can help us improve future autoconf versions.
439
echo Configuration will now proceed without shell functions.
446
test "x$as_lineno_1" != "x$as_lineno_2" &&
447
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
450
# uniformly replaced by the line number. The first 'sed' inserts a
451
# line-number line after each line using $LINENO; the second 'sed'
452
# does the real work. The second script uses 'N' to pair each
453
# line-number line with the line containing $LINENO, and appends
454
# trailing '-' during substitution so that $LINENO is not a special
456
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
457
# scripts with optimization help from Paolo Bonzini. Blame Lee
458
# E. McMahon (1931-1989) for sed's syntax. :-)
223
if test x$as_have_required = xno; then :
224
$as_echo "$0: This script requires a shell more modern than all"
225
$as_echo "$0: the shells that I found on your system."
226
if test x${ZSH_VERSION+set} = xset ; then
227
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
230
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231
$0: including any error possibly output before this
232
$0: message. Then install a modern shell, or manually run
233
$0: the script under such a shell if you do have one."
239
SHELL=${CONFIG_SHELL-/bin/sh}
241
# Unset more variables known to interfere with behavior of common tools.
242
CLICOLOR_FORCE= GREP_OPTIONS=
243
unset CLICOLOR_FORCE GREP_OPTIONS
245
## --------------------- ##
246
## M4sh Shell Functions. ##
247
## --------------------- ##
250
# Portably unset VAR.
253
{ eval $1=; unset $1;}
257
# as_fn_set_status STATUS
258
# -----------------------
259
# Set $? to STATUS, without forking.
267
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277
# Create "$as_dir" as a directory, including parents if necessary.
282
-*) as_dir=./$as_dir;;
284
test -d "$as_dir" || eval $as_mkdir_p || {
288
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291
as_dirs="'$as_qdir' $as_dirs"
292
as_dir=`$as_dirname -- "$as_dir" ||
293
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294
X"$as_dir" : 'X\(//\)[^/]' \| \
295
X"$as_dir" : 'X\(//\)$' \| \
296
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297
$as_echo X"$as_dir" |
298
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
315
test -d "$as_dir" && break
317
test -z "$as_dirs" || eval "mkdir $as_dirs"
318
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
# as_fn_append VAR VALUE
323
# ----------------------
324
# Append the text in VALUE to the end of the definition contained in VAR. Take
325
# advantage of any shell optimizations that allow amortized linear growth over
326
# repeated appends, instead of the typical quadratic growth present in naive
328
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329
eval 'as_fn_append ()
342
# Perform arithmetic evaluation on the ARGs, and store the result in the
343
# global $as_val. Take advantage of shells that can avoid forks. The arguments
344
# must be portable across $(()) and expr.
345
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353
as_val=`expr "$@" || test $? -eq 1`
358
# as_fn_error ERROR [LINENO LOG_FD]
359
# ---------------------------------
360
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362
# script with status $?, using 1 if that was 0.
365
as_status=$?; test $as_status -eq 0 && as_status=1
367
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370
$as_echo "$as_me: error: $1" >&2
371
as_fn_exit $as_status
374
if expr a : '\(a\)' >/dev/null 2>&1 &&
375
test "X`expr 00001 : '.*\(...\)'`" = X001; then
381
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393
as_me=`$as_basename -- "$0" ||
394
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395
X"$0" : 'X\(//\)$' \| \
396
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398
sed '/^.*\/\([^/][^/]*\)\/*$/{
412
# Avoid depending upon Character Ranges.
413
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416
as_cr_digits='0123456789'
417
as_cr_alnum=$as_cr_Letters$as_cr_digits
420
as_lineno_1=$LINENO as_lineno_1a=$LINENO
421
as_lineno_2=$LINENO as_lineno_2a=$LINENO
422
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1708
1721
if $ac_init_version; then
1711
generated by GNU Autoconf 2.63
1724
generated by GNU Autoconf 2.64
1713
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1726
Copyright (C) 2009 Free Software Foundation, Inc.
1715
1727
This configure script is free software; the Free Software Foundation
1716
1728
gives unlimited permission to copy, distribute and modify it.
1733
## ------------------------ ##
1734
## Autoconf initialization. ##
1735
## ------------------------ ##
1737
# ac_fn_c_try_compile LINENO
1738
# --------------------------
1739
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1740
ac_fn_c_try_compile ()
1742
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743
rm -f conftest.$ac_objext
1744
if { { ac_try="$ac_compile"
1746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747
*) ac_try_echo=$ac_try;;
1749
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750
$as_echo "$ac_try_echo"; } >&5
1751
(eval "$ac_compile") 2>conftest.err
1753
if test -s conftest.err; then
1754
grep -v '^ *+' conftest.err >conftest.er1
1755
cat conftest.er1 >&5
1756
mv -f conftest.er1 conftest.err
1758
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759
test $ac_status = 0; } && {
1760
test -z "$ac_c_werror_flag" ||
1761
test ! -s conftest.err
1762
} && test -s conftest.$ac_objext; then :
1765
$as_echo "$as_me: failed program was:" >&5
1766
sed 's/^/| /' conftest.$ac_ext >&5
1770
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
} # ac_fn_c_try_compile
1775
# ac_fn_c_try_link LINENO
1776
# -----------------------
1777
# Try to link conftest.$ac_ext, and return whether this succeeded.
1780
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781
rm -f conftest.$ac_objext conftest$ac_exeext
1782
if { { ac_try="$ac_link"
1784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785
*) ac_try_echo=$ac_try;;
1787
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788
$as_echo "$ac_try_echo"; } >&5
1789
(eval "$ac_link") 2>conftest.err
1791
if test -s conftest.err; then
1792
grep -v '^ *+' conftest.err >conftest.er1
1793
cat conftest.er1 >&5
1794
mv -f conftest.er1 conftest.err
1796
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797
test $ac_status = 0; } && {
1798
test -z "$ac_c_werror_flag" ||
1799
test ! -s conftest.err
1800
} && test -s conftest$ac_exeext && {
1801
test "$cross_compiling" = yes ||
1802
$as_test_x conftest$ac_exeext
1806
$as_echo "$as_me: failed program was:" >&5
1807
sed 's/^/| /' conftest.$ac_ext >&5
1811
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813
# interfere with the next link command; also delete a directory that is
1814
# left behind by Apple's compiler. We do this before executing the actions.
1815
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819
} # ac_fn_c_try_link
1821
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822
# -------------------------------------------------------
1823
# Tests whether HEADER exists and can be compiled using the include files in
1824
# INCLUDES, setting the cache variable VAR accordingly.
1825
ac_fn_c_check_header_compile ()
1827
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829
$as_echo_n "checking for $2... " >&6; }
1830
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831
$as_echo_n "(cached) " >&6
1833
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834
/* end confdefs.h. */
1838
if ac_fn_c_try_compile "$LINENO"; then :
1843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847
$as_echo "$ac_res" >&6; }
1848
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850
} # ac_fn_c_check_header_compile
1852
# ac_fn_c_try_cpp LINENO
1853
# ----------------------
1854
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858
if { { ac_try="$ac_cpp conftest.$ac_ext"
1860
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861
*) ac_try_echo=$ac_try;;
1863
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864
$as_echo "$ac_try_echo"; } >&5
1865
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867
if test -s conftest.err; then
1868
grep -v '^ *+' conftest.err >conftest.er1
1869
cat conftest.er1 >&5
1870
mv -f conftest.er1 conftest.err
1872
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873
test $ac_status = 0; } >/dev/null && {
1874
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875
test ! -s conftest.err
1879
$as_echo "$as_me: failed program was:" >&5
1880
sed 's/^/| /' conftest.$ac_ext >&5
1884
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889
# ac_fn_c_try_run LINENO
1890
# ----------------------
1891
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892
# that executables *can* be run.
1895
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896
if { { ac_try="$ac_link"
1898
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899
*) ac_try_echo=$ac_try;;
1901
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902
$as_echo "$ac_try_echo"; } >&5
1903
(eval "$ac_link") 2>&5
1905
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907
{ { case "(($ac_try" in
1908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909
*) ac_try_echo=$ac_try;;
1911
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912
$as_echo "$ac_try_echo"; } >&5
1913
(eval "$ac_try") 2>&5
1915
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916
test $ac_status = 0; }; }; then :
1919
$as_echo "$as_me: program exited with status $ac_status" >&5
1920
$as_echo "$as_me: failed program was:" >&5
1921
sed 's/^/| /' conftest.$ac_ext >&5
1923
ac_retval=$ac_status
1925
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931
# ac_fn_c_check_func LINENO FUNC VAR
1932
# ----------------------------------
1933
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934
ac_fn_c_check_func ()
1936
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938
$as_echo_n "checking for $2... " >&6; }
1939
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940
$as_echo_n "(cached) " >&6
1942
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943
/* end confdefs.h. */
1944
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946
#define $2 innocuous_$2
1948
/* System header to define __stub macros and hopefully few prototypes,
1949
which can conflict with char $2 (); below.
1950
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951
<limits.h> exists even on freestanding compilers. */
1954
# include <limits.h>
1956
# include <assert.h>
1961
/* Override any GCC internal prototype to avoid an error.
1962
Use char because int might match the return type of a GCC
1963
builtin and then its argument prototype would still apply. */
1968
/* The GNU C library defines this for functions which it implements
1969
to always fail with ENOSYS. Some functions are actually named
1970
something starting with __ and the normal name is an alias. */
1971
#if defined __stub_$2 || defined __stub___$2
1983
if ac_fn_c_try_link "$LINENO"; then :
1988
rm -f core conftest.err conftest.$ac_objext \
1989
conftest$ac_exeext conftest.$ac_ext
1992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993
$as_echo "$ac_res" >&6; }
1994
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
} # ac_fn_c_check_func
1998
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1999
# -------------------------------------------
2000
# Tests whether TYPE exists after having included INCLUDES, setting cache
2001
# variable VAR accordingly.
2002
ac_fn_c_check_type ()
2004
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006
$as_echo_n "checking for $2... " >&6; }
2007
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008
$as_echo_n "(cached) " >&6
2011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012
/* end confdefs.h. */
2023
if ac_fn_c_try_compile "$LINENO"; then :
2024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025
/* end confdefs.h. */
2036
if ac_fn_c_try_compile "$LINENO"; then :
2041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047
$as_echo "$ac_res" >&6; }
2048
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
} # ac_fn_c_check_type
2052
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2053
# -------------------------------------------------------
2054
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2055
# the include files in INCLUDES and setting the cache variable VAR
2057
ac_fn_c_check_header_mongrel ()
2059
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062
$as_echo_n "checking for $2... " >&6; }
2063
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064
$as_echo_n "(cached) " >&6
2067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068
$as_echo "$ac_res" >&6; }
2070
# Is the header compilable?
2071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2072
$as_echo_n "checking $2 usability... " >&6; }
2073
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074
/* end confdefs.h. */
2078
if ac_fn_c_try_compile "$LINENO"; then :
2079
ac_header_compiler=yes
2081
ac_header_compiler=no
2083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2085
$as_echo "$ac_header_compiler" >&6; }
2087
# Is the header present?
2088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2089
$as_echo_n "checking $2 presence... " >&6; }
2090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091
/* end confdefs.h. */
2094
if ac_fn_c_try_cpp "$LINENO"; then :
2095
ac_header_preproc=yes
2097
ac_header_preproc=no
2099
rm -f conftest.err conftest.$ac_ext
2100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2101
$as_echo "$ac_header_preproc" >&6; }
2103
# So? What about this header?
2104
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2106
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2107
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2108
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2109
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2112
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2113
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2114
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2115
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2116
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2117
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2118
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2119
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2120
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2121
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125
$as_echo_n "checking for $2... " >&6; }
2126
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2127
$as_echo_n "(cached) " >&6
2129
eval "$3=\$ac_header_compiler"
2132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133
$as_echo "$ac_res" >&6; }
2135
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
} # ac_fn_c_check_header_mongrel
1720
2138
cat >config.log <<_ACEOF
1721
2139
This file contains any messages produced by compilers while
1722
2140
running configure, to aid debugging if configure makes a mistake.
1724
2142
It was created by $as_me, which was
1725
generated by GNU Autoconf 2.63. Invocation command line was
2143
generated by GNU Autoconf 2.64. Invocation command line was
9912
#IT_PROG_INTLTOOL([0.40.0])
10462
output_files="src/Makefile lisp/Makefile scripts/Makefile themes/Makefile\
10463
lisp/sawfish/ui/Makefile lisp/sawfish/gtk/Makefile sounds/Makefile\
10464
man/Makefile po/Makefile Makedefs Makefile sawfish.spec\
10465
lisp/sawfish/gtk/widgets/font.jl"
10467
SUBDIRS="src lisp scripts themes sounds man po"
10472
SUBDIRS="$SUBDIRS $sub"
10473
output_files="$output_files $sub/Makefile"
10475
output_files="$output_files $sub/$ext"
10480
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
10481
$as_echo_n "checking host system type... " >&6; }
10482
if test "${ac_cv_host+set}" = set; then
10483
$as_echo_n "(cached) " >&6
10485
if test "x$host_alias" = x; then
10486
ac_cv_host=$ac_cv_build
10488
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10489
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10490
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10491
{ (exit 1); exit 1; }; }
10495
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10496
$as_echo "$ac_cv_host" >&6; }
10497
case $ac_cv_host in
10499
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10500
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
10501
{ (exit 1); exit 1; }; };;
10504
ac_save_IFS=$IFS; IFS='-'
10510
# Remember, the first character of IFS is used to create $*,
10511
# except with old shells:
10514
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10518
case "${prefix}" in
10520
prefix=`echo ${prefix} | sed -e 's/^\(.*\)\/$/\1/'`
9916
codename="24 hours a day - 12 months a year"
9921
GETTEXT_PACKAGE=${PACKAGE}
9923
install_sh=../install-sh
9925
SUBDIRS="src lisp scripts themes sounds man"
10524
9927
sawfishdir='${datadir}/sawfish'
10525
9928
lispdir='${sawfishdir}/${version}/lisp'
10526
9929
localedir='${datadir}/locale'
10527
9930
sawfishexecdir='${libexecdir}/sawfish/${version}/${host_type}'
10530
ac_cpp='$CPP $CPPFLAGS'
10531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10534
if test -n "$ac_tool_prefix"; then
10535
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10536
set dummy ${ac_tool_prefix}gcc; ac_word=$2
10537
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10538
$as_echo_n "checking for $ac_word... " >&6; }
10539
if test "${ac_cv_prog_CC+set}" = set; then
10540
$as_echo_n "(cached) " >&6
10542
if test -n "$CC"; then
10543
ac_cv_prog_CC="$CC" # Let the user override the test.
10545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546
for as_dir in $PATH
10549
test -z "$as_dir" && as_dir=.
10550
for ac_exec_ext in '' $ac_executable_extensions; do
10551
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10552
ac_cv_prog_CC="${ac_tool_prefix}gcc"
10553
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10563
if test -n "$CC"; then
10564
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
10565
$as_echo "$CC" >&6; }
10567
{ $as_echo "$as_me:$LINENO: result: no" >&5
10568
$as_echo "no" >&6; }
10573
if test -z "$ac_cv_prog_CC"; then
10575
# Extract the first word of "gcc", so it can be a program name with args.
10576
set dummy gcc; ac_word=$2
10577
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10578
$as_echo_n "checking for $ac_word... " >&6; }
10579
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10580
$as_echo_n "(cached) " >&6
10582
if test -n "$ac_ct_CC"; then
10583
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586
for as_dir in $PATH
10589
test -z "$as_dir" && as_dir=.
10590
for ac_exec_ext in '' $ac_executable_extensions; do
10591
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592
ac_cv_prog_ac_ct_CC="gcc"
10593
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10603
if test -n "$ac_ct_CC"; then
10604
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10605
$as_echo "$ac_ct_CC" >&6; }
10607
{ $as_echo "$as_me:$LINENO: result: no" >&5
10608
$as_echo "no" >&6; }
10611
if test "x$ac_ct_CC" = x; then
10614
case $cross_compiling:$ac_tool_warned in
10616
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10617
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10618
ac_tool_warned=yes ;;
9932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9933
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9934
if test "${ac_cv_c_const+set}" = set; then :
9935
$as_echo_n "(cached) " >&6
9937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938
/* end confdefs.h. */
9943
/* FIXME: Include the comments suggested by Paul. */
9945
/* Ultrix mips cc rejects this. */
9946
typedef int charset[2];
9948
/* SunOS 4.1.1 cc rejects this. */
9949
char const *const *pcpcc;
9951
/* NEC SVR4.0.2 mips cc rejects this. */
9952
struct point {int x, y;};
9953
static struct point const zero = {0,0};
9954
/* AIX XL C 1.02.0.0 rejects this.
9955
It does not let you subtract one const X* pointer from another in
9956
an arm of an if-expression whose if-part is not a constant
9958
const char *g = "string";
9959
pcpcc = &g + (g ? g-g : 0);
9960
/* HPUX 7.0 cc rejects these. */
9962
ppc = (char**) pcpcc;
9963
pcpcc = (char const *const *) ppc;
9964
{ /* SCO 3.2v4 cc rejects this. */
9966
char const *s = 0 ? (char *) 0 : (char const *) 0;
9971
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9973
const int *foo = &x[0];
9976
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9977
typedef const int *iptr;
9981
{ /* AIX XL C 1.02.0.0 rejects this saying
9982
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9983
struct s { int j; const int *ap[3]; };
9984
struct s *b; b->j = 5;
9986
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9990
return !cs[0] && !zero.x;
9997
if ac_fn_c_try_compile "$LINENO"; then :
10002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10005
$as_echo "$ac_cv_c_const" >&6; }
10006
if test $ac_cv_c_const = no; then
10008
$as_echo "#define const /**/" >>confdefs.h
10012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10013
$as_echo_n "checking for inline... " >&6; }
10014
if test "${ac_cv_c_inline+set}" = set; then :
10015
$as_echo_n "(cached) " >&6
10018
for ac_kw in inline __inline__ __inline; do
10019
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020
/* end confdefs.h. */
10021
#ifndef __cplusplus
10023
static $ac_kw foo_t static_foo () {return 0; }
10024
$ac_kw foo_t foo () {return 0; }
10028
if ac_fn_c_try_compile "$LINENO"; then :
10029
ac_cv_c_inline=$ac_kw
10031
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10032
test "$ac_cv_c_inline" != no && break
10036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10037
$as_echo "$ac_cv_c_inline" >&6; }
10039
case $ac_cv_c_inline in
10042
case $ac_cv_c_inline in
10044
*) ac_val=$ac_cv_c_inline;;
10046
cat >>confdefs.h <<_ACEOF
10047
#ifndef __cplusplus
10048
#define inline $ac_val
10623
CC="$ac_cv_prog_CC"
10626
if test -z "$CC"; then
10627
if test -n "$ac_tool_prefix"; then
10628
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10629
set dummy ${ac_tool_prefix}cc; ac_word=$2
10630
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10631
$as_echo_n "checking for $ac_word... " >&6; }
10632
if test "${ac_cv_prog_CC+set}" = set; then
10633
$as_echo_n "(cached) " >&6
10635
if test -n "$CC"; then
10636
ac_cv_prog_CC="$CC" # Let the user override the test.
10638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639
for as_dir in $PATH
10642
test -z "$as_dir" && as_dir=.
10643
for ac_exec_ext in '' $ac_executable_extensions; do
10644
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645
ac_cv_prog_CC="${ac_tool_prefix}cc"
10646
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10656
if test -n "$CC"; then
10657
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
10658
$as_echo "$CC" >&6; }
10660
{ $as_echo "$as_me:$LINENO: result: no" >&5
10661
$as_echo "no" >&6; }
10667
if test -z "$CC"; then
10668
# Extract the first word of "cc", so it can be a program name with args.
10669
set dummy cc; ac_word=$2
10670
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10671
$as_echo_n "checking for $ac_word... " >&6; }
10672
if test "${ac_cv_prog_CC+set}" = set; then
10673
$as_echo_n "(cached) " >&6
10675
if test -n "$CC"; then
10676
ac_cv_prog_CC="$CC" # Let the user override the test.
10678
ac_prog_rejected=no
10679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680
for as_dir in $PATH
10683
test -z "$as_dir" && as_dir=.
10684
for ac_exec_ext in '' $ac_executable_extensions; do
10685
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10686
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10687
ac_prog_rejected=yes
10691
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10698
if test $ac_prog_rejected = yes; then
10699
# We found a bogon in the path, so make sure we never use it.
10700
set dummy $ac_cv_prog_CC
10702
if test $# != 0; then
10703
# We chose a different compiler from the bogus one.
10704
# However, it has the same basename, so the bogon will be chosen
10705
# first if we set CC to just the basename; use the full file name.
10707
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10713
if test -n "$CC"; then
10714
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
10715
$as_echo "$CC" >&6; }
10717
{ $as_echo "$as_me:$LINENO: result: no" >&5
10718
$as_echo "no" >&6; }
10723
if test -z "$CC"; then
10724
if test -n "$ac_tool_prefix"; then
10725
for ac_prog in cl.exe
10727
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10728
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10729
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10730
$as_echo_n "checking for $ac_word... " >&6; }
10731
if test "${ac_cv_prog_CC+set}" = set; then
10732
$as_echo_n "(cached) " >&6
10734
if test -n "$CC"; then
10735
ac_cv_prog_CC="$CC" # Let the user override the test.
10737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738
for as_dir in $PATH
10741
test -z "$as_dir" && as_dir=.
10742
for ac_exec_ext in '' $ac_executable_extensions; do
10743
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10744
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10745
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10755
if test -n "$CC"; then
10756
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
10757
$as_echo "$CC" >&6; }
10759
{ $as_echo "$as_me:$LINENO: result: no" >&5
10760
$as_echo "no" >&6; }
10764
test -n "$CC" && break
10054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10055
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10056
if test "${ac_cv_c_bigendian+set}" = set; then :
10057
$as_echo_n "(cached) " >&6
10059
ac_cv_c_bigendian=unknown
10060
# See if we're dealing with a universal compiler.
10061
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062
/* end confdefs.h. */
10063
#ifndef __APPLE_CC__
10064
not a universal capable compiler
10069
if ac_fn_c_try_compile "$LINENO"; then :
10071
# Check for potential -arch flags. It is not universal unless
10072
# there are at least two -arch flags with different values.
10075
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10076
if test -n "$ac_prev"; then
10078
i?86 | x86_64 | ppc | ppc64)
10079
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10082
ac_cv_c_bigendian=universal
10088
elif test "x$ac_word" = "x-arch"; then
10093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094
if test $ac_cv_c_bigendian = unknown; then
10095
# See if sys/param.h defines the BYTE_ORDER macro.
10096
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097
/* end confdefs.h. */
10098
#include <sys/types.h>
10099
#include <sys/param.h>
10104
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10105
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10107
bogus endian macros
10114
if ac_fn_c_try_compile "$LINENO"; then :
10115
# It does; now see whether it defined to BIG_ENDIAN or not.
10116
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117
/* end confdefs.h. */
10118
#include <sys/types.h>
10119
#include <sys/param.h>
10124
#if BYTE_ORDER != BIG_ENDIAN
10132
if ac_fn_c_try_compile "$LINENO"; then :
10133
ac_cv_c_bigendian=yes
10135
ac_cv_c_bigendian=no
10137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141
if test $ac_cv_c_bigendian = unknown; then
10142
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144
/* end confdefs.h. */
10145
#include <limits.h>
10150
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10151
bogus endian macros
10158
if ac_fn_c_try_compile "$LINENO"; then :
10159
# It does; now see whether it defined to _BIG_ENDIAN or not.
10160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161
/* end confdefs.h. */
10162
#include <limits.h>
10167
#ifndef _BIG_ENDIAN
10175
if ac_fn_c_try_compile "$LINENO"; then :
10176
ac_cv_c_bigendian=yes
10178
ac_cv_c_bigendian=no
10180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184
if test $ac_cv_c_bigendian = unknown; then
10185
# Compile a test program.
10186
if test "$cross_compiling" = yes; then :
10187
# Try to guess by grepping values from an object file.
10188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189
/* end confdefs.h. */
10190
short int ascii_mm[] =
10191
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10192
short int ascii_ii[] =
10193
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10194
int use_ascii (int i) {
10195
return ascii_mm[i] + ascii_ii[i];
10197
short int ebcdic_ii[] =
10198
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10199
short int ebcdic_mm[] =
10200
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10201
int use_ebcdic (int i) {
10202
return ebcdic_mm[i] + ebcdic_ii[i];
10209
return use_ascii (foo) == use_ebcdic (foo);
10214
if ac_fn_c_try_compile "$LINENO"; then :
10215
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10216
ac_cv_c_bigendian=yes
10218
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10219
if test "$ac_cv_c_bigendian" = unknown; then
10220
ac_cv_c_bigendian=no
10222
# finding both strings is unlikely to happen, but who knows?
10223
ac_cv_c_bigendian=unknown
10227
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230
/* end confdefs.h. */
10231
$ac_includes_default
10236
/* Are we little or big endian? From Harbison&Steele. */
10240
char c[sizeof (long int)];
10243
return u.c[sizeof (long int) - 1] == 1;
10249
if ac_fn_c_try_run "$LINENO"; then :
10250
ac_cv_c_bigendian=no
10252
ac_cv_c_bigendian=yes
10254
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10255
conftest.$ac_objext conftest.beam conftest.$ac_ext
10260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10261
$as_echo "$ac_cv_c_bigendian" >&6; }
10262
case $ac_cv_c_bigendian in #(
10264
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10270
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10274
as_fn_error "unknown endianness
10275
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10278
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10279
if test "x$ac_cv_type_size_t" = x""yes; then :
10283
cat >>confdefs.h <<_ACEOF
10284
#define size_t unsigned int
10289
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10290
# for constant arguments. Useless!
10291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10292
$as_echo_n "checking for working alloca.h... " >&6; }
10293
if test "${ac_cv_working_alloca_h+set}" = set; then :
10294
$as_echo_n "(cached) " >&6
10296
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297
/* end confdefs.h. */
10298
#include <alloca.h>
10302
char *p = (char *) alloca (2 * sizeof (int));
10308
if ac_fn_c_try_link "$LINENO"; then :
10309
ac_cv_working_alloca_h=yes
10311
ac_cv_working_alloca_h=no
10313
rm -f core conftest.err conftest.$ac_objext \
10314
conftest$ac_exeext conftest.$ac_ext
10316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10317
$as_echo "$ac_cv_working_alloca_h" >&6; }
10318
if test $ac_cv_working_alloca_h = yes; then
10320
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10325
$as_echo_n "checking for alloca... " >&6; }
10326
if test "${ac_cv_func_alloca_works+set}" = set; then :
10327
$as_echo_n "(cached) " >&6
10329
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330
/* end confdefs.h. */
10332
# define alloca __builtin_alloca
10335
# include <malloc.h>
10336
# define alloca _alloca
10338
# ifdef HAVE_ALLOCA_H
10339
# include <alloca.h>
10344
# ifndef alloca /* predefined by HP cc +Olibcalls */
10355
char *p = (char *) alloca (1);
10361
if ac_fn_c_try_link "$LINENO"; then :
10362
ac_cv_func_alloca_works=yes
10364
ac_cv_func_alloca_works=no
10366
rm -f core conftest.err conftest.$ac_objext \
10367
conftest$ac_exeext conftest.$ac_ext
10369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10370
$as_echo "$ac_cv_func_alloca_works" >&6; }
10372
if test $ac_cv_func_alloca_works = yes; then
10374
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10377
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
10378
# that cause trouble. Some versions do not even contain alloca or
10379
# contain a buggy version. If you still want to use their alloca,
10380
# use ar to extract alloca.o from them instead of compiling alloca.c.
10382
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10384
$as_echo "#define C_ALLOCA 1" >>confdefs.h
10387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10388
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10389
if test "${ac_cv_os_cray+set}" = set; then :
10390
$as_echo_n "(cached) " >&6
10392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393
/* end confdefs.h. */
10394
#if defined CRAY && ! defined CRAY2
10401
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10402
$EGREP "webecray" >/dev/null 2>&1; then :
10410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10411
$as_echo "$ac_cv_os_cray" >&6; }
10412
if test $ac_cv_os_cray = yes; then
10413
for ac_func in _getb67 GETB67 getb67; do
10414
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10415
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10416
eval as_val=\$$as_ac_var
10417
if test "x$as_val" = x""yes; then :
10419
cat >>confdefs.h <<_ACEOF
10420
#define CRAY_STACKSEG_END $ac_func
10767
if test -z "$CC"; then
10769
for ac_prog in cl.exe
10771
# Extract the first word of "$ac_prog", so it can be a program name with args.
10772
set dummy $ac_prog; ac_word=$2
10773
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10774
$as_echo_n "checking for $ac_word... " >&6; }
10775
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10776
$as_echo_n "(cached) " >&6
10778
if test -n "$ac_ct_CC"; then
10779
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782
for as_dir in $PATH
10785
test -z "$as_dir" && as_dir=.
10786
for ac_exec_ext in '' $ac_executable_extensions; do
10787
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10788
ac_cv_prog_ac_ct_CC="$ac_prog"
10789
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10798
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10799
if test -n "$ac_ct_CC"; then
10800
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10801
$as_echo "$ac_ct_CC" >&6; }
10803
{ $as_echo "$as_me:$LINENO: result: no" >&5
10804
$as_echo "no" >&6; }
10808
test -n "$ac_ct_CC" && break
10811
if test "x$ac_ct_CC" = x; then
10814
case $cross_compiling:$ac_tool_warned in
10816
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10817
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10818
ac_tool_warned=yes ;;
10827
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10828
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10829
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10830
See \`config.log' for more details." >&5
10831
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
10832
See \`config.log' for more details." >&2;}
10833
{ (exit 1); exit 1; }; }; }
10835
# Provide some information about the compiler.
10836
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
10839
{ (ac_try="$ac_compiler --version >&5"
10840
case "(($ac_try" in
10841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842
*) ac_try_echo=$ac_try;;
10844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10845
$as_echo "$ac_try_echo") >&5
10846
(eval "$ac_compiler --version >&5") 2>&5
10848
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849
(exit $ac_status); }
10850
{ (ac_try="$ac_compiler -v >&5"
10851
case "(($ac_try" in
10852
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853
*) ac_try_echo=$ac_try;;
10855
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10856
$as_echo "$ac_try_echo") >&5
10857
(eval "$ac_compiler -v >&5") 2>&5
10859
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860
(exit $ac_status); }
10861
{ (ac_try="$ac_compiler -V >&5"
10862
case "(($ac_try" in
10863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864
*) ac_try_echo=$ac_try;;
10866
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10867
$as_echo "$ac_try_echo") >&5
10868
(eval "$ac_compiler -V >&5") 2>&5
10870
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871
(exit $ac_status); }
10873
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10874
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10875
if test "${ac_cv_c_compiler_gnu+set}" = set; then
10876
$as_echo_n "(cached) " >&6
10878
cat >conftest.$ac_ext <<_ACEOF
10881
cat confdefs.h >>conftest.$ac_ext
10882
cat >>conftest.$ac_ext <<_ACEOF
10883
/* end confdefs.h. */
10896
rm -f conftest.$ac_objext
10897
if { (ac_try="$ac_compile"
10898
case "(($ac_try" in
10899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900
*) ac_try_echo=$ac_try;;
10902
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10903
$as_echo "$ac_try_echo") >&5
10904
(eval "$ac_compile") 2>conftest.er1
10906
grep -v '^ *+' conftest.er1 >conftest.err
10908
cat conftest.err >&5
10909
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910
(exit $ac_status); } && {
10911
test -z "$ac_c_werror_flag" ||
10912
test ! -s conftest.err
10913
} && test -s conftest.$ac_objext; then
10914
ac_compiler_gnu=yes
10916
$as_echo "$as_me: failed program was:" >&5
10917
sed 's/^/| /' conftest.$ac_ext >&5
10922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923
ac_cv_c_compiler_gnu=$ac_compiler_gnu
10926
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10927
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
10928
if test $ac_compiler_gnu = yes; then
10933
ac_test_CFLAGS=${CFLAGS+set}
10934
ac_save_CFLAGS=$CFLAGS
10935
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10936
$as_echo_n "checking whether $CC accepts -g... " >&6; }
10937
if test "${ac_cv_prog_cc_g+set}" = set; then
10938
$as_echo_n "(cached) " >&6
10940
ac_save_c_werror_flag=$ac_c_werror_flag
10941
ac_c_werror_flag=yes
10944
cat >conftest.$ac_ext <<_ACEOF
10947
cat confdefs.h >>conftest.$ac_ext
10948
cat >>conftest.$ac_ext <<_ACEOF
10949
/* end confdefs.h. */
10959
rm -f conftest.$ac_objext
10960
if { (ac_try="$ac_compile"
10961
case "(($ac_try" in
10962
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963
*) ac_try_echo=$ac_try;;
10965
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10966
$as_echo "$ac_try_echo") >&5
10967
(eval "$ac_compile") 2>conftest.er1
10969
grep -v '^ *+' conftest.er1 >conftest.err
10971
cat conftest.err >&5
10972
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973
(exit $ac_status); } && {
10974
test -z "$ac_c_werror_flag" ||
10975
test ! -s conftest.err
10976
} && test -s conftest.$ac_objext; then
10977
ac_cv_prog_cc_g=yes
10979
$as_echo "$as_me: failed program was:" >&5
10980
sed 's/^/| /' conftest.$ac_ext >&5
10983
cat >conftest.$ac_ext <<_ACEOF
10986
cat confdefs.h >>conftest.$ac_ext
10987
cat >>conftest.$ac_ext <<_ACEOF
10988
/* end confdefs.h. */
10998
rm -f conftest.$ac_objext
10999
if { (ac_try="$ac_compile"
11000
case "(($ac_try" in
11001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002
*) ac_try_echo=$ac_try;;
11004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11005
$as_echo "$ac_try_echo") >&5
11006
(eval "$ac_compile") 2>conftest.er1
11008
grep -v '^ *+' conftest.er1 >conftest.err
11010
cat conftest.err >&5
11011
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012
(exit $ac_status); } && {
11013
test -z "$ac_c_werror_flag" ||
11014
test ! -s conftest.err
11015
} && test -s conftest.$ac_objext; then
11018
$as_echo "$as_me: failed program was:" >&5
11019
sed 's/^/| /' conftest.$ac_ext >&5
11021
ac_c_werror_flag=$ac_save_c_werror_flag
11023
cat >conftest.$ac_ext <<_ACEOF
11026
cat confdefs.h >>conftest.$ac_ext
11027
cat >>conftest.$ac_ext <<_ACEOF
11028
/* end confdefs.h. */
11038
rm -f conftest.$ac_objext
11039
if { (ac_try="$ac_compile"
11040
case "(($ac_try" in
11041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042
*) ac_try_echo=$ac_try;;
11044
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11045
$as_echo "$ac_try_echo") >&5
11046
(eval "$ac_compile") 2>conftest.er1
11048
grep -v '^ *+' conftest.er1 >conftest.err
11050
cat conftest.err >&5
11051
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052
(exit $ac_status); } && {
11053
test -z "$ac_c_werror_flag" ||
11054
test ! -s conftest.err
11055
} && test -s conftest.$ac_objext; then
11056
ac_cv_prog_cc_g=yes
11058
$as_echo "$as_me: failed program was:" >&5
11059
sed 's/^/| /' conftest.$ac_ext >&5
11064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071
ac_c_werror_flag=$ac_save_c_werror_flag
11073
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11074
$as_echo "$ac_cv_prog_cc_g" >&6; }
11075
if test "$ac_test_CFLAGS" = set; then
11076
CFLAGS=$ac_save_CFLAGS
11077
elif test $ac_cv_prog_cc_g = yes; then
11078
if test "$GCC" = yes; then
11084
if test "$GCC" = yes; then
11090
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11091
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11092
if test "${ac_cv_prog_cc_c89+set}" = set; then
11093
$as_echo_n "(cached) " >&6
11095
ac_cv_prog_cc_c89=no
11097
cat >conftest.$ac_ext <<_ACEOF
11100
cat confdefs.h >>conftest.$ac_ext
11101
cat >>conftest.$ac_ext <<_ACEOF
11102
/* end confdefs.h. */
11103
#include <stdarg.h>
11105
#include <sys/types.h>
11106
#include <sys/stat.h>
11107
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11108
struct buf { int x; };
11109
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11110
static char *e (p, i)
11116
static char *f (char * (*g) (char **, int), char **p, ...)
11121
s = g (p, va_arg (v,int));
11126
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11127
function prototypes and stuff, but not '\xHH' hex character constants.
11128
These don't provoke an error unfortunately, instead are silently treated
11129
as 'x'. The following induces an error, until -std is added to get
11130
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11131
array size at least. It's necessary to write '\x00'==0 to get something
11132
that's true only with -std. */
11133
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11135
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11136
inside strings and character constants. */
11138
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11140
int test (int i, double x);
11141
struct s1 {int (*f) (int a);};
11142
struct s2 {int (*f) (double a);};
11143
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11149
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11154
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11155
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11157
CC="$ac_save_CC $ac_arg"
11158
rm -f conftest.$ac_objext
11159
if { (ac_try="$ac_compile"
11160
case "(($ac_try" in
11161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162
*) ac_try_echo=$ac_try;;
11164
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11165
$as_echo "$ac_try_echo") >&5
11166
(eval "$ac_compile") 2>conftest.er1
11168
grep -v '^ *+' conftest.er1 >conftest.err
11170
cat conftest.err >&5
11171
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172
(exit $ac_status); } && {
11173
test -z "$ac_c_werror_flag" ||
11174
test ! -s conftest.err
11175
} && test -s conftest.$ac_objext; then
11176
ac_cv_prog_cc_c89=$ac_arg
11178
$as_echo "$as_me: failed program was:" >&5
11179
sed 's/^/| /' conftest.$ac_ext >&5
11184
rm -f core conftest.err conftest.$ac_objext
11185
test "x$ac_cv_prog_cc_c89" != "xno" && break
11187
rm -f conftest.$ac_ext
11192
case "x$ac_cv_prog_cc_c89" in
11194
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
11195
$as_echo "none needed" >&6; } ;;
11197
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
11198
$as_echo "unsupported" >&6; } ;;
11200
CC="$CC $ac_cv_prog_cc_c89"
11201
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11202
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11207
ac_cpp='$CPP $CPPFLAGS'
11208
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11213
ac_cpp='$CPP $CPPFLAGS'
11214
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11217
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11218
$as_echo_n "checking how to run the C preprocessor... " >&6; }
11219
# On Suns, sometimes $CPP names a directory.
11220
if test -n "$CPP" && test -d "$CPP"; then
11223
if test -z "$CPP"; then
11224
if test "${ac_cv_prog_CPP+set}" = set; then
11225
$as_echo_n "(cached) " >&6
11227
# Double quotes because CPP needs to be expanded
11228
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11230
ac_preproc_ok=false
11231
for ac_c_preproc_warn_flag in '' yes
11233
# Use a header file that comes with gcc, so configuring glibc
11234
# with a fresh cross-compiler works.
11235
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236
# <limits.h> exists even on freestanding compilers.
11237
# On the NeXT, cc -E runs the code through the compiler's parser,
11238
# not just through cpp. "Syntax error" is here to catch this case.
11239
cat >conftest.$ac_ext <<_ACEOF
11242
cat confdefs.h >>conftest.$ac_ext
11243
cat >>conftest.$ac_ext <<_ACEOF
11244
/* end confdefs.h. */
11246
# include <limits.h>
11248
# include <assert.h>
11252
if { (ac_try="$ac_cpp conftest.$ac_ext"
11253
case "(($ac_try" in
11254
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255
*) ac_try_echo=$ac_try;;
11257
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11258
$as_echo "$ac_try_echo") >&5
11259
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261
grep -v '^ *+' conftest.er1 >conftest.err
11263
cat conftest.err >&5
11264
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265
(exit $ac_status); } >/dev/null && {
11266
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11267
test ! -s conftest.err
11271
$as_echo "$as_me: failed program was:" >&5
11272
sed 's/^/| /' conftest.$ac_ext >&5
11274
# Broken: fails on valid input.
11278
rm -f conftest.err conftest.$ac_ext
11280
# OK, works on sane cases. Now check whether nonexistent headers
11281
# can be detected and how.
11282
cat >conftest.$ac_ext <<_ACEOF
11285
cat confdefs.h >>conftest.$ac_ext
11286
cat >>conftest.$ac_ext <<_ACEOF
11287
/* end confdefs.h. */
11288
#include <ac_nonexistent.h>
11290
if { (ac_try="$ac_cpp conftest.$ac_ext"
11291
case "(($ac_try" in
11292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293
*) ac_try_echo=$ac_try;;
11295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11296
$as_echo "$ac_try_echo") >&5
11297
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11299
grep -v '^ *+' conftest.er1 >conftest.err
11301
cat conftest.err >&5
11302
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303
(exit $ac_status); } >/dev/null && {
11304
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11305
test ! -s conftest.err
11307
# Broken: success on invalid input.
11310
$as_echo "$as_me: failed program was:" >&5
11311
sed 's/^/| /' conftest.$ac_ext >&5
11313
# Passes both tests.
11318
rm -f conftest.err conftest.$ac_ext
11321
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11322
rm -f conftest.err conftest.$ac_ext
11323
if $ac_preproc_ok; then
11328
ac_cv_prog_CPP=$CPP
11331
CPP=$ac_cv_prog_CPP
11333
ac_cv_prog_CPP=$CPP
11335
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
11336
$as_echo "$CPP" >&6; }
11337
ac_preproc_ok=false
11338
for ac_c_preproc_warn_flag in '' yes
11340
# Use a header file that comes with gcc, so configuring glibc
11341
# with a fresh cross-compiler works.
11342
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343
# <limits.h> exists even on freestanding compilers.
11344
# On the NeXT, cc -E runs the code through the compiler's parser,
11345
# not just through cpp. "Syntax error" is here to catch this case.
11346
cat >conftest.$ac_ext <<_ACEOF
11349
cat confdefs.h >>conftest.$ac_ext
11350
cat >>conftest.$ac_ext <<_ACEOF
11351
/* end confdefs.h. */
11353
# include <limits.h>
11355
# include <assert.h>
11359
if { (ac_try="$ac_cpp conftest.$ac_ext"
11360
case "(($ac_try" in
11361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362
*) ac_try_echo=$ac_try;;
11364
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11365
$as_echo "$ac_try_echo") >&5
11366
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11368
grep -v '^ *+' conftest.er1 >conftest.err
11370
cat conftest.err >&5
11371
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372
(exit $ac_status); } >/dev/null && {
11373
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11374
test ! -s conftest.err
11378
$as_echo "$as_me: failed program was:" >&5
11379
sed 's/^/| /' conftest.$ac_ext >&5
11381
# Broken: fails on valid input.
11385
rm -f conftest.err conftest.$ac_ext
11387
# OK, works on sane cases. Now check whether nonexistent headers
11388
# can be detected and how.
11389
cat >conftest.$ac_ext <<_ACEOF
11392
cat confdefs.h >>conftest.$ac_ext
11393
cat >>conftest.$ac_ext <<_ACEOF
11394
/* end confdefs.h. */
11395
#include <ac_nonexistent.h>
11397
if { (ac_try="$ac_cpp conftest.$ac_ext"
11398
case "(($ac_try" in
11399
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400
*) ac_try_echo=$ac_try;;
11402
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11403
$as_echo "$ac_try_echo") >&5
11404
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11406
grep -v '^ *+' conftest.er1 >conftest.err
11408
cat conftest.err >&5
11409
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410
(exit $ac_status); } >/dev/null && {
11411
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11412
test ! -s conftest.err
11414
# Broken: success on invalid input.
11417
$as_echo "$as_me: failed program was:" >&5
11418
sed 's/^/| /' conftest.$ac_ext >&5
11420
# Passes both tests.
11425
rm -f conftest.err conftest.$ac_ext
11428
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11429
rm -f conftest.err conftest.$ac_ext
11430
if $ac_preproc_ok; then
11433
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11434
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11435
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11436
See \`config.log' for more details." >&5
11437
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11438
See \`config.log' for more details." >&2;}
11439
{ (exit 1); exit 1; }; }; }
11443
ac_cpp='$CPP $CPPFLAGS'
11444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10430
$as_echo_n "checking stack direction for C alloca... " >&6; }
10431
if test "${ac_cv_c_stack_direction+set}" = set; then :
10432
$as_echo_n "(cached) " >&6
10434
if test "$cross_compiling" = yes; then :
10435
ac_cv_c_stack_direction=0
10437
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438
/* end confdefs.h. */
10439
$ac_includes_default
10441
find_stack_direction ()
10443
static char *addr = 0;
10448
return find_stack_direction ();
10451
return (&dummy > addr) ? 1 : -1;
10457
return find_stack_direction () < 0;
10460
if ac_fn_c_try_run "$LINENO"; then :
10461
ac_cv_c_stack_direction=1
10463
ac_cv_c_stack_direction=-1
10465
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10466
conftest.$ac_objext conftest.beam conftest.$ac_ext
10470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10471
$as_echo "$ac_cv_c_stack_direction" >&6; }
10472
cat >>confdefs.h <<_ACEOF
10473
#define STACK_DIRECTION $ac_cv_c_stack_direction
10479
for ac_func in vprintf
10481
ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10482
if test "x$ac_cv_func_vprintf" = x""yes; then :
10483
cat >>confdefs.h <<_ACEOF
10484
#define HAVE_VPRINTF 1
10487
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10488
if test "x$ac_cv_func__doprnt" = x""yes; then :
10490
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10498
for ac_func in gethostname socket snprintf getpagesize
10500
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10501
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10502
eval as_val=\$$as_ac_var
10503
if test "x$as_val" = x""yes; then :
10504
cat >>confdefs.h <<_ACEOF
10505
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11448
10511
# Find a good install program. We prefer a C program (faster),
11449
10512
# so one script is as good as another. But avoid the broken or
11789
{ $as_echo "$as_me:$LINENO: checking for X" >&5
11790
$as_echo_n "checking for X... " >&6; }
11793
# Check whether --with-x was given.
11794
if test "${with_x+set}" = set; then
11798
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11799
if test "x$with_x" = xno; then
11800
# The user explicitly disabled X.
11803
case $x_includes,$x_libraries in #(
11804
*\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
11805
$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
11806
{ (exit 1); exit 1; }; };; #(
11807
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11808
$as_echo_n "(cached) " >&6
11810
# One or both of the vars are not set, and there is no cached value.
11811
ac_x_includes=no ac_x_libraries=no
11812
rm -f -r conftest.dir
11813
if mkdir conftest.dir; then
11815
cat >Imakefile <<'_ACEOF'
11817
@echo incroot='${INCROOT}'
11819
@echo usrlibdir='${USRLIBDIR}'
11821
@echo libdir='${LIBDIR}'
11823
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11824
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11825
for ac_var in incroot usrlibdir libdir; do
11826
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11828
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11829
for ac_extension in a so sl dylib la dll; do
11830
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11831
test -f "$ac_im_libdir/libX11.$ac_extension"; then
11832
ac_im_usrlibdir=$ac_im_libdir; break
11835
# Screen out bogus values from the imake configuration. They are
11836
# bogus both because they are the default anyway, and because
11837
# using them would break gcc on systems where it needs fixed includes.
11838
case $ac_im_incroot in
11839
/usr/include) ac_x_includes= ;;
11840
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11842
case $ac_im_usrlibdir in
11843
/usr/lib | /usr/lib64 | /lib | /lib64) ;;
11844
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11848
rm -f -r conftest.dir
11851
# Standard set of common directories for X headers.
11852
# Check X11 before X11Rn because it is often a symlink to the current release.
11864
/usr/local/X11/include
11865
/usr/local/X11R6/include
11866
/usr/local/X11R5/include
11867
/usr/local/X11R4/include
11869
/usr/local/include/X11
11870
/usr/local/include/X11R6
11871
/usr/local/include/X11R5
11872
/usr/local/include/X11R4
11876
/usr/XFree86/include/X11
11880
/usr/unsupported/include
11881
/usr/athena/include
11882
/usr/local/x11r5/include
11883
/usr/lpp/Xamples/include
11885
/usr/openwin/include
11886
/usr/openwin/share/include'
11888
if test "$ac_x_includes" = no; then
11889
# Guess where to find include files, by looking for Xlib.h.
11890
# First, try using that file with no special directory specified.
11891
cat >conftest.$ac_ext <<_ACEOF
11894
cat confdefs.h >>conftest.$ac_ext
11895
cat >>conftest.$ac_ext <<_ACEOF
11896
/* end confdefs.h. */
11897
#include <X11/Xlib.h>
11899
if { (ac_try="$ac_cpp conftest.$ac_ext"
11900
case "(($ac_try" in
11901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902
*) ac_try_echo=$ac_try;;
11904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905
$as_echo "$ac_try_echo") >&5
11906
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11908
grep -v '^ *+' conftest.er1 >conftest.err
11910
cat conftest.err >&5
11911
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912
(exit $ac_status); } >/dev/null && {
11913
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11914
test ! -s conftest.err
11916
# We can compile using X headers with no special include directory.
11919
$as_echo "$as_me: failed program was:" >&5
11920
sed 's/^/| /' conftest.$ac_ext >&5
11922
for ac_dir in $ac_x_header_dirs; do
11923
if test -r "$ac_dir/X11/Xlib.h"; then
11924
ac_x_includes=$ac_dir
11930
rm -f conftest.err conftest.$ac_ext
11931
fi # $ac_x_includes = no
11933
if test "$ac_x_libraries" = no; then
11934
# Check for the libraries.
11935
# See if we find them without any special options.
11936
# Don't add to $LIBS permanently.
11939
cat >conftest.$ac_ext <<_ACEOF
11942
cat confdefs.h >>conftest.$ac_ext
11943
cat >>conftest.$ac_ext <<_ACEOF
11944
/* end confdefs.h. */
11945
#include <X11/Xlib.h>
11954
rm -f conftest.$ac_objext conftest$ac_exeext
11955
if { (ac_try="$ac_link"
11956
case "(($ac_try" in
11957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958
*) ac_try_echo=$ac_try;;
11960
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11961
$as_echo "$ac_try_echo") >&5
11962
(eval "$ac_link") 2>conftest.er1
11964
grep -v '^ *+' conftest.er1 >conftest.err
11966
cat conftest.err >&5
11967
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968
(exit $ac_status); } && {
11969
test -z "$ac_c_werror_flag" ||
11970
test ! -s conftest.err
11971
} && test -s conftest$ac_exeext && {
11972
test "$cross_compiling" = yes ||
11973
$as_test_x conftest$ac_exeext
11976
# We can link X programs with no special library path.
11979
$as_echo "$as_me: failed program was:" >&5
11980
sed 's/^/| /' conftest.$ac_ext >&5
11983
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11985
# Don't even attempt the hair of trying to link an X program!
11986
for ac_extension in a so sl dylib la dll; do
11987
if test -r "$ac_dir/libX11.$ac_extension"; then
11988
ac_x_libraries=$ac_dir
11995
rm -rf conftest.dSYM
11996
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997
conftest$ac_exeext conftest.$ac_ext
11998
fi # $ac_x_libraries = no
12000
case $ac_x_includes,$ac_x_libraries in #(
12001
no,* | *,no | *\'*)
12002
# Didn't find X, or a directory has "'" in its name.
12003
ac_cv_have_x="have_x=no";; #(
12005
# Record where we found X for the cache.
12006
ac_cv_have_x="have_x=yes\
12007
ac_x_includes='$ac_x_includes'\
12008
ac_x_libraries='$ac_x_libraries'"
12014
eval "$ac_cv_have_x"
12017
if test "$have_x" != yes; then
12018
{ $as_echo "$as_me:$LINENO: result: $have_x" >&5
12019
$as_echo "$have_x" >&6; }
12022
# If each of the values was on the command line, it overrides each guess.
12023
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12024
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12025
# Update the cache value to reflect the command line values.
12026
ac_cv_have_x="have_x=yes\
12027
ac_x_includes='$x_includes'\
12028
ac_x_libraries='$x_libraries'"
12029
{ $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
12030
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12033
if test "$no_x" = yes; then
12034
# Not all programs may use this symbol, but it does not hurt to define it.
12036
cat >>confdefs.h <<\_ACEOF
12037
#define X_DISPLAY_MISSING 1
12040
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12042
if test -n "$x_includes"; then
12043
X_CFLAGS="$X_CFLAGS -I$x_includes"
12046
# It would also be nice to do this for all -L options, not just this one.
12047
if test -n "$x_libraries"; then
12048
X_LIBS="$X_LIBS -L$x_libraries"
12049
# For Solaris; some versions of Sun CC require a space after -R and
12050
# others require no space. Words are not sufficient . . . .
12051
{ $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
12052
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
12053
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12054
ac_xsave_c_werror_flag=$ac_c_werror_flag
12055
ac_c_werror_flag=yes
12056
cat >conftest.$ac_ext <<_ACEOF
12059
cat confdefs.h >>conftest.$ac_ext
12060
cat >>conftest.$ac_ext <<_ACEOF
12061
/* end confdefs.h. */
12071
rm -f conftest.$ac_objext conftest$ac_exeext
12072
if { (ac_try="$ac_link"
12073
case "(($ac_try" in
12074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075
*) ac_try_echo=$ac_try;;
12077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078
$as_echo "$ac_try_echo") >&5
12079
(eval "$ac_link") 2>conftest.er1
12081
grep -v '^ *+' conftest.er1 >conftest.err
12083
cat conftest.err >&5
12084
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085
(exit $ac_status); } && {
12086
test -z "$ac_c_werror_flag" ||
12087
test ! -s conftest.err
12088
} && test -s conftest$ac_exeext && {
12089
test "$cross_compiling" = yes ||
12090
$as_test_x conftest$ac_exeext
12092
{ $as_echo "$as_me:$LINENO: result: no" >&5
12093
$as_echo "no" >&6; }
12094
X_LIBS="$X_LIBS -R$x_libraries"
12096
$as_echo "$as_me: failed program was:" >&5
12097
sed 's/^/| /' conftest.$ac_ext >&5
12099
LIBS="$ac_xsave_LIBS -R $x_libraries"
12100
cat >conftest.$ac_ext <<_ACEOF
12103
cat confdefs.h >>conftest.$ac_ext
12104
cat >>conftest.$ac_ext <<_ACEOF
12105
/* end confdefs.h. */
12115
rm -f conftest.$ac_objext conftest$ac_exeext
12116
if { (ac_try="$ac_link"
12117
case "(($ac_try" in
12118
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119
*) ac_try_echo=$ac_try;;
12121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12122
$as_echo "$ac_try_echo") >&5
12123
(eval "$ac_link") 2>conftest.er1
12125
grep -v '^ *+' conftest.er1 >conftest.err
12127
cat conftest.err >&5
12128
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129
(exit $ac_status); } && {
12130
test -z "$ac_c_werror_flag" ||
12131
test ! -s conftest.err
12132
} && test -s conftest$ac_exeext && {
12133
test "$cross_compiling" = yes ||
12134
$as_test_x conftest$ac_exeext
12136
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12137
$as_echo "yes" >&6; }
12138
X_LIBS="$X_LIBS -R $x_libraries"
12140
$as_echo "$as_me: failed program was:" >&5
12141
sed 's/^/| /' conftest.$ac_ext >&5
12143
{ $as_echo "$as_me:$LINENO: result: neither works" >&5
12144
$as_echo "neither works" >&6; }
12147
rm -rf conftest.dSYM
12148
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12149
conftest$ac_exeext conftest.$ac_ext
12152
rm -rf conftest.dSYM
12153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154
conftest$ac_exeext conftest.$ac_ext
12155
ac_c_werror_flag=$ac_xsave_c_werror_flag
12156
LIBS=$ac_xsave_LIBS
12159
# Check for system-dependent libraries X programs must link with.
12160
# Do this before checking for the system-independent R6 libraries
12161
# (-lICE), since we may need -lsocket or whatever for X linking.
12163
if test "$ISC" = yes; then
12164
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12166
# Martyn Johnson says this is needed for Ultrix, if the X
12167
# libraries were built with DECnet support. And Karl Berry says
12168
# the Alpha needs dnet_stub (dnet does not exist).
12169
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12170
cat >conftest.$ac_ext <<_ACEOF
12173
cat confdefs.h >>conftest.$ac_ext
12174
cat >>conftest.$ac_ext <<_ACEOF
12175
/* end confdefs.h. */
12177
/* Override any GCC internal prototype to avoid an error.
12178
Use char because int might match the return type of a GCC
12179
builtin and then its argument prototype would still apply. */
12183
char XOpenDisplay ();
12187
return XOpenDisplay ();
12192
rm -f conftest.$ac_objext conftest$ac_exeext
12193
if { (ac_try="$ac_link"
12194
case "(($ac_try" in
12195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196
*) ac_try_echo=$ac_try;;
12198
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12199
$as_echo "$ac_try_echo") >&5
12200
(eval "$ac_link") 2>conftest.er1
12202
grep -v '^ *+' conftest.er1 >conftest.err
12204
cat conftest.err >&5
12205
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206
(exit $ac_status); } && {
12207
test -z "$ac_c_werror_flag" ||
12208
test ! -s conftest.err
12209
} && test -s conftest$ac_exeext && {
12210
test "$cross_compiling" = yes ||
12211
$as_test_x conftest$ac_exeext
12215
$as_echo "$as_me: failed program was:" >&5
12216
sed 's/^/| /' conftest.$ac_ext >&5
12218
{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
12219
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12220
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12221
$as_echo_n "(cached) " >&6
12223
ac_check_lib_save_LIBS=$LIBS
12224
LIBS="-ldnet $LIBS"
12225
cat >conftest.$ac_ext <<_ACEOF
12228
cat confdefs.h >>conftest.$ac_ext
12229
cat >>conftest.$ac_ext <<_ACEOF
12230
/* end confdefs.h. */
12232
/* Override any GCC internal prototype to avoid an error.
12233
Use char because int might match the return type of a GCC
12234
builtin and then its argument prototype would still apply. */
12242
return dnet_ntoa ();
12247
rm -f conftest.$ac_objext conftest$ac_exeext
12248
if { (ac_try="$ac_link"
12249
case "(($ac_try" in
12250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251
*) ac_try_echo=$ac_try;;
12253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12254
$as_echo "$ac_try_echo") >&5
12255
(eval "$ac_link") 2>conftest.er1
12257
grep -v '^ *+' conftest.er1 >conftest.err
12259
cat conftest.err >&5
12260
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261
(exit $ac_status); } && {
12262
test -z "$ac_c_werror_flag" ||
12263
test ! -s conftest.err
12264
} && test -s conftest$ac_exeext && {
12265
test "$cross_compiling" = yes ||
12266
$as_test_x conftest$ac_exeext
12268
ac_cv_lib_dnet_dnet_ntoa=yes
12270
$as_echo "$as_me: failed program was:" >&5
12271
sed 's/^/| /' conftest.$ac_ext >&5
12273
ac_cv_lib_dnet_dnet_ntoa=no
12276
rm -rf conftest.dSYM
12277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12278
conftest$ac_exeext conftest.$ac_ext
12279
LIBS=$ac_check_lib_save_LIBS
12281
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12282
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12283
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
12284
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12287
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12288
{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
12289
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12290
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12291
$as_echo_n "(cached) " >&6
12293
ac_check_lib_save_LIBS=$LIBS
12294
LIBS="-ldnet_stub $LIBS"
12295
cat >conftest.$ac_ext <<_ACEOF
12298
cat confdefs.h >>conftest.$ac_ext
12299
cat >>conftest.$ac_ext <<_ACEOF
12300
/* end confdefs.h. */
12302
/* Override any GCC internal prototype to avoid an error.
12303
Use char because int might match the return type of a GCC
12304
builtin and then its argument prototype would still apply. */
12312
return dnet_ntoa ();
12317
rm -f conftest.$ac_objext conftest$ac_exeext
12318
if { (ac_try="$ac_link"
12319
case "(($ac_try" in
12320
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321
*) ac_try_echo=$ac_try;;
12323
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12324
$as_echo "$ac_try_echo") >&5
12325
(eval "$ac_link") 2>conftest.er1
12327
grep -v '^ *+' conftest.er1 >conftest.err
12329
cat conftest.err >&5
12330
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331
(exit $ac_status); } && {
12332
test -z "$ac_c_werror_flag" ||
12333
test ! -s conftest.err
12334
} && test -s conftest$ac_exeext && {
12335
test "$cross_compiling" = yes ||
12336
$as_test_x conftest$ac_exeext
12338
ac_cv_lib_dnet_stub_dnet_ntoa=yes
12340
$as_echo "$as_me: failed program was:" >&5
12341
sed 's/^/| /' conftest.$ac_ext >&5
12343
ac_cv_lib_dnet_stub_dnet_ntoa=no
12346
rm -rf conftest.dSYM
12347
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12348
conftest$ac_exeext conftest.$ac_ext
12349
LIBS=$ac_check_lib_save_LIBS
12351
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12352
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12353
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
12354
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12360
rm -rf conftest.dSYM
12361
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12362
conftest$ac_exeext conftest.$ac_ext
12363
LIBS="$ac_xsave_LIBS"
12365
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12366
# to get the SysV transport functions.
12367
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12369
# The nsl library prevents programs from opening the X display
12370
# on Irix 5.2, according to T.E. Dickey.
12371
# The functions gethostbyname, getservbyname, and inet_addr are
12372
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12373
{ $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
12374
$as_echo_n "checking for gethostbyname... " >&6; }
12375
if test "${ac_cv_func_gethostbyname+set}" = set; then
12376
$as_echo_n "(cached) " >&6
12378
cat >conftest.$ac_ext <<_ACEOF
12381
cat confdefs.h >>conftest.$ac_ext
12382
cat >>conftest.$ac_ext <<_ACEOF
12383
/* end confdefs.h. */
12384
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12385
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12386
#define gethostbyname innocuous_gethostbyname
12388
/* System header to define __stub macros and hopefully few prototypes,
12389
which can conflict with char gethostbyname (); below.
12390
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391
<limits.h> exists even on freestanding compilers. */
12394
# include <limits.h>
12396
# include <assert.h>
12399
#undef gethostbyname
12401
/* Override any GCC internal prototype to avoid an error.
12402
Use char because int might match the return type of a GCC
12403
builtin and then its argument prototype would still apply. */
12407
char gethostbyname ();
12408
/* The GNU C library defines this for functions which it implements
12409
to always fail with ENOSYS. Some functions are actually named
12410
something starting with __ and the normal name is an alias. */
12411
#if defined __stub_gethostbyname || defined __stub___gethostbyname
12418
return gethostbyname ();
12423
rm -f conftest.$ac_objext conftest$ac_exeext
12424
if { (ac_try="$ac_link"
12425
case "(($ac_try" in
12426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427
*) ac_try_echo=$ac_try;;
12429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12430
$as_echo "$ac_try_echo") >&5
12431
(eval "$ac_link") 2>conftest.er1
12433
grep -v '^ *+' conftest.er1 >conftest.err
12435
cat conftest.err >&5
12436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437
(exit $ac_status); } && {
12438
test -z "$ac_c_werror_flag" ||
12439
test ! -s conftest.err
12440
} && test -s conftest$ac_exeext && {
12441
test "$cross_compiling" = yes ||
12442
$as_test_x conftest$ac_exeext
12444
ac_cv_func_gethostbyname=yes
12446
$as_echo "$as_me: failed program was:" >&5
12447
sed 's/^/| /' conftest.$ac_ext >&5
12449
ac_cv_func_gethostbyname=no
12452
rm -rf conftest.dSYM
12453
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12454
conftest$ac_exeext conftest.$ac_ext
12456
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12457
$as_echo "$ac_cv_func_gethostbyname" >&6; }
12459
if test $ac_cv_func_gethostbyname = no; then
12460
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12461
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12462
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12463
$as_echo_n "(cached) " >&6
12465
ac_check_lib_save_LIBS=$LIBS
12467
cat >conftest.$ac_ext <<_ACEOF
12470
cat confdefs.h >>conftest.$ac_ext
12471
cat >>conftest.$ac_ext <<_ACEOF
12472
/* end confdefs.h. */
12474
/* Override any GCC internal prototype to avoid an error.
12475
Use char because int might match the return type of a GCC
12476
builtin and then its argument prototype would still apply. */
12480
char gethostbyname ();
12484
return gethostbyname ();
12489
rm -f conftest.$ac_objext conftest$ac_exeext
12490
if { (ac_try="$ac_link"
12491
case "(($ac_try" in
12492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493
*) ac_try_echo=$ac_try;;
12495
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12496
$as_echo "$ac_try_echo") >&5
12497
(eval "$ac_link") 2>conftest.er1
12499
grep -v '^ *+' conftest.er1 >conftest.err
12501
cat conftest.err >&5
12502
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503
(exit $ac_status); } && {
12504
test -z "$ac_c_werror_flag" ||
12505
test ! -s conftest.err
12506
} && test -s conftest$ac_exeext && {
12507
test "$cross_compiling" = yes ||
12508
$as_test_x conftest$ac_exeext
12510
ac_cv_lib_nsl_gethostbyname=yes
12512
$as_echo "$as_me: failed program was:" >&5
12513
sed 's/^/| /' conftest.$ac_ext >&5
12515
ac_cv_lib_nsl_gethostbyname=no
12518
rm -rf conftest.dSYM
12519
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12520
conftest$ac_exeext conftest.$ac_ext
12521
LIBS=$ac_check_lib_save_LIBS
12523
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12524
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12525
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
12526
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12529
if test $ac_cv_lib_nsl_gethostbyname = no; then
12530
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12531
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12532
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12533
$as_echo_n "(cached) " >&6
12535
ac_check_lib_save_LIBS=$LIBS
12537
cat >conftest.$ac_ext <<_ACEOF
12540
cat confdefs.h >>conftest.$ac_ext
12541
cat >>conftest.$ac_ext <<_ACEOF
12542
/* end confdefs.h. */
12544
/* Override any GCC internal prototype to avoid an error.
12545
Use char because int might match the return type of a GCC
12546
builtin and then its argument prototype would still apply. */
12550
char gethostbyname ();
12554
return gethostbyname ();
12559
rm -f conftest.$ac_objext conftest$ac_exeext
12560
if { (ac_try="$ac_link"
12561
case "(($ac_try" in
12562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563
*) ac_try_echo=$ac_try;;
12565
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12566
$as_echo "$ac_try_echo") >&5
12567
(eval "$ac_link") 2>conftest.er1
12569
grep -v '^ *+' conftest.er1 >conftest.err
12571
cat conftest.err >&5
12572
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573
(exit $ac_status); } && {
12574
test -z "$ac_c_werror_flag" ||
12575
test ! -s conftest.err
12576
} && test -s conftest$ac_exeext && {
12577
test "$cross_compiling" = yes ||
12578
$as_test_x conftest$ac_exeext
12580
ac_cv_lib_bsd_gethostbyname=yes
12582
$as_echo "$as_me: failed program was:" >&5
12583
sed 's/^/| /' conftest.$ac_ext >&5
12585
ac_cv_lib_bsd_gethostbyname=no
12588
rm -rf conftest.dSYM
12589
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12590
conftest$ac_exeext conftest.$ac_ext
12591
LIBS=$ac_check_lib_save_LIBS
12593
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12594
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12595
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
12596
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12602
# lieder@skyler.mavd.honeywell.com says without -lsocket,
12603
# socket/setsockopt and other routines are undefined under SCO ODT
12604
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12605
# on later versions), says Simon Leinen: it contains gethostby*
12606
# variants that don't use the name server (or something). -lsocket
12607
# must be given before -lnsl if both are needed. We assume that
12608
# if connect needs -lnsl, so does gethostbyname.
12609
{ $as_echo "$as_me:$LINENO: checking for connect" >&5
12610
$as_echo_n "checking for connect... " >&6; }
12611
if test "${ac_cv_func_connect+set}" = set; then
12612
$as_echo_n "(cached) " >&6
12614
cat >conftest.$ac_ext <<_ACEOF
12617
cat confdefs.h >>conftest.$ac_ext
12618
cat >>conftest.$ac_ext <<_ACEOF
12619
/* end confdefs.h. */
12620
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
12621
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12622
#define connect innocuous_connect
12624
/* System header to define __stub macros and hopefully few prototypes,
12625
which can conflict with char connect (); below.
12626
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12627
<limits.h> exists even on freestanding compilers. */
12630
# include <limits.h>
12632
# include <assert.h>
12637
/* Override any GCC internal prototype to avoid an error.
12638
Use char because int might match the return type of a GCC
12639
builtin and then its argument prototype would still apply. */
12644
/* The GNU C library defines this for functions which it implements
12645
to always fail with ENOSYS. Some functions are actually named
12646
something starting with __ and the normal name is an alias. */
12647
#if defined __stub_connect || defined __stub___connect
12659
rm -f conftest.$ac_objext conftest$ac_exeext
12660
if { (ac_try="$ac_link"
12661
case "(($ac_try" in
12662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663
*) ac_try_echo=$ac_try;;
12665
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12666
$as_echo "$ac_try_echo") >&5
12667
(eval "$ac_link") 2>conftest.er1
12669
grep -v '^ *+' conftest.er1 >conftest.err
12671
cat conftest.err >&5
12672
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673
(exit $ac_status); } && {
12674
test -z "$ac_c_werror_flag" ||
12675
test ! -s conftest.err
12676
} && test -s conftest$ac_exeext && {
12677
test "$cross_compiling" = yes ||
12678
$as_test_x conftest$ac_exeext
12680
ac_cv_func_connect=yes
12682
$as_echo "$as_me: failed program was:" >&5
12683
sed 's/^/| /' conftest.$ac_ext >&5
12685
ac_cv_func_connect=no
12688
rm -rf conftest.dSYM
12689
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12690
conftest$ac_exeext conftest.$ac_ext
12692
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12693
$as_echo "$ac_cv_func_connect" >&6; }
12695
if test $ac_cv_func_connect = no; then
12696
{ $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12697
$as_echo_n "checking for connect in -lsocket... " >&6; }
12698
if test "${ac_cv_lib_socket_connect+set}" = set; then
12699
$as_echo_n "(cached) " >&6
12701
ac_check_lib_save_LIBS=$LIBS
12702
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12703
cat >conftest.$ac_ext <<_ACEOF
12706
cat confdefs.h >>conftest.$ac_ext
12707
cat >>conftest.$ac_ext <<_ACEOF
12708
/* end confdefs.h. */
12710
/* Override any GCC internal prototype to avoid an error.
12711
Use char because int might match the return type of a GCC
12712
builtin and then its argument prototype would still apply. */
12725
rm -f conftest.$ac_objext conftest$ac_exeext
12726
if { (ac_try="$ac_link"
12727
case "(($ac_try" in
12728
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729
*) ac_try_echo=$ac_try;;
12731
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12732
$as_echo "$ac_try_echo") >&5
12733
(eval "$ac_link") 2>conftest.er1
12735
grep -v '^ *+' conftest.er1 >conftest.err
12737
cat conftest.err >&5
12738
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739
(exit $ac_status); } && {
12740
test -z "$ac_c_werror_flag" ||
12741
test ! -s conftest.err
12742
} && test -s conftest$ac_exeext && {
12743
test "$cross_compiling" = yes ||
12744
$as_test_x conftest$ac_exeext
12746
ac_cv_lib_socket_connect=yes
12748
$as_echo "$as_me: failed program was:" >&5
12749
sed 's/^/| /' conftest.$ac_ext >&5
12751
ac_cv_lib_socket_connect=no
12754
rm -rf conftest.dSYM
12755
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12756
conftest$ac_exeext conftest.$ac_ext
12757
LIBS=$ac_check_lib_save_LIBS
12759
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12760
$as_echo "$ac_cv_lib_socket_connect" >&6; }
12761
if test "x$ac_cv_lib_socket_connect" = x""yes; then
12762
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12767
# Guillermo Gomez says -lposix is necessary on A/UX.
12768
{ $as_echo "$as_me:$LINENO: checking for remove" >&5
12769
$as_echo_n "checking for remove... " >&6; }
12770
if test "${ac_cv_func_remove+set}" = set; then
12771
$as_echo_n "(cached) " >&6
12773
cat >conftest.$ac_ext <<_ACEOF
12776
cat confdefs.h >>conftest.$ac_ext
12777
cat >>conftest.$ac_ext <<_ACEOF
12778
/* end confdefs.h. */
12779
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
12780
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12781
#define remove innocuous_remove
12783
/* System header to define __stub macros and hopefully few prototypes,
12784
which can conflict with char remove (); below.
12785
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786
<limits.h> exists even on freestanding compilers. */
12789
# include <limits.h>
12791
# include <assert.h>
12796
/* Override any GCC internal prototype to avoid an error.
12797
Use char because int might match the return type of a GCC
12798
builtin and then its argument prototype would still apply. */
12803
/* The GNU C library defines this for functions which it implements
12804
to always fail with ENOSYS. Some functions are actually named
12805
something starting with __ and the normal name is an alias. */
12806
#if defined __stub_remove || defined __stub___remove
12818
rm -f conftest.$ac_objext conftest$ac_exeext
12819
if { (ac_try="$ac_link"
12820
case "(($ac_try" in
12821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822
*) ac_try_echo=$ac_try;;
12824
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825
$as_echo "$ac_try_echo") >&5
12826
(eval "$ac_link") 2>conftest.er1
12828
grep -v '^ *+' conftest.er1 >conftest.err
12830
cat conftest.err >&5
12831
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832
(exit $ac_status); } && {
12833
test -z "$ac_c_werror_flag" ||
12834
test ! -s conftest.err
12835
} && test -s conftest$ac_exeext && {
12836
test "$cross_compiling" = yes ||
12837
$as_test_x conftest$ac_exeext
12839
ac_cv_func_remove=yes
12841
$as_echo "$as_me: failed program was:" >&5
12842
sed 's/^/| /' conftest.$ac_ext >&5
12844
ac_cv_func_remove=no
12847
rm -rf conftest.dSYM
12848
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849
conftest$ac_exeext conftest.$ac_ext
12851
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12852
$as_echo "$ac_cv_func_remove" >&6; }
12854
if test $ac_cv_func_remove = no; then
12855
{ $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12856
$as_echo_n "checking for remove in -lposix... " >&6; }
12857
if test "${ac_cv_lib_posix_remove+set}" = set; then
12858
$as_echo_n "(cached) " >&6
12860
ac_check_lib_save_LIBS=$LIBS
12861
LIBS="-lposix $LIBS"
12862
cat >conftest.$ac_ext <<_ACEOF
12865
cat confdefs.h >>conftest.$ac_ext
12866
cat >>conftest.$ac_ext <<_ACEOF
12867
/* end confdefs.h. */
12869
/* Override any GCC internal prototype to avoid an error.
12870
Use char because int might match the return type of a GCC
12871
builtin and then its argument prototype would still apply. */
12884
rm -f conftest.$ac_objext conftest$ac_exeext
12885
if { (ac_try="$ac_link"
12886
case "(($ac_try" in
12887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888
*) ac_try_echo=$ac_try;;
12890
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12891
$as_echo "$ac_try_echo") >&5
12892
(eval "$ac_link") 2>conftest.er1
12894
grep -v '^ *+' conftest.er1 >conftest.err
12896
cat conftest.err >&5
12897
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898
(exit $ac_status); } && {
12899
test -z "$ac_c_werror_flag" ||
12900
test ! -s conftest.err
12901
} && test -s conftest$ac_exeext && {
12902
test "$cross_compiling" = yes ||
12903
$as_test_x conftest$ac_exeext
12905
ac_cv_lib_posix_remove=yes
12907
$as_echo "$as_me: failed program was:" >&5
12908
sed 's/^/| /' conftest.$ac_ext >&5
12910
ac_cv_lib_posix_remove=no
12913
rm -rf conftest.dSYM
12914
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12915
conftest$ac_exeext conftest.$ac_ext
12916
LIBS=$ac_check_lib_save_LIBS
12918
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12919
$as_echo "$ac_cv_lib_posix_remove" >&6; }
12920
if test "x$ac_cv_lib_posix_remove" = x""yes; then
12921
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12926
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12927
{ $as_echo "$as_me:$LINENO: checking for shmat" >&5
12928
$as_echo_n "checking for shmat... " >&6; }
12929
if test "${ac_cv_func_shmat+set}" = set; then
12930
$as_echo_n "(cached) " >&6
12932
cat >conftest.$ac_ext <<_ACEOF
12935
cat confdefs.h >>conftest.$ac_ext
12936
cat >>conftest.$ac_ext <<_ACEOF
12937
/* end confdefs.h. */
12938
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12939
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12940
#define shmat innocuous_shmat
12942
/* System header to define __stub macros and hopefully few prototypes,
12943
which can conflict with char shmat (); below.
12944
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12945
<limits.h> exists even on freestanding compilers. */
12948
# include <limits.h>
12950
# include <assert.h>
12955
/* Override any GCC internal prototype to avoid an error.
12956
Use char because int might match the return type of a GCC
12957
builtin and then its argument prototype would still apply. */
12962
/* The GNU C library defines this for functions which it implements
12963
to always fail with ENOSYS. Some functions are actually named
12964
something starting with __ and the normal name is an alias. */
12965
#if defined __stub_shmat || defined __stub___shmat
12977
rm -f conftest.$ac_objext conftest$ac_exeext
12978
if { (ac_try="$ac_link"
12979
case "(($ac_try" in
12980
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981
*) ac_try_echo=$ac_try;;
12983
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12984
$as_echo "$ac_try_echo") >&5
12985
(eval "$ac_link") 2>conftest.er1
12987
grep -v '^ *+' conftest.er1 >conftest.err
12989
cat conftest.err >&5
12990
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991
(exit $ac_status); } && {
12992
test -z "$ac_c_werror_flag" ||
12993
test ! -s conftest.err
12994
} && test -s conftest$ac_exeext && {
12995
test "$cross_compiling" = yes ||
12996
$as_test_x conftest$ac_exeext
12998
ac_cv_func_shmat=yes
13000
$as_echo "$as_me: failed program was:" >&5
13001
sed 's/^/| /' conftest.$ac_ext >&5
13003
ac_cv_func_shmat=no
13006
rm -rf conftest.dSYM
13007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13008
conftest$ac_exeext conftest.$ac_ext
13010
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
13011
$as_echo "$ac_cv_func_shmat" >&6; }
13013
if test $ac_cv_func_shmat = no; then
13014
{ $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
13015
$as_echo_n "checking for shmat in -lipc... " >&6; }
13016
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
13017
$as_echo_n "(cached) " >&6
13019
ac_check_lib_save_LIBS=$LIBS
13021
cat >conftest.$ac_ext <<_ACEOF
13024
cat confdefs.h >>conftest.$ac_ext
13025
cat >>conftest.$ac_ext <<_ACEOF
13026
/* end confdefs.h. */
13028
/* Override any GCC internal prototype to avoid an error.
13029
Use char because int might match the return type of a GCC
13030
builtin and then its argument prototype would still apply. */
13043
rm -f conftest.$ac_objext conftest$ac_exeext
13044
if { (ac_try="$ac_link"
13045
case "(($ac_try" in
13046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047
*) ac_try_echo=$ac_try;;
13049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13050
$as_echo "$ac_try_echo") >&5
13051
(eval "$ac_link") 2>conftest.er1
13053
grep -v '^ *+' conftest.er1 >conftest.err
13055
cat conftest.err >&5
13056
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057
(exit $ac_status); } && {
13058
test -z "$ac_c_werror_flag" ||
13059
test ! -s conftest.err
13060
} && test -s conftest$ac_exeext && {
13061
test "$cross_compiling" = yes ||
13062
$as_test_x conftest$ac_exeext
13064
ac_cv_lib_ipc_shmat=yes
13066
$as_echo "$as_me: failed program was:" >&5
13067
sed 's/^/| /' conftest.$ac_ext >&5
13069
ac_cv_lib_ipc_shmat=no
13072
rm -rf conftest.dSYM
13073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13074
conftest$ac_exeext conftest.$ac_ext
13075
LIBS=$ac_check_lib_save_LIBS
13077
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
13078
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13079
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
13080
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13086
# Check for libraries that X11R6 Xt/Xaw programs need.
13087
ac_save_LDFLAGS=$LDFLAGS
13088
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13089
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13090
# check for ICE first), but we must link in the order -lSM -lICE or
13091
# we get undefined symbols. So assume we have SM if we have ICE.
13092
# These have to be linked with before -lX11, unlike the other
13093
# libraries we check for below, so use a different variable.
13094
# John Interrante, Karl Berry
13095
{ $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
13096
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13097
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
13098
$as_echo_n "(cached) " >&6
13100
ac_check_lib_save_LIBS=$LIBS
13101
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13102
cat >conftest.$ac_ext <<_ACEOF
13105
cat confdefs.h >>conftest.$ac_ext
13106
cat >>conftest.$ac_ext <<_ACEOF
13107
/* end confdefs.h. */
13109
/* Override any GCC internal prototype to avoid an error.
13110
Use char because int might match the return type of a GCC
13111
builtin and then its argument prototype would still apply. */
13115
char IceConnectionNumber ();
13119
return IceConnectionNumber ();
13124
rm -f conftest.$ac_objext conftest$ac_exeext
13125
if { (ac_try="$ac_link"
13126
case "(($ac_try" in
13127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128
*) ac_try_echo=$ac_try;;
13130
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13131
$as_echo "$ac_try_echo") >&5
13132
(eval "$ac_link") 2>conftest.er1
13134
grep -v '^ *+' conftest.er1 >conftest.err
13136
cat conftest.err >&5
13137
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138
(exit $ac_status); } && {
13139
test -z "$ac_c_werror_flag" ||
13140
test ! -s conftest.err
13141
} && test -s conftest$ac_exeext && {
13142
test "$cross_compiling" = yes ||
13143
$as_test_x conftest$ac_exeext
13145
ac_cv_lib_ICE_IceConnectionNumber=yes
13147
$as_echo "$as_me: failed program was:" >&5
13148
sed 's/^/| /' conftest.$ac_ext >&5
13150
ac_cv_lib_ICE_IceConnectionNumber=no
13153
rm -rf conftest.dSYM
13154
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13155
conftest$ac_exeext conftest.$ac_ext
13156
LIBS=$ac_check_lib_save_LIBS
13158
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13159
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13160
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
13161
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13164
LDFLAGS=$ac_save_LDFLAGS
13168
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13169
$as_echo_n "checking for ANSI C header files... " >&6; }
13170
if test "${ac_cv_header_stdc+set}" = set; then
13171
$as_echo_n "(cached) " >&6
13173
cat >conftest.$ac_ext <<_ACEOF
13176
cat confdefs.h >>conftest.$ac_ext
13177
cat >>conftest.$ac_ext <<_ACEOF
13178
/* end confdefs.h. */
13179
#include <stdlib.h>
13180
#include <stdarg.h>
13181
#include <string.h>
13192
rm -f conftest.$ac_objext
13193
if { (ac_try="$ac_compile"
13194
case "(($ac_try" in
13195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196
*) ac_try_echo=$ac_try;;
13198
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199
$as_echo "$ac_try_echo") >&5
13200
(eval "$ac_compile") 2>conftest.er1
13202
grep -v '^ *+' conftest.er1 >conftest.err
13204
cat conftest.err >&5
13205
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206
(exit $ac_status); } && {
13207
test -z "$ac_c_werror_flag" ||
13208
test ! -s conftest.err
13209
} && test -s conftest.$ac_objext; then
13210
ac_cv_header_stdc=yes
13212
$as_echo "$as_me: failed program was:" >&5
13213
sed 's/^/| /' conftest.$ac_ext >&5
13215
ac_cv_header_stdc=no
13218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220
if test $ac_cv_header_stdc = yes; then
13221
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13222
cat >conftest.$ac_ext <<_ACEOF
13225
cat confdefs.h >>conftest.$ac_ext
13226
cat >>conftest.$ac_ext <<_ACEOF
13227
/* end confdefs.h. */
13228
#include <string.h>
13231
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13232
$EGREP "memchr" >/dev/null 2>&1; then
13235
ac_cv_header_stdc=no
13241
if test $ac_cv_header_stdc = yes; then
13242
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13243
cat >conftest.$ac_ext <<_ACEOF
13246
cat confdefs.h >>conftest.$ac_ext
13247
cat >>conftest.$ac_ext <<_ACEOF
13248
/* end confdefs.h. */
13249
#include <stdlib.h>
13252
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13253
$EGREP "free" >/dev/null 2>&1; then
13256
ac_cv_header_stdc=no
13262
if test $ac_cv_header_stdc = yes; then
13263
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13264
if test "$cross_compiling" = yes; then
13267
cat >conftest.$ac_ext <<_ACEOF
13270
cat confdefs.h >>conftest.$ac_ext
13271
cat >>conftest.$ac_ext <<_ACEOF
13272
/* end confdefs.h. */
13274
#include <stdlib.h>
13275
#if ((' ' & 0x0FF) == 0x020)
13276
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13277
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13279
# define ISLOWER(c) \
13280
(('a' <= (c) && (c) <= 'i') \
13281
|| ('j' <= (c) && (c) <= 'r') \
13282
|| ('s' <= (c) && (c) <= 'z'))
13283
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13286
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13291
for (i = 0; i < 256; i++)
13292
if (XOR (islower (i), ISLOWER (i))
13293
|| toupper (i) != TOUPPER (i))
13298
rm -f conftest$ac_exeext
13299
if { (ac_try="$ac_link"
13300
case "(($ac_try" in
13301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302
*) ac_try_echo=$ac_try;;
13304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305
$as_echo "$ac_try_echo") >&5
13306
(eval "$ac_link") 2>&5
13308
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13310
{ (case "(($ac_try" in
13311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312
*) ac_try_echo=$ac_try;;
13314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13315
$as_echo "$ac_try_echo") >&5
13316
(eval "$ac_try") 2>&5
13318
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319
(exit $ac_status); }; }; then
13322
$as_echo "$as_me: program exited with status $ac_status" >&5
13323
$as_echo "$as_me: failed program was:" >&5
13324
sed 's/^/| /' conftest.$ac_ext >&5
13326
( exit $ac_status )
13327
ac_cv_header_stdc=no
13329
rm -rf conftest.dSYM
13330
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13336
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13337
$as_echo "$ac_cv_header_stdc" >&6; }
13338
if test $ac_cv_header_stdc = yes; then
13340
cat >>confdefs.h <<\_ACEOF
13341
#define STDC_HEADERS 1
13346
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13347
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13348
if test "${ac_cv_header_time+set}" = set; then
13349
$as_echo_n "(cached) " >&6
13351
cat >conftest.$ac_ext <<_ACEOF
13354
cat confdefs.h >>conftest.$ac_ext
13355
cat >>conftest.$ac_ext <<_ACEOF
13356
/* end confdefs.h. */
13357
#include <sys/types.h>
13358
#include <sys/time.h>
13364
if ((struct tm *) 0)
13370
rm -f conftest.$ac_objext
13371
if { (ac_try="$ac_compile"
13372
case "(($ac_try" in
13373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374
*) ac_try_echo=$ac_try;;
13376
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13377
$as_echo "$ac_try_echo") >&5
13378
(eval "$ac_compile") 2>conftest.er1
13380
grep -v '^ *+' conftest.er1 >conftest.err
13382
cat conftest.err >&5
13383
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384
(exit $ac_status); } && {
13385
test -z "$ac_c_werror_flag" ||
13386
test ! -s conftest.err
13387
} && test -s conftest.$ac_objext; then
13388
ac_cv_header_time=yes
13390
$as_echo "$as_me: failed program was:" >&5
13391
sed 's/^/| /' conftest.$ac_ext >&5
13393
ac_cv_header_time=no
13396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13399
$as_echo "$ac_cv_header_time" >&6; }
13400
if test $ac_cv_header_time = yes; then
13402
cat >>confdefs.h <<\_ACEOF
13403
#define TIME_WITH_SYS_TIME 1
13408
{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13409
10695
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13410
if test "${ac_cv_header_sys_wait_h+set}" = set; then
10696
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
13411
10697
$as_echo_n "(cached) " >&6
13413
cat >conftest.$ac_ext <<_ACEOF
13416
cat confdefs.h >>conftest.$ac_ext
13417
cat >>conftest.$ac_ext <<_ACEOF
10699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418
10700
/* end confdefs.h. */
13419
10701
#include <sys/types.h>
13420
10702
#include <sys/wait.h>
13704
{ $as_echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
13705
$as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
13706
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
13707
$as_echo_n "(cached) " >&6
13709
ac_check_lib_save_LIBS=$LIBS
13710
LIBS="-lXinerama $X_LIBS -lX11 -lXext $LIBS"
13711
cat >conftest.$ac_ext <<_ACEOF
13714
cat confdefs.h >>conftest.$ac_ext
13715
cat >>conftest.$ac_ext <<_ACEOF
13716
/* end confdefs.h. */
13718
/* Override any GCC internal prototype to avoid an error.
13719
Use char because int might match the return type of a GCC
13720
builtin and then its argument prototype would still apply. */
13724
char XineramaQueryScreens ();
13728
return XineramaQueryScreens ();
13733
rm -f conftest.$ac_objext conftest$ac_exeext
13734
if { (ac_try="$ac_link"
13735
case "(($ac_try" in
13736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737
*) ac_try_echo=$ac_try;;
13739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13740
$as_echo "$ac_try_echo") >&5
13741
(eval "$ac_link") 2>conftest.er1
13743
grep -v '^ *+' conftest.er1 >conftest.err
13745
cat conftest.err >&5
13746
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747
(exit $ac_status); } && {
13748
test -z "$ac_c_werror_flag" ||
13749
test ! -s conftest.err
13750
} && test -s conftest$ac_exeext && {
13751
test "$cross_compiling" = yes ||
13752
$as_test_x conftest$ac_exeext
13754
ac_cv_lib_Xinerama_XineramaQueryScreens=yes
13756
$as_echo "$as_me: failed program was:" >&5
13757
sed 's/^/| /' conftest.$ac_ext >&5
13759
ac_cv_lib_Xinerama_XineramaQueryScreens=no
13762
rm -rf conftest.dSYM
13763
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13764
conftest$ac_exeext conftest.$ac_ext
13765
LIBS=$ac_check_lib_save_LIBS
13767
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
13768
$as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
13769
if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then
13770
XINERAMA_LIBS="-lXinerama"
13772
for ac_header in X11/extensions/Xinerama.h
13774
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13775
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13776
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13777
$as_echo_n "checking for $ac_header... " >&6; }
13778
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13779
$as_echo_n "(cached) " >&6
13781
ac_res=`eval 'as_val=${'$as_ac_Header'}
13782
$as_echo "$as_val"'`
13783
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13784
$as_echo "$ac_res" >&6; }
13786
# Is the header compilable?
13787
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13788
$as_echo_n "checking $ac_header usability... " >&6; }
13789
cat >conftest.$ac_ext <<_ACEOF
13792
cat confdefs.h >>conftest.$ac_ext
13793
cat >>conftest.$ac_ext <<_ACEOF
13794
/* end confdefs.h. */
13795
$ac_includes_default
13796
#include <$ac_header>
13798
rm -f conftest.$ac_objext
13799
if { (ac_try="$ac_compile"
13800
case "(($ac_try" in
13801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802
*) ac_try_echo=$ac_try;;
13804
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13805
$as_echo "$ac_try_echo") >&5
13806
(eval "$ac_compile") 2>conftest.er1
13808
grep -v '^ *+' conftest.er1 >conftest.err
13810
cat conftest.err >&5
13811
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812
(exit $ac_status); } && {
13813
test -z "$ac_c_werror_flag" ||
13814
test ! -s conftest.err
13815
} && test -s conftest.$ac_objext; then
13816
ac_header_compiler=yes
13818
$as_echo "$as_me: failed program was:" >&5
13819
sed 's/^/| /' conftest.$ac_ext >&5
13821
ac_header_compiler=no
13824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13826
$as_echo "$ac_header_compiler" >&6; }
13828
# Is the header present?
13829
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13830
$as_echo_n "checking $ac_header presence... " >&6; }
13831
cat >conftest.$ac_ext <<_ACEOF
13834
cat confdefs.h >>conftest.$ac_ext
13835
cat >>conftest.$ac_ext <<_ACEOF
13836
/* end confdefs.h. */
13837
#include <$ac_header>
13839
if { (ac_try="$ac_cpp conftest.$ac_ext"
13840
case "(($ac_try" in
13841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842
*) ac_try_echo=$ac_try;;
13844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13845
$as_echo "$ac_try_echo") >&5
13846
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848
grep -v '^ *+' conftest.er1 >conftest.err
13850
cat conftest.err >&5
13851
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852
(exit $ac_status); } >/dev/null && {
13853
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13854
test ! -s conftest.err
13856
ac_header_preproc=yes
13858
$as_echo "$as_me: failed program was:" >&5
13859
sed 's/^/| /' conftest.$ac_ext >&5
13861
ac_header_preproc=no
13864
rm -f conftest.err conftest.$ac_ext
13865
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13866
$as_echo "$ac_header_preproc" >&6; }
13868
# So? What about this header?
13869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13872
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13873
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13874
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13875
ac_header_preproc=yes
13878
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13879
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13880
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13881
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13882
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13883
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13884
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13885
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13886
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13887
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13888
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13889
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13893
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13894
$as_echo_n "checking for $ac_header... " >&6; }
13895
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13896
$as_echo_n "(cached) " >&6
13898
eval "$as_ac_Header=\$ac_header_preproc"
13900
ac_res=`eval 'as_val=${'$as_ac_Header'}
13901
$as_echo "$as_val"'`
13902
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13903
$as_echo "$ac_res" >&6; }
13906
as_val=`eval 'as_val=${'$as_ac_Header'}
13907
$as_echo "$as_val"'`
13908
if test "x$as_val" = x""yes; then
13909
cat >>confdefs.h <<_ACEOF
13910
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13920
{ $as_echo "$as_me:$LINENO: checking for XRRUpdateConfiguration in -lXrandr" >&5
13921
$as_echo_n "checking for XRRUpdateConfiguration in -lXrandr... " >&6; }
13922
if test "${ac_cv_lib_Xrandr_XRRUpdateConfiguration+set}" = set; then
13923
$as_echo_n "(cached) " >&6
13925
ac_check_lib_save_LIBS=$LIBS
13926
LIBS="-lXrandr $X_LIBS -lX11 -lXext $LIBS"
13927
cat >conftest.$ac_ext <<_ACEOF
13930
cat confdefs.h >>conftest.$ac_ext
13931
cat >>conftest.$ac_ext <<_ACEOF
13932
/* end confdefs.h. */
13934
/* Override any GCC internal prototype to avoid an error.
13935
Use char because int might match the return type of a GCC
13936
builtin and then its argument prototype would still apply. */
13940
char XRRUpdateConfiguration ();
13944
return XRRUpdateConfiguration ();
13949
rm -f conftest.$ac_objext conftest$ac_exeext
13950
if { (ac_try="$ac_link"
13951
case "(($ac_try" in
13952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953
*) ac_try_echo=$ac_try;;
13955
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13956
$as_echo "$ac_try_echo") >&5
13957
(eval "$ac_link") 2>conftest.er1
13959
grep -v '^ *+' conftest.er1 >conftest.err
13961
cat conftest.err >&5
13962
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963
(exit $ac_status); } && {
13964
test -z "$ac_c_werror_flag" ||
13965
test ! -s conftest.err
13966
} && test -s conftest$ac_exeext && {
13967
test "$cross_compiling" = yes ||
13968
$as_test_x conftest$ac_exeext
13970
ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
13972
$as_echo "$as_me: failed program was:" >&5
13973
sed 's/^/| /' conftest.$ac_ext >&5
13975
ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
13978
rm -rf conftest.dSYM
13979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13980
conftest$ac_exeext conftest.$ac_ext
13981
LIBS=$ac_check_lib_save_LIBS
13983
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
13984
$as_echo "$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6; }
13985
if test "x$ac_cv_lib_Xrandr_XRRUpdateConfiguration" = x""yes; then
13986
XRANDR_LIBS="-lXrandr"
13988
for ac_header in X11/extensions/Xrandr.h
13990
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13991
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13992
$as_echo_n "checking for $ac_header... " >&6; }
13993
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13994
$as_echo_n "(cached) " >&6
13996
cat >conftest.$ac_ext <<_ACEOF
13999
cat confdefs.h >>conftest.$ac_ext
14000
cat >>conftest.$ac_ext <<_ACEOF
14001
/* end confdefs.h. */
14002
#include <X11/Xlib.h>
14004
#include <$ac_header>
14006
rm -f conftest.$ac_objext
14007
if { (ac_try="$ac_compile"
14008
case "(($ac_try" in
14009
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010
*) ac_try_echo=$ac_try;;
14012
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14013
$as_echo "$ac_try_echo") >&5
14014
(eval "$ac_compile") 2>conftest.er1
14016
grep -v '^ *+' conftest.er1 >conftest.err
14018
cat conftest.err >&5
14019
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020
(exit $ac_status); } && {
14021
test -z "$ac_c_werror_flag" ||
14022
test ! -s conftest.err
14023
} && test -s conftest.$ac_objext; then
14024
eval "$as_ac_Header=yes"
14026
$as_echo "$as_me: failed program was:" >&5
14027
sed 's/^/| /' conftest.$ac_ext >&5
14029
eval "$as_ac_Header=no"
14032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034
ac_res=`eval 'as_val=${'$as_ac_Header'}
14035
$as_echo "$as_val"'`
14036
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14037
$as_echo "$ac_res" >&6; }
14038
as_val=`eval 'as_val=${'$as_ac_Header'}
14039
$as_echo "$as_val"'`
14040
if test "x$as_val" = x""yes; then
14041
cat >>confdefs.h <<_ACEOF
14042
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14054
10861
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14055
10862
if test -n "$ac_tool_prefix"; then
14056
10863
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14057
10864
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059
10866
$as_echo_n "checking for $ac_word... " >&6; }
14060
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10867
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14061
10868
$as_echo_n "(cached) " >&6
14063
10870
case $PKG_CONFIG in
14169
10976
pkg_failed=no
14170
{ $as_echo "$as_me:$LINENO: checking for XFT" >&5
10977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXineRama" >&5
10978
$as_echo_n "checking for libXineRama... " >&6; }
10980
if test -n "$PKG_CONFIG"; then
10981
if test -n "$libXineRama_CFLAGS"; then
10982
pkg_cv_libXineRama_CFLAGS="$libXineRama_CFLAGS"
10984
if test -n "$PKG_CONFIG" && \
10985
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama >= 1.0
10987
($PKG_CONFIG --exists --print-errors "xinerama >= 1.0
10990
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991
test $ac_status = 0; }; then
10992
pkg_cv_libXineRama_CFLAGS=`$PKG_CONFIG --cflags "xinerama >= 1.0
11001
if test -n "$PKG_CONFIG"; then
11002
if test -n "$libXineRama_LIBS"; then
11003
pkg_cv_libXineRama_LIBS="$libXineRama_LIBS"
11005
if test -n "$PKG_CONFIG" && \
11006
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama >= 1.0
11008
($PKG_CONFIG --exists --print-errors "xinerama >= 1.0
11011
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11012
test $ac_status = 0; }; then
11013
pkg_cv_libXineRama_LIBS=`$PKG_CONFIG --libs "xinerama >= 1.0
11025
if test $pkg_failed = yes; then
11027
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11028
_pkg_short_errors_supported=yes
11030
_pkg_short_errors_supported=no
11032
if test $_pkg_short_errors_supported = yes; then
11033
libXineRama_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xinerama >= 1.0
11036
libXineRama_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xinerama >= 1.0
11039
# Put the nasty error message in config.log where it belongs
11040
echo "$libXineRama_PKG_ERRORS" >&5
11042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043
$as_echo "no" >&6; }
11044
as_fn_error "cannot locate libXineRama" "$LINENO" 5
11045
elif test $pkg_failed = untried; then
11046
as_fn_error "cannot locate libXineRama" "$LINENO" 5
11048
libXineRama_CFLAGS=$pkg_cv_libXineRama_CFLAGS
11049
libXineRama_LIBS=$pkg_cv_libXineRama_LIBS
11050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051
$as_echo "yes" >&6; }
11052
XINERAMA_LIBS="-lXinerama"
11054
$as_echo "#define HAVE_X11_EXTENSIONS_XINERAMA_H 1" >>confdefs.h
11061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXRandR" >&5
11062
$as_echo_n "checking for libXRandR... " >&6; }
11064
if test -n "$PKG_CONFIG"; then
11065
if test -n "$libXRandR_CFLAGS"; then
11066
pkg_cv_libXRandR_CFLAGS="$libXRandR_CFLAGS"
11068
if test -n "$PKG_CONFIG" && \
11069
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.0
11071
($PKG_CONFIG --exists --print-errors "xrandr >= 1.0
11074
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075
test $ac_status = 0; }; then
11076
pkg_cv_libXRandR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.0
11085
if test -n "$PKG_CONFIG"; then
11086
if test -n "$libXRandR_LIBS"; then
11087
pkg_cv_libXRandR_LIBS="$libXRandR_LIBS"
11089
if test -n "$PKG_CONFIG" && \
11090
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.0
11092
($PKG_CONFIG --exists --print-errors "xrandr >= 1.0
11095
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096
test $ac_status = 0; }; then
11097
pkg_cv_libXRandR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.0
11109
if test $pkg_failed = yes; then
11111
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11112
_pkg_short_errors_supported=yes
11114
_pkg_short_errors_supported=no
11116
if test $_pkg_short_errors_supported = yes; then
11117
libXRandR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xrandr >= 1.0
11120
libXRandR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrandr >= 1.0
11123
# Put the nasty error message in config.log where it belongs
11124
echo "$libXRandR_PKG_ERRORS" >&5
11126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127
$as_echo "no" >&6; }
11128
as_fn_error "cannot locate libXRandR" "$LINENO" 5
11129
elif test $pkg_failed = untried; then
11130
as_fn_error "cannot locate libXRandR" "$LINENO" 5
11132
libXRandR_CFLAGS=$pkg_cv_libXRandR_CFLAGS
11133
libXRandR_LIBS=$pkg_cv_libXRandR_LIBS
11134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135
$as_echo "yes" >&6; }
11136
XRANDR_LIBS="-lXrandr"
11138
$as_echo "#define HAVE_X11_EXTENSIONS_XRANDR_H 1" >>confdefs.h
11145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXft" >&5
11146
$as_echo_n "checking for libXft... " >&6; }
11148
if test -n "$PKG_CONFIG"; then
11149
if test -n "$libXft_CFLAGS"; then
11150
pkg_cv_libXft_CFLAGS="$libXft_CFLAGS"
11152
if test -n "$PKG_CONFIG" && \
11153
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft >= 1.0
11155
($PKG_CONFIG --exists --print-errors "xft >= 1.0
11158
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159
test $ac_status = 0; }; then
11160
pkg_cv_libXft_CFLAGS=`$PKG_CONFIG --cflags "xft >= 1.0
11169
if test -n "$PKG_CONFIG"; then
11170
if test -n "$libXft_LIBS"; then
11171
pkg_cv_libXft_LIBS="$libXft_LIBS"
11173
if test -n "$PKG_CONFIG" && \
11174
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft >= 1.0
11176
($PKG_CONFIG --exists --print-errors "xft >= 1.0
11179
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180
test $ac_status = 0; }; then
11181
pkg_cv_libXft_LIBS=`$PKG_CONFIG --libs "xft >= 1.0
11193
if test $pkg_failed = yes; then
11195
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11196
_pkg_short_errors_supported=yes
11198
_pkg_short_errors_supported=no
11200
if test $_pkg_short_errors_supported = yes; then
11201
libXft_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft >= 1.0
11204
libXft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 1.0
11207
# Put the nasty error message in config.log where it belongs
11208
echo "$libXft_PKG_ERRORS" >&5
11210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211
$as_echo "no" >&6; }
11212
as_fn_error "cannot locate libXft" "$LINENO" 5
11213
elif test $pkg_failed = untried; then
11214
as_fn_error "cannot locate libXft" "$LINENO" 5
11216
libXft_CFLAGS=$pkg_cv_libXft_CFLAGS
11217
libXft_LIBS=$pkg_cv_libXft_LIBS
11218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11219
$as_echo "yes" >&6; }
11221
XFT_CFLAGS="`pkg-config --cflags xft`"
11223
$as_echo "#define HAVE_X11_XFT_XFT_H 1" >>confdefs.h
11232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libX11" >&5
11233
$as_echo_n "checking for libX11... " >&6; }
11235
if test -n "$PKG_CONFIG"; then
11236
if test -n "$libX11_CFLAGS"; then
11237
pkg_cv_libX11_CFLAGS="$libX11_CFLAGS"
11239
if test -n "$PKG_CONFIG" && \
11240
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0
11242
($PKG_CONFIG --exists --print-errors "x11 >= 1.0
11245
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11246
test $ac_status = 0; }; then
11247
pkg_cv_libX11_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.0
11256
if test -n "$PKG_CONFIG"; then
11257
if test -n "$libX11_LIBS"; then
11258
pkg_cv_libX11_LIBS="$libX11_LIBS"
11260
if test -n "$PKG_CONFIG" && \
11261
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0
11263
($PKG_CONFIG --exists --print-errors "x11 >= 1.0
11266
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11267
test $ac_status = 0; }; then
11268
pkg_cv_libX11_LIBS=`$PKG_CONFIG --libs "x11 >= 1.0
11280
if test $pkg_failed = yes; then
11282
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11283
_pkg_short_errors_supported=yes
11285
_pkg_short_errors_supported=no
11287
if test $_pkg_short_errors_supported = yes; then
11288
libX11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 >= 1.0
11291
libX11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 >= 1.0
11294
# Put the nasty error message in config.log where it belongs
11295
echo "$libX11_PKG_ERRORS" >&5
11297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298
$as_echo "no" >&6; }
11299
as_fn_error "cannot locate libX11" "$LINENO" 5
11300
elif test $pkg_failed = untried; then
11301
as_fn_error "cannot locate libX11" "$LINENO" 5
11303
libX11_CFLAGS=$pkg_cv_libX11_CFLAGS
11304
libX11_LIBS=$pkg_cv_libX11_LIBS
11305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306
$as_echo "yes" >&6; }
11308
$as_echo "#define HAVE_X11 1" >>confdefs.h
11310
X_LIBS="`pkg-config --libs x11`"
11311
X_CFLAGS="`pkg-config --cflags x11`"
11313
$as_echo "#define X_DISPLAY_MISSING 0" >>confdefs.h
11318
X_LIBS="${X_LIBS} -lXext -lXrender"
11324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libICE" >&5
11325
$as_echo_n "checking for libICE... " >&6; }
11327
if test -n "$PKG_CONFIG"; then
11328
if test -n "$libICE_CFLAGS"; then
11329
pkg_cv_libICE_CFLAGS="$libICE_CFLAGS"
11331
if test -n "$PKG_CONFIG" && \
11332
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0
11334
($PKG_CONFIG --exists --print-errors "ice >= 1.0
11337
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11338
test $ac_status = 0; }; then
11339
pkg_cv_libICE_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.0
11348
if test -n "$PKG_CONFIG"; then
11349
if test -n "$libICE_LIBS"; then
11350
pkg_cv_libICE_LIBS="$libICE_LIBS"
11352
if test -n "$PKG_CONFIG" && \
11353
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0
11355
($PKG_CONFIG --exists --print-errors "ice >= 1.0
11358
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11359
test $ac_status = 0; }; then
11360
pkg_cv_libICE_LIBS=`$PKG_CONFIG --libs "ice >= 1.0
11372
if test $pkg_failed = yes; then
11374
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11375
_pkg_short_errors_supported=yes
11377
_pkg_short_errors_supported=no
11379
if test $_pkg_short_errors_supported = yes; then
11380
libICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ice >= 1.0
11383
libICE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ice >= 1.0
11386
# Put the nasty error message in config.log where it belongs
11387
echo "$libICE_PKG_ERRORS" >&5
11389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390
$as_echo "no" >&6; }
11391
as_fn_error "cannot locate libICE" "$LINENO" 5
11392
elif test $pkg_failed = untried; then
11393
as_fn_error "cannot locate libICE" "$LINENO" 5
11395
libICE_CFLAGS=$pkg_cv_libICE_CFLAGS
11396
libICE_LIBS=$pkg_cv_libICE_LIBS
11397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398
$as_echo "yes" >&6; }
11399
X_EXTRA_LIBS="${X_EXTRA_LIBS} -lICE"
11401
$as_echo "#define HAVE_X11_ICE_ICE_H 1" >>confdefs.h
11408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libSM" >&5
11409
$as_echo_n "checking for libSM... " >&6; }
11411
if test -n "$PKG_CONFIG"; then
11412
if test -n "$libSM_CFLAGS"; then
11413
pkg_cv_libSM_CFLAGS="$libSM_CFLAGS"
11415
if test -n "$PKG_CONFIG" && \
11416
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm >= 1.0
11418
($PKG_CONFIG --exists --print-errors "sm >= 1.0
11421
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11422
test $ac_status = 0; }; then
11423
pkg_cv_libSM_CFLAGS=`$PKG_CONFIG --cflags "sm >= 1.0
11432
if test -n "$PKG_CONFIG"; then
11433
if test -n "$libSM_LIBS"; then
11434
pkg_cv_libSM_LIBS="$libSM_LIBS"
11436
if test -n "$PKG_CONFIG" && \
11437
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm >= 1.0
11439
($PKG_CONFIG --exists --print-errors "sm >= 1.0
11442
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443
test $ac_status = 0; }; then
11444
pkg_cv_libSM_LIBS=`$PKG_CONFIG --libs "sm >= 1.0
11456
if test $pkg_failed = yes; then
11458
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11459
_pkg_short_errors_supported=yes
11461
_pkg_short_errors_supported=no
11463
if test $_pkg_short_errors_supported = yes; then
11464
libSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sm >= 1.0
11467
libSM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sm >= 1.0
11470
# Put the nasty error message in config.log where it belongs
11471
echo "$libSM_PKG_ERRORS" >&5
11473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474
$as_echo "no" >&6; }
11475
as_fn_error "cannot locate libSM" "$LINENO" 5
11476
elif test $pkg_failed = untried; then
11477
as_fn_error "cannot locate libSM" "$LINENO" 5
11479
libSM_CFLAGS=$pkg_cv_libSM_CFLAGS
11480
libSM_LIBS=$pkg_cv_libSM_LIBS
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11482
$as_echo "yes" >&6; }
11483
X_EXTRA_LIBS="${X_EXTRA_LIBS} -lSM"
11485
$as_echo "#define HAVE_X11_SM_SMLIB_H 1" >>confdefs.h
11490
X_SERVER="X.Org X11R7"
11492
CPPFLAGS="${_cppflags}"
11496
for ac_header in X11/ICE/ICE.h X11/SM/SMlib.h X11/extensions/Xdbe.h
11498
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11501
eval as_val=\$$as_ac_Header
11502
if test "x$as_val" = x""yes; then :
11503
cat >>confdefs.h <<_ACEOF
11504
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
11518
$as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
11519
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then :
11520
$as_echo_n "(cached) " >&6
11522
ac_check_lib_save_LIBS=$LIBS
11523
LIBS="-lXinerama $X_LIBS -lX11 -lXext $LIBS"
11524
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525
/* end confdefs.h. */
11527
/* Override any GCC internal prototype to avoid an error.
11528
Use char because int might match the return type of a GCC
11529
builtin and then its argument prototype would still apply. */
11533
char XineramaQueryScreens ();
11537
return XineramaQueryScreens ();
11542
if ac_fn_c_try_link "$LINENO"; then :
11543
ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11545
ac_cv_lib_Xinerama_XineramaQueryScreens=no
11547
rm -f core conftest.err conftest.$ac_objext \
11548
conftest$ac_exeext conftest.$ac_ext
11549
LIBS=$ac_check_lib_save_LIBS
11551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11552
$as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
11553
if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then :
11554
XINERAMA_LIBS="-lXinerama"
11555
for ac_header in X11/extensions/Xinerama.h
11557
ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
11558
if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
11559
cat >>confdefs.h <<_ACEOF
11560
#define HAVE_X11_EXTENSIONS_XINERAMA_H 1
11570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRUpdateConfiguration in -lXrandr" >&5
11571
$as_echo_n "checking for XRRUpdateConfiguration in -lXrandr... " >&6; }
11572
if test "${ac_cv_lib_Xrandr_XRRUpdateConfiguration+set}" = set; then :
11573
$as_echo_n "(cached) " >&6
11575
ac_check_lib_save_LIBS=$LIBS
11576
LIBS="-lXrandr $X_LIBS -lX11 -lXext $LIBS"
11577
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578
/* end confdefs.h. */
11580
/* Override any GCC internal prototype to avoid an error.
11581
Use char because int might match the return type of a GCC
11582
builtin and then its argument prototype would still apply. */
11586
char XRRUpdateConfiguration ();
11590
return XRRUpdateConfiguration ();
11595
if ac_fn_c_try_link "$LINENO"; then :
11596
ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
11598
ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
11600
rm -f core conftest.err conftest.$ac_objext \
11601
conftest$ac_exeext conftest.$ac_ext
11602
LIBS=$ac_check_lib_save_LIBS
11604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
11605
$as_echo "$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6; }
11606
if test "x$ac_cv_lib_Xrandr_XRRUpdateConfiguration" = x""yes; then :
11607
XRANDR_LIBS="-lXrandr"
11608
for ac_header in X11/extensions/Xrandr.h
11610
ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
11612
if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
11613
cat >>confdefs.h <<_ACEOF
11614
#define HAVE_X11_EXTENSIONS_XRANDR_H 1
11626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
14171
11627
$as_echo_n "checking for XFT... " >&6; }
14173
11629
if test -n "$PKG_CONFIG"; then
15159
12424
_pkg_short_errors_supported=no
15161
12426
if test $_pkg_short_errors_supported = yes; then
15162
GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdk-pixbuf-xlib-2.0 >= 2.6.0"`
12427
GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdk-pixbuf-xlib-2.0 >= ${GTK_MIN_VER}
15164
GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-pixbuf-xlib-2.0 >= 2.6.0"`
12430
GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-pixbuf-xlib-2.0 >= ${GTK_MIN_VER}
15166
12433
# Put the nasty error message in config.log where it belongs
15167
12434
echo "$GDK_PIXBUF_PKG_ERRORS" >&5
15169
{ { $as_echo "$as_me:$LINENO: error: Package requirements (gdk-pixbuf-xlib-2.0 >= 2.6.0) were not met:
15171
$GDK_PIXBUF_PKG_ERRORS
15173
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15174
installed software in a non-standard prefix.
15176
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
15177
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
15178
See the pkg-config man page for more details.
15180
$as_echo "$as_me: error: Package requirements (gdk-pixbuf-xlib-2.0 >= 2.6.0) were not met:
15182
$GDK_PIXBUF_PKG_ERRORS
15184
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15185
installed software in a non-standard prefix.
15187
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
15188
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
15189
See the pkg-config man page for more details.
15191
{ (exit 1); exit 1; }; }
12436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437
$as_echo "no" >&6; }
12438
as_fn_error "cannot locate gdk-pixbuf-xlib" "$LINENO" 5
15192
12440
elif test $pkg_failed = untried; then
15193
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15194
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15195
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
15196
is in your PATH or set the PKG_CONFIG environment variable to the full
15197
path to pkg-config.
15199
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
15200
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
15201
See the pkg-config man page for more details.
15203
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15204
See \`config.log' for more details." >&5
15205
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
15206
is in your PATH or set the PKG_CONFIG environment variable to the full
15207
path to pkg-config.
15209
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
15210
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
15211
See the pkg-config man page for more details.
15213
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15214
See \`config.log' for more details." >&2;}
15215
{ (exit 1); exit 1; }; }; }
12441
as_fn_error "cannot locate gdk-pixbuf-xlib" "$LINENO" 5
15217
12444
GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
15218
12445
GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
15219
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15220
12447
$as_echo "yes" >&6; }
15223
GDK_PIXBUF_VERSION=`pkg-config --modversion gdk-pixbuf-xlib-2.0`
15228
cat >>confdefs.h <<\_ACEOF
15229
#define HAVE_GDK_PIXBUF 1
15233
cat >>confdefs.h <<\_ACEOF
15234
#define NEED_PIXMAP_CACHE 1
15237
IMAGE_LIBS='${GDK_PIXBUF_LIBS}'
15238
IMAGE_CFLAGS='${GDK_PIXBUF_CFLAGS}'
15239
with_gdk_pixbuf=yes
15241
{ $as_echo "$as_me:$LINENO: result: no" >&5
15242
$as_echo "no" >&6; }
15243
if test "$with_gdk_pixbuf" = "yes"; then
15244
{ { $as_echo "$as_me:$LINENO: error: can't locate gdk-pixbuf-xlib library" >&5
15245
$as_echo "$as_me: error: can't locate gdk-pixbuf-xlib library" >&2;}
15246
{ (exit 1); exit 1; }; }
12448
GDK_PIXBUF_CFLAGS="`pkg-config --cflags gdk-pixbuf-xlib-2.0`"
12449
GDK_PIXBUF_LIBS="`pkg-config --libs gdk-pixbuf-xlib-2.0`"
12451
$as_echo "#define HAVE_GDK_PIXBUF 1" >>confdefs.h
12454
$as_echo "#define NEED_PIXMAP_CACHE 1" >>confdefs.h
12456
IMAGE_LIBS='${GDK_PIXBUF_LIBS}'
12457
IMAGE_CFLAGS='${GDK_PIXBUF_CFLAGS}'
12458
IMAGE_LOADER="GDK Pixbuf Xlib"
12459
with_gdk_pixbuf=yes
15251
12464
if test "$with_gdk_pixbuf" = "no"; then
15252
# Extract the first word of "imlib-config", so it can be a program name with args.
15253
set dummy imlib-config; ac_word=$2
15254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15255
$as_echo_n "checking for $ac_word... " >&6; }
15256
if test "${ac_cv_path_IMLIB_CONFIG+set}" = set; then
15257
$as_echo_n "(cached) " >&6
15259
case $IMLIB_CONFIG in
15261
ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a path.
15264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265
for as_dir in $PATH
15268
test -z "$as_dir" && as_dir=.
15269
for ac_exec_ext in '' $ac_executable_extensions; do
15270
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15271
ac_cv_path_IMLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15272
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15279
test -z "$ac_cv_path_IMLIB_CONFIG" && ac_cv_path_IMLIB_CONFIG="no"
15283
IMLIB_CONFIG=$ac_cv_path_IMLIB_CONFIG
15284
if test -n "$IMLIB_CONFIG"; then
15285
{ $as_echo "$as_me:$LINENO: result: $IMLIB_CONFIG" >&5
15286
$as_echo "$IMLIB_CONFIG" >&6; }
15288
{ $as_echo "$as_me:$LINENO: result: no" >&5
15289
$as_echo "no" >&6; }
15293
{ $as_echo "$as_me:$LINENO: checking for Imlib" >&5
15294
$as_echo_n "checking for Imlib... " >&6; }
15295
if test "$IMLIB_CONFIG" = "no"; then
15296
{ $as_echo "$as_me:$LINENO: result: no" >&5
15297
$as_echo "no" >&6; }
15298
{ { $as_echo "$as_me:$LINENO: error: can't find imlib-config" >&5
15299
$as_echo "$as_me: error: can't find imlib-config" >&2;}
15300
{ (exit 1); exit 1; }; }
15302
IMLIB_VERSION=`$IMLIB_CONFIG --version`
15303
{ $as_echo "$as_me:$LINENO: result: version $IMLIB_VERSION" >&5
15304
$as_echo "version $IMLIB_VERSION" >&6; }
15305
IMLIB_CFLAGS=`$IMLIB_CONFIG --cflags`
15306
IMLIB_LIBS=`$IMLIB_CONFIG --libs`
15307
if $IMLIB_CONFIG --libs | grep " -lpng" >/dev/null 2>&1; then true; else
15308
{ { $as_echo "$as_me:$LINENO: error: imlib must be built with support for png images" >&5
15309
$as_echo "$as_me: error: imlib must be built with support for png images" >&2;}
15310
{ (exit 1); exit 1; }; }
15313
cat >>confdefs.h <<\_ACEOF
15314
#define HAVE_IMLIB 1
15317
IMAGE_LIBS='${IMLIB_LIBS}'
15318
IMAGE_CFLAGS='${IMLIB_CFLAGS}'
15327
# Check whether --enable-gtktest was given.
15328
if test "${enable_gtktest+set}" = set; then
15329
enableval=$enable_gtktest;
15335
pkg_config_args=gtk+-2.0
15340
pkg_config_args="$pkg_config_args gthread-2.0"
15347
# Extract the first word of "pkg-config", so it can be a program name with args.
15348
set dummy pkg-config; ac_word=$2
15349
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15350
$as_echo_n "checking for $ac_word... " >&6; }
15351
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15352
$as_echo_n "(cached) " >&6
15354
case $PKG_CONFIG in
15356
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15360
for as_dir in $PATH
15363
test -z "$as_dir" && as_dir=.
15364
for ac_exec_ext in '' $ac_executable_extensions; do
15365
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15366
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15367
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15374
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
15378
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15379
if test -n "$PKG_CONFIG"; then
15380
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15381
$as_echo "$PKG_CONFIG" >&6; }
15383
{ $as_echo "$as_me:$LINENO: result: no" >&5
15384
$as_echo "no" >&6; }
15389
if test x$PKG_CONFIG != xno ; then
15390
if pkg-config --atleast-pkgconfig-version 0.7 ; then
15393
echo "*** pkg-config too old; version 0.7 or better required."
15401
min_gtk_version=2.6.0
15402
{ $as_echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
15403
$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
15405
if test x$PKG_CONFIG != xno ; then
15406
## don't try to run the test against uninstalled libtool libs
15407
if $PKG_CONFIG --uninstalled $pkg_config_args; then
15408
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
15412
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
15419
if test x"$no_gtk" = x ; then
15420
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
15421
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
15422
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15423
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15424
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15425
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15426
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15427
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15428
if test "x$enable_gtktest" = "xyes" ; then
15429
ac_save_CFLAGS="$CFLAGS"
15430
ac_save_LIBS="$LIBS"
15431
CFLAGS="$CFLAGS $GTK_CFLAGS"
15432
LIBS="$GTK_LIBS $LIBS"
15434
if test "$cross_compiling" = yes; then
15435
echo $ac_n "cross compiling; assumed OK... $ac_c"
15437
cat >conftest.$ac_ext <<_ACEOF
15440
cat confdefs.h >>conftest.$ac_ext
15441
cat >>conftest.$ac_ext <<_ACEOF
15442
/* end confdefs.h. */
15444
#include <gtk/gtk.h>
15446
#include <stdlib.h>
15451
int major, minor, micro;
15454
system ("touch conf.gtktest");
15456
/* HP/UX 9 (%@#!) writes to sscanf strings */
15457
tmp_version = g_strdup("$min_gtk_version");
15458
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15459
printf("%s, bad version string\n", "$min_gtk_version");
15463
if ((gtk_major_version != $gtk_config_major_version) ||
15464
(gtk_minor_version != $gtk_config_minor_version) ||
15465
(gtk_micro_version != $gtk_config_micro_version))
15467
printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
15468
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15469
gtk_major_version, gtk_minor_version, gtk_micro_version);
15470
printf ("*** was found! If pkg-config was correct, then it is best\n");
15471
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15472
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15473
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15474
printf("*** required on your system.\n");
15475
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
15476
printf("*** to point to the correct configuration files\n");
15478
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15479
(gtk_minor_version != GTK_MINOR_VERSION) ||
15480
(gtk_micro_version != GTK_MICRO_VERSION))
15482
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15483
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15484
printf("*** library (version %d.%d.%d)\n",
15485
gtk_major_version, gtk_minor_version, gtk_micro_version);
15489
if ((gtk_major_version > major) ||
15490
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15491
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15497
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15498
gtk_major_version, gtk_minor_version, gtk_micro_version);
15499
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15500
major, minor, micro);
15501
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15503
printf("*** If you have already installed a sufficiently new version, this error\n");
15504
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
15505
printf("*** being found. The easiest way to fix this is to remove the old version\n");
15506
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
15507
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
15508
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15509
printf("*** so that the correct libraries are found at run-time))\n");
15516
rm -f conftest$ac_exeext
15517
if { (ac_try="$ac_link"
15518
case "(($ac_try" in
15519
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520
*) ac_try_echo=$ac_try;;
15522
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15523
$as_echo "$ac_try_echo") >&5
15524
(eval "$ac_link") 2>&5
15526
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15528
{ (case "(($ac_try" in
15529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530
*) ac_try_echo=$ac_try;;
15532
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15533
$as_echo "$ac_try_echo") >&5
15534
(eval "$ac_try") 2>&5
15536
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537
(exit $ac_status); }; }; then
15540
$as_echo "$as_me: program exited with status $ac_status" >&5
15541
$as_echo "$as_me: failed program was:" >&5
15542
sed 's/^/| /' conftest.$ac_ext >&5
15544
( exit $ac_status )
15547
rm -rf conftest.dSYM
15548
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15552
CFLAGS="$ac_save_CFLAGS"
15553
LIBS="$ac_save_LIBS"
15556
if test "x$no_gtk" = x ; then
15557
{ $as_echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
15558
$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
15561
{ $as_echo "$as_me:$LINENO: result: no" >&5
15562
$as_echo "no" >&6; }
15563
if test "$PKG_CONFIG" = "no" ; then
15564
echo "*** A new enough version of pkg-config was not found."
15565
echo "*** See http://pkgconfig.sourceforge.net"
15567
if test -f conf.gtktest ; then
15570
echo "*** Could not run GTK+ test program, checking why..."
15571
ac_save_CFLAGS="$CFLAGS"
15572
ac_save_LIBS="$LIBS"
15573
CFLAGS="$CFLAGS $GTK_CFLAGS"
15574
LIBS="$LIBS $GTK_LIBS"
15575
cat >conftest.$ac_ext <<_ACEOF
15578
cat confdefs.h >>conftest.$ac_ext
15579
cat >>conftest.$ac_ext <<_ACEOF
15580
/* end confdefs.h. */
15582
#include <gtk/gtk.h>
15588
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15593
rm -f conftest.$ac_objext conftest$ac_exeext
15594
if { (ac_try="$ac_link"
15595
case "(($ac_try" in
15596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597
*) ac_try_echo=$ac_try;;
15599
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15600
$as_echo "$ac_try_echo") >&5
15601
(eval "$ac_link") 2>conftest.er1
15603
grep -v '^ *+' conftest.er1 >conftest.err
15605
cat conftest.err >&5
15606
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607
(exit $ac_status); } && {
15608
test -z "$ac_c_werror_flag" ||
15609
test ! -s conftest.err
15610
} && test -s conftest$ac_exeext && {
15611
test "$cross_compiling" = yes ||
15612
$as_test_x conftest$ac_exeext
15614
echo "*** The test program compiled, but did not run. This usually means"
15615
echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
15616
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
15617
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15618
echo "*** to the installed location Also, make sure you have run ldconfig if that"
15619
echo "*** is required on your system"
15621
echo "*** If you have an old version installed, it is best to remove it, although"
15622
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15624
$as_echo "$as_me: failed program was:" >&5
15625
sed 's/^/| /' conftest.$ac_ext >&5
15627
echo "*** The test program failed to compile or link. See the file config.log for the"
15628
echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
15631
rm -rf conftest.dSYM
15632
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15633
conftest$ac_exeext conftest.$ac_ext
15634
CFLAGS="$ac_save_CFLAGS"
15635
LIBS="$ac_save_LIBS"
12467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMLIB1" >&5
12468
$as_echo_n "checking for IMLIB1... " >&6; }
12470
if test -n "$PKG_CONFIG"; then
12471
if test -n "$IMLIB1_CFLAGS"; then
12472
pkg_cv_IMLIB1_CFLAGS="$IMLIB1_CFLAGS"
12474
if test -n "$PKG_CONFIG" && \
12475
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib >= 1.9
12477
($PKG_CONFIG --exists --print-errors "imlib >= 1.9
12480
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12481
test $ac_status = 0; }; then
12482
pkg_cv_IMLIB1_CFLAGS=`$PKG_CONFIG --cflags "imlib >= 1.9
12491
if test -n "$PKG_CONFIG"; then
12492
if test -n "$IMLIB1_LIBS"; then
12493
pkg_cv_IMLIB1_LIBS="$IMLIB1_LIBS"
12495
if test -n "$PKG_CONFIG" && \
12496
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib >= 1.9
12498
($PKG_CONFIG --exists --print-errors "imlib >= 1.9
12501
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12502
test $ac_status = 0; }; then
12503
pkg_cv_IMLIB1_LIBS=`$PKG_CONFIG --libs "imlib >= 1.9
12515
if test $pkg_failed = yes; then
12517
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12518
_pkg_short_errors_supported=yes
12520
_pkg_short_errors_supported=no
12522
if test $_pkg_short_errors_supported = yes; then
12523
IMLIB1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib >= 1.9
12526
IMLIB1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib >= 1.9
12529
# Put the nasty error message in config.log where it belongs
12530
echo "$IMLIB1_PKG_ERRORS" >&5
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533
$as_echo "no" >&6; }
12534
as_fn_error "cannot locate imlib1 library" "$LINENO" 5
12535
elif test $pkg_failed = untried; then
12536
as_fn_error "cannot locate imlib1 library" "$LINENO" 5
12538
IMLIB1_CFLAGS=$pkg_cv_IMLIB1_CFLAGS
12539
IMLIB1_LIBS=$pkg_cv_IMLIB1_LIBS
12540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12541
$as_echo "yes" >&6; }
12542
IMLIB_CFLAGS="`pkg-config --cflags imlib`"
12543
IMLIB_LIBS="`pkg-config --libs imlib`"
12545
$as_echo "#define HAVE_IMLIB 1" >>confdefs.h
12547
IMAGE_LIBS='${IMLIB1_LIBS}'
12548
IMAGE_CFLAGS='${IMLIB1_CFLAGS}'
12549
IMLIB_VERSION="`pkg-config --modversion imlib`"
12550
IMAGE_LOADER="IMLIB 1"
12555
AUDIOFILE_MIN_VER="0.2.3"
15648
12558
# Check whether --with-audiofile was given.
15649
if test "${with_audiofile+set}" = set; then
12559
if test "${with_audiofile+set}" = set; then :
15650
12560
withval=$with_audiofile;
15652
12562
with_audiofile=yes
15655
12566
if test "$with_audiofile" = "yes"; then
15657
12568
pkg_failed=no
15658
{ $as_echo "$as_me:$LINENO: checking for AUDIOFILE" >&5
12569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUDIOFILE" >&5
15659
12570
$as_echo_n "checking for AUDIOFILE... " >&6; }
15661
12572
if test -n "$PKG_CONFIG"; then
15836
12717
_pkg_short_errors_supported=no
15838
12719
if test $_pkg_short_errors_supported = yes; then
15839
ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound >= 0.2.23"`
12720
ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound >= ${ESD_MIN_VER}
15841
ESD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound >= 0.2.23"`
12723
ESD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound >= ${ESD_MIN_VER}
15843
12726
# Put the nasty error message in config.log where it belongs
15844
12727
echo "$ESD_PKG_ERRORS" >&5
15846
{ { $as_echo "$as_me:$LINENO: error: Package requirements (esound >= 0.2.23) were not met:
15850
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15851
installed software in a non-standard prefix.
15853
Alternatively, you may set the environment variables ESD_CFLAGS
15854
and ESD_LIBS to avoid the need to call pkg-config.
15855
See the pkg-config man page for more details.
15857
$as_echo "$as_me: error: Package requirements (esound >= 0.2.23) were not met:
15861
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15862
installed software in a non-standard prefix.
15864
Alternatively, you may set the environment variables ESD_CFLAGS
15865
and ESD_LIBS to avoid the need to call pkg-config.
15866
See the pkg-config man page for more details.
15868
{ (exit 1); exit 1; }; }
12729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730
$as_echo "no" >&6; }
12731
as_fn_error "cannot locate esound" "$LINENO" 5
15869
12732
elif test $pkg_failed = untried; then
15870
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15871
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15872
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
15873
is in your PATH or set the PKG_CONFIG environment variable to the full
15874
path to pkg-config.
15876
Alternatively, you may set the environment variables ESD_CFLAGS
15877
and ESD_LIBS to avoid the need to call pkg-config.
15878
See the pkg-config man page for more details.
15880
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15881
See \`config.log' for more details." >&5
15882
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
15883
is in your PATH or set the PKG_CONFIG environment variable to the full
15884
path to pkg-config.
15886
Alternatively, you may set the environment variables ESD_CFLAGS
15887
and ESD_LIBS to avoid the need to call pkg-config.
15888
See the pkg-config man page for more details.
15890
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15891
See \`config.log' for more details." >&2;}
15892
{ (exit 1); exit 1; }; }; }
12733
as_fn_error "cannot locate esound" "$LINENO" 5
15894
12735
ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
15895
12736
ESD_LIBS=$pkg_cv_ESD_LIBS
15896
{ $as_echo "$as_me:$LINENO: result: yes" >&5
15897
$as_echo "yes" >&6; }
15903
cat >>confdefs.h <<\_ACEOF
15909
# Check whether --enable-gnome-widgets was given.
15910
if test "${enable_gnome_widgets+set}" = set; then
15911
enableval=$enable_gnome_widgets;
15913
enable_gnome_widgets=no
15917
if test "$enable_gnome_widgets" != "no"; then
15918
{ $as_echo "$as_me:$LINENO: checking for rep-gtk GNOME wrappers" >&5
15919
$as_echo_n "checking for rep-gtk GNOME wrappers... " >&6; }
15920
if REP_GTK_DONT_INITIALIZE=1 rep --batch -l gui.gtk-2.gnome-ui 2>&5; then
15921
{ $as_echo "$as_me:$LINENO: result: yes" >&5
15922
$as_echo "yes" >&6; }
15925
{ $as_echo "$as_me:$LINENO: result: no" >&5
15926
$as_echo "no" >&6; }
15928
{ $as_echo "$as_me:$LINENO: WARNING: Can't load rep's gnome wrappers" >&5
15929
$as_echo "$as_me: WARNING: Can't load rep's gnome wrappers" >&2;}
12737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12738
$as_echo "yes" >&6; }
12739
ESD_LIBS="`pkg-config --libs esound`"
12740
ESD_CFLAGS="`pkg-config --cflags esound`"
12742
$as_echo "#define HAVE_ESD 1" >>confdefs.h
12750
# Check whether --with-nls was given.
12751
if test "${with_nls+set}" = set; then :
12758
if test "$with_nls" = "yes"; then
12759
SUBDIRS="${SUBDIRS} po"
15936
12762
doug_lea_malloc=yes
15937
{ $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
15938
$as_echo_n "checking for malloc_get_state... " >&6; }
15939
if test "${ac_cv_func_malloc_get_state+set}" = set; then
15940
$as_echo_n "(cached) " >&6
15942
cat >conftest.$ac_ext <<_ACEOF
15945
cat confdefs.h >>conftest.$ac_ext
15946
cat >>conftest.$ac_ext <<_ACEOF
15947
/* end confdefs.h. */
15948
/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
15949
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15950
#define malloc_get_state innocuous_malloc_get_state
15952
/* System header to define __stub macros and hopefully few prototypes,
15953
which can conflict with char malloc_get_state (); below.
15954
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15955
<limits.h> exists even on freestanding compilers. */
15958
# include <limits.h>
15960
# include <assert.h>
15963
#undef malloc_get_state
15965
/* Override any GCC internal prototype to avoid an error.
15966
Use char because int might match the return type of a GCC
15967
builtin and then its argument prototype would still apply. */
15971
char malloc_get_state ();
15972
/* The GNU C library defines this for functions which it implements
15973
to always fail with ENOSYS. Some functions are actually named
15974
something starting with __ and the normal name is an alias. */
15975
#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
15982
return malloc_get_state ();
15987
rm -f conftest.$ac_objext conftest$ac_exeext
15988
if { (ac_try="$ac_link"
15989
case "(($ac_try" in
15990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991
*) ac_try_echo=$ac_try;;
15993
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994
$as_echo "$ac_try_echo") >&5
15995
(eval "$ac_link") 2>conftest.er1
15997
grep -v '^ *+' conftest.er1 >conftest.err
15999
cat conftest.err >&5
16000
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001
(exit $ac_status); } && {
16002
test -z "$ac_c_werror_flag" ||
16003
test ! -s conftest.err
16004
} && test -s conftest$ac_exeext && {
16005
test "$cross_compiling" = yes ||
16006
$as_test_x conftest$ac_exeext
16008
ac_cv_func_malloc_get_state=yes
16010
$as_echo "$as_me: failed program was:" >&5
16011
sed 's/^/| /' conftest.$ac_ext >&5
16013
ac_cv_func_malloc_get_state=no
16016
rm -rf conftest.dSYM
16017
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018
conftest$ac_exeext conftest.$ac_ext
16020
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
16021
$as_echo "$ac_cv_func_malloc_get_state" >&6; }
16022
if test "x$ac_cv_func_malloc_get_state" = x""yes; then
12763
ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
12764
if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
16025
12767
doug_lea_malloc=no
16028
{ $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
16029
$as_echo_n "checking for malloc_set_state... " >&6; }
16030
if test "${ac_cv_func_malloc_set_state+set}" = set; then
16031
$as_echo_n "(cached) " >&6
16033
cat >conftest.$ac_ext <<_ACEOF
16036
cat confdefs.h >>conftest.$ac_ext
16037
cat >>conftest.$ac_ext <<_ACEOF
16038
/* end confdefs.h. */
16039
/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
16040
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16041
#define malloc_set_state innocuous_malloc_set_state
16043
/* System header to define __stub macros and hopefully few prototypes,
16044
which can conflict with char malloc_set_state (); below.
16045
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16046
<limits.h> exists even on freestanding compilers. */
16049
# include <limits.h>
16051
# include <assert.h>
16054
#undef malloc_set_state
16056
/* Override any GCC internal prototype to avoid an error.
16057
Use char because int might match the return type of a GCC
16058
builtin and then its argument prototype would still apply. */
16062
char malloc_set_state ();
16063
/* The GNU C library defines this for functions which it implements
16064
to always fail with ENOSYS. Some functions are actually named
16065
something starting with __ and the normal name is an alias. */
16066
#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
16073
return malloc_set_state ();
16078
rm -f conftest.$ac_objext conftest$ac_exeext
16079
if { (ac_try="$ac_link"
16080
case "(($ac_try" in
16081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082
*) ac_try_echo=$ac_try;;
16084
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16085
$as_echo "$ac_try_echo") >&5
16086
(eval "$ac_link") 2>conftest.er1
16088
grep -v '^ *+' conftest.er1 >conftest.err
16090
cat conftest.err >&5
16091
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092
(exit $ac_status); } && {
16093
test -z "$ac_c_werror_flag" ||
16094
test ! -s conftest.err
16095
} && test -s conftest$ac_exeext && {
16096
test "$cross_compiling" = yes ||
16097
$as_test_x conftest$ac_exeext
16099
ac_cv_func_malloc_set_state=yes
16101
$as_echo "$as_me: failed program was:" >&5
16102
sed 's/^/| /' conftest.$ac_ext >&5
16104
ac_cv_func_malloc_set_state=no
16107
rm -rf conftest.dSYM
16108
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16109
conftest$ac_exeext conftest.$ac_ext
16111
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
16112
$as_echo "$ac_cv_func_malloc_set_state" >&6; }
16113
if test "x$ac_cv_func_malloc_set_state" = x""yes; then
12770
ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
12771
if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
16116
12774
doug_lea_malloc=no
16119
12777
if test "$doug_lea_malloc" = "no"; then
16121
cat >>confdefs.h <<\_ACEOF
16122
#define LIBC_MALLOC 1
12779
$as_echo "#define LIBC_MALLOC 1" >>confdefs.h
16127
cat >>confdefs.h <<\_ACEOF
16128
#define DOUG_LEA_MALLOC 1
16132
cat >>confdefs.h <<\_ACEOF
16133
#define LIBC_MALLOC 1
12783
$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
12786
$as_echo "#define LIBC_MALLOC 1" >>confdefs.h
16139
12791
# Check whether --with-gnome_prefix was given.
16140
if test "${with_gnome_prefix+set}" = set; then
12792
if test "${with_gnome_prefix+set}" = set; then :
16141
12793
withval=$with_gnome_prefix;
16143
12795
with_gnome_prefix=""
16146
{ $as_echo "$as_me:$LINENO: checking for GNOME prefix" >&5
12798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME prefix" >&5
16147
12799
$as_echo_n "checking for GNOME prefix... " >&6; }
16148
12800
if test "x$with_gnome_prefix" = "x"; then
16149
12801
with_gnome_prefix='${prefix}'
16151
{ $as_echo "$as_me:$LINENO: result: $with_gnome_prefix" >&5
12803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gnome_prefix" >&5
16152
12804
$as_echo "$with_gnome_prefix" >&6; }
16153
12805
GNOMEDIR=$with_gnome_prefix
16156
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16157
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16158
if test "${ac_cv_c_const+set}" = set; then
16159
$as_echo_n "(cached) " >&6
16161
cat >conftest.$ac_ext <<_ACEOF
16164
cat confdefs.h >>conftest.$ac_ext
16165
cat >>conftest.$ac_ext <<_ACEOF
16166
/* end confdefs.h. */
16171
/* FIXME: Include the comments suggested by Paul. */
16172
#ifndef __cplusplus
16173
/* Ultrix mips cc rejects this. */
16174
typedef int charset[2];
16176
/* SunOS 4.1.1 cc rejects this. */
16177
char const *const *pcpcc;
16179
/* NEC SVR4.0.2 mips cc rejects this. */
16180
struct point {int x, y;};
16181
static struct point const zero = {0,0};
16182
/* AIX XL C 1.02.0.0 rejects this.
16183
It does not let you subtract one const X* pointer from another in
16184
an arm of an if-expression whose if-part is not a constant
16186
const char *g = "string";
16187
pcpcc = &g + (g ? g-g : 0);
16188
/* HPUX 7.0 cc rejects these. */
16190
ppc = (char**) pcpcc;
16191
pcpcc = (char const *const *) ppc;
16192
{ /* SCO 3.2v4 cc rejects this. */
16194
char const *s = 0 ? (char *) 0 : (char const *) 0;
16199
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16200
int x[] = {25, 17};
16201
const int *foo = &x[0];
16204
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16205
typedef const int *iptr;
16209
{ /* AIX XL C 1.02.0.0 rejects this saying
16210
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16211
struct s { int j; const int *ap[3]; };
16212
struct s *b; b->j = 5;
16214
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16215
const int foo = 10;
16216
if (!foo) return 0;
16218
return !cs[0] && !zero.x;
16225
rm -f conftest.$ac_objext
16226
if { (ac_try="$ac_compile"
16227
case "(($ac_try" in
16228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229
*) ac_try_echo=$ac_try;;
16231
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16232
$as_echo "$ac_try_echo") >&5
16233
(eval "$ac_compile") 2>conftest.er1
16235
grep -v '^ *+' conftest.er1 >conftest.err
16237
cat conftest.err >&5
16238
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239
(exit $ac_status); } && {
16240
test -z "$ac_c_werror_flag" ||
16241
test ! -s conftest.err
16242
} && test -s conftest.$ac_objext; then
16245
$as_echo "$as_me: failed program was:" >&5
16246
sed 's/^/| /' conftest.$ac_ext >&5
16251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16253
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16254
$as_echo "$ac_cv_c_const" >&6; }
16255
if test $ac_cv_c_const = no; then
16257
cat >>confdefs.h <<\_ACEOF
16263
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
16264
$as_echo_n "checking for inline... " >&6; }
16265
if test "${ac_cv_c_inline+set}" = set; then
16266
$as_echo_n "(cached) " >&6
16269
for ac_kw in inline __inline__ __inline; do
16270
cat >conftest.$ac_ext <<_ACEOF
16273
cat confdefs.h >>conftest.$ac_ext
16274
cat >>conftest.$ac_ext <<_ACEOF
16275
/* end confdefs.h. */
16276
#ifndef __cplusplus
16278
static $ac_kw foo_t static_foo () {return 0; }
16279
$ac_kw foo_t foo () {return 0; }
16283
rm -f conftest.$ac_objext
16284
if { (ac_try="$ac_compile"
16285
case "(($ac_try" in
16286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287
*) ac_try_echo=$ac_try;;
16289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290
$as_echo "$ac_try_echo") >&5
16291
(eval "$ac_compile") 2>conftest.er1
16293
grep -v '^ *+' conftest.er1 >conftest.err
16295
cat conftest.err >&5
16296
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297
(exit $ac_status); } && {
16298
test -z "$ac_c_werror_flag" ||
16299
test ! -s conftest.err
16300
} && test -s conftest.$ac_objext; then
16301
ac_cv_c_inline=$ac_kw
16303
$as_echo "$as_me: failed program was:" >&5
16304
sed 's/^/| /' conftest.$ac_ext >&5
16309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16310
test "$ac_cv_c_inline" != no && break
16314
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16315
$as_echo "$ac_cv_c_inline" >&6; }
16318
case $ac_cv_c_inline in
16321
case $ac_cv_c_inline in
16323
*) ac_val=$ac_cv_c_inline;;
16325
cat >>confdefs.h <<_ACEOF
16326
#ifndef __cplusplus
16327
#define inline $ac_val
16334
{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16335
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16336
if test "${ac_cv_c_bigendian+set}" = set; then
16337
$as_echo_n "(cached) " >&6
16339
ac_cv_c_bigendian=unknown
16340
# See if we're dealing with a universal compiler.
16341
cat >conftest.$ac_ext <<_ACEOF
16344
cat confdefs.h >>conftest.$ac_ext
16345
cat >>conftest.$ac_ext <<_ACEOF
16346
/* end confdefs.h. */
16347
#ifndef __APPLE_CC__
16348
not a universal capable compiler
16353
rm -f conftest.$ac_objext
16354
if { (ac_try="$ac_compile"
16355
case "(($ac_try" in
16356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357
*) ac_try_echo=$ac_try;;
16359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16360
$as_echo "$ac_try_echo") >&5
16361
(eval "$ac_compile") 2>conftest.er1
16363
grep -v '^ *+' conftest.er1 >conftest.err
16365
cat conftest.err >&5
16366
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367
(exit $ac_status); } && {
16368
test -z "$ac_c_werror_flag" ||
16369
test ! -s conftest.err
16370
} && test -s conftest.$ac_objext; then
16372
# Check for potential -arch flags. It is not universal unless
16373
# there are some -arch flags. Note that *ppc* also matches
16374
# ppc64. This check is also rather less than ideal.
16375
case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
16376
*-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
16379
$as_echo "$as_me: failed program was:" >&5
16380
sed 's/^/| /' conftest.$ac_ext >&5
16385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386
if test $ac_cv_c_bigendian = unknown; then
16387
# See if sys/param.h defines the BYTE_ORDER macro.
16388
cat >conftest.$ac_ext <<_ACEOF
16391
cat confdefs.h >>conftest.$ac_ext
16392
cat >>conftest.$ac_ext <<_ACEOF
16393
/* end confdefs.h. */
16394
#include <sys/types.h>
16395
#include <sys/param.h>
16400
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16401
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16403
bogus endian macros
16410
rm -f conftest.$ac_objext
16411
if { (ac_try="$ac_compile"
16412
case "(($ac_try" in
16413
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414
*) ac_try_echo=$ac_try;;
16416
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16417
$as_echo "$ac_try_echo") >&5
16418
(eval "$ac_compile") 2>conftest.er1
16420
grep -v '^ *+' conftest.er1 >conftest.err
16422
cat conftest.err >&5
16423
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424
(exit $ac_status); } && {
16425
test -z "$ac_c_werror_flag" ||
16426
test ! -s conftest.err
16427
} && test -s conftest.$ac_objext; then
16428
# It does; now see whether it defined to BIG_ENDIAN or not.
16429
cat >conftest.$ac_ext <<_ACEOF
16432
cat confdefs.h >>conftest.$ac_ext
16433
cat >>conftest.$ac_ext <<_ACEOF
16434
/* end confdefs.h. */
16435
#include <sys/types.h>
16436
#include <sys/param.h>
16441
#if BYTE_ORDER != BIG_ENDIAN
16449
rm -f conftest.$ac_objext
16450
if { (ac_try="$ac_compile"
16451
case "(($ac_try" in
16452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453
*) ac_try_echo=$ac_try;;
16455
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16456
$as_echo "$ac_try_echo") >&5
16457
(eval "$ac_compile") 2>conftest.er1
16459
grep -v '^ *+' conftest.er1 >conftest.err
16461
cat conftest.err >&5
16462
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463
(exit $ac_status); } && {
16464
test -z "$ac_c_werror_flag" ||
16465
test ! -s conftest.err
16466
} && test -s conftest.$ac_objext; then
16467
ac_cv_c_bigendian=yes
16469
$as_echo "$as_me: failed program was:" >&5
16470
sed 's/^/| /' conftest.$ac_ext >&5
16472
ac_cv_c_bigendian=no
16475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477
$as_echo "$as_me: failed program was:" >&5
16478
sed 's/^/| /' conftest.$ac_ext >&5
16483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485
if test $ac_cv_c_bigendian = unknown; then
16486
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16487
cat >conftest.$ac_ext <<_ACEOF
16490
cat confdefs.h >>conftest.$ac_ext
16491
cat >>conftest.$ac_ext <<_ACEOF
16492
/* end confdefs.h. */
16493
#include <limits.h>
16498
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16499
bogus endian macros
16506
rm -f conftest.$ac_objext
16507
if { (ac_try="$ac_compile"
16508
case "(($ac_try" in
16509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510
*) ac_try_echo=$ac_try;;
16512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16513
$as_echo "$ac_try_echo") >&5
16514
(eval "$ac_compile") 2>conftest.er1
16516
grep -v '^ *+' conftest.er1 >conftest.err
16518
cat conftest.err >&5
16519
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520
(exit $ac_status); } && {
16521
test -z "$ac_c_werror_flag" ||
16522
test ! -s conftest.err
16523
} && test -s conftest.$ac_objext; then
16524
# It does; now see whether it defined to _BIG_ENDIAN or not.
16525
cat >conftest.$ac_ext <<_ACEOF
16528
cat confdefs.h >>conftest.$ac_ext
16529
cat >>conftest.$ac_ext <<_ACEOF
16530
/* end confdefs.h. */
16531
#include <limits.h>
16536
#ifndef _BIG_ENDIAN
16544
rm -f conftest.$ac_objext
16545
if { (ac_try="$ac_compile"
16546
case "(($ac_try" in
16547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548
*) ac_try_echo=$ac_try;;
16550
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16551
$as_echo "$ac_try_echo") >&5
16552
(eval "$ac_compile") 2>conftest.er1
16554
grep -v '^ *+' conftest.er1 >conftest.err
16556
cat conftest.err >&5
16557
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558
(exit $ac_status); } && {
16559
test -z "$ac_c_werror_flag" ||
16560
test ! -s conftest.err
16561
} && test -s conftest.$ac_objext; then
16562
ac_cv_c_bigendian=yes
16564
$as_echo "$as_me: failed program was:" >&5
16565
sed 's/^/| /' conftest.$ac_ext >&5
16567
ac_cv_c_bigendian=no
16570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572
$as_echo "$as_me: failed program was:" >&5
16573
sed 's/^/| /' conftest.$ac_ext >&5
16578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580
if test $ac_cv_c_bigendian = unknown; then
16581
# Compile a test program.
16582
if test "$cross_compiling" = yes; then
16583
# Try to guess by grepping values from an object file.
16584
cat >conftest.$ac_ext <<_ACEOF
16587
cat confdefs.h >>conftest.$ac_ext
16588
cat >>conftest.$ac_ext <<_ACEOF
16589
/* end confdefs.h. */
16590
short int ascii_mm[] =
16591
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16592
short int ascii_ii[] =
16593
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16594
int use_ascii (int i) {
16595
return ascii_mm[i] + ascii_ii[i];
16597
short int ebcdic_ii[] =
16598
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16599
short int ebcdic_mm[] =
16600
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16601
int use_ebcdic (int i) {
16602
return ebcdic_mm[i] + ebcdic_ii[i];
16609
return use_ascii (foo) == use_ebcdic (foo);
16614
rm -f conftest.$ac_objext
16615
if { (ac_try="$ac_compile"
16616
case "(($ac_try" in
16617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618
*) ac_try_echo=$ac_try;;
16620
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16621
$as_echo "$ac_try_echo") >&5
16622
(eval "$ac_compile") 2>conftest.er1
16624
grep -v '^ *+' conftest.er1 >conftest.err
16626
cat conftest.err >&5
16627
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628
(exit $ac_status); } && {
16629
test -z "$ac_c_werror_flag" ||
16630
test ! -s conftest.err
16631
} && test -s conftest.$ac_objext; then
16632
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16633
ac_cv_c_bigendian=yes
16635
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16636
if test "$ac_cv_c_bigendian" = unknown; then
16637
ac_cv_c_bigendian=no
16639
# finding both strings is unlikely to happen, but who knows?
16640
ac_cv_c_bigendian=unknown
16644
$as_echo "$as_me: failed program was:" >&5
16645
sed 's/^/| /' conftest.$ac_ext >&5
16650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652
cat >conftest.$ac_ext <<_ACEOF
16655
cat confdefs.h >>conftest.$ac_ext
16656
cat >>conftest.$ac_ext <<_ACEOF
16657
/* end confdefs.h. */
16658
$ac_includes_default
16663
/* Are we little or big endian? From Harbison&Steele. */
16667
char c[sizeof (long int)];
16670
return u.c[sizeof (long int) - 1] == 1;
16676
rm -f conftest$ac_exeext
16677
if { (ac_try="$ac_link"
16678
case "(($ac_try" in
16679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680
*) ac_try_echo=$ac_try;;
16682
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16683
$as_echo "$ac_try_echo") >&5
16684
(eval "$ac_link") 2>&5
16686
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16688
{ (case "(($ac_try" in
16689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690
*) ac_try_echo=$ac_try;;
16692
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16693
$as_echo "$ac_try_echo") >&5
16694
(eval "$ac_try") 2>&5
16696
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697
(exit $ac_status); }; }; then
16698
ac_cv_c_bigendian=no
16700
$as_echo "$as_me: program exited with status $ac_status" >&5
16701
$as_echo "$as_me: failed program was:" >&5
16702
sed 's/^/| /' conftest.$ac_ext >&5
16704
( exit $ac_status )
16705
ac_cv_c_bigendian=yes
16707
rm -rf conftest.dSYM
16708
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16714
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16715
$as_echo "$ac_cv_c_bigendian" >&6; }
16716
case $ac_cv_c_bigendian in #(
16718
cat >>confdefs.h <<\_ACEOF
16719
#define WORDS_BIGENDIAN 1
16726
cat >>confdefs.h <<\_ACEOF
16727
#define AC_APPLE_UNIVERSAL_BUILD 1
16732
{ { $as_echo "$as_me:$LINENO: error: unknown endianness
16733
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16734
$as_echo "$as_me: error: unknown endianness
16735
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16736
{ (exit 1); exit 1; }; } ;;
16739
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
16740
$as_echo_n "checking for size_t... " >&6; }
16741
if test "${ac_cv_type_size_t+set}" = set; then
16742
$as_echo_n "(cached) " >&6
16744
ac_cv_type_size_t=no
16745
cat >conftest.$ac_ext <<_ACEOF
16748
cat confdefs.h >>conftest.$ac_ext
16749
cat >>conftest.$ac_ext <<_ACEOF
16750
/* end confdefs.h. */
16751
$ac_includes_default
16755
if (sizeof (size_t))
16761
rm -f conftest.$ac_objext
16762
if { (ac_try="$ac_compile"
16763
case "(($ac_try" in
16764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765
*) ac_try_echo=$ac_try;;
16767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16768
$as_echo "$ac_try_echo") >&5
16769
(eval "$ac_compile") 2>conftest.er1
16771
grep -v '^ *+' conftest.er1 >conftest.err
16773
cat conftest.err >&5
16774
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775
(exit $ac_status); } && {
16776
test -z "$ac_c_werror_flag" ||
16777
test ! -s conftest.err
16778
} && test -s conftest.$ac_objext; then
16779
cat >conftest.$ac_ext <<_ACEOF
16782
cat confdefs.h >>conftest.$ac_ext
16783
cat >>conftest.$ac_ext <<_ACEOF
16784
/* end confdefs.h. */
16785
$ac_includes_default
16789
if (sizeof ((size_t)))
16795
rm -f conftest.$ac_objext
16796
if { (ac_try="$ac_compile"
16797
case "(($ac_try" in
16798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799
*) ac_try_echo=$ac_try;;
16801
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16802
$as_echo "$ac_try_echo") >&5
16803
(eval "$ac_compile") 2>conftest.er1
16805
grep -v '^ *+' conftest.er1 >conftest.err
16807
cat conftest.err >&5
16808
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809
(exit $ac_status); } && {
16810
test -z "$ac_c_werror_flag" ||
16811
test ! -s conftest.err
16812
} && test -s conftest.$ac_objext; then
16815
$as_echo "$as_me: failed program was:" >&5
16816
sed 's/^/| /' conftest.$ac_ext >&5
16818
ac_cv_type_size_t=yes
16821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823
$as_echo "$as_me: failed program was:" >&5
16824
sed 's/^/| /' conftest.$ac_ext >&5
16829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16832
$as_echo "$ac_cv_type_size_t" >&6; }
16833
if test "x$ac_cv_type_size_t" = x""yes; then
16837
cat >>confdefs.h <<_ACEOF
16838
#define size_t unsigned int
16844
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16845
# for constant arguments. Useless!
16846
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16847
$as_echo_n "checking for working alloca.h... " >&6; }
16848
if test "${ac_cv_working_alloca_h+set}" = set; then
16849
$as_echo_n "(cached) " >&6
16851
cat >conftest.$ac_ext <<_ACEOF
16854
cat confdefs.h >>conftest.$ac_ext
16855
cat >>conftest.$ac_ext <<_ACEOF
16856
/* end confdefs.h. */
16857
#include <alloca.h>
16861
char *p = (char *) alloca (2 * sizeof (int));
16867
rm -f conftest.$ac_objext conftest$ac_exeext
16868
if { (ac_try="$ac_link"
16869
case "(($ac_try" in
16870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871
*) ac_try_echo=$ac_try;;
16873
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16874
$as_echo "$ac_try_echo") >&5
16875
(eval "$ac_link") 2>conftest.er1
16877
grep -v '^ *+' conftest.er1 >conftest.err
16879
cat conftest.err >&5
16880
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881
(exit $ac_status); } && {
16882
test -z "$ac_c_werror_flag" ||
16883
test ! -s conftest.err
16884
} && test -s conftest$ac_exeext && {
16885
test "$cross_compiling" = yes ||
16886
$as_test_x conftest$ac_exeext
16888
ac_cv_working_alloca_h=yes
16890
$as_echo "$as_me: failed program was:" >&5
16891
sed 's/^/| /' conftest.$ac_ext >&5
16893
ac_cv_working_alloca_h=no
16896
rm -rf conftest.dSYM
16897
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16898
conftest$ac_exeext conftest.$ac_ext
16900
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16901
$as_echo "$ac_cv_working_alloca_h" >&6; }
16902
if test $ac_cv_working_alloca_h = yes; then
16904
cat >>confdefs.h <<\_ACEOF
16905
#define HAVE_ALLOCA_H 1
16910
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
16911
$as_echo_n "checking for alloca... " >&6; }
16912
if test "${ac_cv_func_alloca_works+set}" = set; then
16913
$as_echo_n "(cached) " >&6
16915
cat >conftest.$ac_ext <<_ACEOF
16918
cat confdefs.h >>conftest.$ac_ext
16919
cat >>conftest.$ac_ext <<_ACEOF
16920
/* end confdefs.h. */
16922
# define alloca __builtin_alloca
16925
# include <malloc.h>
16926
# define alloca _alloca
16928
# ifdef HAVE_ALLOCA_H
16929
# include <alloca.h>
16934
# ifndef alloca /* predefined by HP cc +Olibcalls */
16945
char *p = (char *) alloca (1);
16951
rm -f conftest.$ac_objext conftest$ac_exeext
16952
if { (ac_try="$ac_link"
16953
case "(($ac_try" in
16954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955
*) ac_try_echo=$ac_try;;
16957
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16958
$as_echo "$ac_try_echo") >&5
16959
(eval "$ac_link") 2>conftest.er1
16961
grep -v '^ *+' conftest.er1 >conftest.err
16963
cat conftest.err >&5
16964
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965
(exit $ac_status); } && {
16966
test -z "$ac_c_werror_flag" ||
16967
test ! -s conftest.err
16968
} && test -s conftest$ac_exeext && {
16969
test "$cross_compiling" = yes ||
16970
$as_test_x conftest$ac_exeext
16972
ac_cv_func_alloca_works=yes
16974
$as_echo "$as_me: failed program was:" >&5
16975
sed 's/^/| /' conftest.$ac_ext >&5
16977
ac_cv_func_alloca_works=no
16980
rm -rf conftest.dSYM
16981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16982
conftest$ac_exeext conftest.$ac_ext
16984
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16985
$as_echo "$ac_cv_func_alloca_works" >&6; }
16987
if test $ac_cv_func_alloca_works = yes; then
16989
cat >>confdefs.h <<\_ACEOF
16990
#define HAVE_ALLOCA 1
16994
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
16995
# that cause trouble. Some versions do not even contain alloca or
16996
# contain a buggy version. If you still want to use their alloca,
16997
# use ar to extract alloca.o from them instead of compiling alloca.c.
16999
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17001
cat >>confdefs.h <<\_ACEOF
17006
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17007
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17008
if test "${ac_cv_os_cray+set}" = set; then
17009
$as_echo_n "(cached) " >&6
17011
cat >conftest.$ac_ext <<_ACEOF
17014
cat confdefs.h >>conftest.$ac_ext
17015
cat >>conftest.$ac_ext <<_ACEOF
17016
/* end confdefs.h. */
17017
#if defined CRAY && ! defined CRAY2
17024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17025
$EGREP "webecray" >/dev/null 2>&1; then
17033
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17034
$as_echo "$ac_cv_os_cray" >&6; }
17035
if test $ac_cv_os_cray = yes; then
17036
for ac_func in _getb67 GETB67 getb67; do
17037
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17038
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17039
$as_echo_n "checking for $ac_func... " >&6; }
17040
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17041
$as_echo_n "(cached) " >&6
17043
cat >conftest.$ac_ext <<_ACEOF
17046
cat confdefs.h >>conftest.$ac_ext
17047
cat >>conftest.$ac_ext <<_ACEOF
17048
/* end confdefs.h. */
17049
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17050
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17051
#define $ac_func innocuous_$ac_func
17053
/* System header to define __stub macros and hopefully few prototypes,
17054
which can conflict with char $ac_func (); below.
17055
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17056
<limits.h> exists even on freestanding compilers. */
17059
# include <limits.h>
17061
# include <assert.h>
17066
/* Override any GCC internal prototype to avoid an error.
17067
Use char because int might match the return type of a GCC
17068
builtin and then its argument prototype would still apply. */
17073
/* The GNU C library defines this for functions which it implements
17074
to always fail with ENOSYS. Some functions are actually named
17075
something starting with __ and the normal name is an alias. */
17076
#if defined __stub_$ac_func || defined __stub___$ac_func
17083
return $ac_func ();
17088
rm -f conftest.$ac_objext conftest$ac_exeext
17089
if { (ac_try="$ac_link"
17090
case "(($ac_try" in
17091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092
*) ac_try_echo=$ac_try;;
17094
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095
$as_echo "$ac_try_echo") >&5
17096
(eval "$ac_link") 2>conftest.er1
17098
grep -v '^ *+' conftest.er1 >conftest.err
17100
cat conftest.err >&5
17101
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102
(exit $ac_status); } && {
17103
test -z "$ac_c_werror_flag" ||
17104
test ! -s conftest.err
17105
} && test -s conftest$ac_exeext && {
17106
test "$cross_compiling" = yes ||
17107
$as_test_x conftest$ac_exeext
17109
eval "$as_ac_var=yes"
17111
$as_echo "$as_me: failed program was:" >&5
17112
sed 's/^/| /' conftest.$ac_ext >&5
17114
eval "$as_ac_var=no"
17117
rm -rf conftest.dSYM
17118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119
conftest$ac_exeext conftest.$ac_ext
17121
ac_res=`eval 'as_val=${'$as_ac_var'}
17122
$as_echo "$as_val"'`
17123
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17124
$as_echo "$ac_res" >&6; }
17125
as_val=`eval 'as_val=${'$as_ac_var'}
17126
$as_echo "$as_val"'`
17127
if test "x$as_val" = x""yes; then
17129
cat >>confdefs.h <<_ACEOF
17130
#define CRAY_STACKSEG_END $ac_func
17139
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17140
$as_echo_n "checking stack direction for C alloca... " >&6; }
17141
if test "${ac_cv_c_stack_direction+set}" = set; then
17142
$as_echo_n "(cached) " >&6
17144
if test "$cross_compiling" = yes; then
17145
ac_cv_c_stack_direction=0
17147
cat >conftest.$ac_ext <<_ACEOF
17150
cat confdefs.h >>conftest.$ac_ext
17151
cat >>conftest.$ac_ext <<_ACEOF
17152
/* end confdefs.h. */
17153
$ac_includes_default
17155
find_stack_direction ()
17157
static char *addr = 0;
17162
return find_stack_direction ();
17165
return (&dummy > addr) ? 1 : -1;
17171
return find_stack_direction () < 0;
17174
rm -f conftest$ac_exeext
17175
if { (ac_try="$ac_link"
17176
case "(($ac_try" in
17177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178
*) ac_try_echo=$ac_try;;
17180
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17181
$as_echo "$ac_try_echo") >&5
17182
(eval "$ac_link") 2>&5
17184
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17186
{ (case "(($ac_try" in
17187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188
*) ac_try_echo=$ac_try;;
17190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17191
$as_echo "$ac_try_echo") >&5
17192
(eval "$ac_try") 2>&5
17194
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195
(exit $ac_status); }; }; then
17196
ac_cv_c_stack_direction=1
17198
$as_echo "$as_me: program exited with status $ac_status" >&5
17199
$as_echo "$as_me: failed program was:" >&5
17200
sed 's/^/| /' conftest.$ac_ext >&5
17202
( exit $ac_status )
17203
ac_cv_c_stack_direction=-1
17205
rm -rf conftest.dSYM
17206
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17211
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17212
$as_echo "$ac_cv_c_stack_direction" >&6; }
17214
cat >>confdefs.h <<_ACEOF
17215
#define STACK_DIRECTION $ac_cv_c_stack_direction
17222
for ac_func in vprintf
17224
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17225
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17226
$as_echo_n "checking for $ac_func... " >&6; }
17227
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17228
$as_echo_n "(cached) " >&6
17230
cat >conftest.$ac_ext <<_ACEOF
17233
cat confdefs.h >>conftest.$ac_ext
17234
cat >>conftest.$ac_ext <<_ACEOF
17235
/* end confdefs.h. */
17236
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17237
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17238
#define $ac_func innocuous_$ac_func
17240
/* System header to define __stub macros and hopefully few prototypes,
17241
which can conflict with char $ac_func (); below.
17242
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17243
<limits.h> exists even on freestanding compilers. */
17246
# include <limits.h>
17248
# include <assert.h>
17253
/* Override any GCC internal prototype to avoid an error.
17254
Use char because int might match the return type of a GCC
17255
builtin and then its argument prototype would still apply. */
17260
/* The GNU C library defines this for functions which it implements
17261
to always fail with ENOSYS. Some functions are actually named
17262
something starting with __ and the normal name is an alias. */
17263
#if defined __stub_$ac_func || defined __stub___$ac_func
17270
return $ac_func ();
17275
rm -f conftest.$ac_objext conftest$ac_exeext
17276
if { (ac_try="$ac_link"
17277
case "(($ac_try" in
17278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279
*) ac_try_echo=$ac_try;;
17281
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282
$as_echo "$ac_try_echo") >&5
17283
(eval "$ac_link") 2>conftest.er1
17285
grep -v '^ *+' conftest.er1 >conftest.err
17287
cat conftest.err >&5
17288
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289
(exit $ac_status); } && {
17290
test -z "$ac_c_werror_flag" ||
17291
test ! -s conftest.err
17292
} && test -s conftest$ac_exeext && {
17293
test "$cross_compiling" = yes ||
17294
$as_test_x conftest$ac_exeext
17296
eval "$as_ac_var=yes"
17298
$as_echo "$as_me: failed program was:" >&5
17299
sed 's/^/| /' conftest.$ac_ext >&5
17301
eval "$as_ac_var=no"
17304
rm -rf conftest.dSYM
17305
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17306
conftest$ac_exeext conftest.$ac_ext
17308
ac_res=`eval 'as_val=${'$as_ac_var'}
17309
$as_echo "$as_val"'`
17310
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17311
$as_echo "$ac_res" >&6; }
17312
as_val=`eval 'as_val=${'$as_ac_var'}
17313
$as_echo "$as_val"'`
17314
if test "x$as_val" = x""yes; then
17315
cat >>confdefs.h <<_ACEOF
17316
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17319
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
17320
$as_echo_n "checking for _doprnt... " >&6; }
17321
if test "${ac_cv_func__doprnt+set}" = set; then
17322
$as_echo_n "(cached) " >&6
17324
cat >conftest.$ac_ext <<_ACEOF
17327
cat confdefs.h >>conftest.$ac_ext
17328
cat >>conftest.$ac_ext <<_ACEOF
17329
/* end confdefs.h. */
17330
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
17331
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17332
#define _doprnt innocuous__doprnt
17334
/* System header to define __stub macros and hopefully few prototypes,
17335
which can conflict with char _doprnt (); below.
17336
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17337
<limits.h> exists even on freestanding compilers. */
17340
# include <limits.h>
17342
# include <assert.h>
17347
/* Override any GCC internal prototype to avoid an error.
17348
Use char because int might match the return type of a GCC
17349
builtin and then its argument prototype would still apply. */
17354
/* The GNU C library defines this for functions which it implements
17355
to always fail with ENOSYS. Some functions are actually named
17356
something starting with __ and the normal name is an alias. */
17357
#if defined __stub__doprnt || defined __stub____doprnt
17369
rm -f conftest.$ac_objext conftest$ac_exeext
17370
if { (ac_try="$ac_link"
17371
case "(($ac_try" in
17372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373
*) ac_try_echo=$ac_try;;
17375
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17376
$as_echo "$ac_try_echo") >&5
17377
(eval "$ac_link") 2>conftest.er1
17379
grep -v '^ *+' conftest.er1 >conftest.err
17381
cat conftest.err >&5
17382
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383
(exit $ac_status); } && {
17384
test -z "$ac_c_werror_flag" ||
17385
test ! -s conftest.err
17386
} && test -s conftest$ac_exeext && {
17387
test "$cross_compiling" = yes ||
17388
$as_test_x conftest$ac_exeext
17390
ac_cv_func__doprnt=yes
17392
$as_echo "$as_me: failed program was:" >&5
17393
sed 's/^/| /' conftest.$ac_ext >&5
17395
ac_cv_func__doprnt=no
17398
rm -rf conftest.dSYM
17399
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17400
conftest$ac_exeext conftest.$ac_ext
17402
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17403
$as_echo "$ac_cv_func__doprnt" >&6; }
17404
if test "x$ac_cv_func__doprnt" = x""yes; then
17406
cat >>confdefs.h <<\_ACEOF
17407
#define HAVE_DOPRNT 1
17420
for ac_func in gethostname socket snprintf getpagesize
17422
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17423
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17424
$as_echo_n "checking for $ac_func... " >&6; }
17425
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17426
$as_echo_n "(cached) " >&6
17428
cat >conftest.$ac_ext <<_ACEOF
17431
cat confdefs.h >>conftest.$ac_ext
17432
cat >>conftest.$ac_ext <<_ACEOF
17433
/* end confdefs.h. */
17434
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17435
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17436
#define $ac_func innocuous_$ac_func
17438
/* System header to define __stub macros and hopefully few prototypes,
17439
which can conflict with char $ac_func (); below.
17440
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17441
<limits.h> exists even on freestanding compilers. */
17444
# include <limits.h>
17446
# include <assert.h>
17451
/* Override any GCC internal prototype to avoid an error.
17452
Use char because int might match the return type of a GCC
17453
builtin and then its argument prototype would still apply. */
17458
/* The GNU C library defines this for functions which it implements
17459
to always fail with ENOSYS. Some functions are actually named
17460
something starting with __ and the normal name is an alias. */
17461
#if defined __stub_$ac_func || defined __stub___$ac_func
17468
return $ac_func ();
17473
rm -f conftest.$ac_objext conftest$ac_exeext
17474
if { (ac_try="$ac_link"
17475
case "(($ac_try" in
17476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477
*) ac_try_echo=$ac_try;;
17479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17480
$as_echo "$ac_try_echo") >&5
17481
(eval "$ac_link") 2>conftest.er1
17483
grep -v '^ *+' conftest.er1 >conftest.err
17485
cat conftest.err >&5
17486
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487
(exit $ac_status); } && {
17488
test -z "$ac_c_werror_flag" ||
17489
test ! -s conftest.err
17490
} && test -s conftest$ac_exeext && {
17491
test "$cross_compiling" = yes ||
17492
$as_test_x conftest$ac_exeext
17494
eval "$as_ac_var=yes"
17496
$as_echo "$as_me: failed program was:" >&5
17497
sed 's/^/| /' conftest.$ac_ext >&5
17499
eval "$as_ac_var=no"
17502
rm -rf conftest.dSYM
17503
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17504
conftest$ac_exeext conftest.$ac_ext
17506
ac_res=`eval 'as_val=${'$as_ac_var'}
17507
$as_echo "$as_val"'`
17508
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17509
$as_echo "$ac_res" >&6; }
17510
as_val=`eval 'as_val=${'$as_ac_var'}
17511
$as_echo "$as_val"'`
17512
if test "x$as_val" = x""yes; then
17513
cat >>confdefs.h <<_ACEOF
17514
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17522
12807
if test "x${GCC}" = "xyes"; then
17523
12808
MAKEDEP='$(CC) -MM'