SDL2: always prefer opengl driver, print driver used
[rofl0r-gnuboy.git] / configure
blob2ed654bbc295a474a49a6673beee661b7976dde4
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 ASM_OBJS
634 SOUND
635 ENDIAN
636 SYS_DEFS
637 XMKMF
638 SDL_CONFIG
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_sound
697 with_x
698 enable_warnings
699 enable_debug
700 enable_profile
701 enable_arch
702 enable_optimize
703 enable_asm
705 ac_precious_vars='build_alias
706 host_alias
707 target_alias
709 CFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
714 XMKMF'
717 # Initialize some variables set by options.
718 ac_init_help=
719 ac_init_version=false
720 ac_unrecognized_opts=
721 ac_unrecognized_sep=
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
765 ac_prev=
766 ac_dashdash=
767 for ac_option
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
772 ac_prev=
773 continue
776 case $ac_option in
777 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *=) ac_optarg= ;;
779 *) ac_optarg=yes ;;
780 esac
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
786 ac_dashdash=yes ;;
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
805 --config-cache | -C)
806 cache_file=config.cache ;;
808 -datadir | --datadir | --datadi | --datad)
809 ac_prev=datadir ;;
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir=$ac_optarg ;;
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
820 -disable-* | --disable-*)
821 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824 as_fn_error $? "invalid feature name: $ac_useropt"
825 ac_useropt_orig=$ac_useropt
826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
829 "enable_$ac_useropt"
830 "*) ;;
831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
832 ac_unrecognized_sep=', ';;
833 esac
834 eval enable_$ac_useropt=no ;;
836 -docdir | --docdir | --docdi | --doc | --do)
837 ac_prev=docdir ;;
838 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839 docdir=$ac_optarg ;;
841 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 ac_prev=dvidir ;;
843 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844 dvidir=$ac_optarg ;;
846 -enable-* | --enable-*)
847 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
855 "enable_$ac_useropt"
856 "*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=\$ac_optarg ;;
862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864 | --exec | --exe | --ex)
865 ac_prev=exec_prefix ;;
866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868 | --exec=* | --exe=* | --ex=*)
869 exec_prefix=$ac_optarg ;;
871 -gas | --gas | --ga | --g)
872 # Obsolete; use --with-gas.
873 with_gas=yes ;;
875 -help | --help | --hel | --he | -h)
876 ac_init_help=long ;;
877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878 ac_init_help=recursive ;;
879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880 ac_init_help=short ;;
882 -host | --host | --hos | --ho)
883 ac_prev=host_alias ;;
884 -host=* | --host=* | --hos=* | --ho=*)
885 host_alias=$ac_optarg ;;
887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 ac_prev=htmldir ;;
889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 | --ht=*)
891 htmldir=$ac_optarg ;;
893 -includedir | --includedir | --includedi | --included | --include \
894 | --includ | --inclu | --incl | --inc)
895 ac_prev=includedir ;;
896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897 | --includ=* | --inclu=* | --incl=* | --inc=*)
898 includedir=$ac_optarg ;;
900 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 ac_prev=infodir ;;
902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903 infodir=$ac_optarg ;;
905 -libdir | --libdir | --libdi | --libd)
906 ac_prev=libdir ;;
907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 libdir=$ac_optarg ;;
910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911 | --libexe | --libex | --libe)
912 ac_prev=libexecdir ;;
913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914 | --libexe=* | --libex=* | --libe=*)
915 libexecdir=$ac_optarg ;;
917 -localedir | --localedir | --localedi | --localed | --locale)
918 ac_prev=localedir ;;
919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920 localedir=$ac_optarg ;;
922 -localstatedir | --localstatedir | --localstatedi | --localstated \
923 | --localstate | --localstat | --localsta | --localst | --locals)
924 ac_prev=localstatedir ;;
925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
927 localstatedir=$ac_optarg ;;
929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 ac_prev=mandir ;;
931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 mandir=$ac_optarg ;;
934 -nfp | --nfp | --nf)
935 # Obsolete; use --without-fp.
936 with_fp=no ;;
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c | -n)
940 no_create=yes ;;
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 no_recursion=yes ;;
946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948 | --oldin | --oldi | --old | --ol | --o)
949 ac_prev=oldincludedir ;;
950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953 oldincludedir=$ac_optarg ;;
955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 ac_prev=prefix ;;
957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 prefix=$ac_optarg ;;
960 -program-prefix | --program-prefix | --program-prefi | --program-pref \
961 | --program-pre | --program-pr | --program-p)
962 ac_prev=program_prefix ;;
963 -program-prefix=* | --program-prefix=* | --program-prefi=* \
964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965 program_prefix=$ac_optarg ;;
967 -program-suffix | --program-suffix | --program-suffi | --program-suff \
968 | --program-suf | --program-su | --program-s)
969 ac_prev=program_suffix ;;
970 -program-suffix=* | --program-suffix=* | --program-suffi=* \
971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972 program_suffix=$ac_optarg ;;
974 -program-transform-name | --program-transform-name \
975 | --program-transform-nam | --program-transform-na \
976 | --program-transform-n | --program-transform- \
977 | --program-transform | --program-transfor \
978 | --program-transfo | --program-transf \
979 | --program-trans | --program-tran \
980 | --progr-tra | --program-tr | --program-t)
981 ac_prev=program_transform_name ;;
982 -program-transform-name=* | --program-transform-name=* \
983 | --program-transform-nam=* | --program-transform-na=* \
984 | --program-transform-n=* | --program-transform-=* \
985 | --program-transform=* | --program-transfor=* \
986 | --program-transfo=* | --program-transf=* \
987 | --program-trans=* | --program-tran=* \
988 | --progr-tra=* | --program-tr=* | --program-t=*)
989 program_transform_name=$ac_optarg ;;
991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 ac_prev=pdfdir ;;
993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 pdfdir=$ac_optarg ;;
996 -psdir | --psdir | --psdi | --psd | --ps)
997 ac_prev=psdir ;;
998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 psdir=$ac_optarg ;;
1001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002 | -silent | --silent | --silen | --sile | --sil)
1003 silent=yes ;;
1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 ac_prev=sbindir ;;
1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 | --sbi=* | --sb=*)
1009 sbindir=$ac_optarg ;;
1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013 | --sharedst | --shareds | --shared | --share | --shar \
1014 | --sha | --sh)
1015 ac_prev=sharedstatedir ;;
1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 | --sha=* | --sh=*)
1020 sharedstatedir=$ac_optarg ;;
1022 -site | --site | --sit)
1023 ac_prev=site ;;
1024 -site=* | --site=* | --sit=*)
1025 site=$ac_optarg ;;
1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 ac_prev=srcdir ;;
1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030 srcdir=$ac_optarg ;;
1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033 | --syscon | --sysco | --sysc | --sys | --sy)
1034 ac_prev=sysconfdir ;;
1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037 sysconfdir=$ac_optarg ;;
1039 -target | --target | --targe | --targ | --tar | --ta | --t)
1040 ac_prev=target_alias ;;
1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042 target_alias=$ac_optarg ;;
1044 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 verbose=yes ;;
1047 -version | --version | --versio | --versi | --vers | -V)
1048 ac_init_version=: ;;
1050 -with-* | --with-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid package name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "with_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval with_$ac_useropt=\$ac_optarg ;;
1066 -without-* | --without-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid package name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "with_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval with_$ac_useropt=no ;;
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1100 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1101 Try \`$0 --help' for more information"
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 case $ac_envvar in #(
1108 '' | [0-9]* | *[!_$as_cr_alnum]* )
1109 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1110 esac
1111 eval $ac_envvar=\$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1122 esac
1123 done
1125 if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1127 as_fn_error $? "missing argument to $ac_option"
1130 if test -n "$ac_unrecognized_opts"; then
1131 case $enable_option_checking in
1132 no) ;;
1133 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1134 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1135 esac
1138 # Check all directory arguments for consistency.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val=\$$ac_var
1145 # Remove trailing slashes.
1146 case $ac_val in
1147 */ )
1148 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1149 eval $ac_var=\$ac_val;;
1150 esac
1151 # Be sure to have absolute directory names.
1152 case $ac_val in
1153 [\\/$]* | ?:[\\/]* ) continue;;
1154 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1155 esac
1156 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1157 done
1159 # There might be people who depend on the old broken behavior: `$host'
1160 # used to hold the argument of --host etc.
1161 # FIXME: To remove some day.
1162 build=$build_alias
1163 host=$host_alias
1164 target=$target_alias
1166 # FIXME: To remove some day.
1167 if test "x$host_alias" != x; then
1168 if test "x$build_alias" = x; then
1169 cross_compiling=maybe
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178 test "$silent" = yes && exec 6>/dev/null
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 as_fn_error $? "working directory cannot be determined"
1185 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186 as_fn_error $? "pwd does not report name of working directory"
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
1192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir=`$as_dirname -- "$as_myself" ||
1194 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$as_myself" : 'X\(//\)[^/]' \| \
1196 X"$as_myself" : 'X\(//\)$' \| \
1197 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198 $as_echo X"$as_myself" |
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 s//\1/
1203 /^X\(\/\/\)[^/].*/{
1204 s//\1/
1207 /^X\(\/\/\)$/{
1208 s//\1/
1211 /^X\(\/\).*/{
1212 s//\1/
1215 s/.*/./; q'`
1216 srcdir=$ac_confdir
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 srcdir=..
1220 else
1221 ac_srcdir_defaulted=no
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1227 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1228 ac_abs_confdir=`(
1229 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures this package to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking ...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1310 cat <<\_ACEOF
1312 X features:
1313 --x-includes=DIR X include files are in DIR
1314 --x-libraries=DIR X library files are in DIR
1315 _ACEOF
1318 if test -n "$ac_init_help"; then
1320 cat <<\_ACEOF
1322 Optional Features:
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-warnings enable selected compiler warnings
1327 --enable-debug include debugging symbols
1328 --enable-profile enable performance profiling
1329 --enable-arch compile for specific host cpu architecture
1330 --enable-optimize=LEVEL select optimization level (full,low,none)
1331 --enable-asm use hand-optimized asm cores
1333 Optional Packages:
1334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1336 --with-fb build framebuffer device interface
1337 --with-svgalib build Linux svgalib interface
1338 --with-sdl build SDL interface
1339 --with-sdl2 build SDL2 interface
1340 --with-sound=no,oss,sdl,ao select sound interface
1341 --with-x use the X Window System
1343 Some influential environment variables:
1344 CC C compiler command
1345 CFLAGS C compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
1348 LIBS libraries to pass to the linker, e.g. -l<library>
1349 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1350 you have headers in a nonstandard directory <include dir>
1351 CPP C preprocessor
1352 XMKMF Path to xmkmf, Makefile generator for X Window System
1354 Use these variables to override the choices made by `configure' or to help
1355 it to find libraries and programs with nonstandard names/locations.
1357 Report bugs to the package provider.
1358 _ACEOF
1359 ac_status=$?
1362 if test "$ac_init_help" = "recursive"; then
1363 # If there are subdirs, report their specific --help.
1364 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1365 test -d "$ac_dir" ||
1366 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1367 continue
1368 ac_builddir=.
1370 case "$ac_dir" in
1371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1374 # A ".." for each directory in $ac_dir_suffix.
1375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1376 case $ac_top_builddir_sub in
1377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1379 esac ;;
1380 esac
1381 ac_abs_top_builddir=$ac_pwd
1382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1383 # for backward compatibility:
1384 ac_top_builddir=$ac_top_build_prefix
1386 case $srcdir in
1387 .) # We are building in place.
1388 ac_srcdir=.
1389 ac_top_srcdir=$ac_top_builddir_sub
1390 ac_abs_top_srcdir=$ac_pwd ;;
1391 [\\/]* | ?:[\\/]* ) # Absolute name.
1392 ac_srcdir=$srcdir$ac_dir_suffix;
1393 ac_top_srcdir=$srcdir
1394 ac_abs_top_srcdir=$srcdir ;;
1395 *) # Relative name.
1396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1397 ac_top_srcdir=$ac_top_build_prefix$srcdir
1398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1399 esac
1400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1402 cd "$ac_dir" || { ac_status=$?; continue; }
1403 # Check for guested configure.
1404 if test -f "$ac_srcdir/configure.gnu"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1407 elif test -f "$ac_srcdir/configure"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure" --help=recursive
1410 else
1411 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1412 fi || ac_status=$?
1413 cd "$ac_pwd" || { ac_status=$?; break; }
1414 done
1417 test -n "$ac_init_help" && exit $ac_status
1418 if $ac_init_version; then
1419 cat <<\_ACEOF
1420 configure
1421 generated by GNU Autoconf 2.69
1423 Copyright (C) 2012 Free Software Foundation, Inc.
1424 This configure script is free software; the Free Software Foundation
1425 gives unlimited permission to copy, distribute and modify it.
1426 _ACEOF
1427 exit
1430 ## ------------------------ ##
1431 ## Autoconf initialization. ##
1432 ## ------------------------ ##
1434 # ac_fn_c_try_compile LINENO
1435 # --------------------------
1436 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1437 ac_fn_c_try_compile ()
1439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1440 rm -f conftest.$ac_objext
1441 if { { ac_try="$ac_compile"
1442 case "(($ac_try" in
1443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1444 *) ac_try_echo=$ac_try;;
1445 esac
1446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1447 $as_echo "$ac_try_echo"; } >&5
1448 (eval "$ac_compile") 2>conftest.err
1449 ac_status=$?
1450 if test -s conftest.err; then
1451 grep -v '^ *+' conftest.err >conftest.er1
1452 cat conftest.er1 >&5
1453 mv -f conftest.er1 conftest.err
1455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1456 test $ac_status = 0; } && {
1457 test -z "$ac_c_werror_flag" ||
1458 test ! -s conftest.err
1459 } && test -s conftest.$ac_objext; then :
1460 ac_retval=0
1461 else
1462 $as_echo "$as_me: failed program was:" >&5
1463 sed 's/^/| /' conftest.$ac_ext >&5
1465 ac_retval=1
1467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1468 as_fn_set_status $ac_retval
1470 } # ac_fn_c_try_compile
1472 # ac_fn_c_try_cpp LINENO
1473 # ----------------------
1474 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_cpp ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 if { { ac_try="$ac_cpp conftest.$ac_ext"
1479 case "(($ac_try" in
1480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1481 *) ac_try_echo=$ac_try;;
1482 esac
1483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484 $as_echo "$ac_try_echo"; } >&5
1485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1486 ac_status=$?
1487 if test -s conftest.err; then
1488 grep -v '^ *+' conftest.err >conftest.er1
1489 cat conftest.er1 >&5
1490 mv -f conftest.er1 conftest.err
1492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493 test $ac_status = 0; } > conftest.i && {
1494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1495 test ! -s conftest.err
1496 }; then :
1497 ac_retval=0
1498 else
1499 $as_echo "$as_me: failed program was:" >&5
1500 sed 's/^/| /' conftest.$ac_ext >&5
1502 ac_retval=1
1504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505 as_fn_set_status $ac_retval
1507 } # ac_fn_c_try_cpp
1509 # ac_fn_c_try_run LINENO
1510 # ----------------------
1511 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1512 # that executables *can* be run.
1513 ac_fn_c_try_run ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if { { ac_try="$ac_link"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_link") 2>&5
1524 ac_status=$?
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1527 { { case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_try") 2>&5
1534 ac_status=$?
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; }; }; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: program exited with status $ac_status" >&5
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1543 ac_retval=$ac_status
1545 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547 as_fn_set_status $ac_retval
1549 } # ac_fn_c_try_run
1551 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1552 # -------------------------------------------------------
1553 # Tests whether HEADER exists and can be compiled using the include files in
1554 # INCLUDES, setting the cache variable VAR accordingly.
1555 ac_fn_c_check_header_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559 $as_echo_n "checking for $2... " >&6; }
1560 if eval \${$3+:} false; then :
1561 $as_echo_n "(cached) " >&6
1562 else
1563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564 /* end confdefs.h. */
1566 #include <$2>
1567 _ACEOF
1568 if ac_fn_c_try_compile "$LINENO"; then :
1569 eval "$3=yes"
1570 else
1571 eval "$3=no"
1573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 eval ac_res=\$$3
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 } # ac_fn_c_check_header_compile
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 test -x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=1
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_link
1628 # ac_fn_c_check_func LINENO FUNC VAR
1629 # ----------------------------------
1630 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1631 ac_fn_c_check_func ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if eval \${$3+:} false; then :
1637 $as_echo_n "(cached) " >&6
1638 else
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1643 #define $2 innocuous_$2
1645 /* System header to define __stub macros and hopefully few prototypes,
1646 which can conflict with char $2 (); below.
1647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1648 <limits.h> exists even on freestanding compilers. */
1650 #ifdef __STDC__
1651 # include <limits.h>
1652 #else
1653 # include <assert.h>
1654 #endif
1656 #undef $2
1658 /* Override any GCC internal prototype to avoid an error.
1659 Use char because int might match the return type of a GCC
1660 builtin and then its argument prototype would still apply. */
1661 #ifdef __cplusplus
1662 extern "C"
1663 #endif
1664 char $2 ();
1665 /* The GNU C library defines this for functions which it implements
1666 to always fail with ENOSYS. Some functions are actually named
1667 something starting with __ and the normal name is an alias. */
1668 #if defined __stub_$2 || defined __stub___$2
1669 choke me
1670 #endif
1673 main ()
1675 return $2 ();
1677 return 0;
1679 _ACEOF
1680 if ac_fn_c_try_link "$LINENO"; then :
1681 eval "$3=yes"
1682 else
1683 eval "$3=no"
1685 rm -f core conftest.err conftest.$ac_objext \
1686 conftest$ac_exeext conftest.$ac_ext
1688 eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 } # ac_fn_c_check_func
1695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698 # the include files in INCLUDES and setting the cache variable VAR
1699 # accordingly.
1700 ac_fn_c_check_header_mongrel ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if eval \${$3+:} false; then :
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1709 eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 else
1713 # Is the header compilable?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715 $as_echo_n "checking $2 usability... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_header_compiler=yes
1723 else
1724 ac_header_compiler=no
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728 $as_echo "$ac_header_compiler" >&6; }
1730 # Is the header present?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732 $as_echo_n "checking $2 presence... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_cpp "$LINENO"; then :
1738 ac_header_preproc=yes
1739 else
1740 ac_header_preproc=no
1742 rm -f conftest.err conftest.i conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744 $as_echo "$ac_header_preproc" >&6; }
1746 # So? What about this header?
1747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1748 yes:no: )
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 no:yes:* )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1758 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1762 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 esac
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 eval "$3=\$ac_header_compiler"
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 } # ac_fn_c_check_header_mongrel
1781 cat >config.log <<_ACEOF
1782 This file contains any messages produced by compilers while
1783 running configure, to aid debugging if configure makes a mistake.
1785 It was created by $as_me, which was
1786 generated by GNU Autoconf 2.69. Invocation command line was
1788 $ $0 $@
1790 _ACEOF
1791 exec 5>>config.log
1793 cat <<_ASUNAME
1794 ## --------- ##
1795 ## Platform. ##
1796 ## --------- ##
1798 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1799 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1800 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1801 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1802 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1804 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1805 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1807 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1808 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1809 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1810 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1811 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1812 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1813 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1815 _ASUNAME
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 $as_echo "PATH: $as_dir"
1823 done
1824 IFS=$as_save_IFS
1826 } >&5
1828 cat >&5 <<_ACEOF
1831 ## ----------- ##
1832 ## Core tests. ##
1833 ## ----------- ##
1835 _ACEOF
1838 # Keep a trace of the command line.
1839 # Strip out --no-create and --no-recursion so they do not pile up.
1840 # Strip out --silent because we don't want to record it for future runs.
1841 # Also quote any args containing shell meta-characters.
1842 # Make two passes to allow for proper duplicate-argument suppression.
1843 ac_configure_args=
1844 ac_configure_args0=
1845 ac_configure_args1=
1846 ac_must_keep_next=false
1847 for ac_pass in 1 2
1849 for ac_arg
1851 case $ac_arg in
1852 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1854 | -silent | --silent | --silen | --sile | --sil)
1855 continue ;;
1856 *\'*)
1857 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 esac
1859 case $ac_pass in
1860 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1862 as_fn_append ac_configure_args1 " '$ac_arg'"
1863 if test $ac_must_keep_next = true; then
1864 ac_must_keep_next=false # Got value, back to normal.
1865 else
1866 case $ac_arg in
1867 *=* | --config-cache | -C | -disable-* | --disable-* \
1868 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1869 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1870 | -with-* | --with-* | -without-* | --without-* | --x)
1871 case "$ac_configure_args0 " in
1872 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1873 esac
1875 -* ) ac_must_keep_next=true ;;
1876 esac
1878 as_fn_append ac_configure_args " '$ac_arg'"
1880 esac
1881 done
1882 done
1883 { ac_configure_args0=; unset ac_configure_args0;}
1884 { ac_configure_args1=; unset ac_configure_args1;}
1886 # When interrupted or exit'd, cleanup temporary files, and complete
1887 # config.log. We remove comments because anyway the quotes in there
1888 # would cause problems or look ugly.
1889 # WARNING: Use '\'' to represent an apostrophe within the trap.
1890 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1891 trap 'exit_status=$?
1892 # Save into config.log some information that might help in debugging.
1894 echo
1896 $as_echo "## ---------------- ##
1897 ## Cache variables. ##
1898 ## ---------------- ##"
1899 echo
1900 # The following way of writing the cache mishandles newlines in values,
1902 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in #(
1905 *${as_nl}*)
1906 case $ac_var in #(
1907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1909 esac
1910 case $ac_var in #(
1911 _ | IFS | as_nl) ;; #(
1912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1913 *) { eval $ac_var=; unset $ac_var;} ;;
1914 esac ;;
1915 esac
1916 done
1917 (set) 2>&1 |
1918 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1919 *${as_nl}ac_space=\ *)
1920 sed -n \
1921 "s/'\''/'\''\\\\'\'''\''/g;
1922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1923 ;; #(
1925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1927 esac |
1928 sort
1930 echo
1932 $as_echo "## ----------------- ##
1933 ## Output variables. ##
1934 ## ----------------- ##"
1935 echo
1936 for ac_var in $ac_subst_vars
1938 eval ac_val=\$$ac_var
1939 case $ac_val in
1940 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941 esac
1942 $as_echo "$ac_var='\''$ac_val'\''"
1943 done | sort
1944 echo
1946 if test -n "$ac_subst_files"; then
1947 $as_echo "## ------------------- ##
1948 ## File substitutions. ##
1949 ## ------------------- ##"
1950 echo
1951 for ac_var in $ac_subst_files
1953 eval ac_val=\$$ac_var
1954 case $ac_val in
1955 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1956 esac
1957 $as_echo "$ac_var='\''$ac_val'\''"
1958 done | sort
1959 echo
1962 if test -s confdefs.h; then
1963 $as_echo "## ----------- ##
1964 ## confdefs.h. ##
1965 ## ----------- ##"
1966 echo
1967 cat confdefs.h
1968 echo
1970 test "$ac_signal" != 0 &&
1971 $as_echo "$as_me: caught signal $ac_signal"
1972 $as_echo "$as_me: exit $exit_status"
1973 } >&5
1974 rm -f core *.core core.conftest.* &&
1975 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1976 exit $exit_status
1978 for ac_signal in 1 2 13 15; do
1979 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1980 done
1981 ac_signal=0
1983 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1984 rm -f -r conftest* confdefs.h
1986 $as_echo "/* confdefs.h */" > confdefs.h
1988 # Predefined preprocessor variables.
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_NAME "$PACKAGE_NAME"
1992 _ACEOF
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1996 _ACEOF
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2000 _ACEOF
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_STRING "$PACKAGE_STRING"
2004 _ACEOF
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2008 _ACEOF
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_URL "$PACKAGE_URL"
2012 _ACEOF
2015 # Let the site file select an alternate cache file if it wants to.
2016 # Prefer an explicitly selected file to automatically selected ones.
2017 ac_site_file1=NONE
2018 ac_site_file2=NONE
2019 if test -n "$CONFIG_SITE"; then
2020 # We do not want a PATH search for config.site.
2021 case $CONFIG_SITE in #((
2022 -*) ac_site_file1=./$CONFIG_SITE;;
2023 */*) ac_site_file1=$CONFIG_SITE;;
2024 *) ac_site_file1=./$CONFIG_SITE;;
2025 esac
2026 elif test "x$prefix" != xNONE; then
2027 ac_site_file1=$prefix/share/config.site
2028 ac_site_file2=$prefix/etc/config.site
2029 else
2030 ac_site_file1=$ac_default_prefix/share/config.site
2031 ac_site_file2=$ac_default_prefix/etc/config.site
2033 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2035 test "x$ac_site_file" = xNONE && continue
2036 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2038 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2039 sed 's/^/| /' "$ac_site_file" >&5
2040 . "$ac_site_file" \
2041 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 as_fn_error $? "failed to load site script $ac_site_file
2044 See \`config.log' for more details" "$LINENO" 5; }
2046 done
2048 if test -r "$cache_file"; then
2049 # Some versions of bash will fail to source /dev/null (special files
2050 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2051 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2053 $as_echo "$as_me: loading cache $cache_file" >&6;}
2054 case $cache_file in
2055 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2056 *) . "./$cache_file";;
2057 esac
2059 else
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2061 $as_echo "$as_me: creating cache $cache_file" >&6;}
2062 >$cache_file
2065 # Check that the precious variables saved in the cache have kept the same
2066 # value.
2067 ac_cache_corrupted=false
2068 for ac_var in $ac_precious_vars; do
2069 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2070 eval ac_new_set=\$ac_env_${ac_var}_set
2071 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2072 eval ac_new_val=\$ac_env_${ac_var}_value
2073 case $ac_old_set,$ac_new_set in
2074 set,)
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2076 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2077 ac_cache_corrupted=: ;;
2078 ,set)
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2081 ac_cache_corrupted=: ;;
2082 ,);;
2084 if test "x$ac_old_val" != "x$ac_new_val"; then
2085 # differences in whitespace do not lead to failure.
2086 ac_old_val_w=`echo x $ac_old_val`
2087 ac_new_val_w=`echo x $ac_new_val`
2088 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2090 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2091 ac_cache_corrupted=:
2092 else
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2094 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2095 eval $ac_var=\$ac_old_val
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2098 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2100 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2101 fi;;
2102 esac
2103 # Pass precious variables to config.status.
2104 if test "$ac_new_set" = set; then
2105 case $ac_new_val in
2106 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 *) ac_arg=$ac_var=$ac_new_val ;;
2108 esac
2109 case " $ac_configure_args " in
2110 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2111 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2112 esac
2114 done
2115 if $ac_cache_corrupted; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2119 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2120 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2122 ## -------------------- ##
2123 ## Main body of script. ##
2124 ## -------------------- ##
2126 ac_ext=c
2127 ac_cpp='$CPP $CPPFLAGS'
2128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134 CFLAGS="$CFLAGS"
2135 # if user sets custom CFLAGS, don't enforce our optimization flags
2136 test -n "$CFLAGS" && enable_optimize=no
2139 ac_ext=c
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144 if test -n "$ac_tool_prefix"; then
2145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148 $as_echo_n "checking for $ac_word... " >&6; }
2149 if ${ac_cv_prog_CC+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2
2166 done
2167 done
2168 IFS=$as_save_IFS
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2175 $as_echo "$CC" >&6; }
2176 else
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178 $as_echo "no" >&6; }
2183 if test -z "$ac_cv_prog_CC"; then
2184 ac_ct_CC=$CC
2185 # Extract the first word of "gcc", so it can be a program name with args.
2186 set dummy gcc; ac_word=$2
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2188 $as_echo_n "checking for $ac_word... " >&6; }
2189 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2190 $as_echo_n "(cached) " >&6
2191 else
2192 if test -n "$ac_ct_CC"; then
2193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_ac_ct_CC="gcc"
2203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2206 done
2207 done
2208 IFS=$as_save_IFS
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2215 $as_echo "$ac_ct_CC" >&6; }
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2218 $as_echo "no" >&6; }
2221 if test "x$ac_ct_CC" = x; then
2222 CC=""
2223 else
2224 case $cross_compiling:$ac_tool_warned in
2225 yes:)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2228 ac_tool_warned=yes ;;
2229 esac
2230 CC=$ac_ct_CC
2232 else
2233 CC="$ac_cv_prog_CC"
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}cc; ac_word=$2
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2241 $as_echo_n "checking for $ac_word... " >&6; }
2242 if ${ac_cv_prog_CC+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 ac_cv_prog_CC="${ac_tool_prefix}cc"
2256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2261 IFS=$as_save_IFS
2265 CC=$ac_cv_prog_CC
2266 if test -n "$CC"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2268 $as_echo "$CC" >&6; }
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2271 $as_echo "no" >&6; }
2277 if test -z "$CC"; then
2278 # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2281 $as_echo_n "checking for $ac_word... " >&6; }
2282 if ${ac_cv_prog_CC+:} false; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 ac_prog_rejected=no
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2297 ac_prog_rejected=yes
2298 continue
2300 ac_cv_prog_CC="cc"
2301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2306 IFS=$as_save_IFS
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2311 shift
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2316 shift
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2325 $as_echo "$CC" >&6; }
2326 else
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2328 $as_echo "no" >&6; }
2333 if test -z "$CC"; then
2334 if test -n "$ac_tool_prefix"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if ${ac_cv_prog_CC+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2367 $as_echo "$CC" >&6; }
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370 $as_echo "no" >&6; }
2374 test -n "$CC" && break
2375 done
2377 if test -z "$CC"; then
2378 ac_ct_CC=$CC
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398 ac_cv_prog_ac_ct_CC="$ac_prog"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2411 $as_echo "$ac_ct_CC" >&6; }
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2418 test -n "$ac_ct_CC" && break
2419 done
2421 if test "x$ac_ct_CC" = x; then
2422 CC=""
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2428 ac_tool_warned=yes ;;
2429 esac
2430 CC=$ac_ct_CC
2437 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 as_fn_error $? "no acceptable C compiler found in \$PATH
2440 See \`config.log' for more details" "$LINENO" 5; }
2442 # Provide some information about the compiler.
2443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2444 set X $ac_compile
2445 ac_compiler=$2
2446 for ac_option in --version -v -V -qversion; do
2447 { { ac_try="$ac_compiler $ac_option >&5"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2455 ac_status=$?
2456 if test -s conftest.err; then
2457 sed '10a\
2458 ... rest of stderr output deleted ...
2459 10q' conftest.err >conftest.er1
2460 cat conftest.er1 >&5
2462 rm -f conftest.er1 conftest.err
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; }
2465 done
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 main ()
2475 return 0;
2477 _ACEOF
2478 ac_clean_files_save=$ac_clean_files
2479 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2480 # Try to create an executable without -o first, disregard a.out.
2481 # It will help us diagnose broken compilers, and finding out an intuition
2482 # of exeext.
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2484 $as_echo_n "checking whether the C compiler works... " >&6; }
2485 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2487 # The possible output files:
2488 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2490 ac_rmfiles=
2491 for ac_file in $ac_files
2493 case $ac_file in
2494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2495 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2496 esac
2497 done
2498 rm -f $ac_rmfiles
2500 if { { ac_try="$ac_link_default"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507 (eval "$ac_link_default") 2>&5
2508 ac_status=$?
2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510 test $ac_status = 0; }; then :
2511 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2512 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2513 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2514 # so that the user can short-circuit this test for compilers unknown to
2515 # Autoconf.
2516 for ac_file in $ac_files ''
2518 test -f "$ac_file" || continue
2519 case $ac_file in
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2522 [ab].out )
2523 # We found the default executable, but exeext='' is most
2524 # certainly right.
2525 break;;
2526 *.* )
2527 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2528 then :; else
2529 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2531 # We set ac_cv_exeext here because the later test for it is not
2532 # safe: cross compilers may not add the suffix if given an `-o'
2533 # argument, so we may need to know it at that point already.
2534 # Even if this section looks crufty: it has the advantage of
2535 # actually working.
2536 break;;
2538 break;;
2539 esac
2540 done
2541 test "$ac_cv_exeext" = no && ac_cv_exeext=
2543 else
2544 ac_file=''
2546 if test -z "$ac_file"; then :
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 $as_echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error 77 "C compiler cannot create executables
2555 See \`config.log' for more details" "$LINENO" 5; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558 $as_echo "yes" >&6; }
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2561 $as_echo_n "checking for C compiler default output file name... " >&6; }
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2563 $as_echo "$ac_file" >&6; }
2564 ac_exeext=$ac_cv_exeext
2566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2567 ac_clean_files=$ac_clean_files_save
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2569 $as_echo_n "checking for suffix of executables... " >&6; }
2570 if { { ac_try="$ac_link"
2571 case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574 esac
2575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2576 $as_echo "$ac_try_echo"; } >&5
2577 (eval "$ac_link") 2>&5
2578 ac_status=$?
2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2580 test $ac_status = 0; }; then :
2581 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2582 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2583 # work properly (i.e., refer to `conftest.exe'), while it won't with
2584 # `rm'.
2585 for ac_file in conftest.exe conftest conftest.*; do
2586 test -f "$ac_file" || continue
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2590 break;;
2591 * ) break;;
2592 esac
2593 done
2594 else
2595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2598 See \`config.log' for more details" "$LINENO" 5; }
2600 rm -f conftest conftest$ac_cv_exeext
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2602 $as_echo "$ac_cv_exeext" >&6; }
2604 rm -f conftest.$ac_ext
2605 EXEEXT=$ac_cv_exeext
2606 ac_exeext=$EXEEXT
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 #include <stdio.h>
2611 main ()
2613 FILE *f = fopen ("conftest.out", "w");
2614 return ferror (f) || fclose (f) != 0;
2617 return 0;
2619 _ACEOF
2620 ac_clean_files="$ac_clean_files conftest.out"
2621 # Check that the compiler produces executables we can run. If not, either
2622 # the compiler is broken, or we cross compile.
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2624 $as_echo_n "checking whether we are cross compiling... " >&6; }
2625 if test "$cross_compiling" != yes; then
2626 { { ac_try="$ac_link"
2627 case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630 esac
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_link") 2>&5
2634 ac_status=$?
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; }
2637 if { ac_try='./conftest$ac_cv_exeext'
2638 { { case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641 esac
2642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643 $as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_try") 2>&5
2645 ac_status=$?
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; }; }; then
2648 cross_compiling=no
2649 else
2650 if test "$cross_compiling" = maybe; then
2651 cross_compiling=yes
2652 else
2653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 as_fn_error $? "cannot run C compiled programs.
2656 If you meant to cross compile, use \`--host'.
2657 See \`config.log' for more details" "$LINENO" 5; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2662 $as_echo "$cross_compiling" >&6; }
2664 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2665 ac_clean_files=$ac_clean_files_save
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2667 $as_echo_n "checking for suffix of object files... " >&6; }
2668 if ${ac_cv_objext+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2675 main ()
2679 return 0;
2681 _ACEOF
2682 rm -f conftest.o conftest.obj
2683 if { { ac_try="$ac_compile"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689 $as_echo "$ac_try_echo"; } >&5
2690 (eval "$ac_compile") 2>&5
2691 ac_status=$?
2692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2693 test $ac_status = 0; }; then :
2694 for ac_file in conftest.o conftest.obj conftest.*; do
2695 test -f "$ac_file" || continue;
2696 case $ac_file in
2697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2699 break;;
2700 esac
2701 done
2702 else
2703 $as_echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error $? "cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details" "$LINENO" 5; }
2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2714 $as_echo "$ac_cv_objext" >&6; }
2715 OBJEXT=$ac_cv_objext
2716 ac_objext=$OBJEXT
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2719 if ${ac_cv_c_compiler_gnu+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2726 main ()
2728 #ifndef __GNUC__
2729 choke me
2730 #endif
2733 return 0;
2735 _ACEOF
2736 if ac_fn_c_try_compile "$LINENO"; then :
2737 ac_compiler_gnu=yes
2738 else
2739 ac_compiler_gnu=no
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2747 if test $ac_compiler_gnu = yes; then
2748 GCC=yes
2749 else
2750 GCC=
2752 ac_test_CFLAGS=${CFLAGS+set}
2753 ac_save_CFLAGS=$CFLAGS
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2756 if ${ac_cv_prog_cc_g+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 ac_save_c_werror_flag=$ac_c_werror_flag
2760 ac_c_werror_flag=yes
2761 ac_cv_prog_cc_g=no
2762 CFLAGS="-g"
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2767 main ()
2771 return 0;
2773 _ACEOF
2774 if ac_fn_c_try_compile "$LINENO"; then :
2775 ac_cv_prog_cc_g=yes
2776 else
2777 CFLAGS=""
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2782 main ()
2786 return 0;
2788 _ACEOF
2789 if ac_fn_c_try_compile "$LINENO"; then :
2791 else
2792 ac_c_werror_flag=$ac_save_c_werror_flag
2793 CFLAGS="-g"
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2798 main ()
2802 return 0;
2804 _ACEOF
2805 if ac_fn_c_try_compile "$LINENO"; then :
2806 ac_cv_prog_cc_g=yes
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 ac_c_werror_flag=$ac_save_c_werror_flag
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2816 $as_echo "$ac_cv_prog_cc_g" >&6; }
2817 if test "$ac_test_CFLAGS" = set; then
2818 CFLAGS=$ac_save_CFLAGS
2819 elif test $ac_cv_prog_cc_g = yes; then
2820 if test "$GCC" = yes; then
2821 CFLAGS="-g -O2"
2822 else
2823 CFLAGS="-g"
2825 else
2826 if test "$GCC" = yes; then
2827 CFLAGS="-O2"
2828 else
2829 CFLAGS=
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2834 if ${ac_cv_prog_cc_c89+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 ac_cv_prog_cc_c89=no
2838 ac_save_CC=$CC
2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h. */
2841 #include <stdarg.h>
2842 #include <stdio.h>
2843 struct stat;
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2848 char **p;
2849 int i;
2851 return p[i];
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2855 char *s;
2856 va_list v;
2857 va_start (v,p);
2858 s = g (p, va_arg (v,int));
2859 va_end (v);
2860 return s;
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
2866 as 'x'. The following induces an error, until -std is added to get
2867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
2869 that's true only with -std. */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873 inside strings and character constants. */
2874 #define FOO(x) 'x'
2875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877 int test (int i, double x);
2878 struct s1 {int (*f) (int a);};
2879 struct s2 {int (*f) (double a);};
2880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 int argc;
2882 char **argv;
2884 main ()
2886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 return 0;
2890 _ACEOF
2891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 if ac_fn_c_try_compile "$LINENO"; then :
2896 ac_cv_prog_cc_c89=$ac_arg
2898 rm -f core conftest.err conftest.$ac_objext
2899 test "x$ac_cv_prog_cc_c89" != "xno" && break
2900 done
2901 rm -f conftest.$ac_ext
2902 CC=$ac_save_CC
2905 # AC_CACHE_VAL
2906 case "x$ac_cv_prog_cc_c89" in
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2909 $as_echo "none needed" >&6; } ;;
2910 xno)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2912 $as_echo "unsupported" >&6; } ;;
2914 CC="$CC $ac_cv_prog_cc_c89"
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2917 esac
2918 if test "x$ac_cv_prog_cc_c89" != xno; then :
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2934 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2935 # On Suns, sometimes $CPP names a directory.
2936 if test -n "$CPP" && test -d "$CPP"; then
2937 CPP=
2939 if test -z "$CPP"; then
2940 if ${ac_cv_prog_CPP+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 # Double quotes because CPP needs to be expanded
2944 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2946 ac_preproc_ok=false
2947 for ac_c_preproc_warn_flag in '' yes
2949 # Use a header file that comes with gcc, so configuring glibc
2950 # with a fresh cross-compiler works.
2951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2952 # <limits.h> exists even on freestanding compilers.
2953 # On the NeXT, cc -E runs the code through the compiler's parser,
2954 # not just through cpp. "Syntax error" is here to catch this case.
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956 /* end confdefs.h. */
2957 #ifdef __STDC__
2958 # include <limits.h>
2959 #else
2960 # include <assert.h>
2961 #endif
2962 Syntax error
2963 _ACEOF
2964 if ac_fn_c_try_cpp "$LINENO"; then :
2966 else
2967 # Broken: fails on valid input.
2968 continue
2970 rm -f conftest.err conftest.i conftest.$ac_ext
2972 # OK, works on sane cases. Now check whether nonexistent headers
2973 # can be detected and how.
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2976 #include <ac_nonexistent.h>
2977 _ACEOF
2978 if ac_fn_c_try_cpp "$LINENO"; then :
2979 # Broken: success on invalid input.
2980 continue
2981 else
2982 # Passes both tests.
2983 ac_preproc_ok=:
2984 break
2986 rm -f conftest.err conftest.i conftest.$ac_ext
2988 done
2989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2990 rm -f conftest.i conftest.err conftest.$ac_ext
2991 if $ac_preproc_ok; then :
2992 break
2995 done
2996 ac_cv_prog_CPP=$CPP
2999 CPP=$ac_cv_prog_CPP
3000 else
3001 ac_cv_prog_CPP=$CPP
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3004 $as_echo "$CPP" >&6; }
3005 ac_preproc_ok=false
3006 for ac_c_preproc_warn_flag in '' yes
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011 # <limits.h> exists even on freestanding compilers.
3012 # On the NeXT, cc -E runs the code through the compiler's parser,
3013 # not just through cpp. "Syntax error" is here to catch this case.
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021 Syntax error
3022 _ACEOF
3023 if ac_fn_c_try_cpp "$LINENO"; then :
3025 else
3026 # Broken: fails on valid input.
3027 continue
3029 rm -f conftest.err conftest.i conftest.$ac_ext
3031 # OK, works on sane cases. Now check whether nonexistent headers
3032 # can be detected and how.
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3035 #include <ac_nonexistent.h>
3036 _ACEOF
3037 if ac_fn_c_try_cpp "$LINENO"; then :
3038 # Broken: success on invalid input.
3039 continue
3040 else
3041 # Passes both tests.
3042 ac_preproc_ok=:
3043 break
3045 rm -f conftest.err conftest.i conftest.$ac_ext
3047 done
3048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049 rm -f conftest.i conftest.err conftest.$ac_ext
3050 if $ac_preproc_ok; then :
3052 else
3053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3056 See \`config.log' for more details" "$LINENO" 5; }
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 ac_aux_dir=
3066 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3067 if test -f "$ac_dir/install-sh"; then
3068 ac_aux_dir=$ac_dir
3069 ac_install_sh="$ac_aux_dir/install-sh -c"
3070 break
3071 elif test -f "$ac_dir/install.sh"; then
3072 ac_aux_dir=$ac_dir
3073 ac_install_sh="$ac_aux_dir/install.sh -c"
3074 break
3075 elif test -f "$ac_dir/shtool"; then
3076 ac_aux_dir=$ac_dir
3077 ac_install_sh="$ac_aux_dir/shtool install -c"
3078 break
3080 done
3081 if test -z "$ac_aux_dir"; then
3082 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3085 # These three variables are undocumented and unsupported,
3086 # and are intended to be withdrawn in a future Autoconf release.
3087 # They can cause serious problems if a builder's source tree is in a directory
3088 # whose full name contains unusual characters.
3089 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3090 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3091 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3094 # Find a good install program. We prefer a C program (faster),
3095 # so one script is as good as another. But avoid the broken or
3096 # incompatible versions:
3097 # SysV /etc/install, /usr/sbin/install
3098 # SunOS /usr/etc/install
3099 # IRIX /sbin/install
3100 # AIX /bin/install
3101 # AmigaOS /C/install, which installs bootblocks on floppy discs
3102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105 # OS/2's system install, which has a completely different semantic
3106 # ./install, which can be erroneously created by make from ./install.sh.
3107 # Reject install programs that cannot install multiple files.
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3109 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3110 if test -z "$INSTALL"; then
3111 if ${ac_cv_path_install+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 # Account for people who put trailing slashes in PATH elements.
3120 case $as_dir/ in #((
3121 ./ | .// | /[cC]/* | \
3122 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3123 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3124 /usr/ucb/* ) ;;
3126 # OSF1 and SCO ODT 3.0 have their own names for install.
3127 # Don't use installbsd from OSF since it installs stuff as root
3128 # by default.
3129 for ac_prog in ginstall scoinst install; do
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3132 if test $ac_prog = install &&
3133 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3134 # AIX install. It has an incompatible calling convention.
3136 elif test $ac_prog = install &&
3137 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138 # program-specific install script used by HP pwplus--don't use.
3140 else
3141 rm -rf conftest.one conftest.two conftest.dir
3142 echo one > conftest.one
3143 echo two > conftest.two
3144 mkdir conftest.dir
3145 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3146 test -s conftest.one && test -s conftest.two &&
3147 test -s conftest.dir/conftest.one &&
3148 test -s conftest.dir/conftest.two
3149 then
3150 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3151 break 3
3155 done
3156 done
3158 esac
3160 done
3161 IFS=$as_save_IFS
3163 rm -rf conftest.one conftest.two conftest.dir
3166 if test "${ac_cv_path_install+set}" = set; then
3167 INSTALL=$ac_cv_path_install
3168 else
3169 # As a last resort, use the slow shell script. Don't cache a
3170 # value for INSTALL within a source directory, because that will
3171 # break other packages using the cache if that directory is
3172 # removed, or if the value is a relative name.
3173 INSTALL=$ac_install_sh
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3177 $as_echo "$INSTALL" >&6; }
3179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3180 # It thinks the first close brace ends the variable substitution.
3181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3188 old_cflags="$CFLAGS"
3189 CFLAGS="$CFLAGS -Wno-unused-function -Wno-deprecated-declarations -Wno-overlength-strings"
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3195 main ()
3197 typedef int foo;
3199 return 0;
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"; then :
3204 else
3205 CFLAGS="$old_cflags"
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 test "$cross_compiling" = "yes" ||
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3212 if ${ac_cv_path_GREP+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -z "$GREP"; then
3216 ac_path_GREP_found=false
3217 # Loop through the user's path and test for each of PROGNAME-LIST
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_prog in grep ggrep; do
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3226 as_fn_executable_p "$ac_path_GREP" || continue
3227 # Check for GNU ac_path_GREP and select it if it is found.
3228 # Check for GNU $ac_path_GREP
3229 case `"$ac_path_GREP" --version 2>&1` in
3230 *GNU*)
3231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3233 ac_count=0
3234 $as_echo_n 0123456789 >"conftest.in"
3235 while :
3237 cat "conftest.in" "conftest.in" >"conftest.tmp"
3238 mv "conftest.tmp" "conftest.in"
3239 cp "conftest.in" "conftest.nl"
3240 $as_echo 'GREP' >> "conftest.nl"
3241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3243 as_fn_arith $ac_count + 1 && ac_count=$as_val
3244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3245 # Best one so far, save it but keep looking for a better one
3246 ac_cv_path_GREP="$ac_path_GREP"
3247 ac_path_GREP_max=$ac_count
3249 # 10*(2^10) chars as input seems more than enough
3250 test $ac_count -gt 10 && break
3251 done
3252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3253 esac
3255 $ac_path_GREP_found && break 3
3256 done
3257 done
3258 done
3259 IFS=$as_save_IFS
3260 if test -z "$ac_cv_path_GREP"; then
3261 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3263 else
3264 ac_cv_path_GREP=$GREP
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3269 $as_echo "$ac_cv_path_GREP" >&6; }
3270 GREP="$ac_cv_path_GREP"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3274 $as_echo_n "checking for egrep... " >&6; }
3275 if ${ac_cv_path_EGREP+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3279 then ac_cv_path_EGREP="$GREP -E"
3280 else
3281 if test -z "$EGREP"; then
3282 ac_path_EGREP_found=false
3283 # Loop through the user's path and test for each of PROGNAME-LIST
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_prog in egrep; do
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3292 as_fn_executable_p "$ac_path_EGREP" || continue
3293 # Check for GNU ac_path_EGREP and select it if it is found.
3294 # Check for GNU $ac_path_EGREP
3295 case `"$ac_path_EGREP" --version 2>&1` in
3296 *GNU*)
3297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3299 ac_count=0
3300 $as_echo_n 0123456789 >"conftest.in"
3301 while :
3303 cat "conftest.in" "conftest.in" >"conftest.tmp"
3304 mv "conftest.tmp" "conftest.in"
3305 cp "conftest.in" "conftest.nl"
3306 $as_echo 'EGREP' >> "conftest.nl"
3307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3309 as_fn_arith $ac_count + 1 && ac_count=$as_val
3310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3311 # Best one so far, save it but keep looking for a better one
3312 ac_cv_path_EGREP="$ac_path_EGREP"
3313 ac_path_EGREP_max=$ac_count
3315 # 10*(2^10) chars as input seems more than enough
3316 test $ac_count -gt 10 && break
3317 done
3318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3319 esac
3321 $ac_path_EGREP_found && break 3
3322 done
3323 done
3324 done
3325 IFS=$as_save_IFS
3326 if test -z "$ac_cv_path_EGREP"; then
3327 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3329 else
3330 ac_cv_path_EGREP=$EGREP
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3336 $as_echo "$ac_cv_path_EGREP" >&6; }
3337 EGREP="$ac_cv_path_EGREP"
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3341 $as_echo_n "checking for ANSI C header files... " >&6; }
3342 if ${ac_cv_header_stdc+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <stdlib.h>
3348 #include <stdarg.h>
3349 #include <string.h>
3350 #include <float.h>
3353 main ()
3357 return 0;
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_cv_header_stdc=yes
3362 else
3363 ac_cv_header_stdc=no
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 if test $ac_cv_header_stdc = yes; then
3368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371 #include <string.h>
3373 _ACEOF
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 $EGREP "memchr" >/dev/null 2>&1; then :
3377 else
3378 ac_cv_header_stdc=no
3380 rm -f conftest*
3384 if test $ac_cv_header_stdc = yes; then
3385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388 #include <stdlib.h>
3390 _ACEOF
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392 $EGREP "free" >/dev/null 2>&1; then :
3394 else
3395 ac_cv_header_stdc=no
3397 rm -f conftest*
3401 if test $ac_cv_header_stdc = yes; then
3402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3403 if test "$cross_compiling" = yes; then :
3405 else
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3408 #include <ctype.h>
3409 #include <stdlib.h>
3410 #if ((' ' & 0x0FF) == 0x020)
3411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3413 #else
3414 # define ISLOWER(c) \
3415 (('a' <= (c) && (c) <= 'i') \
3416 || ('j' <= (c) && (c) <= 'r') \
3417 || ('s' <= (c) && (c) <= 'z'))
3418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3419 #endif
3421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3423 main ()
3425 int i;
3426 for (i = 0; i < 256; i++)
3427 if (XOR (islower (i), ISLOWER (i))
3428 || toupper (i) != TOUPPER (i))
3429 return 2;
3430 return 0;
3432 _ACEOF
3433 if ac_fn_c_try_run "$LINENO"; then :
3435 else
3436 ac_cv_header_stdc=no
3438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3439 conftest.$ac_objext conftest.beam conftest.$ac_ext
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3445 $as_echo "$ac_cv_header_stdc" >&6; }
3446 if test $ac_cv_header_stdc = yes; then
3448 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3454 inttypes.h stdint.h unistd.h
3455 do :
3456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3460 cat >>confdefs.h <<_ACEOF
3461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462 _ACEOF
3466 done
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3470 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3471 if ${ac_cv_c_bigendian+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 ac_cv_c_bigendian=unknown
3475 # See if we're dealing with a universal compiler.
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #ifndef __APPLE_CC__
3479 not a universal capable compiler
3480 #endif
3481 typedef int dummy;
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3486 # Check for potential -arch flags. It is not universal unless
3487 # there are at least two -arch flags with different values.
3488 ac_arch=
3489 ac_prev=
3490 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3491 if test -n "$ac_prev"; then
3492 case $ac_word in
3493 i?86 | x86_64 | ppc | ppc64)
3494 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3495 ac_arch=$ac_word
3496 else
3497 ac_cv_c_bigendian=universal
3498 break
3501 esac
3502 ac_prev=
3503 elif test "x$ac_word" = "x-arch"; then
3504 ac_prev=arch
3506 done
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 if test $ac_cv_c_bigendian = unknown; then
3510 # See if sys/param.h defines the BYTE_ORDER macro.
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513 #include <sys/types.h>
3514 #include <sys/param.h>
3517 main ()
3519 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3520 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3521 && LITTLE_ENDIAN)
3522 bogus endian macros
3523 #endif
3526 return 0;
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 # It does; now see whether it defined to BIG_ENDIAN or not.
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533 #include <sys/types.h>
3534 #include <sys/param.h>
3537 main ()
3539 #if BYTE_ORDER != BIG_ENDIAN
3540 not big endian
3541 #endif
3544 return 0;
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_c_bigendian=yes
3549 else
3550 ac_cv_c_bigendian=no
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 if test $ac_cv_c_bigendian = unknown; then
3557 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560 #include <limits.h>
3563 main ()
3565 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3566 bogus endian macros
3567 #endif
3570 return 0;
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574 # It does; now see whether it defined to _BIG_ENDIAN or not.
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 #include <limits.h>
3580 main ()
3582 #ifndef _BIG_ENDIAN
3583 not big endian
3584 #endif
3587 return 0;
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_c_bigendian=yes
3592 else
3593 ac_cv_c_bigendian=no
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 if test $ac_cv_c_bigendian = unknown; then
3600 # Compile a test program.
3601 if test "$cross_compiling" = yes; then :
3602 # Try to guess by grepping values from an object file.
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605 short int ascii_mm[] =
3606 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3607 short int ascii_ii[] =
3608 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3609 int use_ascii (int i) {
3610 return ascii_mm[i] + ascii_ii[i];
3612 short int ebcdic_ii[] =
3613 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3614 short int ebcdic_mm[] =
3615 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3616 int use_ebcdic (int i) {
3617 return ebcdic_mm[i] + ebcdic_ii[i];
3619 extern int foo;
3622 main ()
3624 return use_ascii (foo) == use_ebcdic (foo);
3626 return 0;
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3631 ac_cv_c_bigendian=yes
3633 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3634 if test "$ac_cv_c_bigendian" = unknown; then
3635 ac_cv_c_bigendian=no
3636 else
3637 # finding both strings is unlikely to happen, but who knows?
3638 ac_cv_c_bigendian=unknown
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646 $ac_includes_default
3648 main ()
3651 /* Are we little or big endian? From Harbison&Steele. */
3652 union
3654 long int l;
3655 char c[sizeof (long int)];
3656 } u;
3657 u.l = 1;
3658 return u.c[sizeof (long int) - 1] == 1;
3661 return 0;
3663 _ACEOF
3664 if ac_fn_c_try_run "$LINENO"; then :
3665 ac_cv_c_bigendian=no
3666 else
3667 ac_cv_c_bigendian=yes
3669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3670 conftest.$ac_objext conftest.beam conftest.$ac_ext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3676 $as_echo "$ac_cv_c_bigendian" >&6; }
3677 case $ac_cv_c_bigendian in #(
3678 yes)
3679 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3680 ;; #(
3682 ;; #(
3683 universal)
3685 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3687 ;; #(
3689 as_fn_error $? "unknown endianness
3690 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3691 esac
3693 test "$ac_cv_c_bigendian" = "no" && ENDIAN="-DIS_LITTLE_ENDIAN"
3697 for ac_func in usleep
3698 do :
3699 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
3700 if test "x$ac_cv_func_usleep" = xyes; then :
3701 cat >>confdefs.h <<_ACEOF
3702 #define HAVE_USLEEP 1
3703 _ACEOF
3705 else
3707 for ac_func in select
3708 do :
3709 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
3710 if test "x$ac_cv_func_select" = xyes; then :
3711 cat >>confdefs.h <<_ACEOF
3712 #define HAVE_SELECT 1
3713 _ACEOF
3715 else
3717 as_fn_error $? "your system must support either usleep or select" "$LINENO" 5
3720 done
3723 done
3729 test "$cross_compiling" = "yes" || LIBS="$LIBS -L/usr/X11R6/lib"
3736 # Check whether --with-fb was given.
3737 if test "${with_fb+set}" = set; then :
3738 withval=$with_fb;
3739 else
3740 with_fb=yes
3744 # Check whether --with-svgalib was given.
3745 if test "${with_svgalib+set}" = set; then :
3746 withval=$with_svgalib;
3747 else
3748 with_svgalib=yes
3752 # Check whether --with-sdl was given.
3753 if test "${with_sdl+set}" = set; then :
3754 withval=$with_sdl;
3755 else
3756 with_sdl=yes
3760 # Check whether --with-sdl was given.
3761 if test "${with_sdl+set}" = set; then :
3762 withval=$with_sdl;
3763 else
3764 with_sdl2=yes
3768 # Check whether --with-sound was given.
3769 if test "${with_sound+set}" = set; then :
3770 withval=$with_sound;
3771 else
3772 with_sound=yes
3779 SOUND=""
3780 JOY=""
3782 if test "$with_sound" != "no" ; then
3783 if test "$with_sound" = "yes" || test "$with_sound" = "ao" ; then
3784 for ac_header in ao/ao.h
3785 do :
3786 ac_fn_c_check_header_mongrel "$LINENO" "ao/ao.h" "ac_cv_header_ao_ao_h" "$ac_includes_default"
3787 if test "x$ac_cv_header_ao_ao_h" = xyes; then :
3788 cat >>confdefs.h <<_ACEOF
3789 #define HAVE_AO_AO_H 1
3790 _ACEOF
3791 SOUND=sys/ao/ao.o ; LIBS="$LIBS -Wl,--as-needed -lao -Wl,--no-as-needed"
3794 done
3797 if test -z "$SOUND" && ( test "$with_sound" = "yes" || test "$with_sound" = "sdl" ) ; then
3798 for ac_header in SDL/SDL.h
3799 do :
3800 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
3801 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
3802 cat >>confdefs.h <<_ACEOF
3803 #define HAVE_SDL_SDL_H 1
3804 _ACEOF
3805 SOUND=sys/sdl/sdl-audio.o ; LIBS="$LIBS -lSDL"
3808 done
3811 if test -z "$SOUND" && ( test "$with_sound" = "yes" || test "$with_sound" = "oss" ) ; then
3812 for ac_header in sys/soundcard.h
3813 do :
3814 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
3815 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
3816 cat >>confdefs.h <<_ACEOF
3817 #define HAVE_SYS_SOUNDCARD_H 1
3818 _ACEOF
3819 SOUND=sys/oss/oss.o ; CPPFLAGS="$CPPFLAGS -DHAVE_SYS_SOUNDCARD_H"
3820 else
3822 for ac_header in machine/soundcard.h
3823 do :
3824 ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
3825 if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
3826 cat >>confdefs.h <<_ACEOF
3827 #define HAVE_MACHINE_SOUNDCARD_H 1
3828 _ACEOF
3829 SOUND=sys/oss/oss.o ; CPPFLAGS="$CPPFLAGS -DHAVE_MACHINE_SOUNDCARD_H"
3830 else
3832 for ac_header in soundcard.h
3833 do :
3834 ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
3835 if test "x$ac_cv_header_soundcard_h" = xyes; then :
3836 cat >>confdefs.h <<_ACEOF
3837 #define HAVE_SOUNDCARD_H 1
3838 _ACEOF
3839 SOUND=sys/oss/oss.o ; CPPFLAGS="$CPPFLAGS -DHAVE_SOUNDCARD_H"
3840 else
3842 test "$with_sound" = "oss" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oss selected but required headers not found" >&5
3843 $as_echo "$as_me: WARNING: oss selected but required headers not found" >&2;}
3847 done
3852 done
3857 done
3862 for ac_header in linux/joystick.h
3863 do :
3864 ac_fn_c_check_header_mongrel "$LINENO" "linux/joystick.h" "ac_cv_header_linux_joystick_h" "$ac_includes_default"
3865 if test "x$ac_cv_header_linux_joystick_h" = xyes; then :
3866 cat >>confdefs.h <<_ACEOF
3867 #define HAVE_LINUX_JOYSTICK_H 1
3868 _ACEOF
3869 JOY=sys/linux/joy.o
3872 done
3874 test "$with_fb" = "no" || for ac_header in linux/fb.h
3875 do :
3876 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
3877 if test "x$ac_cv_header_linux_fb_h" = xyes; then :
3878 cat >>confdefs.h <<_ACEOF
3879 #define HAVE_LINUX_FB_H 1
3880 _ACEOF
3881 with_fb=linux
3884 done
3887 test "$SOUND" || SOUND=sys/dummy/nosound.o
3888 test "$JOY" || JOY=sys/dummy/nojoy.o
3895 case "$with_fb" in
3896 linux) FB_OBJS="sys/linux/fbdev.o sys/linux/kb.o sys/pc/keymap.o" ;;
3897 *) FB_OBJS="" ; with_fb=no ;;
3898 esac
3900 if test "$with_svgalib" != "no" ; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vga_init in -lvga" >&5
3902 $as_echo_n "checking for vga_init in -lvga... " >&6; }
3903 if ${ac_cv_lib_vga_vga_init+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 ac_check_lib_save_LIBS=$LIBS
3907 LIBS="-lvga $LIBS"
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3911 /* Override any GCC internal prototype to avoid an error.
3912 Use char because int might match the return type of a GCC
3913 builtin and then its argument prototype would still apply. */
3914 #ifdef __cplusplus
3915 extern "C"
3916 #endif
3917 char vga_init ();
3919 main ()
3921 return vga_init ();
3923 return 0;
3925 _ACEOF
3926 if ac_fn_c_try_link "$LINENO"; then :
3927 ac_cv_lib_vga_vga_init=yes
3928 else
3929 ac_cv_lib_vga_vga_init=no
3931 rm -f core conftest.err conftest.$ac_objext \
3932 conftest$ac_exeext conftest.$ac_ext
3933 LIBS=$ac_check_lib_save_LIBS
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vga_vga_init" >&5
3936 $as_echo "$ac_cv_lib_vga_vga_init" >&6; }
3937 if test "x$ac_cv_lib_vga_vga_init" = xyes; then :
3939 for ac_header in vga.h vgakeyboard.h
3940 do :
3941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3944 cat >>confdefs.h <<_ACEOF
3945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3946 _ACEOF
3948 else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: svgalib found but headers are missing!!" >&5
3951 $as_echo "$as_me: WARNING: svgalib found but headers are missing!!" >&2;}
3952 with_svgalib=no
3956 done
3958 else
3959 with_svgalib=no
3964 if test "$with_sdl2" != no ; then
3965 SDL2_LIBS=-lSDL2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL2" >&5
3967 $as_echo_n "checking for SDL_Init in -lSDL2... " >&6; }
3968 if ${ac_cv_lib_SDL2_SDL_Init+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 ac_check_lib_save_LIBS=$LIBS
3972 LIBS="-lSDL2 $SDL2_LIBS $LIBS"
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3976 /* Override any GCC internal prototype to avoid an error.
3977 Use char because int might match the return type of a GCC
3978 builtin and then its argument prototype would still apply. */
3979 #ifdef __cplusplus
3980 extern "C"
3981 #endif
3982 char SDL_Init ();
3984 main ()
3986 return SDL_Init ();
3988 return 0;
3990 _ACEOF
3991 if ac_fn_c_try_link "$LINENO"; then :
3992 ac_cv_lib_SDL2_SDL_Init=yes
3993 else
3994 ac_cv_lib_SDL2_SDL_Init=no
3996 rm -f core conftest.err conftest.$ac_objext \
3997 conftest$ac_exeext conftest.$ac_ext
3998 LIBS=$ac_check_lib_save_LIBS
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_SDL_Init" >&5
4001 $as_echo "$ac_cv_lib_SDL2_SDL_Init" >&6; }
4002 if test "x$ac_cv_lib_SDL2_SDL_Init" = xyes; then :
4004 for ac_header in SDL2/SDL.h
4005 do :
4006 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default"
4007 if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then :
4008 cat >>confdefs.h <<_ACEOF
4009 #define HAVE_SDL2_SDL_H 1
4010 _ACEOF
4012 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL2 found but headers are missing!!" >&5
4015 $as_echo "$as_me: WARNING: SDL2 found but headers are missing!!" >&2;}
4016 with_sdl2=no
4020 done
4022 else
4023 with_sdl2=no
4028 if test "$with_sdl" != "no" ; then
4029 # Extract the first word of "sdl-config", so it can be a program name with args.
4030 set dummy sdl-config; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_prog_SDL_CONFIG+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$SDL_CONFIG"; then
4037 ac_cv_prog_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_SDL_CONFIG="yes"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4050 done
4051 done
4052 IFS=$as_save_IFS
4056 SDL_CONFIG=$ac_cv_prog_SDL_CONFIG
4057 if test -n "$SDL_CONFIG"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
4059 $as_echo "$SDL_CONFIG" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4066 if test "$SDL_CONFIG" ; then
4067 SDL_LIBS="`sdl-config --libs`"
4068 SDL_CFLAGS="`sdl-config --cflags`"
4069 old_incs="$INCS"
4070 INCS="$INCS $SDL_CFLAGS"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
4072 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
4073 if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_check_lib_save_LIBS=$LIBS
4077 LIBS="-lSDL $SDL_LIBS $LIBS"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4081 /* Override any GCC internal prototype to avoid an error.
4082 Use char because int might match the return type of a GCC
4083 builtin and then its argument prototype would still apply. */
4084 #ifdef __cplusplus
4085 extern "C"
4086 #endif
4087 char SDL_Init ();
4089 main ()
4091 return SDL_Init ();
4093 return 0;
4095 _ACEOF
4096 if ac_fn_c_try_link "$LINENO"; then :
4097 ac_cv_lib_SDL_SDL_Init=yes
4098 else
4099 ac_cv_lib_SDL_SDL_Init=no
4101 rm -f core conftest.err conftest.$ac_objext \
4102 conftest$ac_exeext conftest.$ac_ext
4103 LIBS=$ac_check_lib_save_LIBS
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
4106 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
4107 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
4109 for ac_header in SDL/SDL.h
4110 do :
4111 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
4112 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
4113 cat >>confdefs.h <<_ACEOF
4114 #define HAVE_SDL_SDL_H 1
4115 _ACEOF
4117 else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL found but headers are missing!!" >&5
4120 $as_echo "$as_me: WARNING: SDL found but headers are missing!!" >&2;}
4121 with_sdl=no
4125 done
4127 else
4128 with_sdl=no
4131 INCS="$old_incs"
4132 else
4133 with_sdl=no
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4138 $as_echo_n "checking for X... " >&6; }
4141 # Check whether --with-x was given.
4142 if test "${with_x+set}" = set; then :
4143 withval=$with_x;
4146 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4147 if test "x$with_x" = xno; then
4148 # The user explicitly disabled X.
4149 have_x=disabled
4150 else
4151 case $x_includes,$x_libraries in #(
4152 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4153 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 # One or both of the vars are not set, and there is no cached value.
4157 ac_x_includes=no ac_x_libraries=no
4158 rm -f -r conftest.dir
4159 if mkdir conftest.dir; then
4160 cd conftest.dir
4161 cat >Imakefile <<'_ACEOF'
4162 incroot:
4163 @echo incroot='${INCROOT}'
4164 usrlibdir:
4165 @echo usrlibdir='${USRLIBDIR}'
4166 libdir:
4167 @echo libdir='${LIBDIR}'
4168 _ACEOF
4169 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4170 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4171 for ac_var in incroot usrlibdir libdir; do
4172 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4173 done
4174 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4175 for ac_extension in a so sl dylib la dll; do
4176 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4177 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4178 ac_im_usrlibdir=$ac_im_libdir; break
4180 done
4181 # Screen out bogus values from the imake configuration. They are
4182 # bogus both because they are the default anyway, and because
4183 # using them would break gcc on systems where it needs fixed includes.
4184 case $ac_im_incroot in
4185 /usr/include) ac_x_includes= ;;
4186 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4187 esac
4188 case $ac_im_usrlibdir in
4189 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4190 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4191 esac
4193 cd ..
4194 rm -f -r conftest.dir
4197 # Standard set of common directories for X headers.
4198 # Check X11 before X11Rn because it is often a symlink to the current release.
4199 ac_x_header_dirs='
4200 /usr/X11/include
4201 /usr/X11R7/include
4202 /usr/X11R6/include
4203 /usr/X11R5/include
4204 /usr/X11R4/include
4206 /usr/include/X11
4207 /usr/include/X11R7
4208 /usr/include/X11R6
4209 /usr/include/X11R5
4210 /usr/include/X11R4
4212 /usr/local/X11/include
4213 /usr/local/X11R7/include
4214 /usr/local/X11R6/include
4215 /usr/local/X11R5/include
4216 /usr/local/X11R4/include
4218 /usr/local/include/X11
4219 /usr/local/include/X11R7
4220 /usr/local/include/X11R6
4221 /usr/local/include/X11R5
4222 /usr/local/include/X11R4
4224 /usr/X386/include
4225 /usr/x386/include
4226 /usr/XFree86/include/X11
4228 /usr/include
4229 /usr/local/include
4230 /usr/unsupported/include
4231 /usr/athena/include
4232 /usr/local/x11r5/include
4233 /usr/lpp/Xamples/include
4235 /usr/openwin/include
4236 /usr/openwin/share/include'
4238 if test "$ac_x_includes" = no; then
4239 # Guess where to find include files, by looking for Xlib.h.
4240 # First, try using that file with no special directory specified.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <X11/Xlib.h>
4244 _ACEOF
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4246 # We can compile using X headers with no special include directory.
4247 ac_x_includes=
4248 else
4249 for ac_dir in $ac_x_header_dirs; do
4250 if test -r "$ac_dir/X11/Xlib.h"; then
4251 ac_x_includes=$ac_dir
4252 break
4254 done
4256 rm -f conftest.err conftest.i conftest.$ac_ext
4257 fi # $ac_x_includes = no
4259 if test "$ac_x_libraries" = no; then
4260 # Check for the libraries.
4261 # See if we find them without any special options.
4262 # Don't add to $LIBS permanently.
4263 ac_save_LIBS=$LIBS
4264 LIBS="-lX11 $LIBS"
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #include <X11/Xlib.h>
4269 main ()
4271 XrmInitialize ()
4273 return 0;
4275 _ACEOF
4276 if ac_fn_c_try_link "$LINENO"; then :
4277 LIBS=$ac_save_LIBS
4278 # We can link X programs with no special library path.
4279 ac_x_libraries=
4280 else
4281 LIBS=$ac_save_LIBS
4282 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4284 # Don't even attempt the hair of trying to link an X program!
4285 for ac_extension in a so sl dylib la dll; do
4286 if test -r "$ac_dir/libX11.$ac_extension"; then
4287 ac_x_libraries=$ac_dir
4288 break 2
4290 done
4291 done
4293 rm -f core conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
4295 fi # $ac_x_libraries = no
4297 case $ac_x_includes,$ac_x_libraries in #(
4298 no,* | *,no | *\'*)
4299 # Didn't find X, or a directory has "'" in its name.
4300 ac_cv_have_x="have_x=no";; #(
4302 # Record where we found X for the cache.
4303 ac_cv_have_x="have_x=yes\
4304 ac_x_includes='$ac_x_includes'\
4305 ac_x_libraries='$ac_x_libraries'"
4306 esac
4308 ;; #(
4309 *) have_x=yes;;
4310 esac
4311 eval "$ac_cv_have_x"
4312 fi # $with_x != no
4314 if test "$have_x" != yes; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4316 $as_echo "$have_x" >&6; }
4317 no_x=yes
4318 else
4319 # If each of the values was on the command line, it overrides each guess.
4320 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4321 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4322 # Update the cache value to reflect the command line values.
4323 ac_cv_have_x="have_x=yes\
4324 ac_x_includes='$x_includes'\
4325 ac_x_libraries='$x_libraries'"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4327 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4332 if test "$no_x" != "yes" ; then
4333 with_x=yes
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5
4335 $as_echo_n "checking for XShmCreateImage in -lXext... " >&6; }
4336 if ${ac_cv_lib_Xext_XShmCreateImage+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 ac_check_lib_save_LIBS=$LIBS
4340 LIBS="-lXext $LIBS"
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4344 /* Override any GCC internal prototype to avoid an error.
4345 Use char because int might match the return type of a GCC
4346 builtin and then its argument prototype would still apply. */
4347 #ifdef __cplusplus
4348 extern "C"
4349 #endif
4350 char XShmCreateImage ();
4352 main ()
4354 return XShmCreateImage ();
4356 return 0;
4358 _ACEOF
4359 if ac_fn_c_try_link "$LINENO"; then :
4360 ac_cv_lib_Xext_XShmCreateImage=yes
4361 else
4362 ac_cv_lib_Xext_XShmCreateImage=no
4364 rm -f core conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4366 LIBS=$ac_check_lib_save_LIBS
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
4369 $as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; }
4370 if test "x$ac_cv_lib_Xext_XShmCreateImage" = xyes; then :
4371 $as_echo "#define HAVE_LIBXEXT 1" >>confdefs.h
4375 for ac_header in sys/ipc.h sys/shm.h X11/Xlib.h X11/Xutil.h X11/keysym.h X11/extensions/XShm.h
4376 do :
4377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4379 #include <X11/Xlib.h>
4380 #include <X11/Xutil.h>
4381 #include <X11/keysym.h>
4382 #define _SVID_SOURCE
4383 #define _XOPEN_SOURCE
4386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4387 cat >>confdefs.h <<_ACEOF
4388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 _ACEOF
4393 done
4395 test "$x_includes" && XINCS="-I$x_includes"
4396 test "$x_libraries" && XLIBS="-L$x_libraries"
4397 else
4398 with_x=no
4403 test "$with_x" = "no" || TARGETS="$TARGETS xgnuboy"
4404 test "$with_fb" = "no" || TARGETS="$TARGETS fbgnuboy"
4405 test "$with_svgalib" = "no" || TARGETS="$TARGETS sgnuboy"
4406 test "$with_sdl" = "no" || TARGETS="$TARGETS sdlgnuboy"
4407 test "$with_sdl2" = "no" || TARGETS="$TARGETS sdl2gnuboy"
4418 # Check whether --enable-warnings was given.
4419 if test "${enable_warnings+set}" = set; then :
4420 enableval=$enable_warnings;
4421 else
4422 enable_warnings=yes
4425 # Check whether --enable-debug was given.
4426 if test "${enable_debug+set}" = set; then :
4427 enableval=$enable_debug;
4430 # Check whether --enable-profile was given.
4431 if test "${enable_profile+set}" = set; then :
4432 enableval=$enable_profile;
4435 # Check whether --enable-arch was given.
4436 if test "${enable_arch+set}" = set; then :
4437 enableval=$enable_arch;
4438 else
4439 enable_arch=no
4442 # Check whether --enable-optimize was given.
4443 if test "${enable_optimize+set}" = set; then :
4444 enableval=$enable_optimize;
4445 else
4446 enable_optimize=yes
4449 # Check whether --enable-asm was given.
4450 if test "${enable_asm+set}" = set; then :
4451 enableval=$enable_asm;
4452 else
4453 enable_asm=yes
4458 if test "$enable_warnings" = yes ; then
4459 case "$CC" in *gcc*)
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling selected compiler warnings" >&5
4461 $as_echo "enabling selected compiler warnings" >&6; }
4462 CFLAGS="$CFLAGS -ansi -pedantic -Wall" ;;
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warnings for non-gcc compiler" >&5
4465 $as_echo "disabling warnings for non-gcc compiler" >&6; } ;;
4466 esac
4469 if test "$enable_debug" = yes ; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: including debugging symbols" >&5
4471 $as_echo "including debugging symbols" >&6; }
4472 CFLAGS="$CFLAGS -g"
4475 if test "$enable_profile" = yes ; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling performance profiling" >&5
4477 $as_echo "enabling performance profiling" >&6; }
4478 CFLAGS="$CFLAGS -pg"
4481 if test "$enable_arch" = yes ; then
4482 CFLAGS="$CFLAGS -march=native"
4485 case "$enable_optimize" in
4486 yes|full)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: producing heavily optimized code" >&5
4488 $as_echo "producing heavily optimized code" >&6; }
4490 CFLAGS="$CFLAGS -O3"
4492 case `$CC -dumpmachine` in
4493 x86_64*|i?86*) CFLAGS="$CFLAGS -DALLOW_UNALIGNED_IO" ;;
4494 esac
4496 CFLAGS="$CFLAGS -fstrength-reduce -fthread-jumps \
4497 -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \
4498 -fexpensive-optimizations -fforce-addr"
4500 if test "$enable_debug" != yes -a "$enable_profile" != yes ; then
4501 CFLAGS="$CFLAGS -fomit-frame-pointer"
4502 LDFLAGS="$LDFLAGS -s"
4503 fi ;;
4505 low)
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using minimal optimizations" >&5
4508 $as_echo "using minimal optimizations" >&6; }
4509 CFLAGS="$CFLAGS -O3" ;;
4511 esac
4513 if test "$enable_asm" = yes ; then
4514 case `$CC -dumpmachine` in
4515 i?86*)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using optimized i386 cores" >&5
4517 $as_echo "using optimized i386 cores" >&6; }
4518 ASM="-DUSE_ASM -I./asm/i386" ; ASM_OBJS="asm/i386/cpu.o asm/i386/lcd.o asm/i386/refresh.s" ;;
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no optimized asm core available for \`$CC -dumpmachine\`" >&5
4521 $as_echo "no optimized asm core available for \`$CC -dumpmachine\`" >&6; } ;;
4522 esac
4540 ac_config_headers="$ac_config_headers sys/nix/config.h"
4542 ac_config_files="$ac_config_files Makefile"
4544 cat >confcache <<\_ACEOF
4545 # This file is a shell script that caches the results of configure
4546 # tests run on this system so they can be shared between configure
4547 # scripts and configure runs, see configure's option --config-cache.
4548 # It is not useful on other systems. If it contains results you don't
4549 # want to keep, you may remove or edit it.
4551 # config.status only pays attention to the cache file if you give it
4552 # the --recheck option to rerun configure.
4554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4556 # following values.
4558 _ACEOF
4560 # The following way of writing the cache mishandles newlines in values,
4561 # but we know of no workaround that is simple, portable, and efficient.
4562 # So, we kill variables containing newlines.
4563 # Ultrix sh set writes to stderr and can't be redirected directly,
4564 # and sets the high bit in the cache file unless we assign to the vars.
4566 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4567 eval ac_val=\$$ac_var
4568 case $ac_val in #(
4569 *${as_nl}*)
4570 case $ac_var in #(
4571 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4572 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4573 esac
4574 case $ac_var in #(
4575 _ | IFS | as_nl) ;; #(
4576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4577 *) { eval $ac_var=; unset $ac_var;} ;;
4578 esac ;;
4579 esac
4580 done
4582 (set) 2>&1 |
4583 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4584 *${as_nl}ac_space=\ *)
4585 # `set' does not quote correctly, so add quotes: double-quote
4586 # substitution turns \\\\ into \\, and sed turns \\ into \.
4587 sed -n \
4588 "s/'/'\\\\''/g;
4589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4590 ;; #(
4592 # `set' quotes correctly as required by POSIX, so do not add quotes.
4593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4595 esac |
4596 sort
4598 sed '
4599 /^ac_cv_env_/b end
4600 t clear
4601 :clear
4602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4603 t end
4604 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4605 :end' >>confcache
4606 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4607 if test -w "$cache_file"; then
4608 if test "x$cache_file" != "x/dev/null"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4610 $as_echo "$as_me: updating cache $cache_file" >&6;}
4611 if test ! -f "$cache_file" || test -h "$cache_file"; then
4612 cat confcache >"$cache_file"
4613 else
4614 case $cache_file in #(
4615 */* | ?:*)
4616 mv -f confcache "$cache_file"$$ &&
4617 mv -f "$cache_file"$$ "$cache_file" ;; #(
4619 mv -f confcache "$cache_file" ;;
4620 esac
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4625 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4628 rm -f confcache
4630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4631 # Let make expand exec_prefix.
4632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4634 DEFS=-DHAVE_CONFIG_H
4636 ac_libobjs=
4637 ac_ltlibobjs=
4639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4640 # 1. Remove the extension, and $U if already installed.
4641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4644 # will be set to the directory where LIBOBJS objects are built.
4645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4647 done
4648 LIBOBJS=$ac_libobjs
4650 LTLIBOBJS=$ac_ltlibobjs
4655 : "${CONFIG_STATUS=./config.status}"
4656 ac_write_fail=0
4657 ac_clean_files_save=$ac_clean_files
4658 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4660 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4661 as_write_fail=0
4662 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4663 #! $SHELL
4664 # Generated by $as_me.
4665 # Run this file to recreate the current configuration.
4666 # Compiler output produced by configure, useful for debugging
4667 # configure, is in config.log if it exists.
4669 debug=false
4670 ac_cs_recheck=false
4671 ac_cs_silent=false
4673 SHELL=\${CONFIG_SHELL-$SHELL}
4674 export SHELL
4675 _ASEOF
4676 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4677 ## -------------------- ##
4678 ## M4sh Initialization. ##
4679 ## -------------------- ##
4681 # Be more Bourne compatible
4682 DUALCASE=1; export DUALCASE # for MKS sh
4683 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4684 emulate sh
4685 NULLCMD=:
4686 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4687 # is contrary to our usage. Disable this feature.
4688 alias -g '${1+"$@"}'='"$@"'
4689 setopt NO_GLOB_SUBST
4690 else
4691 case `(set -o) 2>/dev/null` in #(
4692 *posix*) :
4693 set -o posix ;; #(
4694 *) :
4696 esac
4700 as_nl='
4702 export as_nl
4703 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4704 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4707 # Prefer a ksh shell builtin over an external printf program on Solaris,
4708 # but without wasting forks for bash or zsh.
4709 if test -z "$BASH_VERSION$ZSH_VERSION" \
4710 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4711 as_echo='print -r --'
4712 as_echo_n='print -rn --'
4713 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4714 as_echo='printf %s\n'
4715 as_echo_n='printf %s'
4716 else
4717 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4718 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4719 as_echo_n='/usr/ucb/echo -n'
4720 else
4721 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4722 as_echo_n_body='eval
4723 arg=$1;
4724 case $arg in #(
4725 *"$as_nl"*)
4726 expr "X$arg" : "X\\(.*\\)$as_nl";
4727 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4728 esac;
4729 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4731 export as_echo_n_body
4732 as_echo_n='sh -c $as_echo_n_body as_echo'
4734 export as_echo_body
4735 as_echo='sh -c $as_echo_body as_echo'
4738 # The user is always right.
4739 if test "${PATH_SEPARATOR+set}" != set; then
4740 PATH_SEPARATOR=:
4741 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4742 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4743 PATH_SEPARATOR=';'
4748 # IFS
4749 # We need space, tab and new line, in precisely that order. Quoting is
4750 # there to prevent editors from complaining about space-tab.
4751 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4752 # splitting by setting IFS to empty value.)
4753 IFS=" "" $as_nl"
4755 # Find who we are. Look in the path if we contain no directory separator.
4756 as_myself=
4757 case $0 in #((
4758 *[\\/]* ) as_myself=$0 ;;
4759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4765 done
4766 IFS=$as_save_IFS
4769 esac
4770 # We did not find ourselves, most probably we were run as `sh COMMAND'
4771 # in which case we are not to be found in the path.
4772 if test "x$as_myself" = x; then
4773 as_myself=$0
4775 if test ! -f "$as_myself"; then
4776 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4777 exit 1
4780 # Unset variables that we do not need and which cause bugs (e.g. in
4781 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4782 # suppresses any "Segmentation fault" message there. '((' could
4783 # trigger a bug in pdksh 5.2.14.
4784 for as_var in BASH_ENV ENV MAIL MAILPATH
4785 do eval test x\${$as_var+set} = xset \
4786 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4787 done
4788 PS1='$ '
4789 PS2='> '
4790 PS4='+ '
4792 # NLS nuisances.
4793 LC_ALL=C
4794 export LC_ALL
4795 LANGUAGE=C
4796 export LANGUAGE
4798 # CDPATH.
4799 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4802 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4803 # ----------------------------------------
4804 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4805 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4806 # script with STATUS, using 1 if that was 0.
4807 as_fn_error ()
4809 as_status=$1; test $as_status -eq 0 && as_status=1
4810 if test "$4"; then
4811 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4812 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4814 $as_echo "$as_me: error: $2" >&2
4815 as_fn_exit $as_status
4816 } # as_fn_error
4819 # as_fn_set_status STATUS
4820 # -----------------------
4821 # Set $? to STATUS, without forking.
4822 as_fn_set_status ()
4824 return $1
4825 } # as_fn_set_status
4827 # as_fn_exit STATUS
4828 # -----------------
4829 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4830 as_fn_exit ()
4832 set +e
4833 as_fn_set_status $1
4834 exit $1
4835 } # as_fn_exit
4837 # as_fn_unset VAR
4838 # ---------------
4839 # Portably unset VAR.
4840 as_fn_unset ()
4842 { eval $1=; unset $1;}
4844 as_unset=as_fn_unset
4845 # as_fn_append VAR VALUE
4846 # ----------------------
4847 # Append the text in VALUE to the end of the definition contained in VAR. Take
4848 # advantage of any shell optimizations that allow amortized linear growth over
4849 # repeated appends, instead of the typical quadratic growth present in naive
4850 # implementations.
4851 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4852 eval 'as_fn_append ()
4854 eval $1+=\$2
4856 else
4857 as_fn_append ()
4859 eval $1=\$$1\$2
4861 fi # as_fn_append
4863 # as_fn_arith ARG...
4864 # ------------------
4865 # Perform arithmetic evaluation on the ARGs, and store the result in the
4866 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4867 # must be portable across $(()) and expr.
4868 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4869 eval 'as_fn_arith ()
4871 as_val=$(( $* ))
4873 else
4874 as_fn_arith ()
4876 as_val=`expr "$@" || test $? -eq 1`
4878 fi # as_fn_arith
4881 if expr a : '\(a\)' >/dev/null 2>&1 &&
4882 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4883 as_expr=expr
4884 else
4885 as_expr=false
4888 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4889 as_basename=basename
4890 else
4891 as_basename=false
4894 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4895 as_dirname=dirname
4896 else
4897 as_dirname=false
4900 as_me=`$as_basename -- "$0" ||
4901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4902 X"$0" : 'X\(//\)$' \| \
4903 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4904 $as_echo X/"$0" |
4905 sed '/^.*\/\([^/][^/]*\)\/*$/{
4906 s//\1/
4909 /^X\/\(\/\/\)$/{
4910 s//\1/
4913 /^X\/\(\/\).*/{
4914 s//\1/
4917 s/.*/./; q'`
4919 # Avoid depending upon Character Ranges.
4920 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4921 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4922 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4923 as_cr_digits='0123456789'
4924 as_cr_alnum=$as_cr_Letters$as_cr_digits
4926 ECHO_C= ECHO_N= ECHO_T=
4927 case `echo -n x` in #(((((
4928 -n*)
4929 case `echo 'xy\c'` in
4930 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4931 xy) ECHO_C='\c';;
4932 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4933 ECHO_T=' ';;
4934 esac;;
4936 ECHO_N='-n';;
4937 esac
4939 rm -f conf$$ conf$$.exe conf$$.file
4940 if test -d conf$$.dir; then
4941 rm -f conf$$.dir/conf$$.file
4942 else
4943 rm -f conf$$.dir
4944 mkdir conf$$.dir 2>/dev/null
4946 if (echo >conf$$.file) 2>/dev/null; then
4947 if ln -s conf$$.file conf$$ 2>/dev/null; then
4948 as_ln_s='ln -s'
4949 # ... but there are two gotchas:
4950 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4951 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4952 # In both cases, we have to default to `cp -pR'.
4953 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4954 as_ln_s='cp -pR'
4955 elif ln conf$$.file conf$$ 2>/dev/null; then
4956 as_ln_s=ln
4957 else
4958 as_ln_s='cp -pR'
4960 else
4961 as_ln_s='cp -pR'
4963 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4964 rmdir conf$$.dir 2>/dev/null
4967 # as_fn_mkdir_p
4968 # -------------
4969 # Create "$as_dir" as a directory, including parents if necessary.
4970 as_fn_mkdir_p ()
4973 case $as_dir in #(
4974 -*) as_dir=./$as_dir;;
4975 esac
4976 test -d "$as_dir" || eval $as_mkdir_p || {
4977 as_dirs=
4978 while :; do
4979 case $as_dir in #(
4980 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4981 *) as_qdir=$as_dir;;
4982 esac
4983 as_dirs="'$as_qdir' $as_dirs"
4984 as_dir=`$as_dirname -- "$as_dir" ||
4985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4986 X"$as_dir" : 'X\(//\)[^/]' \| \
4987 X"$as_dir" : 'X\(//\)$' \| \
4988 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4989 $as_echo X"$as_dir" |
4990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4991 s//\1/
4994 /^X\(\/\/\)[^/].*/{
4995 s//\1/
4998 /^X\(\/\/\)$/{
4999 s//\1/
5002 /^X\(\/\).*/{
5003 s//\1/
5006 s/.*/./; q'`
5007 test -d "$as_dir" && break
5008 done
5009 test -z "$as_dirs" || eval "mkdir $as_dirs"
5010 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5013 } # as_fn_mkdir_p
5014 if mkdir -p . 2>/dev/null; then
5015 as_mkdir_p='mkdir -p "$as_dir"'
5016 else
5017 test -d ./-p && rmdir ./-p
5018 as_mkdir_p=false
5022 # as_fn_executable_p FILE
5023 # -----------------------
5024 # Test if FILE is an executable regular file.
5025 as_fn_executable_p ()
5027 test -f "$1" && test -x "$1"
5028 } # as_fn_executable_p
5029 as_test_x='test -x'
5030 as_executable_p=as_fn_executable_p
5032 # Sed expression to map a string onto a valid CPP name.
5033 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5035 # Sed expression to map a string onto a valid variable name.
5036 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5039 exec 6>&1
5040 ## ----------------------------------- ##
5041 ## Main body of $CONFIG_STATUS script. ##
5042 ## ----------------------------------- ##
5043 _ASEOF
5044 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5047 # Save the log message, to keep $0 and so on meaningful, and to
5048 # report actual input values of CONFIG_FILES etc. instead of their
5049 # values after options handling.
5050 ac_log="
5051 This file was extended by $as_me, which was
5052 generated by GNU Autoconf 2.69. Invocation command line was
5054 CONFIG_FILES = $CONFIG_FILES
5055 CONFIG_HEADERS = $CONFIG_HEADERS
5056 CONFIG_LINKS = $CONFIG_LINKS
5057 CONFIG_COMMANDS = $CONFIG_COMMANDS
5058 $ $0 $@
5060 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5063 _ACEOF
5065 case $ac_config_files in *"
5066 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5067 esac
5069 case $ac_config_headers in *"
5070 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5071 esac
5074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5075 # Files that config.status was made for.
5076 config_files="$ac_config_files"
5077 config_headers="$ac_config_headers"
5079 _ACEOF
5081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5082 ac_cs_usage="\
5083 \`$as_me' instantiates files and other configuration actions
5084 from templates according to the current configuration. Unless the files
5085 and actions are specified as TAGs, all are instantiated by default.
5087 Usage: $0 [OPTION]... [TAG]...
5089 -h, --help print this help, then exit
5090 -V, --version print version number and configuration settings, then exit
5091 --config print configuration, then exit
5092 -q, --quiet, --silent
5093 do not print progress messages
5094 -d, --debug don't remove temporary files
5095 --recheck update $as_me by reconfiguring in the same conditions
5096 --file=FILE[:TEMPLATE]
5097 instantiate the configuration file FILE
5098 --header=FILE[:TEMPLATE]
5099 instantiate the configuration header FILE
5101 Configuration files:
5102 $config_files
5104 Configuration headers:
5105 $config_headers
5107 Report bugs to the package provider."
5109 _ACEOF
5110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5111 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5112 ac_cs_version="\\
5113 config.status
5114 configured by $0, generated by GNU Autoconf 2.69,
5115 with options \\"\$ac_cs_config\\"
5117 Copyright (C) 2012 Free Software Foundation, Inc.
5118 This config.status script is free software; the Free Software Foundation
5119 gives unlimited permission to copy, distribute and modify it."
5121 ac_pwd='$ac_pwd'
5122 srcdir='$srcdir'
5123 INSTALL='$INSTALL'
5124 test -n "\$AWK" || AWK=awk
5125 _ACEOF
5127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5128 # The default lists apply if the user does not specify any file.
5129 ac_need_defaults=:
5130 while test $# != 0
5132 case $1 in
5133 --*=?*)
5134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5136 ac_shift=:
5138 --*=)
5139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5140 ac_optarg=
5141 ac_shift=:
5144 ac_option=$1
5145 ac_optarg=$2
5146 ac_shift=shift
5148 esac
5150 case $ac_option in
5151 # Handling of the options.
5152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5153 ac_cs_recheck=: ;;
5154 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5155 $as_echo "$ac_cs_version"; exit ;;
5156 --config | --confi | --conf | --con | --co | --c )
5157 $as_echo "$ac_cs_config"; exit ;;
5158 --debug | --debu | --deb | --de | --d | -d )
5159 debug=: ;;
5160 --file | --fil | --fi | --f )
5161 $ac_shift
5162 case $ac_optarg in
5163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5164 '') as_fn_error $? "missing file argument" ;;
5165 esac
5166 as_fn_append CONFIG_FILES " '$ac_optarg'"
5167 ac_need_defaults=false;;
5168 --header | --heade | --head | --hea )
5169 $ac_shift
5170 case $ac_optarg in
5171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5172 esac
5173 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5174 ac_need_defaults=false;;
5175 --he | --h)
5176 # Conflict between --help and --header
5177 as_fn_error $? "ambiguous option: \`$1'
5178 Try \`$0 --help' for more information.";;
5179 --help | --hel | -h )
5180 $as_echo "$ac_cs_usage"; exit ;;
5181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5183 ac_cs_silent=: ;;
5185 # This is an error.
5186 -*) as_fn_error $? "unrecognized option: \`$1'
5187 Try \`$0 --help' for more information." ;;
5189 *) as_fn_append ac_config_targets " $1"
5190 ac_need_defaults=false ;;
5192 esac
5193 shift
5194 done
5196 ac_configure_extra_args=
5198 if $ac_cs_silent; then
5199 exec 6>/dev/null
5200 ac_configure_extra_args="$ac_configure_extra_args --silent"
5203 _ACEOF
5204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5205 if \$ac_cs_recheck; then
5206 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5207 shift
5208 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5209 CONFIG_SHELL='$SHELL'
5210 export CONFIG_SHELL
5211 exec "\$@"
5214 _ACEOF
5215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5216 exec 5>>config.log
5218 echo
5219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5220 ## Running $as_me. ##
5221 _ASBOX
5222 $as_echo "$ac_log"
5223 } >&5
5225 _ACEOF
5226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5227 _ACEOF
5229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5231 # Handling of arguments.
5232 for ac_config_target in $ac_config_targets
5234 case $ac_config_target in
5235 "sys/nix/config.h") CONFIG_HEADERS="$CONFIG_HEADERS sys/nix/config.h" ;;
5236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5238 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5239 esac
5240 done
5243 # If the user did not use the arguments to specify the items to instantiate,
5244 # then the envvar interface is used. Set only those that are not.
5245 # We use the long form for the default assignment because of an extremely
5246 # bizarre bug on SunOS 4.1.3.
5247 if $ac_need_defaults; then
5248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5252 # Have a temporary directory for convenience. Make it in the build tree
5253 # simply because there is no reason against having it here, and in addition,
5254 # creating and moving files from /tmp can sometimes cause problems.
5255 # Hook for its removal unless debugging.
5256 # Note that there is a small window in which the directory will not be cleaned:
5257 # after its creation but before its name has been assigned to `$tmp'.
5258 $debug ||
5260 tmp= ac_tmp=
5261 trap 'exit_status=$?
5262 : "${ac_tmp:=$tmp}"
5263 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5265 trap 'as_fn_exit 1' 1 2 13 15
5267 # Create a (secure) tmp directory for tmp files.
5270 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5271 test -d "$tmp"
5272 } ||
5274 tmp=./conf$$-$RANDOM
5275 (umask 077 && mkdir "$tmp")
5276 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5277 ac_tmp=$tmp
5279 # Set up the scripts for CONFIG_FILES section.
5280 # No need to generate them if there are no CONFIG_FILES.
5281 # This happens for instance with `./config.status config.h'.
5282 if test -n "$CONFIG_FILES"; then
5285 ac_cr=`echo X | tr X '\015'`
5286 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5287 # But we know of no other shell where ac_cr would be empty at this
5288 # point, so we can use a bashism as a fallback.
5289 if test "x$ac_cr" = x; then
5290 eval ac_cr=\$\'\\r\'
5292 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5293 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5294 ac_cs_awk_cr='\\r'
5295 else
5296 ac_cs_awk_cr=$ac_cr
5299 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5300 _ACEOF
5304 echo "cat >conf$$subs.awk <<_ACEOF" &&
5305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5306 echo "_ACEOF"
5307 } >conf$$subs.sh ||
5308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5309 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5310 ac_delim='%!_!# '
5311 for ac_last_try in false false false false false :; do
5312 . ./conf$$subs.sh ||
5313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5316 if test $ac_delim_n = $ac_delim_num; then
5317 break
5318 elif $ac_last_try; then
5319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5320 else
5321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5323 done
5324 rm -f conf$$subs.sh
5326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5327 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5328 _ACEOF
5329 sed -n '
5331 s/^/S["/; s/!.*/"]=/
5334 s/^[^!]*!//
5335 :repl
5336 t repl
5337 s/'"$ac_delim"'$//
5338 t delim
5341 s/\(.\{148\}\)..*/\1/
5342 t more1
5343 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5346 b repl
5347 :more1
5348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5351 s/.\{148\}//
5352 t nl
5353 :delim
5355 s/\(.\{148\}\)..*/\1/
5356 t more2
5357 s/["\\]/\\&/g; s/^/"/; s/$/"/
5360 :more2
5361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5364 s/.\{148\}//
5365 t delim
5366 ' <conf$$subs.awk | sed '
5367 /^[^""]/{
5369 s/\n//
5371 ' >>$CONFIG_STATUS || ac_write_fail=1
5372 rm -f conf$$subs.awk
5373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5374 _ACAWK
5375 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5376 for (key in S) S_is_set[key] = 1
5377 FS = "\a"
5381 line = $ 0
5382 nfields = split(line, field, "@")
5383 substed = 0
5384 len = length(field[1])
5385 for (i = 2; i < nfields; i++) {
5386 key = field[i]
5387 keylen = length(key)
5388 if (S_is_set[key]) {
5389 value = S[key]
5390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5391 len += length(value) + length(field[++i])
5392 substed = 1
5393 } else
5394 len += 1 + keylen
5397 print line
5400 _ACAWK
5401 _ACEOF
5402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5403 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5405 else
5407 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5409 _ACEOF
5411 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5412 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5413 # trailing colons and then remove the whole line if VPATH becomes empty
5414 # (actually we leave an empty line to preserve line numbers).
5415 if test "x$srcdir" = x.; then
5416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5418 s///
5419 s/^/:/
5420 s/[ ]*$/:/
5421 s/:\$(srcdir):/:/g
5422 s/:\${srcdir}:/:/g
5423 s/:@srcdir@:/:/g
5424 s/^:*//
5425 s/:*$//
5427 s/\(=[ ]*\).*/\1/
5429 s/\n//
5430 s/^[^=]*=[ ]*$//
5434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5435 fi # test -n "$CONFIG_FILES"
5437 # Set up the scripts for CONFIG_HEADERS section.
5438 # No need to generate them if there are no CONFIG_HEADERS.
5439 # This happens for instance with `./config.status Makefile'.
5440 if test -n "$CONFIG_HEADERS"; then
5441 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5442 BEGIN {
5443 _ACEOF
5445 # Transform confdefs.h into an awk script `defines.awk', embedded as
5446 # here-document in config.status, that substitutes the proper values into
5447 # config.h.in to produce config.h.
5449 # Create a delimiter string that does not exist in confdefs.h, to ease
5450 # handling of long lines.
5451 ac_delim='%!_!# '
5452 for ac_last_try in false false :; do
5453 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5454 if test -z "$ac_tt"; then
5455 break
5456 elif $ac_last_try; then
5457 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5458 else
5459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5461 done
5463 # For the awk script, D is an array of macro values keyed by name,
5464 # likewise P contains macro parameters if any. Preserve backslash
5465 # newline sequences.
5467 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5468 sed -n '
5469 s/.\{148\}/&'"$ac_delim"'/g
5470 t rset
5471 :rset
5472 s/^[ ]*#[ ]*define[ ][ ]*/ /
5473 t def
5475 :def
5476 s/\\$//
5477 t bsnl
5478 s/["\\]/\\&/g
5479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5480 D["\1"]=" \3"/p
5481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5483 :bsnl
5484 s/["\\]/\\&/g
5485 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5486 D["\1"]=" \3\\\\\\n"\\/p
5487 t cont
5488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5489 t cont
5491 :cont
5493 s/.\{148\}/&'"$ac_delim"'/g
5494 t clear
5495 :clear
5496 s/\\$//
5497 t bsnlc
5498 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5500 :bsnlc
5501 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5502 b cont
5503 ' <confdefs.h | sed '
5504 s/'"$ac_delim"'/"\\\
5505 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5508 for (key in D) D_is_set[key] = 1
5509 FS = "\a"
5511 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5512 line = \$ 0
5513 split(line, arg, " ")
5514 if (arg[1] == "#") {
5515 defundef = arg[2]
5516 mac1 = arg[3]
5517 } else {
5518 defundef = substr(arg[1], 2)
5519 mac1 = arg[2]
5521 split(mac1, mac2, "(") #)
5522 macro = mac2[1]
5523 prefix = substr(line, 1, index(line, defundef) - 1)
5524 if (D_is_set[macro]) {
5525 # Preserve the white space surrounding the "#".
5526 print prefix "define", macro P[macro] D[macro]
5527 next
5528 } else {
5529 # Replace #undef with comments. This is necessary, for example,
5530 # in the case of _POSIX_SOURCE, which is predefined and required
5531 # on some systems where configure will not decide to define it.
5532 if (defundef == "undef") {
5533 print "/*", prefix defundef, macro, "*/"
5534 next
5538 { print }
5539 _ACAWK
5540 _ACEOF
5541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5542 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5543 fi # test -n "$CONFIG_HEADERS"
5546 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5547 shift
5548 for ac_tag
5550 case $ac_tag in
5551 :[FHLC]) ac_mode=$ac_tag; continue;;
5552 esac
5553 case $ac_mode$ac_tag in
5554 :[FHL]*:*);;
5555 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5556 :[FH]-) ac_tag=-:-;;
5557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5558 esac
5559 ac_save_IFS=$IFS
5560 IFS=:
5561 set x $ac_tag
5562 IFS=$ac_save_IFS
5563 shift
5564 ac_file=$1
5565 shift
5567 case $ac_mode in
5568 :L) ac_source=$1;;
5569 :[FH])
5570 ac_file_inputs=
5571 for ac_f
5573 case $ac_f in
5574 -) ac_f="$ac_tmp/stdin";;
5575 *) # Look for the file first in the build tree, then in the source tree
5576 # (if the path is not absolute). The absolute path cannot be DOS-style,
5577 # because $ac_f cannot contain `:'.
5578 test -f "$ac_f" ||
5579 case $ac_f in
5580 [\\/$]*) false;;
5581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5582 esac ||
5583 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5584 esac
5585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5586 as_fn_append ac_file_inputs " '$ac_f'"
5587 done
5589 # Let's still pretend it is `configure' which instantiates (i.e., don't
5590 # use $as_me), people would be surprised to read:
5591 # /* config.h. Generated by config.status. */
5592 configure_input='Generated from '`
5593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5594 `' by configure.'
5595 if test x"$ac_file" != x-; then
5596 configure_input="$ac_file. $configure_input"
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5598 $as_echo "$as_me: creating $ac_file" >&6;}
5600 # Neutralize special characters interpreted by sed in replacement strings.
5601 case $configure_input in #(
5602 *\&* | *\|* | *\\* )
5603 ac_sed_conf_input=`$as_echo "$configure_input" |
5604 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5605 *) ac_sed_conf_input=$configure_input;;
5606 esac
5608 case $ac_tag in
5609 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5611 esac
5613 esac
5615 ac_dir=`$as_dirname -- "$ac_file" ||
5616 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5617 X"$ac_file" : 'X\(//\)[^/]' \| \
5618 X"$ac_file" : 'X\(//\)$' \| \
5619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5620 $as_echo X"$ac_file" |
5621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5622 s//\1/
5625 /^X\(\/\/\)[^/].*/{
5626 s//\1/
5629 /^X\(\/\/\)$/{
5630 s//\1/
5633 /^X\(\/\).*/{
5634 s//\1/
5637 s/.*/./; q'`
5638 as_dir="$ac_dir"; as_fn_mkdir_p
5639 ac_builddir=.
5641 case "$ac_dir" in
5642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5645 # A ".." for each directory in $ac_dir_suffix.
5646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5647 case $ac_top_builddir_sub in
5648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5650 esac ;;
5651 esac
5652 ac_abs_top_builddir=$ac_pwd
5653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5654 # for backward compatibility:
5655 ac_top_builddir=$ac_top_build_prefix
5657 case $srcdir in
5658 .) # We are building in place.
5659 ac_srcdir=.
5660 ac_top_srcdir=$ac_top_builddir_sub
5661 ac_abs_top_srcdir=$ac_pwd ;;
5662 [\\/]* | ?:[\\/]* ) # Absolute name.
5663 ac_srcdir=$srcdir$ac_dir_suffix;
5664 ac_top_srcdir=$srcdir
5665 ac_abs_top_srcdir=$srcdir ;;
5666 *) # Relative name.
5667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5668 ac_top_srcdir=$ac_top_build_prefix$srcdir
5669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5670 esac
5671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5674 case $ac_mode in
5677 # CONFIG_FILE
5680 case $INSTALL in
5681 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5682 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5683 esac
5684 _ACEOF
5686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5687 # If the template does not know about datarootdir, expand it.
5688 # FIXME: This hack should be removed a few years after 2.60.
5689 ac_datarootdir_hack=; ac_datarootdir_seen=
5690 ac_sed_dataroot='
5691 /datarootdir/ {
5695 /@datadir@/p
5696 /@docdir@/p
5697 /@infodir@/p
5698 /@localedir@/p
5699 /@mandir@/p'
5700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5701 *datarootdir*) ac_datarootdir_seen=yes;;
5702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5705 _ACEOF
5706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5707 ac_datarootdir_hack='
5708 s&@datadir@&$datadir&g
5709 s&@docdir@&$docdir&g
5710 s&@infodir@&$infodir&g
5711 s&@localedir@&$localedir&g
5712 s&@mandir@&$mandir&g
5713 s&\\\${datarootdir}&$datarootdir&g' ;;
5714 esac
5715 _ACEOF
5717 # Neutralize VPATH when `$srcdir' = `.'.
5718 # Shell code in configure.ac might set extrasub.
5719 # FIXME: do we really want to maintain this feature?
5720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5721 ac_sed_extra="$ac_vpsub
5722 $extrasub
5723 _ACEOF
5724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5727 s|@configure_input@|$ac_sed_conf_input|;t t
5728 s&@top_builddir@&$ac_top_builddir_sub&;t t
5729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5730 s&@srcdir@&$ac_srcdir&;t t
5731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5732 s&@top_srcdir@&$ac_top_srcdir&;t t
5733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5734 s&@builddir@&$ac_builddir&;t t
5735 s&@abs_builddir@&$ac_abs_builddir&;t t
5736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5737 s&@INSTALL@&$ac_INSTALL&;t t
5738 $ac_datarootdir_hack
5740 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5741 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5744 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5746 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5748 which seems to be undefined. Please make sure it is defined" >&5
5749 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5750 which seems to be undefined. Please make sure it is defined" >&2;}
5752 rm -f "$ac_tmp/stdin"
5753 case $ac_file in
5754 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5755 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5756 esac \
5757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5761 # CONFIG_HEADER
5763 if test x"$ac_file" != x-; then
5765 $as_echo "/* $configure_input */" \
5766 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5767 } >"$ac_tmp/config.h" \
5768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5769 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5771 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5772 else
5773 rm -f "$ac_file"
5774 mv "$ac_tmp/config.h" "$ac_file" \
5775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5777 else
5778 $as_echo "/* $configure_input */" \
5779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5780 || as_fn_error $? "could not create -" "$LINENO" 5
5785 esac
5787 done # for ac_tag
5790 as_fn_exit 0
5791 _ACEOF
5792 ac_clean_files=$ac_clean_files_save
5794 test $ac_write_fail = 0 ||
5795 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5798 # configure is writing to config.log, and then calls config.status.
5799 # config.status does its own redirection, appending to config.log.
5800 # Unfortunately, on DOS this fails, as config.log is still kept open
5801 # by configure, so config.status won't be able to write to it; its
5802 # output is simply discarded. So we exec the FD to /dev/null,
5803 # effectively closing config.log, so it can be properly (re)opened and
5804 # appended to by config.status. When coming back to configure, we
5805 # need to make the FD available again.
5806 if test "$no_create" != yes; then
5807 ac_cs_success=:
5808 ac_config_status_args=
5809 test "$silent" = yes &&
5810 ac_config_status_args="$ac_config_status_args --quiet"
5811 exec 5>/dev/null
5812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5813 exec 5>>config.log
5814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5815 # would make configure fail if this is the last instruction.
5816 $ac_cs_success || as_fn_exit 1
5818 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5820 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}