Fix for initialization of scalos preferences library. Library is now loaded only...
[AROS-Contrib.git] / Games / lbreakout2 / configure
blob6de6350e7d42c166d01120d11872b610e3c0340e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="Makefile.am"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 LIBOBJS
627 appname
628 win32_inst_script
629 arch_flag
630 win32_deps
631 locdir_flag
632 hi_dir
633 inst_dir
634 hi_inst_flag
635 inst_flag
636 netdebug_flag
637 sdlnet_lib_flag
638 sdlnet_flag
639 network_flag
640 doc_dir
641 mixer_flag
642 audio_flag
643 warp_flag
644 SDL_LIBS
645 SDL_CFLAGS
646 SDL_CONFIG
647 POSUB
648 LTLIBINTL
649 LIBINTL
650 INTLLIBS
651 INTL_LIBTOOL_SUFFIX_PREFIX
652 INTLOBJS
653 GENCAT
654 INSTOBJEXT
655 DATADIRNAME
656 CATOBJEXT
657 USE_INCLUDED_LIBINTL
658 BUILD_INCLUDED_LIBINTL
659 INTLBISON
660 LTLIBICONV
661 LIBICONV
662 HAVE_WPRINTF
663 HAVE_SNPRINTF
664 HAVE_ASPRINTF
665 HAVE_POSIX_PRINTF
666 GLIBC21
667 ALLOCA
668 RANLIB
669 MSGMERGE
670 XGETTEXT
671 GMSGFMT
672 MSGFMT
673 USE_NLS
674 MKINSTALLDIRS
675 AM_BACKSLASH
676 AM_DEFAULT_VERBOSITY
677 AM_DEFAULT_V
678 AM_V
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 EGREP
713 GREP
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_dependency_tracking
776 enable_silent_rules
777 enable_nls
778 with_gnu_ld
779 enable_rpath
780 with_libiconv_prefix
781 with_included_gettext
782 with_libintl_prefix
783 with_sdl_prefix
784 with_sdl_exec_prefix
785 enable_sdltest
786 enable_warp
787 enable_audio
788 with_docdir
789 enable_network
790 enable_sdl_net
791 enable_netdebug
792 enable_install
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP'
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
853 ac_prev=
854 ac_dashdash=
855 for ac_option
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
874 ac_dashdash=yes ;;
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
893 --config-cache | -C)
894 cache_file=config.cache ;;
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 esac
1211 done
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1295 /^X\(\/\/\)$/{
1296 s//\1/
1299 /^X\(\/\).*/{
1300 s//\1/
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1308 else
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures this package to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1398 cat <<\_ACEOF
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 --target=TARGET configure for building compilers for TARGET [HOST]
1409 _ACEOF
1412 if test -n "$ac_init_help"; then
1414 cat <<\_ACEOF
1416 Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-dependency-tracking
1421 do not reject slow dependency extractors
1422 --disable-dependency-tracking
1423 speeds up one-time build
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --disable-nls do not use Native Language Support
1427 --disable-rpath do not hardcode runtime library paths
1428 --disable-sdltest Do not try to compile and run a test SDL program
1429 --enable-warp Enable mouse warp (for BeOS and Mac)
1430 --disable-audio Disables Audio
1431 --disable-network No network support.
1432 --enable-sdl-net Use SDL_Net for networking.
1433 --enable-netdebug Enable net packet debugging.
1434 --disable-install No installation. Played from the source directory.
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-gnu-ld assume the C compiler uses GNU ld default=no
1440 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1441 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1442 --with-included-gettext use the GNU gettext library included here
1443 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1444 --without-libintl-prefix don't search for libintl in includedir and libdir
1445 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1446 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1447 --with-docdir=DPATH Directory where documentation is saved.
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 CPP C preprocessor
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to the package provider.
1463 _ACEOF
1464 ac_status=$?
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524 cat <<\_ACEOF
1525 configure
1526 generated by GNU Autoconf 2.69
1528 Copyright (C) 2012 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532 exit
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_cpp ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } > conftest.i && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 ac_retval=1
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1612 } # ac_fn_c_try_cpp
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1618 # accordingly.
1619 ac_fn_c_check_header_mongrel ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if eval \${$3+:} false; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1631 else
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1642 else
1643 ac_header_compiler=no
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658 else
1659 ac_header_preproc=no
1661 rm -f conftest.err conftest.i conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 esac
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 eval "$3=\$ac_header_compiler"
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 } # ac_fn_c_check_header_mongrel
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=$ac_status
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1741 } # ac_fn_c_try_run
1743 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists and can be compiled using the include files in
1746 # INCLUDES, setting the cache variable VAR accordingly.
1747 ac_fn_c_check_header_compile ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_header_compile
1774 # ac_fn_c_try_link LINENO
1775 # -----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_link ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 test -x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=1
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1818 } # ac_fn_c_try_link
1820 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1821 # -------------------------------------------
1822 # Tests whether TYPE exists after having included INCLUDES, setting cache
1823 # variable VAR accordingly.
1824 ac_fn_c_check_type ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831 else
1832 eval "$3=no"
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1837 main ()
1839 if (sizeof ($2))
1840 return 0;
1842 return 0;
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1850 main ()
1852 if (sizeof (($2)))
1853 return 0;
1855 return 0;
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1860 else
1861 eval "$3=yes"
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_type
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1902 #undef $2
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1919 main ()
1921 return $2 ();
1923 return 0;
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_func
1941 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1942 # --------------------------------------------
1943 # Tries to find the compile-time value of EXPR in a program that includes
1944 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1945 # computed
1946 ac_fn_c_compute_int ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if test "$cross_compiling" = yes; then
1950 # Depending upon the size, compute the lo and hi bounds.
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 main ()
1957 static int test_array [1 - 2 * !(($2) >= 0)];
1958 test_array [0] = 0;
1959 return test_array [0];
1962 return 0;
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_lo=0 ac_mid=0
1967 while :; do
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 main ()
1974 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1975 test_array [0] = 0;
1976 return test_array [0];
1979 return 0;
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_hi=$ac_mid; break
1984 else
1985 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1986 if test $ac_lo -le $ac_mid; then
1987 ac_lo= ac_hi=
1988 break
1990 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 done
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1999 main ()
2001 static int test_array [1 - 2 * !(($2) < 0)];
2002 test_array [0] = 0;
2003 return test_array [0];
2006 return 0;
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_hi=-1 ac_mid=-1
2011 while :; do
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 main ()
2018 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2019 test_array [0] = 0;
2020 return test_array [0];
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_lo=$ac_mid; break
2028 else
2029 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2030 if test $ac_mid -le $ac_hi; then
2031 ac_lo= ac_hi=
2032 break
2034 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 done
2038 else
2039 ac_lo= ac_hi=
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 # Binary search between lo and hi bounds.
2045 while test "x$ac_lo" != "x$ac_hi"; do
2046 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 test_array [0] = 0;
2055 return test_array [0];
2058 return 0;
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_hi=$ac_mid
2063 else
2064 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 done
2068 case $ac_lo in #((
2069 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2070 '') ac_retval=1 ;;
2071 esac
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2076 static long int longval () { return $2; }
2077 static unsigned long int ulongval () { return $2; }
2078 #include <stdio.h>
2079 #include <stdlib.h>
2081 main ()
2084 FILE *f = fopen ("conftest.val", "w");
2085 if (! f)
2086 return 1;
2087 if (($2) < 0)
2089 long int i = longval ();
2090 if (i != ($2))
2091 return 1;
2092 fprintf (f, "%ld", i);
2094 else
2096 unsigned long int i = ulongval ();
2097 if (i != ($2))
2098 return 1;
2099 fprintf (f, "%lu", i);
2101 /* Do not output a trailing newline, as this causes \r\n confusion
2102 on some platforms. */
2103 return ferror (f) || fclose (f) != 0;
2106 return 0;
2108 _ACEOF
2109 if ac_fn_c_try_run "$LINENO"; then :
2110 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2111 else
2112 ac_retval=1
2114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2115 conftest.$ac_objext conftest.beam conftest.$ac_ext
2116 rm -f conftest.val
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 as_fn_set_status $ac_retval
2122 } # ac_fn_c_compute_int
2123 cat >config.log <<_ACEOF
2124 This file contains any messages produced by compilers while
2125 running configure, to aid debugging if configure makes a mistake.
2127 It was created by $as_me, which was
2128 generated by GNU Autoconf 2.69. Invocation command line was
2130 $ $0 $@
2132 _ACEOF
2133 exec 5>>config.log
2135 cat <<_ASUNAME
2136 ## --------- ##
2137 ## Platform. ##
2138 ## --------- ##
2140 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2141 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2142 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2143 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2144 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2146 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2147 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2149 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2150 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2151 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2152 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2153 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2154 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2155 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2157 _ASUNAME
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2162 IFS=$as_save_IFS
2163 test -z "$as_dir" && as_dir=.
2164 $as_echo "PATH: $as_dir"
2165 done
2166 IFS=$as_save_IFS
2168 } >&5
2170 cat >&5 <<_ACEOF
2173 ## ----------- ##
2174 ## Core tests. ##
2175 ## ----------- ##
2177 _ACEOF
2180 # Keep a trace of the command line.
2181 # Strip out --no-create and --no-recursion so they do not pile up.
2182 # Strip out --silent because we don't want to record it for future runs.
2183 # Also quote any args containing shell meta-characters.
2184 # Make two passes to allow for proper duplicate-argument suppression.
2185 ac_configure_args=
2186 ac_configure_args0=
2187 ac_configure_args1=
2188 ac_must_keep_next=false
2189 for ac_pass in 1 2
2191 for ac_arg
2193 case $ac_arg in
2194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2196 | -silent | --silent | --silen | --sile | --sil)
2197 continue ;;
2198 *\'*)
2199 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2200 esac
2201 case $ac_pass in
2202 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2204 as_fn_append ac_configure_args1 " '$ac_arg'"
2205 if test $ac_must_keep_next = true; then
2206 ac_must_keep_next=false # Got value, back to normal.
2207 else
2208 case $ac_arg in
2209 *=* | --config-cache | -C | -disable-* | --disable-* \
2210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2212 | -with-* | --with-* | -without-* | --without-* | --x)
2213 case "$ac_configure_args0 " in
2214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2215 esac
2217 -* ) ac_must_keep_next=true ;;
2218 esac
2220 as_fn_append ac_configure_args " '$ac_arg'"
2222 esac
2223 done
2224 done
2225 { ac_configure_args0=; unset ac_configure_args0;}
2226 { ac_configure_args1=; unset ac_configure_args1;}
2228 # When interrupted or exit'd, cleanup temporary files, and complete
2229 # config.log. We remove comments because anyway the quotes in there
2230 # would cause problems or look ugly.
2231 # WARNING: Use '\'' to represent an apostrophe within the trap.
2232 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2233 trap 'exit_status=$?
2234 # Save into config.log some information that might help in debugging.
2236 echo
2238 $as_echo "## ---------------- ##
2239 ## Cache variables. ##
2240 ## ---------------- ##"
2241 echo
2242 # The following way of writing the cache mishandles newlines in values,
2244 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2245 eval ac_val=\$$ac_var
2246 case $ac_val in #(
2247 *${as_nl}*)
2248 case $ac_var in #(
2249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2250 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2251 esac
2252 case $ac_var in #(
2253 _ | IFS | as_nl) ;; #(
2254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2255 *) { eval $ac_var=; unset $ac_var;} ;;
2256 esac ;;
2257 esac
2258 done
2259 (set) 2>&1 |
2260 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2261 *${as_nl}ac_space=\ *)
2262 sed -n \
2263 "s/'\''/'\''\\\\'\'''\''/g;
2264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2265 ;; #(
2267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2269 esac |
2270 sort
2272 echo
2274 $as_echo "## ----------------- ##
2275 ## Output variables. ##
2276 ## ----------------- ##"
2277 echo
2278 for ac_var in $ac_subst_vars
2280 eval ac_val=\$$ac_var
2281 case $ac_val in
2282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283 esac
2284 $as_echo "$ac_var='\''$ac_val'\''"
2285 done | sort
2286 echo
2288 if test -n "$ac_subst_files"; then
2289 $as_echo "## ------------------- ##
2290 ## File substitutions. ##
2291 ## ------------------- ##"
2292 echo
2293 for ac_var in $ac_subst_files
2295 eval ac_val=\$$ac_var
2296 case $ac_val in
2297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298 esac
2299 $as_echo "$ac_var='\''$ac_val'\''"
2300 done | sort
2301 echo
2304 if test -s confdefs.h; then
2305 $as_echo "## ----------- ##
2306 ## confdefs.h. ##
2307 ## ----------- ##"
2308 echo
2309 cat confdefs.h
2310 echo
2312 test "$ac_signal" != 0 &&
2313 $as_echo "$as_me: caught signal $ac_signal"
2314 $as_echo "$as_me: exit $exit_status"
2315 } >&5
2316 rm -f core *.core core.conftest.* &&
2317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2318 exit $exit_status
2320 for ac_signal in 1 2 13 15; do
2321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2322 done
2323 ac_signal=0
2325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2326 rm -f -r conftest* confdefs.h
2328 $as_echo "/* confdefs.h */" > confdefs.h
2330 # Predefined preprocessor variables.
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2342 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_STRING "$PACKAGE_STRING"
2346 _ACEOF
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2350 _ACEOF
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_URL "$PACKAGE_URL"
2354 _ACEOF
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer an explicitly selected file to automatically selected ones.
2359 ac_site_file1=NONE
2360 ac_site_file2=NONE
2361 if test -n "$CONFIG_SITE"; then
2362 # We do not want a PATH search for config.site.
2363 case $CONFIG_SITE in #((
2364 -*) ac_site_file1=./$CONFIG_SITE;;
2365 */*) ac_site_file1=$CONFIG_SITE;;
2366 *) ac_site_file1=./$CONFIG_SITE;;
2367 esac
2368 elif test "x$prefix" != xNONE; then
2369 ac_site_file1=$prefix/share/config.site
2370 ac_site_file2=$prefix/etc/config.site
2371 else
2372 ac_site_file1=$ac_default_prefix/share/config.site
2373 ac_site_file2=$ac_default_prefix/etc/config.site
2375 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2377 test "x$ac_site_file" = xNONE && continue
2378 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2380 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2381 sed 's/^/| /' "$ac_site_file" >&5
2382 . "$ac_site_file" \
2383 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 as_fn_error $? "failed to load site script $ac_site_file
2386 See \`config.log' for more details" "$LINENO" 5; }
2388 done
2390 if test -r "$cache_file"; then
2391 # Some versions of bash will fail to source /dev/null (special files
2392 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2393 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2395 $as_echo "$as_me: loading cache $cache_file" >&6;}
2396 case $cache_file in
2397 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2398 *) . "./$cache_file";;
2399 esac
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2403 $as_echo "$as_me: creating cache $cache_file" >&6;}
2404 >$cache_file
2407 as_fn_append ac_header_list " stdlib.h"
2408 as_fn_append ac_header_list " unistd.h"
2409 as_fn_append ac_header_list " sys/param.h"
2410 # Check that the precious variables saved in the cache have kept the same
2411 # value.
2412 ac_cache_corrupted=false
2413 for ac_var in $ac_precious_vars; do
2414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2415 eval ac_new_set=\$ac_env_${ac_var}_set
2416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2417 eval ac_new_val=\$ac_env_${ac_var}_value
2418 case $ac_old_set,$ac_new_set in
2419 set,)
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2421 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2422 ac_cache_corrupted=: ;;
2423 ,set)
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2427 ,);;
2429 if test "x$ac_old_val" != "x$ac_new_val"; then
2430 # differences in whitespace do not lead to failure.
2431 ac_old_val_w=`echo x $ac_old_val`
2432 ac_new_val_w=`echo x $ac_new_val`
2433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2435 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2436 ac_cache_corrupted=:
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2439 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2440 eval $ac_var=\$ac_old_val
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2443 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2445 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2446 fi;;
2447 esac
2448 # Pass precious variables to config.status.
2449 if test "$ac_new_set" = set; then
2450 case $ac_new_val in
2451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 *) ac_arg=$ac_var=$ac_new_val ;;
2453 esac
2454 case " $ac_configure_args " in
2455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2457 esac
2459 done
2460 if $ac_cache_corrupted; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2464 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2467 ## -------------------- ##
2468 ## Main body of script. ##
2469 ## -------------------- ##
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 ac_aux_dir=
2480 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2481 if test -f "$ac_dir/install-sh"; then
2482 ac_aux_dir=$ac_dir
2483 ac_install_sh="$ac_aux_dir/install-sh -c"
2484 break
2485 elif test -f "$ac_dir/install.sh"; then
2486 ac_aux_dir=$ac_dir
2487 ac_install_sh="$ac_aux_dir/install.sh -c"
2488 break
2489 elif test -f "$ac_dir/shtool"; then
2490 ac_aux_dir=$ac_dir
2491 ac_install_sh="$ac_aux_dir/shtool install -c"
2492 break
2494 done
2495 if test -z "$ac_aux_dir"; then
2496 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2499 # These three variables are undocumented and unsupported,
2500 # and are intended to be withdrawn in a future Autoconf release.
2501 # They can cause serious problems if a builder's source tree is in a directory
2502 # whose full name contains unusual characters.
2503 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2504 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2505 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2508 # Make sure we can run config.sub.
2509 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2510 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2513 $as_echo_n "checking build system type... " >&6; }
2514 if ${ac_cv_build+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 ac_build_alias=$build_alias
2518 test "x$ac_build_alias" = x &&
2519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2520 test "x$ac_build_alias" = x &&
2521 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2522 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2523 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2527 $as_echo "$ac_cv_build" >&6; }
2528 case $ac_cv_build in
2529 *-*-*) ;;
2530 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2531 esac
2532 build=$ac_cv_build
2533 ac_save_IFS=$IFS; IFS='-'
2534 set x $ac_cv_build
2535 shift
2536 build_cpu=$1
2537 build_vendor=$2
2538 shift; shift
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2541 build_os=$*
2542 IFS=$ac_save_IFS
2543 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2547 $as_echo_n "checking host system type... " >&6; }
2548 if ${ac_cv_host+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test "x$host_alias" = x; then
2552 ac_cv_host=$ac_cv_build
2553 else
2554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2560 $as_echo "$ac_cv_host" >&6; }
2561 case $ac_cv_host in
2562 *-*-*) ;;
2563 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2564 esac
2565 host=$ac_cv_host
2566 ac_save_IFS=$IFS; IFS='-'
2567 set x $ac_cv_host
2568 shift
2569 host_cpu=$1
2570 host_vendor=$2
2571 shift; shift
2572 # Remember, the first character of IFS is used to create $*,
2573 # except with old shells:
2574 host_os=$*
2575 IFS=$ac_save_IFS
2576 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2580 $as_echo_n "checking target system type... " >&6; }
2581 if ${ac_cv_target+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test "x$target_alias" = x; then
2585 ac_cv_target=$ac_cv_host
2586 else
2587 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2593 $as_echo "$ac_cv_target" >&6; }
2594 case $ac_cv_target in
2595 *-*-*) ;;
2596 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2597 esac
2598 target=$ac_cv_target
2599 ac_save_IFS=$IFS; IFS='-'
2600 set x $ac_cv_target
2601 shift
2602 target_cpu=$1
2603 target_vendor=$2
2604 shift; shift
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2607 target_os=$*
2608 IFS=$ac_save_IFS
2609 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2612 # The aliases save the names the user supplied, while $host etc.
2613 # will get canonicalized.
2614 test -n "$target_alias" &&
2615 test "$program_prefix$program_suffix$program_transform_name" = \
2616 NONENONEs,x,x, &&
2617 program_prefix=${target_alias}-
2619 ac_ext=c
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_CC+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2663 if test -z "$ac_cv_prog_CC"; then
2664 ac_ct_CC=$CC
2665 # Extract the first word of "gcc", so it can be a program name with args.
2666 set dummy gcc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$ac_ct_CC"; then
2673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_ac_ct_CC="gcc"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2686 done
2687 done
2688 IFS=$as_save_IFS
2692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2693 if test -n "$ac_ct_CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2695 $as_echo "$ac_ct_CC" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2701 if test "x$ac_ct_CC" = x; then
2702 CC=""
2703 else
2704 case $cross_compiling:$ac_tool_warned in
2705 yes:)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2709 esac
2710 CC=$ac_ct_CC
2712 else
2713 CC="$ac_cv_prog_CC"
2716 if test -z "$CC"; then
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}cc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_CC="${ac_tool_prefix}cc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2739 done
2740 done
2741 IFS=$as_save_IFS
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2757 if test -z "$CC"; then
2758 # Extract the first word of "cc", so it can be a program name with args.
2759 set dummy cc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 ac_prog_rejected=no
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2777 ac_prog_rejected=yes
2778 continue
2780 ac_cv_prog_CC="cc"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2788 if test $ac_prog_rejected = yes; then
2789 # We found a bogon in the path, so make sure we never use it.
2790 set dummy $ac_cv_prog_CC
2791 shift
2792 if test $# != 0; then
2793 # We chose a different compiler from the bogus one.
2794 # However, it has the same basename, so the bogon will be chosen
2795 # first if we set CC to just the basename; use the full file name.
2796 shift
2797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2813 if test -z "$CC"; then
2814 if test -n "$ac_tool_prefix"; then
2815 for ac_prog in cl.exe
2817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_CC+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2838 done
2839 done
2840 IFS=$as_save_IFS
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847 $as_echo "$CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2854 test -n "$CC" && break
2855 done
2857 if test -z "$CC"; then
2858 ac_ct_CC=$CC
2859 for ac_prog in cl.exe
2861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2862 set dummy $ac_prog; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$ac_ct_CC"; then
2869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 ac_cv_prog_ac_ct_CC="$ac_prog"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2882 done
2883 done
2884 IFS=$as_save_IFS
2888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2889 if test -n "$ac_ct_CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2891 $as_echo "$ac_ct_CC" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2898 test -n "$ac_ct_CC" && break
2899 done
2901 if test "x$ac_ct_CC" = x; then
2902 CC=""
2903 else
2904 case $cross_compiling:$ac_tool_warned in
2905 yes:)
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2908 ac_tool_warned=yes ;;
2909 esac
2910 CC=$ac_ct_CC
2917 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919 as_fn_error $? "no acceptable C compiler found in \$PATH
2920 See \`config.log' for more details" "$LINENO" 5; }
2922 # Provide some information about the compiler.
2923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2924 set X $ac_compile
2925 ac_compiler=$2
2926 for ac_option in --version -v -V -qversion; do
2927 { { ac_try="$ac_compiler $ac_option >&5"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2933 $as_echo "$ac_try_echo"; } >&5
2934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2935 ac_status=$?
2936 if test -s conftest.err; then
2937 sed '10a\
2938 ... rest of stderr output deleted ...
2939 10q' conftest.err >conftest.er1
2940 cat conftest.er1 >&5
2942 rm -f conftest.er1 conftest.err
2943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2944 test $ac_status = 0; }
2945 done
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2951 main ()
2955 return 0;
2957 _ACEOF
2958 ac_clean_files_save=$ac_clean_files
2959 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2960 # Try to create an executable without -o first, disregard a.out.
2961 # It will help us diagnose broken compilers, and finding out an intuition
2962 # of exeext.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2964 $as_echo_n "checking whether the C compiler works... " >&6; }
2965 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2967 # The possible output files:
2968 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2970 ac_rmfiles=
2971 for ac_file in $ac_files
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2975 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2976 esac
2977 done
2978 rm -f $ac_rmfiles
2980 if { { ac_try="$ac_link_default"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_link_default") 2>&5
2988 ac_status=$?
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }; then :
2991 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2992 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2993 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2994 # so that the user can short-circuit this test for compilers unknown to
2995 # Autoconf.
2996 for ac_file in $ac_files ''
2998 test -f "$ac_file" || continue
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3002 [ab].out )
3003 # We found the default executable, but exeext='' is most
3004 # certainly right.
3005 break;;
3006 *.* )
3007 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3008 then :; else
3009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011 # We set ac_cv_exeext here because the later test for it is not
3012 # safe: cross compilers may not add the suffix if given an `-o'
3013 # argument, so we may need to know it at that point already.
3014 # Even if this section looks crufty: it has the advantage of
3015 # actually working.
3016 break;;
3018 break;;
3019 esac
3020 done
3021 test "$ac_cv_exeext" = no && ac_cv_exeext=
3023 else
3024 ac_file=''
3026 if test -z "$ac_file"; then :
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 $as_echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 as_fn_error 77 "C compiler cannot create executables
3035 See \`config.log' for more details" "$LINENO" 5; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038 $as_echo "yes" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3041 $as_echo_n "checking for C compiler default output file name... " >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3043 $as_echo "$ac_file" >&6; }
3044 ac_exeext=$ac_cv_exeext
3046 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3047 ac_clean_files=$ac_clean_files_save
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3049 $as_echo_n "checking for suffix of executables... " >&6; }
3050 if { { ac_try="$ac_link"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_link") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; then :
3061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3063 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 # `rm'.
3065 for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 break;;
3071 * ) break;;
3072 esac
3073 done
3074 else
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details" "$LINENO" 5; }
3080 rm -f conftest conftest$ac_cv_exeext
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3082 $as_echo "$ac_cv_exeext" >&6; }
3084 rm -f conftest.$ac_ext
3085 EXEEXT=$ac_cv_exeext
3086 ac_exeext=$EXEEXT
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089 #include <stdio.h>
3091 main ()
3093 FILE *f = fopen ("conftest.out", "w");
3094 return ferror (f) || fclose (f) != 0;
3097 return 0;
3099 _ACEOF
3100 ac_clean_files="$ac_clean_files conftest.out"
3101 # Check that the compiler produces executables we can run. If not, either
3102 # the compiler is broken, or we cross compile.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3104 $as_echo_n "checking whether we are cross compiling... " >&6; }
3105 if test "$cross_compiling" != yes; then
3106 { { ac_try="$ac_link"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_link") 2>&5
3114 ac_status=$?
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }
3117 if { ac_try='./conftest$ac_cv_exeext'
3118 { { case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; }; then
3128 cross_compiling=no
3129 else
3130 if test "$cross_compiling" = maybe; then
3131 cross_compiling=yes
3132 else
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $? "cannot run C compiled programs.
3136 If you meant to cross compile, use \`--host'.
3137 See \`config.log' for more details" "$LINENO" 5; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3142 $as_echo "$cross_compiling" >&6; }
3144 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3145 ac_clean_files=$ac_clean_files_save
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3147 $as_echo_n "checking for suffix of object files... " >&6; }
3148 if ${ac_cv_objext+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3155 main ()
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.o conftest.obj
3163 if { { ac_try="$ac_compile"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_compile") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 for ac_file in conftest.o conftest.obj conftest.*; do
3175 test -f "$ac_file" || continue;
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3179 break;;
3180 esac
3181 done
3182 else
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $? "cannot compute suffix of object files: cannot compile
3189 See \`config.log' for more details" "$LINENO" 5; }
3191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3194 $as_echo "$ac_cv_objext" >&6; }
3195 OBJEXT=$ac_cv_objext
3196 ac_objext=$OBJEXT
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3198 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3199 if ${ac_cv_c_compiler_gnu+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3206 main ()
3208 #ifndef __GNUC__
3209 choke me
3210 #endif
3213 return 0;
3215 _ACEOF
3216 if ac_fn_c_try_compile "$LINENO"; then :
3217 ac_compiler_gnu=yes
3218 else
3219 ac_compiler_gnu=no
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3226 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3227 if test $ac_compiler_gnu = yes; then
3228 GCC=yes
3229 else
3230 GCC=
3232 ac_test_CFLAGS=${CFLAGS+set}
3233 ac_save_CFLAGS=$CFLAGS
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3235 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3236 if ${ac_cv_prog_cc_g+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 ac_save_c_werror_flag=$ac_c_werror_flag
3240 ac_c_werror_flag=yes
3241 ac_cv_prog_cc_g=no
3242 CFLAGS="-g"
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3247 main ()
3251 return 0;
3253 _ACEOF
3254 if ac_fn_c_try_compile "$LINENO"; then :
3255 ac_cv_prog_cc_g=yes
3256 else
3257 CFLAGS=""
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3262 main ()
3266 return 0;
3268 _ACEOF
3269 if ac_fn_c_try_compile "$LINENO"; then :
3271 else
3272 ac_c_werror_flag=$ac_save_c_werror_flag
3273 CFLAGS="-g"
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3278 main ()
3282 return 0;
3284 _ACEOF
3285 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_cv_prog_cc_g=yes
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3296 $as_echo "$ac_cv_prog_cc_g" >&6; }
3297 if test "$ac_test_CFLAGS" = set; then
3298 CFLAGS=$ac_save_CFLAGS
3299 elif test $ac_cv_prog_cc_g = yes; then
3300 if test "$GCC" = yes; then
3301 CFLAGS="-g -O2"
3302 else
3303 CFLAGS="-g"
3305 else
3306 if test "$GCC" = yes; then
3307 CFLAGS="-O2"
3308 else
3309 CFLAGS=
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3313 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3314 if ${ac_cv_prog_cc_c89+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_cv_prog_cc_c89=no
3318 ac_save_CC=$CC
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321 #include <stdarg.h>
3322 #include <stdio.h>
3323 struct stat;
3324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3325 struct buf { int x; };
3326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3327 static char *e (p, i)
3328 char **p;
3329 int i;
3331 return p[i];
3333 static char *f (char * (*g) (char **, int), char **p, ...)
3335 char *s;
3336 va_list v;
3337 va_start (v,p);
3338 s = g (p, va_arg (v,int));
3339 va_end (v);
3340 return s;
3343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3344 function prototypes and stuff, but not '\xHH' hex character constants.
3345 These don't provoke an error unfortunately, instead are silently treated
3346 as 'x'. The following induces an error, until -std is added to get
3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3348 array size at least. It's necessary to write '\x00'==0 to get something
3349 that's true only with -std. */
3350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353 inside strings and character constants. */
3354 #define FOO(x) 'x'
3355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3357 int test (int i, double x);
3358 struct s1 {int (*f) (int a);};
3359 struct s2 {int (*f) (double a);};
3360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361 int argc;
3362 char **argv;
3364 main ()
3366 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3368 return 0;
3370 _ACEOF
3371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3374 CC="$ac_save_CC $ac_arg"
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376 ac_cv_prog_cc_c89=$ac_arg
3378 rm -f core conftest.err conftest.$ac_objext
3379 test "x$ac_cv_prog_cc_c89" != "xno" && break
3380 done
3381 rm -f conftest.$ac_ext
3382 CC=$ac_save_CC
3385 # AC_CACHE_VAL
3386 case "x$ac_cv_prog_cc_c89" in
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3389 $as_echo "none needed" >&6; } ;;
3390 xno)
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3392 $as_echo "unsupported" >&6; } ;;
3394 CC="$CC $ac_cv_prog_cc_c89"
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3396 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3397 esac
3398 if test "x$ac_cv_prog_cc_c89" != xno; then :
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3415 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3416 # On Suns, sometimes $CPP names a directory.
3417 if test -n "$CPP" && test -d "$CPP"; then
3418 CPP=
3420 if test -z "$CPP"; then
3421 if ${ac_cv_prog_CPP+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 # Double quotes because CPP needs to be expanded
3425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3427 ac_preproc_ok=false
3428 for ac_c_preproc_warn_flag in '' yes
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433 # <limits.h> exists even on freestanding compilers.
3434 # On the NeXT, cc -E runs the code through the compiler's parser,
3435 # not just through cpp. "Syntax error" is here to catch this case.
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if ac_fn_c_try_cpp "$LINENO"; then :
3447 else
3448 # Broken: fails on valid input.
3449 continue
3451 rm -f conftest.err conftest.i conftest.$ac_ext
3453 # OK, works on sane cases. Now check whether nonexistent headers
3454 # can be detected and how.
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3458 _ACEOF
3459 if ac_fn_c_try_cpp "$LINENO"; then :
3460 # Broken: success on invalid input.
3461 continue
3462 else
3463 # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3467 rm -f conftest.err conftest.i conftest.$ac_ext
3469 done
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.i conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then :
3473 break
3476 done
3477 ac_cv_prog_CPP=$CPP
3480 CPP=$ac_cv_prog_CPP
3481 else
3482 ac_cv_prog_CPP=$CPP
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3485 $as_echo "$CPP" >&6; }
3486 ac_preproc_ok=false
3487 for ac_c_preproc_warn_flag in '' yes
3489 # Use a header file that comes with gcc, so configuring glibc
3490 # with a fresh cross-compiler works.
3491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492 # <limits.h> exists even on freestanding compilers.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error" is here to catch this case.
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 #ifdef __STDC__
3498 # include <limits.h>
3499 #else
3500 # include <assert.h>
3501 #endif
3502 Syntax error
3503 _ACEOF
3504 if ac_fn_c_try_cpp "$LINENO"; then :
3506 else
3507 # Broken: fails on valid input.
3508 continue
3510 rm -f conftest.err conftest.i conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516 #include <ac_nonexistent.h>
3517 _ACEOF
3518 if ac_fn_c_try_cpp "$LINENO"; then :
3519 # Broken: success on invalid input.
3520 continue
3521 else
3522 # Passes both tests.
3523 ac_preproc_ok=:
3524 break
3526 rm -f conftest.err conftest.i conftest.$ac_ext
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.i conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then :
3533 else
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3537 See \`config.log' for more details" "$LINENO" 5; }
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3548 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3549 if ${ac_cv_path_GREP+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -z "$GREP"; then
3553 ac_path_GREP_found=false
3554 # Loop through the user's path and test for each of PROGNAME-LIST
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_prog in grep ggrep; do
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3563 as_fn_executable_p "$ac_path_GREP" || continue
3564 # Check for GNU ac_path_GREP and select it if it is found.
3565 # Check for GNU $ac_path_GREP
3566 case `"$ac_path_GREP" --version 2>&1` in
3567 *GNU*)
3568 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3570 ac_count=0
3571 $as_echo_n 0123456789 >"conftest.in"
3572 while :
3574 cat "conftest.in" "conftest.in" >"conftest.tmp"
3575 mv "conftest.tmp" "conftest.in"
3576 cp "conftest.in" "conftest.nl"
3577 $as_echo 'GREP' >> "conftest.nl"
3578 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3580 as_fn_arith $ac_count + 1 && ac_count=$as_val
3581 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3582 # Best one so far, save it but keep looking for a better one
3583 ac_cv_path_GREP="$ac_path_GREP"
3584 ac_path_GREP_max=$ac_count
3586 # 10*(2^10) chars as input seems more than enough
3587 test $ac_count -gt 10 && break
3588 done
3589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3590 esac
3592 $ac_path_GREP_found && break 3
3593 done
3594 done
3595 done
3596 IFS=$as_save_IFS
3597 if test -z "$ac_cv_path_GREP"; then
3598 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3600 else
3601 ac_cv_path_GREP=$GREP
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3606 $as_echo "$ac_cv_path_GREP" >&6; }
3607 GREP="$ac_cv_path_GREP"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3611 $as_echo_n "checking for egrep... " >&6; }
3612 if ${ac_cv_path_EGREP+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3616 then ac_cv_path_EGREP="$GREP -E"
3617 else
3618 if test -z "$EGREP"; then
3619 ac_path_EGREP_found=false
3620 # Loop through the user's path and test for each of PROGNAME-LIST
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_prog in egrep; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3629 as_fn_executable_p "$ac_path_EGREP" || continue
3630 # Check for GNU ac_path_EGREP and select it if it is found.
3631 # Check for GNU $ac_path_EGREP
3632 case `"$ac_path_EGREP" --version 2>&1` in
3633 *GNU*)
3634 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3636 ac_count=0
3637 $as_echo_n 0123456789 >"conftest.in"
3638 while :
3640 cat "conftest.in" "conftest.in" >"conftest.tmp"
3641 mv "conftest.tmp" "conftest.in"
3642 cp "conftest.in" "conftest.nl"
3643 $as_echo 'EGREP' >> "conftest.nl"
3644 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3646 as_fn_arith $ac_count + 1 && ac_count=$as_val
3647 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3648 # Best one so far, save it but keep looking for a better one
3649 ac_cv_path_EGREP="$ac_path_EGREP"
3650 ac_path_EGREP_max=$ac_count
3652 # 10*(2^10) chars as input seems more than enough
3653 test $ac_count -gt 10 && break
3654 done
3655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3656 esac
3658 $ac_path_EGREP_found && break 3
3659 done
3660 done
3661 done
3662 IFS=$as_save_IFS
3663 if test -z "$ac_cv_path_EGREP"; then
3664 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3666 else
3667 ac_cv_path_EGREP=$EGREP
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3673 $as_echo "$ac_cv_path_EGREP" >&6; }
3674 EGREP="$ac_cv_path_EGREP"
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3678 $as_echo_n "checking for ANSI C header files... " >&6; }
3679 if ${ac_cv_header_stdc+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <stdlib.h>
3685 #include <stdarg.h>
3686 #include <string.h>
3687 #include <float.h>
3690 main ()
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_header_stdc=yes
3699 else
3700 ac_cv_header_stdc=no
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 if test $ac_cv_header_stdc = yes; then
3705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708 #include <string.h>
3710 _ACEOF
3711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 $EGREP "memchr" >/dev/null 2>&1; then :
3714 else
3715 ac_cv_header_stdc=no
3717 rm -f conftest*
3721 if test $ac_cv_header_stdc = yes; then
3722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #include <stdlib.h>
3727 _ACEOF
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 $EGREP "free" >/dev/null 2>&1; then :
3731 else
3732 ac_cv_header_stdc=no
3734 rm -f conftest*
3738 if test $ac_cv_header_stdc = yes; then
3739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3740 if test "$cross_compiling" = yes; then :
3742 else
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #include <ctype.h>
3746 #include <stdlib.h>
3747 #if ((' ' & 0x0FF) == 0x020)
3748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3750 #else
3751 # define ISLOWER(c) \
3752 (('a' <= (c) && (c) <= 'i') \
3753 || ('j' <= (c) && (c) <= 'r') \
3754 || ('s' <= (c) && (c) <= 'z'))
3755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3756 #endif
3758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3760 main ()
3762 int i;
3763 for (i = 0; i < 256; i++)
3764 if (XOR (islower (i), ISLOWER (i))
3765 || toupper (i) != TOUPPER (i))
3766 return 2;
3767 return 0;
3769 _ACEOF
3770 if ac_fn_c_try_run "$LINENO"; then :
3772 else
3773 ac_cv_header_stdc=no
3775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3776 conftest.$ac_objext conftest.beam conftest.$ac_ext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3782 $as_echo "$ac_cv_header_stdc" >&6; }
3783 if test $ac_cv_header_stdc = yes; then
3785 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3790 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3791 inttypes.h stdint.h unistd.h
3792 do :
3793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3797 cat >>confdefs.h <<_ACEOF
3798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3799 _ACEOF
3803 done
3807 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3808 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3809 MINIX=yes
3810 else
3811 MINIX=
3815 if test "$MINIX" = yes; then
3817 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3820 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3823 $as_echo "#define _MINIX 1" >>confdefs.h
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3829 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3830 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3836 # define __EXTENSIONS__ 1
3837 $ac_includes_default
3839 main ()
3843 return 0;
3845 _ACEOF
3846 if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_safe_to_define___extensions__=yes
3848 else
3849 ac_cv_safe_to_define___extensions__=no
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3854 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3855 test $ac_cv_safe_to_define___extensions__ = yes &&
3856 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3858 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3860 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3862 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3864 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3868 ac_config_headers="$ac_config_headers config.h"
3871 am__api_version='1.13'
3873 # Find a good install program. We prefer a C program (faster),
3874 # so one script is as good as another. But avoid the broken or
3875 # incompatible versions:
3876 # SysV /etc/install, /usr/sbin/install
3877 # SunOS /usr/etc/install
3878 # IRIX /sbin/install
3879 # AIX /bin/install
3880 # AmigaOS /C/install, which installs bootblocks on floppy discs
3881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3884 # OS/2's system install, which has a completely different semantic
3885 # ./install, which can be erroneously created by make from ./install.sh.
3886 # Reject install programs that cannot install multiple files.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3888 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3889 if test -z "$INSTALL"; then
3890 if ${ac_cv_path_install+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 # Account for people who put trailing slashes in PATH elements.
3899 case $as_dir/ in #((
3900 ./ | .// | /[cC]/* | \
3901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3902 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3903 /usr/ucb/* ) ;;
3905 # OSF1 and SCO ODT 3.0 have their own names for install.
3906 # Don't use installbsd from OSF since it installs stuff as root
3907 # by default.
3908 for ac_prog in ginstall scoinst install; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3911 if test $ac_prog = install &&
3912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3913 # AIX install. It has an incompatible calling convention.
3915 elif test $ac_prog = install &&
3916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3917 # program-specific install script used by HP pwplus--don't use.
3919 else
3920 rm -rf conftest.one conftest.two conftest.dir
3921 echo one > conftest.one
3922 echo two > conftest.two
3923 mkdir conftest.dir
3924 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3925 test -s conftest.one && test -s conftest.two &&
3926 test -s conftest.dir/conftest.one &&
3927 test -s conftest.dir/conftest.two
3928 then
3929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3930 break 3
3934 done
3935 done
3937 esac
3939 done
3940 IFS=$as_save_IFS
3942 rm -rf conftest.one conftest.two conftest.dir
3945 if test "${ac_cv_path_install+set}" = set; then
3946 INSTALL=$ac_cv_path_install
3947 else
3948 # As a last resort, use the slow shell script. Don't cache a
3949 # value for INSTALL within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the value is a relative name.
3952 INSTALL=$ac_install_sh
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3956 $as_echo "$INSTALL" >&6; }
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3967 $as_echo_n "checking whether build environment is sane... " >&6; }
3968 # Reject unsafe characters in $srcdir or the absolute working directory
3969 # name. Accept space and tab only in the latter.
3970 am_lf='
3972 case `pwd` in
3973 *[\\\"\#\$\&\'\`$am_lf]*)
3974 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3975 esac
3976 case $srcdir in
3977 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3978 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3979 esac
3981 # Do 'set' in a subshell so we don't clobber the current shell's
3982 # arguments. Must try -L first in case configure is actually a
3983 # symlink; some systems play weird games with the mod time of symlinks
3984 # (eg FreeBSD returns the mod time of the symlink's containing
3985 # directory).
3986 if (
3987 am_has_slept=no
3988 for am_try in 1 2; do
3989 echo "timestamp, slept: $am_has_slept" > conftest.file
3990 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3991 if test "$*" = "X"; then
3992 # -L didn't work.
3993 set X `ls -t "$srcdir/configure" conftest.file`
3995 if test "$*" != "X $srcdir/configure conftest.file" \
3996 && test "$*" != "X conftest.file $srcdir/configure"; then
3998 # If neither matched, then we have a broken ls. This can happen
3999 # if, for instance, CONFIG_SHELL is bash and it inherits a
4000 # broken ls alias from the environment. This has actually
4001 # happened. Such a system could not be considered "sane".
4002 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4003 alias in your environment" "$LINENO" 5
4005 if test "$2" = conftest.file || test $am_try -eq 2; then
4006 break
4008 # Just in case.
4009 sleep 1
4010 am_has_slept=yes
4011 done
4012 test "$2" = conftest.file
4014 then
4015 # Ok.
4017 else
4018 as_fn_error $? "newly created file is older than distributed files!
4019 Check your system clock" "$LINENO" 5
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4022 $as_echo "yes" >&6; }
4023 # If we didn't sleep, we still need to ensure time stamps of config.status and
4024 # generated files are strictly newer.
4025 am_sleep_pid=
4026 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4027 ( sleep 1 ) &
4028 am_sleep_pid=$!
4031 rm -f conftest.file
4033 test "$program_prefix" != NONE &&
4034 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4035 # Use a double $ so make ignores it.
4036 test "$program_suffix" != NONE &&
4037 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4038 # Double any \ or $.
4039 # By default was `s,x,x', remove it if useless.
4040 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4041 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4043 # expand $ac_aux_dir to an absolute path
4044 am_aux_dir=`cd $ac_aux_dir && pwd`
4046 if test x"${MISSING+set}" != xset; then
4047 case $am_aux_dir in
4048 *\ * | *\ *)
4049 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4051 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4052 esac
4054 # Use eval to expand $SHELL
4055 if eval "$MISSING --is-lightweight"; then
4056 am_missing_run="$MISSING "
4057 else
4058 am_missing_run=
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4060 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4063 if test x"${install_sh}" != xset; then
4064 case $am_aux_dir in
4065 *\ * | *\ *)
4066 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4068 install_sh="\${SHELL} $am_aux_dir/install-sh"
4069 esac
4072 # Installed binaries are usually stripped using 'strip' when the user
4073 # run "make install-strip". However 'strip' might not be the right
4074 # tool to use in cross-compilation environments, therefore Automake
4075 # will honor the 'STRIP' environment variable to overrule this program.
4076 if test "$cross_compiling" != no; then
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}strip; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_STRIP+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$STRIP"; then
4086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4099 done
4100 done
4101 IFS=$as_save_IFS
4105 STRIP=$ac_cv_prog_STRIP
4106 if test -n "$STRIP"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4108 $as_echo "$STRIP" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4116 if test -z "$ac_cv_prog_STRIP"; then
4117 ac_ct_STRIP=$STRIP
4118 # Extract the first word of "strip", so it can be a program name with args.
4119 set dummy strip; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$ac_ct_STRIP"; then
4126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_STRIP="strip"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4141 IFS=$as_save_IFS
4145 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4146 if test -n "$ac_ct_STRIP"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4148 $as_echo "$ac_ct_STRIP" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4154 if test "x$ac_ct_STRIP" = x; then
4155 STRIP=":"
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 STRIP=$ac_ct_STRIP
4165 else
4166 STRIP="$ac_cv_prog_STRIP"
4170 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4173 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4174 if test -z "$MKDIR_P"; then
4175 if ${ac_cv_path_mkdir+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in mkdir gmkdir; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4186 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4187 'mkdir (GNU coreutils) '* | \
4188 'mkdir (coreutils) '* | \
4189 'mkdir (fileutils) '4.1*)
4190 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4191 break 3;;
4192 esac
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 test -d ./--version && rmdir ./--version
4201 if test "${ac_cv_path_mkdir+set}" = set; then
4202 MKDIR_P="$ac_cv_path_mkdir -p"
4203 else
4204 # As a last resort, use the slow shell script. Don't cache a
4205 # value for MKDIR_P within a source directory, because that will
4206 # break other packages using the cache if that directory is
4207 # removed, or if the value is a relative name.
4208 MKDIR_P="$ac_install_sh -d"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4212 $as_echo "$MKDIR_P" >&6; }
4214 for ac_prog in gawk mawk nawk awk
4216 # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_AWK+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -n "$AWK"; then
4224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_AWK="$ac_prog"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4237 done
4238 done
4239 IFS=$as_save_IFS
4243 AWK=$ac_cv_prog_AWK
4244 if test -n "$AWK"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4246 $as_echo "$AWK" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4253 test -n "$AWK" && break
4254 done
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4257 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4258 set x ${MAKE-make}
4259 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4260 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat >conftest.make <<\_ACEOF
4264 SHELL = /bin/sh
4265 all:
4266 @echo '@@@%%%=$(MAKE)=@@@%%%'
4267 _ACEOF
4268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4269 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4270 *@@@%%%=?*=@@@%%%*)
4271 eval ac_cv_prog_make_${ac_make}_set=yes;;
4273 eval ac_cv_prog_make_${ac_make}_set=no;;
4274 esac
4275 rm -f conftest.make
4277 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4279 $as_echo "yes" >&6; }
4280 SET_MAKE=
4281 else
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 SET_MAKE="MAKE=${MAKE-make}"
4287 rm -rf .tst 2>/dev/null
4288 mkdir .tst 2>/dev/null
4289 if test -d .tst; then
4290 am__leading_dot=.
4291 else
4292 am__leading_dot=_
4294 rmdir .tst 2>/dev/null
4296 DEPDIR="${am__leading_dot}deps"
4298 ac_config_commands="$ac_config_commands depfiles"
4301 am_make=${MAKE-make}
4302 cat > confinc << 'END'
4303 am__doit:
4304 @echo this is the am__doit target
4305 .PHONY: am__doit
4307 # If we don't find an include directive, just comment out the code.
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4309 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4310 am__include="#"
4311 am__quote=
4312 _am_result=none
4313 # First try GNU make style include.
4314 echo "include confinc" > confmf
4315 # Ignore all kinds of additional output from 'make'.
4316 case `$am_make -s -f confmf 2> /dev/null` in #(
4317 *the\ am__doit\ target*)
4318 am__include=include
4319 am__quote=
4320 _am_result=GNU
4322 esac
4323 # Now try BSD make style include.
4324 if test "$am__include" = "#"; then
4325 echo '.include "confinc"' > confmf
4326 case `$am_make -s -f confmf 2> /dev/null` in #(
4327 *the\ am__doit\ target*)
4328 am__include=.include
4329 am__quote="\""
4330 _am_result=BSD
4332 esac
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4337 $as_echo "$_am_result" >&6; }
4338 rm -f confinc confmf
4340 # Check whether --enable-dependency-tracking was given.
4341 if test "${enable_dependency_tracking+set}" = set; then :
4342 enableval=$enable_dependency_tracking;
4345 if test "x$enable_dependency_tracking" != xno; then
4346 am_depcomp="$ac_aux_dir/depcomp"
4347 AMDEPBACKSLASH='\'
4348 am__nodep='_no'
4350 if test "x$enable_dependency_tracking" != xno; then
4351 AMDEP_TRUE=
4352 AMDEP_FALSE='#'
4353 else
4354 AMDEP_TRUE='#'
4355 AMDEP_FALSE=
4359 # Check whether --enable-silent-rules was given.
4360 if test "${enable_silent_rules+set}" = set; then :
4361 enableval=$enable_silent_rules;
4364 case $enable_silent_rules in # (((
4365 yes) AM_DEFAULT_VERBOSITY=0;;
4366 no) AM_DEFAULT_VERBOSITY=1;;
4367 *) AM_DEFAULT_VERBOSITY=1;;
4368 esac
4369 am_make=${MAKE-make}
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4371 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4372 if ${am_cv_make_support_nested_variables+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if $as_echo 'TRUE=$(BAR$(V))
4376 BAR0=false
4377 BAR1=true
4379 am__doit:
4380 @$(TRUE)
4381 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4382 am_cv_make_support_nested_variables=yes
4383 else
4384 am_cv_make_support_nested_variables=no
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4388 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4389 if test $am_cv_make_support_nested_variables = yes; then
4390 AM_V='$(V)'
4391 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4392 else
4393 AM_V=$AM_DEFAULT_VERBOSITY
4394 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4396 AM_BACKSLASH='\'
4398 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4399 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4400 # is not polluted with repeated "-I."
4401 am__isrc=' -I$(srcdir)'
4402 # test to see if srcdir already configured
4403 if test -f $srcdir/config.status; then
4404 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4408 # test whether we have cygpath
4409 if test -z "$CYGPATH_W"; then
4410 if (cygpath --version) >/dev/null 2>/dev/null; then
4411 CYGPATH_W='cygpath -w'
4412 else
4413 CYGPATH_W=echo
4418 # Define the identity of the package.
4420 PACKAGE=lbreakout2
4421 VERSION=2.6.4
4424 cat >>confdefs.h <<_ACEOF
4425 #define PACKAGE "$PACKAGE"
4426 _ACEOF
4429 cat >>confdefs.h <<_ACEOF
4430 #define VERSION "$VERSION"
4431 _ACEOF
4433 # Some tools Automake needs.
4435 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4438 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4441 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4444 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4447 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4449 # For better backward compatibility. To be removed once Automake 1.9.x
4450 # dies out for good. For more background, see:
4451 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4452 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4453 mkdir_p='$(MKDIR_P)'
4455 # We need awk for the "check" target. The system "awk" is bad on
4456 # some platforms.
4457 # Always define AMTAR for backward compatibility. Yes, it's still used
4458 # in the wild :-( We should find a proper way to deprecate it ...
4459 AMTAR='$${TAR-tar}'
4462 # We'll loop over all known methods to create a tar archive until one works.
4463 _am_tools='gnutar pax cpio none'
4465 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4471 depcc="$CC" am_compiler_list=
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474 $as_echo_n "checking dependency style of $depcc... " >&6; }
4475 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479 # We make a subdir and do the tests there. Otherwise we can end up
4480 # making bogus files that we don't know about and never remove. For
4481 # instance it was reported that on HP-UX the gcc test will end up
4482 # making a dummy file named 'D' -- because '-MD' means "put the output
4483 # in D".
4484 rm -rf conftest.dir
4485 mkdir conftest.dir
4486 # Copy depcomp to subdir because otherwise we won't find it if we're
4487 # using a relative directory.
4488 cp "$am_depcomp" conftest.dir
4489 cd conftest.dir
4490 # We will build objects and dependencies in a subdirectory because
4491 # it helps to detect inapplicable dependency modes. For instance
4492 # both Tru64's cc and ICC support -MD to output dependencies as a
4493 # side effect of compilation, but ICC will put the dependencies in
4494 # the current directory while Tru64 will put them in the object
4495 # directory.
4496 mkdir sub
4498 am_cv_CC_dependencies_compiler_type=none
4499 if test "$am_compiler_list" = ""; then
4500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4502 am__universal=false
4503 case " $depcc " in #(
4504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4505 esac
4507 for depmode in $am_compiler_list; do
4508 # Setup a source with many dependencies, because some compilers
4509 # like to wrap large dependency lists on column 80 (with \), and
4510 # we should not choose a depcomp mode which is confused by this.
4512 # We need to recreate these files for each test, as the compiler may
4513 # overwrite some of them when testing with obscure command lines.
4514 # This happens at least with the AIX C compiler.
4515 : > sub/conftest.c
4516 for i in 1 2 3 4 5 6; do
4517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4519 # Solaris 10 /bin/sh.
4520 echo '/* dummy */' > sub/conftst$i.h
4521 done
4522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4525 # mode. It turns out that the SunPro C++ compiler does not properly
4526 # handle '-M -o', and we need to detect this. Also, some Intel
4527 # versions had trouble with output in subdirs.
4528 am__obj=sub/conftest.${OBJEXT-o}
4529 am__minus_obj="-o $am__obj"
4530 case $depmode in
4531 gcc)
4532 # This depmode causes a compiler race in universal mode.
4533 test "$am__universal" = false || continue
4535 nosideeffect)
4536 # After this tag, mechanisms are not by side-effect, so they'll
4537 # only be used when explicitly requested.
4538 if test "x$enable_dependency_tracking" = xyes; then
4539 continue
4540 else
4541 break
4544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4545 # This compiler won't grok '-c -o', but also, the minuso test has
4546 # not run yet. These depmodes are late enough in the game, and
4547 # so weak that their functioning should not be impacted.
4548 am__obj=conftest.${OBJEXT-o}
4549 am__minus_obj=
4551 none) break ;;
4552 esac
4553 if depmode=$depmode \
4554 source=sub/conftest.c object=$am__obj \
4555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4557 >/dev/null 2>conftest.err &&
4558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562 # icc doesn't choke on unknown options, it will just issue warnings
4563 # or remarks (even with -Werror). So we grep stderr for any message
4564 # that says an option was ignored or not supported.
4565 # When given -MP, icc 7.0 and 7.1 complain thusly:
4566 # icc: Command line warning: ignoring option '-M'; no argument required
4567 # The diagnosis changed in icc 8.0:
4568 # icc: Command line remark: option '-MP' not supported
4569 if (grep 'ignoring option' conftest.err ||
4570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571 am_cv_CC_dependencies_compiler_type=$depmode
4572 break
4575 done
4577 cd ..
4578 rm -rf conftest.dir
4579 else
4580 am_cv_CC_dependencies_compiler_type=none
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4589 test "x$enable_dependency_tracking" != xno \
4590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4591 am__fastdepCC_TRUE=
4592 am__fastdepCC_FALSE='#'
4593 else
4594 am__fastdepCC_TRUE='#'
4595 am__fastdepCC_FALSE=
4602 MKINSTALLDIRS=
4603 if test -n "$ac_aux_dir"; then
4604 case "$ac_aux_dir" in
4605 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4606 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4607 esac
4609 if test -z "$MKINSTALLDIRS"; then
4610 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4616 $as_echo_n "checking whether NLS is requested... " >&6; }
4617 # Check whether --enable-nls was given.
4618 if test "${enable_nls+set}" = set; then :
4619 enableval=$enable_nls; USE_NLS=$enableval
4620 else
4621 USE_NLS=yes
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4625 $as_echo "$USE_NLS" >&6; }
4632 # Prepare PATH_SEPARATOR.
4633 # The user is always right.
4634 if test "${PATH_SEPARATOR+set}" != set; then
4635 echo "#! /bin/sh" >conf$$.sh
4636 echo "exit 0" >>conf$$.sh
4637 chmod +x conf$$.sh
4638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4639 PATH_SEPARATOR=';'
4640 else
4641 PATH_SEPARATOR=:
4643 rm -f conf$$.sh
4646 # Find out how to test for executable files. Don't use a zero-byte file,
4647 # as systems may use methods other than mode bits to determine executability.
4648 cat >conf$$.file <<_ASEOF
4649 #! /bin/sh
4650 exit 0
4651 _ASEOF
4652 chmod +x conf$$.file
4653 if test -x conf$$.file >/dev/null 2>&1; then
4654 ac_executable_p="test -x"
4655 else
4656 ac_executable_p="test -f"
4658 rm -f conf$$.file
4660 # Extract the first word of "msgfmt", so it can be a program name with args.
4661 set dummy msgfmt; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_path_MSGFMT+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 case "$MSGFMT" in
4668 [\\/]* | ?:[\\/]*)
4669 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4672 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4673 for ac_dir in $PATH; do
4674 IFS="$ac_save_IFS"
4675 test -z "$ac_dir" && ac_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4678 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4679 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4680 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4681 break 2
4684 done
4685 done
4686 IFS="$ac_save_IFS"
4687 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4689 esac
4691 MSGFMT="$ac_cv_path_MSGFMT"
4692 if test "$MSGFMT" != ":"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4694 $as_echo "$MSGFMT" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4700 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4701 set dummy gmsgfmt; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_path_GMSGFMT+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 case $GMSGFMT in
4708 [\\/]* | ?:[\\/]*)
4709 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4723 done
4724 done
4725 IFS=$as_save_IFS
4727 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4729 esac
4731 GMSGFMT=$ac_cv_path_GMSGFMT
4732 if test -n "$GMSGFMT"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4734 $as_echo "$GMSGFMT" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4743 # Prepare PATH_SEPARATOR.
4744 # The user is always right.
4745 if test "${PATH_SEPARATOR+set}" != set; then
4746 echo "#! /bin/sh" >conf$$.sh
4747 echo "exit 0" >>conf$$.sh
4748 chmod +x conf$$.sh
4749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4750 PATH_SEPARATOR=';'
4751 else
4752 PATH_SEPARATOR=:
4754 rm -f conf$$.sh
4757 # Find out how to test for executable files. Don't use a zero-byte file,
4758 # as systems may use methods other than mode bits to determine executability.
4759 cat >conf$$.file <<_ASEOF
4760 #! /bin/sh
4761 exit 0
4762 _ASEOF
4763 chmod +x conf$$.file
4764 if test -x conf$$.file >/dev/null 2>&1; then
4765 ac_executable_p="test -x"
4766 else
4767 ac_executable_p="test -f"
4769 rm -f conf$$.file
4771 # Extract the first word of "xgettext", so it can be a program name with args.
4772 set dummy xgettext; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_path_XGETTEXT+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 case "$XGETTEXT" in
4779 [\\/]* | ?:[\\/]*)
4780 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4784 for ac_dir in $PATH; do
4785 IFS="$ac_save_IFS"
4786 test -z "$ac_dir" && ac_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4789 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4790 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4791 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4792 break 2
4795 done
4796 done
4797 IFS="$ac_save_IFS"
4798 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4800 esac
4802 XGETTEXT="$ac_cv_path_XGETTEXT"
4803 if test "$XGETTEXT" != ":"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4805 $as_echo "$XGETTEXT" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 rm -f messages.po
4814 # Prepare PATH_SEPARATOR.
4815 # The user is always right.
4816 if test "${PATH_SEPARATOR+set}" != set; then
4817 echo "#! /bin/sh" >conf$$.sh
4818 echo "exit 0" >>conf$$.sh
4819 chmod +x conf$$.sh
4820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4821 PATH_SEPARATOR=';'
4822 else
4823 PATH_SEPARATOR=:
4825 rm -f conf$$.sh
4828 # Find out how to test for executable files. Don't use a zero-byte file,
4829 # as systems may use methods other than mode bits to determine executability.
4830 cat >conf$$.file <<_ASEOF
4831 #! /bin/sh
4832 exit 0
4833 _ASEOF
4834 chmod +x conf$$.file
4835 if test -x conf$$.file >/dev/null 2>&1; then
4836 ac_executable_p="test -x"
4837 else
4838 ac_executable_p="test -f"
4840 rm -f conf$$.file
4842 # Extract the first word of "msgmerge", so it can be a program name with args.
4843 set dummy msgmerge; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_path_MSGMERGE+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 case "$MSGMERGE" in
4850 [\\/]* | ?:[\\/]*)
4851 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4854 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4855 for ac_dir in $PATH; do
4856 IFS="$ac_save_IFS"
4857 test -z "$ac_dir" && ac_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4860 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4861 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4862 break 2
4865 done
4866 done
4867 IFS="$ac_save_IFS"
4868 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4870 esac
4872 MSGMERGE="$ac_cv_path_MSGMERGE"
4873 if test "$MSGMERGE" != ":"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4875 $as_echo "$MSGMERGE" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 if test "$GMSGFMT" != ":"; then
4883 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4884 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4886 else
4887 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4889 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4890 GMSGFMT=":"
4894 if test "$XGETTEXT" != ":"; then
4895 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4896 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
4900 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
4901 XGETTEXT=":"
4903 rm -f messages.po
4906 ac_config_commands="$ac_config_commands default-1"
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_RANLIB+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$RANLIB"; then
4918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 RANLIB=$ac_cv_prog_RANLIB
4938 if test -n "$RANLIB"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4940 $as_echo "$RANLIB" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$ac_ct_RANLIB"; then
4958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_ac_ct_RANLIB="ranlib"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978 if test -n "$ac_ct_RANLIB"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4980 $as_echo "$ac_ct_RANLIB" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4986 if test "x$ac_ct_RANLIB" = x; then
4987 RANLIB=":"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995 RANLIB=$ac_ct_RANLIB
4997 else
4998 RANLIB="$ac_cv_prog_RANLIB"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
5003 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5004 if ${ac_cv_lib_cposix_strerror+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lcposix $LIBS"
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5012 /* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
5015 #ifdef __cplusplus
5016 extern "C"
5017 #endif
5018 char strerror ();
5020 main ()
5022 return strerror ();
5024 return 0;
5026 _ACEOF
5027 if ac_fn_c_try_link "$LINENO"; then :
5028 ac_cv_lib_cposix_strerror=yes
5029 else
5030 ac_cv_lib_cposix_strerror=no
5032 rm -f core conftest.err conftest.$ac_objext \
5033 conftest$ac_exeext conftest.$ac_ext
5034 LIBS=$ac_check_lib_save_LIBS
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
5037 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5038 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
5039 LIBS="$LIBS -lcposix"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5045 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5046 if ${ac_cv_c_const+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5053 main ()
5056 #ifndef __cplusplus
5057 /* Ultrix mips cc rejects this sort of thing. */
5058 typedef int charset[2];
5059 const charset cs = { 0, 0 };
5060 /* SunOS 4.1.1 cc rejects this. */
5061 char const *const *pcpcc;
5062 char **ppc;
5063 /* NEC SVR4.0.2 mips cc rejects this. */
5064 struct point {int x, y;};
5065 static struct point const zero = {0,0};
5066 /* AIX XL C 1.02.0.0 rejects this.
5067 It does not let you subtract one const X* pointer from another in
5068 an arm of an if-expression whose if-part is not a constant
5069 expression */
5070 const char *g = "string";
5071 pcpcc = &g + (g ? g-g : 0);
5072 /* HPUX 7.0 cc rejects these. */
5073 ++pcpcc;
5074 ppc = (char**) pcpcc;
5075 pcpcc = (char const *const *) ppc;
5076 { /* SCO 3.2v4 cc rejects this sort of thing. */
5077 char tx;
5078 char *t = &tx;
5079 char const *s = 0 ? (char *) 0 : (char const *) 0;
5081 *t++ = 0;
5082 if (s) return 0;
5084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5085 int x[] = {25, 17};
5086 const int *foo = &x[0];
5087 ++foo;
5089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5090 typedef const int *iptr;
5091 iptr p = 0;
5092 ++p;
5094 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5096 struct s { int j; const int *ap[3]; } bx;
5097 struct s *b = &bx; b->j = 5;
5099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5100 const int foo = 10;
5101 if (!foo) return 0;
5103 return !cs[0] && !zero.x;
5104 #endif
5107 return 0;
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"; then :
5111 ac_cv_c_const=yes
5112 else
5113 ac_cv_c_const=no
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5118 $as_echo "$ac_cv_c_const" >&6; }
5119 if test $ac_cv_c_const = no; then
5121 $as_echo "#define const /**/" >>confdefs.h
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
5127 $as_echo_n "checking for signed... " >&6; }
5128 if ${bh_cv_c_signed+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5135 main ()
5137 signed char x;
5139 return 0;
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 bh_cv_c_signed=yes
5144 else
5145 bh_cv_c_signed=no
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
5150 $as_echo "$bh_cv_c_signed" >&6; }
5151 if test $bh_cv_c_signed = no; then
5153 $as_echo "#define signed /**/" >>confdefs.h
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5158 $as_echo_n "checking for inline... " >&6; }
5159 if ${ac_cv_c_inline+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 ac_cv_c_inline=no
5163 for ac_kw in inline __inline__ __inline; do
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 #ifndef __cplusplus
5167 typedef int foo_t;
5168 static $ac_kw foo_t static_foo () {return 0; }
5169 $ac_kw foo_t foo () {return 0; }
5170 #endif
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 ac_cv_c_inline=$ac_kw
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 test "$ac_cv_c_inline" != no && break
5178 done
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5182 $as_echo "$ac_cv_c_inline" >&6; }
5184 case $ac_cv_c_inline in
5185 inline | yes) ;;
5187 case $ac_cv_c_inline in
5188 no) ac_val=;;
5189 *) ac_val=$ac_cv_c_inline;;
5190 esac
5191 cat >>confdefs.h <<_ACEOF
5192 #ifndef __cplusplus
5193 #define inline $ac_val
5194 #endif
5195 _ACEOF
5197 esac
5199 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5200 if test "x$ac_cv_type_off_t" = xyes; then :
5202 else
5204 cat >>confdefs.h <<_ACEOF
5205 #define off_t long int
5206 _ACEOF
5210 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5211 if test "x$ac_cv_type_size_t" = xyes; then :
5213 else
5215 cat >>confdefs.h <<_ACEOF
5216 #define size_t unsigned int
5217 _ACEOF
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
5223 $as_echo_n "checking for long long... " >&6; }
5224 if ${ac_cv_type_long_long+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 long long ll = 1LL; int i = 63;
5231 main ()
5233 long long llmax = (long long) -1;
5234 return ll << i | ll >> i | llmax / ll | llmax % ll;
5236 return 0;
5238 _ACEOF
5239 if ac_fn_c_try_link "$LINENO"; then :
5240 ac_cv_type_long_long=yes
5241 else
5242 ac_cv_type_long_long=no
5244 rm -f core conftest.err conftest.$ac_objext \
5245 conftest$ac_exeext conftest.$ac_ext
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
5248 $as_echo "$ac_cv_type_long_long" >&6; }
5249 if test $ac_cv_type_long_long = yes; then
5251 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
5257 $as_echo_n "checking for long double... " >&6; }
5258 if ${gt_cv_c_long_double+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test "$GCC" = yes; then
5262 gt_cv_c_long_double=yes
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5267 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5268 long double foo = 0.0;
5269 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5270 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5273 main ()
5277 return 0;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 gt_cv_c_long_double=yes
5282 else
5283 gt_cv_c_long_double=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
5289 $as_echo "$gt_cv_c_long_double" >&6; }
5290 if test $gt_cv_c_long_double = yes; then
5292 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5298 $as_echo_n "checking for wchar_t... " >&6; }
5299 if ${gt_cv_c_wchar_t+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <stddef.h>
5305 wchar_t foo = (wchar_t)'\0';
5307 main ()
5311 return 0;
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 gt_cv_c_wchar_t=yes
5316 else
5317 gt_cv_c_wchar_t=no
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5322 $as_echo "$gt_cv_c_wchar_t" >&6; }
5323 if test $gt_cv_c_wchar_t = yes; then
5325 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5331 $as_echo_n "checking for wint_t... " >&6; }
5332 if ${gt_cv_c_wint_t+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 #include <wchar.h>
5338 wint_t foo = (wchar_t)'\0';
5340 main ()
5344 return 0;
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 gt_cv_c_wint_t=yes
5349 else
5350 gt_cv_c_wint_t=no
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5355 $as_echo "$gt_cv_c_wint_t" >&6; }
5356 if test $gt_cv_c_wint_t = yes; then
5358 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5364 $as_echo_n "checking for inttypes.h... " >&6; }
5365 if ${jm_ac_cv_header_inttypes_h+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #include <sys/types.h>
5371 #include <inttypes.h>
5373 main ()
5375 uintmax_t i = (uintmax_t) -1;
5377 return 0;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381 jm_ac_cv_header_inttypes_h=yes
5382 else
5383 jm_ac_cv_header_inttypes_h=no
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
5388 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
5389 if test $jm_ac_cv_header_inttypes_h = yes; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5393 _ACEOF
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5399 $as_echo_n "checking for stdint.h... " >&6; }
5400 if ${jm_ac_cv_header_stdint_h+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <sys/types.h>
5406 #include <stdint.h>
5408 main ()
5410 uintmax_t i = (uintmax_t) -1;
5412 return 0;
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 jm_ac_cv_header_stdint_h=yes
5417 else
5418 jm_ac_cv_header_stdint_h=no
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
5423 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
5424 if test $jm_ac_cv_header_stdint_h = yes; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define HAVE_STDINT_H_WITH_UINTMAX 1
5428 _ACEOF
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
5436 $as_echo_n "checking for intmax_t... " >&6; }
5437 if ${gt_cv_c_intmax_t+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 #include <stddef.h>
5444 #include <stdlib.h>
5445 #if HAVE_STDINT_H_WITH_UINTMAX
5446 #include <stdint.h>
5447 #endif
5448 #if HAVE_INTTYPES_H_WITH_UINTMAX
5449 #include <inttypes.h>
5450 #endif
5453 main ()
5455 intmax_t x = -1;
5457 return 0;
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 gt_cv_c_intmax_t=yes
5462 else
5463 gt_cv_c_intmax_t=no
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
5468 $as_echo "$gt_cv_c_intmax_t" >&6; }
5469 if test $gt_cv_c_intmax_t = yes; then
5471 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
5478 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
5479 if ${gt_cv_func_printf_posix+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5483 if test "$cross_compiling" = yes; then :
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5488 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5489 notposix
5490 #endif
5492 _ACEOF
5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494 $EGREP "notposix" >/dev/null 2>&1; then :
5495 gt_cv_func_printf_posix="guessing no"
5496 else
5497 gt_cv_func_printf_posix="guessing yes"
5499 rm -f conftest*
5502 else
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5506 #include <stdio.h>
5507 #include <string.h>
5508 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5509 dollar expansion (possibly an autoconf bug). */
5510 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5511 static char buf[100];
5512 int main ()
5514 sprintf (buf, format, 33, 55);
5515 return (strcmp (buf, "55 33") != 0);
5517 _ACEOF
5518 if ac_fn_c_try_run "$LINENO"; then :
5519 gt_cv_func_printf_posix=yes
5520 else
5521 gt_cv_func_printf_posix=no
5523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5524 conftest.$ac_objext conftest.beam conftest.$ac_ext
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
5530 $as_echo "$gt_cv_func_printf_posix" >&6; }
5531 case $gt_cv_func_printf_posix in
5532 *yes)
5534 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
5537 esac
5539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5540 # for constant arguments. Useless!
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5542 $as_echo_n "checking for working alloca.h... " >&6; }
5543 if ${ac_cv_working_alloca_h+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <alloca.h>
5550 main ()
5552 char *p = (char *) alloca (2 * sizeof (int));
5553 if (p) return 0;
5555 return 0;
5557 _ACEOF
5558 if ac_fn_c_try_link "$LINENO"; then :
5559 ac_cv_working_alloca_h=yes
5560 else
5561 ac_cv_working_alloca_h=no
5563 rm -f core conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5567 $as_echo "$ac_cv_working_alloca_h" >&6; }
5568 if test $ac_cv_working_alloca_h = yes; then
5570 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5575 $as_echo_n "checking for alloca... " >&6; }
5576 if ${ac_cv_func_alloca_works+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #ifdef __GNUC__
5582 # define alloca __builtin_alloca
5583 #else
5584 # ifdef _MSC_VER
5585 # include <malloc.h>
5586 # define alloca _alloca
5587 # else
5588 # ifdef HAVE_ALLOCA_H
5589 # include <alloca.h>
5590 # else
5591 # ifdef _AIX
5592 #pragma alloca
5593 # else
5594 # ifndef alloca /* predefined by HP cc +Olibcalls */
5595 void *alloca (size_t);
5596 # endif
5597 # endif
5598 # endif
5599 # endif
5600 #endif
5603 main ()
5605 char *p = (char *) alloca (1);
5606 if (p) return 0;
5608 return 0;
5610 _ACEOF
5611 if ac_fn_c_try_link "$LINENO"; then :
5612 ac_cv_func_alloca_works=yes
5613 else
5614 ac_cv_func_alloca_works=no
5616 rm -f core conftest.err conftest.$ac_objext \
5617 conftest$ac_exeext conftest.$ac_ext
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5620 $as_echo "$ac_cv_func_alloca_works" >&6; }
5622 if test $ac_cv_func_alloca_works = yes; then
5624 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5626 else
5627 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5628 # that cause trouble. Some versions do not even contain alloca or
5629 # contain a buggy version. If you still want to use their alloca,
5630 # use ar to extract alloca.o from them instead of compiling alloca.c.
5632 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5634 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5638 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5639 if ${ac_cv_os_cray+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #if defined CRAY && ! defined CRAY2
5645 webecray
5646 #else
5647 wenotbecray
5648 #endif
5650 _ACEOF
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "webecray" >/dev/null 2>&1; then :
5653 ac_cv_os_cray=yes
5654 else
5655 ac_cv_os_cray=no
5657 rm -f conftest*
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5661 $as_echo "$ac_cv_os_cray" >&6; }
5662 if test $ac_cv_os_cray = yes; then
5663 for ac_func in _getb67 GETB67 getb67; do
5664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5668 cat >>confdefs.h <<_ACEOF
5669 #define CRAY_STACKSEG_END $ac_func
5670 _ACEOF
5672 break
5675 done
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5679 $as_echo_n "checking stack direction for C alloca... " >&6; }
5680 if ${ac_cv_c_stack_direction+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test "$cross_compiling" = yes; then :
5684 ac_cv_c_stack_direction=0
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 $ac_includes_default
5690 find_stack_direction (int *addr, int depth)
5692 int dir, dummy = 0;
5693 if (! addr)
5694 addr = &dummy;
5695 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5696 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5697 return dir + dummy;
5701 main (int argc, char **argv)
5703 return find_stack_direction (0, argc + !argv + 20) < 0;
5705 _ACEOF
5706 if ac_fn_c_try_run "$LINENO"; then :
5707 ac_cv_c_stack_direction=1
5708 else
5709 ac_cv_c_stack_direction=-1
5711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5717 $as_echo "$ac_cv_c_stack_direction" >&6; }
5718 cat >>confdefs.h <<_ACEOF
5719 #define STACK_DIRECTION $ac_cv_c_stack_direction
5720 _ACEOF
5728 for ac_header in $ac_header_list
5729 do :
5730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5733 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5734 cat >>confdefs.h <<_ACEOF
5735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5736 _ACEOF
5740 done
5749 for ac_func in getpagesize
5750 do :
5751 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5752 if test "x$ac_cv_func_getpagesize" = xyes; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define HAVE_GETPAGESIZE 1
5755 _ACEOF
5758 done
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5761 $as_echo_n "checking for working mmap... " >&6; }
5762 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 if test "$cross_compiling" = yes; then :
5766 ac_cv_func_mmap_fixed_mapped=no
5767 else
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 $ac_includes_default
5771 /* malloc might have been renamed as rpl_malloc. */
5772 #undef malloc
5774 /* Thanks to Mike Haertel and Jim Avera for this test.
5775 Here is a matrix of mmap possibilities:
5776 mmap private not fixed
5777 mmap private fixed at somewhere currently unmapped
5778 mmap private fixed at somewhere already mapped
5779 mmap shared not fixed
5780 mmap shared fixed at somewhere currently unmapped
5781 mmap shared fixed at somewhere already mapped
5782 For private mappings, we should verify that changes cannot be read()
5783 back from the file, nor mmap's back from the file at a different
5784 address. (There have been systems where private was not correctly
5785 implemented like the infamous i386 svr4.0, and systems where the
5786 VM page cache was not coherent with the file system buffer cache
5787 like early versions of FreeBSD and possibly contemporary NetBSD.)
5788 For shared mappings, we should conversely verify that changes get
5789 propagated back to all the places they're supposed to be.
5791 Grep wants private fixed already mapped.
5792 The main things grep needs to know about mmap are:
5793 * does it exist and is it safe to write into the mmap'd area
5794 * how to use it (BSD variants) */
5796 #include <fcntl.h>
5797 #include <sys/mman.h>
5799 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5800 char *malloc ();
5801 #endif
5803 /* This mess was copied from the GNU getpagesize.h. */
5804 #ifndef HAVE_GETPAGESIZE
5805 # ifdef _SC_PAGESIZE
5806 # define getpagesize() sysconf(_SC_PAGESIZE)
5807 # else /* no _SC_PAGESIZE */
5808 # ifdef HAVE_SYS_PARAM_H
5809 # include <sys/param.h>
5810 # ifdef EXEC_PAGESIZE
5811 # define getpagesize() EXEC_PAGESIZE
5812 # else /* no EXEC_PAGESIZE */
5813 # ifdef NBPG
5814 # define getpagesize() NBPG * CLSIZE
5815 # ifndef CLSIZE
5816 # define CLSIZE 1
5817 # endif /* no CLSIZE */
5818 # else /* no NBPG */
5819 # ifdef NBPC
5820 # define getpagesize() NBPC
5821 # else /* no NBPC */
5822 # ifdef PAGESIZE
5823 # define getpagesize() PAGESIZE
5824 # endif /* PAGESIZE */
5825 # endif /* no NBPC */
5826 # endif /* no NBPG */
5827 # endif /* no EXEC_PAGESIZE */
5828 # else /* no HAVE_SYS_PARAM_H */
5829 # define getpagesize() 8192 /* punt totally */
5830 # endif /* no HAVE_SYS_PARAM_H */
5831 # endif /* no _SC_PAGESIZE */
5833 #endif /* no HAVE_GETPAGESIZE */
5836 main ()
5838 char *data, *data2, *data3;
5839 const char *cdata2;
5840 int i, pagesize;
5841 int fd, fd2;
5843 pagesize = getpagesize ();
5845 /* First, make a file with some known garbage in it. */
5846 data = (char *) malloc (pagesize);
5847 if (!data)
5848 return 1;
5849 for (i = 0; i < pagesize; ++i)
5850 *(data + i) = rand ();
5851 umask (0);
5852 fd = creat ("conftest.mmap", 0600);
5853 if (fd < 0)
5854 return 2;
5855 if (write (fd, data, pagesize) != pagesize)
5856 return 3;
5857 close (fd);
5859 /* Next, check that the tail of a page is zero-filled. File must have
5860 non-zero length, otherwise we risk SIGBUS for entire page. */
5861 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5862 if (fd2 < 0)
5863 return 4;
5864 cdata2 = "";
5865 if (write (fd2, cdata2, 1) != 1)
5866 return 5;
5867 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5868 if (data2 == MAP_FAILED)
5869 return 6;
5870 for (i = 0; i < pagesize; ++i)
5871 if (*(data2 + i))
5872 return 7;
5873 close (fd2);
5874 if (munmap (data2, pagesize))
5875 return 8;
5877 /* Next, try to mmap the file at a fixed address which already has
5878 something else allocated at it. If we can, also make sure that
5879 we see the same garbage. */
5880 fd = open ("conftest.mmap", O_RDWR);
5881 if (fd < 0)
5882 return 9;
5883 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5884 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5885 return 10;
5886 for (i = 0; i < pagesize; ++i)
5887 if (*(data + i) != *(data2 + i))
5888 return 11;
5890 /* Finally, make sure that changes to the mapped area do not
5891 percolate back to the file as seen by read(). (This is a bug on
5892 some variants of i386 svr4.0.) */
5893 for (i = 0; i < pagesize; ++i)
5894 *(data2 + i) = *(data2 + i) + 1;
5895 data3 = (char *) malloc (pagesize);
5896 if (!data3)
5897 return 12;
5898 if (read (fd, data3, pagesize) != pagesize)
5899 return 13;
5900 for (i = 0; i < pagesize; ++i)
5901 if (*(data + i) != *(data3 + i))
5902 return 14;
5903 close (fd);
5904 return 0;
5906 _ACEOF
5907 if ac_fn_c_try_run "$LINENO"; then :
5908 ac_cv_func_mmap_fixed_mapped=yes
5909 else
5910 ac_cv_func_mmap_fixed_mapped=no
5912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5913 conftest.$ac_objext conftest.beam conftest.$ac_ext
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5918 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5921 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5924 rm -f conftest.mmap conftest.txt
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5928 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5929 if ${ac_cv_gnu_library_2_1+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 #include <features.h>
5936 #ifdef __GNU_LIBRARY__
5937 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5938 Lucky GNU user
5939 #endif
5940 #endif
5942 _ACEOF
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5945 ac_cv_gnu_library_2_1=yes
5946 else
5947 ac_cv_gnu_library_2_1=no
5949 rm -f conftest*
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5955 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
5957 GLIBC21="$ac_cv_gnu_library_2_1"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5963 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5964 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5968 if test "$cross_compiling" = yes; then :
5970 # Guess based on the CPU.
5971 case "$host_cpu" in
5972 alpha* | i3456786 | m68k | s390*)
5973 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5975 gt_cv_int_divbyzero_sigfpe="guessing no";;
5976 esac
5978 else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 #include <stdlib.h>
5983 #include <signal.h>
5985 static void
5986 #ifdef __cplusplus
5987 sigfpe_handler (int sig)
5988 #else
5989 sigfpe_handler (sig) int sig;
5990 #endif
5992 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5993 exit (sig != SIGFPE);
5996 int x = 1;
5997 int y = 0;
5998 int z;
5999 int nan;
6001 int main ()
6003 signal (SIGFPE, sigfpe_handler);
6004 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6005 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6006 signal (SIGTRAP, sigfpe_handler);
6007 #endif
6008 /* Linux/SPARC yields signal SIGILL. */
6009 #if defined (__sparc__) && defined (__linux__)
6010 signal (SIGILL, sigfpe_handler);
6011 #endif
6013 z = x / y;
6014 nan = y / y;
6015 exit (1);
6018 _ACEOF
6019 if ac_fn_c_try_run "$LINENO"; then :
6020 gt_cv_int_divbyzero_sigfpe=yes
6021 else
6022 gt_cv_int_divbyzero_sigfpe=no
6024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6025 conftest.$ac_objext conftest.beam conftest.$ac_ext
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
6031 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
6032 case "$gt_cv_int_divbyzero_sigfpe" in
6033 *yes) value=1;;
6034 *) value=0;;
6035 esac
6037 cat >>confdefs.h <<_ACEOF
6038 #define INTDIV0_RAISES_SIGFPE $value
6039 _ACEOF
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
6044 $as_echo_n "checking for unsigned long long... " >&6; }
6045 if ${ac_cv_type_unsigned_long_long+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 unsigned long long ull = 1ULL; int i = 63;
6052 main ()
6054 unsigned long long ullmax = (unsigned long long) -1;
6055 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6057 return 0;
6059 _ACEOF
6060 if ac_fn_c_try_link "$LINENO"; then :
6061 ac_cv_type_unsigned_long_long=yes
6062 else
6063 ac_cv_type_unsigned_long_long=no
6065 rm -f core conftest.err conftest.$ac_objext \
6066 conftest$ac_exeext conftest.$ac_ext
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
6069 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
6070 if test $ac_cv_type_unsigned_long_long = yes; then
6072 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
6079 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6081 test $ac_cv_type_unsigned_long_long = yes \
6082 && ac_type='unsigned long long' \
6083 || ac_type='unsigned long'
6085 cat >>confdefs.h <<_ACEOF
6086 #define uintmax_t $ac_type
6087 _ACEOF
6089 else
6091 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6097 $as_echo_n "checking for inttypes.h... " >&6; }
6098 if ${gt_cv_header_inttypes_h+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <sys/types.h>
6105 #include <inttypes.h>
6107 main ()
6111 return 0;
6113 _ACEOF
6114 if ac_fn_c_try_compile "$LINENO"; then :
6115 gt_cv_header_inttypes_h=yes
6116 else
6117 gt_cv_header_inttypes_h=no
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
6123 $as_echo "$gt_cv_header_inttypes_h" >&6; }
6124 if test $gt_cv_header_inttypes_h = yes; then
6126 cat >>confdefs.h <<_ACEOF
6127 #define HAVE_INTTYPES_H 1
6128 _ACEOF
6134 if test $gt_cv_header_inttypes_h = yes; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6136 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6137 if ${gt_cv_inttypes_pri_broken+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <inttypes.h>
6144 #ifdef PRId32
6145 char *p = PRId32;
6146 #endif
6149 main ()
6153 return 0;
6155 _ACEOF
6156 if ac_fn_c_try_compile "$LINENO"; then :
6157 gt_cv_inttypes_pri_broken=no
6158 else
6159 gt_cv_inttypes_pri_broken=yes
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6165 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6167 if test "$gt_cv_inttypes_pri_broken" = yes; then
6169 cat >>confdefs.h <<_ACEOF
6170 #define PRI_MACROS_BROKEN 1
6171 _ACEOF
6176 for ac_header in stdint.h
6177 do :
6178 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6179 if test "x$ac_cv_header_stdint_h" = xyes; then :
6180 cat >>confdefs.h <<_ACEOF
6181 #define HAVE_STDINT_H 1
6182 _ACEOF
6186 done
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
6189 $as_echo_n "checking for SIZE_MAX... " >&6; }
6190 result=
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6194 #include <limits.h>
6195 #if HAVE_STDINT_H
6196 #include <stdint.h>
6197 #endif
6198 #ifdef SIZE_MAX
6199 Found it
6200 #endif
6202 _ACEOF
6203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6204 $EGREP "Found it" >/dev/null 2>&1; then :
6205 result=yes
6207 rm -f conftest*
6209 if test -z "$result"; then
6210 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
6212 else
6213 result=?
6217 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
6219 else
6220 result=?
6224 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
6226 else
6227 result=?
6231 if test "$fits_in_uint" = 1; then
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <stddef.h>
6235 extern size_t foo;
6236 extern unsigned long foo;
6239 main ()
6243 return 0;
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"; then :
6247 fits_in_uint=0
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 if test -z "$result"; then
6252 if test "$fits_in_uint" = 1; then
6253 result="$res_hi$res_lo"U
6254 else
6255 result="$res_hi$res_lo"UL
6257 else
6258 result='~(size_t)0'
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6262 $as_echo "$result" >&6; }
6263 if test "$result" != yes; then
6265 cat >>confdefs.h <<_ACEOF
6266 #define SIZE_MAX $result
6267 _ACEOF
6273 for ac_header in stdint.h
6274 do :
6275 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6276 if test "x$ac_cv_header_stdint_h" = xyes; then :
6277 cat >>confdefs.h <<_ACEOF
6278 #define HAVE_STDINT_H 1
6279 _ACEOF
6283 done
6287 if test "X$prefix" = "XNONE"; then
6288 acl_final_prefix="$ac_default_prefix"
6289 else
6290 acl_final_prefix="$prefix"
6292 if test "X$exec_prefix" = "XNONE"; then
6293 acl_final_exec_prefix='${prefix}'
6294 else
6295 acl_final_exec_prefix="$exec_prefix"
6297 acl_save_prefix="$prefix"
6298 prefix="$acl_final_prefix"
6299 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6300 prefix="$acl_save_prefix"
6303 # Check whether --with-gnu-ld was given.
6304 if test "${with_gnu_ld+set}" = set; then :
6305 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6306 else
6307 with_gnu_ld=no
6310 # Prepare PATH_SEPARATOR.
6311 # The user is always right.
6312 if test "${PATH_SEPARATOR+set}" != set; then
6313 echo "#! /bin/sh" >conf$$.sh
6314 echo "exit 0" >>conf$$.sh
6315 chmod +x conf$$.sh
6316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6317 PATH_SEPARATOR=';'
6318 else
6319 PATH_SEPARATOR=:
6321 rm -f conf$$.sh
6323 ac_prog=ld
6324 if test "$GCC" = yes; then
6325 # Check if gcc -print-prog-name=ld gives a path.
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6327 $as_echo_n "checking for ld used by GCC... " >&6; }
6328 case $host in
6329 *-*-mingw*)
6330 # gcc leaves a trailing carriage return which upsets mingw
6331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6334 esac
6335 case $ac_prog in
6336 # Accept absolute paths.
6337 [\\/]* | [A-Za-z]:[\\/]*)
6338 re_direlt='/[^/][^/]*/\.\./'
6339 # Canonicalize the path of ld
6340 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6341 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6342 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6343 done
6344 test -z "$LD" && LD="$ac_prog"
6347 # If it fails, then pretend we aren't using GCC.
6348 ac_prog=ld
6351 # If it is relative, then search for the first ld in PATH.
6352 with_gnu_ld=unknown
6354 esac
6355 elif test "$with_gnu_ld" = yes; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6357 $as_echo_n "checking for GNU ld... " >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6360 $as_echo_n "checking for non-GNU ld... " >&6; }
6362 if ${acl_cv_path_LD+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -z "$LD"; then
6366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6367 for ac_dir in $PATH; do
6368 test -z "$ac_dir" && ac_dir=.
6369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6370 acl_cv_path_LD="$ac_dir/$ac_prog"
6371 # Check to see if the program is GNU ld. I'd rather use --version,
6372 # but apparently some GNU ld's only accept -v.
6373 # Break only if it was the GNU/non-GNU ld that we prefer.
6374 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6375 *GNU* | *'with BFD'*)
6376 test "$with_gnu_ld" != no && break ;;
6378 test "$with_gnu_ld" != yes && break ;;
6379 esac
6381 done
6382 IFS="$ac_save_ifs"
6383 else
6384 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6388 LD="$acl_cv_path_LD"
6389 if test -n "$LD"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6391 $as_echo "$LD" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6396 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6398 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6399 if ${acl_cv_prog_gnu_ld+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6403 case `$LD -v 2>&1 </dev/null` in
6404 *GNU* | *'with BFD'*)
6405 acl_cv_prog_gnu_ld=yes ;;
6407 acl_cv_prog_gnu_ld=no ;;
6408 esac
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6411 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6412 with_gnu_ld=$acl_cv_prog_gnu_ld
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6417 $as_echo_n "checking for shared library run path origin... " >&6; }
6418 if ${acl_cv_rpath+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6422 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6423 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6424 . ./conftest.sh
6425 rm -f ./conftest.sh
6426 acl_cv_rpath=done
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6430 $as_echo "$acl_cv_rpath" >&6; }
6431 wl="$acl_cv_wl"
6432 libext="$acl_cv_libext"
6433 shlibext="$acl_cv_shlibext"
6434 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6435 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6436 hardcode_direct="$acl_cv_hardcode_direct"
6437 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6438 # Check whether --enable-rpath was given.
6439 if test "${enable_rpath+set}" = set; then :
6440 enableval=$enable_rpath; :
6441 else
6442 enable_rpath=yes
6452 use_additional=yes
6454 acl_save_prefix="$prefix"
6455 prefix="$acl_final_prefix"
6456 acl_save_exec_prefix="$exec_prefix"
6457 exec_prefix="$acl_final_exec_prefix"
6459 eval additional_includedir=\"$includedir\"
6460 eval additional_libdir=\"$libdir\"
6462 exec_prefix="$acl_save_exec_prefix"
6463 prefix="$acl_save_prefix"
6466 # Check whether --with-libiconv-prefix was given.
6467 if test "${with_libiconv_prefix+set}" = set; then :
6468 withval=$with_libiconv_prefix;
6469 if test "X$withval" = "Xno"; then
6470 use_additional=no
6471 else
6472 if test "X$withval" = "X"; then
6474 acl_save_prefix="$prefix"
6475 prefix="$acl_final_prefix"
6476 acl_save_exec_prefix="$exec_prefix"
6477 exec_prefix="$acl_final_exec_prefix"
6479 eval additional_includedir=\"$includedir\"
6480 eval additional_libdir=\"$libdir\"
6482 exec_prefix="$acl_save_exec_prefix"
6483 prefix="$acl_save_prefix"
6485 else
6486 additional_includedir="$withval/include"
6487 additional_libdir="$withval/lib"
6493 LIBICONV=
6494 LTLIBICONV=
6495 INCICONV=
6496 rpathdirs=
6497 ltrpathdirs=
6498 names_already_handled=
6499 names_next_round='iconv '
6500 while test -n "$names_next_round"; do
6501 names_this_round="$names_next_round"
6502 names_next_round=
6503 for name in $names_this_round; do
6504 already_handled=
6505 for n in $names_already_handled; do
6506 if test "$n" = "$name"; then
6507 already_handled=yes
6508 break
6510 done
6511 if test -z "$already_handled"; then
6512 names_already_handled="$names_already_handled $name"
6513 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6514 eval value=\"\$HAVE_LIB$uppername\"
6515 if test -n "$value"; then
6516 if test "$value" = yes; then
6517 eval value=\"\$LIB$uppername\"
6518 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6519 eval value=\"\$LTLIB$uppername\"
6520 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6521 else
6524 else
6525 found_dir=
6526 found_la=
6527 found_so=
6528 found_a=
6529 if test $use_additional = yes; then
6530 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6531 found_dir="$additional_libdir"
6532 found_so="$additional_libdir/lib$name.$shlibext"
6533 if test -f "$additional_libdir/lib$name.la"; then
6534 found_la="$additional_libdir/lib$name.la"
6536 else
6537 if test -f "$additional_libdir/lib$name.$libext"; then
6538 found_dir="$additional_libdir"
6539 found_a="$additional_libdir/lib$name.$libext"
6540 if test -f "$additional_libdir/lib$name.la"; then
6541 found_la="$additional_libdir/lib$name.la"
6546 if test "X$found_dir" = "X"; then
6547 for x in $LDFLAGS $LTLIBICONV; do
6549 acl_save_prefix="$prefix"
6550 prefix="$acl_final_prefix"
6551 acl_save_exec_prefix="$exec_prefix"
6552 exec_prefix="$acl_final_exec_prefix"
6553 eval x=\"$x\"
6554 exec_prefix="$acl_save_exec_prefix"
6555 prefix="$acl_save_prefix"
6557 case "$x" in
6558 -L*)
6559 dir=`echo "X$x" | sed -e 's/^X-L//'`
6560 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6561 found_dir="$dir"
6562 found_so="$dir/lib$name.$shlibext"
6563 if test -f "$dir/lib$name.la"; then
6564 found_la="$dir/lib$name.la"
6566 else
6567 if test -f "$dir/lib$name.$libext"; then
6568 found_dir="$dir"
6569 found_a="$dir/lib$name.$libext"
6570 if test -f "$dir/lib$name.la"; then
6571 found_la="$dir/lib$name.la"
6576 esac
6577 if test "X$found_dir" != "X"; then
6578 break
6580 done
6582 if test "X$found_dir" != "X"; then
6583 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6584 if test "X$found_so" != "X"; then
6585 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6587 else
6588 haveit=
6589 for x in $ltrpathdirs; do
6590 if test "X$x" = "X$found_dir"; then
6591 haveit=yes
6592 break
6594 done
6595 if test -z "$haveit"; then
6596 ltrpathdirs="$ltrpathdirs $found_dir"
6598 if test "$hardcode_direct" = yes; then
6599 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6600 else
6601 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6602 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6603 haveit=
6604 for x in $rpathdirs; do
6605 if test "X$x" = "X$found_dir"; then
6606 haveit=yes
6607 break
6609 done
6610 if test -z "$haveit"; then
6611 rpathdirs="$rpathdirs $found_dir"
6613 else
6614 haveit=
6615 for x in $LDFLAGS $LIBICONV; do
6617 acl_save_prefix="$prefix"
6618 prefix="$acl_final_prefix"
6619 acl_save_exec_prefix="$exec_prefix"
6620 exec_prefix="$acl_final_exec_prefix"
6621 eval x=\"$x\"
6622 exec_prefix="$acl_save_exec_prefix"
6623 prefix="$acl_save_prefix"
6625 if test "X$x" = "X-L$found_dir"; then
6626 haveit=yes
6627 break
6629 done
6630 if test -z "$haveit"; then
6631 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6633 if test "$hardcode_minus_L" != no; then
6634 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6635 else
6636 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6641 else
6642 if test "X$found_a" != "X"; then
6643 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6644 else
6645 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6648 additional_includedir=
6649 case "$found_dir" in
6650 */lib | */lib/)
6651 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6652 additional_includedir="$basedir/include"
6654 esac
6655 if test "X$additional_includedir" != "X"; then
6656 if test "X$additional_includedir" != "X/usr/include"; then
6657 haveit=
6658 if test "X$additional_includedir" = "X/usr/local/include"; then
6659 if test -n "$GCC"; then
6660 case $host_os in
6661 linux*) haveit=yes;;
6662 esac
6665 if test -z "$haveit"; then
6666 for x in $CPPFLAGS $INCICONV; do
6668 acl_save_prefix="$prefix"
6669 prefix="$acl_final_prefix"
6670 acl_save_exec_prefix="$exec_prefix"
6671 exec_prefix="$acl_final_exec_prefix"
6672 eval x=\"$x\"
6673 exec_prefix="$acl_save_exec_prefix"
6674 prefix="$acl_save_prefix"
6676 if test "X$x" = "X-I$additional_includedir"; then
6677 haveit=yes
6678 break
6680 done
6681 if test -z "$haveit"; then
6682 if test -d "$additional_includedir"; then
6683 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6689 if test -n "$found_la"; then
6690 save_libdir="$libdir"
6691 case "$found_la" in
6692 */* | *\\*) . "$found_la" ;;
6693 *) . "./$found_la" ;;
6694 esac
6695 libdir="$save_libdir"
6696 for dep in $dependency_libs; do
6697 case "$dep" in
6698 -L*)
6699 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6700 if test "X$additional_libdir" != "X/usr/lib"; then
6701 haveit=
6702 if test "X$additional_libdir" = "X/usr/local/lib"; then
6703 if test -n "$GCC"; then
6704 case $host_os in
6705 linux*) haveit=yes;;
6706 esac
6709 if test -z "$haveit"; then
6710 haveit=
6711 for x in $LDFLAGS $LIBICONV; do
6713 acl_save_prefix="$prefix"
6714 prefix="$acl_final_prefix"
6715 acl_save_exec_prefix="$exec_prefix"
6716 exec_prefix="$acl_final_exec_prefix"
6717 eval x=\"$x\"
6718 exec_prefix="$acl_save_exec_prefix"
6719 prefix="$acl_save_prefix"
6721 if test "X$x" = "X-L$additional_libdir"; then
6722 haveit=yes
6723 break
6725 done
6726 if test -z "$haveit"; then
6727 if test -d "$additional_libdir"; then
6728 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6731 haveit=
6732 for x in $LDFLAGS $LTLIBICONV; do
6734 acl_save_prefix="$prefix"
6735 prefix="$acl_final_prefix"
6736 acl_save_exec_prefix="$exec_prefix"
6737 exec_prefix="$acl_final_exec_prefix"
6738 eval x=\"$x\"
6739 exec_prefix="$acl_save_exec_prefix"
6740 prefix="$acl_save_prefix"
6742 if test "X$x" = "X-L$additional_libdir"; then
6743 haveit=yes
6744 break
6746 done
6747 if test -z "$haveit"; then
6748 if test -d "$additional_libdir"; then
6749 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6755 -R*)
6756 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6757 if test "$enable_rpath" != no; then
6758 haveit=
6759 for x in $rpathdirs; do
6760 if test "X$x" = "X$dir"; then
6761 haveit=yes
6762 break
6764 done
6765 if test -z "$haveit"; then
6766 rpathdirs="$rpathdirs $dir"
6768 haveit=
6769 for x in $ltrpathdirs; do
6770 if test "X$x" = "X$dir"; then
6771 haveit=yes
6772 break
6774 done
6775 if test -z "$haveit"; then
6776 ltrpathdirs="$ltrpathdirs $dir"
6780 -l*)
6781 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6783 *.la)
6784 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6787 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6788 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6790 esac
6791 done
6793 else
6794 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6795 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6799 done
6800 done
6801 if test "X$rpathdirs" != "X"; then
6802 if test -n "$hardcode_libdir_separator"; then
6803 alldirs=
6804 for found_dir in $rpathdirs; do
6805 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6806 done
6807 acl_save_libdir="$libdir"
6808 libdir="$alldirs"
6809 eval flag=\"$hardcode_libdir_flag_spec\"
6810 libdir="$acl_save_libdir"
6811 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6812 else
6813 for found_dir in $rpathdirs; do
6814 acl_save_libdir="$libdir"
6815 libdir="$found_dir"
6816 eval flag=\"$hardcode_libdir_flag_spec\"
6817 libdir="$acl_save_libdir"
6818 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6819 done
6822 if test "X$ltrpathdirs" != "X"; then
6823 for found_dir in $ltrpathdirs; do
6824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6825 done
6835 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
6836 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
6838 else
6840 $as_echo "#define ptrdiff_t long" >>confdefs.h
6845 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6846 stdlib.h string.h unistd.h sys/param.h
6847 do :
6848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6850 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6853 _ACEOF
6857 done
6859 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
6860 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
6861 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
6862 __fsetlocking
6863 do :
6864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6867 cat >>confdefs.h <<_ACEOF
6868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6869 _ACEOF
6872 done
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
6877 $as_echo_n "checking whether _snprintf is declared... " >&6; }
6878 if ${ac_cv_have_decl__snprintf+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <stdio.h>
6885 main ()
6888 #ifndef _snprintf
6889 char *p = (char *) _snprintf;
6890 #endif
6893 return 0;
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 ac_cv_have_decl__snprintf=yes
6898 else
6899 ac_cv_have_decl__snprintf=no
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
6904 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
6905 if test $ac_cv_have_decl__snprintf = yes; then
6906 gt_value=1
6907 else
6908 gt_value=0
6911 cat >>confdefs.h <<_ACEOF
6912 #define HAVE_DECL__SNPRINTF $gt_value
6913 _ACEOF
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
6918 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
6919 if ${ac_cv_have_decl__snwprintf+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 #include <stdio.h>
6926 main ()
6929 #ifndef _snwprintf
6930 char *p = (char *) _snwprintf;
6931 #endif
6934 return 0;
6936 _ACEOF
6937 if ac_fn_c_try_compile "$LINENO"; then :
6938 ac_cv_have_decl__snwprintf=yes
6939 else
6940 ac_cv_have_decl__snwprintf=no
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
6945 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
6946 if test $ac_cv_have_decl__snwprintf = yes; then
6947 gt_value=1
6948 else
6949 gt_value=0
6952 cat >>confdefs.h <<_ACEOF
6953 #define HAVE_DECL__SNWPRINTF $gt_value
6954 _ACEOF
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
6960 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
6961 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 #include <stdio.h>
6968 main ()
6971 #ifndef feof_unlocked
6972 char *p = (char *) feof_unlocked;
6973 #endif
6976 return 0;
6978 _ACEOF
6979 if ac_fn_c_try_compile "$LINENO"; then :
6980 ac_cv_have_decl_feof_unlocked=yes
6981 else
6982 ac_cv_have_decl_feof_unlocked=no
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
6987 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
6988 if test $ac_cv_have_decl_feof_unlocked = yes; then
6989 gt_value=1
6990 else
6991 gt_value=0
6994 cat >>confdefs.h <<_ACEOF
6995 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
6996 _ACEOF
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7001 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7002 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 #include <stdio.h>
7009 main ()
7012 #ifndef fgets_unlocked
7013 char *p = (char *) fgets_unlocked;
7014 #endif
7017 return 0;
7019 _ACEOF
7020 if ac_fn_c_try_compile "$LINENO"; then :
7021 ac_cv_have_decl_fgets_unlocked=yes
7022 else
7023 ac_cv_have_decl_fgets_unlocked=no
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7028 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7029 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7030 gt_value=1
7031 else
7032 gt_value=0
7035 cat >>confdefs.h <<_ACEOF
7036 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7037 _ACEOF
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
7042 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
7043 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <stdio.h>
7050 main ()
7053 #ifndef getc_unlocked
7054 char *p = (char *) getc_unlocked;
7055 #endif
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 ac_cv_have_decl_getc_unlocked=yes
7063 else
7064 ac_cv_have_decl_getc_unlocked=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
7069 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
7070 if test $ac_cv_have_decl_getc_unlocked = yes; then
7071 gt_value=1
7072 else
7073 gt_value=0
7076 cat >>confdefs.h <<_ACEOF
7077 #define HAVE_DECL_GETC_UNLOCKED $gt_value
7078 _ACEOF
7082 case $gt_cv_func_printf_posix in
7083 *yes) HAVE_POSIX_PRINTF=1 ;;
7084 *) HAVE_POSIX_PRINTF=0 ;;
7085 esac
7087 if test "$ac_cv_func_asprintf" = yes; then
7088 HAVE_ASPRINTF=1
7089 else
7090 HAVE_ASPRINTF=0
7093 if test "$ac_cv_func_snprintf" = yes; then
7094 HAVE_SNPRINTF=1
7095 else
7096 HAVE_SNPRINTF=0
7099 if test "$ac_cv_func_wprintf" = yes; then
7100 HAVE_WPRINTF=1
7101 else
7102 HAVE_WPRINTF=0
7111 am_save_CPPFLAGS="$CPPFLAGS"
7113 for element in $INCICONV; do
7114 haveit=
7115 for x in $CPPFLAGS; do
7117 acl_save_prefix="$prefix"
7118 prefix="$acl_final_prefix"
7119 acl_save_exec_prefix="$exec_prefix"
7120 exec_prefix="$acl_final_exec_prefix"
7121 eval x=\"$x\"
7122 exec_prefix="$acl_save_exec_prefix"
7123 prefix="$acl_save_prefix"
7125 if test "X$x" = "X$element"; then
7126 haveit=yes
7127 break
7129 done
7130 if test -z "$haveit"; then
7131 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7133 done
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7137 $as_echo_n "checking for iconv... " >&6; }
7138 if ${am_cv_func_iconv+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7142 am_cv_func_iconv="no, consider installing GNU libiconv"
7143 am_cv_lib_iconv=no
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #include <stdlib.h>
7147 #include <iconv.h>
7149 main ()
7151 iconv_t cd = iconv_open("","");
7152 iconv(cd,NULL,NULL,NULL,NULL);
7153 iconv_close(cd);
7155 return 0;
7157 _ACEOF
7158 if ac_fn_c_try_link "$LINENO"; then :
7159 am_cv_func_iconv=yes
7161 rm -f core conftest.err conftest.$ac_objext \
7162 conftest$ac_exeext conftest.$ac_ext
7163 if test "$am_cv_func_iconv" != yes; then
7164 am_save_LIBS="$LIBS"
7165 LIBS="$LIBS $LIBICONV"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #include <stdlib.h>
7169 #include <iconv.h>
7171 main ()
7173 iconv_t cd = iconv_open("","");
7174 iconv(cd,NULL,NULL,NULL,NULL);
7175 iconv_close(cd);
7177 return 0;
7179 _ACEOF
7180 if ac_fn_c_try_link "$LINENO"; then :
7181 am_cv_lib_iconv=yes
7182 am_cv_func_iconv=yes
7184 rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LIBS="$am_save_LIBS"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7191 $as_echo "$am_cv_func_iconv" >&6; }
7192 if test "$am_cv_func_iconv" = yes; then
7194 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7197 if test "$am_cv_lib_iconv" = yes; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7199 $as_echo_n "checking how to link with libiconv... " >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7201 $as_echo "$LIBICONV" >&6; }
7202 else
7203 CPPFLAGS="$am_save_CPPFLAGS"
7204 LIBICONV=
7205 LTLIBICONV=
7210 if test "$am_cv_func_iconv" = yes; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7212 $as_echo_n "checking for iconv declaration... " >&6; }
7213 if ${am_cv_proto_iconv+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7220 #include <stdlib.h>
7221 #include <iconv.h>
7222 extern
7223 #ifdef __cplusplus
7225 #endif
7226 #if defined(__STDC__) || defined(__cplusplus)
7227 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7228 #else
7229 size_t iconv();
7230 #endif
7233 main ()
7237 return 0;
7239 _ACEOF
7240 if ac_fn_c_try_compile "$LINENO"; then :
7241 am_cv_proto_iconv_arg1=""
7242 else
7243 am_cv_proto_iconv_arg1="const"
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7249 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7251 }$am_cv_proto_iconv" >&5
7252 $as_echo "${ac_t:-
7253 }$am_cv_proto_iconv" >&6; }
7255 cat >>confdefs.h <<_ACEOF
7256 #define ICONV_CONST $am_cv_proto_iconv_arg1
7257 _ACEOF
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7263 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7264 if ${am_cv_langinfo_codeset+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 #include <langinfo.h>
7271 main ()
7273 char* cs = nl_langinfo(CODESET);
7275 return 0;
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 am_cv_langinfo_codeset=yes
7280 else
7281 am_cv_langinfo_codeset=no
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7288 $as_echo "$am_cv_langinfo_codeset" >&6; }
7289 if test $am_cv_langinfo_codeset = yes; then
7291 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7295 if test $ac_cv_header_locale_h = yes; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7298 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7299 if ${am_cv_val_LC_MESSAGES+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <locale.h>
7306 main ()
7308 return LC_MESSAGES
7310 return 0;
7312 _ACEOF
7313 if ac_fn_c_try_link "$LINENO"; then :
7314 am_cv_val_LC_MESSAGES=yes
7315 else
7316 am_cv_val_LC_MESSAGES=no
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7322 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7323 if test $am_cv_val_LC_MESSAGES = yes; then
7325 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7331 for ac_prog in bison
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_INTLBISON+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$INTLBISON"; then
7341 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_INTLBISON="$ac_prog"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7354 done
7355 done
7356 IFS=$as_save_IFS
7360 INTLBISON=$ac_cv_prog_INTLBISON
7361 if test -n "$INTLBISON"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7363 $as_echo "$INTLBISON" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7370 test -n "$INTLBISON" && break
7371 done
7373 if test -z "$INTLBISON"; then
7374 ac_verc_fail=yes
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7377 $as_echo_n "checking version of bison... " >&6; }
7378 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7379 case $ac_prog_version in
7380 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7381 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7382 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7383 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7384 esac
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7386 $as_echo "$ac_prog_version" >&6; }
7388 if test $ac_verc_fail = yes; then
7389 INTLBISON=:
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7408 $as_echo_n "checking whether NLS is requested... " >&6; }
7409 # Check whether --enable-nls was given.
7410 if test "${enable_nls+set}" = set; then :
7411 enableval=$enable_nls; USE_NLS=$enableval
7412 else
7413 USE_NLS=yes
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7417 $as_echo "$USE_NLS" >&6; }
7422 BUILD_INCLUDED_LIBINTL=no
7423 USE_INCLUDED_LIBINTL=no
7425 LIBINTL=
7426 LTLIBINTL=
7427 POSUB=
7429 if test "$USE_NLS" = "yes"; then
7430 gt_use_preinstalled_gnugettext=no
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
7433 $as_echo_n "checking whether included gettext is requested... " >&6; }
7435 # Check whether --with-included-gettext was given.
7436 if test "${with_included_gettext+set}" = set; then :
7437 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
7438 else
7439 nls_cv_force_use_gnu_gettext=no
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
7443 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
7445 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7446 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7454 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7455 if ${gt_cv_func_gnugettext1_libc+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <libintl.h>
7461 extern int _nl_msg_cat_cntr;
7462 extern int *_nl_domain_bindings;
7464 main ()
7466 bindtextdomain ("", "");
7467 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7469 return 0;
7471 _ACEOF
7472 if ac_fn_c_try_link "$LINENO"; then :
7473 gt_cv_func_gnugettext1_libc=yes
7474 else
7475 gt_cv_func_gnugettext1_libc=no
7477 rm -f core conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
7481 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
7483 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7487 use_additional=yes
7489 acl_save_prefix="$prefix"
7490 prefix="$acl_final_prefix"
7491 acl_save_exec_prefix="$exec_prefix"
7492 exec_prefix="$acl_final_exec_prefix"
7494 eval additional_includedir=\"$includedir\"
7495 eval additional_libdir=\"$libdir\"
7497 exec_prefix="$acl_save_exec_prefix"
7498 prefix="$acl_save_prefix"
7501 # Check whether --with-libintl-prefix was given.
7502 if test "${with_libintl_prefix+set}" = set; then :
7503 withval=$with_libintl_prefix;
7504 if test "X$withval" = "Xno"; then
7505 use_additional=no
7506 else
7507 if test "X$withval" = "X"; then
7509 acl_save_prefix="$prefix"
7510 prefix="$acl_final_prefix"
7511 acl_save_exec_prefix="$exec_prefix"
7512 exec_prefix="$acl_final_exec_prefix"
7514 eval additional_includedir=\"$includedir\"
7515 eval additional_libdir=\"$libdir\"
7517 exec_prefix="$acl_save_exec_prefix"
7518 prefix="$acl_save_prefix"
7520 else
7521 additional_includedir="$withval/include"
7522 additional_libdir="$withval/lib"
7528 LIBINTL=
7529 LTLIBINTL=
7530 INCINTL=
7531 rpathdirs=
7532 ltrpathdirs=
7533 names_already_handled=
7534 names_next_round='intl '
7535 while test -n "$names_next_round"; do
7536 names_this_round="$names_next_round"
7537 names_next_round=
7538 for name in $names_this_round; do
7539 already_handled=
7540 for n in $names_already_handled; do
7541 if test "$n" = "$name"; then
7542 already_handled=yes
7543 break
7545 done
7546 if test -z "$already_handled"; then
7547 names_already_handled="$names_already_handled $name"
7548 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7549 eval value=\"\$HAVE_LIB$uppername\"
7550 if test -n "$value"; then
7551 if test "$value" = yes; then
7552 eval value=\"\$LIB$uppername\"
7553 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7554 eval value=\"\$LTLIB$uppername\"
7555 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7556 else
7559 else
7560 found_dir=
7561 found_la=
7562 found_so=
7563 found_a=
7564 if test $use_additional = yes; then
7565 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7566 found_dir="$additional_libdir"
7567 found_so="$additional_libdir/lib$name.$shlibext"
7568 if test -f "$additional_libdir/lib$name.la"; then
7569 found_la="$additional_libdir/lib$name.la"
7571 else
7572 if test -f "$additional_libdir/lib$name.$libext"; then
7573 found_dir="$additional_libdir"
7574 found_a="$additional_libdir/lib$name.$libext"
7575 if test -f "$additional_libdir/lib$name.la"; then
7576 found_la="$additional_libdir/lib$name.la"
7581 if test "X$found_dir" = "X"; then
7582 for x in $LDFLAGS $LTLIBINTL; do
7584 acl_save_prefix="$prefix"
7585 prefix="$acl_final_prefix"
7586 acl_save_exec_prefix="$exec_prefix"
7587 exec_prefix="$acl_final_exec_prefix"
7588 eval x=\"$x\"
7589 exec_prefix="$acl_save_exec_prefix"
7590 prefix="$acl_save_prefix"
7592 case "$x" in
7593 -L*)
7594 dir=`echo "X$x" | sed -e 's/^X-L//'`
7595 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7596 found_dir="$dir"
7597 found_so="$dir/lib$name.$shlibext"
7598 if test -f "$dir/lib$name.la"; then
7599 found_la="$dir/lib$name.la"
7601 else
7602 if test -f "$dir/lib$name.$libext"; then
7603 found_dir="$dir"
7604 found_a="$dir/lib$name.$libext"
7605 if test -f "$dir/lib$name.la"; then
7606 found_la="$dir/lib$name.la"
7611 esac
7612 if test "X$found_dir" != "X"; then
7613 break
7615 done
7617 if test "X$found_dir" != "X"; then
7618 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7619 if test "X$found_so" != "X"; then
7620 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7621 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7622 else
7623 haveit=
7624 for x in $ltrpathdirs; do
7625 if test "X$x" = "X$found_dir"; then
7626 haveit=yes
7627 break
7629 done
7630 if test -z "$haveit"; then
7631 ltrpathdirs="$ltrpathdirs $found_dir"
7633 if test "$hardcode_direct" = yes; then
7634 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7635 else
7636 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7637 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7638 haveit=
7639 for x in $rpathdirs; do
7640 if test "X$x" = "X$found_dir"; then
7641 haveit=yes
7642 break
7644 done
7645 if test -z "$haveit"; then
7646 rpathdirs="$rpathdirs $found_dir"
7648 else
7649 haveit=
7650 for x in $LDFLAGS $LIBINTL; do
7652 acl_save_prefix="$prefix"
7653 prefix="$acl_final_prefix"
7654 acl_save_exec_prefix="$exec_prefix"
7655 exec_prefix="$acl_final_exec_prefix"
7656 eval x=\"$x\"
7657 exec_prefix="$acl_save_exec_prefix"
7658 prefix="$acl_save_prefix"
7660 if test "X$x" = "X-L$found_dir"; then
7661 haveit=yes
7662 break
7664 done
7665 if test -z "$haveit"; then
7666 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7668 if test "$hardcode_minus_L" != no; then
7669 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7670 else
7671 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7676 else
7677 if test "X$found_a" != "X"; then
7678 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7679 else
7680 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7683 additional_includedir=
7684 case "$found_dir" in
7685 */lib | */lib/)
7686 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7687 additional_includedir="$basedir/include"
7689 esac
7690 if test "X$additional_includedir" != "X"; then
7691 if test "X$additional_includedir" != "X/usr/include"; then
7692 haveit=
7693 if test "X$additional_includedir" = "X/usr/local/include"; then
7694 if test -n "$GCC"; then
7695 case $host_os in
7696 linux*) haveit=yes;;
7697 esac
7700 if test -z "$haveit"; then
7701 for x in $CPPFLAGS $INCINTL; do
7703 acl_save_prefix="$prefix"
7704 prefix="$acl_final_prefix"
7705 acl_save_exec_prefix="$exec_prefix"
7706 exec_prefix="$acl_final_exec_prefix"
7707 eval x=\"$x\"
7708 exec_prefix="$acl_save_exec_prefix"
7709 prefix="$acl_save_prefix"
7711 if test "X$x" = "X-I$additional_includedir"; then
7712 haveit=yes
7713 break
7715 done
7716 if test -z "$haveit"; then
7717 if test -d "$additional_includedir"; then
7718 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7724 if test -n "$found_la"; then
7725 save_libdir="$libdir"
7726 case "$found_la" in
7727 */* | *\\*) . "$found_la" ;;
7728 *) . "./$found_la" ;;
7729 esac
7730 libdir="$save_libdir"
7731 for dep in $dependency_libs; do
7732 case "$dep" in
7733 -L*)
7734 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7735 if test "X$additional_libdir" != "X/usr/lib"; then
7736 haveit=
7737 if test "X$additional_libdir" = "X/usr/local/lib"; then
7738 if test -n "$GCC"; then
7739 case $host_os in
7740 linux*) haveit=yes;;
7741 esac
7744 if test -z "$haveit"; then
7745 haveit=
7746 for x in $LDFLAGS $LIBINTL; do
7748 acl_save_prefix="$prefix"
7749 prefix="$acl_final_prefix"
7750 acl_save_exec_prefix="$exec_prefix"
7751 exec_prefix="$acl_final_exec_prefix"
7752 eval x=\"$x\"
7753 exec_prefix="$acl_save_exec_prefix"
7754 prefix="$acl_save_prefix"
7756 if test "X$x" = "X-L$additional_libdir"; then
7757 haveit=yes
7758 break
7760 done
7761 if test -z "$haveit"; then
7762 if test -d "$additional_libdir"; then
7763 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7766 haveit=
7767 for x in $LDFLAGS $LTLIBINTL; do
7769 acl_save_prefix="$prefix"
7770 prefix="$acl_final_prefix"
7771 acl_save_exec_prefix="$exec_prefix"
7772 exec_prefix="$acl_final_exec_prefix"
7773 eval x=\"$x\"
7774 exec_prefix="$acl_save_exec_prefix"
7775 prefix="$acl_save_prefix"
7777 if test "X$x" = "X-L$additional_libdir"; then
7778 haveit=yes
7779 break
7781 done
7782 if test -z "$haveit"; then
7783 if test -d "$additional_libdir"; then
7784 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7790 -R*)
7791 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7792 if test "$enable_rpath" != no; then
7793 haveit=
7794 for x in $rpathdirs; do
7795 if test "X$x" = "X$dir"; then
7796 haveit=yes
7797 break
7799 done
7800 if test -z "$haveit"; then
7801 rpathdirs="$rpathdirs $dir"
7803 haveit=
7804 for x in $ltrpathdirs; do
7805 if test "X$x" = "X$dir"; then
7806 haveit=yes
7807 break
7809 done
7810 if test -z "$haveit"; then
7811 ltrpathdirs="$ltrpathdirs $dir"
7815 -l*)
7816 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7818 *.la)
7819 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7822 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7823 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7825 esac
7826 done
7828 else
7829 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7830 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7834 done
7835 done
7836 if test "X$rpathdirs" != "X"; then
7837 if test -n "$hardcode_libdir_separator"; then
7838 alldirs=
7839 for found_dir in $rpathdirs; do
7840 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7841 done
7842 acl_save_libdir="$libdir"
7843 libdir="$alldirs"
7844 eval flag=\"$hardcode_libdir_flag_spec\"
7845 libdir="$acl_save_libdir"
7846 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7847 else
7848 for found_dir in $rpathdirs; do
7849 acl_save_libdir="$libdir"
7850 libdir="$found_dir"
7851 eval flag=\"$hardcode_libdir_flag_spec\"
7852 libdir="$acl_save_libdir"
7853 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7854 done
7857 if test "X$ltrpathdirs" != "X"; then
7858 for found_dir in $ltrpathdirs; do
7859 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7860 done
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7864 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7865 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 gt_save_CPPFLAGS="$CPPFLAGS"
7869 CPPFLAGS="$CPPFLAGS $INCINTL"
7870 gt_save_LIBS="$LIBS"
7871 LIBS="$LIBS $LIBINTL"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <libintl.h>
7875 extern int _nl_msg_cat_cntr;
7876 extern
7877 #ifdef __cplusplus
7879 #endif
7880 const char *_nl_expand_alias ();
7882 main ()
7884 bindtextdomain ("", "");
7885 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7887 return 0;
7889 _ACEOF
7890 if ac_fn_c_try_link "$LINENO"; then :
7891 gt_cv_func_gnugettext1_libintl=yes
7892 else
7893 gt_cv_func_gnugettext1_libintl=no
7895 rm -f core conftest.err conftest.$ac_objext \
7896 conftest$ac_exeext conftest.$ac_ext
7897 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7898 LIBS="$LIBS $LIBICONV"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 #include <libintl.h>
7902 extern int _nl_msg_cat_cntr;
7903 extern
7904 #ifdef __cplusplus
7906 #endif
7907 const char *_nl_expand_alias ();
7909 main ()
7911 bindtextdomain ("", "");
7912 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7914 return 0;
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 LIBINTL="$LIBINTL $LIBICONV"
7919 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7920 gt_cv_func_gnugettext1_libintl=yes
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7926 CPPFLAGS="$gt_save_CPPFLAGS"
7927 LIBS="$gt_save_LIBS"
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
7930 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
7933 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7934 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7935 && test "$PACKAGE" != gettext-runtime \
7936 && test "$PACKAGE" != gettext-tools; }; then
7937 gt_use_preinstalled_gnugettext=yes
7938 else
7939 LIBINTL=
7940 LTLIBINTL=
7941 INCINTL=
7945 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7946 nls_cv_use_gnu_gettext=yes
7950 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7951 BUILD_INCLUDED_LIBINTL=yes
7952 USE_INCLUDED_LIBINTL=yes
7953 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7954 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7955 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7958 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7959 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7960 CATOBJEXT=.gmo
7964 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7965 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7967 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7969 else
7970 USE_NLS=no
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7975 $as_echo_n "checking whether to use NLS... " >&6; }
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7977 $as_echo "$USE_NLS" >&6; }
7978 if test "$USE_NLS" = "yes"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7980 $as_echo_n "checking where the gettext function comes from... " >&6; }
7981 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7982 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7983 gt_source="external libintl"
7984 else
7985 gt_source="libc"
7987 else
7988 gt_source="included intl directory"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7991 $as_echo "$gt_source" >&6; }
7994 if test "$USE_NLS" = "yes"; then
7996 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7997 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7999 $as_echo_n "checking how to link with libintl... " >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8001 $as_echo "$LIBINTL" >&6; }
8003 for element in $INCINTL; do
8004 haveit=
8005 for x in $CPPFLAGS; do
8007 acl_save_prefix="$prefix"
8008 prefix="$acl_final_prefix"
8009 acl_save_exec_prefix="$exec_prefix"
8010 exec_prefix="$acl_final_exec_prefix"
8011 eval x=\"$x\"
8012 exec_prefix="$acl_save_exec_prefix"
8013 prefix="$acl_save_prefix"
8015 if test "X$x" = "X$element"; then
8016 haveit=yes
8017 break
8019 done
8020 if test -z "$haveit"; then
8021 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8023 done
8028 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8031 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8035 POSUB=po
8039 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8040 BUILD_INCLUDED_LIBINTL=yes
8047 nls_cv_header_intl=
8048 nls_cv_header_libgt=
8050 DATADIRNAME=share
8053 INSTOBJEXT=.mo
8056 GENCAT=gencat
8059 if test "$USE_INCLUDED_LIBINTL" = yes; then
8060 INTLOBJS="\$(GETTOBJS)"
8064 INTL_LIBTOOL_SUFFIX_PREFIX=
8068 INTLLIBS="$LIBINTL"
8075 ac_ext=c
8076 ac_cpp='$CPP $CPPFLAGS'
8077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_CC+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$CC"; then
8089 ac_cv_prog_CC="$CC" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8108 CC=$ac_cv_prog_CC
8109 if test -n "$CC"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8111 $as_echo "$CC" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_CC"; then
8120 ac_ct_CC=$CC
8121 # Extract the first word of "gcc", so it can be a program name with args.
8122 set dummy gcc; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$ac_ct_CC"; then
8129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_CC="gcc"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8149 if test -n "$ac_ct_CC"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8151 $as_echo "$ac_ct_CC" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_CC" = x; then
8158 CC=""
8159 else
8160 case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166 CC=$ac_ct_CC
8168 else
8169 CC="$ac_cv_prog_CC"
8172 if test -z "$CC"; then
8173 if test -n "$ac_tool_prefix"; then
8174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8175 set dummy ${ac_tool_prefix}cc; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_prog_CC+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 if test -n "$CC"; then
8182 ac_cv_prog_CC="$CC" # Let the user override the test.
8183 else
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_CC="${ac_tool_prefix}cc"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8195 done
8196 done
8197 IFS=$as_save_IFS
8201 CC=$ac_cv_prog_CC
8202 if test -n "$CC"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8204 $as_echo "$CC" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8213 if test -z "$CC"; then
8214 # Extract the first word of "cc", so it can be a program name with args.
8215 set dummy cc; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if ${ac_cv_prog_CC+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 if test -n "$CC"; then
8222 ac_cv_prog_CC="$CC" # Let the user override the test.
8223 else
8224 ac_prog_rejected=no
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8233 ac_prog_rejected=yes
8234 continue
8236 ac_cv_prog_CC="cc"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8240 done
8241 done
8242 IFS=$as_save_IFS
8244 if test $ac_prog_rejected = yes; then
8245 # We found a bogon in the path, so make sure we never use it.
8246 set dummy $ac_cv_prog_CC
8247 shift
8248 if test $# != 0; then
8249 # We chose a different compiler from the bogus one.
8250 # However, it has the same basename, so the bogon will be chosen
8251 # first if we set CC to just the basename; use the full file name.
8252 shift
8253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8258 CC=$ac_cv_prog_CC
8259 if test -n "$CC"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8261 $as_echo "$CC" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8269 if test -z "$CC"; then
8270 if test -n "$ac_tool_prefix"; then
8271 for ac_prog in cl.exe
8273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if ${ac_cv_prog_CC+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 if test -n "$CC"; then
8281 ac_cv_prog_CC="$CC" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8294 done
8295 done
8296 IFS=$as_save_IFS
8300 CC=$ac_cv_prog_CC
8301 if test -n "$CC"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8303 $as_echo "$CC" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8310 test -n "$CC" && break
8311 done
8313 if test -z "$CC"; then
8314 ac_ct_CC=$CC
8315 for ac_prog in cl.exe
8317 # Extract the first word of "$ac_prog", so it can be a program name with args.
8318 set dummy $ac_prog; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 if test -n "$ac_ct_CC"; then
8325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_CC="$ac_prog"
8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8338 done
8339 done
8340 IFS=$as_save_IFS
8344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8345 if test -n "$ac_ct_CC"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8347 $as_echo "$ac_ct_CC" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8354 test -n "$ac_ct_CC" && break
8355 done
8357 if test "x$ac_ct_CC" = x; then
8358 CC=""
8359 else
8360 case $cross_compiling:$ac_tool_warned in
8361 yes:)
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8364 ac_tool_warned=yes ;;
8365 esac
8366 CC=$ac_ct_CC
8373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8375 as_fn_error $? "no acceptable C compiler found in \$PATH
8376 See \`config.log' for more details" "$LINENO" 5; }
8378 # Provide some information about the compiler.
8379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8380 set X $ac_compile
8381 ac_compiler=$2
8382 for ac_option in --version -v -V -qversion; do
8383 { { ac_try="$ac_compiler $ac_option >&5"
8384 case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387 esac
8388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8389 $as_echo "$ac_try_echo"; } >&5
8390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8391 ac_status=$?
8392 if test -s conftest.err; then
8393 sed '10a\
8394 ... rest of stderr output deleted ...
8395 10q' conftest.err >conftest.er1
8396 cat conftest.er1 >&5
8398 rm -f conftest.er1 conftest.err
8399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8400 test $ac_status = 0; }
8401 done
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8404 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8405 if ${ac_cv_c_compiler_gnu+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8412 main ()
8414 #ifndef __GNUC__
8415 choke me
8416 #endif
8419 return 0;
8421 _ACEOF
8422 if ac_fn_c_try_compile "$LINENO"; then :
8423 ac_compiler_gnu=yes
8424 else
8425 ac_compiler_gnu=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8432 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8433 if test $ac_compiler_gnu = yes; then
8434 GCC=yes
8435 else
8436 GCC=
8438 ac_test_CFLAGS=${CFLAGS+set}
8439 ac_save_CFLAGS=$CFLAGS
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8441 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8442 if ${ac_cv_prog_cc_g+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 ac_save_c_werror_flag=$ac_c_werror_flag
8446 ac_c_werror_flag=yes
8447 ac_cv_prog_cc_g=no
8448 CFLAGS="-g"
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8453 main ()
8457 return 0;
8459 _ACEOF
8460 if ac_fn_c_try_compile "$LINENO"; then :
8461 ac_cv_prog_cc_g=yes
8462 else
8463 CFLAGS=""
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8468 main ()
8472 return 0;
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8477 else
8478 ac_c_werror_flag=$ac_save_c_werror_flag
8479 CFLAGS="-g"
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8484 main ()
8488 return 0;
8490 _ACEOF
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492 ac_cv_prog_cc_g=yes
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 ac_c_werror_flag=$ac_save_c_werror_flag
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8502 $as_echo "$ac_cv_prog_cc_g" >&6; }
8503 if test "$ac_test_CFLAGS" = set; then
8504 CFLAGS=$ac_save_CFLAGS
8505 elif test $ac_cv_prog_cc_g = yes; then
8506 if test "$GCC" = yes; then
8507 CFLAGS="-g -O2"
8508 else
8509 CFLAGS="-g"
8511 else
8512 if test "$GCC" = yes; then
8513 CFLAGS="-O2"
8514 else
8515 CFLAGS=
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8519 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8520 if ${ac_cv_prog_cc_c89+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 ac_cv_prog_cc_c89=no
8524 ac_save_CC=$CC
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 #include <stdarg.h>
8528 #include <stdio.h>
8529 struct stat;
8530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8531 struct buf { int x; };
8532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8533 static char *e (p, i)
8534 char **p;
8535 int i;
8537 return p[i];
8539 static char *f (char * (*g) (char **, int), char **p, ...)
8541 char *s;
8542 va_list v;
8543 va_start (v,p);
8544 s = g (p, va_arg (v,int));
8545 va_end (v);
8546 return s;
8549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8550 function prototypes and stuff, but not '\xHH' hex character constants.
8551 These don't provoke an error unfortunately, instead are silently treated
8552 as 'x'. The following induces an error, until -std is added to get
8553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8554 array size at least. It's necessary to write '\x00'==0 to get something
8555 that's true only with -std. */
8556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8559 inside strings and character constants. */
8560 #define FOO(x) 'x'
8561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8563 int test (int i, double x);
8564 struct s1 {int (*f) (int a);};
8565 struct s2 {int (*f) (double a);};
8566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8567 int argc;
8568 char **argv;
8570 main ()
8572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8574 return 0;
8576 _ACEOF
8577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8580 CC="$ac_save_CC $ac_arg"
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 ac_cv_prog_cc_c89=$ac_arg
8584 rm -f core conftest.err conftest.$ac_objext
8585 test "x$ac_cv_prog_cc_c89" != "xno" && break
8586 done
8587 rm -f conftest.$ac_ext
8588 CC=$ac_save_CC
8591 # AC_CACHE_VAL
8592 case "x$ac_cv_prog_cc_c89" in
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8595 $as_echo "none needed" >&6; } ;;
8596 xno)
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8598 $as_echo "unsupported" >&6; } ;;
8600 CC="$CC $ac_cv_prog_cc_c89"
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8603 esac
8604 if test "x$ac_cv_prog_cc_c89" != xno; then :
8608 ac_ext=c
8609 ac_cpp='$CPP $CPPFLAGS'
8610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614 if test -n "$ac_tool_prefix"; then
8615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if ${ac_cv_prog_RANLIB+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 if test -n "$RANLIB"; then
8623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8636 done
8637 done
8638 IFS=$as_save_IFS
8642 RANLIB=$ac_cv_prog_RANLIB
8643 if test -n "$RANLIB"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8645 $as_echo "$RANLIB" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8653 if test -z "$ac_cv_prog_RANLIB"; then
8654 ac_ct_RANLIB=$RANLIB
8655 # Extract the first word of "ranlib", so it can be a program name with args.
8656 set dummy ranlib; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 if test -n "$ac_ct_RANLIB"; then
8663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8664 else
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_ac_ct_RANLIB="ranlib"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8676 done
8677 done
8678 IFS=$as_save_IFS
8682 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8683 if test -n "$ac_ct_RANLIB"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8685 $as_echo "$ac_ct_RANLIB" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8691 if test "x$ac_ct_RANLIB" = x; then
8692 RANLIB=":"
8693 else
8694 case $cross_compiling:$ac_tool_warned in
8695 yes:)
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8698 ac_tool_warned=yes ;;
8699 esac
8700 RANLIB=$ac_ct_RANLIB
8702 else
8703 RANLIB="$ac_cv_prog_RANLIB"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8709 $as_echo_n "checking for main in -lm... " >&6; }
8710 if ${ac_cv_lib_m_main+:} false; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 ac_check_lib_save_LIBS=$LIBS
8714 LIBS="-lm $LIBS"
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8720 main ()
8722 return main ();
8724 return 0;
8726 _ACEOF
8727 if ac_fn_c_try_link "$LINENO"; then :
8728 ac_cv_lib_m_main=yes
8729 else
8730 ac_cv_lib_m_main=no
8732 rm -f core conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8734 LIBS=$ac_check_lib_save_LIBS
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8737 $as_echo "$ac_cv_lib_m_main" >&6; }
8738 if test "x$ac_cv_lib_m_main" = xyes; then :
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_LIBM 1
8741 _ACEOF
8743 LIBS="-lm $LIBS"
8745 else
8746 as_fn_error $? "lib math is needed" "$LINENO" 5
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
8750 $as_echo_n "checking for main in -lz... " >&6; }
8751 if ${ac_cv_lib_z_main+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 ac_check_lib_save_LIBS=$LIBS
8755 LIBS="-lz $LIBS"
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8761 main ()
8763 return main ();
8765 return 0;
8767 _ACEOF
8768 if ac_fn_c_try_link "$LINENO"; then :
8769 ac_cv_lib_z_main=yes
8770 else
8771 ac_cv_lib_z_main=no
8773 rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
8778 $as_echo "$ac_cv_lib_z_main" >&6; }
8779 if test "x$ac_cv_lib_z_main" = xyes; then :
8780 cat >>confdefs.h <<_ACEOF
8781 #define HAVE_LIBZ 1
8782 _ACEOF
8784 LIBS="-lz $LIBS"
8786 else
8787 as_fn_error $? "libz is needed" "$LINENO" 5
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
8791 $as_echo_n "checking for main in -lpng... " >&6; }
8792 if ${ac_cv_lib_png_main+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 ac_check_lib_save_LIBS=$LIBS
8796 LIBS="-lpng $LIBS"
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8802 main ()
8804 return main ();
8806 return 0;
8808 _ACEOF
8809 if ac_fn_c_try_link "$LINENO"; then :
8810 ac_cv_lib_png_main=yes
8811 else
8812 ac_cv_lib_png_main=no
8814 rm -f core conftest.err conftest.$ac_objext \
8815 conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
8819 $as_echo "$ac_cv_lib_png_main" >&6; }
8820 if test "x$ac_cv_lib_png_main" = xyes; then :
8821 cat >>confdefs.h <<_ACEOF
8822 #define HAVE_LIBPNG 1
8823 _ACEOF
8825 LIBS="-lpng $LIBS"
8827 else
8828 as_fn_error $? "libpng is needed" "$LINENO" 5
8833 # Check whether --with-sdl-prefix was given.
8834 if test "${with_sdl_prefix+set}" = set; then :
8835 withval=$with_sdl_prefix; sdl_prefix="$withval"
8836 else
8837 sdl_prefix=""
8841 # Check whether --with-sdl-exec-prefix was given.
8842 if test "${with_sdl_exec_prefix+set}" = set; then :
8843 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
8844 else
8845 sdl_exec_prefix=""
8848 # Check whether --enable-sdltest was given.
8849 if test "${enable_sdltest+set}" = set; then :
8850 enableval=$enable_sdltest;
8851 else
8852 enable_sdltest=yes
8856 if test x$sdl_exec_prefix != x ; then
8857 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
8858 if test x${SDL_CONFIG+set} != xset ; then
8859 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
8862 if test x$sdl_prefix != x ; then
8863 sdl_args="$sdl_args --prefix=$sdl_prefix"
8864 if test x${SDL_CONFIG+set} != xset ; then
8865 SDL_CONFIG=$sdl_prefix/bin/sdl-config
8870 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
8871 # Extract the first word of "sdl-config", so it can be a program name with args.
8872 set dummy sdl-config; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if ${ac_cv_path_SDL_CONFIG+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 case $SDL_CONFIG in
8879 [\\/]* | ?:[\\/]*)
8880 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8894 done
8895 done
8896 IFS=$as_save_IFS
8898 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
8900 esac
8902 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
8903 if test -n "$SDL_CONFIG"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
8905 $as_echo "$SDL_CONFIG" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8912 min_sdl_version=1.2.0
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
8914 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
8915 no_sdl=""
8916 if test "$SDL_CONFIG" = "no" ; then
8917 no_sdl=yes
8918 else
8919 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
8920 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
8922 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
8923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8924 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
8925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8926 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
8927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8928 if test "x$enable_sdltest" = "xyes" ; then
8929 ac_save_CFLAGS="$CFLAGS"
8930 ac_save_LIBS="$LIBS"
8931 CFLAGS="$CFLAGS $SDL_CFLAGS"
8932 LIBS="$LIBS $SDL_LIBS"
8933 rm -f conf.sdltest
8934 if test "$cross_compiling" = yes; then :
8935 echo $ac_n "cross compiling; assumed OK... $ac_c"
8936 else
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8940 #include <stdio.h>
8941 #include <stdlib.h>
8942 #include <string.h>
8943 #include "SDL.h"
8945 char*
8946 my_strdup (char *str)
8948 char *new_str;
8950 if (str)
8952 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8953 strcpy (new_str, str);
8955 else
8956 new_str = NULL;
8958 return new_str;
8961 int main (int argc, char *argv[])
8963 int major, minor, micro;
8964 char *tmp_version;
8966 /* This hangs on some systems (?)
8967 system ("touch conf.sdltest");
8969 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8971 /* HP/UX 9 (%@#!) writes to sscanf strings */
8972 tmp_version = my_strdup("$min_sdl_version");
8973 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8974 printf("%s, bad version string\n", "$min_sdl_version");
8975 exit(1);
8978 if (($sdl_major_version > major) ||
8979 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8980 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8982 return 0;
8984 else
8986 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8987 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8988 printf("*** best to upgrade to the required version.\n");
8989 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8990 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8991 printf("*** config.cache before re-running configure\n");
8992 return 1;
8997 _ACEOF
8998 if ac_fn_c_try_run "$LINENO"; then :
9000 else
9001 no_sdl=yes
9003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9004 conftest.$ac_objext conftest.beam conftest.$ac_ext
9007 CFLAGS="$ac_save_CFLAGS"
9008 LIBS="$ac_save_LIBS"
9011 if test "x$no_sdl" = x ; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9013 $as_echo "yes" >&6; }
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018 if test "$SDL_CONFIG" = "no" ; then
9019 echo "*** The sdl-config script installed by SDL could not be found"
9020 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
9021 echo "*** your path, or set the SDL_CONFIG environment variable to the"
9022 echo "*** full path to sdl-config."
9023 else
9024 if test -f conf.sdltest ; then
9026 else
9027 echo "*** Could not run SDL test program, checking why..."
9028 CFLAGS="$CFLAGS $SDL_CFLAGS"
9029 LIBS="$LIBS $SDL_LIBS"
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9033 #include <stdio.h>
9034 #include "SDL.h"
9036 int main(int argc, char *argv[])
9037 { return 0; }
9038 #undef main
9039 #define main K_and_R_C_main
9042 main ()
9044 return 0;
9046 return 0;
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 echo "*** The test program compiled, but did not run. This usually means"
9051 echo "*** that the run-time linker is not finding SDL or finding the wrong"
9052 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
9053 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9054 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9055 echo "*** is required on your system"
9056 echo "***"
9057 echo "*** If you have an old version installed, it is best to remove it, although"
9058 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9059 else
9060 echo "*** The test program failed to compile or link. See the file config.log for the"
9061 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
9062 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
9063 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
9065 rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 CFLAGS="$ac_save_CFLAGS"
9068 LIBS="$ac_save_LIBS"
9071 SDL_CFLAGS=""
9072 SDL_LIBS=""
9073 as_fn_error $? "lib SDL is needed" "$LINENO" 5
9077 rm -f conf.sdltest
9079 CFLAGS="-Wall $CFLAGS $SDL_CFLAGS"
9080 LIBS="$LIBS $SDL_LIBS"
9082 warp_flag=""
9083 # Check whether --enable-warp was given.
9084 if test "${enable_warp+set}" = set; then :
9085 enableval=$enable_warp; warp_flag="-DMOUSE_WARP"
9090 audio_flag="-DAUDIO_ENABLED"
9091 mixer_flag="-lSDL_mixer"
9092 # Check whether --enable-audio was given.
9093 if test "${enable_audio+set}" = set; then :
9094 enableval=$enable_audio; audio_flag=""; mixer_flag=""
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
9099 $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
9100 if ${ac_cv_lib_SDL_mixer_main+:} false; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 ac_check_lib_save_LIBS=$LIBS
9104 LIBS="-lSDL_mixer $LIBS"
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9110 main ()
9112 return main ();
9114 return 0;
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 ac_cv_lib_SDL_mixer_main=yes
9119 else
9120 ac_cv_lib_SDL_mixer_main=no
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
9127 $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
9128 if test "x$ac_cv_lib_SDL_mixer_main" = xyes; then :
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"SDL_Mixer found\"" >&5
9130 $as_echo "\"SDL_Mixer found\"" >&6; }
9131 else
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"SDL_Mixer NOT found \(http://libsdl.org\): Audio disabled\"" >&5
9133 $as_echo "\"SDL_Mixer NOT found \(http://libsdl.org\): Audio disabled\"" >&6; }; audio_flag=""; mixer_flag=""
9140 doc_dir="/usr/doc"
9142 # Check whether --with-docdir was given.
9143 if test "${with_docdir+set}" = set; then :
9144 withval=$with_docdir; doc_dir="$withval"
9149 network_flag="-DNETWORK_ENABLED"
9150 # Check whether --enable-network was given.
9151 if test "${enable_network+set}" = set; then :
9152 enableval=$enable_network; network_flag=""
9157 sdlnet_flag=""
9158 sdlnet_lib_flag=""
9159 # Check whether --enable-sdl-net was given.
9160 if test "${enable_sdl_net+set}" = set; then :
9161 enableval=$enable_sdl_net; sdlnet_flag="-DSDL_NET_ENABLED"; sdlnet_lib_flag="-lSDL_net"
9166 if test "$sdlnet_flag" == "-DSDL_NET_ENABLED" ; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_net" >&5
9168 $as_echo_n "checking for main in -lSDL_net... " >&6; }
9169 if ${ac_cv_lib_SDL_net_main+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 ac_check_lib_save_LIBS=$LIBS
9173 LIBS="-lSDL_net $LIBS"
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9179 main ()
9181 return main ();
9183 return 0;
9185 _ACEOF
9186 if ac_fn_c_try_link "$LINENO"; then :
9187 ac_cv_lib_SDL_net_main=yes
9188 else
9189 ac_cv_lib_SDL_net_main=no
9191 rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193 LIBS=$ac_check_lib_save_LIBS
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_net_main" >&5
9196 $as_echo "$ac_cv_lib_SDL_net_main" >&6; }
9197 if test "x$ac_cv_lib_SDL_net_main" = xyes; then :
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"SDL_net found\"" >&5
9199 $as_echo "\"SDL_net found\"" >&6; }
9200 else
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"SDL_net NOT found \(http://libsdl.org\): Networking disabled\"" >&5
9202 $as_echo "\"SDL_net NOT found \(http://libsdl.org\): Networking disabled\"" >&6; }; sdlnet_flag=""; sdlnet_lib_flag=""; network_flag=""
9207 netdebug_flag=""
9208 # Check whether --enable-netdebug was given.
9209 if test "${enable_netdebug+set}" = set; then :
9210 enableval=$enable_netdebug; netdebug_flag="-DNET_DEBUG_MSG"
9215 localedir=$datadir/locale
9216 locdir_flag="-DLOCALEDIR=\\\"$localedir\\\""
9218 inst_dir="$datadir/lbreakout2"
9219 hi_dir=$localstatedir
9221 # Check whether --enable-install was given.
9222 if test "${enable_install+set}" = set; then :
9223 enableval=$enable_install; inst_dir="." hi_dir="."
9224 locdir_flag="-DLOCALEDIR=\\\"../dict\\\""
9225 rm -rf dict; mkdir dict
9226 for lang in `cat po/LINGUAS`; do
9227 mkdir dict/$lang; mkdir dict/$lang/LC_MESSAGES
9228 ln -s ../../../po/$lang.gmo dict/$lang/LC_MESSAGES/$PACKAGE.mo
9229 done
9234 inst_flag="-DSRC_DIR=\\\"$inst_dir\\\""
9235 hi_inst_flag="-DHI_DIR=\\\"$hi_dir\\\""
9243 case "$host" in
9244 *-mingw32)
9245 win32="yes"
9246 win32_inst_script="`pwd -W`/installer.iss"
9247 arch_flag="-march=i586"
9248 win32_deps="lbreakout2res.o" ;;
9250 win32="no"
9251 win32_inst_script=""
9252 arch_flag=""
9253 win32_deps="" ;;
9254 esac
9259 if test "x$win32" = xyes; then
9260 for ac_prog in gawk mawk nawk awk
9262 # Extract the first word of "$ac_prog", so it can be a program name with args.
9263 set dummy $ac_prog; ac_word=$2
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if ${ac_cv_prog_AWK+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 if test -n "$AWK"; then
9270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9271 else
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 for as_dir in $PATH
9275 IFS=$as_save_IFS
9276 test -z "$as_dir" && as_dir=.
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9279 ac_cv_prog_AWK="$ac_prog"
9280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 break 2
9283 done
9284 done
9285 IFS=$as_save_IFS
9289 AWK=$ac_cv_prog_AWK
9290 if test -n "$AWK"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9292 $as_echo "$AWK" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9299 test -n "$AWK" && break
9300 done
9305 appname="LBreakout2"
9308 ac_config_files="$ac_config_files Makefile docs/Makefile common/Makefile game/Makefile gui/Makefile client/Makefile client/gui_theme/Makefile client/gfx/Makefile client/gfx/AbsoluteB/Makefile client/gfx/Oz/Makefile client/gfx/Moiree/Makefile client/gfx/Classic/Makefile client/sounds/Makefile client/levels/Makefile server/Makefile server/levels/Makefile intl/Makefile po/Makefile.in m4/Makefile"
9310 cat >confcache <<\_ACEOF
9311 # This file is a shell script that caches the results of configure
9312 # tests run on this system so they can be shared between configure
9313 # scripts and configure runs, see configure's option --config-cache.
9314 # It is not useful on other systems. If it contains results you don't
9315 # want to keep, you may remove or edit it.
9317 # config.status only pays attention to the cache file if you give it
9318 # the --recheck option to rerun configure.
9320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9322 # following values.
9324 _ACEOF
9326 # The following way of writing the cache mishandles newlines in values,
9327 # but we know of no workaround that is simple, portable, and efficient.
9328 # So, we kill variables containing newlines.
9329 # Ultrix sh set writes to stderr and can't be redirected directly,
9330 # and sets the high bit in the cache file unless we assign to the vars.
9332 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9333 eval ac_val=\$$ac_var
9334 case $ac_val in #(
9335 *${as_nl}*)
9336 case $ac_var in #(
9337 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9338 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9339 esac
9340 case $ac_var in #(
9341 _ | IFS | as_nl) ;; #(
9342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9343 *) { eval $ac_var=; unset $ac_var;} ;;
9344 esac ;;
9345 esac
9346 done
9348 (set) 2>&1 |
9349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9350 *${as_nl}ac_space=\ *)
9351 # `set' does not quote correctly, so add quotes: double-quote
9352 # substitution turns \\\\ into \\, and sed turns \\ into \.
9353 sed -n \
9354 "s/'/'\\\\''/g;
9355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9356 ;; #(
9358 # `set' quotes correctly as required by POSIX, so do not add quotes.
9359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9361 esac |
9362 sort
9364 sed '
9365 /^ac_cv_env_/b end
9366 t clear
9367 :clear
9368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9369 t end
9370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9371 :end' >>confcache
9372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9373 if test -w "$cache_file"; then
9374 if test "x$cache_file" != "x/dev/null"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9376 $as_echo "$as_me: updating cache $cache_file" >&6;}
9377 if test ! -f "$cache_file" || test -h "$cache_file"; then
9378 cat confcache >"$cache_file"
9379 else
9380 case $cache_file in #(
9381 */* | ?:*)
9382 mv -f confcache "$cache_file"$$ &&
9383 mv -f "$cache_file"$$ "$cache_file" ;; #(
9385 mv -f confcache "$cache_file" ;;
9386 esac
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9391 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9394 rm -f confcache
9396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9397 # Let make expand exec_prefix.
9398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9400 DEFS=-DHAVE_CONFIG_H
9402 ac_libobjs=
9403 ac_ltlibobjs=
9404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9405 # 1. Remove the extension, and $U if already installed.
9406 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9407 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9408 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9409 # will be set to the directory where LIBOBJS objects are built.
9410 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9411 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9412 done
9413 LIBOBJS=$ac_libobjs
9415 LTLIBOBJS=$ac_ltlibobjs
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9419 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9420 if test -n "$am_sleep_pid"; then
9421 # Hide warnings about reused PIDs.
9422 wait $am_sleep_pid 2>/dev/null
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9425 $as_echo "done" >&6; }
9426 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9427 as_fn_error $? "conditional \"AMDEP\" was never defined.
9428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9430 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9431 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9434 if test -n "$EXEEXT"; then
9435 am__EXEEXT_TRUE=
9436 am__EXEEXT_FALSE='#'
9437 else
9438 am__EXEEXT_TRUE='#'
9439 am__EXEEXT_FALSE=
9443 : "${CONFIG_STATUS=./config.status}"
9444 ac_write_fail=0
9445 ac_clean_files_save=$ac_clean_files
9446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9448 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9449 as_write_fail=0
9450 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9451 #! $SHELL
9452 # Generated by $as_me.
9453 # Run this file to recreate the current configuration.
9454 # Compiler output produced by configure, useful for debugging
9455 # configure, is in config.log if it exists.
9457 debug=false
9458 ac_cs_recheck=false
9459 ac_cs_silent=false
9461 SHELL=\${CONFIG_SHELL-$SHELL}
9462 export SHELL
9463 _ASEOF
9464 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9465 ## -------------------- ##
9466 ## M4sh Initialization. ##
9467 ## -------------------- ##
9469 # Be more Bourne compatible
9470 DUALCASE=1; export DUALCASE # for MKS sh
9471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9472 emulate sh
9473 NULLCMD=:
9474 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9475 # is contrary to our usage. Disable this feature.
9476 alias -g '${1+"$@"}'='"$@"'
9477 setopt NO_GLOB_SUBST
9478 else
9479 case `(set -o) 2>/dev/null` in #(
9480 *posix*) :
9481 set -o posix ;; #(
9482 *) :
9484 esac
9488 as_nl='
9490 export as_nl
9491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9492 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9495 # Prefer a ksh shell builtin over an external printf program on Solaris,
9496 # but without wasting forks for bash or zsh.
9497 if test -z "$BASH_VERSION$ZSH_VERSION" \
9498 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9499 as_echo='print -r --'
9500 as_echo_n='print -rn --'
9501 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9502 as_echo='printf %s\n'
9503 as_echo_n='printf %s'
9504 else
9505 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9506 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9507 as_echo_n='/usr/ucb/echo -n'
9508 else
9509 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9510 as_echo_n_body='eval
9511 arg=$1;
9512 case $arg in #(
9513 *"$as_nl"*)
9514 expr "X$arg" : "X\\(.*\\)$as_nl";
9515 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9516 esac;
9517 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9519 export as_echo_n_body
9520 as_echo_n='sh -c $as_echo_n_body as_echo'
9522 export as_echo_body
9523 as_echo='sh -c $as_echo_body as_echo'
9526 # The user is always right.
9527 if test "${PATH_SEPARATOR+set}" != set; then
9528 PATH_SEPARATOR=:
9529 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9530 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9531 PATH_SEPARATOR=';'
9536 # IFS
9537 # We need space, tab and new line, in precisely that order. Quoting is
9538 # there to prevent editors from complaining about space-tab.
9539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9540 # splitting by setting IFS to empty value.)
9541 IFS=" "" $as_nl"
9543 # Find who we are. Look in the path if we contain no directory separator.
9544 as_myself=
9545 case $0 in #((
9546 *[\\/]* ) as_myself=$0 ;;
9547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $PATH
9550 IFS=$as_save_IFS
9551 test -z "$as_dir" && as_dir=.
9552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9553 done
9554 IFS=$as_save_IFS
9557 esac
9558 # We did not find ourselves, most probably we were run as `sh COMMAND'
9559 # in which case we are not to be found in the path.
9560 if test "x$as_myself" = x; then
9561 as_myself=$0
9563 if test ! -f "$as_myself"; then
9564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9565 exit 1
9568 # Unset variables that we do not need and which cause bugs (e.g. in
9569 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9570 # suppresses any "Segmentation fault" message there. '((' could
9571 # trigger a bug in pdksh 5.2.14.
9572 for as_var in BASH_ENV ENV MAIL MAILPATH
9573 do eval test x\${$as_var+set} = xset \
9574 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9575 done
9576 PS1='$ '
9577 PS2='> '
9578 PS4='+ '
9580 # NLS nuisances.
9581 LC_ALL=C
9582 export LC_ALL
9583 LANGUAGE=C
9584 export LANGUAGE
9586 # CDPATH.
9587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9590 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9591 # ----------------------------------------
9592 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9593 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9594 # script with STATUS, using 1 if that was 0.
9595 as_fn_error ()
9597 as_status=$1; test $as_status -eq 0 && as_status=1
9598 if test "$4"; then
9599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9600 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9602 $as_echo "$as_me: error: $2" >&2
9603 as_fn_exit $as_status
9604 } # as_fn_error
9607 # as_fn_set_status STATUS
9608 # -----------------------
9609 # Set $? to STATUS, without forking.
9610 as_fn_set_status ()
9612 return $1
9613 } # as_fn_set_status
9615 # as_fn_exit STATUS
9616 # -----------------
9617 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9618 as_fn_exit ()
9620 set +e
9621 as_fn_set_status $1
9622 exit $1
9623 } # as_fn_exit
9625 # as_fn_unset VAR
9626 # ---------------
9627 # Portably unset VAR.
9628 as_fn_unset ()
9630 { eval $1=; unset $1;}
9632 as_unset=as_fn_unset
9633 # as_fn_append VAR VALUE
9634 # ----------------------
9635 # Append the text in VALUE to the end of the definition contained in VAR. Take
9636 # advantage of any shell optimizations that allow amortized linear growth over
9637 # repeated appends, instead of the typical quadratic growth present in naive
9638 # implementations.
9639 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9640 eval 'as_fn_append ()
9642 eval $1+=\$2
9644 else
9645 as_fn_append ()
9647 eval $1=\$$1\$2
9649 fi # as_fn_append
9651 # as_fn_arith ARG...
9652 # ------------------
9653 # Perform arithmetic evaluation on the ARGs, and store the result in the
9654 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9655 # must be portable across $(()) and expr.
9656 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9657 eval 'as_fn_arith ()
9659 as_val=$(( $* ))
9661 else
9662 as_fn_arith ()
9664 as_val=`expr "$@" || test $? -eq 1`
9666 fi # as_fn_arith
9669 if expr a : '\(a\)' >/dev/null 2>&1 &&
9670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9671 as_expr=expr
9672 else
9673 as_expr=false
9676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9677 as_basename=basename
9678 else
9679 as_basename=false
9682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9683 as_dirname=dirname
9684 else
9685 as_dirname=false
9688 as_me=`$as_basename -- "$0" ||
9689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9690 X"$0" : 'X\(//\)$' \| \
9691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9692 $as_echo X/"$0" |
9693 sed '/^.*\/\([^/][^/]*\)\/*$/{
9694 s//\1/
9697 /^X\/\(\/\/\)$/{
9698 s//\1/
9701 /^X\/\(\/\).*/{
9702 s//\1/
9705 s/.*/./; q'`
9707 # Avoid depending upon Character Ranges.
9708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9711 as_cr_digits='0123456789'
9712 as_cr_alnum=$as_cr_Letters$as_cr_digits
9714 ECHO_C= ECHO_N= ECHO_T=
9715 case `echo -n x` in #(((((
9716 -n*)
9717 case `echo 'xy\c'` in
9718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9719 xy) ECHO_C='\c';;
9720 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9721 ECHO_T=' ';;
9722 esac;;
9724 ECHO_N='-n';;
9725 esac
9727 rm -f conf$$ conf$$.exe conf$$.file
9728 if test -d conf$$.dir; then
9729 rm -f conf$$.dir/conf$$.file
9730 else
9731 rm -f conf$$.dir
9732 mkdir conf$$.dir 2>/dev/null
9734 if (echo >conf$$.file) 2>/dev/null; then
9735 if ln -s conf$$.file conf$$ 2>/dev/null; then
9736 as_ln_s='ln -s'
9737 # ... but there are two gotchas:
9738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9740 # In both cases, we have to default to `cp -pR'.
9741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9742 as_ln_s='cp -pR'
9743 elif ln conf$$.file conf$$ 2>/dev/null; then
9744 as_ln_s=ln
9745 else
9746 as_ln_s='cp -pR'
9748 else
9749 as_ln_s='cp -pR'
9751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9752 rmdir conf$$.dir 2>/dev/null
9755 # as_fn_mkdir_p
9756 # -------------
9757 # Create "$as_dir" as a directory, including parents if necessary.
9758 as_fn_mkdir_p ()
9761 case $as_dir in #(
9762 -*) as_dir=./$as_dir;;
9763 esac
9764 test -d "$as_dir" || eval $as_mkdir_p || {
9765 as_dirs=
9766 while :; do
9767 case $as_dir in #(
9768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9769 *) as_qdir=$as_dir;;
9770 esac
9771 as_dirs="'$as_qdir' $as_dirs"
9772 as_dir=`$as_dirname -- "$as_dir" ||
9773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9774 X"$as_dir" : 'X\(//\)[^/]' \| \
9775 X"$as_dir" : 'X\(//\)$' \| \
9776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9777 $as_echo X"$as_dir" |
9778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9779 s//\1/
9782 /^X\(\/\/\)[^/].*/{
9783 s//\1/
9786 /^X\(\/\/\)$/{
9787 s//\1/
9790 /^X\(\/\).*/{
9791 s//\1/
9794 s/.*/./; q'`
9795 test -d "$as_dir" && break
9796 done
9797 test -z "$as_dirs" || eval "mkdir $as_dirs"
9798 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9801 } # as_fn_mkdir_p
9802 if mkdir -p . 2>/dev/null; then
9803 as_mkdir_p='mkdir -p "$as_dir"'
9804 else
9805 test -d ./-p && rmdir ./-p
9806 as_mkdir_p=false
9810 # as_fn_executable_p FILE
9811 # -----------------------
9812 # Test if FILE is an executable regular file.
9813 as_fn_executable_p ()
9815 test -f "$1" && test -x "$1"
9816 } # as_fn_executable_p
9817 as_test_x='test -x'
9818 as_executable_p=as_fn_executable_p
9820 # Sed expression to map a string onto a valid CPP name.
9821 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9823 # Sed expression to map a string onto a valid variable name.
9824 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9827 exec 6>&1
9828 ## ----------------------------------- ##
9829 ## Main body of $CONFIG_STATUS script. ##
9830 ## ----------------------------------- ##
9831 _ASEOF
9832 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9835 # Save the log message, to keep $0 and so on meaningful, and to
9836 # report actual input values of CONFIG_FILES etc. instead of their
9837 # values after options handling.
9838 ac_log="
9839 This file was extended by $as_me, which was
9840 generated by GNU Autoconf 2.69. Invocation command line was
9842 CONFIG_FILES = $CONFIG_FILES
9843 CONFIG_HEADERS = $CONFIG_HEADERS
9844 CONFIG_LINKS = $CONFIG_LINKS
9845 CONFIG_COMMANDS = $CONFIG_COMMANDS
9846 $ $0 $@
9848 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9851 _ACEOF
9853 case $ac_config_files in *"
9854 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9855 esac
9857 case $ac_config_headers in *"
9858 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9859 esac
9862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9863 # Files that config.status was made for.
9864 config_files="$ac_config_files"
9865 config_headers="$ac_config_headers"
9866 config_commands="$ac_config_commands"
9868 _ACEOF
9870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9871 ac_cs_usage="\
9872 \`$as_me' instantiates files and other configuration actions
9873 from templates according to the current configuration. Unless the files
9874 and actions are specified as TAGs, all are instantiated by default.
9876 Usage: $0 [OPTION]... [TAG]...
9878 -h, --help print this help, then exit
9879 -V, --version print version number and configuration settings, then exit
9880 --config print configuration, then exit
9881 -q, --quiet, --silent
9882 do not print progress messages
9883 -d, --debug don't remove temporary files
9884 --recheck update $as_me by reconfiguring in the same conditions
9885 --file=FILE[:TEMPLATE]
9886 instantiate the configuration file FILE
9887 --header=FILE[:TEMPLATE]
9888 instantiate the configuration header FILE
9890 Configuration files:
9891 $config_files
9893 Configuration headers:
9894 $config_headers
9896 Configuration commands:
9897 $config_commands
9899 Report bugs to the package provider."
9901 _ACEOF
9902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9903 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9904 ac_cs_version="\\
9905 config.status
9906 configured by $0, generated by GNU Autoconf 2.69,
9907 with options \\"\$ac_cs_config\\"
9909 Copyright (C) 2012 Free Software Foundation, Inc.
9910 This config.status script is free software; the Free Software Foundation
9911 gives unlimited permission to copy, distribute and modify it."
9913 ac_pwd='$ac_pwd'
9914 srcdir='$srcdir'
9915 INSTALL='$INSTALL'
9916 MKDIR_P='$MKDIR_P'
9917 AWK='$AWK'
9918 test -n "\$AWK" || AWK=awk
9919 _ACEOF
9921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9922 # The default lists apply if the user does not specify any file.
9923 ac_need_defaults=:
9924 while test $# != 0
9926 case $1 in
9927 --*=?*)
9928 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9930 ac_shift=:
9932 --*=)
9933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9934 ac_optarg=
9935 ac_shift=:
9938 ac_option=$1
9939 ac_optarg=$2
9940 ac_shift=shift
9942 esac
9944 case $ac_option in
9945 # Handling of the options.
9946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9947 ac_cs_recheck=: ;;
9948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9949 $as_echo "$ac_cs_version"; exit ;;
9950 --config | --confi | --conf | --con | --co | --c )
9951 $as_echo "$ac_cs_config"; exit ;;
9952 --debug | --debu | --deb | --de | --d | -d )
9953 debug=: ;;
9954 --file | --fil | --fi | --f )
9955 $ac_shift
9956 case $ac_optarg in
9957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9958 '') as_fn_error $? "missing file argument" ;;
9959 esac
9960 as_fn_append CONFIG_FILES " '$ac_optarg'"
9961 ac_need_defaults=false;;
9962 --header | --heade | --head | --hea )
9963 $ac_shift
9964 case $ac_optarg in
9965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9966 esac
9967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9968 ac_need_defaults=false;;
9969 --he | --h)
9970 # Conflict between --help and --header
9971 as_fn_error $? "ambiguous option: \`$1'
9972 Try \`$0 --help' for more information.";;
9973 --help | --hel | -h )
9974 $as_echo "$ac_cs_usage"; exit ;;
9975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9977 ac_cs_silent=: ;;
9979 # This is an error.
9980 -*) as_fn_error $? "unrecognized option: \`$1'
9981 Try \`$0 --help' for more information." ;;
9983 *) as_fn_append ac_config_targets " $1"
9984 ac_need_defaults=false ;;
9986 esac
9987 shift
9988 done
9990 ac_configure_extra_args=
9992 if $ac_cs_silent; then
9993 exec 6>/dev/null
9994 ac_configure_extra_args="$ac_configure_extra_args --silent"
9997 _ACEOF
9998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9999 if \$ac_cs_recheck; then
10000 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10001 shift
10002 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10003 CONFIG_SHELL='$SHELL'
10004 export CONFIG_SHELL
10005 exec "\$@"
10008 _ACEOF
10009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10010 exec 5>>config.log
10012 echo
10013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10014 ## Running $as_me. ##
10015 _ASBOX
10016 $as_echo "$ac_log"
10017 } >&5
10019 _ACEOF
10020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10022 # INIT-COMMANDS
10024 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10025 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10026 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10027 # from automake.
10028 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10029 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10030 LINGUAS="${LINGUAS-%UNSET%}"
10033 _ACEOF
10035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10037 # Handling of arguments.
10038 for ac_config_target in $ac_config_targets
10040 case $ac_config_target in
10041 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10042 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10043 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10044 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10045 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10046 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
10047 "game/Makefile") CONFIG_FILES="$CONFIG_FILES game/Makefile" ;;
10048 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
10049 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
10050 "client/gui_theme/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui_theme/Makefile" ;;
10051 "client/gfx/Makefile") CONFIG_FILES="$CONFIG_FILES client/gfx/Makefile" ;;
10052 "client/gfx/AbsoluteB/Makefile") CONFIG_FILES="$CONFIG_FILES client/gfx/AbsoluteB/Makefile" ;;
10053 "client/gfx/Oz/Makefile") CONFIG_FILES="$CONFIG_FILES client/gfx/Oz/Makefile" ;;
10054 "client/gfx/Moiree/Makefile") CONFIG_FILES="$CONFIG_FILES client/gfx/Moiree/Makefile" ;;
10055 "client/gfx/Classic/Makefile") CONFIG_FILES="$CONFIG_FILES client/gfx/Classic/Makefile" ;;
10056 "client/sounds/Makefile") CONFIG_FILES="$CONFIG_FILES client/sounds/Makefile" ;;
10057 "client/levels/Makefile") CONFIG_FILES="$CONFIG_FILES client/levels/Makefile" ;;
10058 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
10059 "server/levels/Makefile") CONFIG_FILES="$CONFIG_FILES server/levels/Makefile" ;;
10060 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
10061 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10062 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10064 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10065 esac
10066 done
10069 # If the user did not use the arguments to specify the items to instantiate,
10070 # then the envvar interface is used. Set only those that are not.
10071 # We use the long form for the default assignment because of an extremely
10072 # bizarre bug on SunOS 4.1.3.
10073 if $ac_need_defaults; then
10074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10075 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10076 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10079 # Have a temporary directory for convenience. Make it in the build tree
10080 # simply because there is no reason against having it here, and in addition,
10081 # creating and moving files from /tmp can sometimes cause problems.
10082 # Hook for its removal unless debugging.
10083 # Note that there is a small window in which the directory will not be cleaned:
10084 # after its creation but before its name has been assigned to `$tmp'.
10085 $debug ||
10087 tmp= ac_tmp=
10088 trap 'exit_status=$?
10089 : "${ac_tmp:=$tmp}"
10090 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10092 trap 'as_fn_exit 1' 1 2 13 15
10094 # Create a (secure) tmp directory for tmp files.
10097 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10098 test -d "$tmp"
10099 } ||
10101 tmp=./conf$$-$RANDOM
10102 (umask 077 && mkdir "$tmp")
10103 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10104 ac_tmp=$tmp
10106 # Set up the scripts for CONFIG_FILES section.
10107 # No need to generate them if there are no CONFIG_FILES.
10108 # This happens for instance with `./config.status config.h'.
10109 if test -n "$CONFIG_FILES"; then
10112 ac_cr=`echo X | tr X '\015'`
10113 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10114 # But we know of no other shell where ac_cr would be empty at this
10115 # point, so we can use a bashism as a fallback.
10116 if test "x$ac_cr" = x; then
10117 eval ac_cr=\$\'\\r\'
10119 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10120 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10121 ac_cs_awk_cr='\\r'
10122 else
10123 ac_cs_awk_cr=$ac_cr
10126 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10127 _ACEOF
10131 echo "cat >conf$$subs.awk <<_ACEOF" &&
10132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10133 echo "_ACEOF"
10134 } >conf$$subs.sh ||
10135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10136 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10137 ac_delim='%!_!# '
10138 for ac_last_try in false false false false false :; do
10139 . ./conf$$subs.sh ||
10140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10142 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10143 if test $ac_delim_n = $ac_delim_num; then
10144 break
10145 elif $ac_last_try; then
10146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10147 else
10148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10150 done
10151 rm -f conf$$subs.sh
10153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10154 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10155 _ACEOF
10156 sed -n '
10158 s/^/S["/; s/!.*/"]=/
10161 s/^[^!]*!//
10162 :repl
10163 t repl
10164 s/'"$ac_delim"'$//
10165 t delim
10168 s/\(.\{148\}\)..*/\1/
10169 t more1
10170 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10173 b repl
10174 :more1
10175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10178 s/.\{148\}//
10179 t nl
10180 :delim
10182 s/\(.\{148\}\)..*/\1/
10183 t more2
10184 s/["\\]/\\&/g; s/^/"/; s/$/"/
10187 :more2
10188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10191 s/.\{148\}//
10192 t delim
10193 ' <conf$$subs.awk | sed '
10194 /^[^""]/{
10196 s/\n//
10198 ' >>$CONFIG_STATUS || ac_write_fail=1
10199 rm -f conf$$subs.awk
10200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10201 _ACAWK
10202 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10203 for (key in S) S_is_set[key] = 1
10204 FS = "\a"
10208 line = $ 0
10209 nfields = split(line, field, "@")
10210 substed = 0
10211 len = length(field[1])
10212 for (i = 2; i < nfields; i++) {
10213 key = field[i]
10214 keylen = length(key)
10215 if (S_is_set[key]) {
10216 value = S[key]
10217 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10218 len += length(value) + length(field[++i])
10219 substed = 1
10220 } else
10221 len += 1 + keylen
10224 print line
10227 _ACAWK
10228 _ACEOF
10229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10230 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10231 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10232 else
10234 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10235 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10236 _ACEOF
10238 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10239 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10240 # trailing colons and then remove the whole line if VPATH becomes empty
10241 # (actually we leave an empty line to preserve line numbers).
10242 if test "x$srcdir" = x.; then
10243 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10245 s///
10246 s/^/:/
10247 s/[ ]*$/:/
10248 s/:\$(srcdir):/:/g
10249 s/:\${srcdir}:/:/g
10250 s/:@srcdir@:/:/g
10251 s/^:*//
10252 s/:*$//
10254 s/\(=[ ]*\).*/\1/
10256 s/\n//
10257 s/^[^=]*=[ ]*$//
10261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10262 fi # test -n "$CONFIG_FILES"
10264 # Set up the scripts for CONFIG_HEADERS section.
10265 # No need to generate them if there are no CONFIG_HEADERS.
10266 # This happens for instance with `./config.status Makefile'.
10267 if test -n "$CONFIG_HEADERS"; then
10268 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10269 BEGIN {
10270 _ACEOF
10272 # Transform confdefs.h into an awk script `defines.awk', embedded as
10273 # here-document in config.status, that substitutes the proper values into
10274 # config.h.in to produce config.h.
10276 # Create a delimiter string that does not exist in confdefs.h, to ease
10277 # handling of long lines.
10278 ac_delim='%!_!# '
10279 for ac_last_try in false false :; do
10280 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10281 if test -z "$ac_tt"; then
10282 break
10283 elif $ac_last_try; then
10284 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10285 else
10286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10288 done
10290 # For the awk script, D is an array of macro values keyed by name,
10291 # likewise P contains macro parameters if any. Preserve backslash
10292 # newline sequences.
10294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10295 sed -n '
10296 s/.\{148\}/&'"$ac_delim"'/g
10297 t rset
10298 :rset
10299 s/^[ ]*#[ ]*define[ ][ ]*/ /
10300 t def
10302 :def
10303 s/\\$//
10304 t bsnl
10305 s/["\\]/\\&/g
10306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10307 D["\1"]=" \3"/p
10308 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10310 :bsnl
10311 s/["\\]/\\&/g
10312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10313 D["\1"]=" \3\\\\\\n"\\/p
10314 t cont
10315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10316 t cont
10318 :cont
10320 s/.\{148\}/&'"$ac_delim"'/g
10321 t clear
10322 :clear
10323 s/\\$//
10324 t bsnlc
10325 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10327 :bsnlc
10328 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10329 b cont
10330 ' <confdefs.h | sed '
10331 s/'"$ac_delim"'/"\\\
10332 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10335 for (key in D) D_is_set[key] = 1
10336 FS = "\a"
10338 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10339 line = \$ 0
10340 split(line, arg, " ")
10341 if (arg[1] == "#") {
10342 defundef = arg[2]
10343 mac1 = arg[3]
10344 } else {
10345 defundef = substr(arg[1], 2)
10346 mac1 = arg[2]
10348 split(mac1, mac2, "(") #)
10349 macro = mac2[1]
10350 prefix = substr(line, 1, index(line, defundef) - 1)
10351 if (D_is_set[macro]) {
10352 # Preserve the white space surrounding the "#".
10353 print prefix "define", macro P[macro] D[macro]
10354 next
10355 } else {
10356 # Replace #undef with comments. This is necessary, for example,
10357 # in the case of _POSIX_SOURCE, which is predefined and required
10358 # on some systems where configure will not decide to define it.
10359 if (defundef == "undef") {
10360 print "/*", prefix defundef, macro, "*/"
10361 next
10365 { print }
10366 _ACAWK
10367 _ACEOF
10368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10369 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10370 fi # test -n "$CONFIG_HEADERS"
10373 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10374 shift
10375 for ac_tag
10377 case $ac_tag in
10378 :[FHLC]) ac_mode=$ac_tag; continue;;
10379 esac
10380 case $ac_mode$ac_tag in
10381 :[FHL]*:*);;
10382 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10383 :[FH]-) ac_tag=-:-;;
10384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10385 esac
10386 ac_save_IFS=$IFS
10387 IFS=:
10388 set x $ac_tag
10389 IFS=$ac_save_IFS
10390 shift
10391 ac_file=$1
10392 shift
10394 case $ac_mode in
10395 :L) ac_source=$1;;
10396 :[FH])
10397 ac_file_inputs=
10398 for ac_f
10400 case $ac_f in
10401 -) ac_f="$ac_tmp/stdin";;
10402 *) # Look for the file first in the build tree, then in the source tree
10403 # (if the path is not absolute). The absolute path cannot be DOS-style,
10404 # because $ac_f cannot contain `:'.
10405 test -f "$ac_f" ||
10406 case $ac_f in
10407 [\\/$]*) false;;
10408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10409 esac ||
10410 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10411 esac
10412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10413 as_fn_append ac_file_inputs " '$ac_f'"
10414 done
10416 # Let's still pretend it is `configure' which instantiates (i.e., don't
10417 # use $as_me), people would be surprised to read:
10418 # /* config.h. Generated by config.status. */
10419 configure_input='Generated from '`
10420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10421 `' by configure.'
10422 if test x"$ac_file" != x-; then
10423 configure_input="$ac_file. $configure_input"
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10425 $as_echo "$as_me: creating $ac_file" >&6;}
10427 # Neutralize special characters interpreted by sed in replacement strings.
10428 case $configure_input in #(
10429 *\&* | *\|* | *\\* )
10430 ac_sed_conf_input=`$as_echo "$configure_input" |
10431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10432 *) ac_sed_conf_input=$configure_input;;
10433 esac
10435 case $ac_tag in
10436 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10438 esac
10440 esac
10442 ac_dir=`$as_dirname -- "$ac_file" ||
10443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10444 X"$ac_file" : 'X\(//\)[^/]' \| \
10445 X"$ac_file" : 'X\(//\)$' \| \
10446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10447 $as_echo X"$ac_file" |
10448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10449 s//\1/
10452 /^X\(\/\/\)[^/].*/{
10453 s//\1/
10456 /^X\(\/\/\)$/{
10457 s//\1/
10460 /^X\(\/\).*/{
10461 s//\1/
10464 s/.*/./; q'`
10465 as_dir="$ac_dir"; as_fn_mkdir_p
10466 ac_builddir=.
10468 case "$ac_dir" in
10469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10472 # A ".." for each directory in $ac_dir_suffix.
10473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10474 case $ac_top_builddir_sub in
10475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10477 esac ;;
10478 esac
10479 ac_abs_top_builddir=$ac_pwd
10480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10481 # for backward compatibility:
10482 ac_top_builddir=$ac_top_build_prefix
10484 case $srcdir in
10485 .) # We are building in place.
10486 ac_srcdir=.
10487 ac_top_srcdir=$ac_top_builddir_sub
10488 ac_abs_top_srcdir=$ac_pwd ;;
10489 [\\/]* | ?:[\\/]* ) # Absolute name.
10490 ac_srcdir=$srcdir$ac_dir_suffix;
10491 ac_top_srcdir=$srcdir
10492 ac_abs_top_srcdir=$srcdir ;;
10493 *) # Relative name.
10494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10495 ac_top_srcdir=$ac_top_build_prefix$srcdir
10496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10497 esac
10498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10501 case $ac_mode in
10504 # CONFIG_FILE
10507 case $INSTALL in
10508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10510 esac
10511 ac_MKDIR_P=$MKDIR_P
10512 case $MKDIR_P in
10513 [\\/$]* | ?:[\\/]* ) ;;
10514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10515 esac
10516 _ACEOF
10518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10519 # If the template does not know about datarootdir, expand it.
10520 # FIXME: This hack should be removed a few years after 2.60.
10521 ac_datarootdir_hack=; ac_datarootdir_seen=
10522 ac_sed_dataroot='
10523 /datarootdir/ {
10527 /@datadir@/p
10528 /@docdir@/p
10529 /@infodir@/p
10530 /@localedir@/p
10531 /@mandir@/p'
10532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10533 *datarootdir*) ac_datarootdir_seen=yes;;
10534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10536 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10537 _ACEOF
10538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10539 ac_datarootdir_hack='
10540 s&@datadir@&$datadir&g
10541 s&@docdir@&$docdir&g
10542 s&@infodir@&$infodir&g
10543 s&@localedir@&$localedir&g
10544 s&@mandir@&$mandir&g
10545 s&\\\${datarootdir}&$datarootdir&g' ;;
10546 esac
10547 _ACEOF
10549 # Neutralize VPATH when `$srcdir' = `.'.
10550 # Shell code in configure.ac might set extrasub.
10551 # FIXME: do we really want to maintain this feature?
10552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10553 ac_sed_extra="$ac_vpsub
10554 $extrasub
10555 _ACEOF
10556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10559 s|@configure_input@|$ac_sed_conf_input|;t t
10560 s&@top_builddir@&$ac_top_builddir_sub&;t t
10561 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10562 s&@srcdir@&$ac_srcdir&;t t
10563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10564 s&@top_srcdir@&$ac_top_srcdir&;t t
10565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10566 s&@builddir@&$ac_builddir&;t t
10567 s&@abs_builddir@&$ac_abs_builddir&;t t
10568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10569 s&@INSTALL@&$ac_INSTALL&;t t
10570 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10571 $ac_datarootdir_hack
10573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10574 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10577 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10579 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10581 which seems to be undefined. Please make sure it is defined" >&5
10582 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10583 which seems to be undefined. Please make sure it is defined" >&2;}
10585 rm -f "$ac_tmp/stdin"
10586 case $ac_file in
10587 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10588 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10589 esac \
10590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10594 # CONFIG_HEADER
10596 if test x"$ac_file" != x-; then
10598 $as_echo "/* $configure_input */" \
10599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10600 } >"$ac_tmp/config.h" \
10601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10602 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10604 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10605 else
10606 rm -f "$ac_file"
10607 mv "$ac_tmp/config.h" "$ac_file" \
10608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10610 else
10611 $as_echo "/* $configure_input */" \
10612 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10613 || as_fn_error $? "could not create -" "$LINENO" 5
10615 # Compute "$ac_file"'s index in $config_headers.
10616 _am_arg="$ac_file"
10617 _am_stamp_count=1
10618 for _am_header in $config_headers :; do
10619 case $_am_header in
10620 $_am_arg | $_am_arg:* )
10621 break ;;
10623 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10624 esac
10625 done
10626 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10627 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10628 X"$_am_arg" : 'X\(//\)[^/]' \| \
10629 X"$_am_arg" : 'X\(//\)$' \| \
10630 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10631 $as_echo X"$_am_arg" |
10632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10633 s//\1/
10636 /^X\(\/\/\)[^/].*/{
10637 s//\1/
10640 /^X\(\/\/\)$/{
10641 s//\1/
10644 /^X\(\/\).*/{
10645 s//\1/
10648 s/.*/./; q'`/stamp-h$_am_stamp_count
10651 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10652 $as_echo "$as_me: executing $ac_file commands" >&6;}
10654 esac
10657 case $ac_file$ac_mode in
10658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10659 # Older Autoconf quotes --file arguments for eval, but not when files
10660 # are listed without --file. Let's play safe and only enable the eval
10661 # if we detect the quoting.
10662 case $CONFIG_FILES in
10663 *\'*) eval set x "$CONFIG_FILES" ;;
10664 *) set x $CONFIG_FILES ;;
10665 esac
10666 shift
10667 for mf
10669 # Strip MF so we end up with the name of the file.
10670 mf=`echo "$mf" | sed -e 's/:.*$//'`
10671 # Check whether this is an Automake generated Makefile or not.
10672 # We used to match only the files named 'Makefile.in', but
10673 # some people rename them; so instead we look at the file content.
10674 # Grep'ing the first line is not enough: some people post-process
10675 # each Makefile.in and add a new line on top of each file to say so.
10676 # Grep'ing the whole file is not good either: AIX grep has a line
10677 # limit of 2048, but all sed's we know have understand at least 4000.
10678 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10679 dirpart=`$as_dirname -- "$mf" ||
10680 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10681 X"$mf" : 'X\(//\)[^/]' \| \
10682 X"$mf" : 'X\(//\)$' \| \
10683 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10684 $as_echo X"$mf" |
10685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10686 s//\1/
10689 /^X\(\/\/\)[^/].*/{
10690 s//\1/
10693 /^X\(\/\/\)$/{
10694 s//\1/
10697 /^X\(\/\).*/{
10698 s//\1/
10701 s/.*/./; q'`
10702 else
10703 continue
10705 # Extract the definition of DEPDIR, am__include, and am__quote
10706 # from the Makefile without running 'make'.
10707 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10708 test -z "$DEPDIR" && continue
10709 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10710 test -z "$am__include" && continue
10711 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10712 # Find all dependency output files, they are included files with
10713 # $(DEPDIR) in their names. We invoke sed twice because it is the
10714 # simplest approach to changing $(DEPDIR) to its actual value in the
10715 # expansion.
10716 for file in `sed -n "
10717 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10718 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10719 # Make sure the directory exists.
10720 test -f "$dirpart/$file" && continue
10721 fdir=`$as_dirname -- "$file" ||
10722 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10723 X"$file" : 'X\(//\)[^/]' \| \
10724 X"$file" : 'X\(//\)$' \| \
10725 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10726 $as_echo X"$file" |
10727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10728 s//\1/
10731 /^X\(\/\/\)[^/].*/{
10732 s//\1/
10735 /^X\(\/\/\)$/{
10736 s//\1/
10739 /^X\(\/\).*/{
10740 s//\1/
10743 s/.*/./; q'`
10744 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10745 # echo "creating $dirpart/$file"
10746 echo '# dummy' > "$dirpart/$file"
10747 done
10748 done
10751 "default-1":C)
10752 for ac_file in $CONFIG_FILES; do
10753 # Support "outfile[:infile[:infile...]]"
10754 case "$ac_file" in
10755 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10756 esac
10757 # PO directories have a Makefile.in generated from Makefile.in.in.
10758 case "$ac_file" in */Makefile.in)
10759 # Adjust a relative srcdir.
10760 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10761 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10762 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10763 # In autoconf-2.13 it is called $ac_given_srcdir.
10764 # In autoconf-2.50 it is called $srcdir.
10765 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10766 case "$ac_given_srcdir" in
10767 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10768 /*) top_srcdir="$ac_given_srcdir" ;;
10769 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10770 esac
10771 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10772 rm -f "$ac_dir/POTFILES"
10773 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10774 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10775 POMAKEFILEDEPS="POTFILES.in"
10776 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10777 # on $ac_dir but don't depend on user-specified configuration
10778 # parameters.
10779 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10780 # The LINGUAS file contains the set of available languages.
10781 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10782 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10784 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10785 # Hide the ALL_LINGUAS assigment from automake.
10786 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10787 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10788 else
10789 # The set of available languages was given in configure.in.
10790 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10792 # Compute POFILES
10793 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10794 # Compute UPDATEPOFILES
10795 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10796 # Compute DUMMYPOFILES
10797 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10798 # Compute GMOFILES
10799 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10800 case "$ac_given_srcdir" in
10801 .) srcdirpre= ;;
10802 *) srcdirpre='$(srcdir)/' ;;
10803 esac
10804 POFILES=
10805 UPDATEPOFILES=
10806 DUMMYPOFILES=
10807 GMOFILES=
10808 for lang in $ALL_LINGUAS; do
10809 POFILES="$POFILES $srcdirpre$lang.po"
10810 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10811 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10812 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10813 done
10814 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10815 # environment variable.
10816 INST_LINGUAS=
10817 if test -n "$ALL_LINGUAS"; then
10818 for presentlang in $ALL_LINGUAS; do
10819 useit=no
10820 if test "%UNSET%" != "$LINGUAS"; then
10821 desiredlanguages="$LINGUAS"
10822 else
10823 desiredlanguages="$ALL_LINGUAS"
10825 for desiredlang in $desiredlanguages; do
10826 # Use the presentlang catalog if desiredlang is
10827 # a. equal to presentlang, or
10828 # b. a variant of presentlang (because in this case,
10829 # presentlang can be used as a fallback for messages
10830 # which are not translated in the desiredlang catalog).
10831 case "$desiredlang" in
10832 "$presentlang"*) useit=yes;;
10833 esac
10834 done
10835 if test $useit = yes; then
10836 INST_LINGUAS="$INST_LINGUAS $presentlang"
10838 done
10840 CATALOGS=
10841 if test -n "$INST_LINGUAS"; then
10842 for lang in $INST_LINGUAS; do
10843 CATALOGS="$CATALOGS $lang.gmo"
10844 done
10846 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10847 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10848 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10849 if test -f "$f"; then
10850 case "$f" in
10851 *.orig | *.bak | *~) ;;
10852 *) cat "$f" >> "$ac_dir/Makefile" ;;
10853 esac
10855 done
10858 esac
10859 done ;;
10861 esac
10862 done # for ac_tag
10865 as_fn_exit 0
10866 _ACEOF
10867 ac_clean_files=$ac_clean_files_save
10869 test $ac_write_fail = 0 ||
10870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10873 # configure is writing to config.log, and then calls config.status.
10874 # config.status does its own redirection, appending to config.log.
10875 # Unfortunately, on DOS this fails, as config.log is still kept open
10876 # by configure, so config.status won't be able to write to it; its
10877 # output is simply discarded. So we exec the FD to /dev/null,
10878 # effectively closing config.log, so it can be properly (re)opened and
10879 # appended to by config.status. When coming back to configure, we
10880 # need to make the FD available again.
10881 if test "$no_create" != yes; then
10882 ac_cs_success=:
10883 ac_config_status_args=
10884 test "$silent" = yes &&
10885 ac_config_status_args="$ac_config_status_args --quiet"
10886 exec 5>/dev/null
10887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10888 exec 5>>config.log
10889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10890 # would make configure fail if this is the last instruction.
10891 $ac_cs_success || as_fn_exit 1
10893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10895 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}