re-generate configure script
[rofl0r-gnuboy.git] / configure
blobaf5344dc75636299fcbcf2aa4bf46dfc5c84a2a0
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="cpu.c"
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_subst_vars='LTLIBOBJS
623 LIBOBJS
624 XLIBS
625 XINCS
626 TARGETS
627 SDL2_LIBS
628 SDL_LIBS
629 SDL_CFLAGS
630 FB_OBJS
631 SYS_OBJS
632 ASM_OBJS
635 SOUND
636 ENDIAN
637 SYS_DEFS
638 XMKMF
639 EGREP
640 GREP
641 INSTALL_DATA
642 INSTALL_SCRIPT
643 INSTALL_PROGRAM
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
652 target_alias
653 host_alias
654 build_alias
655 LIBS
656 ECHO_T
657 ECHO_N
658 ECHO_C
659 DEFS
660 mandir
661 localedir
662 libdir
663 psdir
664 pdfdir
665 dvidir
666 htmldir
667 infodir
668 docdir
669 oldincludedir
670 includedir
671 localstatedir
672 sharedstatedir
673 sysconfdir
674 datadir
675 datarootdir
676 libexecdir
677 sbindir
678 bindir
679 program_transform_name
680 prefix
681 exec_prefix
682 PACKAGE_URL
683 PACKAGE_BUGREPORT
684 PACKAGE_STRING
685 PACKAGE_VERSION
686 PACKAGE_TARNAME
687 PACKAGE_NAME
688 PATH_SEPARATOR
689 SHELL'
690 ac_subst_files=''
691 ac_user_opts='
692 enable_option_checking
693 with_fb
694 with_svgalib
695 with_sdl
696 with_sdl2
697 with_sound
698 with_x
699 enable_warnings
700 enable_debug
701 enable_profile
702 enable_arch
703 enable_optimize
704 enable_asm
706 ac_precious_vars='build_alias
707 host_alias
708 target_alias
710 CFLAGS
711 LDFLAGS
712 LIBS
713 CPPFLAGS
715 XMKMF'
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 ac_unrecognized_opts=
722 ac_unrecognized_sep=
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
766 ac_prev=
767 ac_dashdash=
768 for ac_option
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
777 case $ac_option in
778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *=) ac_optarg= ;;
780 *) ac_optarg=yes ;;
781 esac
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
787 ac_dashdash=yes ;;
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
806 --config-cache | -C)
807 cache_file=config.cache ;;
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error $? "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
847 -enable-* | --enable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error $? "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=\$ac_optarg ;;
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1051 -with-* | --with-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=\$ac_optarg ;;
1067 -without-* | --without-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information"
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 esac
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1123 esac
1124 done
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error $? "missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1133 no) ;;
1134 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 esac
1139 # Check all directory arguments for consistency.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1158 done
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1163 build=$build_alias
1164 host=$host_alias
1165 target=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
1171 elif test "x$build_alias" != "x$host_alias"; then
1172 cross_compiling=yes
1176 ac_tool_prefix=
1177 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179 test "$silent" = yes && exec 6>/dev/null
1182 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183 ac_ls_di=`ls -di .` &&
1184 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185 as_fn_error $? "working directory cannot be determined"
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 as_fn_error $? "pwd does not report name of working directory"
1190 # Find the source files, if location was not specified.
1191 if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
1193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$as_myself" ||
1195 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$as_myself" : 'X\(//\)[^/]' \| \
1197 X"$as_myself" : 'X\(//\)$' \| \
1198 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1199 $as_echo X"$as_myself" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 s//\1/
1204 /^X\(\/\/\)[^/].*/{
1205 s//\1/
1208 /^X\(\/\/\)$/{
1209 s//\1/
1212 /^X\(\/\).*/{
1213 s//\1/
1216 s/.*/./; q'`
1217 srcdir=$ac_confdir
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 srcdir=..
1221 else
1222 ac_srcdir_defaulted=no
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 ac_abs_confdir=`(
1230 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1231 pwd)`
1232 # When building in place, set srcdir=.
1233 if test "$ac_abs_confdir" = "$ac_pwd"; then
1234 srcdir=.
1236 # Remove unnecessary trailing slashes from srcdir.
1237 # Double slashes in file names in object file debugging info
1238 # mess up M-x gdb in Emacs.
1239 case $srcdir in
1240 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 esac
1242 for ac_var in $ac_precious_vars; do
1243 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_env_${ac_var}_value=\$${ac_var}
1245 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1247 done
1250 # Report the --help message.
1252 if test "$ac_init_help" = "long"; then
1253 # Omit some internal or obsolete options to make the list less imposing.
1254 # This message is too long to be a string in the A/UX 3.1 sh.
1255 cat <<_ACEOF
1256 \`configure' configures this package to adapt to many kinds of systems.
1258 Usage: $0 [OPTION]... [VAR=VALUE]...
1260 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261 VAR=VALUE. See below for descriptions of some of the useful variables.
1263 Defaults for the options are specified in brackets.
1265 Configuration:
1266 -h, --help display this help and exit
1267 --help=short display options specific to this package
1268 --help=recursive display the short help of all the included packages
1269 -V, --version display version information and exit
1270 -q, --quiet, --silent do not print \`checking ...' messages
1271 --cache-file=FILE cache test results in FILE [disabled]
1272 -C, --config-cache alias for \`--cache-file=config.cache'
1273 -n, --no-create do not create output files
1274 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276 Installation directories:
1277 --prefix=PREFIX install architecture-independent files in PREFIX
1278 [$ac_default_prefix]
1279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1280 [PREFIX]
1282 By default, \`make install' will install all the files in
1283 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1284 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285 for instance \`--prefix=\$HOME'.
1287 For better control, use the options below.
1289 Fine tuning of the installation directories:
1290 --bindir=DIR user executables [EPREFIX/bin]
1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --libdir=DIR object code libraries [EPREFIX/lib]
1297 --includedir=DIR C header files [PREFIX/include]
1298 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1301 --infodir=DIR info documentation [DATAROOTDIR/info]
1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1303 --mandir=DIR man documentation [DATAROOTDIR/man]
1304 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1305 --htmldir=DIR html documentation [DOCDIR]
1306 --dvidir=DIR dvi documentation [DOCDIR]
1307 --pdfdir=DIR pdf documentation [DOCDIR]
1308 --psdir=DIR ps documentation [DOCDIR]
1309 _ACEOF
1311 cat <<\_ACEOF
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1316 _ACEOF
1319 if test -n "$ac_init_help"; then
1321 cat <<\_ACEOF
1323 Optional Features:
1324 --disable-option-checking ignore unrecognized --enable/--with options
1325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1327 --enable-warnings enable selected compiler warnings
1328 --enable-debug include debugging symbols
1329 --enable-profile enable performance profiling
1330 --enable-arch compile for specific host cpu architecture
1331 --enable-optimize=LEVEL select optimization level (full,low,none)
1332 --enable-asm use hand-optimized asm cores
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-fb build framebuffer device interface
1338 --with-svgalib build Linux svgalib interface
1339 --with-sdl build SDL interface
1340 --with-sdl2 build SDL2 interface
1341 --with-sound=no,oss,sdl,ao select sound interface
1342 --with-x use the X Window System
1344 Some influential environment variables:
1345 CC C compiler command
1346 CFLAGS C compiler flags
1347 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1348 nonstandard directory <lib dir>
1349 LIBS libraries to pass to the linker, e.g. -l<library>
1350 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1351 you have headers in a nonstandard directory <include dir>
1352 CPP C preprocessor
1353 XMKMF Path to xmkmf, Makefile generator for X Window System
1355 Use these variables to override the choices made by `configure' or to help
1356 it to find libraries and programs with nonstandard names/locations.
1358 Report bugs to the package provider.
1359 _ACEOF
1360 ac_status=$?
1363 if test "$ac_init_help" = "recursive"; then
1364 # If there are subdirs, report their specific --help.
1365 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1366 test -d "$ac_dir" ||
1367 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1368 continue
1369 ac_builddir=.
1371 case "$ac_dir" in
1372 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1375 # A ".." for each directory in $ac_dir_suffix.
1376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1377 case $ac_top_builddir_sub in
1378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1380 esac ;;
1381 esac
1382 ac_abs_top_builddir=$ac_pwd
1383 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1384 # for backward compatibility:
1385 ac_top_builddir=$ac_top_build_prefix
1387 case $srcdir in
1388 .) # We are building in place.
1389 ac_srcdir=.
1390 ac_top_srcdir=$ac_top_builddir_sub
1391 ac_abs_top_srcdir=$ac_pwd ;;
1392 [\\/]* | ?:[\\/]* ) # Absolute name.
1393 ac_srcdir=$srcdir$ac_dir_suffix;
1394 ac_top_srcdir=$srcdir
1395 ac_abs_top_srcdir=$srcdir ;;
1396 *) # Relative name.
1397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1398 ac_top_srcdir=$ac_top_build_prefix$srcdir
1399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400 esac
1401 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403 cd "$ac_dir" || { ac_status=$?; continue; }
1404 # Check for guested configure.
1405 if test -f "$ac_srcdir/configure.gnu"; then
1406 echo &&
1407 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1408 elif test -f "$ac_srcdir/configure"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure" --help=recursive
1411 else
1412 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1413 fi || ac_status=$?
1414 cd "$ac_pwd" || { ac_status=$?; break; }
1415 done
1418 test -n "$ac_init_help" && exit $ac_status
1419 if $ac_init_version; then
1420 cat <<\_ACEOF
1421 configure
1422 generated by GNU Autoconf 2.69
1424 Copyright (C) 2012 Free Software Foundation, Inc.
1425 This configure script is free software; the Free Software Foundation
1426 gives unlimited permission to copy, distribute and modify it.
1427 _ACEOF
1428 exit
1431 ## ------------------------ ##
1432 ## Autoconf initialization. ##
1433 ## ------------------------ ##
1435 # ac_fn_c_try_compile LINENO
1436 # --------------------------
1437 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1438 ac_fn_c_try_compile ()
1440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1441 rm -f conftest.$ac_objext
1442 if { { ac_try="$ac_compile"
1443 case "(($ac_try" in
1444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1445 *) ac_try_echo=$ac_try;;
1446 esac
1447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1448 $as_echo "$ac_try_echo"; } >&5
1449 (eval "$ac_compile") 2>conftest.err
1450 ac_status=$?
1451 if test -s conftest.err; then
1452 grep -v '^ *+' conftest.err >conftest.er1
1453 cat conftest.er1 >&5
1454 mv -f conftest.er1 conftest.err
1456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1457 test $ac_status = 0; } && {
1458 test -z "$ac_c_werror_flag" ||
1459 test ! -s conftest.err
1460 } && test -s conftest.$ac_objext; then :
1461 ac_retval=0
1462 else
1463 $as_echo "$as_me: failed program was:" >&5
1464 sed 's/^/| /' conftest.$ac_ext >&5
1466 ac_retval=1
1468 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1469 as_fn_set_status $ac_retval
1471 } # ac_fn_c_try_compile
1473 # ac_fn_c_try_cpp LINENO
1474 # ----------------------
1475 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_cpp ()
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 if { { ac_try="$ac_cpp conftest.$ac_ext"
1480 case "(($ac_try" in
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1487 ac_status=$?
1488 if test -s conftest.err; then
1489 grep -v '^ *+' conftest.err >conftest.er1
1490 cat conftest.er1 >&5
1491 mv -f conftest.er1 conftest.err
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } > conftest.i && {
1495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 }; then :
1498 ac_retval=0
1499 else
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1503 ac_retval=1
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status $ac_retval
1508 } # ac_fn_c_try_cpp
1510 # ac_fn_c_try_run LINENO
1511 # ----------------------
1512 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1513 # that executables *can* be run.
1514 ac_fn_c_try_run ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 if { { ac_try="$ac_link"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_link") 2>&5
1525 ac_status=$?
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1528 { { case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_try") 2>&5
1535 ac_status=$?
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; }; }; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: program exited with status $ac_status" >&5
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1544 ac_retval=$ac_status
1546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_run
1552 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1553 # -------------------------------------------------------
1554 # Tests whether HEADER exists and can be compiled using the include files in
1555 # INCLUDES, setting the cache variable VAR accordingly.
1556 ac_fn_c_check_header_compile ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1560 $as_echo_n "checking for $2... " >&6; }
1561 if eval \${$3+:} false; then :
1562 $as_echo_n "(cached) " >&6
1563 else
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1567 #include <$2>
1568 _ACEOF
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 eval "$3=yes"
1571 else
1572 eval "$3=no"
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576 eval ac_res=\$$3
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1578 $as_echo "$ac_res" >&6; }
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 } # ac_fn_c_check_header_compile
1583 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586 # the include files in INCLUDES and setting the cache variable VAR
1587 # accordingly.
1588 ac_fn_c_check_header_mongrel ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if eval \${$3+:} false; then :
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if eval \${$3+:} false; then :
1595 $as_echo_n "(cached) " >&6
1597 eval ac_res=\$$3
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1600 else
1601 # Is the header compilable?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603 $as_echo_n "checking $2 usability... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610 ac_header_compiler=yes
1611 else
1612 ac_header_compiler=no
1614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616 $as_echo "$ac_header_compiler" >&6; }
1618 # Is the header present?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620 $as_echo_n "checking $2 presence... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_cpp "$LINENO"; then :
1626 ac_header_preproc=yes
1627 else
1628 ac_header_preproc=no
1630 rm -f conftest.err conftest.i conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632 $as_echo "$ac_header_preproc" >&6; }
1634 # So? What about this header?
1635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1636 yes:no: )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 no:yes:* )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 esac
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 eval "$3=\$ac_header_compiler"
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 } # ac_fn_c_check_header_mongrel
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_check_func LINENO FUNC VAR
1717 # ----------------------------------
1718 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1731 #define $2 innocuous_$2
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $2 (); below.
1735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736 <limits.h> exists even on freestanding compilers. */
1738 #ifdef __STDC__
1739 # include <limits.h>
1740 #else
1741 # include <assert.h>
1742 #endif
1744 #undef $2
1746 /* Override any GCC internal prototype to avoid an error.
1747 Use char because int might match the return type of a GCC
1748 builtin and then its argument prototype would still apply. */
1749 #ifdef __cplusplus
1750 extern "C"
1751 #endif
1752 char $2 ();
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined __stub_$2 || defined __stub___$2
1757 choke me
1758 #endif
1761 main ()
1763 return $2 ();
1765 return 0;
1767 _ACEOF
1768 if ac_fn_c_try_link "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1773 rm -f core conftest.err conftest.$ac_objext \
1774 conftest$ac_exeext conftest.$ac_ext
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 } # ac_fn_c_check_func
1782 cat >config.log <<_ACEOF
1783 This file contains any messages produced by compilers while
1784 running configure, to aid debugging if configure makes a mistake.
1786 It was created by $as_me, which was
1787 generated by GNU Autoconf 2.69. Invocation command line was
1789 $ $0 $@
1791 _ACEOF
1792 exec 5>>config.log
1794 cat <<_ASUNAME
1795 ## --------- ##
1796 ## Platform. ##
1797 ## --------- ##
1799 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1800 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1801 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1802 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1803 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1805 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1806 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1808 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1809 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1810 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1811 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1812 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1813 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1814 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1816 _ASUNAME
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 $as_echo "PATH: $as_dir"
1824 done
1825 IFS=$as_save_IFS
1827 } >&5
1829 cat >&5 <<_ACEOF
1832 ## ----------- ##
1833 ## Core tests. ##
1834 ## ----------- ##
1836 _ACEOF
1839 # Keep a trace of the command line.
1840 # Strip out --no-create and --no-recursion so they do not pile up.
1841 # Strip out --silent because we don't want to record it for future runs.
1842 # Also quote any args containing shell meta-characters.
1843 # Make two passes to allow for proper duplicate-argument suppression.
1844 ac_configure_args=
1845 ac_configure_args0=
1846 ac_configure_args1=
1847 ac_must_keep_next=false
1848 for ac_pass in 1 2
1850 for ac_arg
1852 case $ac_arg in
1853 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855 | -silent | --silent | --silen | --sile | --sil)
1856 continue ;;
1857 *\'*)
1858 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 esac
1860 case $ac_pass in
1861 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1863 as_fn_append ac_configure_args1 " '$ac_arg'"
1864 if test $ac_must_keep_next = true; then
1865 ac_must_keep_next=false # Got value, back to normal.
1866 else
1867 case $ac_arg in
1868 *=* | --config-cache | -C | -disable-* | --disable-* \
1869 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871 | -with-* | --with-* | -without-* | --without-* | --x)
1872 case "$ac_configure_args0 " in
1873 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1874 esac
1876 -* ) ac_must_keep_next=true ;;
1877 esac
1879 as_fn_append ac_configure_args " '$ac_arg'"
1881 esac
1882 done
1883 done
1884 { ac_configure_args0=; unset ac_configure_args0;}
1885 { ac_configure_args1=; unset ac_configure_args1;}
1887 # When interrupted or exit'd, cleanup temporary files, and complete
1888 # config.log. We remove comments because anyway the quotes in there
1889 # would cause problems or look ugly.
1890 # WARNING: Use '\'' to represent an apostrophe within the trap.
1891 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892 trap 'exit_status=$?
1893 # Save into config.log some information that might help in debugging.
1895 echo
1897 $as_echo "## ---------------- ##
1898 ## Cache variables. ##
1899 ## ---------------- ##"
1900 echo
1901 # The following way of writing the cache mishandles newlines in values,
1903 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1904 eval ac_val=\$$ac_var
1905 case $ac_val in #(
1906 *${as_nl}*)
1907 case $ac_var in #(
1908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1910 esac
1911 case $ac_var in #(
1912 _ | IFS | as_nl) ;; #(
1913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1914 *) { eval $ac_var=; unset $ac_var;} ;;
1915 esac ;;
1916 esac
1917 done
1918 (set) 2>&1 |
1919 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1920 *${as_nl}ac_space=\ *)
1921 sed -n \
1922 "s/'\''/'\''\\\\'\'''\''/g;
1923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1924 ;; #(
1926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1928 esac |
1929 sort
1931 echo
1933 $as_echo "## ----------------- ##
1934 ## Output variables. ##
1935 ## ----------------- ##"
1936 echo
1937 for ac_var in $ac_subst_vars
1939 eval ac_val=\$$ac_var
1940 case $ac_val in
1941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1942 esac
1943 $as_echo "$ac_var='\''$ac_val'\''"
1944 done | sort
1945 echo
1947 if test -n "$ac_subst_files"; then
1948 $as_echo "## ------------------- ##
1949 ## File substitutions. ##
1950 ## ------------------- ##"
1951 echo
1952 for ac_var in $ac_subst_files
1954 eval ac_val=\$$ac_var
1955 case $ac_val in
1956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957 esac
1958 $as_echo "$ac_var='\''$ac_val'\''"
1959 done | sort
1960 echo
1963 if test -s confdefs.h; then
1964 $as_echo "## ----------- ##
1965 ## confdefs.h. ##
1966 ## ----------- ##"
1967 echo
1968 cat confdefs.h
1969 echo
1971 test "$ac_signal" != 0 &&
1972 $as_echo "$as_me: caught signal $ac_signal"
1973 $as_echo "$as_me: exit $exit_status"
1974 } >&5
1975 rm -f core *.core core.conftest.* &&
1976 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977 exit $exit_status
1979 for ac_signal in 1 2 13 15; do
1980 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1981 done
1982 ac_signal=0
1984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1985 rm -f -r conftest* confdefs.h
1987 $as_echo "/* confdefs.h */" > confdefs.h
1989 # Predefined preprocessor variables.
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_NAME "$PACKAGE_NAME"
1993 _ACEOF
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997 _ACEOF
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2001 _ACEOF
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_STRING "$PACKAGE_STRING"
2005 _ACEOF
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009 _ACEOF
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_URL "$PACKAGE_URL"
2013 _ACEOF
2016 # Let the site file select an alternate cache file if it wants to.
2017 # Prefer an explicitly selected file to automatically selected ones.
2018 ac_site_file1=NONE
2019 ac_site_file2=NONE
2020 if test -n "$CONFIG_SITE"; then
2021 # We do not want a PATH search for config.site.
2022 case $CONFIG_SITE in #((
2023 -*) ac_site_file1=./$CONFIG_SITE;;
2024 */*) ac_site_file1=$CONFIG_SITE;;
2025 *) ac_site_file1=./$CONFIG_SITE;;
2026 esac
2027 elif test "x$prefix" != xNONE; then
2028 ac_site_file1=$prefix/share/config.site
2029 ac_site_file2=$prefix/etc/config.site
2030 else
2031 ac_site_file1=$ac_default_prefix/share/config.site
2032 ac_site_file2=$ac_default_prefix/etc/config.site
2034 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2036 test "x$ac_site_file" = xNONE && continue
2037 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2040 sed 's/^/| /' "$ac_site_file" >&5
2041 . "$ac_site_file" \
2042 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044 as_fn_error $? "failed to load site script $ac_site_file
2045 See \`config.log' for more details" "$LINENO" 5; }
2047 done
2049 if test -r "$cache_file"; then
2050 # Some versions of bash will fail to source /dev/null (special files
2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054 $as_echo "$as_me: loading cache $cache_file" >&6;}
2055 case $cache_file in
2056 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057 *) . "./$cache_file";;
2058 esac
2060 else
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062 $as_echo "$as_me: creating cache $cache_file" >&6;}
2063 >$cache_file
2066 # Check that the precious variables saved in the cache have kept the same
2067 # value.
2068 ac_cache_corrupted=false
2069 for ac_var in $ac_precious_vars; do
2070 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2071 eval ac_new_set=\$ac_env_${ac_var}_set
2072 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2073 eval ac_new_val=\$ac_env_${ac_var}_value
2074 case $ac_old_set,$ac_new_set in
2075 set,)
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2077 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2078 ac_cache_corrupted=: ;;
2079 ,set)
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2081 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2082 ac_cache_corrupted=: ;;
2083 ,);;
2085 if test "x$ac_old_val" != "x$ac_new_val"; then
2086 # differences in whitespace do not lead to failure.
2087 ac_old_val_w=`echo x $ac_old_val`
2088 ac_new_val_w=`echo x $ac_new_val`
2089 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2091 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2092 ac_cache_corrupted=:
2093 else
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2095 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2096 eval $ac_var=\$ac_old_val
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2099 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2101 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2102 fi;;
2103 esac
2104 # Pass precious variables to config.status.
2105 if test "$ac_new_set" = set; then
2106 case $ac_new_val in
2107 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 *) ac_arg=$ac_var=$ac_new_val ;;
2109 esac
2110 case " $ac_configure_args " in
2111 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2112 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2113 esac
2115 done
2116 if $ac_cache_corrupted; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2120 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2121 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2123 ## -------------------- ##
2124 ## Main body of script. ##
2125 ## -------------------- ##
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135 CFLAGS="$CFLAGS"
2136 # if user sets custom CFLAGS, don't enforce our optimization flags
2137 test -n "$CFLAGS" && enable_optimize=no
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2149 $as_echo_n "checking for $ac_word... " >&6; }
2150 if ${ac_cv_prog_CC+:} false; then :
2151 $as_echo_n "(cached) " >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2169 IFS=$as_save_IFS
2173 CC=$ac_cv_prog_CC
2174 if test -n "$CC"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2176 $as_echo "$CC" >&6; }
2177 else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2179 $as_echo "no" >&6; }
2184 if test -z "$ac_cv_prog_CC"; then
2185 ac_ct_CC=$CC
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2189 $as_echo_n "checking for $ac_word... " >&6; }
2190 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2191 $as_echo_n "(cached) " >&6
2192 else
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2209 IFS=$as_save_IFS
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if test -n "$ac_ct_CC"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2216 $as_echo "$ac_ct_CC" >&6; }
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2219 $as_echo "no" >&6; }
2222 if test "x$ac_ct_CC" = x; then
2223 CC=""
2224 else
2225 case $cross_compiling:$ac_tool_warned in
2226 yes:)
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2229 ac_tool_warned=yes ;;
2230 esac
2231 CC=$ac_ct_CC
2233 else
2234 CC="$ac_cv_prog_CC"
2237 if test -z "$CC"; then
2238 if test -n "$ac_tool_prefix"; then
2239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2240 set dummy ${ac_tool_prefix}cc; ac_word=$2
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2242 $as_echo_n "checking for $ac_word... " >&6; }
2243 if ${ac_cv_prog_CC+:} false; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256 ac_cv_prog_CC="${ac_tool_prefix}cc"
2257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2260 done
2261 done
2262 IFS=$as_save_IFS
2266 CC=$ac_cv_prog_CC
2267 if test -n "$CC"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2269 $as_echo "$CC" >&6; }
2270 else
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2272 $as_echo "no" >&6; }
2278 if test -z "$CC"; then
2279 # Extract the first word of "cc", so it can be a program name with args.
2280 set dummy cc; ac_word=$2
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if ${ac_cv_prog_CC+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 ac_prog_rejected=no
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2298 ac_prog_rejected=yes
2299 continue
2301 ac_cv_prog_CC="cc"
2302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2305 done
2306 done
2307 IFS=$as_save_IFS
2309 if test $ac_prog_rejected = yes; then
2310 # We found a bogon in the path, so make sure we never use it.
2311 set dummy $ac_cv_prog_CC
2312 shift
2313 if test $# != 0; then
2314 # We chose a different compiler from the bogus one.
2315 # However, it has the same basename, so the bogon will be chosen
2316 # first if we set CC to just the basename; use the full file name.
2317 shift
2318 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2323 CC=$ac_cv_prog_CC
2324 if test -n "$CC"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2326 $as_echo "$CC" >&6; }
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329 $as_echo "no" >&6; }
2334 if test -z "$CC"; then
2335 if test -n "$ac_tool_prefix"; then
2336 for ac_prog in cl.exe
2338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2341 $as_echo_n "checking for $ac_word... " >&6; }
2342 if ${ac_cv_prog_CC+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2359 done
2360 done
2361 IFS=$as_save_IFS
2365 CC=$ac_cv_prog_CC
2366 if test -n "$CC"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2368 $as_echo "$CC" >&6; }
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2371 $as_echo "no" >&6; }
2375 test -n "$CC" && break
2376 done
2378 if test -z "$CC"; then
2379 ac_ct_CC=$CC
2380 for ac_prog in cl.exe
2382 # Extract the first word of "$ac_prog", so it can be a program name with args.
2383 set dummy $ac_prog; ac_word=$2
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2387 $as_echo_n "(cached) " >&6
2388 else
2389 if test -n "$ac_ct_CC"; then
2390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399 ac_cv_prog_ac_ct_CC="$ac_prog"
2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 break 2
2403 done
2404 done
2405 IFS=$as_save_IFS
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2412 $as_echo "$ac_ct_CC" >&6; }
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415 $as_echo "no" >&6; }
2419 test -n "$ac_ct_CC" && break
2420 done
2422 if test "x$ac_ct_CC" = x; then
2423 CC=""
2424 else
2425 case $cross_compiling:$ac_tool_warned in
2426 yes:)
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2429 ac_tool_warned=yes ;;
2430 esac
2431 CC=$ac_ct_CC
2438 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 as_fn_error $? "no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details" "$LINENO" 5; }
2443 # Provide some information about the compiler.
2444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2445 set X $ac_compile
2446 ac_compiler=$2
2447 for ac_option in --version -v -V -qversion; do
2448 { { ac_try="$ac_compiler $ac_option >&5"
2449 case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2456 ac_status=$?
2457 if test -s conftest.err; then
2458 sed '10a\
2459 ... rest of stderr output deleted ...
2460 10q' conftest.err >conftest.er1
2461 cat conftest.er1 >&5
2463 rm -f conftest.er1 conftest.err
2464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2465 test $ac_status = 0; }
2466 done
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2472 main ()
2476 return 0;
2478 _ACEOF
2479 ac_clean_files_save=$ac_clean_files
2480 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2481 # Try to create an executable without -o first, disregard a.out.
2482 # It will help us diagnose broken compilers, and finding out an intuition
2483 # of exeext.
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2485 $as_echo_n "checking whether the C compiler works... " >&6; }
2486 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2488 # The possible output files:
2489 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2491 ac_rmfiles=
2492 for ac_file in $ac_files
2494 case $ac_file in
2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2496 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2497 esac
2498 done
2499 rm -f $ac_rmfiles
2501 if { { ac_try="$ac_link_default"
2502 case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 $as_echo "$ac_try_echo"; } >&5
2508 (eval "$ac_link_default") 2>&5
2509 ac_status=$?
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; }; then :
2512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2515 # so that the user can short-circuit this test for compilers unknown to
2516 # Autoconf.
2517 for ac_file in $ac_files ''
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2523 [ab].out )
2524 # We found the default executable, but exeext='' is most
2525 # certainly right.
2526 break;;
2527 *.* )
2528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2529 then :; else
2530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 # We set ac_cv_exeext here because the later test for it is not
2533 # safe: cross compilers may not add the suffix if given an `-o'
2534 # argument, so we may need to know it at that point already.
2535 # Even if this section looks crufty: it has the advantage of
2536 # actually working.
2537 break;;
2539 break;;
2540 esac
2541 done
2542 test "$ac_cv_exeext" = no && ac_cv_exeext=
2544 else
2545 ac_file=''
2547 if test -z "$ac_file"; then :
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 as_fn_error 77 "C compiler cannot create executables
2556 See \`config.log' for more details" "$LINENO" 5; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2562 $as_echo_n "checking for C compiler default output file name... " >&6; }
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2564 $as_echo "$ac_file" >&6; }
2565 ac_exeext=$ac_cv_exeext
2567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2568 ac_clean_files=$ac_clean_files_save
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2570 $as_echo_n "checking for suffix of executables... " >&6; }
2571 if { { ac_try="$ac_link"
2572 case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575 esac
2576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577 $as_echo "$ac_try_echo"; } >&5
2578 (eval "$ac_link") 2>&5
2579 ac_status=$?
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; }; then :
2582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2584 # work properly (i.e., refer to `conftest.exe'), while it won't with
2585 # `rm'.
2586 for ac_file in conftest.exe conftest conftest.*; do
2587 test -f "$ac_file" || continue
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591 break;;
2592 * ) break;;
2593 esac
2594 done
2595 else
2596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2599 See \`config.log' for more details" "$LINENO" 5; }
2601 rm -f conftest conftest$ac_cv_exeext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2603 $as_echo "$ac_cv_exeext" >&6; }
2605 rm -f conftest.$ac_ext
2606 EXEEXT=$ac_cv_exeext
2607 ac_exeext=$EXEEXT
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2610 #include <stdio.h>
2612 main ()
2614 FILE *f = fopen ("conftest.out", "w");
2615 return ferror (f) || fclose (f) != 0;
2618 return 0;
2620 _ACEOF
2621 ac_clean_files="$ac_clean_files conftest.out"
2622 # Check that the compiler produces executables we can run. If not, either
2623 # the compiler is broken, or we cross compile.
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2625 $as_echo_n "checking whether we are cross compiling... " >&6; }
2626 if test "$cross_compiling" != yes; then
2627 { { ac_try="$ac_link"
2628 case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631 esac
2632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2633 $as_echo "$ac_try_echo"; } >&5
2634 (eval "$ac_link") 2>&5
2635 ac_status=$?
2636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2637 test $ac_status = 0; }
2638 if { ac_try='./conftest$ac_cv_exeext'
2639 { { case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_try") 2>&5
2646 ac_status=$?
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; }; }; then
2649 cross_compiling=no
2650 else
2651 if test "$cross_compiling" = maybe; then
2652 cross_compiling=yes
2653 else
2654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 as_fn_error $? "cannot run C compiled programs.
2657 If you meant to cross compile, use \`--host'.
2658 See \`config.log' for more details" "$LINENO" 5; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2663 $as_echo "$cross_compiling" >&6; }
2665 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2666 ac_clean_files=$ac_clean_files_save
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2668 $as_echo_n "checking for suffix of object files... " >&6; }
2669 if ${ac_cv_objext+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2676 main ()
2680 return 0;
2682 _ACEOF
2683 rm -f conftest.o conftest.obj
2684 if { { ac_try="$ac_compile"
2685 case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2690 $as_echo "$ac_try_echo"; } >&5
2691 (eval "$ac_compile") 2>&5
2692 ac_status=$?
2693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2694 test $ac_status = 0; }; then :
2695 for ac_file in conftest.o conftest.obj conftest.*; do
2696 test -f "$ac_file" || continue;
2697 case $ac_file in
2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2700 break;;
2701 esac
2702 done
2703 else
2704 $as_echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 as_fn_error $? "cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details" "$LINENO" 5; }
2712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2715 $as_echo "$ac_cv_objext" >&6; }
2716 OBJEXT=$ac_cv_objext
2717 ac_objext=$OBJEXT
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2719 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2720 if ${ac_cv_c_compiler_gnu+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2727 main ()
2729 #ifndef __GNUC__
2730 choke me
2731 #endif
2734 return 0;
2736 _ACEOF
2737 if ac_fn_c_try_compile "$LINENO"; then :
2738 ac_compiler_gnu=yes
2739 else
2740 ac_compiler_gnu=no
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2747 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2748 if test $ac_compiler_gnu = yes; then
2749 GCC=yes
2750 else
2751 GCC=
2753 ac_test_CFLAGS=${CFLAGS+set}
2754 ac_save_CFLAGS=$CFLAGS
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2756 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2757 if ${ac_cv_prog_cc_g+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 ac_save_c_werror_flag=$ac_c_werror_flag
2761 ac_c_werror_flag=yes
2762 ac_cv_prog_cc_g=no
2763 CFLAGS="-g"
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2768 main ()
2772 return 0;
2774 _ACEOF
2775 if ac_fn_c_try_compile "$LINENO"; then :
2776 ac_cv_prog_cc_g=yes
2777 else
2778 CFLAGS=""
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2783 main ()
2787 return 0;
2789 _ACEOF
2790 if ac_fn_c_try_compile "$LINENO"; then :
2792 else
2793 ac_c_werror_flag=$ac_save_c_werror_flag
2794 CFLAGS="-g"
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2799 main ()
2803 return 0;
2805 _ACEOF
2806 if ac_fn_c_try_compile "$LINENO"; then :
2807 ac_cv_prog_cc_g=yes
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 ac_c_werror_flag=$ac_save_c_werror_flag
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2817 $as_echo "$ac_cv_prog_cc_g" >&6; }
2818 if test "$ac_test_CFLAGS" = set; then
2819 CFLAGS=$ac_save_CFLAGS
2820 elif test $ac_cv_prog_cc_g = yes; then
2821 if test "$GCC" = yes; then
2822 CFLAGS="-g -O2"
2823 else
2824 CFLAGS="-g"
2826 else
2827 if test "$GCC" = yes; then
2828 CFLAGS="-O2"
2829 else
2830 CFLAGS=
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2835 if ${ac_cv_prog_cc_c89+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 ac_cv_prog_cc_c89=no
2839 ac_save_CC=$CC
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2842 #include <stdarg.h>
2843 #include <stdio.h>
2844 struct stat;
2845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2846 struct buf { int x; };
2847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2848 static char *e (p, i)
2849 char **p;
2850 int i;
2852 return p[i];
2854 static char *f (char * (*g) (char **, int), char **p, ...)
2856 char *s;
2857 va_list v;
2858 va_start (v,p);
2859 s = g (p, va_arg (v,int));
2860 va_end (v);
2861 return s;
2864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2865 function prototypes and stuff, but not '\xHH' hex character constants.
2866 These don't provoke an error unfortunately, instead are silently treated
2867 as 'x'. The following induces an error, until -std is added to get
2868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2869 array size at least. It's necessary to write '\x00'==0 to get something
2870 that's true only with -std. */
2871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874 inside strings and character constants. */
2875 #define FOO(x) 'x'
2876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2878 int test (int i, double x);
2879 struct s1 {int (*f) (int a);};
2880 struct s2 {int (*f) (double a);};
2881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882 int argc;
2883 char **argv;
2885 main ()
2887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2889 return 0;
2891 _ACEOF
2892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2895 CC="$ac_save_CC $ac_arg"
2896 if ac_fn_c_try_compile "$LINENO"; then :
2897 ac_cv_prog_cc_c89=$ac_arg
2899 rm -f core conftest.err conftest.$ac_objext
2900 test "x$ac_cv_prog_cc_c89" != "xno" && break
2901 done
2902 rm -f conftest.$ac_ext
2903 CC=$ac_save_CC
2906 # AC_CACHE_VAL
2907 case "x$ac_cv_prog_cc_c89" in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2910 $as_echo "none needed" >&6; } ;;
2911 xno)
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2913 $as_echo "unsupported" >&6; } ;;
2915 CC="$CC $ac_cv_prog_cc_c89"
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2918 esac
2919 if test "x$ac_cv_prog_cc_c89" != xno; then :
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2935 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2936 # On Suns, sometimes $CPP names a directory.
2937 if test -n "$CPP" && test -d "$CPP"; then
2938 CPP=
2940 if test -z "$CPP"; then
2941 if ${ac_cv_prog_CPP+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 # Double quotes because CPP needs to be expanded
2945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2947 ac_preproc_ok=false
2948 for ac_c_preproc_warn_flag in '' yes
2950 # Use a header file that comes with gcc, so configuring glibc
2951 # with a fresh cross-compiler works.
2952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2953 # <limits.h> exists even on freestanding compilers.
2954 # On the NeXT, cc -E runs the code through the compiler's parser,
2955 # not just through cpp. "Syntax error" is here to catch this case.
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957 /* end confdefs.h. */
2958 #ifdef __STDC__
2959 # include <limits.h>
2960 #else
2961 # include <assert.h>
2962 #endif
2963 Syntax error
2964 _ACEOF
2965 if ac_fn_c_try_cpp "$LINENO"; then :
2967 else
2968 # Broken: fails on valid input.
2969 continue
2971 rm -f conftest.err conftest.i conftest.$ac_ext
2973 # OK, works on sane cases. Now check whether nonexistent headers
2974 # can be detected and how.
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2977 #include <ac_nonexistent.h>
2978 _ACEOF
2979 if ac_fn_c_try_cpp "$LINENO"; then :
2980 # Broken: success on invalid input.
2981 continue
2982 else
2983 # Passes both tests.
2984 ac_preproc_ok=:
2985 break
2987 rm -f conftest.err conftest.i conftest.$ac_ext
2989 done
2990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2991 rm -f conftest.i conftest.err conftest.$ac_ext
2992 if $ac_preproc_ok; then :
2993 break
2996 done
2997 ac_cv_prog_CPP=$CPP
3000 CPP=$ac_cv_prog_CPP
3001 else
3002 ac_cv_prog_CPP=$CPP
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3005 $as_echo "$CPP" >&6; }
3006 ac_preproc_ok=false
3007 for ac_c_preproc_warn_flag in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017 #ifdef __STDC__
3018 # include <limits.h>
3019 #else
3020 # include <assert.h>
3021 #endif
3022 Syntax error
3023 _ACEOF
3024 if ac_fn_c_try_cpp "$LINENO"; then :
3026 else
3027 # Broken: fails on valid input.
3028 continue
3030 rm -f conftest.err conftest.i conftest.$ac_ext
3032 # OK, works on sane cases. Now check whether nonexistent headers
3033 # can be detected and how.
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3036 #include <ac_nonexistent.h>
3037 _ACEOF
3038 if ac_fn_c_try_cpp "$LINENO"; then :
3039 # Broken: success on invalid input.
3040 continue
3041 else
3042 # Passes both tests.
3043 ac_preproc_ok=:
3044 break
3046 rm -f conftest.err conftest.i conftest.$ac_ext
3048 done
3049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050 rm -f conftest.i conftest.err conftest.$ac_ext
3051 if $ac_preproc_ok; then :
3053 else
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3057 See \`config.log' for more details" "$LINENO" 5; }
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066 ac_aux_dir=
3067 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3068 if test -f "$ac_dir/install-sh"; then
3069 ac_aux_dir=$ac_dir
3070 ac_install_sh="$ac_aux_dir/install-sh -c"
3071 break
3072 elif test -f "$ac_dir/install.sh"; then
3073 ac_aux_dir=$ac_dir
3074 ac_install_sh="$ac_aux_dir/install.sh -c"
3075 break
3076 elif test -f "$ac_dir/shtool"; then
3077 ac_aux_dir=$ac_dir
3078 ac_install_sh="$ac_aux_dir/shtool install -c"
3079 break
3081 done
3082 if test -z "$ac_aux_dir"; then
3083 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3086 # These three variables are undocumented and unsupported,
3087 # and are intended to be withdrawn in a future Autoconf release.
3088 # They can cause serious problems if a builder's source tree is in a directory
3089 # whose full name contains unusual characters.
3090 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3091 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3092 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3095 # Find a good install program. We prefer a C program (faster),
3096 # so one script is as good as another. But avoid the broken or
3097 # incompatible versions:
3098 # SysV /etc/install, /usr/sbin/install
3099 # SunOS /usr/etc/install
3100 # IRIX /sbin/install
3101 # AIX /bin/install
3102 # AmigaOS /C/install, which installs bootblocks on floppy discs
3103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3106 # OS/2's system install, which has a completely different semantic
3107 # ./install, which can be erroneously created by make from ./install.sh.
3108 # Reject install programs that cannot install multiple files.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3110 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3111 if test -z "$INSTALL"; then
3112 if ${ac_cv_path_install+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 # Account for people who put trailing slashes in PATH elements.
3121 case $as_dir/ in #((
3122 ./ | .// | /[cC]/* | \
3123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3124 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3125 /usr/ucb/* ) ;;
3127 # OSF1 and SCO ODT 3.0 have their own names for install.
3128 # Don't use installbsd from OSF since it installs stuff as root
3129 # by default.
3130 for ac_prog in ginstall scoinst install; do
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3133 if test $ac_prog = install &&
3134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3135 # AIX install. It has an incompatible calling convention.
3137 elif test $ac_prog = install &&
3138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3139 # program-specific install script used by HP pwplus--don't use.
3141 else
3142 rm -rf conftest.one conftest.two conftest.dir
3143 echo one > conftest.one
3144 echo two > conftest.two
3145 mkdir conftest.dir
3146 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3147 test -s conftest.one && test -s conftest.two &&
3148 test -s conftest.dir/conftest.one &&
3149 test -s conftest.dir/conftest.two
3150 then
3151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3152 break 3
3156 done
3157 done
3159 esac
3161 done
3162 IFS=$as_save_IFS
3164 rm -rf conftest.one conftest.two conftest.dir
3167 if test "${ac_cv_path_install+set}" = set; then
3168 INSTALL=$ac_cv_path_install
3169 else
3170 # As a last resort, use the slow shell script. Don't cache a
3171 # value for INSTALL within a source directory, because that will
3172 # break other packages using the cache if that directory is
3173 # removed, or if the value is a relative name.
3174 INSTALL=$ac_install_sh
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3178 $as_echo "$INSTALL" >&6; }
3180 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3181 # It thinks the first close brace ends the variable substitution.
3182 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3184 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3189 old_cflags="$CFLAGS"
3190 CFLAGS="$CFLAGS -Wno-unused-function -Wno-deprecated-declarations -Wno-overlength-strings"
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3196 main ()
3198 typedef int foo;
3200 return 0;
3202 _ACEOF
3203 if ac_fn_c_try_compile "$LINENO"; then :
3205 else
3206 CFLAGS="$old_cflags"
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 test "$cross_compiling" = "yes" ||
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3212 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3213 if ${ac_cv_path_GREP+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -z "$GREP"; then
3217 ac_path_GREP_found=false
3218 # Loop through the user's path and test for each of PROGNAME-LIST
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_prog in grep ggrep; do
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3227 as_fn_executable_p "$ac_path_GREP" || continue
3228 # Check for GNU ac_path_GREP and select it if it is found.
3229 # Check for GNU $ac_path_GREP
3230 case `"$ac_path_GREP" --version 2>&1` in
3231 *GNU*)
3232 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3234 ac_count=0
3235 $as_echo_n 0123456789 >"conftest.in"
3236 while :
3238 cat "conftest.in" "conftest.in" >"conftest.tmp"
3239 mv "conftest.tmp" "conftest.in"
3240 cp "conftest.in" "conftest.nl"
3241 $as_echo 'GREP' >> "conftest.nl"
3242 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3244 as_fn_arith $ac_count + 1 && ac_count=$as_val
3245 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3246 # Best one so far, save it but keep looking for a better one
3247 ac_cv_path_GREP="$ac_path_GREP"
3248 ac_path_GREP_max=$ac_count
3250 # 10*(2^10) chars as input seems more than enough
3251 test $ac_count -gt 10 && break
3252 done
3253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3254 esac
3256 $ac_path_GREP_found && break 3
3257 done
3258 done
3259 done
3260 IFS=$as_save_IFS
3261 if test -z "$ac_cv_path_GREP"; then
3262 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3264 else
3265 ac_cv_path_GREP=$GREP
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3270 $as_echo "$ac_cv_path_GREP" >&6; }
3271 GREP="$ac_cv_path_GREP"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3275 $as_echo_n "checking for egrep... " >&6; }
3276 if ${ac_cv_path_EGREP+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3280 then ac_cv_path_EGREP="$GREP -E"
3281 else
3282 if test -z "$EGREP"; then
3283 ac_path_EGREP_found=false
3284 # Loop through the user's path and test for each of PROGNAME-LIST
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_prog in egrep; do
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3293 as_fn_executable_p "$ac_path_EGREP" || continue
3294 # Check for GNU ac_path_EGREP and select it if it is found.
3295 # Check for GNU $ac_path_EGREP
3296 case `"$ac_path_EGREP" --version 2>&1` in
3297 *GNU*)
3298 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3300 ac_count=0
3301 $as_echo_n 0123456789 >"conftest.in"
3302 while :
3304 cat "conftest.in" "conftest.in" >"conftest.tmp"
3305 mv "conftest.tmp" "conftest.in"
3306 cp "conftest.in" "conftest.nl"
3307 $as_echo 'EGREP' >> "conftest.nl"
3308 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3310 as_fn_arith $ac_count + 1 && ac_count=$as_val
3311 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3312 # Best one so far, save it but keep looking for a better one
3313 ac_cv_path_EGREP="$ac_path_EGREP"
3314 ac_path_EGREP_max=$ac_count
3316 # 10*(2^10) chars as input seems more than enough
3317 test $ac_count -gt 10 && break
3318 done
3319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3320 esac
3322 $ac_path_EGREP_found && break 3
3323 done
3324 done
3325 done
3326 IFS=$as_save_IFS
3327 if test -z "$ac_cv_path_EGREP"; then
3328 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3330 else
3331 ac_cv_path_EGREP=$EGREP
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3337 $as_echo "$ac_cv_path_EGREP" >&6; }
3338 EGREP="$ac_cv_path_EGREP"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3342 $as_echo_n "checking for ANSI C header files... " >&6; }
3343 if ${ac_cv_header_stdc+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348 #include <stdlib.h>
3349 #include <stdarg.h>
3350 #include <string.h>
3351 #include <float.h>
3354 main ()
3358 return 0;
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_cv_header_stdc=yes
3363 else
3364 ac_cv_header_stdc=no
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 if test $ac_cv_header_stdc = yes; then
3369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372 #include <string.h>
3374 _ACEOF
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 $EGREP "memchr" >/dev/null 2>&1; then :
3378 else
3379 ac_cv_header_stdc=no
3381 rm -f conftest*
3385 if test $ac_cv_header_stdc = yes; then
3386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389 #include <stdlib.h>
3391 _ACEOF
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 $EGREP "free" >/dev/null 2>&1; then :
3395 else
3396 ac_cv_header_stdc=no
3398 rm -f conftest*
3402 if test $ac_cv_header_stdc = yes; then
3403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3404 if test "$cross_compiling" = yes; then :
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <ctype.h>
3410 #include <stdlib.h>
3411 #if ((' ' & 0x0FF) == 0x020)
3412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3414 #else
3415 # define ISLOWER(c) \
3416 (('a' <= (c) && (c) <= 'i') \
3417 || ('j' <= (c) && (c) <= 'r') \
3418 || ('s' <= (c) && (c) <= 'z'))
3419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3420 #endif
3422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3424 main ()
3426 int i;
3427 for (i = 0; i < 256; i++)
3428 if (XOR (islower (i), ISLOWER (i))
3429 || toupper (i) != TOUPPER (i))
3430 return 2;
3431 return 0;
3433 _ACEOF
3434 if ac_fn_c_try_run "$LINENO"; then :
3436 else
3437 ac_cv_header_stdc=no
3439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3440 conftest.$ac_objext conftest.beam conftest.$ac_ext
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3446 $as_echo "$ac_cv_header_stdc" >&6; }
3447 if test $ac_cv_header_stdc = yes; then
3449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3454 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3455 inttypes.h stdint.h unistd.h
3456 do :
3457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3461 cat >>confdefs.h <<_ACEOF
3462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3463 _ACEOF
3467 done
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3471 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3472 if ${ac_cv_c_bigendian+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_cv_c_bigendian=unknown
3476 # See if we're dealing with a universal compiler.
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 #ifndef __APPLE_CC__
3480 not a universal capable compiler
3481 #endif
3482 typedef int dummy;
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3487 # Check for potential -arch flags. It is not universal unless
3488 # there are at least two -arch flags with different values.
3489 ac_arch=
3490 ac_prev=
3491 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3492 if test -n "$ac_prev"; then
3493 case $ac_word in
3494 i?86 | x86_64 | ppc | ppc64)
3495 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3496 ac_arch=$ac_word
3497 else
3498 ac_cv_c_bigendian=universal
3499 break
3502 esac
3503 ac_prev=
3504 elif test "x$ac_word" = "x-arch"; then
3505 ac_prev=arch
3507 done
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 if test $ac_cv_c_bigendian = unknown; then
3511 # See if sys/param.h defines the BYTE_ORDER macro.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <sys/types.h>
3515 #include <sys/param.h>
3518 main ()
3520 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3521 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3522 && LITTLE_ENDIAN)
3523 bogus endian macros
3524 #endif
3527 return 0;
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 # It does; now see whether it defined to BIG_ENDIAN or not.
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 #include <sys/param.h>
3538 main ()
3540 #if BYTE_ORDER != BIG_ENDIAN
3541 not big endian
3542 #endif
3545 return 0;
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_cv_c_bigendian=yes
3550 else
3551 ac_cv_c_bigendian=no
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 if test $ac_cv_c_bigendian = unknown; then
3558 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561 #include <limits.h>
3564 main ()
3566 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3567 bogus endian macros
3568 #endif
3571 return 0;
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 # It does; now see whether it defined to _BIG_ENDIAN or not.
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <limits.h>
3581 main ()
3583 #ifndef _BIG_ENDIAN
3584 not big endian
3585 #endif
3588 return 0;
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_cv_c_bigendian=yes
3593 else
3594 ac_cv_c_bigendian=no
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 if test $ac_cv_c_bigendian = unknown; then
3601 # Compile a test program.
3602 if test "$cross_compiling" = yes; then :
3603 # Try to guess by grepping values from an object file.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 short int ascii_mm[] =
3607 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3608 short int ascii_ii[] =
3609 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3610 int use_ascii (int i) {
3611 return ascii_mm[i] + ascii_ii[i];
3613 short int ebcdic_ii[] =
3614 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3615 short int ebcdic_mm[] =
3616 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3617 int use_ebcdic (int i) {
3618 return ebcdic_mm[i] + ebcdic_ii[i];
3620 extern int foo;
3623 main ()
3625 return use_ascii (foo) == use_ebcdic (foo);
3627 return 0;
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3632 ac_cv_c_bigendian=yes
3634 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3635 if test "$ac_cv_c_bigendian" = unknown; then
3636 ac_cv_c_bigendian=no
3637 else
3638 # finding both strings is unlikely to happen, but who knows?
3639 ac_cv_c_bigendian=unknown
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 else
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647 $ac_includes_default
3649 main ()
3652 /* Are we little or big endian? From Harbison&Steele. */
3653 union
3655 long int l;
3656 char c[sizeof (long int)];
3657 } u;
3658 u.l = 1;
3659 return u.c[sizeof (long int) - 1] == 1;
3662 return 0;
3664 _ACEOF
3665 if ac_fn_c_try_run "$LINENO"; then :
3666 ac_cv_c_bigendian=no
3667 else
3668 ac_cv_c_bigendian=yes
3670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3671 conftest.$ac_objext conftest.beam conftest.$ac_ext
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3677 $as_echo "$ac_cv_c_bigendian" >&6; }
3678 case $ac_cv_c_bigendian in #(
3679 yes)
3680 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3681 ;; #(
3683 ;; #(
3684 universal)
3686 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3688 ;; #(
3690 as_fn_error $? "unknown endianness
3691 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3692 esac
3694 test "$ac_cv_c_bigendian" = "no" && ENDIAN="-DIS_LITTLE_ENDIAN"
3695 test "$cross_compiling" = "yes" || LIBS="$LIBS -L/usr/X11R6/lib"
3696 test x"$host" = x && host=`$CC -dumpmachine`
3700 # Check whether --with-fb was given.
3701 if test "${with_fb+set}" = set; then :
3702 withval=$with_fb;
3703 else
3704 with_fb=yes
3708 # Check whether --with-svgalib was given.
3709 if test "${with_svgalib+set}" = set; then :
3710 withval=$with_svgalib;
3711 else
3712 with_svgalib=yes
3716 # Check whether --with-sdl was given.
3717 if test "${with_sdl+set}" = set; then :
3718 withval=$with_sdl;
3719 else
3720 with_sdl=auto
3724 # Check whether --with-sdl2 was given.
3725 if test "${with_sdl2+set}" = set; then :
3726 withval=$with_sdl2;
3727 else
3728 with_sdl2=yes
3732 # Check whether --with-sound was given.
3733 if test "${with_sound+set}" = set; then :
3734 withval=$with_sound;
3735 else
3736 with_sound=yes
3742 SOUND=""
3743 JOY=""
3745 if test "$with_sound" != "no" ; then
3746 if test "$with_sound" = "yes" || test "$with_sound" = "ao" ; then
3747 for ac_header in ao/ao.h
3748 do :
3749 ac_fn_c_check_header_mongrel "$LINENO" "ao/ao.h" "ac_cv_header_ao_ao_h" "$ac_includes_default"
3750 if test "x$ac_cv_header_ao_ao_h" = xyes; then :
3751 cat >>confdefs.h <<_ACEOF
3752 #define HAVE_AO_AO_H 1
3753 _ACEOF
3754 SOUND=sys/ao/ao.o ; LIBS="$LIBS -Wl,--as-needed -lao -Wl,--no-as-needed"
3757 done
3760 if test -z "$SOUND" && ( test "$with_sound" = "yes" || test "$with_sound" = "sdl" ) ; then
3761 for ac_header in SDL/SDL.h
3762 do :
3763 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
3764 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
3765 cat >>confdefs.h <<_ACEOF
3766 #define HAVE_SDL_SDL_H 1
3767 _ACEOF
3768 SOUND=sys/sdl/sdl-audio.o ; LIBS="$LIBS -lSDL"
3771 done
3774 if test -z "$SOUND" && ( test "$with_sound" = "yes" || test "$with_sound" = "oss" ) ; then
3775 for ac_header in sys/soundcard.h
3776 do :
3777 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
3778 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
3779 cat >>confdefs.h <<_ACEOF
3780 #define HAVE_SYS_SOUNDCARD_H 1
3781 _ACEOF
3782 SOUND=sys/oss/oss.o ; CPPFLAGS="$CPPFLAGS -DHAVE_SYS_SOUNDCARD_H"
3783 else
3785 for ac_header in machine/soundcard.h
3786 do :
3787 ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
3788 if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
3789 cat >>confdefs.h <<_ACEOF
3790 #define HAVE_MACHINE_SOUNDCARD_H 1
3791 _ACEOF
3792 SOUND=sys/oss/oss.o ; CPPFLAGS="$CPPFLAGS -DHAVE_MACHINE_SOUNDCARD_H"
3793 else
3795 for ac_header in soundcard.h
3796 do :
3797 ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
3798 if test "x$ac_cv_header_soundcard_h" = xyes; then :
3799 cat >>confdefs.h <<_ACEOF
3800 #define HAVE_SOUNDCARD_H 1
3801 _ACEOF
3802 SOUND=sys/oss/oss.o ; CPPFLAGS="$CPPFLAGS -DHAVE_SOUNDCARD_H"
3803 else
3805 test "$with_sound" = "oss" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oss selected but required headers not found" >&5
3806 $as_echo "$as_me: WARNING: oss selected but required headers not found" >&2;}
3810 done
3815 done
3820 done
3825 for ac_header in linux/joystick.h
3826 do :
3827 ac_fn_c_check_header_mongrel "$LINENO" "linux/joystick.h" "ac_cv_header_linux_joystick_h" "$ac_includes_default"
3828 if test "x$ac_cv_header_linux_joystick_h" = xyes; then :
3829 cat >>confdefs.h <<_ACEOF
3830 #define HAVE_LINUX_JOYSTICK_H 1
3831 _ACEOF
3832 JOY=sys/linux/joy.o
3835 done
3837 test "$with_fb" = "no" || for ac_header in linux/fb.h
3838 do :
3839 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
3840 if test "x$ac_cv_header_linux_fb_h" = xyes; then :
3841 cat >>confdefs.h <<_ACEOF
3842 #define HAVE_LINUX_FB_H 1
3843 _ACEOF
3844 with_fb=linux
3847 done
3850 test "$SOUND" || SOUND=sys/dummy/nosound.o
3851 test "$JOY" || JOY=sys/dummy/nojoy.o
3858 case "$with_fb" in
3859 linux) FB_OBJS="sys/linux/fbdev.o sys/linux/kb.o sys/pc/keymap.o" ;;
3860 *) FB_OBJS="" ; with_fb=no ;;
3861 esac
3863 if test "$with_svgalib" != "no" ; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vga_init in -lvga" >&5
3865 $as_echo_n "checking for vga_init in -lvga... " >&6; }
3866 if ${ac_cv_lib_vga_vga_init+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 ac_check_lib_save_LIBS=$LIBS
3870 LIBS="-lvga $LIBS"
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3874 /* Override any GCC internal prototype to avoid an error.
3875 Use char because int might match the return type of a GCC
3876 builtin and then its argument prototype would still apply. */
3877 #ifdef __cplusplus
3878 extern "C"
3879 #endif
3880 char vga_init ();
3882 main ()
3884 return vga_init ();
3886 return 0;
3888 _ACEOF
3889 if ac_fn_c_try_link "$LINENO"; then :
3890 ac_cv_lib_vga_vga_init=yes
3891 else
3892 ac_cv_lib_vga_vga_init=no
3894 rm -f core conftest.err conftest.$ac_objext \
3895 conftest$ac_exeext conftest.$ac_ext
3896 LIBS=$ac_check_lib_save_LIBS
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vga_vga_init" >&5
3899 $as_echo "$ac_cv_lib_vga_vga_init" >&6; }
3900 if test "x$ac_cv_lib_vga_vga_init" = xyes; then :
3902 for ac_header in vga.h vgakeyboard.h
3903 do :
3904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3907 cat >>confdefs.h <<_ACEOF
3908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3909 _ACEOF
3911 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: svgalib found but headers are missing!!" >&5
3914 $as_echo "$as_me: WARNING: svgalib found but headers are missing!!" >&2;}
3915 with_svgalib=no
3919 done
3921 else
3922 with_svgalib=no
3927 if test "$with_sdl2" != no ; then
3928 SDL2_LIBS=-lSDL2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL2" >&5
3930 $as_echo_n "checking for SDL_Init in -lSDL2... " >&6; }
3931 if ${ac_cv_lib_SDL2_SDL_Init+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 ac_check_lib_save_LIBS=$LIBS
3935 LIBS="-lSDL2 $SDL2_LIBS $LIBS"
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3939 /* Override any GCC internal prototype to avoid an error.
3940 Use char because int might match the return type of a GCC
3941 builtin and then its argument prototype would still apply. */
3942 #ifdef __cplusplus
3943 extern "C"
3944 #endif
3945 char SDL_Init ();
3947 main ()
3949 return SDL_Init ();
3951 return 0;
3953 _ACEOF
3954 if ac_fn_c_try_link "$LINENO"; then :
3955 ac_cv_lib_SDL2_SDL_Init=yes
3956 else
3957 ac_cv_lib_SDL2_SDL_Init=no
3959 rm -f core conftest.err conftest.$ac_objext \
3960 conftest$ac_exeext conftest.$ac_ext
3961 LIBS=$ac_check_lib_save_LIBS
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_SDL_Init" >&5
3964 $as_echo "$ac_cv_lib_SDL2_SDL_Init" >&6; }
3965 if test "x$ac_cv_lib_SDL2_SDL_Init" = xyes; then :
3967 for ac_header in SDL2/SDL.h
3968 do :
3969 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default"
3970 if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then :
3971 cat >>confdefs.h <<_ACEOF
3972 #define HAVE_SDL2_SDL_H 1
3973 _ACEOF
3975 with_sdl2=yes
3977 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL2 found but headers are missing!!" >&5
3980 $as_echo "$as_me: WARNING: SDL2 found but headers are missing!!" >&2;}
3981 with_sdl2=no
3985 done
3988 else
3989 with_sdl2=no
3994 if test "$with_sdl2" = "no" && test "$with_sdl" != "no" ; then
3995 SDL_LIBS=-lSDL
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
3997 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
3998 if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 ac_check_lib_save_LIBS=$LIBS
4002 LIBS="-lSDL $SDL2_LIBS $LIBS"
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4006 /* Override any GCC internal prototype to avoid an error.
4007 Use char because int might match the return type of a GCC
4008 builtin and then its argument prototype would still apply. */
4009 #ifdef __cplusplus
4010 extern "C"
4011 #endif
4012 char SDL_Init ();
4014 main ()
4016 return SDL_Init ();
4018 return 0;
4020 _ACEOF
4021 if ac_fn_c_try_link "$LINENO"; then :
4022 ac_cv_lib_SDL_SDL_Init=yes
4023 else
4024 ac_cv_lib_SDL_SDL_Init=no
4026 rm -f core conftest.err conftest.$ac_objext \
4027 conftest$ac_exeext conftest.$ac_ext
4028 LIBS=$ac_check_lib_save_LIBS
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
4031 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
4032 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
4034 for ac_header in SDL/SDL.h
4035 do :
4036 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
4037 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
4038 cat >>confdefs.h <<_ACEOF
4039 #define HAVE_SDL_SDL_H 1
4040 _ACEOF
4042 with_sdl=yes
4044 else
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL found but headers are missing!!" >&5
4047 $as_echo "$as_me: WARNING: SDL found but headers are missing!!" >&2;}
4048 with_sdl=no
4052 done
4055 else
4056 with_sdl=no
4059 else
4060 with_sdl=no
4063 if test "$with_sdl" != yes && test "$with_sdl2" != yes ; then
4064 for ac_func in usleep
4065 do :
4066 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
4067 if test "x$ac_cv_func_usleep" = xyes; then :
4068 cat >>confdefs.h <<_ACEOF
4069 #define HAVE_USLEEP 1
4070 _ACEOF
4072 else
4074 for ac_func in select
4075 do :
4076 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
4077 if test "x$ac_cv_func_select" = xyes; then :
4078 cat >>confdefs.h <<_ACEOF
4079 #define HAVE_SELECT 1
4080 _ACEOF
4082 else
4084 as_fn_error $? "your system must support either usleep or select" "$LINENO" 5
4087 done
4090 done
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4095 $as_echo_n "checking for X... " >&6; }
4098 # Check whether --with-x was given.
4099 if test "${with_x+set}" = set; then :
4100 withval=$with_x;
4103 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4104 if test "x$with_x" = xno; then
4105 # The user explicitly disabled X.
4106 have_x=disabled
4107 else
4108 case $x_includes,$x_libraries in #(
4109 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4110 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 # One or both of the vars are not set, and there is no cached value.
4114 ac_x_includes=no ac_x_libraries=no
4115 rm -f -r conftest.dir
4116 if mkdir conftest.dir; then
4117 cd conftest.dir
4118 cat >Imakefile <<'_ACEOF'
4119 incroot:
4120 @echo incroot='${INCROOT}'
4121 usrlibdir:
4122 @echo usrlibdir='${USRLIBDIR}'
4123 libdir:
4124 @echo libdir='${LIBDIR}'
4125 _ACEOF
4126 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4128 for ac_var in incroot usrlibdir libdir; do
4129 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4130 done
4131 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4132 for ac_extension in a so sl dylib la dll; do
4133 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4134 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4135 ac_im_usrlibdir=$ac_im_libdir; break
4137 done
4138 # Screen out bogus values from the imake configuration. They are
4139 # bogus both because they are the default anyway, and because
4140 # using them would break gcc on systems where it needs fixed includes.
4141 case $ac_im_incroot in
4142 /usr/include) ac_x_includes= ;;
4143 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4144 esac
4145 case $ac_im_usrlibdir in
4146 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4147 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4148 esac
4150 cd ..
4151 rm -f -r conftest.dir
4154 # Standard set of common directories for X headers.
4155 # Check X11 before X11Rn because it is often a symlink to the current release.
4156 ac_x_header_dirs='
4157 /usr/X11/include
4158 /usr/X11R7/include
4159 /usr/X11R6/include
4160 /usr/X11R5/include
4161 /usr/X11R4/include
4163 /usr/include/X11
4164 /usr/include/X11R7
4165 /usr/include/X11R6
4166 /usr/include/X11R5
4167 /usr/include/X11R4
4169 /usr/local/X11/include
4170 /usr/local/X11R7/include
4171 /usr/local/X11R6/include
4172 /usr/local/X11R5/include
4173 /usr/local/X11R4/include
4175 /usr/local/include/X11
4176 /usr/local/include/X11R7
4177 /usr/local/include/X11R6
4178 /usr/local/include/X11R5
4179 /usr/local/include/X11R4
4181 /usr/X386/include
4182 /usr/x386/include
4183 /usr/XFree86/include/X11
4185 /usr/include
4186 /usr/local/include
4187 /usr/unsupported/include
4188 /usr/athena/include
4189 /usr/local/x11r5/include
4190 /usr/lpp/Xamples/include
4192 /usr/openwin/include
4193 /usr/openwin/share/include'
4195 if test "$ac_x_includes" = no; then
4196 # Guess where to find include files, by looking for Xlib.h.
4197 # First, try using that file with no special directory specified.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <X11/Xlib.h>
4201 _ACEOF
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4203 # We can compile using X headers with no special include directory.
4204 ac_x_includes=
4205 else
4206 for ac_dir in $ac_x_header_dirs; do
4207 if test -r "$ac_dir/X11/Xlib.h"; then
4208 ac_x_includes=$ac_dir
4209 break
4211 done
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4214 fi # $ac_x_includes = no
4216 if test "$ac_x_libraries" = no; then
4217 # Check for the libraries.
4218 # See if we find them without any special options.
4219 # Don't add to $LIBS permanently.
4220 ac_save_LIBS=$LIBS
4221 LIBS="-lX11 $LIBS"
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <X11/Xlib.h>
4226 main ()
4228 XrmInitialize ()
4230 return 0;
4232 _ACEOF
4233 if ac_fn_c_try_link "$LINENO"; then :
4234 LIBS=$ac_save_LIBS
4235 # We can link X programs with no special library path.
4236 ac_x_libraries=
4237 else
4238 LIBS=$ac_save_LIBS
4239 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4241 # Don't even attempt the hair of trying to link an X program!
4242 for ac_extension in a so sl dylib la dll; do
4243 if test -r "$ac_dir/libX11.$ac_extension"; then
4244 ac_x_libraries=$ac_dir
4245 break 2
4247 done
4248 done
4250 rm -f core conftest.err conftest.$ac_objext \
4251 conftest$ac_exeext conftest.$ac_ext
4252 fi # $ac_x_libraries = no
4254 case $ac_x_includes,$ac_x_libraries in #(
4255 no,* | *,no | *\'*)
4256 # Didn't find X, or a directory has "'" in its name.
4257 ac_cv_have_x="have_x=no";; #(
4259 # Record where we found X for the cache.
4260 ac_cv_have_x="have_x=yes\
4261 ac_x_includes='$ac_x_includes'\
4262 ac_x_libraries='$ac_x_libraries'"
4263 esac
4265 ;; #(
4266 *) have_x=yes;;
4267 esac
4268 eval "$ac_cv_have_x"
4269 fi # $with_x != no
4271 if test "$have_x" != yes; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4273 $as_echo "$have_x" >&6; }
4274 no_x=yes
4275 else
4276 # If each of the values was on the command line, it overrides each guess.
4277 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4278 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4279 # Update the cache value to reflect the command line values.
4280 ac_cv_have_x="have_x=yes\
4281 ac_x_includes='$x_includes'\
4282 ac_x_libraries='$x_libraries'"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4284 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4289 if test "$no_x" != "yes" ; then
4290 with_x=yes
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5
4292 $as_echo_n "checking for XShmCreateImage in -lXext... " >&6; }
4293 if ${ac_cv_lib_Xext_XShmCreateImage+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 ac_check_lib_save_LIBS=$LIBS
4297 LIBS="-lXext $LIBS"
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4301 /* Override any GCC internal prototype to avoid an error.
4302 Use char because int might match the return type of a GCC
4303 builtin and then its argument prototype would still apply. */
4304 #ifdef __cplusplus
4305 extern "C"
4306 #endif
4307 char XShmCreateImage ();
4309 main ()
4311 return XShmCreateImage ();
4313 return 0;
4315 _ACEOF
4316 if ac_fn_c_try_link "$LINENO"; then :
4317 ac_cv_lib_Xext_XShmCreateImage=yes
4318 else
4319 ac_cv_lib_Xext_XShmCreateImage=no
4321 rm -f core conftest.err conftest.$ac_objext \
4322 conftest$ac_exeext conftest.$ac_ext
4323 LIBS=$ac_check_lib_save_LIBS
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
4326 $as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; }
4327 if test "x$ac_cv_lib_Xext_XShmCreateImage" = xyes; then :
4328 $as_echo "#define HAVE_LIBXEXT 1" >>confdefs.h
4332 for ac_header in sys/ipc.h sys/shm.h X11/Xlib.h X11/Xutil.h X11/keysym.h X11/extensions/XShm.h
4333 do :
4334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4336 #include <X11/Xlib.h>
4337 #include <X11/Xutil.h>
4338 #include <X11/keysym.h>
4339 #define _SVID_SOURCE
4340 #define _XOPEN_SOURCE
4343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4344 cat >>confdefs.h <<_ACEOF
4345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346 _ACEOF
4350 done
4352 test "$x_includes" && XINCS="-I$x_includes"
4353 test "$x_libraries" && XLIBS="-L$x_libraries"
4354 else
4355 with_x=no
4360 test "$with_x" = "no" || TARGETS="$TARGETS xgnuboy"
4361 test "$with_fb" = "no" || TARGETS="$TARGETS fbgnuboy"
4362 test "$with_svgalib" = "no" || TARGETS="$TARGETS sgnuboy"
4363 test "$with_sdl" = "no" || TARGETS="$TARGETS sdlgnuboy"
4364 test "$with_sdl2" = "no" || TARGETS="$TARGETS sdl2gnuboy"
4375 # Check whether --enable-warnings was given.
4376 if test "${enable_warnings+set}" = set; then :
4377 enableval=$enable_warnings;
4378 else
4379 enable_warnings=yes
4382 # Check whether --enable-debug was given.
4383 if test "${enable_debug+set}" = set; then :
4384 enableval=$enable_debug;
4387 # Check whether --enable-profile was given.
4388 if test "${enable_profile+set}" = set; then :
4389 enableval=$enable_profile;
4392 # Check whether --enable-arch was given.
4393 if test "${enable_arch+set}" = set; then :
4394 enableval=$enable_arch;
4395 else
4396 enable_arch=no
4399 # Check whether --enable-optimize was given.
4400 if test "${enable_optimize+set}" = set; then :
4401 enableval=$enable_optimize;
4402 else
4403 enable_optimize=yes
4406 # Check whether --enable-asm was given.
4407 if test "${enable_asm+set}" = set; then :
4408 enableval=$enable_asm;
4409 else
4410 enable_asm=no
4415 if test "$enable_warnings" = yes ; then
4416 case "$CC" in *gcc*)
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling selected compiler warnings" >&5
4418 $as_echo "enabling selected compiler warnings" >&6; }
4419 CFLAGS="$CFLAGS -ansi -pedantic -Wall" ;;
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warnings for non-gcc compiler" >&5
4422 $as_echo "disabling warnings for non-gcc compiler" >&6; } ;;
4423 esac
4426 if test "$enable_debug" = yes ; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: including debugging symbols" >&5
4428 $as_echo "including debugging symbols" >&6; }
4429 CFLAGS="$CFLAGS -g"
4432 if test "$enable_profile" = yes ; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling performance profiling" >&5
4434 $as_echo "enabling performance profiling" >&6; }
4435 CFLAGS="$CFLAGS -pg"
4438 if test "$enable_arch" = yes ; then
4439 CFLAGS="$CFLAGS -march=native"
4442 case "$enable_optimize" in
4443 yes|full)
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: producing heavily optimized code" >&5
4445 $as_echo "producing heavily optimized code" >&6; }
4447 CFLAGS="$CFLAGS -O3"
4449 case "$host" in
4450 x86_64*|i?86*) CFLAGS="$CFLAGS -DALLOW_UNALIGNED_IO" ;;
4451 esac
4453 case "$CC" in
4454 *gcc*) CFLAGS="$CFLAGS -fstrength-reduce -fthread-jumps \
4455 -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \
4456 -fexpensive-optimizations -fforce-addr" ;;
4457 esac
4459 if test "$enable_debug" != yes -a "$enable_profile" != yes ; then
4460 CFLAGS="$CFLAGS -fomit-frame-pointer"
4461 LDFLAGS="$LDFLAGS -s"
4462 fi ;;
4464 low)
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using minimal optimizations" >&5
4467 $as_echo "using minimal optimizations" >&6; }
4468 CFLAGS="$CFLAGS -O3" ;;
4470 esac
4472 if test "$enable_asm" = yes ; then
4473 case "$host" in
4474 i?86*)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using optimized i386 cores" >&5
4476 $as_echo "using optimized i386 cores" >&6; }
4477 ASM="-DUSE_ASM -I./asm/i386" ; ASM_OBJS="asm/i386/cpu.o asm/i386/lcd.o asm/i386/refresh.s" ;;
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no optimized asm core available for $host" >&5
4480 $as_echo "no optimized asm core available for $host" >&6; } ;;
4481 esac
4484 case "$host" in
4485 *-*-mingw* | *-*-cygwin* | *-*-windows* ) SYS_OBJS=sys/windows/windows.o ;;
4486 *-*-dos* ) SYS_OBJS=sys/dos/dos.o ;;
4487 *) SYS_OBJS=sys/nix/nix.o ;;
4488 esac
4506 ac_config_headers="$ac_config_headers sys/nix/config.h"
4508 ac_config_files="$ac_config_files Makefile"
4510 cat >confcache <<\_ACEOF
4511 # This file is a shell script that caches the results of configure
4512 # tests run on this system so they can be shared between configure
4513 # scripts and configure runs, see configure's option --config-cache.
4514 # It is not useful on other systems. If it contains results you don't
4515 # want to keep, you may remove or edit it.
4517 # config.status only pays attention to the cache file if you give it
4518 # the --recheck option to rerun configure.
4520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4522 # following values.
4524 _ACEOF
4526 # The following way of writing the cache mishandles newlines in values,
4527 # but we know of no workaround that is simple, portable, and efficient.
4528 # So, we kill variables containing newlines.
4529 # Ultrix sh set writes to stderr and can't be redirected directly,
4530 # and sets the high bit in the cache file unless we assign to the vars.
4532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4533 eval ac_val=\$$ac_var
4534 case $ac_val in #(
4535 *${as_nl}*)
4536 case $ac_var in #(
4537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4539 esac
4540 case $ac_var in #(
4541 _ | IFS | as_nl) ;; #(
4542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4543 *) { eval $ac_var=; unset $ac_var;} ;;
4544 esac ;;
4545 esac
4546 done
4548 (set) 2>&1 |
4549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4550 *${as_nl}ac_space=\ *)
4551 # `set' does not quote correctly, so add quotes: double-quote
4552 # substitution turns \\\\ into \\, and sed turns \\ into \.
4553 sed -n \
4554 "s/'/'\\\\''/g;
4555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4556 ;; #(
4558 # `set' quotes correctly as required by POSIX, so do not add quotes.
4559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4561 esac |
4562 sort
4564 sed '
4565 /^ac_cv_env_/b end
4566 t clear
4567 :clear
4568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4569 t end
4570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4571 :end' >>confcache
4572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4573 if test -w "$cache_file"; then
4574 if test "x$cache_file" != "x/dev/null"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4576 $as_echo "$as_me: updating cache $cache_file" >&6;}
4577 if test ! -f "$cache_file" || test -h "$cache_file"; then
4578 cat confcache >"$cache_file"
4579 else
4580 case $cache_file in #(
4581 */* | ?:*)
4582 mv -f confcache "$cache_file"$$ &&
4583 mv -f "$cache_file"$$ "$cache_file" ;; #(
4585 mv -f confcache "$cache_file" ;;
4586 esac
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4594 rm -f confcache
4596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4597 # Let make expand exec_prefix.
4598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4600 DEFS=-DHAVE_CONFIG_H
4602 ac_libobjs=
4603 ac_ltlibobjs=
4605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4606 # 1. Remove the extension, and $U if already installed.
4607 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4608 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4609 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4610 # will be set to the directory where LIBOBJS objects are built.
4611 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4612 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4613 done
4614 LIBOBJS=$ac_libobjs
4616 LTLIBOBJS=$ac_ltlibobjs
4621 : "${CONFIG_STATUS=./config.status}"
4622 ac_write_fail=0
4623 ac_clean_files_save=$ac_clean_files
4624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4626 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4627 as_write_fail=0
4628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4629 #! $SHELL
4630 # Generated by $as_me.
4631 # Run this file to recreate the current configuration.
4632 # Compiler output produced by configure, useful for debugging
4633 # configure, is in config.log if it exists.
4635 debug=false
4636 ac_cs_recheck=false
4637 ac_cs_silent=false
4639 SHELL=\${CONFIG_SHELL-$SHELL}
4640 export SHELL
4641 _ASEOF
4642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4643 ## -------------------- ##
4644 ## M4sh Initialization. ##
4645 ## -------------------- ##
4647 # Be more Bourne compatible
4648 DUALCASE=1; export DUALCASE # for MKS sh
4649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4650 emulate sh
4651 NULLCMD=:
4652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4653 # is contrary to our usage. Disable this feature.
4654 alias -g '${1+"$@"}'='"$@"'
4655 setopt NO_GLOB_SUBST
4656 else
4657 case `(set -o) 2>/dev/null` in #(
4658 *posix*) :
4659 set -o posix ;; #(
4660 *) :
4662 esac
4666 as_nl='
4668 export as_nl
4669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4673 # Prefer a ksh shell builtin over an external printf program on Solaris,
4674 # but without wasting forks for bash or zsh.
4675 if test -z "$BASH_VERSION$ZSH_VERSION" \
4676 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4677 as_echo='print -r --'
4678 as_echo_n='print -rn --'
4679 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4680 as_echo='printf %s\n'
4681 as_echo_n='printf %s'
4682 else
4683 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4684 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4685 as_echo_n='/usr/ucb/echo -n'
4686 else
4687 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4688 as_echo_n_body='eval
4689 arg=$1;
4690 case $arg in #(
4691 *"$as_nl"*)
4692 expr "X$arg" : "X\\(.*\\)$as_nl";
4693 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4694 esac;
4695 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4697 export as_echo_n_body
4698 as_echo_n='sh -c $as_echo_n_body as_echo'
4700 export as_echo_body
4701 as_echo='sh -c $as_echo_body as_echo'
4704 # The user is always right.
4705 if test "${PATH_SEPARATOR+set}" != set; then
4706 PATH_SEPARATOR=:
4707 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4708 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4709 PATH_SEPARATOR=';'
4714 # IFS
4715 # We need space, tab and new line, in precisely that order. Quoting is
4716 # there to prevent editors from complaining about space-tab.
4717 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4718 # splitting by setting IFS to empty value.)
4719 IFS=" "" $as_nl"
4721 # Find who we are. Look in the path if we contain no directory separator.
4722 as_myself=
4723 case $0 in #((
4724 *[\\/]* ) as_myself=$0 ;;
4725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4731 done
4732 IFS=$as_save_IFS
4735 esac
4736 # We did not find ourselves, most probably we were run as `sh COMMAND'
4737 # in which case we are not to be found in the path.
4738 if test "x$as_myself" = x; then
4739 as_myself=$0
4741 if test ! -f "$as_myself"; then
4742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4743 exit 1
4746 # Unset variables that we do not need and which cause bugs (e.g. in
4747 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4748 # suppresses any "Segmentation fault" message there. '((' could
4749 # trigger a bug in pdksh 5.2.14.
4750 for as_var in BASH_ENV ENV MAIL MAILPATH
4751 do eval test x\${$as_var+set} = xset \
4752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4753 done
4754 PS1='$ '
4755 PS2='> '
4756 PS4='+ '
4758 # NLS nuisances.
4759 LC_ALL=C
4760 export LC_ALL
4761 LANGUAGE=C
4762 export LANGUAGE
4764 # CDPATH.
4765 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4768 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4769 # ----------------------------------------
4770 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4771 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4772 # script with STATUS, using 1 if that was 0.
4773 as_fn_error ()
4775 as_status=$1; test $as_status -eq 0 && as_status=1
4776 if test "$4"; then
4777 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4780 $as_echo "$as_me: error: $2" >&2
4781 as_fn_exit $as_status
4782 } # as_fn_error
4785 # as_fn_set_status STATUS
4786 # -----------------------
4787 # Set $? to STATUS, without forking.
4788 as_fn_set_status ()
4790 return $1
4791 } # as_fn_set_status
4793 # as_fn_exit STATUS
4794 # -----------------
4795 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4796 as_fn_exit ()
4798 set +e
4799 as_fn_set_status $1
4800 exit $1
4801 } # as_fn_exit
4803 # as_fn_unset VAR
4804 # ---------------
4805 # Portably unset VAR.
4806 as_fn_unset ()
4808 { eval $1=; unset $1;}
4810 as_unset=as_fn_unset
4811 # as_fn_append VAR VALUE
4812 # ----------------------
4813 # Append the text in VALUE to the end of the definition contained in VAR. Take
4814 # advantage of any shell optimizations that allow amortized linear growth over
4815 # repeated appends, instead of the typical quadratic growth present in naive
4816 # implementations.
4817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4818 eval 'as_fn_append ()
4820 eval $1+=\$2
4822 else
4823 as_fn_append ()
4825 eval $1=\$$1\$2
4827 fi # as_fn_append
4829 # as_fn_arith ARG...
4830 # ------------------
4831 # Perform arithmetic evaluation on the ARGs, and store the result in the
4832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4833 # must be portable across $(()) and expr.
4834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4835 eval 'as_fn_arith ()
4837 as_val=$(( $* ))
4839 else
4840 as_fn_arith ()
4842 as_val=`expr "$@" || test $? -eq 1`
4844 fi # as_fn_arith
4847 if expr a : '\(a\)' >/dev/null 2>&1 &&
4848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4849 as_expr=expr
4850 else
4851 as_expr=false
4854 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4855 as_basename=basename
4856 else
4857 as_basename=false
4860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4861 as_dirname=dirname
4862 else
4863 as_dirname=false
4866 as_me=`$as_basename -- "$0" ||
4867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4868 X"$0" : 'X\(//\)$' \| \
4869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4870 $as_echo X/"$0" |
4871 sed '/^.*\/\([^/][^/]*\)\/*$/{
4872 s//\1/
4875 /^X\/\(\/\/\)$/{
4876 s//\1/
4879 /^X\/\(\/\).*/{
4880 s//\1/
4883 s/.*/./; q'`
4885 # Avoid depending upon Character Ranges.
4886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4889 as_cr_digits='0123456789'
4890 as_cr_alnum=$as_cr_Letters$as_cr_digits
4892 ECHO_C= ECHO_N= ECHO_T=
4893 case `echo -n x` in #(((((
4894 -n*)
4895 case `echo 'xy\c'` in
4896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4897 xy) ECHO_C='\c';;
4898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4899 ECHO_T=' ';;
4900 esac;;
4902 ECHO_N='-n';;
4903 esac
4905 rm -f conf$$ conf$$.exe conf$$.file
4906 if test -d conf$$.dir; then
4907 rm -f conf$$.dir/conf$$.file
4908 else
4909 rm -f conf$$.dir
4910 mkdir conf$$.dir 2>/dev/null
4912 if (echo >conf$$.file) 2>/dev/null; then
4913 if ln -s conf$$.file conf$$ 2>/dev/null; then
4914 as_ln_s='ln -s'
4915 # ... but there are two gotchas:
4916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4918 # In both cases, we have to default to `cp -pR'.
4919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4920 as_ln_s='cp -pR'
4921 elif ln conf$$.file conf$$ 2>/dev/null; then
4922 as_ln_s=ln
4923 else
4924 as_ln_s='cp -pR'
4926 else
4927 as_ln_s='cp -pR'
4929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4930 rmdir conf$$.dir 2>/dev/null
4933 # as_fn_mkdir_p
4934 # -------------
4935 # Create "$as_dir" as a directory, including parents if necessary.
4936 as_fn_mkdir_p ()
4939 case $as_dir in #(
4940 -*) as_dir=./$as_dir;;
4941 esac
4942 test -d "$as_dir" || eval $as_mkdir_p || {
4943 as_dirs=
4944 while :; do
4945 case $as_dir in #(
4946 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4947 *) as_qdir=$as_dir;;
4948 esac
4949 as_dirs="'$as_qdir' $as_dirs"
4950 as_dir=`$as_dirname -- "$as_dir" ||
4951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4952 X"$as_dir" : 'X\(//\)[^/]' \| \
4953 X"$as_dir" : 'X\(//\)$' \| \
4954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4955 $as_echo X"$as_dir" |
4956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4957 s//\1/
4960 /^X\(\/\/\)[^/].*/{
4961 s//\1/
4964 /^X\(\/\/\)$/{
4965 s//\1/
4968 /^X\(\/\).*/{
4969 s//\1/
4972 s/.*/./; q'`
4973 test -d "$as_dir" && break
4974 done
4975 test -z "$as_dirs" || eval "mkdir $as_dirs"
4976 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4979 } # as_fn_mkdir_p
4980 if mkdir -p . 2>/dev/null; then
4981 as_mkdir_p='mkdir -p "$as_dir"'
4982 else
4983 test -d ./-p && rmdir ./-p
4984 as_mkdir_p=false
4988 # as_fn_executable_p FILE
4989 # -----------------------
4990 # Test if FILE is an executable regular file.
4991 as_fn_executable_p ()
4993 test -f "$1" && test -x "$1"
4994 } # as_fn_executable_p
4995 as_test_x='test -x'
4996 as_executable_p=as_fn_executable_p
4998 # Sed expression to map a string onto a valid CPP name.
4999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5001 # Sed expression to map a string onto a valid variable name.
5002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5005 exec 6>&1
5006 ## ----------------------------------- ##
5007 ## Main body of $CONFIG_STATUS script. ##
5008 ## ----------------------------------- ##
5009 _ASEOF
5010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5013 # Save the log message, to keep $0 and so on meaningful, and to
5014 # report actual input values of CONFIG_FILES etc. instead of their
5015 # values after options handling.
5016 ac_log="
5017 This file was extended by $as_me, which was
5018 generated by GNU Autoconf 2.69. Invocation command line was
5020 CONFIG_FILES = $CONFIG_FILES
5021 CONFIG_HEADERS = $CONFIG_HEADERS
5022 CONFIG_LINKS = $CONFIG_LINKS
5023 CONFIG_COMMANDS = $CONFIG_COMMANDS
5024 $ $0 $@
5026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5029 _ACEOF
5031 case $ac_config_files in *"
5032 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5033 esac
5035 case $ac_config_headers in *"
5036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5037 esac
5040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5041 # Files that config.status was made for.
5042 config_files="$ac_config_files"
5043 config_headers="$ac_config_headers"
5045 _ACEOF
5047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5048 ac_cs_usage="\
5049 \`$as_me' instantiates files and other configuration actions
5050 from templates according to the current configuration. Unless the files
5051 and actions are specified as TAGs, all are instantiated by default.
5053 Usage: $0 [OPTION]... [TAG]...
5055 -h, --help print this help, then exit
5056 -V, --version print version number and configuration settings, then exit
5057 --config print configuration, then exit
5058 -q, --quiet, --silent
5059 do not print progress messages
5060 -d, --debug don't remove temporary files
5061 --recheck update $as_me by reconfiguring in the same conditions
5062 --file=FILE[:TEMPLATE]
5063 instantiate the configuration file FILE
5064 --header=FILE[:TEMPLATE]
5065 instantiate the configuration header FILE
5067 Configuration files:
5068 $config_files
5070 Configuration headers:
5071 $config_headers
5073 Report bugs to the package provider."
5075 _ACEOF
5076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5077 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5078 ac_cs_version="\\
5079 config.status
5080 configured by $0, generated by GNU Autoconf 2.69,
5081 with options \\"\$ac_cs_config\\"
5083 Copyright (C) 2012 Free Software Foundation, Inc.
5084 This config.status script is free software; the Free Software Foundation
5085 gives unlimited permission to copy, distribute and modify it."
5087 ac_pwd='$ac_pwd'
5088 srcdir='$srcdir'
5089 INSTALL='$INSTALL'
5090 test -n "\$AWK" || AWK=awk
5091 _ACEOF
5093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5094 # The default lists apply if the user does not specify any file.
5095 ac_need_defaults=:
5096 while test $# != 0
5098 case $1 in
5099 --*=?*)
5100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5102 ac_shift=:
5104 --*=)
5105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5106 ac_optarg=
5107 ac_shift=:
5110 ac_option=$1
5111 ac_optarg=$2
5112 ac_shift=shift
5114 esac
5116 case $ac_option in
5117 # Handling of the options.
5118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5119 ac_cs_recheck=: ;;
5120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5121 $as_echo "$ac_cs_version"; exit ;;
5122 --config | --confi | --conf | --con | --co | --c )
5123 $as_echo "$ac_cs_config"; exit ;;
5124 --debug | --debu | --deb | --de | --d | -d )
5125 debug=: ;;
5126 --file | --fil | --fi | --f )
5127 $ac_shift
5128 case $ac_optarg in
5129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5130 '') as_fn_error $? "missing file argument" ;;
5131 esac
5132 as_fn_append CONFIG_FILES " '$ac_optarg'"
5133 ac_need_defaults=false;;
5134 --header | --heade | --head | --hea )
5135 $ac_shift
5136 case $ac_optarg in
5137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5138 esac
5139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5140 ac_need_defaults=false;;
5141 --he | --h)
5142 # Conflict between --help and --header
5143 as_fn_error $? "ambiguous option: \`$1'
5144 Try \`$0 --help' for more information.";;
5145 --help | --hel | -h )
5146 $as_echo "$ac_cs_usage"; exit ;;
5147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5149 ac_cs_silent=: ;;
5151 # This is an error.
5152 -*) as_fn_error $? "unrecognized option: \`$1'
5153 Try \`$0 --help' for more information." ;;
5155 *) as_fn_append ac_config_targets " $1"
5156 ac_need_defaults=false ;;
5158 esac
5159 shift
5160 done
5162 ac_configure_extra_args=
5164 if $ac_cs_silent; then
5165 exec 6>/dev/null
5166 ac_configure_extra_args="$ac_configure_extra_args --silent"
5169 _ACEOF
5170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5171 if \$ac_cs_recheck; then
5172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5173 shift
5174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5175 CONFIG_SHELL='$SHELL'
5176 export CONFIG_SHELL
5177 exec "\$@"
5180 _ACEOF
5181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5182 exec 5>>config.log
5184 echo
5185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5186 ## Running $as_me. ##
5187 _ASBOX
5188 $as_echo "$ac_log"
5189 } >&5
5191 _ACEOF
5192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5193 _ACEOF
5195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5197 # Handling of arguments.
5198 for ac_config_target in $ac_config_targets
5200 case $ac_config_target in
5201 "sys/nix/config.h") CONFIG_HEADERS="$CONFIG_HEADERS sys/nix/config.h" ;;
5202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5204 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5205 esac
5206 done
5209 # If the user did not use the arguments to specify the items to instantiate,
5210 # then the envvar interface is used. Set only those that are not.
5211 # We use the long form for the default assignment because of an extremely
5212 # bizarre bug on SunOS 4.1.3.
5213 if $ac_need_defaults; then
5214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5218 # Have a temporary directory for convenience. Make it in the build tree
5219 # simply because there is no reason against having it here, and in addition,
5220 # creating and moving files from /tmp can sometimes cause problems.
5221 # Hook for its removal unless debugging.
5222 # Note that there is a small window in which the directory will not be cleaned:
5223 # after its creation but before its name has been assigned to `$tmp'.
5224 $debug ||
5226 tmp= ac_tmp=
5227 trap 'exit_status=$?
5228 : "${ac_tmp:=$tmp}"
5229 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5231 trap 'as_fn_exit 1' 1 2 13 15
5233 # Create a (secure) tmp directory for tmp files.
5236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5237 test -d "$tmp"
5238 } ||
5240 tmp=./conf$$-$RANDOM
5241 (umask 077 && mkdir "$tmp")
5242 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5243 ac_tmp=$tmp
5245 # Set up the scripts for CONFIG_FILES section.
5246 # No need to generate them if there are no CONFIG_FILES.
5247 # This happens for instance with `./config.status config.h'.
5248 if test -n "$CONFIG_FILES"; then
5251 ac_cr=`echo X | tr X '\015'`
5252 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5253 # But we know of no other shell where ac_cr would be empty at this
5254 # point, so we can use a bashism as a fallback.
5255 if test "x$ac_cr" = x; then
5256 eval ac_cr=\$\'\\r\'
5258 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5259 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5260 ac_cs_awk_cr='\\r'
5261 else
5262 ac_cs_awk_cr=$ac_cr
5265 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5266 _ACEOF
5270 echo "cat >conf$$subs.awk <<_ACEOF" &&
5271 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5272 echo "_ACEOF"
5273 } >conf$$subs.sh ||
5274 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5275 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5276 ac_delim='%!_!# '
5277 for ac_last_try in false false false false false :; do
5278 . ./conf$$subs.sh ||
5279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5281 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5282 if test $ac_delim_n = $ac_delim_num; then
5283 break
5284 elif $ac_last_try; then
5285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5286 else
5287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5289 done
5290 rm -f conf$$subs.sh
5292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5293 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5294 _ACEOF
5295 sed -n '
5297 s/^/S["/; s/!.*/"]=/
5300 s/^[^!]*!//
5301 :repl
5302 t repl
5303 s/'"$ac_delim"'$//
5304 t delim
5307 s/\(.\{148\}\)..*/\1/
5308 t more1
5309 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5312 b repl
5313 :more1
5314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5317 s/.\{148\}//
5318 t nl
5319 :delim
5321 s/\(.\{148\}\)..*/\1/
5322 t more2
5323 s/["\\]/\\&/g; s/^/"/; s/$/"/
5326 :more2
5327 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5330 s/.\{148\}//
5331 t delim
5332 ' <conf$$subs.awk | sed '
5333 /^[^""]/{
5335 s/\n//
5337 ' >>$CONFIG_STATUS || ac_write_fail=1
5338 rm -f conf$$subs.awk
5339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5340 _ACAWK
5341 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5342 for (key in S) S_is_set[key] = 1
5343 FS = "\a"
5347 line = $ 0
5348 nfields = split(line, field, "@")
5349 substed = 0
5350 len = length(field[1])
5351 for (i = 2; i < nfields; i++) {
5352 key = field[i]
5353 keylen = length(key)
5354 if (S_is_set[key]) {
5355 value = S[key]
5356 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5357 len += length(value) + length(field[++i])
5358 substed = 1
5359 } else
5360 len += 1 + keylen
5363 print line
5366 _ACAWK
5367 _ACEOF
5368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5369 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5371 else
5373 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5374 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5375 _ACEOF
5377 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5378 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5379 # trailing colons and then remove the whole line if VPATH becomes empty
5380 # (actually we leave an empty line to preserve line numbers).
5381 if test "x$srcdir" = x.; then
5382 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5384 s///
5385 s/^/:/
5386 s/[ ]*$/:/
5387 s/:\$(srcdir):/:/g
5388 s/:\${srcdir}:/:/g
5389 s/:@srcdir@:/:/g
5390 s/^:*//
5391 s/:*$//
5393 s/\(=[ ]*\).*/\1/
5395 s/\n//
5396 s/^[^=]*=[ ]*$//
5400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5401 fi # test -n "$CONFIG_FILES"
5403 # Set up the scripts for CONFIG_HEADERS section.
5404 # No need to generate them if there are no CONFIG_HEADERS.
5405 # This happens for instance with `./config.status Makefile'.
5406 if test -n "$CONFIG_HEADERS"; then
5407 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5408 BEGIN {
5409 _ACEOF
5411 # Transform confdefs.h into an awk script `defines.awk', embedded as
5412 # here-document in config.status, that substitutes the proper values into
5413 # config.h.in to produce config.h.
5415 # Create a delimiter string that does not exist in confdefs.h, to ease
5416 # handling of long lines.
5417 ac_delim='%!_!# '
5418 for ac_last_try in false false :; do
5419 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5420 if test -z "$ac_tt"; then
5421 break
5422 elif $ac_last_try; then
5423 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5424 else
5425 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5427 done
5429 # For the awk script, D is an array of macro values keyed by name,
5430 # likewise P contains macro parameters if any. Preserve backslash
5431 # newline sequences.
5433 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5434 sed -n '
5435 s/.\{148\}/&'"$ac_delim"'/g
5436 t rset
5437 :rset
5438 s/^[ ]*#[ ]*define[ ][ ]*/ /
5439 t def
5441 :def
5442 s/\\$//
5443 t bsnl
5444 s/["\\]/\\&/g
5445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5446 D["\1"]=" \3"/p
5447 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5449 :bsnl
5450 s/["\\]/\\&/g
5451 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5452 D["\1"]=" \3\\\\\\n"\\/p
5453 t cont
5454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5455 t cont
5457 :cont
5459 s/.\{148\}/&'"$ac_delim"'/g
5460 t clear
5461 :clear
5462 s/\\$//
5463 t bsnlc
5464 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5466 :bsnlc
5467 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5468 b cont
5469 ' <confdefs.h | sed '
5470 s/'"$ac_delim"'/"\\\
5471 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5474 for (key in D) D_is_set[key] = 1
5475 FS = "\a"
5477 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5478 line = \$ 0
5479 split(line, arg, " ")
5480 if (arg[1] == "#") {
5481 defundef = arg[2]
5482 mac1 = arg[3]
5483 } else {
5484 defundef = substr(arg[1], 2)
5485 mac1 = arg[2]
5487 split(mac1, mac2, "(") #)
5488 macro = mac2[1]
5489 prefix = substr(line, 1, index(line, defundef) - 1)
5490 if (D_is_set[macro]) {
5491 # Preserve the white space surrounding the "#".
5492 print prefix "define", macro P[macro] D[macro]
5493 next
5494 } else {
5495 # Replace #undef with comments. This is necessary, for example,
5496 # in the case of _POSIX_SOURCE, which is predefined and required
5497 # on some systems where configure will not decide to define it.
5498 if (defundef == "undef") {
5499 print "/*", prefix defundef, macro, "*/"
5500 next
5504 { print }
5505 _ACAWK
5506 _ACEOF
5507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5508 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5509 fi # test -n "$CONFIG_HEADERS"
5512 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5513 shift
5514 for ac_tag
5516 case $ac_tag in
5517 :[FHLC]) ac_mode=$ac_tag; continue;;
5518 esac
5519 case $ac_mode$ac_tag in
5520 :[FHL]*:*);;
5521 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5522 :[FH]-) ac_tag=-:-;;
5523 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5524 esac
5525 ac_save_IFS=$IFS
5526 IFS=:
5527 set x $ac_tag
5528 IFS=$ac_save_IFS
5529 shift
5530 ac_file=$1
5531 shift
5533 case $ac_mode in
5534 :L) ac_source=$1;;
5535 :[FH])
5536 ac_file_inputs=
5537 for ac_f
5539 case $ac_f in
5540 -) ac_f="$ac_tmp/stdin";;
5541 *) # Look for the file first in the build tree, then in the source tree
5542 # (if the path is not absolute). The absolute path cannot be DOS-style,
5543 # because $ac_f cannot contain `:'.
5544 test -f "$ac_f" ||
5545 case $ac_f in
5546 [\\/$]*) false;;
5547 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5548 esac ||
5549 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5550 esac
5551 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5552 as_fn_append ac_file_inputs " '$ac_f'"
5553 done
5555 # Let's still pretend it is `configure' which instantiates (i.e., don't
5556 # use $as_me), people would be surprised to read:
5557 # /* config.h. Generated by config.status. */
5558 configure_input='Generated from '`
5559 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5560 `' by configure.'
5561 if test x"$ac_file" != x-; then
5562 configure_input="$ac_file. $configure_input"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5564 $as_echo "$as_me: creating $ac_file" >&6;}
5566 # Neutralize special characters interpreted by sed in replacement strings.
5567 case $configure_input in #(
5568 *\&* | *\|* | *\\* )
5569 ac_sed_conf_input=`$as_echo "$configure_input" |
5570 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5571 *) ac_sed_conf_input=$configure_input;;
5572 esac
5574 case $ac_tag in
5575 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5577 esac
5579 esac
5581 ac_dir=`$as_dirname -- "$ac_file" ||
5582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5583 X"$ac_file" : 'X\(//\)[^/]' \| \
5584 X"$ac_file" : 'X\(//\)$' \| \
5585 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5586 $as_echo X"$ac_file" |
5587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5588 s//\1/
5591 /^X\(\/\/\)[^/].*/{
5592 s//\1/
5595 /^X\(\/\/\)$/{
5596 s//\1/
5599 /^X\(\/\).*/{
5600 s//\1/
5603 s/.*/./; q'`
5604 as_dir="$ac_dir"; as_fn_mkdir_p
5605 ac_builddir=.
5607 case "$ac_dir" in
5608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5611 # A ".." for each directory in $ac_dir_suffix.
5612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5613 case $ac_top_builddir_sub in
5614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5616 esac ;;
5617 esac
5618 ac_abs_top_builddir=$ac_pwd
5619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5620 # for backward compatibility:
5621 ac_top_builddir=$ac_top_build_prefix
5623 case $srcdir in
5624 .) # We are building in place.
5625 ac_srcdir=.
5626 ac_top_srcdir=$ac_top_builddir_sub
5627 ac_abs_top_srcdir=$ac_pwd ;;
5628 [\\/]* | ?:[\\/]* ) # Absolute name.
5629 ac_srcdir=$srcdir$ac_dir_suffix;
5630 ac_top_srcdir=$srcdir
5631 ac_abs_top_srcdir=$srcdir ;;
5632 *) # Relative name.
5633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5634 ac_top_srcdir=$ac_top_build_prefix$srcdir
5635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5636 esac
5637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5640 case $ac_mode in
5643 # CONFIG_FILE
5646 case $INSTALL in
5647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5648 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5649 esac
5650 _ACEOF
5652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5653 # If the template does not know about datarootdir, expand it.
5654 # FIXME: This hack should be removed a few years after 2.60.
5655 ac_datarootdir_hack=; ac_datarootdir_seen=
5656 ac_sed_dataroot='
5657 /datarootdir/ {
5661 /@datadir@/p
5662 /@docdir@/p
5663 /@infodir@/p
5664 /@localedir@/p
5665 /@mandir@/p'
5666 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5667 *datarootdir*) ac_datarootdir_seen=yes;;
5668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5670 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5671 _ACEOF
5672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5673 ac_datarootdir_hack='
5674 s&@datadir@&$datadir&g
5675 s&@docdir@&$docdir&g
5676 s&@infodir@&$infodir&g
5677 s&@localedir@&$localedir&g
5678 s&@mandir@&$mandir&g
5679 s&\\\${datarootdir}&$datarootdir&g' ;;
5680 esac
5681 _ACEOF
5683 # Neutralize VPATH when `$srcdir' = `.'.
5684 # Shell code in configure.ac might set extrasub.
5685 # FIXME: do we really want to maintain this feature?
5686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5687 ac_sed_extra="$ac_vpsub
5688 $extrasub
5689 _ACEOF
5690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5693 s|@configure_input@|$ac_sed_conf_input|;t t
5694 s&@top_builddir@&$ac_top_builddir_sub&;t t
5695 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5696 s&@srcdir@&$ac_srcdir&;t t
5697 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5698 s&@top_srcdir@&$ac_top_srcdir&;t t
5699 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5700 s&@builddir@&$ac_builddir&;t t
5701 s&@abs_builddir@&$ac_abs_builddir&;t t
5702 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5703 s&@INSTALL@&$ac_INSTALL&;t t
5704 $ac_datarootdir_hack
5706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5712 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5714 which seems to be undefined. Please make sure it is defined" >&5
5715 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5716 which seems to be undefined. Please make sure it is defined" >&2;}
5718 rm -f "$ac_tmp/stdin"
5719 case $ac_file in
5720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5722 esac \
5723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5727 # CONFIG_HEADER
5729 if test x"$ac_file" != x-; then
5731 $as_echo "/* $configure_input */" \
5732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5733 } >"$ac_tmp/config.h" \
5734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5735 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5737 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5738 else
5739 rm -f "$ac_file"
5740 mv "$ac_tmp/config.h" "$ac_file" \
5741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5743 else
5744 $as_echo "/* $configure_input */" \
5745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5746 || as_fn_error $? "could not create -" "$LINENO" 5
5751 esac
5753 done # for ac_tag
5756 as_fn_exit 0
5757 _ACEOF
5758 ac_clean_files=$ac_clean_files_save
5760 test $ac_write_fail = 0 ||
5761 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5764 # configure is writing to config.log, and then calls config.status.
5765 # config.status does its own redirection, appending to config.log.
5766 # Unfortunately, on DOS this fails, as config.log is still kept open
5767 # by configure, so config.status won't be able to write to it; its
5768 # output is simply discarded. So we exec the FD to /dev/null,
5769 # effectively closing config.log, so it can be properly (re)opened and
5770 # appended to by config.status. When coming back to configure, we
5771 # need to make the FD available again.
5772 if test "$no_create" != yes; then
5773 ac_cs_success=:
5774 ac_config_status_args=
5775 test "$silent" = yes &&
5776 ac_config_status_args="$ac_config_status_args --quiet"
5777 exec 5>/dev/null
5778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5779 exec 5>>config.log
5780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5781 # would make configure fail if this is the last instruction.
5782 $ac_cs_success || as_fn_exit 1
5784 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5786 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}