2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
3
# Generated by GNU Autoconf 2.67 for gtkboard 0.11pre0.
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7
11
# This configure script is free software; the Free Software Foundation
8
12
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18
23
# is contrary to our usage. Disable this feature.
19
24
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
# Support unset when possible.
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
231
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232
$0: including any error possibly output before this
233
$0: message. Then install a modern shell, or manually run
234
$0: the script under such a shell if you do have one."
240
SHELL=${CONFIG_SHELL-/bin/sh}
242
# Unset more variables known to interfere with behavior of common tools.
243
CLICOLOR_FORCE= GREP_OPTIONS=
244
unset CLICOLOR_FORCE GREP_OPTIONS
246
## --------------------- ##
247
## M4sh Shell Functions. ##
248
## --------------------- ##
251
# Portably unset VAR.
254
{ eval $1=; unset $1;}
258
# as_fn_set_status STATUS
259
# -----------------------
260
# Set $? to STATUS, without forking.
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278
# Create "$as_dir" as a directory, including parents if necessary.
283
-*) as_dir=./$as_dir;;
285
test -d "$as_dir" || eval $as_mkdir_p || {
289
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292
as_dirs="'$as_qdir' $as_dirs"
293
as_dir=`$as_dirname -- "$as_dir" ||
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295
X"$as_dir" : 'X\(//\)[^/]' \| \
296
X"$as_dir" : 'X\(//\)$' \| \
297
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298
$as_echo X"$as_dir" |
299
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316
test -d "$as_dir" && break
318
test -z "$as_dirs" || eval "mkdir $as_dirs"
319
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
# as_fn_append VAR VALUE
324
# ----------------------
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
326
# advantage of any shell optimizations that allow amortized linear growth over
327
# repeated appends, instead of the typical quadratic growth present in naive
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330
eval 'as_fn_append ()
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
345
# must be portable across $(()) and expr.
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354
as_val=`expr "$@" || test $? -eq 1`
359
# as_fn_error STATUS ERROR [LINENO LOG_FD]
360
# ----------------------------------------
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363
# script with STATUS, using 1 if that was 0.
366
as_status=$1; test $as_status -eq 0 && as_status=1
368
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371
$as_echo "$as_me: error: $2" >&2
372
as_fn_exit $as_status
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
376
test "X`expr 00001 : '.*\(...\)'`" = X001; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
383
as_basename=basename
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
394
as_me=`$as_basename -- "$0" ||
67
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
396
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
397
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
sed '/^.*\/\([^/][^/]*\)\/*$/{
79
413
# Avoid depending upon Character Ranges.
80
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
845
1334
if test -n "$ac_init_help"; then
1335
case $ac_init_help in
1336
short | recursive ) echo "Configuration of gtkboard 0.11pre0:";;
849
1340
Optional Features:
1341
--disable-option-checking ignore unrecognized --enable/--with options
850
1342
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851
1343
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852
--disable-dependency-tracking Speeds up one-time builds
853
--enable-dependency-tracking Do not reject slow dependency extractors
1344
--disable-dependency-tracking speeds up one-time build
1345
--enable-dependency-tracking do not reject slow dependency extractors
854
1346
--disable-gtk2 Don't look for GTK2 libraries
855
--disable-gtktest Do not try to compile and run a test GTK program
856
1347
--disable-sdl Don't look for the SDL library
857
1348
--enable-gnome Turn on gnome
860
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)
863
--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
865
1350
Some influential environment variables:
866
1351
CC C compiler command
867
1352
CFLAGS C compiler flags
868
1353
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869
1354
nonstandard directory <lib dir>
870
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871
headers in a nonstandard directory <include dir>
1355
LIBS libraries to pass to the linker, e.g. -l<library>
1356
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1357
you have headers in a nonstandard directory <include dir>
1358
PKG_CONFIG path to pkg-config utility
1360
directories to add to pkg-config's search path
1362
path overriding pkg-config's built-in search path
1363
GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1364
GTK_LIBS linker flags for GTK, overriding pkg-config
1366
C compiler flags for GNOME, overriding pkg-config
1367
GNOME_LIBS linker flags for GNOME, overriding pkg-config
872
1368
CPP C preprocessor
874
1370
Use these variables to override the choices made by `configure' or to help
875
1371
it to find libraries and programs with nonstandard names/locations.
1373
Report bugs to the package provider.
880
1378
if test "$ac_init_help" = "recursive"; then
881
1379
# If there are subdirs, report their specific --help.
883
1380
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884
test -d $ac_dir || continue
1381
test -d "$ac_dir" ||
1382
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
887
if test "$ac_dir" != .; then
888
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889
# A "../" for each directory in $ac_dir_suffix.
890
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892
ac_dir_suffix= ac_top_builddir=
1387
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1390
# A ".." for each directory in $ac_dir_suffix.
1391
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1392
case $ac_top_builddir_sub in
1393
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397
ac_abs_top_builddir=$ac_pwd
1398
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399
# for backward compatibility:
1400
ac_top_builddir=$ac_top_build_prefix
896
.) # No --srcdir option. We are building in place.
1403
.) # We are building in place.
898
if test -z "$ac_top_builddir"; then
901
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903
[\\/]* | ?:[\\/]* ) # Absolute path.
1405
ac_top_srcdir=$ac_top_builddir_sub
1406
ac_abs_top_srcdir=$ac_pwd ;;
1407
[\\/]* | ?:[\\/]* ) # Absolute name.
904
1408
ac_srcdir=$srcdir$ac_dir_suffix;
905
ac_top_srcdir=$srcdir ;;
907
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1409
ac_top_srcdir=$srcdir
1410
ac_abs_top_srcdir=$srcdir ;;
1412
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413
ac_top_srcdir=$ac_top_build_prefix$srcdir
1414
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
910
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
912
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1416
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
918
# Check for guested configure; otherwise get Cygnus style configure.
919
if test -f $ac_srcdir/configure.gnu; then
921
$SHELL $ac_srcdir/configure.gnu --help=recursive
922
elif test -f $ac_srcdir/configure; then
924
$SHELL $ac_srcdir/configure --help=recursive
925
elif test -f $ac_srcdir/configure.ac ||
926
test -f $ac_srcdir/configure.in; then
1418
cd "$ac_dir" || { ac_status=$?; continue; }
1419
# Check for guested configure.
1420
if test -f "$ac_srcdir/configure.gnu"; then
1422
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423
elif test -f "$ac_srcdir/configure"; then
1425
$SHELL "$ac_srcdir/configure" --help=recursive
930
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429
cd "$ac_pwd" || { ac_status=$?; break; }
936
test -n "$ac_init_help" && exit 0
1433
test -n "$ac_init_help" && exit $ac_status
937
1434
if $ac_init_version; then
1436
gtkboard configure 0.11pre0
1437
generated by GNU Autoconf 2.67
940
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
941
Free Software Foundation, Inc.
1439
Copyright (C) 2010 Free Software Foundation, Inc.
942
1440
This configure script is free software; the Free Software Foundation
943
1441
gives unlimited permission to copy, distribute and modify it.
1446
## ------------------------ ##
1447
## Autoconf initialization. ##
1448
## ------------------------ ##
1450
# ac_fn_c_try_compile LINENO
1451
# --------------------------
1452
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1453
ac_fn_c_try_compile ()
1455
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456
rm -f conftest.$ac_objext
1457
if { { ac_try="$ac_compile"
1459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460
*) ac_try_echo=$ac_try;;
1462
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463
$as_echo "$ac_try_echo"; } >&5
1464
(eval "$ac_compile") 2>conftest.err
1466
if test -s conftest.err; then
1467
grep -v '^ *+' conftest.err >conftest.er1
1468
cat conftest.er1 >&5
1469
mv -f conftest.er1 conftest.err
1471
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472
test $ac_status = 0; } && {
1473
test -z "$ac_c_werror_flag" ||
1474
test ! -s conftest.err
1475
} && test -s conftest.$ac_objext; then :
1478
$as_echo "$as_me: failed program was:" >&5
1479
sed 's/^/| /' conftest.$ac_ext >&5
1483
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1484
as_fn_set_status $ac_retval
1486
} # ac_fn_c_try_compile
1488
# ac_fn_c_try_link LINENO
1489
# -----------------------
1490
# Try to link conftest.$ac_ext, and return whether this succeeded.
1493
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494
rm -f conftest.$ac_objext conftest$ac_exeext
1495
if { { ac_try="$ac_link"
1497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498
*) ac_try_echo=$ac_try;;
1500
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501
$as_echo "$ac_try_echo"; } >&5
1502
(eval "$ac_link") 2>conftest.err
1504
if test -s conftest.err; then
1505
grep -v '^ *+' conftest.err >conftest.er1
1506
cat conftest.er1 >&5
1507
mv -f conftest.er1 conftest.err
1509
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510
test $ac_status = 0; } && {
1511
test -z "$ac_c_werror_flag" ||
1512
test ! -s conftest.err
1513
} && test -s conftest$ac_exeext && {
1514
test "$cross_compiling" = yes ||
1515
$as_test_x conftest$ac_exeext
1519
$as_echo "$as_me: failed program was:" >&5
1520
sed 's/^/| /' conftest.$ac_ext >&5
1524
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1525
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1526
# interfere with the next link command; also delete a directory that is
1527
# left behind by Apple's compiler. We do this before executing the actions.
1528
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1529
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1530
as_fn_set_status $ac_retval
1532
} # ac_fn_c_try_link
1534
# ac_fn_c_try_cpp LINENO
1535
# ----------------------
1536
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540
if { { ac_try="$ac_cpp conftest.$ac_ext"
1542
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543
*) ac_try_echo=$ac_try;;
1545
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546
$as_echo "$ac_try_echo"; } >&5
1547
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549
if test -s conftest.err; then
1550
grep -v '^ *+' conftest.err >conftest.er1
1551
cat conftest.er1 >&5
1552
mv -f conftest.er1 conftest.err
1554
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555
test $ac_status = 0; } > conftest.i && {
1556
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1557
test ! -s conftest.err
1561
$as_echo "$as_me: failed program was:" >&5
1562
sed 's/^/| /' conftest.$ac_ext >&5
1566
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567
as_fn_set_status $ac_retval
1571
# ac_fn_c_try_run LINENO
1572
# ----------------------
1573
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1574
# that executables *can* be run.
1577
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578
if { { ac_try="$ac_link"
1580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581
*) ac_try_echo=$ac_try;;
1583
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584
$as_echo "$ac_try_echo"; } >&5
1585
(eval "$ac_link") 2>&5
1587
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1589
{ { case "(($ac_try" in
1590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591
*) ac_try_echo=$ac_try;;
1593
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594
$as_echo "$ac_try_echo"; } >&5
1595
(eval "$ac_try") 2>&5
1597
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598
test $ac_status = 0; }; }; then :
1601
$as_echo "$as_me: program exited with status $ac_status" >&5
1602
$as_echo "$as_me: failed program was:" >&5
1603
sed 's/^/| /' conftest.$ac_ext >&5
1605
ac_retval=$ac_status
1607
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609
as_fn_set_status $ac_retval
1613
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1614
# -------------------------------------------------------
1615
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1616
# the include files in INCLUDES and setting the cache variable VAR
1618
ac_fn_c_check_header_mongrel ()
1620
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621
if eval "test \"\${$3+set}\"" = set; then :
1622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623
$as_echo_n "checking for $2... " >&6; }
1624
if eval "test \"\${$3+set}\"" = set; then :
1625
$as_echo_n "(cached) " >&6
1628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629
$as_echo "$ac_res" >&6; }
1631
# Is the header compilable?
1632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1633
$as_echo_n "checking $2 usability... " >&6; }
1634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635
/* end confdefs.h. */
1639
if ac_fn_c_try_compile "$LINENO"; then :
1640
ac_header_compiler=yes
1642
ac_header_compiler=no
1644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1646
$as_echo "$ac_header_compiler" >&6; }
1648
# Is the header present?
1649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1650
$as_echo_n "checking $2 presence... " >&6; }
1651
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652
/* end confdefs.h. */
1655
if ac_fn_c_try_cpp "$LINENO"; then :
1656
ac_header_preproc=yes
1658
ac_header_preproc=no
1660
rm -f conftest.err conftest.i conftest.$ac_ext
1661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1662
$as_echo "$ac_header_preproc" >&6; }
1664
# So? What about this header?
1665
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1668
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1669
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1674
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1675
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1676
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1677
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1678
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1679
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1680
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1681
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686
$as_echo_n "checking for $2... " >&6; }
1687
if eval "test \"\${$3+set}\"" = set; then :
1688
$as_echo_n "(cached) " >&6
1690
eval "$3=\$ac_header_compiler"
1693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694
$as_echo "$ac_res" >&6; }
1696
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698
} # ac_fn_c_check_header_mongrel
1700
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701
# -------------------------------------------------------
1702
# Tests whether HEADER exists and can be compiled using the include files in
1703
# INCLUDES, setting the cache variable VAR accordingly.
1704
ac_fn_c_check_header_compile ()
1706
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708
$as_echo_n "checking for $2... " >&6; }
1709
if eval "test \"\${$3+set}\"" = set; then :
1710
$as_echo_n "(cached) " >&6
1712
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713
/* end confdefs.h. */
1717
if ac_fn_c_try_compile "$LINENO"; then :
1722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726
$as_echo "$ac_res" >&6; }
1727
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729
} # ac_fn_c_check_header_compile
1731
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1732
# -------------------------------------------
1733
# Tests whether TYPE exists after having included INCLUDES, setting cache
1734
# variable VAR accordingly.
1735
ac_fn_c_check_type ()
1737
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739
$as_echo_n "checking for $2... " >&6; }
1740
if eval "test \"\${$3+set}\"" = set; then :
1741
$as_echo_n "(cached) " >&6
1744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745
/* end confdefs.h. */
1756
if ac_fn_c_try_compile "$LINENO"; then :
1757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758
/* end confdefs.h. */
1769
if ac_fn_c_try_compile "$LINENO"; then :
1774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780
$as_echo "$ac_res" >&6; }
1781
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783
} # ac_fn_c_check_type
1785
# ac_fn_c_check_func LINENO FUNC VAR
1786
# ----------------------------------
1787
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1788
ac_fn_c_check_func ()
1790
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792
$as_echo_n "checking for $2... " >&6; }
1793
if eval "test \"\${$3+set}\"" = set; then :
1794
$as_echo_n "(cached) " >&6
1796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797
/* end confdefs.h. */
1798
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800
#define $2 innocuous_$2
1802
/* System header to define __stub macros and hopefully few prototypes,
1803
which can conflict with char $2 (); below.
1804
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805
<limits.h> exists even on freestanding compilers. */
1808
# include <limits.h>
1810
# include <assert.h>
1815
/* Override any GCC internal prototype to avoid an error.
1816
Use char because int might match the return type of a GCC
1817
builtin and then its argument prototype would still apply. */
1822
/* The GNU C library defines this for functions which it implements
1823
to always fail with ENOSYS. Some functions are actually named
1824
something starting with __ and the normal name is an alias. */
1825
#if defined __stub_$2 || defined __stub___$2
1837
if ac_fn_c_try_link "$LINENO"; then :
1842
rm -f core conftest.err conftest.$ac_objext \
1843
conftest$ac_exeext 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_func
1851
cat >config.log <<_ACEOF
949
1852
This file contains any messages produced by compilers while
950
1853
running configure, to aid debugging if configure makes a mistake.
952
It was created by $as_me, which was
953
generated by GNU Autoconf 2.57. Invocation command line was
1855
It was created by gtkboard $as_me 0.11pre0, which was
1856
generated by GNU Autoconf 2.67. Invocation command line was
2791
3842
IFS=$as_save_IFS
2792
3843
test -z "$as_dir" && as_dir=.
2793
for ac_exec_ext in '' $ac_executable_extensions; do
2794
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844
for ac_exec_ext in '' $ac_executable_extensions; do
3845
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795
3846
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2796
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
2806
3857
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2808
3858
if test -n "$PKG_CONFIG"; then
2809
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2810
echo "${ECHO_T}$PKG_CONFIG" >&6
2812
echo "$as_me:$LINENO: result: no" >&5
2813
echo "${ECHO_T}no" >&6
3859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3860
$as_echo "$PKG_CONFIG" >&6; }
3862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863
$as_echo "no" >&6; }
3868
if test -z "$ac_cv_path_PKG_CONFIG"; then
3869
ac_pt_PKG_CONFIG=$PKG_CONFIG
3870
# Extract the first word of "pkg-config", so it can be a program name with args.
3871
set dummy pkg-config; ac_word=$2
3872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873
$as_echo_n "checking for $ac_word... " >&6; }
3874
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
3875
$as_echo_n "(cached) " >&6
3877
case $ac_pt_PKG_CONFIG in
3879
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886
test -z "$as_dir" && as_dir=.
3887
for ac_exec_ext in '' $ac_executable_extensions; do
3888
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3890
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818
if test "$PKG_CONFIG" = "no" ; then
2819
echo "*** The pkg-config script could not be found. Make sure it is"
2820
echo "*** in your path, or set the PKG_CONFIG environment variable"
2821
echo "*** to the full path to pkg-config."
2822
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3900
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3901
if test -n "$ac_pt_PKG_CONFIG"; then
3902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3903
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906
$as_echo "no" >&6; }
3909
if test "x$ac_pt_PKG_CONFIG" = x; then
2824
PKG_CONFIG_MIN_VERSION=0.9.0
2825
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2826
echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.0" >&5
2827
echo $ECHO_N "checking for gtk+-2.0 >= 2.0.0... $ECHO_C" >&6
2829
if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.0" ; then
2830
echo "$as_me:$LINENO: result: yes" >&5
2831
echo "${ECHO_T}yes" >&6
2834
echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
2835
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
2836
GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0"`
2837
echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
2838
echo "${ECHO_T}$GTK_CFLAGS" >&6
2840
echo "$as_me:$LINENO: checking GTK_LIBS" >&5
2841
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
2842
GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0"`
2843
echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
2844
echo "${ECHO_T}$GTK_LIBS" >&6
3912
case $cross_compiling:$ac_tool_warned in
3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916
ac_tool_warned=yes ;;
3918
PKG_CONFIG=$ac_pt_PKG_CONFIG
3921
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3925
if test -n "$PKG_CONFIG"; then
3926
_pkg_min_version=0.9.0
3927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3928
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3929
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931
$as_echo "yes" >&6; }
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934
$as_echo "no" >&6; }
3940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
3941
$as_echo_n "checking for GTK... " >&6; }
3943
if test -n "$GTK_CFLAGS"; then
3944
pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
3945
elif test -n "$PKG_CONFIG"; then
3946
if test -n "$PKG_CONFIG" && \
3947
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\""; } >&5
3948
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
3950
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951
test $ac_status = 0; }; then
3952
pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0" 2>/dev/null`
3959
if test -n "$GTK_LIBS"; then
3960
pkg_cv_GTK_LIBS="$GTK_LIBS"
3961
elif test -n "$PKG_CONFIG"; then
3962
if test -n "$PKG_CONFIG" && \
3963
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\""; } >&5
3964
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
3966
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967
test $ac_status = 0; }; then
3968
pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0" 2>/dev/null`
3978
if test $pkg_failed = yes; then
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980
$as_echo "no" >&6; }
3982
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3983
_pkg_short_errors_supported=yes
3985
_pkg_short_errors_supported=no
3987
if test $_pkg_short_errors_supported = yes; then
3988
GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.0.0" 2>&1`
2848
## If we have a custom action on failure, don't print errors, but
2849
## do set a variable so people can do so.
2850
GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
3990
GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.0.0" 2>&1`
2857
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
2858
echo "*** See http://www.freedesktop.org/software/pkgconfig"
2862
if test $succeeded = yes; then
2870
if test $found_gtk2 = 0; then
2873
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2874
if test "${with_gtk_prefix+set}" = set; then
2875
withval="$with_gtk_prefix"
2876
gtk_config_prefix="$withval"
2878
gtk_config_prefix=""
2881
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2882
if test "${with_gtk_exec_prefix+set}" = set; then
2883
withval="$with_gtk_exec_prefix"
2884
gtk_config_exec_prefix="$withval"
2886
gtk_config_exec_prefix=""
2888
# Check whether --enable-gtktest or --disable-gtktest was given.
2889
if test "${enable_gtktest+set}" = set; then
2890
enableval="$enable_gtktest"
2900
gtk_config_args="$gtk_config_args gthread"
2905
if test x$gtk_config_exec_prefix != x ; then
2906
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2907
if test x${GTK_CONFIG+set} != xset ; then
2908
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2911
if test x$gtk_config_prefix != x ; then
2912
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2913
if test x${GTK_CONFIG+set} != xset ; then
2914
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2918
# Extract the first word of "gtk-config", so it can be a program name with args.
2919
set dummy gtk-config; ac_word=$2
2920
echo "$as_me:$LINENO: checking for $ac_word" >&5
2921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2922
if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
2923
echo $ECHO_N "(cached) $ECHO_C" >&6
2927
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934
test -z "$as_dir" && as_dir=.
2935
for ac_exec_ext in '' $ac_executable_extensions; do
2936
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937
ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2948
GTK_CONFIG=$ac_cv_path_GTK_CONFIG
2950
if test -n "$GTK_CONFIG"; then
2951
echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
2952
echo "${ECHO_T}$GTK_CONFIG" >&6
2954
echo "$as_me:$LINENO: result: no" >&5
2955
echo "${ECHO_T}no" >&6
2958
min_gtk_version=1.2.3
2959
echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
2960
echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
2962
if test "$GTK_CONFIG" = "no" ; then
2965
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2966
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2967
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2968
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2969
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2970
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2971
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2972
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2973
if test "x$enable_gtktest" = "xyes" ; then
2974
ac_save_CFLAGS="$CFLAGS"
2975
ac_save_LIBS="$LIBS"
2976
CFLAGS="$CFLAGS $GTK_CFLAGS"
2977
LIBS="$GTK_LIBS $LIBS"
2979
if test "$cross_compiling" = yes; then
2980
echo $ac_n "cross compiling; assumed OK... $ac_c"
2982
cat >conftest.$ac_ext <<_ACEOF
2983
#line $LINENO "configure"
2986
cat confdefs.h >>conftest.$ac_ext
2987
cat >>conftest.$ac_ext <<_ACEOF
2988
/* end confdefs.h. */
2990
#include <gtk/gtk.h>
2997
int major, minor, micro;
3000
system ("touch conf.gtktest");
3002
/* HP/UX 9 (%@#!) writes to sscanf strings */
3003
tmp_version = g_strdup("$min_gtk_version");
3004
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3005
printf("%s, bad version string\n", "$min_gtk_version");
3009
if ((gtk_major_version != $gtk_config_major_version) ||
3010
(gtk_minor_version != $gtk_config_minor_version) ||
3011
(gtk_micro_version != $gtk_config_micro_version))
3013
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
3014
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
3015
gtk_major_version, gtk_minor_version, gtk_micro_version);
3016
printf ("*** was found! If gtk-config was correct, then it is best\n");
3017
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
3018
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3019
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3020
printf("*** required on your system.\n");
3021
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
3022
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
3023
printf("*** before re-running configure\n");
3025
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
3026
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
3027
(gtk_minor_version != GTK_MINOR_VERSION) ||
3028
(gtk_micro_version != GTK_MICRO_VERSION))
3030
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
3031
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
3032
printf("*** library (version %d.%d.%d)\n",
3033
gtk_major_version, gtk_minor_version, gtk_micro_version);
3035
#endif /* defined (GTK_MAJOR_VERSION) ... */
3038
if ((gtk_major_version > major) ||
3039
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
3040
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
3046
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
3047
gtk_major_version, gtk_minor_version, gtk_micro_version);
3048
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
3049
major, minor, micro);
3050
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
3052
printf("*** If you have already installed a sufficiently new version, this error\n");
3053
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
3054
printf("*** being found. The easiest way to fix this is to remove the old version\n");
3055
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
3056
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
3057
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3058
printf("*** so that the correct libraries are found at run-time))\n");
3065
rm -f conftest$ac_exeext
3066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3067
(eval $ac_link) 2>&5
3069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075
(exit $ac_status); }; }; then
3078
echo "$as_me: program exited with status $ac_status" >&5
3079
echo "$as_me: failed program was:" >&5
3080
sed 's/^/| /' conftest.$ac_ext >&5
3085
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3087
CFLAGS="$ac_save_CFLAGS"
3088
LIBS="$ac_save_LIBS"
3091
if test "x$no_gtk" = x ; then
3092
echo "$as_me:$LINENO: result: yes" >&5
3093
echo "${ECHO_T}yes" >&6
3096
echo "$as_me:$LINENO: result: no" >&5
3097
echo "${ECHO_T}no" >&6
3098
if test "$GTK_CONFIG" = "no" ; then
3099
echo "*** The gtk-config script installed by GTK could not be found"
3100
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
3101
echo "*** your path, or set the GTK_CONFIG environment variable to the"
3102
echo "*** full path to gtk-config."
3104
if test -f conf.gtktest ; then
3107
echo "*** Could not run GTK test program, checking why..."
3108
CFLAGS="$CFLAGS $GTK_CFLAGS"
3109
LIBS="$LIBS $GTK_LIBS"
3110
cat >conftest.$ac_ext <<_ACEOF
3111
#line $LINENO "configure"
3114
cat confdefs.h >>conftest.$ac_ext
3115
cat >>conftest.$ac_ext <<_ACEOF
3116
/* end confdefs.h. */
3118
#include <gtk/gtk.h>
3124
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
3129
rm -f conftest.$ac_objext conftest$ac_exeext
3130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131
(eval $ac_link) 2>&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); } &&
3135
{ ac_try='test -s conftest$ac_exeext'
3136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
(exit $ac_status); }; }; then
3141
echo "*** The test program compiled, but did not run. This usually means"
3142
echo "*** that the run-time linker is not finding GTK or finding the wrong"
3143
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
3144
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3145
echo "*** to the installed location Also, make sure you have run ldconfig if that"
3146
echo "*** is required on your system"
3148
echo "*** If you have an old version installed, it is best to remove it, although"
3149
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3151
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3152
echo "*** came with the system with the command"
3154
echo "*** rpm --erase --nodeps gtk gtk-devel"
3156
echo "$as_me: failed program was:" >&5
3157
sed 's/^/| /' conftest.$ac_ext >&5
3159
echo "*** The test program failed to compile or link. See the file config.log for the"
3160
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
3161
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
3162
echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
3164
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3165
CFLAGS="$ac_save_CFLAGS"
3166
LIBS="$ac_save_LIBS"
3171
{ { echo "$as_me:$LINENO: error: gtkboard needs GTK 1.2.3 or higher" >&5
3172
echo "$as_me: error: gtkboard needs GTK 1.2.3 or higher" >&2;}
3173
{ (exit 1); exit 1; }; }
3182
# Check whether --enable-sdl or --disable-sdl was given.
3183
if test "${enable_sdl+set}" = set; then
3184
enableval="$enable_sdl"
3185
enable_sdl=$enableval
3992
# Put the nasty error message in config.log where it belongs
3993
echo "$GTK_PKG_ERRORS" >&5
3996
elif test $pkg_failed = untried; then
3997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998
$as_echo "no" >&6; }
4001
GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
4002
GTK_LIBS=$pkg_cv_GTK_LIBS
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4004
$as_echo "yes" >&6; }
4010
# Check whether --enable-sdl was given.
4011
if test "${enable_sdl+set}" = set; then :
4012
enableval=$enable_sdl; enable_sdl=$enableval
3187
4014
enable_sdl="yes"
3190
4018
if test "$enable_sdl" = "yes" ; then
3191
4019
# SDL_VERSION=1.2.0
4103
4695
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4104
4696
const int foo = 10;
4699
return !cs[0] && !zero.x;
4112
rm -f conftest.$ac_objext
4113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114
(eval $ac_compile) 2>&5
4116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117
(exit $ac_status); } &&
4118
{ ac_try='test -s conftest.$ac_objext'
4119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123
(exit $ac_status); }; }; then
4706
if ac_fn_c_try_compile "$LINENO"; then :
4124
4707
ac_cv_c_const=yes
4126
echo "$as_me: failed program was:" >&5
4127
sed 's/^/| /' conftest.$ac_ext >&5
4131
rm -f conftest.$ac_objext conftest.$ac_ext
4133
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4134
echo "${ECHO_T}$ac_cv_c_const" >&6
4711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4714
$as_echo "$ac_cv_c_const" >&6; }
4135
4715
if test $ac_cv_c_const = no; then
4137
cat >>confdefs.h <<\_ACEOF
4144
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4145
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4146
if test "${ac_cv_type_signal+set}" = set; then
4147
echo $ECHO_N "(cached) $ECHO_C" >&6
4149
cat >conftest.$ac_ext <<_ACEOF
4150
#line $LINENO "configure"
4153
cat confdefs.h >>conftest.$ac_ext
4154
cat >>conftest.$ac_ext <<_ACEOF
4155
/* end confdefs.h. */
4156
#include <sys/types.h>
4162
extern "C" void (*signal (int, void (*)(int)))(int);
4164
void (*signal ()) ();
4175
rm -f conftest.$ac_objext
4176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177
(eval $ac_compile) 2>&5
4179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
(exit $ac_status); } &&
4181
{ ac_try='test -s conftest.$ac_objext'
4182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186
(exit $ac_status); }; }; then
4187
ac_cv_type_signal=void
4189
echo "$as_me: failed program was:" >&5
4190
sed 's/^/| /' conftest.$ac_ext >&5
4192
ac_cv_type_signal=int
4194
rm -f conftest.$ac_objext conftest.$ac_ext
4196
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4197
echo "${ECHO_T}$ac_cv_type_signal" >&6
4199
cat >>confdefs.h <<_ACEOF
4200
#define RETSIGTYPE $ac_cv_type_signal
4206
for ac_func in mkdir strtol
4208
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4209
echo "$as_me:$LINENO: checking for $ac_func" >&5
4210
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4211
if eval "test \"\${$as_ac_var+set}\" = set"; then
4212
echo $ECHO_N "(cached) $ECHO_C" >&6
4214
cat >conftest.$ac_ext <<_ACEOF
4215
#line $LINENO "configure"
4218
cat confdefs.h >>conftest.$ac_ext
4219
cat >>conftest.$ac_ext <<_ACEOF
4220
/* end confdefs.h. */
4221
/* System header to define __stub macros and hopefully few prototypes,
4222
which can conflict with char $ac_func (); below.
4223
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4224
<limits.h> exists even on freestanding compilers. */
4226
# include <limits.h>
4228
# include <assert.h>
4230
/* Override any gcc2 internal prototype to avoid an error. */
4235
/* We use char because int might match the return type of a gcc2
4236
builtin and then its argument prototype would still apply. */
4238
/* The GNU C library defines this for functions which it implements
4239
to always fail with ENOSYS. Some functions are actually named
4240
something starting with __ and the normal name is an alias. */
4241
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4244
char (*f) () = $ac_func;
4253
return f != $ac_func;
4258
rm -f conftest.$ac_objext conftest$ac_exeext
4259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4260
(eval $ac_link) 2>&5
4262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263
(exit $ac_status); } &&
4264
{ ac_try='test -s conftest$ac_exeext'
4265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
(exit $ac_status); }; }; then
4270
eval "$as_ac_var=yes"
4272
echo "$as_me: failed program was:" >&5
4273
sed 's/^/| /' conftest.$ac_ext >&5
4275
eval "$as_ac_var=no"
4277
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4279
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4280
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4281
if test `eval echo '${'$as_ac_var'}'` = yes; then
4282
cat >>confdefs.h <<_ACEOF
4283
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4290
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sounds/Makefile pixmaps/Makefile"
4717
$as_echo "#define const /**/" >>confdefs.h
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4722
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4723
if test "${ac_cv_header_stdbool_h+set}" = set; then :
4724
$as_echo_n "(cached) " >&6
4726
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727
/* end confdefs.h. */
4729
#include <stdbool.h>
4731
"error: bool is not defined"
4734
"error: false is not defined"
4737
"error: false is not 0"
4740
"error: true is not defined"
4743
"error: true is not 1"
4745
#ifndef __bool_true_false_are_defined
4746
"error: __bool_true_false_are_defined is not defined"
4749
struct s { _Bool s: 1; _Bool t; } s;
4751
char a[true == 1 ? 1 : -1];
4752
char b[false == 0 ? 1 : -1];
4753
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4754
char d[(bool) 0.5 == true ? 1 : -1];
4756
char f[(_Bool) 0.0 == false ? 1 : -1];
4758
char h[sizeof (_Bool)];
4760
enum { j = false, k = true, l = false * true, m = true * 256 };
4761
/* The following fails for
4762
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4764
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4765
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4766
# if defined __xlc__ || defined __GNUC__
4767
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4768
reported by James Lemley on 2005-10-05; see
4769
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4770
This test is not quite right, since xlc is allowed to
4771
reject this program, as the initializer for xlcbug is
4772
not one of the forms that C requires support for.
4773
However, doing the test right would require a runtime
4774
test, and that would make cross-compilation harder.
4775
Let us hope that IBM fixes the xlc bug, and also adds
4776
support for this kind of constant expression. In the
4777
meantime, this test will reject xlc, which is OK, since
4778
our stdbool.h substitute should suffice. We also test
4779
this with GCC, where it should work, to detect more
4780
quickly whether someone messes up the test in the
4782
char digs[] = "0123456789";
4783
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4785
/* Catch a bug in an HP-UX C compiler. See
4786
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4787
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4798
/* Refer to every declared value, to avoid compiler optimizations. */
4799
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4800
+ !m + !n + !o + !p + !q + !pq);
4806
if ac_fn_c_try_compile "$LINENO"; then :
4807
ac_cv_header_stdbool_h=yes
4809
ac_cv_header_stdbool_h=no
4811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4814
$as_echo "$ac_cv_header_stdbool_h" >&6; }
4815
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4816
if test "x$ac_cv_type__Bool" = x""yes; then :
4818
cat >>confdefs.h <<_ACEOF
4819
#define HAVE__BOOL 1
4825
if test $ac_cv_header_stdbool_h = yes; then
4827
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4832
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4833
if test "x$ac_cv_type_pid_t" = x""yes; then :
4837
cat >>confdefs.h <<_ACEOF
4843
for ac_header in vfork.h
4845
ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4846
if test "x$ac_cv_header_vfork_h" = x""yes; then :
4847
cat >>confdefs.h <<_ACEOF
4848
#define HAVE_VFORK_H 1
4855
for ac_func in fork vfork
4857
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4858
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4859
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4860
cat >>confdefs.h <<_ACEOF
4861
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4867
if test "x$ac_cv_func_fork" = xyes; then
4868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4869
$as_echo_n "checking for working fork... " >&6; }
4870
if test "${ac_cv_func_fork_works+set}" = set; then :
4871
$as_echo_n "(cached) " >&6
4873
if test "$cross_compiling" = yes; then :
4874
ac_cv_func_fork_works=cross
4876
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877
/* end confdefs.h. */
4878
$ac_includes_default
4883
/* By Ruediger Kuhlmann. */
4890
if ac_fn_c_try_run "$LINENO"; then :
4891
ac_cv_func_fork_works=yes
4893
ac_cv_func_fork_works=no
4895
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4896
conftest.$ac_objext conftest.beam conftest.$ac_ext
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4901
$as_echo "$ac_cv_func_fork_works" >&6; }
4904
ac_cv_func_fork_works=$ac_cv_func_fork
4906
if test "x$ac_cv_func_fork_works" = xcross; then
4908
*-*-amigaos* | *-*-msdosdjgpp*)
4909
# Override, as these systems have only a dummy fork() stub
4910
ac_cv_func_fork_works=no
4913
ac_cv_func_fork_works=yes
4916
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4917
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4919
ac_cv_func_vfork_works=$ac_cv_func_vfork
4920
if test "x$ac_cv_func_vfork" = xyes; then
4921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4922
$as_echo_n "checking for working vfork... " >&6; }
4923
if test "${ac_cv_func_vfork_works+set}" = set; then :
4924
$as_echo_n "(cached) " >&6
4926
if test "$cross_compiling" = yes; then :
4927
ac_cv_func_vfork_works=cross
4929
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930
/* end confdefs.h. */
4931
/* Thanks to Paul Eggert for this test. */
4932
$ac_includes_default
4933
#include <sys/wait.h>
4937
/* On some sparc systems, changes by the child to local and incoming
4938
argument registers are propagated back to the parent. The compiler
4939
is told about this with #include <vfork.h>, but some compilers
4940
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4941
static variable whose address is put into a register that is
4942
clobbered by the vfork. */
4945
sparc_address_test (int arg)
4947
sparc_address_test (arg) int arg;
4968
pid_t parent = getpid ();
4971
sparc_address_test (0);
4976
/* Here is another test for sparc vfork register problems. This
4977
test uses lots of local variables, at least as many local
4978
variables as main has allocated so far including compiler
4979
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4980
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4981
reuse the register of parent for one of the local variables,
4982
since it will think that parent can't possibly be used any more
4983
in this routine. Assigning to the local variable will thus
4984
munge parent in the parent process. */
4986
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4987
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4988
/* Convince the compiler that p..p7 are live; otherwise, it might
4989
use the same hardware register for all 8 local variables. */
4990
if (p != p1 || p != p2 || p != p3 || p != p4
4991
|| p != p5 || p != p6 || p != p7)
4994
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4995
from child file descriptors. If the child closes a descriptor
4996
before it execs or exits, this munges the parent's descriptor
4997
as well. Test for this by closing stdout in the child. */
4998
_exit(close(fileno(stdout)) != 0);
5003
while (wait(&status) != child)
5006
/* Was there some problem with vforking? */
5009
/* Did the child fail? (This shouldn't happen.) */
5012
/* Did the vfork/compiler bug occur? */
5013
|| parent != getpid()
5015
/* Did the file descriptor bug occur? */
5016
|| fstat(fileno(stdout), &st) != 0
5021
if ac_fn_c_try_run "$LINENO"; then :
5022
ac_cv_func_vfork_works=yes
5024
ac_cv_func_vfork_works=no
5026
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5027
conftest.$ac_objext conftest.beam conftest.$ac_ext
5031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5032
$as_echo "$ac_cv_func_vfork_works" >&6; }
5035
if test "x$ac_cv_func_fork_works" = xcross; then
5036
ac_cv_func_vfork_works=$ac_cv_func_vfork
5037
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5038
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5041
if test "x$ac_cv_func_vfork_works" = xyes; then
5043
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5047
$as_echo "#define vfork fork" >>confdefs.h
5050
if test "x$ac_cv_func_fork_works" = xyes; then
5052
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5056
for ac_header in stdlib.h
5058
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5059
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5060
cat >>confdefs.h <<_ACEOF
5061
#define HAVE_STDLIB_H 1
5068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5069
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5070
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
5071
$as_echo_n "(cached) " >&6
5073
if test "$cross_compiling" = yes; then :
5074
ac_cv_func_malloc_0_nonnull=no
5076
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077
/* end confdefs.h. */
5078
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5079
# include <stdlib.h>
5087
return ! malloc (0);
5092
if ac_fn_c_try_run "$LINENO"; then :
5093
ac_cv_func_malloc_0_nonnull=yes
5095
ac_cv_func_malloc_0_nonnull=no
5097
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5098
conftest.$ac_objext conftest.beam conftest.$ac_ext
5102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5103
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5104
if test $ac_cv_func_malloc_0_nonnull = yes; then :
5106
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5109
$as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5111
case " $LIBOBJS " in
5112
*" malloc.$ac_objext "* ) ;;
5113
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5118
$as_echo "#define malloc rpl_malloc" >>confdefs.h
5123
for ac_func in getcwd memset mkdir sqrt strcasecmp strncasecmp strpbrk strstr strtol
5125
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5126
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5127
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5128
cat >>confdefs.h <<_ACEOF
5129
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5136
ac_config_files="$ac_config_files Makefile doc/Makefile pixmaps/Makefile sounds/Makefile src/Makefile"
4291
5138
cat >confcache <<\_ACEOF
4292
5139
# This file is a shell script that caches the results of configure
4293
5140
# tests run on this system so they can be shared between configure
4862
5882
# Have a temporary directory for convenience. Make it in the build tree
4863
# simply because there is no reason to put it here, and in addition,
5883
# simply because there is no reason against having it here, and in addition,
4864
5884
# creating and moving files from /tmp can sometimes cause problems.
4865
# Create a temporary directory, and hook for its removal unless debugging.
5885
# Hook for its removal unless debugging.
5886
# Note that there is a small window in which the directory will not be cleaned:
5887
# after its creation but before its name has been assigned to `$tmp'.
4868
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4869
trap '{ (exit 1); exit 1; }' 1 2 13 15
5891
trap 'exit_status=$?
5892
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5894
trap 'as_fn_exit 1' 1 2 13 15
4872
5896
# Create a (secure) tmp directory for tmp files.
4875
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5899
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4876
5900
test -n "$tmp" && test -d "$tmp"
4879
tmp=./confstat$$-$RANDOM
4880
(umask 077 && mkdir $tmp)
5903
tmp=./conf$$-$RANDOM
5904
(umask 077 && mkdir "$tmp")
5905
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5907
# Set up the scripts for CONFIG_FILES section.
5908
# No need to generate them if there are no CONFIG_FILES.
5909
# This happens for instance with `./config.status config.h'.
5910
if test -n "$CONFIG_FILES"; then
5913
ac_cr=`echo X | tr X '\015'`
5914
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5915
# But we know of no other shell where ac_cr would be empty at this
5916
# point, so we can use a bashism as a fallback.
5917
if test "x$ac_cr" = x; then
5918
eval ac_cr=\$\'\\r\'
5920
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5921
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5927
echo 'BEGIN {' >"$tmp/subs1.awk" &&
4883
echo "$me: cannot create a temporary directory in ." >&2
4884
{ (exit 1); exit 1; }
4889
cat >>$CONFIG_STATUS <<_ACEOF
4892
# CONFIG_FILES section.
4895
# No need to generate the scripts if there are no CONFIG_FILES.
4896
# This happens for instance when ./config.status config.h
4897
if test -n "\$CONFIG_FILES"; then
4898
# Protect against being on the right side of a sed subst in config.status.
4899
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4900
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4901
s,@SHELL@,$SHELL,;t t
4902
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4903
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4904
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4905
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4906
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4907
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4908
s,@exec_prefix@,$exec_prefix,;t t
4909
s,@prefix@,$prefix,;t t
4910
s,@program_transform_name@,$program_transform_name,;t t
4911
s,@bindir@,$bindir,;t t
4912
s,@sbindir@,$sbindir,;t t
4913
s,@libexecdir@,$libexecdir,;t t
4914
s,@datadir@,$datadir,;t t
4915
s,@sysconfdir@,$sysconfdir,;t t
4916
s,@sharedstatedir@,$sharedstatedir,;t t
4917
s,@localstatedir@,$localstatedir,;t t
4918
s,@libdir@,$libdir,;t t
4919
s,@includedir@,$includedir,;t t
4920
s,@oldincludedir@,$oldincludedir,;t t
4921
s,@infodir@,$infodir,;t t
4922
s,@mandir@,$mandir,;t t
4923
s,@build_alias@,$build_alias,;t t
4924
s,@host_alias@,$host_alias,;t t
4925
s,@target_alias@,$target_alias,;t t
4927
s,@ECHO_C@,$ECHO_C,;t t
4928
s,@ECHO_N@,$ECHO_N,;t t
4929
s,@ECHO_T@,$ECHO_T,;t t
4931
s,@build@,$build,;t t
4932
s,@build_cpu@,$build_cpu,;t t
4933
s,@build_vendor@,$build_vendor,;t t
4934
s,@build_os@,$build_os,;t t
4936
s,@host_cpu@,$host_cpu,;t t
4937
s,@host_vendor@,$host_vendor,;t t
4938
s,@host_os@,$host_os,;t t
4939
s,@target@,$target,;t t
4940
s,@target_cpu@,$target_cpu,;t t
4941
s,@target_vendor@,$target_vendor,;t t
4942
s,@target_os@,$target_os,;t t
4943
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4944
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4945
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4946
s,@PACKAGE@,$PACKAGE,;t t
4947
s,@VERSION@,$VERSION,;t t
4948
s,@ACLOCAL@,$ACLOCAL,;t t
4949
s,@AUTOCONF@,$AUTOCONF,;t t
4950
s,@AUTOMAKE@,$AUTOMAKE,;t t
4951
s,@AUTOHEADER@,$AUTOHEADER,;t t
4952
s,@MAKEINFO@,$MAKEINFO,;t t
4953
s,@AMTAR@,$AMTAR,;t t
4954
s,@install_sh@,$install_sh,;t t
4955
s,@STRIP@,$STRIP,;t t
4956
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4957
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4959
s,@SET_MAKE@,$SET_MAKE,;t t
4961
s,@CFLAGS@,$CFLAGS,;t t
4962
s,@LDFLAGS@,$LDFLAGS,;t t
4963
s,@CPPFLAGS@,$CPPFLAGS,;t t
4964
s,@ac_ct_CC@,$ac_ct_CC,;t t
4965
s,@EXEEXT@,$EXEEXT,;t t
4966
s,@OBJEXT@,$OBJEXT,;t t
4967
s,@DEPDIR@,$DEPDIR,;t t
4968
s,@am__include@,$am__include,;t t
4969
s,@am__quote@,$am__quote,;t t
4970
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4971
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4972
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4973
s,@CCDEPMODE@,$CCDEPMODE,;t t
4974
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4975
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
4976
s,@GTK_LIBS@,$GTK_LIBS,;t t
4977
s,@GTK_CONFIG@,$GTK_CONFIG,;t t
4978
s,@GNOME_CFLAGS@,$GNOME_CFLAGS,;t t
4979
s,@GNOME_LIBS@,$GNOME_LIBS,;t t
4980
s,@WITH_GNOME_TRUE@,$WITH_GNOME_TRUE,;t t
4981
s,@WITH_GNOME_FALSE@,$WITH_GNOME_FALSE,;t t
4983
s,@EGREP@,$EGREP,;t t
4984
s,@LIBOBJS@,$LIBOBJS,;t t
4985
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4990
cat >>$CONFIG_STATUS <<\_ACEOF
4991
# Split the substitutions into bite-sized pieces for seds with
4992
# small command number limits, like on Digital OSF/1 and HP-UX.
4994
ac_sed_frag=1 # Number of current file.
4995
ac_beg=1 # First line for current file.
4996
ac_end=$ac_max_sed_lines # Line after last line for current file.
4999
while $ac_more_lines; do
5000
if test $ac_beg -gt 1; then
5001
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5003
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5005
if test ! -s $tmp/subs.frag; then
5008
# The purpose of the label and of the branching condition is to
5009
# speed up the sed processing (if there are no `@' at all, there
5010
# is no need to browse any of the substitutions).
5011
# These are the two extra sed commands mentioned above.
5013
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5014
if test -z "$ac_sed_cmds"; then
5015
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5017
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5019
ac_sed_frag=`expr $ac_sed_frag + 1`
5021
ac_end=`expr $ac_end + $ac_max_sed_lines`
5024
if test -z "$ac_sed_cmds"; then
5932
echo "cat >conf$$subs.awk <<_ACEOF" &&
5933
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5936
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5937
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5939
for ac_last_try in false false false false false :; do
5940
. ./conf$$subs.sh ||
5941
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5943
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5944
if test $ac_delim_n = $ac_delim_num; then
5946
elif $ac_last_try; then
5947
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5949
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5954
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5955
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5959
s/^/S["/; s/!.*/"]=/
5969
s/\(.\{148\}\)..*/\1/
5971
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5976
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5983
s/\(.\{148\}\)..*/\1/
5985
s/["\\]/\\&/g; s/^/"/; s/$/"/
5989
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5994
' <conf$$subs.awk | sed '
5999
' >>$CONFIG_STATUS || ac_write_fail=1
6000
rm -f conf$$subs.awk
6001
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6003
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6004
for (key in S) S_is_set[key] = 1
6010
nfields = split(line, field, "@")
6012
len = length(field[1])
6013
for (i = 2; i < nfields; i++) {
6015
keylen = length(key)
6016
if (S_is_set[key]) {
6018
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6019
len += length(value) + length(field[++i])
6030
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6031
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6032
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6035
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6036
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6039
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6040
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6041
# trailing colons and then remove the whole line if VPATH becomes empty
6042
# (actually we leave an empty line to preserve line numbers).
6043
if test "x$srcdir" = x.; then
6044
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6062
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5027
6063
fi # test -n "$CONFIG_FILES"
6065
# Set up the scripts for CONFIG_HEADERS section.
6066
# No need to generate them if there are no CONFIG_HEADERS.
6067
# This happens for instance with `./config.status Makefile'.
6068
if test -n "$CONFIG_HEADERS"; then
6069
cat >"$tmp/defines.awk" <<\_ACAWK ||
5030
cat >>$CONFIG_STATUS <<\_ACEOF
5031
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5032
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5034
- | *:- | *:-:* ) # input from stdin
5036
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5037
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5038
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5039
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5040
* ) ac_file_in=$ac_file.in ;;
5043
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5044
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5045
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5046
X"$ac_file" : 'X\(//\)[^/]' \| \
5047
X"$ac_file" : 'X\(//\)$' \| \
5048
X"$ac_file" : 'X\(/\)' \| \
5049
. : '\(.\)' 2>/dev/null ||
5051
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5052
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5053
/^X\(\/\/\)$/{ s//\1/; q; }
5054
/^X\(\/\).*/{ s//\1/; q; }
5056
{ if $as_mkdir_p; then
6073
# Transform confdefs.h into an awk script `defines.awk', embedded as
6074
# here-document in config.status, that substitutes the proper values into
6075
# config.h.in to produce config.h.
6077
# Create a delimiter string that does not exist in confdefs.h, to ease
6078
# handling of long lines.
6080
for ac_last_try in false false :; do
6081
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6082
if test -z "$ac_t"; then
6084
elif $ac_last_try; then
6085
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5061
while test ! -d "$as_dir"; do
5062
as_dirs="$as_dir $as_dirs"
5063
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5064
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5065
X"$as_dir" : 'X\(//\)[^/]' \| \
5066
X"$as_dir" : 'X\(//\)$' \| \
5067
X"$as_dir" : 'X\(/\)' \| \
5068
. : '\(.\)' 2>/dev/null ||
5070
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5071
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5072
/^X\(\/\/\)$/{ s//\1/; q; }
5073
/^X\(\/\).*/{ s//\1/; q; }
6087
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6091
# For the awk script, D is an array of macro values keyed by name,
6092
# likewise P contains macro parameters if any. Preserve backslash
6093
# newline sequences.
6095
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6097
s/.\{148\}/&'"$ac_delim"'/g
6100
s/^[ ]*#[ ]*define[ ][ ]*/ /
6107
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6109
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6113
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6114
D["\1"]=" \3\\\\\\n"\\/p
6116
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6121
s/.\{148\}/&'"$ac_delim"'/g
6126
s/["\\]/\\&/g; s/^/"/; s/$/"/p
6129
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6131
' <confdefs.h | sed '
6132
s/'"$ac_delim"'/"\\\
6133
"/g' >>$CONFIG_STATUS || ac_write_fail=1
6135
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6136
for (key in D) D_is_set[key] = 1
6139
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6141
split(line, arg, " ")
6142
if (arg[1] == "#") {
6146
defundef = substr(arg[1], 2)
6149
split(mac1, mac2, "(") #)
6151
prefix = substr(line, 1, index(line, defundef) - 1)
6152
if (D_is_set[macro]) {
6153
# Preserve the white space surrounding the "#".
6154
print prefix "define", macro P[macro] D[macro]
6157
# Replace #undef with comments. This is necessary, for example,
6158
# in the case of _POSIX_SOURCE, which is predefined and required
6159
# on some systems where configure will not decide to define it.
6160
if (defundef == "undef") {
6161
print "/*", prefix defundef, macro, "*/"
6169
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6170
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6171
fi # test -n "$CONFIG_HEADERS"
6174
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6179
:[FHLC]) ac_mode=$ac_tag; continue;;
6181
case $ac_mode$ac_tag in
6183
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6184
:[FH]-) ac_tag=-:-;;
6185
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6202
-) ac_f="$tmp/stdin";;
6203
*) # Look for the file first in the build tree, then in the source tree
6204
# (if the path is not absolute). The absolute path cannot be DOS-style,
6205
# because $ac_f cannot contain `:'.
6209
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6211
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6213
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6214
as_fn_append ac_file_inputs " '$ac_f'"
5076
test ! -n "$as_dirs" || mkdir $as_dirs
5077
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5078
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5079
{ (exit 1); exit 1; }; }; }
6217
# Let's still pretend it is `configure' which instantiates (i.e., don't
6218
# use $as_me), people would be surprised to read:
6219
# /* config.h. Generated by config.status. */
6220
configure_input='Generated from '`
6221
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6223
if test x"$ac_file" != x-; then
6224
configure_input="$ac_file. $configure_input"
6225
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6226
$as_echo "$as_me: creating $ac_file" >&6;}
6228
# Neutralize special characters interpreted by sed in replacement strings.
6229
case $configure_input in #(
6230
*\&* | *\|* | *\\* )
6231
ac_sed_conf_input=`$as_echo "$configure_input" |
6232
sed 's/[\\\\&|]/\\\\&/g'`;; #(
6233
*) ac_sed_conf_input=$configure_input;;
6237
*:-:* | *:-) cat >"$tmp/stdin" \
6238
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6243
ac_dir=`$as_dirname -- "$ac_file" ||
6244
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6245
X"$ac_file" : 'X\(//\)[^/]' \| \
6246
X"$ac_file" : 'X\(//\)$' \| \
6247
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6248
$as_echo X"$ac_file" |
6249
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6266
as_dir="$ac_dir"; as_fn_mkdir_p
5083
if test "$ac_dir" != .; then
5084
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5085
# A "../" for each directory in $ac_dir_suffix.
5086
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5088
ac_dir_suffix= ac_top_builddir=
6270
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6272
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6273
# A ".." for each directory in $ac_dir_suffix.
6274
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6275
case $ac_top_builddir_sub in
6276
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6277
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6280
ac_abs_top_builddir=$ac_pwd
6281
ac_abs_builddir=$ac_pwd$ac_dir_suffix
6282
# for backward compatibility:
6283
ac_top_builddir=$ac_top_build_prefix
5091
6285
case $srcdir in
5092
.) # No --srcdir option. We are building in place.
6286
.) # We are building in place.
5094
if test -z "$ac_top_builddir"; then
5097
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5099
[\\/]* | ?:[\\/]* ) # Absolute path.
6288
ac_top_srcdir=$ac_top_builddir_sub
6289
ac_abs_top_srcdir=$ac_pwd ;;
6290
[\\/]* | ?:[\\/]* ) # Absolute name.
5100
6291
ac_srcdir=$srcdir$ac_dir_suffix;
5101
ac_top_srcdir=$srcdir ;;
5103
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5104
ac_top_srcdir=$ac_top_builddir$srcdir ;;
6292
ac_top_srcdir=$srcdir
6293
ac_abs_top_srcdir=$srcdir ;;
6295
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6296
ac_top_srcdir=$ac_top_build_prefix$srcdir
6297
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5106
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5108
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5109
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5110
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5111
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6299
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5114
6308
case $INSTALL in
5115
6309
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5116
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5119
if test x"$ac_file" != x-; then
5120
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5121
echo "$as_me: creating $ac_file" >&6;}
5124
# Let's still pretend it is `configure' which instantiates (i.e., don't
5125
# use $as_me), people would be surprised to read:
5126
# /* config.h. Generated by config.status. */
5127
if test x"$ac_file" = x-; then
5130
configure_input="$ac_file. "
5132
configure_input=$configure_input"Generated from `echo $ac_file_in |
5133
sed 's,.*/,,'` by configure."
5135
# First look for the input files in the build tree, otherwise in the
5137
ac_file_inputs=`IFS=:
5138
for f in $ac_file_in; do
5140
-) echo $tmp/stdin ;;
5142
# Absolute (can't be DOS-style, as IFS=:)
5143
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5144
echo "$as_me: error: cannot find input file: $f" >&2;}
5145
{ (exit 1); exit 1; }; }
5148
if test -f "$f"; then
5151
elif test -f "$srcdir/$f"; then
5156
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5157
echo "$as_me: error: cannot find input file: $f" >&2;}
5158
{ (exit 1); exit 1; }; }
5161
done` || { (exit 1); exit 1; }
5163
cat >>$CONFIG_STATUS <<_ACEOF
6310
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6314
[\\/$]* | ?:[\\/]* ) ;;
6315
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6319
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6320
# If the template does not know about datarootdir, expand it.
6321
# FIXME: This hack should be removed a few years after 2.60.
6322
ac_datarootdir_hack=; ac_datarootdir_seen=
6333
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6334
*datarootdir*) ac_datarootdir_seen=yes;;
6335
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6336
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6337
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6339
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6340
ac_datarootdir_hack='
6341
s&@datadir@&$datadir&g
6342
s&@docdir@&$docdir&g
6343
s&@infodir@&$infodir&g
6344
s&@localedir@&$localedir&g
6345
s&@mandir@&$mandir&g
6346
s&\\\${datarootdir}&$datarootdir&g' ;;
6350
# Neutralize VPATH when `$srcdir' = `.'.
6351
# Shell code in configure.ac might set extrasub.
6352
# FIXME: do we really want to maintain this feature?
6353
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6354
ac_sed_extra="$ac_vpsub
5167
cat >>$CONFIG_STATUS <<\_ACEOF
6357
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5169
6359
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5170
s,@configure_input@,$configure_input,;t t
5171
s,@srcdir@,$ac_srcdir,;t t
5172
s,@abs_srcdir@,$ac_abs_srcdir,;t t
5173
s,@top_srcdir@,$ac_top_srcdir,;t t
5174
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5175
s,@builddir@,$ac_builddir,;t t
5176
s,@abs_builddir@,$ac_abs_builddir,;t t
5177
s,@top_builddir@,$ac_top_builddir,;t t
5178
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5179
s,@INSTALL@,$ac_INSTALL,;t t
5180
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5182
if test x"$ac_file" != x-; then
5183
mv $tmp/out $ac_file
5191
cat >>$CONFIG_STATUS <<\_ACEOF
5194
# CONFIG_HEADER section.
5197
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5198
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5200
# ac_d sets the value in "#define NAME VALUE" lines.
5201
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5202
ac_dB='[ ].*$,\1#\2'
5205
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5206
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5207
ac_uB='$,\1#\2define\3'
5211
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5212
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6360
s|@configure_input@|$ac_sed_conf_input|;t t
6361
s&@top_builddir@&$ac_top_builddir_sub&;t t
6362
s&@top_build_prefix@&$ac_top_build_prefix&;t t
6363
s&@srcdir@&$ac_srcdir&;t t
6364
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6365
s&@top_srcdir@&$ac_top_srcdir&;t t
6366
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6367
s&@builddir@&$ac_builddir&;t t
6368
s&@abs_builddir@&$ac_abs_builddir&;t t
6369
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6370
s&@INSTALL@&$ac_INSTALL&;t t
6371
s&@MKDIR_P@&$ac_MKDIR_P&;t t
6372
$ac_datarootdir_hack
6374
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6375
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6377
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6378
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6379
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6380
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6381
which seems to be undefined. Please make sure it is defined" >&5
6382
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6383
which seems to be undefined. Please make sure it is defined" >&2;}
5213
6386
case $ac_file in
5214
- | *:- | *:-:* ) # input from stdin
5216
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5217
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5218
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5219
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5220
* ) ac_file_in=$ac_file.in ;;
5223
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5224
echo "$as_me: creating $ac_file" >&6;}
5226
# First look for the input files in the build tree, otherwise in the
5228
ac_file_inputs=`IFS=:
5229
for f in $ac_file_in; do
5231
-) echo $tmp/stdin ;;
5233
# Absolute (can't be DOS-style, as IFS=:)
5234
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5235
echo "$as_me: error: cannot find input file: $f" >&2;}
5236
{ (exit 1); exit 1; }; }
5239
if test -f "$f"; then
5242
elif test -f "$srcdir/$f"; then
5247
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5248
echo "$as_me: error: cannot find input file: $f" >&2;}
5249
{ (exit 1); exit 1; }; }
5252
done` || { (exit 1); exit 1; }
5253
# Remove the trailing spaces.
5254
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5258
# Transform confdefs.h into two sed scripts, `conftest.defines' and
5259
# `conftest.undefs', that substitutes the proper values into
5260
# config.h.in to produce config.h. The first handles `#define'
5261
# templates, and the second `#undef' templates.
5262
# And first: Protect against being on the right side of a sed subst in
5263
# config.status. Protect against being in an unquoted here document
5265
rm -f conftest.defines conftest.undefs
5266
# Using a here document instead of a string reduces the quoting nightmare.
5267
# Putting comments in sed scripts is not portable.
5269
# `end' is used to avoid that the second main sed command (meant for
5270
# 0-ary CPP macros) applies to n-ary macro definitions.
5271
# See the Autoconf documentation for `clear'.
5272
cat >confdef2sed.sed <<\_ACEOF
5277
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5279
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5282
# If some macros were called several times there might be several times
5283
# the same #defines, which is useless. Nevertheless, we may not want to
5284
# sort them, since we want the *last* AC-DEFINE to be honored.
5285
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5286
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5287
rm -f confdef2sed.sed
5289
# This sed command replaces #undef with comments. This is necessary, for
5290
# example, in the case of _POSIX_SOURCE, which is predefined and required
5291
# on some systems where configure will not decide to define it.
5292
cat >>conftest.undefs <<\_ACEOF
5293
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5296
# Break up conftest.defines because some shells have a limit on the size
5297
# of here documents, and old seds have small limits too (100 cmds).
5298
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5299
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5300
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5301
echo ' :' >>$CONFIG_STATUS
5303
while grep . conftest.defines >/dev/null
5305
# Write a limited-size here document to $tmp/defines.sed.
5306
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5307
# Speed up: don't consider the non `#define' lines.
5308
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5309
# Work around the forget-to-reset-the-flag bug.
5310
echo 't clr' >>$CONFIG_STATUS
5311
echo ': clr' >>$CONFIG_STATUS
5312
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5314
sed -f $tmp/defines.sed $tmp/in >$tmp/out
5318
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5319
rm -f conftest.defines
5320
mv conftest.tail conftest.defines
5322
rm -f conftest.defines
5323
echo ' fi # grep' >>$CONFIG_STATUS
5324
echo >>$CONFIG_STATUS
5326
# Break up conftest.undefs because some shells have a limit on the size
5327
# of here documents, and old seds have small limits too (100 cmds).
5328
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5330
while grep . conftest.undefs >/dev/null
5332
# Write a limited-size here document to $tmp/undefs.sed.
5333
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5334
# Speed up: don't consider the non `#undef'
5335
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5336
# Work around the forget-to-reset-the-flag bug.
5337
echo 't clr' >>$CONFIG_STATUS
5338
echo ': clr' >>$CONFIG_STATUS
5339
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5341
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5345
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5346
rm -f conftest.undefs
5347
mv conftest.tail conftest.undefs
5349
rm -f conftest.undefs
5351
cat >>$CONFIG_STATUS <<\_ACEOF
5352
# Let's still pretend it is `configure' which instantiates (i.e., don't
5353
# use $as_me), people would be surprised to read:
5354
# /* config.h. Generated by config.status. */
5355
if test x"$ac_file" = x-; then
5356
echo "/* Generated by configure. */" >$tmp/config.h
5358
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5360
cat $tmp/in >>$tmp/config.h
6387
-) cat "$tmp/out" && rm -f "$tmp/out";;
6388
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6390
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5362
6396
if test x"$ac_file" != x-; then
5363
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5364
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5365
echo "$as_me: $ac_file is unchanged" >&6;}
6398
$as_echo "/* $configure_input */" \
6399
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6400
} >"$tmp/config.h" \
6401
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6402
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6404
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5367
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5368
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5369
X"$ac_file" : 'X\(//\)[^/]' \| \
5370
X"$ac_file" : 'X\(//\)$' \| \
5371
X"$ac_file" : 'X\(/\)' \| \
5372
. : '\(.\)' 2>/dev/null ||
5374
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5375
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5376
/^X\(\/\/\)$/{ s//\1/; q; }
5377
/^X\(\/\).*/{ s//\1/; q; }
5379
{ if $as_mkdir_p; then
5384
while test ! -d "$as_dir"; do
5385
as_dirs="$as_dir $as_dirs"
5386
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5387
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5388
X"$as_dir" : 'X\(//\)[^/]' \| \
5389
X"$as_dir" : 'X\(//\)$' \| \
5390
X"$as_dir" : 'X\(/\)' \| \
5391
. : '\(.\)' 2>/dev/null ||
5393
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5394
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5395
/^X\(\/\/\)$/{ s//\1/; q; }
5396
/^X\(\/\).*/{ s//\1/; q; }
5399
test ! -n "$as_dirs" || mkdir $as_dirs
5400
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5401
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5402
{ (exit 1); exit 1; }; }; }
5405
mv $tmp/config.h $ac_file
6407
mv "$tmp/config.h" "$ac_file" \
6408
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6411
$as_echo "/* $configure_input */" \
6412
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6413
|| as_fn_error $? "could not create -" "$LINENO" 5
5411
# Run the commands associated with the file.
5413
config.h ) # update the timestamp
5414
echo 'timestamp for config.h' >"./stamp-h1"
6415
# Compute "$ac_file"'s index in $config_headers.
6418
for _am_header in $config_headers :; do
6420
$_am_arg | $_am_arg:* )
6423
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
5419
cat >>$CONFIG_STATUS <<\_ACEOF
5422
# CONFIG_COMMANDS section.
5424
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5425
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5426
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5427
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5428
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5429
X"$ac_dest" : 'X\(//\)[^/]' \| \
5430
X"$ac_dest" : 'X\(//\)$' \| \
5431
X"$ac_dest" : 'X\(/\)' \| \
5432
. : '\(.\)' 2>/dev/null ||
5434
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5435
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5436
/^X\(\/\/\)$/{ s//\1/; q; }
5437
/^X\(\/\).*/{ s//\1/; q; }
5441
if test "$ac_dir" != .; then
5442
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5443
# A "../" for each directory in $ac_dir_suffix.
5444
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5446
ac_dir_suffix= ac_top_builddir=
5450
.) # No --srcdir option. We are building in place.
5452
if test -z "$ac_top_builddir"; then
5455
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5457
[\\/]* | ?:[\\/]* ) # Absolute path.
5458
ac_srcdir=$srcdir$ac_dir_suffix;
5459
ac_top_srcdir=$srcdir ;;
5461
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5462
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5464
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5466
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5467
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5468
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5469
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5472
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5473
echo "$as_me: executing $ac_dest commands" >&6;}
5475
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5476
# Strip MF so we end up with the name of the file.
5477
mf=`echo "$mf" | sed -e 's/:.*$//'`
5478
# Check whether this is an Automake generated Makefile or not.
5479
# We used to match only the files named `Makefile.in', but
5480
# some people rename them; so instead we look at the file content.
5481
# Grep'ing the first line is not enough: some people post-process
5482
# each Makefile.in and add a new line on top of each file to say so.
5483
# So let's grep whole file.
5484
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5485
dirpart=`(dirname "$mf") 2>/dev/null ||
6426
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6427
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6428
X"$_am_arg" : 'X\(//\)[^/]' \| \
6429
X"$_am_arg" : 'X\(//\)$' \| \
6430
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6431
$as_echo X"$_am_arg" |
6432
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6448
s/.*/./; q'`/stamp-h$_am_stamp_count
6451
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6452
$as_echo "$as_me: executing $ac_file commands" >&6;}
6457
case $ac_file$ac_mode in
6458
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6459
# Autoconf 2.62 quotes --file arguments for eval, but not when files
6460
# are listed without --file. Let's play safe and only enable the eval
6461
# if we detect the quoting.
6462
case $CONFIG_FILES in
6463
*\'*) eval set x "$CONFIG_FILES" ;;
6464
*) set x $CONFIG_FILES ;;
6469
# Strip MF so we end up with the name of the file.
6470
mf=`echo "$mf" | sed -e 's/:.*$//'`
6471
# Check whether this is an Automake generated Makefile or not.
6472
# We used to match only the files named `Makefile.in', but
6473
# some people rename them; so instead we look at the file content.
6474
# Grep'ing the first line is not enough: some people post-process
6475
# each Makefile.in and add a new line on top of each file to say so.
6476
# Grep'ing the whole file is not good either: AIX grep has a line
6477
# limit of 2048, but all sed's we know have understand at least 4000.
6478
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6479
dirpart=`$as_dirname -- "$mf" ||
5486
6480
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5487
X"$mf" : 'X\(//\)[^/]' \| \
5488
X"$mf" : 'X\(//\)$' \| \
5489
X"$mf" : 'X\(/\)' \| \
5490
. : '\(.\)' 2>/dev/null ||
5492
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5493
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5494
/^X\(\/\/\)$/{ s//\1/; q; }
5495
/^X\(\/\).*/{ s//\1/; q; }
5500
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5501
# Extract the definition of DEP_FILES from the Makefile without
5503
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5504
test -z "$DEPDIR" && continue
5505
# When using ansi2knr, U may be empty or an underscore; expand it
5506
U=`sed -n -e '/^U = / s///p' < "$mf"`
5507
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5508
# We invoke sed twice because it is the simplest approach to
5509
# changing $(DEPDIR) to its actual value in the expansion.
5510
for file in `sed -n -e '
5511
/^DEP_FILES = .*\\\\$/ {
5520
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5521
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5522
# Make sure the directory exists.
5523
test -f "$dirpart/$file" && continue
5524
fdir=`(dirname "$file") 2>/dev/null ||
6481
X"$mf" : 'X\(//\)[^/]' \| \
6482
X"$mf" : 'X\(//\)$' \| \
6483
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6485
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6505
# Extract the definition of DEPDIR, am__include, and am__quote
6506
# from the Makefile without running `make'.
6507
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6508
test -z "$DEPDIR" && continue
6509
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6510
test -z "am__include" && continue
6511
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6512
# When using ansi2knr, U may be empty or an underscore; expand it
6513
U=`sed -n 's/^U = //p' < "$mf"`
6514
# Find all dependency output files, they are included files with
6515
# $(DEPDIR) in their names. We invoke sed twice because it is the
6516
# simplest approach to changing $(DEPDIR) to its actual value in the
6518
for file in `sed -n "
6519
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6520
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6521
# Make sure the directory exists.
6522
test -f "$dirpart/$file" && continue
6523
fdir=`$as_dirname -- "$file" ||
5525
6524
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5526
X"$file" : 'X\(//\)[^/]' \| \
5527
X"$file" : 'X\(//\)$' \| \
5528
X"$file" : 'X\(/\)' \| \
5529
. : '\(.\)' 2>/dev/null ||
5531
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5532
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5533
/^X\(\/\/\)$/{ s//\1/; q; }
5534
/^X\(\/\).*/{ s//\1/; q; }
5536
{ if $as_mkdir_p; then
5537
mkdir -p $dirpart/$fdir
5539
as_dir=$dirpart/$fdir
5541
while test ! -d "$as_dir"; do
5542
as_dirs="$as_dir $as_dirs"
5543
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5544
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5545
X"$as_dir" : 'X\(//\)[^/]' \| \
5546
X"$as_dir" : 'X\(//\)$' \| \
5547
X"$as_dir" : 'X\(/\)' \| \
5548
. : '\(.\)' 2>/dev/null ||
5550
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5551
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5552
/^X\(\/\/\)$/{ s//\1/; q; }
5553
/^X\(\/\).*/{ s//\1/; q; }
6525
X"$file" : 'X\(//\)[^/]' \| \
6526
X"$file" : 'X\(//\)$' \| \
6527
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6529
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6546
as_dir=$dirpart/$fdir; as_fn_mkdir_p
6547
# echo "creating $dirpart/$file"
6548
echo '# dummy' > "$dirpart/$file"
5556
test ! -n "$as_dirs" || mkdir $as_dirs
5557
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5558
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5559
{ (exit 1); exit 1; }; }; }
5561
# echo "creating $dirpart/$file"
5562
echo '# dummy' > "$dirpart/$file"
5570
cat >>$CONFIG_STATUS <<\_ACEOF
5572
{ (exit 0); exit 0; }
5574
chmod +x $CONFIG_STATUS
5575
6560
ac_clean_files=$ac_clean_files_save
6562
test $ac_write_fail = 0 ||
6563
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5578
6566
# configure is writing to config.log, and then calls config.status.
5579
6567
# config.status does its own redirection, appending to config.log.