Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for alienarena 7.71.7.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='alienarena'
582 PACKAGE_TARNAME='alienarena'
583 PACKAGE_VERSION='7.71.7'
584 PACKAGE_STRING='alienarena 7.71.7'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="source/ref_gl/r_image.h"
589 enable_option_checking=no
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_header_list=
627 ac_subst_vars='am__EXEEXT_FALSE
628 am__EXEEXT_TRUE
629 LTLIBOBJS
630 ALLOCA
631 LIBOBJS
632 USE_SYSTEM_LIBODE_FALSE
633 USE_SYSTEM_LIBODE_TRUE
634 ODE_LIBS
635 ODE_CFLAGS
636 FREETYPE2_LIBS
637 FREETYPE2_CFLAGS
638 VORBIS_LIBS
639 VORBIS_CFLAGS
640 OGG_LIBS
641 OGG_CFLAGS
642 LIBCURL_LIBS
643 LIBCURL_CFLAGS
644 ZLIB_LIBS
645 ZLIB_CFLAGS
646 XXF86DGA_LIBS
647 XXF86DGA_CFLAGS
648 XXF86VM_LIBS
649 XXF86VM_CFLAGS
650 X11_LIBS
651 X11_CFLAGS
652 PTHREAD_CFLAGS
653 PTHREAD_LIBS
654 PTHREAD_CC
655 ax_pthread_config
656 EGREP
657 GREP
658 iconsdir
659 ICONS_INSTALL_FALSE
660 ICONS_INSTALL_TRUE
661 DOC_INSTALL_FALSE
662 DOC_INSTALL_TRUE
663 BUILD_CLIENT_FALSE
664 BUILD_CLIENT_TRUE
665 GL_LIBDIR
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 PKG_CONFIG_LIBDIR
675 PKG_CONFIG_PATH
676 PKG_CONFIG
677 RANLIB
678 LN_S
679 am__fastdepCXX_FALSE
680 am__fastdepCXX_TRUE
681 CXXDEPMODE
682 ac_ct_CXX
683 CXXFLAGS
684 CXX
685 CPP
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 SED
704 WITH_DATA1PKG_FALSE
705 WITH_DATA1PKG_TRUE
706 subdirs
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 AM_DEFAULT_V
713 AM_V
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 runstatedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_maintainer_mode
781 with_data1pkg
782 enable_dependency_tracking
783 enable_client
784 enable_doc_install
785 enable_icons_install
786 with_iconsdir
787 with_system_libode
788 with_xf86vm
789 with_xf86dga
790 with_zlib
791 enable_assert
792 enable_build_status
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP
803 CXX
804 CXXFLAGS
805 CCC
806 PKG_CONFIG
807 PKG_CONFIG_PATH
808 PKG_CONFIG_LIBDIR
809 GL_LIBDIR
810 X11_CFLAGS
811 X11_LIBS
812 XXF86VM_CFLAGS
813 XXF86VM_LIBS
814 XXF86DGA_CFLAGS
815 XXF86DGA_LIBS
816 ZLIB_CFLAGS
817 ZLIB_LIBS
818 LIBCURL_CFLAGS
819 LIBCURL_LIBS
820 OGG_CFLAGS
821 OGG_LIBS
822 VORBIS_CFLAGS
823 VORBIS_LIBS
824 FREETYPE2_CFLAGS
825 FREETYPE2_LIBS
826 ODE_CFLAGS
827 ODE_LIBS'
828 ac_subdirs_all='data1'
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 runstatedir='${localstatedir}/run'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -runstatedir | --runstatedir | --runstatedi | --runstated \
1120 | --runstate | --runstat | --runsta | --runst | --runs \
1121 | --run | --ru | --r)
1122 ac_prev=runstatedir ;;
1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125 | --run=* | --ru=* | --r=*)
1126 runstatedir=$ac_optarg ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir runstatedir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures alienarena 7.71.7 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/alienarena]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of alienarena 7.71.7:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful (and
1461 sometimes confusing) to the casual installer
1462 --enable-dependency-tracking
1463 do not reject slow dependency extractors
1464 --disable-dependency-tracking
1465 speeds up one-time build
1466 --disable-client build dedicated server only, not the client
1467 (default:no)
1468 --enable-doc-install Enable document installation (default: yes)
1469 --enable-icons-install Enable icons installation (default: yes)
1470 --disable-assert turn off assertions
1471 --disable-build-status hide the status message at the end of the
1472 configuration script (defdault:no)
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with(out)-data1pkg include game resources from data1 directory
1478 (default:with)
1479
1480 --with-iconsdir=DIR icons installation directory (default:DATADIR/icons)
1481 --with(out)-system-libode
1482 use system-supplied libode (default:without)
1483 --with(out)-xf86vm include XF86 VidMode support (default: check)
1484 --with(out)-xf86dga include XF86 DGA support (default: without)
1485 --with(out)-zlib include Zlib compression support (default: check)
1486
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CPP C preprocessor
1496 CXX C++ compiler command
1497 CXXFLAGS C++ compiler flags
1498 PKG_CONFIG path to pkg-config utility
1499 PKG_CONFIG_PATH
1500 directories to add to pkg-config's search path
1501 PKG_CONFIG_LIBDIR
1502 path overriding pkg-config's built-in search path
1503 GL_LIBDIR directory containing libGL.dylib
1504 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1505 X11_LIBS linker flags for X11, overriding pkg-config
1506 XXF86VM_CFLAGS
1507 C compiler flags for XXF86VM, overriding pkg-config
1508 XXF86VM_LIBS
1509 linker flags for XXF86VM, overriding pkg-config
1510 XXF86DGA_CFLAGS
1511 C compiler flags for XXF86DGA, overriding pkg-config
1512 XXF86DGA_LIBS
1513 linker flags for XXF86DGA, overriding pkg-config
1514 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1515 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1516 LIBCURL_CFLAGS
1517 C compiler flags for LIBCURL, overriding pkg-config
1518 LIBCURL_LIBS
1519 linker flags for LIBCURL, overriding pkg-config
1520 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1521 OGG_LIBS linker flags for OGG, overriding pkg-config
1522 VORBIS_CFLAGS
1523 C compiler flags for VORBIS, overriding pkg-config
1524 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1525 FREETYPE2_CFLAGS
1526 C compiler flags for FREETYPE2, overriding pkg-config
1527 FREETYPE2_LIBS
1528 linker flags for FREETYPE2, overriding pkg-config
1529 ODE_CFLAGS C compiler flags for ODE, overriding pkg-config
1530 ODE_LIBS linker flags for ODE, overriding pkg-config
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <[email protected]>.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1593 fi
1594
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 alienarena configure 7.71.7
1599 generated by GNU Autoconf 2.69
1600
1601 Copyright (C) 2012 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1606 fi
1607
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1611
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_cpp ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_cpp
1686
1687 # ac_fn_cxx_try_compile LINENO
1688 # ----------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_cxx_try_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_cxx_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_cxx_try_compile
1724
1725 # ac_fn_c_try_link LINENO
1726 # -----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_link ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 test -x conftest$ac_exeext
1753 }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760 fi
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_link
1770
1771 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists and can be compiled using the include files in
1774 # INCLUDES, setting the cache variable VAR accordingly.
1775 ac_fn_c_check_header_compile ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_header_compile
1801
1802 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1803 # -------------------------------------------
1804 # Tests whether TYPE exists after having included INCLUDES, setting cache
1805 # variable VAR accordingly.
1806 ac_fn_c_check_type ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 eval "$3=no"
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 int
1819 main ()
1820 {
1821 if (sizeof ($2))
1822 return 0;
1823 ;
1824 return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $4
1831 int
1832 main ()
1833 {
1834 if (sizeof (($2)))
1835 return 0;
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841
1842 else
1843 eval "$3=yes"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_type
1855
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1881 ac_status=$?
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_retval=$ac_status
1891 fi
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_run
1897
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1902 # accordingly.
1903 ac_fn_c_check_header_mongrel ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if eval \${$3+:} false; then :
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 else
1916 # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_header_compiler=yes
1926 else
1927 ac_header_compiler=no
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1932
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941 ac_header_preproc=yes
1942 else
1943 ac_header_preproc=no
1944 fi
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1948
1949 # So? What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1951 yes:no: )
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957 no:yes:* )
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 ( $as_echo "## ------------------------------------ ##
1969 ## Report this to [email protected] ##
1970 ## ------------------------------------ ##"
1971 ) | sed "s/^/$as_me: WARNING: /" >&2
1972 ;;
1973 esac
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=\$ac_header_compiler"
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 fi
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987 } # ac_fn_c_check_header_mongrel
1988
1989 # ac_fn_c_find_intX_t LINENO BITS VAR
1990 # -----------------------------------
1991 # Finds a signed integer type with width BITS, setting cache variable VAR
1992 # accordingly.
1993 ac_fn_c_find_intX_t ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1997 $as_echo_n "checking for int$2_t... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 eval "$3=no"
2002 # Order is important - never check a type that is potentially smaller
2003 # than half of the expected target width.
2004 for ac_type in int$2_t 'int' 'long int' \
2005 'long long int' 'short int' 'signed char'; do
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $ac_includes_default
2009 enum { N = $2 / 2 - 1 };
2010 int
2011 main ()
2012 {
2013 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2014 test_array [0] = 0;
2015 return test_array [0];
2016
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $ac_includes_default
2025 enum { N = $2 / 2 - 1 };
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2030 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2031 test_array [0] = 0;
2032 return test_array [0];
2033
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039
2040 else
2041 case $ac_type in #(
2042 int$2_t) :
2043 eval "$3=yes" ;; #(
2044 *) :
2045 eval "$3=\$ac_type" ;;
2046 esac
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 if eval test \"x\$"$3"\" = x"no"; then :
2052
2053 else
2054 break
2055 fi
2056 done
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_find_intX_t
2064
2065 # ac_fn_c_find_uintX_t LINENO BITS VAR
2066 # ------------------------------------
2067 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2068 # accordingly.
2069 ac_fn_c_find_uintX_t ()
2070 {
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2073 $as_echo_n "checking for uint$2_t... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 eval "$3=no"
2078 # Order is important - never check a type that is potentially smaller
2079 # than half of the expected target width.
2080 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2081 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $ac_includes_default
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2089 test_array [0] = 0;
2090 return test_array [0];
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 case $ac_type in #(
2098 uint$2_t) :
2099 eval "$3=yes" ;; #(
2100 *) :
2101 eval "$3=\$ac_type" ;;
2102 esac
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 if eval test \"x\$"$3"\" = x"no"; then :
2106
2107 else
2108 break
2109 fi
2110 done
2111 fi
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117 } # ac_fn_c_find_uintX_t
2118
2119 # ac_fn_c_check_func LINENO FUNC VAR
2120 # ----------------------------------
2121 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2122 ac_fn_c_check_func ()
2123 {
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \${$3+:} false; then :
2128 $as_echo_n "(cached) " >&6
2129 else
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2134 #define $2 innocuous_$2
2135
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $2 (); below.
2138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2139 <limits.h> exists even on freestanding compilers. */
2140
2141 #ifdef __STDC__
2142 # include <limits.h>
2143 #else
2144 # include <assert.h>
2145 #endif
2146
2147 #undef $2
2148
2149 /* Override any GCC internal prototype to avoid an error.
2150 Use char because int might match the return type of a GCC
2151 builtin and then its argument prototype would still apply. */
2152 #ifdef __cplusplus
2153 extern "C"
2154 #endif
2155 char $2 ();
2156 /* The GNU C library defines this for functions which it implements
2157 to always fail with ENOSYS. Some functions are actually named
2158 something starting with __ and the normal name is an alias. */
2159 #if defined __stub_$2 || defined __stub___$2
2160 choke me
2161 #endif
2162
2163 int
2164 main ()
2165 {
2166 return $2 ();
2167 ;
2168 return 0;
2169 }
2170 _ACEOF
2171 if ac_fn_c_try_link "$LINENO"; then :
2172 eval "$3=yes"
2173 else
2174 eval "$3=no"
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext \
2177 conftest$ac_exeext conftest.$ac_ext
2178 fi
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184 } # ac_fn_c_check_func
2185 cat >config.log <<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2188
2189 It was created by alienarena $as_me 7.71.7, which was
2190 generated by GNU Autoconf 2.69. Invocation command line was
2191
2192 $ $0 $@
2193
2194 _ACEOF
2195 exec 5>>config.log
2196 {
2197 cat <<_ASUNAME
2198 ## --------- ##
2199 ## Platform. ##
2200 ## --------- ##
2201
2202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2210
2211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2218
2219 _ASUNAME
2220
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2227 done
2228 IFS=$as_save_IFS
2229
2230 } >&5
2231
2232 cat >&5 <<_ACEOF
2233
2234
2235 ## ----------- ##
2236 ## Core tests. ##
2237 ## ----------- ##
2238
2239 _ACEOF
2240
2241
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2247 ac_configure_args=
2248 ac_configure_args0=
2249 ac_configure_args1=
2250 ac_must_keep_next=false
2251 for ac_pass in 1 2
2252 do
2253 for ac_arg
2254 do
2255 case $ac_arg in
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2259 continue ;;
2260 *\'*)
2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 esac
2263 case $ac_pass in
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265 2)
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2269 else
2270 case $ac_arg in
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 esac
2278 ;;
2279 -* ) ac_must_keep_next=true ;;
2280 esac
2281 fi
2282 as_fn_append ac_configure_args " '$ac_arg'"
2283 ;;
2284 esac
2285 done
2286 done
2287 { ac_configure_args0=; unset ac_configure_args0;}
2288 { ac_configure_args1=; unset ac_configure_args1;}
2289
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2297 {
2298 echo
2299
2300 $as_echo "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2305 (
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2328 *)
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 ;;
2331 esac |
2332 sort
2333 )
2334 echo
2335
2336 $as_echo "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2339 echo
2340 for ac_var in $ac_subst_vars
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349
2350 if test -n "$ac_subst_files"; then
2351 $as_echo "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2354 echo
2355 for ac_var in $ac_subst_files
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364 fi
2365
2366 if test -s confdefs.h; then
2367 $as_echo "## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##"
2370 echo
2371 cat confdefs.h
2372 echo
2373 fi
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2381 ' 0
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 done
2385 ac_signal=0
2386
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2389
2390 $as_echo "/* confdefs.h */" > confdefs.h
2391
2392 # Predefined preprocessor variables.
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_NAME "$PACKAGE_NAME"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_STRING "$PACKAGE_STRING"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_URL "$PACKAGE_URL"
2416 _ACEOF
2417
2418
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2421 ac_site_file1=NONE
2422 ac_site_file2=NONE
2423 if test -n "$CONFIG_SITE"; then
2424 # We do not want a PATH search for config.site.
2425 case $CONFIG_SITE in #((
2426 -*) ac_site_file1=./$CONFIG_SITE;;
2427 */*) ac_site_file1=$CONFIG_SITE;;
2428 *) ac_site_file1=./$CONFIG_SITE;;
2429 esac
2430 elif test "x$prefix" != xNONE; then
2431 ac_site_file1=$prefix/share/config.site
2432 ac_site_file2=$prefix/etc/config.site
2433 else
2434 ac_site_file1=$ac_default_prefix/share/config.site
2435 ac_site_file2=$ac_default_prefix/etc/config.site
2436 fi
2437 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2438 do
2439 test "x$ac_site_file" = xNONE && continue
2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443 sed 's/^/| /' "$ac_site_file" >&5
2444 . "$ac_site_file" \
2445 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 as_fn_error $? "failed to load site script $ac_site_file
2448 See \`config.log' for more details" "$LINENO" 5; }
2449 fi
2450 done
2451
2452 if test -r "$cache_file"; then
2453 # Some versions of bash will fail to source /dev/null (special files
2454 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2455 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457 $as_echo "$as_me: loading cache $cache_file" >&6;}
2458 case $cache_file in
2459 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460 *) . "./$cache_file";;
2461 esac
2462 fi
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465 $as_echo "$as_me: creating cache $cache_file" >&6;}
2466 >$cache_file
2467 fi
2468
2469 as_fn_append ac_header_list " stdlib.h"
2470 as_fn_append ac_header_list " unistd.h"
2471 as_fn_append ac_header_list " sys/param.h"
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2490 *)
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2520 fi
2521 done
2522 if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528 fi
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541
2542
2543 ac_aux_dir=
2544 for ac_dir in config "$srcdir"/config; do
2545 if test -f "$ac_dir/install-sh"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2548 break
2549 elif test -f "$ac_dir/install.sh"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2552 break
2553 elif test -f "$ac_dir/shtool"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2556 break
2557 fi
2558 done
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2561 fi
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2570
2571
2572 ac_config_headers="$ac_config_headers config/config.h"
2573
2574
2575 am__api_version='1.15'
2576
2577 # Find a good install program. We prefer a C program (faster),
2578 # so one script is as good as another. But avoid the broken or
2579 # incompatible versions:
2580 # SysV /etc/install, /usr/sbin/install
2581 # SunOS /usr/etc/install
2582 # IRIX /sbin/install
2583 # AIX /bin/install
2584 # AmigaOS /C/install, which installs bootblocks on floppy discs
2585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2588 # OS/2's system install, which has a completely different semantic
2589 # ./install, which can be erroneously created by make from ./install.sh.
2590 # Reject install programs that cannot install multiple files.
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2592 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2593 if test -z "$INSTALL"; then
2594 if ${ac_cv_path_install+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 # Account for people who put trailing slashes in PATH elements.
2603 case $as_dir/ in #((
2604 ./ | .// | /[cC]/* | \
2605 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2606 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2607 /usr/ucb/* ) ;;
2608 *)
2609 # OSF1 and SCO ODT 3.0 have their own names for install.
2610 # Don't use installbsd from OSF since it installs stuff as root
2611 # by default.
2612 for ac_prog in ginstall scoinst install; do
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2615 if test $ac_prog = install &&
2616 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617 # AIX install. It has an incompatible calling convention.
2618 :
2619 elif test $ac_prog = install &&
2620 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2621 # program-specific install script used by HP pwplus--don't use.
2622 :
2623 else
2624 rm -rf conftest.one conftest.two conftest.dir
2625 echo one > conftest.one
2626 echo two > conftest.two
2627 mkdir conftest.dir
2628 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2629 test -s conftest.one && test -s conftest.two &&
2630 test -s conftest.dir/conftest.one &&
2631 test -s conftest.dir/conftest.two
2632 then
2633 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2634 break 3
2635 fi
2636 fi
2637 fi
2638 done
2639 done
2640 ;;
2641 esac
2642
2643 done
2644 IFS=$as_save_IFS
2645
2646 rm -rf conftest.one conftest.two conftest.dir
2647
2648 fi
2649 if test "${ac_cv_path_install+set}" = set; then
2650 INSTALL=$ac_cv_path_install
2651 else
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for INSTALL within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 INSTALL=$ac_install_sh
2657 fi
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2660 $as_echo "$INSTALL" >&6; }
2661
2662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2663 # It thinks the first close brace ends the variable substitution.
2664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2665
2666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2667
2668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2671 $as_echo_n "checking whether build environment is sane... " >&6; }
2672 # Reject unsafe characters in $srcdir or the absolute working directory
2673 # name. Accept space and tab only in the latter.
2674 am_lf='
2675 '
2676 case `pwd` in
2677 *[\\\"\#\$\&\'\`$am_lf]*)
2678 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2679 esac
2680 case $srcdir in
2681 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2682 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2683 esac
2684
2685 # Do 'set' in a subshell so we don't clobber the current shell's
2686 # arguments. Must try -L first in case configure is actually a
2687 # symlink; some systems play weird games with the mod time of symlinks
2688 # (eg FreeBSD returns the mod time of the symlink's containing
2689 # directory).
2690 if (
2691 am_has_slept=no
2692 for am_try in 1 2; do
2693 echo "timestamp, slept: $am_has_slept" > conftest.file
2694 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695 if test "$*" = "X"; then
2696 # -L didn't work.
2697 set X `ls -t "$srcdir/configure" conftest.file`
2698 fi
2699 if test "$*" != "X $srcdir/configure conftest.file" \
2700 && test "$*" != "X conftest.file $srcdir/configure"; then
2701
2702 # If neither matched, then we have a broken ls. This can happen
2703 # if, for instance, CONFIG_SHELL is bash and it inherits a
2704 # broken ls alias from the environment. This has actually
2705 # happened. Such a system could not be considered "sane".
2706 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2707 alias in your environment" "$LINENO" 5
2708 fi
2709 if test "$2" = conftest.file || test $am_try -eq 2; then
2710 break
2711 fi
2712 # Just in case.
2713 sleep 1
2714 am_has_slept=yes
2715 done
2716 test "$2" = conftest.file
2717 )
2718 then
2719 # Ok.
2720 :
2721 else
2722 as_fn_error $? "newly created file is older than distributed files!
2723 Check your system clock" "$LINENO" 5
2724 fi
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726 $as_echo "yes" >&6; }
2727 # If we didn't sleep, we still need to ensure time stamps of config.status and
2728 # generated files are strictly newer.
2729 am_sleep_pid=
2730 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2731 ( sleep 1 ) &
2732 am_sleep_pid=$!
2733 fi
2734
2735 rm -f conftest.file
2736
2737 test "$program_prefix" != NONE &&
2738 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2739 # Use a double $ so make ignores it.
2740 test "$program_suffix" != NONE &&
2741 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2742 # Double any \ or $.
2743 # By default was `s,x,x', remove it if useless.
2744 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2745 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2746
2747 # Expand $ac_aux_dir to an absolute path.
2748 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2749
2750 if test x"${MISSING+set}" != xset; then
2751 case $am_aux_dir in
2752 *\ * | *\ *)
2753 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2754 *)
2755 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2756 esac
2757 fi
2758 # Use eval to expand $SHELL
2759 if eval "$MISSING --is-lightweight"; then
2760 am_missing_run="$MISSING "
2761 else
2762 am_missing_run=
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2764 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2765 fi
2766
2767 if test x"${install_sh+set}" != xset; then
2768 case $am_aux_dir in
2769 *\ * | *\ *)
2770 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2771 *)
2772 install_sh="\${SHELL} $am_aux_dir/install-sh"
2773 esac
2774 fi
2775
2776 # Installed binaries are usually stripped using 'strip' when the user
2777 # run "make install-strip". However 'strip' might not be the right
2778 # tool to use in cross-compilation environments, therefore Automake
2779 # will honor the 'STRIP' environment variable to overrule this program.
2780 if test "$cross_compiling" != no; then
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}strip; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_STRIP+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$STRIP"; then
2790 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 STRIP=$ac_cv_prog_STRIP
2810 if test -n "$STRIP"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2812 $as_echo "$STRIP" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$ac_cv_prog_STRIP"; then
2821 ac_ct_STRIP=$STRIP
2822 # Extract the first word of "strip", so it can be a program name with args.
2823 set dummy strip; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$ac_ct_STRIP"; then
2830 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_ac_ct_STRIP="strip"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2850 if test -n "$ac_ct_STRIP"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2852 $as_echo "$ac_ct_STRIP" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858 if test "x$ac_ct_STRIP" = x; then
2859 STRIP=":"
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867 STRIP=$ac_ct_STRIP
2868 fi
2869 else
2870 STRIP="$ac_cv_prog_STRIP"
2871 fi
2872
2873 fi
2874 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2875
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2877 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2878 if test -z "$MKDIR_P"; then
2879 if ${ac_cv_path_mkdir+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_prog in mkdir gmkdir; do
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2890 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2891 'mkdir (GNU coreutils) '* | \
2892 'mkdir (coreutils) '* | \
2893 'mkdir (fileutils) '4.1*)
2894 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2895 break 3;;
2896 esac
2897 done
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903
2904 test -d ./--version && rmdir ./--version
2905 if test "${ac_cv_path_mkdir+set}" = set; then
2906 MKDIR_P="$ac_cv_path_mkdir -p"
2907 else
2908 # As a last resort, use the slow shell script. Don't cache a
2909 # value for MKDIR_P within a source directory, because that will
2910 # break other packages using the cache if that directory is
2911 # removed, or if the value is a relative name.
2912 MKDIR_P="$ac_install_sh -d"
2913 fi
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2916 $as_echo "$MKDIR_P" >&6; }
2917
2918 for ac_prog in gawk mawk nawk awk
2919 do
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_AWK+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$AWK"; then
2928 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_AWK="$ac_prog"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 AWK=$ac_cv_prog_AWK
2948 if test -n "$AWK"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2950 $as_echo "$AWK" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957 test -n "$AWK" && break
2958 done
2959
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2961 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2962 set x ${MAKE-make}
2963 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2964 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 cat >conftest.make <<\_ACEOF
2968 SHELL = /bin/sh
2969 all:
2970 @echo '@@@%%%=$(MAKE)=@@@%%%'
2971 _ACEOF
2972 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2973 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2974 *@@@%%%=?*=@@@%%%*)
2975 eval ac_cv_prog_make_${ac_make}_set=yes;;
2976 *)
2977 eval ac_cv_prog_make_${ac_make}_set=no;;
2978 esac
2979 rm -f conftest.make
2980 fi
2981 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2984 SET_MAKE=
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 SET_MAKE="MAKE=${MAKE-make}"
2989 fi
2990
2991 rm -rf .tst 2>/dev/null
2992 mkdir .tst 2>/dev/null
2993 if test -d .tst; then
2994 am__leading_dot=.
2995 else
2996 am__leading_dot=_
2997 fi
2998 rmdir .tst 2>/dev/null
2999
3000 # Check whether --enable-silent-rules was given.
3001 if test "${enable_silent_rules+set}" = set; then :
3002 enableval=$enable_silent_rules;
3003 fi
3004
3005 case $enable_silent_rules in # (((
3006 yes) AM_DEFAULT_VERBOSITY=0;;
3007 no) AM_DEFAULT_VERBOSITY=1;;
3008 *) AM_DEFAULT_VERBOSITY=1;;
3009 esac
3010 am_make=${MAKE-make}
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3012 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3013 if ${am_cv_make_support_nested_variables+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if $as_echo 'TRUE=$(BAR$(V))
3017 BAR0=false
3018 BAR1=true
3019 V=1
3020 am__doit:
3021 @$(TRUE)
3022 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3023 am_cv_make_support_nested_variables=yes
3024 else
3025 am_cv_make_support_nested_variables=no
3026 fi
3027 fi
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3029 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3030 if test $am_cv_make_support_nested_variables = yes; then
3031 AM_V='$(V)'
3032 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3033 else
3034 AM_V=$AM_DEFAULT_VERBOSITY
3035 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3036 fi
3037 AM_BACKSLASH='\'
3038
3039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3041 # is not polluted with repeated "-I."
3042 am__isrc=' -I$(srcdir)'
3043 # test to see if srcdir already configured
3044 if test -f $srcdir/config.status; then
3045 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3046 fi
3047 fi
3048
3049 # test whether we have cygpath
3050 if test -z "$CYGPATH_W"; then
3051 if (cygpath --version) >/dev/null 2>/dev/null; then
3052 CYGPATH_W='cygpath -w'
3053 else
3054 CYGPATH_W=echo
3055 fi
3056 fi
3057
3058
3059 # Define the identity of the package.
3060 PACKAGE='alienarena'
3061 VERSION='7.71.7'
3062
3063
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE "$PACKAGE"
3066 _ACEOF
3067
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define VERSION "$VERSION"
3071 _ACEOF
3072
3073 # Some tools Automake needs.
3074
3075 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3076
3077
3078 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3079
3080
3081 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3082
3083
3084 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3085
3086
3087 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3088
3089 # For better backward compatibility. To be removed once Automake 1.9.x
3090 # dies out for good. For more background, see:
3091 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3092 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3093 mkdir_p='$(MKDIR_P)'
3094
3095 # We need awk for the "check" target (and possibly the TAP driver). The
3096 # system "awk" is bad on some platforms.
3097 # Always define AMTAR for backward compatibility. Yes, it's still used
3098 # in the wild :-( We should find a proper way to deprecate it ...
3099 AMTAR='$${TAR-tar}'
3100
3101
3102 # We'll loop over all known methods to create a tar archive until one works.
3103 _am_tools='gnutar pax cpio none'
3104
3105 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3106
3107
3108
3109
3110
3111
3112 # POSIX will say in a future version that running "rm -f" with no argument
3113 # is OK; and we want to be able to make that assumption in our Makefile
3114 # recipes. So use an aggressive probe to check that the usage we want is
3115 # actually supported "in the wild" to an acceptable degree.
3116 # See automake bug#10828.
3117 # To make any issue more visible, cause the running configure to be aborted
3118 # by default if the 'rm' program in use doesn't match our expectations; the
3119 # user can still override this though.
3120 if rm -f && rm -fr && rm -rf; then : OK; else
3121 cat >&2 <<'END'
3122 Oops!
3123
3124 Your 'rm' program seems unable to run without file operands specified
3125 on the command line, even when the '-f' option is present. This is contrary
3126 to the behaviour of most rm programs out there, and not conforming with
3127 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3128
3129 Please tell [email protected] about your system, including the value
3130 of your $PATH and any error possibly output before this message. This
3131 can help us improve future automake versions.
3132
3133 END
3134 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3135 echo 'Configuration will proceed anyway, since you have set the' >&2
3136 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3137 echo >&2
3138 else
3139 cat >&2 <<'END'
3140 Aborting the configuration process, to ensure you take notice of the issue.
3141
3142 You can download and install GNU coreutils to get an 'rm' implementation
3143 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3144
3145 If you want to complete the configuration process using your problematic
3146 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3147 to "yes", and re-run configure.
3148
3149 END
3150 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3151 fi
3152 fi
3153
3154 # Check whether --enable-silent-rules was given.
3155 if test "${enable_silent_rules+set}" = set; then :
3156 enableval=$enable_silent_rules;
3157 fi
3158
3159 case $enable_silent_rules in # (((
3160 yes) AM_DEFAULT_VERBOSITY=0;;
3161 no) AM_DEFAULT_VERBOSITY=1;;
3162 *) AM_DEFAULT_VERBOSITY=1;;
3163 esac
3164 am_make=${MAKE-make}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3166 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3167 if ${am_cv_make_support_nested_variables+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if $as_echo 'TRUE=$(BAR$(V))
3171 BAR0=false
3172 BAR1=true
3173 V=1
3174 am__doit:
3175 @$(TRUE)
3176 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3177 am_cv_make_support_nested_variables=yes
3178 else
3179 am_cv_make_support_nested_variables=no
3180 fi
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3183 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3184 if test $am_cv_make_support_nested_variables = yes; then
3185 AM_V='$(V)'
3186 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3187 else
3188 AM_V=$AM_DEFAULT_VERBOSITY
3189 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3190 fi
3191 AM_BACKSLASH='\'
3192
3193
3194
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3196 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3197 # Check whether --enable-maintainer-mode was given.
3198 if test "${enable_maintainer_mode+set}" = set; then :
3199 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3200 else
3201 USE_MAINTAINER_MODE=no
3202 fi
3203
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3205 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3206 if test $USE_MAINTAINER_MODE = yes; then
3207 MAINTAINER_MODE_TRUE=
3208 MAINTAINER_MODE_FALSE='#'
3209 else
3210 MAINTAINER_MODE_TRUE='#'
3211 MAINTAINER_MODE_FALSE=
3212 fi
3213
3214 MAINT=$MAINTAINER_MODE_TRUE
3215
3216
3217
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include game resources package" >&5
3219 $as_echo_n "checking whether to include game resources package... " >&6; }
3220
3221 # Check whether --with-data1pkg was given.
3222 if test "${with_data1pkg+set}" = set; then :
3223 withval=$with_data1pkg;
3224 with_data1pkg=${withval}
3225 else
3226
3227 with_data1pkg=yes
3228
3229 fi
3230
3231
3232
3233 if test "x${with_data1pkg}" != xno ; then :
3234
3235 subdirs="$subdirs data1"
3236
3237 fi
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_data1pkg}" >&5
3239 $as_echo "${with_data1pkg}" >&6; }
3240 if test "x${with_data1pkg}" = xyes ; then
3241 WITH_DATA1PKG_TRUE=
3242 WITH_DATA1PKG_FALSE='#'
3243 else
3244 WITH_DATA1PKG_TRUE='#'
3245 WITH_DATA1PKG_FALSE=
3246 fi
3247
3248
3249 #
3250 # Checks for programs.
3251 #
3252 for ac_prog in gawk mawk nawk awk
3253 do
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy $ac_prog; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_AWK+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$AWK"; then
3262 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_AWK="$ac_prog"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 AWK=$ac_cv_prog_AWK
3282 if test -n "$AWK"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3284 $as_echo "$AWK" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 test -n "$AWK" && break
3292 done
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3295 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3296 if ${ac_cv_path_SED+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3300 for ac_i in 1 2 3 4 5 6 7; do
3301 ac_script="$ac_script$as_nl$ac_script"
3302 done
3303 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3304 { ac_script=; unset ac_script;}
3305 if test -z "$SED"; then
3306 ac_path_SED_found=false
3307 # Loop through the user's path and test for each of PROGNAME-LIST
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_prog in sed gsed; do
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3316 as_fn_executable_p "$ac_path_SED" || continue
3317 # Check for GNU ac_path_SED and select it if it is found.
3318 # Check for GNU $ac_path_SED
3319 case `"$ac_path_SED" --version 2>&1` in
3320 *GNU*)
3321 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3322 *)
3323 ac_count=0
3324 $as_echo_n 0123456789 >"conftest.in"
3325 while :
3326 do
3327 cat "conftest.in" "conftest.in" >"conftest.tmp"
3328 mv "conftest.tmp" "conftest.in"
3329 cp "conftest.in" "conftest.nl"
3330 $as_echo '' >> "conftest.nl"
3331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3333 as_fn_arith $ac_count + 1 && ac_count=$as_val
3334 if test $ac_count -gt ${ac_path_SED_max-0}; then
3335 # Best one so far, save it but keep looking for a better one
3336 ac_cv_path_SED="$ac_path_SED"
3337 ac_path_SED_max=$ac_count
3338 fi
3339 # 10*(2^10) chars as input seems more than enough
3340 test $ac_count -gt 10 && break
3341 done
3342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3343 esac
3344
3345 $ac_path_SED_found && break 3
3346 done
3347 done
3348 done
3349 IFS=$as_save_IFS
3350 if test -z "$ac_cv_path_SED"; then
3351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3352 fi
3353 else
3354 ac_cv_path_SED=$SED
3355 fi
3356
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3359 $as_echo "$ac_cv_path_SED" >&6; }
3360 SED="$ac_cv_path_SED"
3361 rm -f conftest.sed
3362
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3389 fi
3390 done
3391 done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 CC=$ac_cv_prog_CC
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406 fi
3407 if test -z "$ac_cv_prog_CC"; then
3408 ac_ct_CC=$CC
3409 # Extract the first word of "gcc", so it can be a program name with args.
3410 set dummy gcc; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test -n "$ac_ct_CC"; then
3417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_ac_ct_CC="gcc"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3429 fi
3430 done
3431 done
3432 IFS=$as_save_IFS
3433
3434 fi
3435 fi
3436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3437 if test -n "$ac_ct_CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3439 $as_echo "$ac_ct_CC" >&6; }
3440 else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445 if test "x$ac_ct_CC" = x; then
3446 CC=""
3447 else
3448 case $cross_compiling:$ac_tool_warned in
3449 yes:)
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3453 esac
3454 CC=$ac_ct_CC
3455 fi
3456 else
3457 CC="$ac_cv_prog_CC"
3458 fi
3459
3460 if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_CC="${ac_tool_prefix}cc"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 $as_echo "$CC" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498
3499 fi
3500 fi
3501 if test -z "$CC"; then
3502 # Extract the first word of "cc", so it can be a program name with args.
3503 set dummy cc; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_CC+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 else
3512 ac_prog_rejected=no
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3521 ac_prog_rejected=yes
3522 continue
3523 fi
3524 ac_cv_prog_CC="cc"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3527 fi
3528 done
3529 done
3530 IFS=$as_save_IFS
3531
3532 if test $ac_prog_rejected = yes; then
3533 # We found a bogon in the path, so make sure we never use it.
3534 set dummy $ac_cv_prog_CC
3535 shift
3536 if test $# != 0; then
3537 # We chose a different compiler from the bogus one.
3538 # However, it has the same basename, so the bogon will be chosen
3539 # first if we set CC to just the basename; use the full file name.
3540 shift
3541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3542 fi
3543 fi
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556 fi
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 for ac_prog in cl.exe
3560 do
3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598 test -n "$CC" && break
3599 done
3600 fi
3601 if test -z "$CC"; then
3602 ac_ct_CC=$CC
3603 for ac_prog in cl.exe
3604 do
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$ac_ct_CC"; then
3613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_ac_ct_CC="$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3633 if test -n "$ac_ct_CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3635 $as_echo "$ac_ct_CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642 test -n "$ac_ct_CC" && break
3643 done
3644
3645 if test "x$ac_ct_CC" = x; then
3646 CC=""
3647 else
3648 case $cross_compiling:$ac_tool_warned in
3649 yes:)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652 ac_tool_warned=yes ;;
3653 esac
3654 CC=$ac_ct_CC
3655 fi
3656 fi
3657
3658 fi
3659
3660
3661 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "no acceptable C compiler found in \$PATH
3664 See \`config.log' for more details" "$LINENO" 5; }
3665
3666 # Provide some information about the compiler.
3667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3668 set X $ac_compile
3669 ac_compiler=$2
3670 for ac_option in --version -v -V -qversion; do
3671 { { ac_try="$ac_compiler $ac_option >&5"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3679 ac_status=$?
3680 if test -s conftest.err; then
3681 sed '10a\
3682 ... rest of stderr output deleted ...
3683 10q' conftest.err >conftest.er1
3684 cat conftest.er1 >&5
3685 fi
3686 rm -f conftest.er1 conftest.err
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }
3689 done
3690
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 ac_clean_files_save=$ac_clean_files
3703 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3704 # Try to create an executable without -o first, disregard a.out.
3705 # It will help us diagnose broken compilers, and finding out an intuition
3706 # of exeext.
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3708 $as_echo_n "checking whether the C compiler works... " >&6; }
3709 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3710
3711 # The possible output files:
3712 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3713
3714 ac_rmfiles=
3715 for ac_file in $ac_files
3716 do
3717 case $ac_file in
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3719 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3720 esac
3721 done
3722 rm -f $ac_rmfiles
3723
3724 if { { ac_try="$ac_link_default"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link_default") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3737 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3738 # so that the user can short-circuit this test for compilers unknown to
3739 # Autoconf.
3740 for ac_file in $ac_files ''
3741 do
3742 test -f "$ac_file" || continue
3743 case $ac_file in
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3745 ;;
3746 [ab].out )
3747 # We found the default executable, but exeext='' is most
3748 # certainly right.
3749 break;;
3750 *.* )
3751 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3752 then :; else
3753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754 fi
3755 # We set ac_cv_exeext here because the later test for it is not
3756 # safe: cross compilers may not add the suffix if given an `-o'
3757 # argument, so we may need to know it at that point already.
3758 # Even if this section looks crufty: it has the advantage of
3759 # actually working.
3760 break;;
3761 * )
3762 break;;
3763 esac
3764 done
3765 test "$ac_cv_exeext" = no && ac_cv_exeext=
3766
3767 else
3768 ac_file=''
3769 fi
3770 if test -z "$ac_file"; then :
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error 77 "C compiler cannot create executables
3779 See \`config.log' for more details" "$LINENO" 5; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 $as_echo "yes" >&6; }
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3785 $as_echo_n "checking for C compiler default output file name... " >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3787 $as_echo "$ac_file" >&6; }
3788 ac_exeext=$ac_cv_exeext
3789
3790 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3793 $as_echo_n "checking for suffix of executables... " >&6; }
3794 if { { ac_try="$ac_link"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_link") 2>&5
3802 ac_status=$?
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; then :
3805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3806 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3807 # work properly (i.e., refer to `conftest.exe'), while it won't with
3808 # `rm'.
3809 for ac_file in conftest.exe conftest conftest.*; do
3810 test -f "$ac_file" || continue
3811 case $ac_file in
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3814 break;;
3815 * ) break;;
3816 esac
3817 done
3818 else
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3822 See \`config.log' for more details" "$LINENO" 5; }
3823 fi
3824 rm -f conftest conftest$ac_cv_exeext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3826 $as_echo "$ac_cv_exeext" >&6; }
3827
3828 rm -f conftest.$ac_ext
3829 EXEEXT=$ac_cv_exeext
3830 ac_exeext=$EXEEXT
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833 #include <stdio.h>
3834 int
3835 main ()
3836 {
3837 FILE *f = fopen ("conftest.out", "w");
3838 return ferror (f) || fclose (f) != 0;
3839
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 ac_clean_files="$ac_clean_files conftest.out"
3845 # Check that the compiler produces executables we can run. If not, either
3846 # the compiler is broken, or we cross compile.
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3848 $as_echo_n "checking whether we are cross compiling... " >&6; }
3849 if test "$cross_compiling" != yes; then
3850 { { ac_try="$ac_link"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3861 if { ac_try='./conftest$ac_cv_exeext'
3862 { { case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_try") 2>&5
3869 ac_status=$?
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; }; then
3872 cross_compiling=no
3873 else
3874 if test "$cross_compiling" = maybe; then
3875 cross_compiling=yes
3876 else
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error $? "cannot run C compiled programs.
3880 If you meant to cross compile, use \`--host'.
3881 See \`config.log' for more details" "$LINENO" 5; }
3882 fi
3883 fi
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3886 $as_echo "$cross_compiling" >&6; }
3887
3888 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3889 ac_clean_files=$ac_clean_files_save
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3891 $as_echo_n "checking for suffix of object files... " >&6; }
3892 if ${ac_cv_objext+:} false; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897
3898 int
3899 main ()
3900 {
3901
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.o conftest.obj
3907 if { { ac_try="$ac_compile"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_compile") 2>&5
3915 ac_status=$?
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; then :
3918 for ac_file in conftest.o conftest.obj conftest.*; do
3919 test -f "$ac_file" || continue;
3920 case $ac_file in
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3923 break;;
3924 esac
3925 done
3926 else
3927 $as_echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "cannot compute suffix of object files: cannot compile
3933 See \`config.log' for more details" "$LINENO" 5; }
3934 fi
3935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3938 $as_echo "$ac_cv_objext" >&6; }
3939 OBJEXT=$ac_cv_objext
3940 ac_objext=$OBJEXT
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3942 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3943 if ${ac_cv_c_compiler_gnu+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3948
3949 int
3950 main ()
3951 {
3952 #ifndef __GNUC__
3953 choke me
3954 #endif
3955
3956 ;
3957 return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961 ac_compiler_gnu=yes
3962 else
3963 ac_compiler_gnu=no
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3967
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3970 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3971 if test $ac_compiler_gnu = yes; then
3972 GCC=yes
3973 else
3974 GCC=
3975 fi
3976 ac_test_CFLAGS=${CFLAGS+set}
3977 ac_save_CFLAGS=$CFLAGS
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3979 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3980 if ${ac_cv_prog_cc_g+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 ac_save_c_werror_flag=$ac_c_werror_flag
3984 ac_c_werror_flag=yes
3985 ac_cv_prog_cc_g=no
3986 CFLAGS="-g"
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989
3990 int
3991 main ()
3992 {
3993
3994 ;
3995 return 0;
3996 }
3997 _ACEOF
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_cv_prog_cc_g=yes
4000 else
4001 CFLAGS=""
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 int
4006 main ()
4007 {
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014
4015 else
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4017 CFLAGS="-g"
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main ()
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_prog_cc_g=yes
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4040 $as_echo "$ac_cv_prog_cc_g" >&6; }
4041 if test "$ac_test_CFLAGS" = set; then
4042 CFLAGS=$ac_save_CFLAGS
4043 elif test $ac_cv_prog_cc_g = yes; then
4044 if test "$GCC" = yes; then
4045 CFLAGS="-g -O2"
4046 else
4047 CFLAGS="-g"
4048 fi
4049 else
4050 if test "$GCC" = yes; then
4051 CFLAGS="-O2"
4052 else
4053 CFLAGS=
4054 fi
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4057 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4058 if ${ac_cv_prog_cc_c89+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 ac_cv_prog_cc_c89=no
4062 ac_save_CC=$CC
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <stdarg.h>
4066 #include <stdio.h>
4067 struct stat;
4068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4069 struct buf { int x; };
4070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4071 static char *e (p, i)
4072 char **p;
4073 int i;
4074 {
4075 return p[i];
4076 }
4077 static char *f (char * (*g) (char **, int), char **p, ...)
4078 {
4079 char *s;
4080 va_list v;
4081 va_start (v,p);
4082 s = g (p, va_arg (v,int));
4083 va_end (v);
4084 return s;
4085 }
4086
4087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4088 function prototypes and stuff, but not '\xHH' hex character constants.
4089 These don't provoke an error unfortunately, instead are silently treated
4090 as 'x'. The following induces an error, until -std is added to get
4091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4092 array size at least. It's necessary to write '\x00'==0 to get something
4093 that's true only with -std. */
4094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4095
4096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4097 inside strings and character constants. */
4098 #define FOO(x) 'x'
4099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4100
4101 int test (int i, double x);
4102 struct s1 {int (*f) (int a);};
4103 struct s2 {int (*f) (double a);};
4104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4105 int argc;
4106 char **argv;
4107 int
4108 main ()
4109 {
4110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4117 do
4118 CC="$ac_save_CC $ac_arg"
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_c89=$ac_arg
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext
4123 test "x$ac_cv_prog_cc_c89" != "xno" && break
4124 done
4125 rm -f conftest.$ac_ext
4126 CC=$ac_save_CC
4127
4128 fi
4129 # AC_CACHE_VAL
4130 case "x$ac_cv_prog_cc_c89" in
4131 x)
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133 $as_echo "none needed" >&6; } ;;
4134 xno)
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4136 $as_echo "unsupported" >&6; } ;;
4137 *)
4138 CC="$CC $ac_cv_prog_cc_c89"
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4140 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4141 esac
4142 if test "x$ac_cv_prog_cc_c89" != xno; then :
4143
4144 fi
4145
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4158 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4159 if ${am_cv_prog_cc_c_o+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main ()
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 # Make sure it works both with $CC and with simple cc.
4174 # Following AC_PROG_CC_C_O, we do the test twice because some
4175 # compilers refuse to overwrite an existing .o file with -o,
4176 # though they will create one.
4177 am_cv_prog_cc_c_o=yes
4178 for am_i in 1 2; do
4179 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4180 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } \
4184 && test -f conftest2.$ac_objext; then
4185 : OK
4186 else
4187 am_cv_prog_cc_c_o=no
4188 break
4189 fi
4190 done
4191 rm -f core conftest*
4192 unset am_i
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4195 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4196 if test "$am_cv_prog_cc_c_o" != yes; then
4197 # Losing compiler, so override with the script.
4198 # FIXME: It is wrong to rewrite CC.
4199 # But if we don't then we get into trouble of one sort or another.
4200 # A longer-term fix would be to have automake use am__CC in this case,
4201 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4202 CC="$am_aux_dir/compile $CC"
4203 fi
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210 DEPDIR="${am__leading_dot}deps"
4211
4212 ac_config_commands="$ac_config_commands depfiles"
4213
4214
4215 am_make=${MAKE-make}
4216 cat > confinc << 'END'
4217 am__doit:
4218 @echo this is the am__doit target
4219 .PHONY: am__doit
4220 END
4221 # If we don't find an include directive, just comment out the code.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4223 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4224 am__include="#"
4225 am__quote=
4226 _am_result=none
4227 # First try GNU make style include.
4228 echo "include confinc" > confmf
4229 # Ignore all kinds of additional output from 'make'.
4230 case `$am_make -s -f confmf 2> /dev/null` in #(
4231 *the\ am__doit\ target*)
4232 am__include=include
4233 am__quote=
4234 _am_result=GNU
4235 ;;
4236 esac
4237 # Now try BSD make style include.
4238 if test "$am__include" = "#"; then
4239 echo '.include "confinc"' > confmf
4240 case `$am_make -s -f confmf 2> /dev/null` in #(
4241 *the\ am__doit\ target*)
4242 am__include=.include
4243 am__quote="\""
4244 _am_result=BSD
4245 ;;
4246 esac
4247 fi
4248
4249
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4251 $as_echo "$_am_result" >&6; }
4252 rm -f confinc confmf
4253
4254 # Check whether --enable-dependency-tracking was given.
4255 if test "${enable_dependency_tracking+set}" = set; then :
4256 enableval=$enable_dependency_tracking;
4257 fi
4258
4259 if test "x$enable_dependency_tracking" != xno; then
4260 am_depcomp="$ac_aux_dir/depcomp"
4261 AMDEPBACKSLASH='\'
4262 am__nodep='_no'
4263 fi
4264 if test "x$enable_dependency_tracking" != xno; then
4265 AMDEP_TRUE=
4266 AMDEP_FALSE='#'
4267 else
4268 AMDEP_TRUE='#'
4269 AMDEP_FALSE=
4270 fi
4271
4272
4273
4274 depcc="$CC" am_compiler_list=
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4277 $as_echo_n "checking dependency style of $depcc... " >&6; }
4278 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4282 # We make a subdir and do the tests there. Otherwise we can end up
4283 # making bogus files that we don't know about and never remove. For
4284 # instance it was reported that on HP-UX the gcc test will end up
4285 # making a dummy file named 'D' -- because '-MD' means "put the output
4286 # in D".
4287 rm -rf conftest.dir
4288 mkdir conftest.dir
4289 # Copy depcomp to subdir because otherwise we won't find it if we're
4290 # using a relative directory.
4291 cp "$am_depcomp" conftest.dir
4292 cd conftest.dir
4293 # We will build objects and dependencies in a subdirectory because
4294 # it helps to detect inapplicable dependency modes. For instance
4295 # both Tru64's cc and ICC support -MD to output dependencies as a
4296 # side effect of compilation, but ICC will put the dependencies in
4297 # the current directory while Tru64 will put them in the object
4298 # directory.
4299 mkdir sub
4300
4301 am_cv_CC_dependencies_compiler_type=none
4302 if test "$am_compiler_list" = ""; then
4303 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4304 fi
4305 am__universal=false
4306 case " $depcc " in #(
4307 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4308 esac
4309
4310 for depmode in $am_compiler_list; do
4311 # Setup a source with many dependencies, because some compilers
4312 # like to wrap large dependency lists on column 80 (with \), and
4313 # we should not choose a depcomp mode which is confused by this.
4314 #
4315 # We need to recreate these files for each test, as the compiler may
4316 # overwrite some of them when testing with obscure command lines.
4317 # This happens at least with the AIX C compiler.
4318 : > sub/conftest.c
4319 for i in 1 2 3 4 5 6; do
4320 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4321 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4322 # Solaris 10 /bin/sh.
4323 echo '/* dummy */' > sub/conftst$i.h
4324 done
4325 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4326
4327 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4328 # mode. It turns out that the SunPro C++ compiler does not properly
4329 # handle '-M -o', and we need to detect this. Also, some Intel
4330 # versions had trouble with output in subdirs.
4331 am__obj=sub/conftest.${OBJEXT-o}
4332 am__minus_obj="-o $am__obj"
4333 case $depmode in
4334 gcc)
4335 # This depmode causes a compiler race in universal mode.
4336 test "$am__universal" = false || continue
4337 ;;
4338 nosideeffect)
4339 # After this tag, mechanisms are not by side-effect, so they'll
4340 # only be used when explicitly requested.
4341 if test "x$enable_dependency_tracking" = xyes; then
4342 continue
4343 else
4344 break
4345 fi
4346 ;;
4347 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4348 # This compiler won't grok '-c -o', but also, the minuso test has
4349 # not run yet. These depmodes are late enough in the game, and
4350 # so weak that their functioning should not be impacted.
4351 am__obj=conftest.${OBJEXT-o}
4352 am__minus_obj=
4353 ;;
4354 none) break ;;
4355 esac
4356 if depmode=$depmode \
4357 source=sub/conftest.c object=$am__obj \
4358 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4359 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4360 >/dev/null 2>conftest.err &&
4361 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4362 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4363 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4364 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4365 # icc doesn't choke on unknown options, it will just issue warnings
4366 # or remarks (even with -Werror). So we grep stderr for any message
4367 # that says an option was ignored or not supported.
4368 # When given -MP, icc 7.0 and 7.1 complain thusly:
4369 # icc: Command line warning: ignoring option '-M'; no argument required
4370 # The diagnosis changed in icc 8.0:
4371 # icc: Command line remark: option '-MP' not supported
4372 if (grep 'ignoring option' conftest.err ||
4373 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4374 am_cv_CC_dependencies_compiler_type=$depmode
4375 break
4376 fi
4377 fi
4378 done
4379
4380 cd ..
4381 rm -rf conftest.dir
4382 else
4383 am_cv_CC_dependencies_compiler_type=none
4384 fi
4385
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4388 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4389 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4390
4391 if
4392 test "x$enable_dependency_tracking" != xno \
4393 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4394 am__fastdepCC_TRUE=
4395 am__fastdepCC_FALSE='#'
4396 else
4397 am__fastdepCC_TRUE='#'
4398 am__fastdepCC_FALSE=
4399 fi
4400
4401
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4409 # On Suns, sometimes $CPP names a directory.
4410 if test -n "$CPP" && test -d "$CPP"; then
4411 CPP=
4412 fi
4413 if test -z "$CPP"; then
4414 if ${ac_cv_prog_CPP+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 # Double quotes because CPP needs to be expanded
4418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4419 do
4420 ac_preproc_ok=false
4421 for ac_c_preproc_warn_flag in '' yes
4422 do
4423 # Use a header file that comes with gcc, so configuring glibc
4424 # with a fresh cross-compiler works.
4425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426 # <limits.h> exists even on freestanding compilers.
4427 # On the NeXT, cc -E runs the code through the compiler's parser,
4428 # not just through cpp. "Syntax error" is here to catch this case.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #ifdef __STDC__
4432 # include <limits.h>
4433 #else
4434 # include <assert.h>
4435 #endif
4436 Syntax error
4437 _ACEOF
4438 if ac_fn_c_try_cpp "$LINENO"; then :
4439
4440 else
4441 # Broken: fails on valid input.
4442 continue
4443 fi
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4445
4446 # OK, works on sane cases. Now check whether nonexistent headers
4447 # can be detected and how.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4451 _ACEOF
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4453 # Broken: success on invalid input.
4454 continue
4455 else
4456 # Passes both tests.
4457 ac_preproc_ok=:
4458 break
4459 fi
4460 rm -f conftest.err conftest.i conftest.$ac_ext
4461
4462 done
4463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4464 rm -f conftest.i conftest.err conftest.$ac_ext
4465 if $ac_preproc_ok; then :
4466 break
4467 fi
4468
4469 done
4470 ac_cv_prog_CPP=$CPP
4471
4472 fi
4473 CPP=$ac_cv_prog_CPP
4474 else
4475 ac_cv_prog_CPP=$CPP
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4478 $as_echo "$CPP" >&6; }
4479 ac_preproc_ok=false
4480 for ac_c_preproc_warn_flag in '' yes
4481 do
4482 # Use a header file that comes with gcc, so configuring glibc
4483 # with a fresh cross-compiler works.
4484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485 # <limits.h> exists even on freestanding compilers.
4486 # On the NeXT, cc -E runs the code through the compiler's parser,
4487 # not just through cpp. "Syntax error" is here to catch this case.
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490 #ifdef __STDC__
4491 # include <limits.h>
4492 #else
4493 # include <assert.h>
4494 #endif
4495 Syntax error
4496 _ACEOF
4497 if ac_fn_c_try_cpp "$LINENO"; then :
4498
4499 else
4500 # Broken: fails on valid input.
4501 continue
4502 fi
4503 rm -f conftest.err conftest.i conftest.$ac_ext
4504
4505 # OK, works on sane cases. Now check whether nonexistent headers
4506 # can be detected and how.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <ac_nonexistent.h>
4510 _ACEOF
4511 if ac_fn_c_try_cpp "$LINENO"; then :
4512 # Broken: success on invalid input.
4513 continue
4514 else
4515 # Passes both tests.
4516 ac_preproc_ok=:
4517 break
4518 fi
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521 done
4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523 rm -f conftest.i conftest.err conftest.$ac_ext
4524 if $ac_preproc_ok; then :
4525
4526 else
4527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details" "$LINENO" 5; }
4531 fi
4532
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539 ac_ext=cpp
4540 ac_cpp='$CXXCPP $CPPFLAGS'
4541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4544 if test -z "$CXX"; then
4545 if test -n "$CCC"; then
4546 CXX=$CCC
4547 else
4548 if test -n "$ac_tool_prefix"; then
4549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4550 do
4551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_CXX+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$CXX"; then
4559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 CXX=$ac_cv_prog_CXX
4579 if test -n "$CXX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4581 $as_echo "$CXX" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 test -n "$CXX" && break
4589 done
4590 fi
4591 if test -z "$CXX"; then
4592 ac_ct_CXX=$CXX
4593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4594 do
4595 # Extract the first word of "$ac_prog", so it can be a program name with args.
4596 set dummy $ac_prog; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$ac_ct_CXX"; then
4603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_ac_ct_CXX="$ac_prog"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 fi
4621 fi
4622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4623 if test -n "$ac_ct_CXX"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4625 $as_echo "$ac_ct_CXX" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 fi
4630
4631
4632 test -n "$ac_ct_CXX" && break
4633 done
4634
4635 if test "x$ac_ct_CXX" = x; then
4636 CXX="g++"
4637 else
4638 case $cross_compiling:$ac_tool_warned in
4639 yes:)
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4642 ac_tool_warned=yes ;;
4643 esac
4644 CXX=$ac_ct_CXX
4645 fi
4646 fi
4647
4648 fi
4649 fi
4650 # Provide some information about the compiler.
4651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4652 set X $ac_compile
4653 ac_compiler=$2
4654 for ac_option in --version -v -V -qversion; do
4655 { { ac_try="$ac_compiler $ac_option >&5"
4656 case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661 $as_echo "$ac_try_echo"; } >&5
4662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4663 ac_status=$?
4664 if test -s conftest.err; then
4665 sed '10a\
4666 ... rest of stderr output deleted ...
4667 10q' conftest.err >conftest.er1
4668 cat conftest.er1 >&5
4669 fi
4670 rm -f conftest.er1 conftest.err
4671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }
4673 done
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4677 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682
4683 int
4684 main ()
4685 {
4686 #ifndef __GNUC__
4687 choke me
4688 #endif
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 if ac_fn_cxx_try_compile "$LINENO"; then :
4695 ac_compiler_gnu=yes
4696 else
4697 ac_compiler_gnu=no
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4701
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4705 if test $ac_compiler_gnu = yes; then
4706 GXX=yes
4707 else
4708 GXX=
4709 fi
4710 ac_test_CXXFLAGS=${CXXFLAGS+set}
4711 ac_save_CXXFLAGS=$CXXFLAGS
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4714 if ${ac_cv_prog_cxx_g+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4718 ac_cxx_werror_flag=yes
4719 ac_cv_prog_cxx_g=no
4720 CXXFLAGS="-g"
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723
4724 int
4725 main ()
4726 {
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_cxx_try_compile "$LINENO"; then :
4733 ac_cv_prog_cxx_g=yes
4734 else
4735 CXXFLAGS=""
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738
4739 int
4740 main ()
4741 {
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_cxx_try_compile "$LINENO"; then :
4748
4749 else
4750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4751 CXXFLAGS="-g"
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754
4755 int
4756 main ()
4757 {
4758
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_cxx_try_compile "$LINENO"; then :
4764 ac_cv_prog_cxx_g=yes
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4775 if test "$ac_test_CXXFLAGS" = set; then
4776 CXXFLAGS=$ac_save_CXXFLAGS
4777 elif test $ac_cv_prog_cxx_g = yes; then
4778 if test "$GXX" = yes; then
4779 CXXFLAGS="-g -O2"
4780 else
4781 CXXFLAGS="-g"
4782 fi
4783 else
4784 if test "$GXX" = yes; then
4785 CXXFLAGS="-O2"
4786 else
4787 CXXFLAGS=
4788 fi
4789 fi
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796 depcc="$CXX" am_compiler_list=
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4799 $as_echo_n "checking dependency style of $depcc... " >&6; }
4800 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4804 # We make a subdir and do the tests there. Otherwise we can end up
4805 # making bogus files that we don't know about and never remove. For
4806 # instance it was reported that on HP-UX the gcc test will end up
4807 # making a dummy file named 'D' -- because '-MD' means "put the output
4808 # in D".
4809 rm -rf conftest.dir
4810 mkdir conftest.dir
4811 # Copy depcomp to subdir because otherwise we won't find it if we're
4812 # using a relative directory.
4813 cp "$am_depcomp" conftest.dir
4814 cd conftest.dir
4815 # We will build objects and dependencies in a subdirectory because
4816 # it helps to detect inapplicable dependency modes. For instance
4817 # both Tru64's cc and ICC support -MD to output dependencies as a
4818 # side effect of compilation, but ICC will put the dependencies in
4819 # the current directory while Tru64 will put them in the object
4820 # directory.
4821 mkdir sub
4822
4823 am_cv_CXX_dependencies_compiler_type=none
4824 if test "$am_compiler_list" = ""; then
4825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826 fi
4827 am__universal=false
4828 case " $depcc " in #(
4829 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4830 esac
4831
4832 for depmode in $am_compiler_list; do
4833 # Setup a source with many dependencies, because some compilers
4834 # like to wrap large dependency lists on column 80 (with \), and
4835 # we should not choose a depcomp mode which is confused by this.
4836 #
4837 # We need to recreate these files for each test, as the compiler may
4838 # overwrite some of them when testing with obscure command lines.
4839 # This happens at least with the AIX C compiler.
4840 : > sub/conftest.c
4841 for i in 1 2 3 4 5 6; do
4842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4843 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4844 # Solaris 10 /bin/sh.
4845 echo '/* dummy */' > sub/conftst$i.h
4846 done
4847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4848
4849 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4850 # mode. It turns out that the SunPro C++ compiler does not properly
4851 # handle '-M -o', and we need to detect this. Also, some Intel
4852 # versions had trouble with output in subdirs.
4853 am__obj=sub/conftest.${OBJEXT-o}
4854 am__minus_obj="-o $am__obj"
4855 case $depmode in
4856 gcc)
4857 # This depmode causes a compiler race in universal mode.
4858 test "$am__universal" = false || continue
4859 ;;
4860 nosideeffect)
4861 # After this tag, mechanisms are not by side-effect, so they'll
4862 # only be used when explicitly requested.
4863 if test "x$enable_dependency_tracking" = xyes; then
4864 continue
4865 else
4866 break
4867 fi
4868 ;;
4869 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4870 # This compiler won't grok '-c -o', but also, the minuso test has
4871 # not run yet. These depmodes are late enough in the game, and
4872 # so weak that their functioning should not be impacted.
4873 am__obj=conftest.${OBJEXT-o}
4874 am__minus_obj=
4875 ;;
4876 none) break ;;
4877 esac
4878 if depmode=$depmode \
4879 source=sub/conftest.c object=$am__obj \
4880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4882 >/dev/null 2>conftest.err &&
4883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4887 # icc doesn't choke on unknown options, it will just issue warnings
4888 # or remarks (even with -Werror). So we grep stderr for any message
4889 # that says an option was ignored or not supported.
4890 # When given -MP, icc 7.0 and 7.1 complain thusly:
4891 # icc: Command line warning: ignoring option '-M'; no argument required
4892 # The diagnosis changed in icc 8.0:
4893 # icc: Command line remark: option '-MP' not supported
4894 if (grep 'ignoring option' conftest.err ||
4895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4896 am_cv_CXX_dependencies_compiler_type=$depmode
4897 break
4898 fi
4899 fi
4900 done
4901
4902 cd ..
4903 rm -rf conftest.dir
4904 else
4905 am_cv_CXX_dependencies_compiler_type=none
4906 fi
4907
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4910 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4911 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4912
4913 if
4914 test "x$enable_dependency_tracking" != xno \
4915 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4916 am__fastdepCXX_TRUE=
4917 am__fastdepCXX_FALSE='#'
4918 else
4919 am__fastdepCXX_TRUE='#'
4920 am__fastdepCXX_FALSE=
4921 fi
4922
4923
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4926 $as_echo_n "checking whether ln -s works... " >&6; }
4927 LN_S=$as_ln_s
4928 if test "$LN_S" = "ln -s"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4930 $as_echo "yes" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4933 $as_echo "no, using $LN_S" >&6; }
4934 fi
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4938 set x ${MAKE-make}
4939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 cat >conftest.make <<\_ACEOF
4944 SHELL = /bin/sh
4945 all:
4946 @echo '@@@%%%=$(MAKE)=@@@%%%'
4947 _ACEOF
4948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4950 *@@@%%%=?*=@@@%%%*)
4951 eval ac_cv_prog_make_${ac_make}_set=yes;;
4952 *)
4953 eval ac_cv_prog_make_${ac_make}_set=no;;
4954 esac
4955 rm -f conftest.make
4956 fi
4957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4959 $as_echo "yes" >&6; }
4960 SET_MAKE=
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964 SET_MAKE="MAKE=${MAKE-make}"
4965 fi
4966
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_RANLIB+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$RANLIB"; then
4976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 RANLIB=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4998 $as_echo "$RANLIB" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004
5005 fi
5006 if test -z "$ac_cv_prog_RANLIB"; then
5007 ac_ct_RANLIB=$RANLIB
5008 # Extract the first word of "ranlib", so it can be a program name with args.
5009 set dummy ranlib; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$ac_ct_RANLIB"; then
5016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_ac_ct_RANLIB="ranlib"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5036 if test -n "$ac_ct_RANLIB"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5038 $as_echo "$ac_ct_RANLIB" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044 if test "x$ac_ct_RANLIB" = x; then
5045 RANLIB=":"
5046 else
5047 case $cross_compiling:$ac_tool_warned in
5048 yes:)
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5051 ac_tool_warned=yes ;;
5052 esac
5053 RANLIB=$ac_ct_RANLIB
5054 fi
5055 else
5056 RANLIB="$ac_cv_prog_RANLIB"
5057 fi
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5069 if test -n "$ac_tool_prefix"; then
5070 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5071 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 case $PKG_CONFIG in
5078 [\\/]* | ?:[\\/]*)
5079 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5080 ;;
5081 *)
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 ;;
5098 esac
5099 fi
5100 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5101 if test -n "$PKG_CONFIG"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5103 $as_echo "$PKG_CONFIG" >&6; }
5104 else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109
5110 fi
5111 if test -z "$ac_cv_path_PKG_CONFIG"; then
5112 ac_pt_PKG_CONFIG=$PKG_CONFIG
5113 # Extract the first word of "pkg-config", so it can be a program name with args.
5114 set dummy pkg-config; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 case $ac_pt_PKG_CONFIG in
5121 [\\/]* | ?:[\\/]*)
5122 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5123 ;;
5124 *)
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136 done
5137 done
5138 IFS=$as_save_IFS
5139
5140 ;;
5141 esac
5142 fi
5143 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5144 if test -n "$ac_pt_PKG_CONFIG"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5146 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152 if test "x$ac_pt_PKG_CONFIG" = x; then
5153 PKG_CONFIG=""
5154 else
5155 case $cross_compiling:$ac_tool_warned in
5156 yes:)
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159 ac_tool_warned=yes ;;
5160 esac
5161 PKG_CONFIG=$ac_pt_PKG_CONFIG
5162 fi
5163 else
5164 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5165 fi
5166
5167 fi
5168 if test -n "$PKG_CONFIG"; then
5169 _pkg_min_version=0.9.0
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5171 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5172 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5174 $as_echo "yes" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 PKG_CONFIG=""
5179 fi
5180 fi
5181
5182 if test "x${PKG_CONFIG}" = x ; then :
5183 as_fn_error $? "required pkg-config utility not found" "$LINENO" 5
5184 fi
5185
5186 #
5187 # Check host environment
5188 #
5189 # Make sure we can run config.sub.
5190 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5191 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5194 $as_echo_n "checking build system type... " >&6; }
5195 if ${ac_cv_build+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 ac_build_alias=$build_alias
5199 test "x$ac_build_alias" = x &&
5200 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5201 test "x$ac_build_alias" = x &&
5202 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5203 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5204 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5205
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5208 $as_echo "$ac_cv_build" >&6; }
5209 case $ac_cv_build in
5210 *-*-*) ;;
5211 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5212 esac
5213 build=$ac_cv_build
5214 ac_save_IFS=$IFS; IFS='-'
5215 set x $ac_cv_build
5216 shift
5217 build_cpu=$1
5218 build_vendor=$2
5219 shift; shift
5220 # Remember, the first character of IFS is used to create $*,
5221 # except with old shells:
5222 build_os=$*
5223 IFS=$ac_save_IFS
5224 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5228 $as_echo_n "checking host system type... " >&6; }
5229 if ${ac_cv_host+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test "x$host_alias" = x; then
5233 ac_cv_host=$ac_cv_build
5234 else
5235 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5236 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5237 fi
5238
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5241 $as_echo "$ac_cv_host" >&6; }
5242 case $ac_cv_host in
5243 *-*-*) ;;
5244 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5245 esac
5246 host=$ac_cv_host
5247 ac_save_IFS=$IFS; IFS='-'
5248 set x $ac_cv_host
5249 shift
5250 host_cpu=$1
5251 host_vendor=$2
5252 shift; shift
5253 # Remember, the first character of IFS is used to create $*,
5254 # except with old shells:
5255 host_os=$*
5256 IFS=$ac_save_IFS
5257 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5258
5259
5260
5261 unix_host=generic
5262 case ${host} in #(
5263 *-*-darwin*) :
5264
5265 unix_host=darwin
5266 ;; #(
5267 *-*-linux* ) :
5268
5269 unix_host=linux
5270 ;; #(
5271 *) :
5272 ;;
5273 esac
5274
5275
5276
5277 $as_echo "#define UNIX_VARIANT 1" >>confdefs.h
5278
5279
5280 case ${unix_host} in #(
5281 darwin ) :
5282
5283
5284 $as_echo "#define DARWIN_SPECIAL_CASE 1" >>confdefs.h
5285
5286
5287 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
5288
5289 ;; #(
5290 linux ) :
5291
5292 $as_echo "#define LINUX_SPECIAL_CASE 1" >>confdefs.h
5293 ;; #(
5294 *) :
5295 generic
5296
5297 $as_echo "#define GENERIC_UNIX 1" >>confdefs.h
5298
5299 ;;
5300 esac
5301
5302
5303 cat >>confdefs.h <<_ACEOF
5304 #define CPUSTRING "${host_cpu}"
5305 _ACEOF
5306
5307
5308 cat >>confdefs.h <<_ACEOF
5309 #define BUILDSTRING "${host_os}"
5310 _ACEOF
5311
5312
5313 gl_dlopen_path=default
5314 if test "x${unix_host}" = xdarwin ; then :
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_LIBDIR (location of libGL.dylib)" >&5
5317 $as_echo_n "checking for GL_LIBDIR (location of libGL.dylib)... " >&6; }
5318
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GL_LIBDIR}" >&5
5320 $as_echo "${GL_LIBDIR}" >&6; }
5321 if test "x${GL_LIBDIR}" = x ; then :
5322
5323 gl_dlopen_path=${x_libraries}
5324 else
5325
5326 gl_dlopen_path=${GL_LIBDIR}
5327 fi
5328
5329 fi
5330
5331 case ${unix_host} in #(
5332 darwin ) :
5333 if test "x${gl_dlopen_path}" = xdefault ; then :
5334
5335 cat >>confdefs.h <<_ACEOF
5336 #define OPENGL_DRIVER "libGL.dylib"
5337 _ACEOF
5338
5339
5340 else
5341
5342 cat >>confdefs.h <<_ACEOF
5343 #define OPENGL_DRIVER "${gl_dlopen_path}/libGL.dylib"
5344 _ACEOF
5345
5346
5347 fi
5348
5349 cat >>confdefs.h <<_ACEOF
5350 #define OPENAL_DRIVER "/System/Library/Frameworks/OpenAL.framework/OpenAL"
5351 _ACEOF
5352
5353 ;; #(
5354 *) :
5355
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define OPENGL_DRIVER "libGL.so.1"
5359 _ACEOF
5360
5361
5362 cat >>confdefs.h <<_ACEOF
5363 #define OPENAL_DRIVER "libopenal.so.1"
5364 _ACEOF
5365
5366 ;;
5367 esac
5368
5369 #
5370 # Check for MAKE options
5371 #
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the client" >&5
5374 $as_echo_n "checking whether to build the client... " >&6; }
5375 # Check whether --enable-client was given.
5376 if test "${enable_client+set}" = set; then :
5377 enableval=$enable_client; build_client=${enableval}
5378 else
5379 build_client=yes
5380 fi
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_client}" >&5
5383 $as_echo "${build_client}" >&6; }
5384 if test "x${build_client}" = xyes ; then
5385 BUILD_CLIENT_TRUE=
5386 BUILD_CLIENT_FALSE='#'
5387 else
5388 BUILD_CLIENT_TRUE='#'
5389 BUILD_CLIENT_FALSE=
5390 fi
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install documents" >&5
5394 $as_echo_n "checking whether to install documents... " >&6; }
5395 # Check whether --enable-doc_install was given.
5396 if test "${enable_doc_install+set}" = set; then :
5397 enableval=$enable_doc_install; doc_install=${enableval}
5398 else
5399 doc_install=yes
5400 fi
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${doc_install}" >&5
5403 $as_echo "${doc_install}" >&6; }
5404 if test "x${doc_install}" = xyes ; then
5405 DOC_INSTALL_TRUE=
5406 DOC_INSTALL_FALSE='#'
5407 else
5408 DOC_INSTALL_TRUE='#'
5409 DOC_INSTALL_FALSE=
5410 fi
5411
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install icons" >&5
5414 $as_echo_n "checking whether to install icons... " >&6; }
5415 # Check whether --enable-icons_install was given.
5416 if test "${enable_icons_install+set}" = set; then :
5417 enableval=$enable_icons_install; icons_install=${enableval}
5418 else
5419 icons_install=yes
5420 fi
5421
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${icons_install}" >&5
5423 $as_echo "${icons_install}" >&6; }
5424 if test "x${icons_install}" = xyes ; then
5425 ICONS_INSTALL_TRUE=
5426 ICONS_INSTALL_FALSE='#'
5427 else
5428 ICONS_INSTALL_TRUE='#'
5429 ICONS_INSTALL_FALSE=
5430 fi
5431
5432
5433
5434 # Check whether --with-iconsdir was given.
5435 if test "${with_iconsdir+set}" = set; then :
5436 withval=$with_iconsdir; with_iconsdir=${withval}
5437 else
5438 with_iconsdir=${datadir}/icons
5439 fi
5440
5441 iconsdir=${with_icondir}
5442
5443
5444
5445 # Check whether --with-system-libode was given.
5446 if test "${with_system_libode+set}" = set; then :
5447 withval=$with_system_libode; system_libode=${withval}
5448 else
5449 system_libode=no
5450 fi
5451
5452
5453 #
5454 # Checks for libraries.
5455 #
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acos" >&5
5459 $as_echo_n "checking for library containing acos... " >&6; }
5460 if ${ac_cv_search_acos+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 ac_func_search_save_LIBS=$LIBS
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466
5467 /* Override any GCC internal prototype to avoid an error.
5468 Use char because int might match the return type of a GCC
5469 builtin and then its argument prototype would still apply. */
5470 #ifdef __cplusplus
5471 extern "C"
5472 #endif
5473 char acos ();
5474 int
5475 main ()
5476 {
5477 return acos ();
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 for ac_lib in '' m; do
5483 if test -z "$ac_lib"; then
5484 ac_res="none required"
5485 else
5486 ac_res=-l$ac_lib
5487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5488 fi
5489 if ac_fn_c_try_link "$LINENO"; then :
5490 ac_cv_search_acos=$ac_res
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext \
5493 conftest$ac_exeext
5494 if ${ac_cv_search_acos+:} false; then :
5495 break
5496 fi
5497 done
5498 if ${ac_cv_search_acos+:} false; then :
5499
5500 else
5501 ac_cv_search_acos=no
5502 fi
5503 rm conftest.$ac_ext
5504 LIBS=$ac_func_search_save_LIBS
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acos" >&5
5507 $as_echo "$ac_cv_search_acos" >&6; }
5508 ac_res=$ac_cv_search_acos
5509 if test "$ac_res" != no; then :
5510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5511
5512 fi
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5516 $as_echo_n "checking for library containing dlopen... " >&6; }
5517 if ${ac_cv_search_dlopen+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 ac_func_search_save_LIBS=$LIBS
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523
5524 /* Override any GCC internal prototype to avoid an error.
5525 Use char because int might match the return type of a GCC
5526 builtin and then its argument prototype would still apply. */
5527 #ifdef __cplusplus
5528 extern "C"
5529 #endif
5530 char dlopen ();
5531 int
5532 main ()
5533 {
5534 return dlopen ();
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 for ac_lib in '' dl; do
5540 if test -z "$ac_lib"; then
5541 ac_res="none required"
5542 else
5543 ac_res=-l$ac_lib
5544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5545 fi
5546 if ac_fn_c_try_link "$LINENO"; then :
5547 ac_cv_search_dlopen=$ac_res
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext
5551 if ${ac_cv_search_dlopen+:} false; then :
5552 break
5553 fi
5554 done
5555 if ${ac_cv_search_dlopen+:} false; then :
5556
5557 else
5558 ac_cv_search_dlopen=no
5559 fi
5560 rm conftest.$ac_ext
5561 LIBS=$ac_func_search_save_LIBS
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5564 $as_echo "$ac_cv_search_dlopen" >&6; }
5565 ac_res=$ac_cv_search_dlopen
5566 if test "$ac_res" != no; then :
5567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5568
5569 fi
5570
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5573 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5574 if ${ac_cv_search_clock_gettime+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 ac_func_search_save_LIBS=$LIBS
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580
5581 /* Override any GCC internal prototype to avoid an error.
5582 Use char because int might match the return type of a GCC
5583 builtin and then its argument prototype would still apply. */
5584 #ifdef __cplusplus
5585 extern "C"
5586 #endif
5587 char clock_gettime ();
5588 int
5589 main ()
5590 {
5591 return clock_gettime ();
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 for ac_lib in '' rt; do
5597 if test -z "$ac_lib"; then
5598 ac_res="none required"
5599 else
5600 ac_res=-l$ac_lib
5601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5602 fi
5603 if ac_fn_c_try_link "$LINENO"; then :
5604 ac_cv_search_clock_gettime=$ac_res
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext
5608 if ${ac_cv_search_clock_gettime+:} false; then :
5609 break
5610 fi
5611 done
5612 if ${ac_cv_search_clock_gettime+:} false; then :
5613
5614 else
5615 ac_cv_search_clock_gettime=no
5616 fi
5617 rm conftest.$ac_ext
5618 LIBS=$ac_func_search_save_LIBS
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5621 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5622 ac_res=$ac_cv_search_clock_gettime
5623 if test "$ac_res" != no; then :
5624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5625
5626 fi
5627
5628
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5631 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5632 if ${ac_cv_path_GREP+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -z "$GREP"; then
5636 ac_path_GREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in grep ggrep; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5646 as_fn_executable_p "$ac_path_GREP" || continue
5647 # Check for GNU ac_path_GREP and select it if it is found.
5648 # Check for GNU $ac_path_GREP
5649 case `"$ac_path_GREP" --version 2>&1` in
5650 *GNU*)
5651 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5652 *)
5653 ac_count=0
5654 $as_echo_n 0123456789 >"conftest.in"
5655 while :
5656 do
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo 'GREP' >> "conftest.nl"
5661 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 as_fn_arith $ac_count + 1 && ac_count=$as_val
5664 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_GREP="$ac_path_GREP"
5667 ac_path_GREP_max=$ac_count
5668 fi
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5674
5675 $ac_path_GREP_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_GREP"; then
5681 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5682 fi
5683 else
5684 ac_cv_path_GREP=$GREP
5685 fi
5686
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5689 $as_echo "$ac_cv_path_GREP" >&6; }
5690 GREP="$ac_cv_path_GREP"
5691
5692
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5694 $as_echo_n "checking for egrep... " >&6; }
5695 if ${ac_cv_path_EGREP+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5699 then ac_cv_path_EGREP="$GREP -E"
5700 else
5701 if test -z "$EGREP"; then
5702 ac_path_EGREP_found=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_prog in egrep; do
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5712 as_fn_executable_p "$ac_path_EGREP" || continue
5713 # Check for GNU ac_path_EGREP and select it if it is found.
5714 # Check for GNU $ac_path_EGREP
5715 case `"$ac_path_EGREP" --version 2>&1` in
5716 *GNU*)
5717 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5718 *)
5719 ac_count=0
5720 $as_echo_n 0123456789 >"conftest.in"
5721 while :
5722 do
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 $as_echo 'EGREP' >> "conftest.nl"
5727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729 as_fn_arith $ac_count + 1 && ac_count=$as_val
5730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_EGREP="$ac_path_EGREP"
5733 ac_path_EGREP_max=$ac_count
5734 fi
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5737 done
5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739 esac
5740
5741 $ac_path_EGREP_found && break 3
5742 done
5743 done
5744 done
5745 IFS=$as_save_IFS
5746 if test -z "$ac_cv_path_EGREP"; then
5747 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5748 fi
5749 else
5750 ac_cv_path_EGREP=$EGREP
5751 fi
5752
5753 fi
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5756 $as_echo "$ac_cv_path_EGREP" >&6; }
5757 EGREP="$ac_cv_path_EGREP"
5758
5759
5760 if test -z "$BUILD_CLIENT_TRUE"; then :
5761
5762
5763
5764
5765
5766
5767 ac_ext=c
5768 ac_cpp='$CPP $CPPFLAGS'
5769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772
5773 ax_pthread_ok=no
5774
5775 # We used to check for pthread.h first, but this fails if pthread.h
5776 # requires special compiler flags (e.g. on Tru64 or Sequent).
5777 # It gets checked for in the link test anyway.
5778
5779 # First of all, check if the user has set any of the PTHREAD_LIBS,
5780 # etcetera environment variables, and if threads linking works using
5781 # them:
5782 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
5783 ax_pthread_save_CC="$CC"
5784 ax_pthread_save_CFLAGS="$CFLAGS"
5785 ax_pthread_save_LIBS="$LIBS"
5786 if test "x$PTHREAD_CC" != "x"; then :
5787 CC="$PTHREAD_CC"
5788 fi
5789 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5790 LIBS="$PTHREAD_LIBS $LIBS"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
5792 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795
5796 /* Override any GCC internal prototype to avoid an error.
5797 Use char because int might match the return type of a GCC
5798 builtin and then its argument prototype would still apply. */
5799 #ifdef __cplusplus
5800 extern "C"
5801 #endif
5802 char pthread_join ();
5803 int
5804 main ()
5805 {
5806 return pthread_join ();
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 if ac_fn_c_try_link "$LINENO"; then :
5812 ax_pthread_ok=yes
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5817 $as_echo "$ax_pthread_ok" >&6; }
5818 if test "x$ax_pthread_ok" = "xno"; then
5819 PTHREAD_LIBS=""
5820 PTHREAD_CFLAGS=""
5821 fi
5822 CC="$ax_pthread_save_CC"
5823 CFLAGS="$ax_pthread_save_CFLAGS"
5824 LIBS="$ax_pthread_save_LIBS"
5825 fi
5826
5827 # We must check for the threads library under a number of different
5828 # names; the ordering is very important because some systems
5829 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5830 # libraries is broken (non-POSIX).
5831
5832 # Create a list of thread flags to try. Items starting with a "-" are
5833 # C compiler flags, and other items are library names, except for "none"
5834 # which indicates that we try without any flags at all, and "pthread-config"
5835 # which is a program returning the flags for the Pth emulation library.
5836
5837 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5838
5839 # The ordering *is* (sometimes) important. Some notes on the
5840 # individual items follow:
5841
5842 # pthreads: AIX (must check this before -lpthread)
5843 # none: in case threads are in libc; should be tried before -Kthread and
5844 # other compiler flags to prevent continual compiler warnings
5845 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5846 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
5847 # (Note: HP C rejects this with "bad form for `-t' option")
5848 # -pthreads: Solaris/gcc (Note: HP C also rejects)
5849 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5850 # doesn't hurt to check since this sometimes defines pthreads and
5851 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
5852 # is present but should not be used directly; and before -mthreads,
5853 # because the compiler interprets this as "-mt" + "-hreads")
5854 # -mthreads: Mingw32/gcc, Lynx/gcc
5855 # pthread: Linux, etcetera
5856 # --thread-safe: KAI C++
5857 # pthread-config: use pthread-config program (for GNU Pth library)
5858
5859 case $host_os in
5860
5861 freebsd*)
5862
5863 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5864 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5865
5866 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
5867 ;;
5868
5869 hpux*)
5870
5871 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
5872 # multi-threading and also sets -lpthread."
5873
5874 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
5875 ;;
5876
5877 openedition*)
5878
5879 # IBM z/OS requires a feature-test macro to be defined in order to
5880 # enable POSIX threads at all, so give the user a hint if this is
5881 # not set. (We don't define these ourselves, as they can affect
5882 # other portions of the system API in unpredictable ways.)
5883
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886
5887 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
5888 AX_PTHREAD_ZOS_MISSING
5889 # endif
5890
5891 _ACEOF
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
5895 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
5896 fi
5897 rm -f conftest*
5898
5899 ;;
5900
5901 solaris*)
5902
5903 # On Solaris (at least, for some versions), libc contains stubbed
5904 # (non-functional) versions of the pthreads routines, so link-based
5905 # tests will erroneously succeed. (N.B.: The stubs are missing
5906 # pthread_cleanup_push, or rather a function called by this macro,
5907 # so we could check for that, but who knows whether they'll stub
5908 # that too in a future libc.) So we'll check first for the
5909 # standard Solaris way of linking pthreads (-mt -lpthread).
5910
5911 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
5912 ;;
5913 esac
5914
5915 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
5916
5917 if test "x$GCC" = "xyes"; then :
5918 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
5919 fi
5920
5921 # The presence of a feature test macro requesting re-entrant function
5922 # definitions is, on some systems, a strong hint that pthreads support is
5923 # correctly enabled
5924
5925 case $host_os in
5926 darwin* | hpux* | linux* | osf* | solaris*)
5927 ax_pthread_check_macro="_REENTRANT"
5928 ;;
5929
5930 aix*)
5931 ax_pthread_check_macro="_THREAD_SAFE"
5932 ;;
5933
5934 *)
5935 ax_pthread_check_macro="--"
5936 ;;
5937 esac
5938 if test "x$ax_pthread_check_macro" = "x--"; then :
5939 ax_pthread_check_cond=0
5940 else
5941 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
5942 fi
5943
5944 # Are we compiling with Clang?
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
5947 $as_echo_n "checking whether $CC is Clang... " >&6; }
5948 if ${ax_cv_PTHREAD_CLANG+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 ax_cv_PTHREAD_CLANG=no
5952 # Note that Autoconf sets GCC=yes for Clang as well as GCC
5953 if test "x$GCC" = "xyes"; then
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
5957 # if defined(__clang__) && defined(__llvm__)
5958 AX_PTHREAD_CC_IS_CLANG
5959 # endif
5960
5961 _ACEOF
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
5964 ax_cv_PTHREAD_CLANG=yes
5965 fi
5966 rm -f conftest*
5967
5968 fi
5969
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
5972 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
5973 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
5974
5975 ax_pthread_clang_warning=no
5976
5977 # Clang needs special handling, because older versions handle the -pthread
5978 # option in a rather... idiosyncratic way
5979
5980 if test "x$ax_pthread_clang" = "xyes"; then
5981
5982 # Clang takes -pthread; it has never supported any other flag
5983
5984 # (Note 1: This will need to be revisited if a system that Clang
5985 # supports has POSIX threads in a separate library. This tends not
5986 # to be the way of modern systems, but it's conceivable.)
5987
5988 # (Note 2: On some systems, notably Darwin, -pthread is not needed
5989 # to get POSIX threads support; the API is always present and
5990 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
5991 # -pthread does define _REENTRANT, and while the Darwin headers
5992 # ignore this macro, third-party headers might not.)
5993
5994 PTHREAD_CFLAGS="-pthread"
5995 PTHREAD_LIBS=
5996
5997 ax_pthread_ok=yes
5998
5999 # However, older versions of Clang make a point of warning the user
6000 # that, in an invocation where only linking and no compilation is
6001 # taking place, the -pthread option has no effect ("argument unused
6002 # during compilation"). They expect -pthread to be passed in only
6003 # when source code is being compiled.
6004 #
6005 # Problem is, this is at odds with the way Automake and most other
6006 # C build frameworks function, which is that the same flags used in
6007 # compilation (CFLAGS) are also used in linking. Many systems
6008 # supported by AX_PTHREAD require exactly this for POSIX threads
6009 # support, and in fact it is often not straightforward to specify a
6010 # flag that is used only in the compilation phase and not in
6011 # linking. Such a scenario is extremely rare in practice.
6012 #
6013 # Even though use of the -pthread flag in linking would only print
6014 # a warning, this can be a nuisance for well-run software projects
6015 # that build with -Werror. So if the active version of Clang has
6016 # this misfeature, we search for an option to squash it.
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6019 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6020 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6024 # Create an alternate version of $ac_link that compiles and
6025 # links in two steps (.c -> .o, .o -> exe) instead of one
6026 # (.c -> exe), because the warning occurs only in the second
6027 # step
6028 ax_pthread_save_ac_link="$ac_link"
6029 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6030 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6031 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6032 ax_pthread_save_CFLAGS="$CFLAGS"
6033 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6034 if test "x$ax_pthread_try" = "xunknown"; then :
6035 break
6036 fi
6037 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6038 ac_link="$ax_pthread_save_ac_link"
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 int main(void){return 0;}
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 ac_link="$ax_pthread_2step_ac_link"
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 int main(void){return 0;}
6048 _ACEOF
6049 if ac_fn_c_try_link "$LINENO"; then :
6050 break
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054
6055 fi
6056 rm -f core conftest.err conftest.$ac_objext \
6057 conftest$ac_exeext conftest.$ac_ext
6058 done
6059 ac_link="$ax_pthread_save_ac_link"
6060 CFLAGS="$ax_pthread_save_CFLAGS"
6061 if test "x$ax_pthread_try" = "x"; then :
6062 ax_pthread_try=no
6063 fi
6064 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6065
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6068 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6069
6070 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6071 no | unknown) ;;
6072 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6073 esac
6074
6075 fi # $ax_pthread_clang = yes
6076
6077 if test "x$ax_pthread_ok" = "xno"; then
6078 for ax_pthread_try_flag in $ax_pthread_flags; do
6079
6080 case $ax_pthread_try_flag in
6081 none)
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6083 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
6084 ;;
6085
6086 -mt,pthread)
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6088 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6089 PTHREAD_CFLAGS="-mt"
6090 PTHREAD_LIBS="-lpthread"
6091 ;;
6092
6093 -*)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6095 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6096 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6097 ;;
6098
6099 pthread-config)
6100 # Extract the first word of "pthread-config", so it can be a program name with args.
6101 set dummy pthread-config; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_ax_pthread_config+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 if test -n "$ax_pthread_config"; then
6108 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117 ac_cv_prog_ax_pthread_config="yes"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6120 fi
6121 done
6122 done
6123 IFS=$as_save_IFS
6124
6125 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6126 fi
6127 fi
6128 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6129 if test -n "$ax_pthread_config"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6131 $as_echo "$ax_pthread_config" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137
6138 if test "x$ax_pthread_config" = "xno"; then :
6139 continue
6140 fi
6141 PTHREAD_CFLAGS="`pthread-config --cflags`"
6142 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6143 ;;
6144
6145 *)
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6147 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6148 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6149 ;;
6150 esac
6151
6152 ax_pthread_save_CFLAGS="$CFLAGS"
6153 ax_pthread_save_LIBS="$LIBS"
6154 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6155 LIBS="$PTHREAD_LIBS $LIBS"
6156
6157 # Check for various functions. We must include pthread.h,
6158 # since some functions may be macros. (On the Sequent, we
6159 # need a special flag -Kthread to make this header compile.)
6160 # We check for pthread_join because it is in -lpthread on IRIX
6161 # while pthread_create is in libc. We check for pthread_attr_init
6162 # due to DEC craziness with -lpthreads. We check for
6163 # pthread_cleanup_push because it is one of the few pthread
6164 # functions on Solaris that doesn't have a non-functional libc stub.
6165 # We try pthread_create on general principles.
6166
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 #include <pthread.h>
6170 # if $ax_pthread_check_cond
6171 # error "$ax_pthread_check_macro must be defined"
6172 # endif
6173 static void routine(void *a) { a = 0; }
6174 static void *start_routine(void *a) { return a; }
6175 int
6176 main ()
6177 {
6178 pthread_t th; pthread_attr_t attr;
6179 pthread_create(&th, 0, start_routine, 0);
6180 pthread_join(th, 0);
6181 pthread_attr_init(&attr);
6182 pthread_cleanup_push(routine, 0);
6183 pthread_cleanup_pop(0) /* ; */
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 if ac_fn_c_try_link "$LINENO"; then :
6189 ax_pthread_ok=yes
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193
6194 CFLAGS="$ax_pthread_save_CFLAGS"
6195 LIBS="$ax_pthread_save_LIBS"
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6198 $as_echo "$ax_pthread_ok" >&6; }
6199 if test "x$ax_pthread_ok" = "xyes"; then :
6200 break
6201 fi
6202
6203 PTHREAD_LIBS=""
6204 PTHREAD_CFLAGS=""
6205 done
6206 fi
6207
6208 # Various other checks:
6209 if test "x$ax_pthread_ok" = "xyes"; then
6210 ax_pthread_save_CFLAGS="$CFLAGS"
6211 ax_pthread_save_LIBS="$LIBS"
6212 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6213 LIBS="$PTHREAD_LIBS $LIBS"
6214
6215 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6217 $as_echo_n "checking for joinable pthread attribute... " >&6; }
6218 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6222 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <pthread.h>
6226 int
6227 main ()
6228 {
6229 int attr = $ax_pthread_attr; return attr /* ; */
6230 ;
6231 return 0;
6232 }
6233 _ACEOF
6234 if ac_fn_c_try_link "$LINENO"; then :
6235 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239 done
6240
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6243 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6244 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6245 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6246 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6247
6248 cat >>confdefs.h <<_ACEOF
6249 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6250 _ACEOF
6251
6252 ax_pthread_joinable_attr_defined=yes
6253
6254 fi
6255
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6257 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6258 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6262 case $host_os in
6263 solaris*)
6264 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6265 ;;
6266 esac
6267
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6270 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6271 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6272 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6273 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6274 ax_pthread_special_flags_added=yes
6275 fi
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6278 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6279 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <pthread.h>
6285 int
6286 main ()
6287 {
6288 int i = PTHREAD_PRIO_INHERIT;
6289 ;
6290 return 0;
6291 }
6292 _ACEOF
6293 if ac_fn_c_try_link "$LINENO"; then :
6294 ax_cv_PTHREAD_PRIO_INHERIT=yes
6295 else
6296 ax_cv_PTHREAD_PRIO_INHERIT=no
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6300
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6303 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6304 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6305 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6306
6307 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6308
6309 ax_pthread_prio_inherit_defined=yes
6310
6311 fi
6312
6313 CFLAGS="$ax_pthread_save_CFLAGS"
6314 LIBS="$ax_pthread_save_LIBS"
6315
6316 # More AIX lossage: compile with *_r variant
6317 if test "x$GCC" != "xyes"; then
6318 case $host_os in
6319 aix*)
6320 case "x/$CC" in #(
6321 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6322 #handle absolute path differently from PATH based program lookup
6323 case "x$CC" in #(
6324 x/*) :
6325 if as_fn_executable_p ${CC}_r; then :
6326 PTHREAD_CC="${CC}_r"
6327 fi ;; #(
6328 *) :
6329 for ac_prog in ${CC}_r
6330 do
6331 # Extract the first word of "$ac_prog", so it can be a program name with args.
6332 set dummy $ac_prog; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$PTHREAD_CC"; then
6339 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348 ac_cv_prog_PTHREAD_CC="$ac_prog"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6351 fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6359 if test -n "$PTHREAD_CC"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6361 $as_echo "$PTHREAD_CC" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367
6368 test -n "$PTHREAD_CC" && break
6369 done
6370 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6371 ;;
6372 esac ;; #(
6373 *) :
6374 ;;
6375 esac
6376 ;;
6377 esac
6378 fi
6379 fi
6380
6381 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6382
6383
6384
6385
6386
6387 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6388 if test "x$ax_pthread_ok" = "xyes"; then
6389
6390 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6391
6392 :
6393 else
6394 ax_pthread_ok=no
6395 as_fn_error $? "required pthreads support not found (or invalid CFLAGS)" "$LINENO" 5
6396 fi
6397 ac_ext=c
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402
6403
6404 if test "x${PTHREAD_LIBS}" = x ; then :
6405 PTHREAD_LIBS="-pthread"
6406 fi
6407
6408
6409
6410 pkg_failed=no
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
6412 $as_echo_n "checking for x11... " >&6; }
6413
6414 if test -n "$X11_CFLAGS"; then
6415 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
6416 elif test -n "$PKG_CONFIG"; then
6417 if test -n "$PKG_CONFIG" && \
6418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6419 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6424 test "x$?" != "x0" && pkg_failed=yes
6425 else
6426 pkg_failed=yes
6427 fi
6428 else
6429 pkg_failed=untried
6430 fi
6431 if test -n "$X11_LIBS"; then
6432 pkg_cv_X11_LIBS="$X11_LIBS"
6433 elif test -n "$PKG_CONFIG"; then
6434 if test -n "$PKG_CONFIG" && \
6435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6436 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6437 ac_status=$?
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }; then
6440 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6441 test "x$?" != "x0" && pkg_failed=yes
6442 else
6443 pkg_failed=yes
6444 fi
6445 else
6446 pkg_failed=untried
6447 fi
6448
6449
6450
6451 if test $pkg_failed = yes; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454
6455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6456 _pkg_short_errors_supported=yes
6457 else
6458 _pkg_short_errors_supported=no
6459 fi
6460 if test $_pkg_short_errors_supported = yes; then
6461 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6462 else
6463 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6464 fi
6465 # Put the nasty error message in config.log where it belongs
6466 echo "$X11_PKG_ERRORS" >&5
6467
6468
6469 as_fn_error $? "required X11 library not found" "$LINENO" 5
6470
6471 elif test $pkg_failed = untried; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474
6475 as_fn_error $? "required X11 library not found" "$LINENO" 5
6476
6477 else
6478 X11_CFLAGS=$pkg_cv_X11_CFLAGS
6479 X11_LIBS=$pkg_cv_X11_LIBS
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6481 $as_echo "yes" >&6; }
6482
6483 fi
6484
6485
6486 # Check whether --with-xf86vm was given.
6487 if test "${with_xf86vm+set}" = set; then :
6488 withval=$with_xf86vm;
6489 else
6490 with_xf86vm=check
6491 fi
6492
6493 have_Xxf86vm=no
6494 if test "x${with_xf86vm}" != xno ; then :
6495
6496
6497 pkg_failed=no
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xxf86vm" >&5
6499 $as_echo_n "checking for xxf86vm... " >&6; }
6500
6501 if test -n "$XXF86VM_CFLAGS"; then
6502 pkg_cv_XXF86VM_CFLAGS="$XXF86VM_CFLAGS"
6503 elif test -n "$PKG_CONFIG"; then
6504 if test -n "$PKG_CONFIG" && \
6505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
6506 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 pkg_cv_XXF86VM_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
6511 test "x$?" != "x0" && pkg_failed=yes
6512 else
6513 pkg_failed=yes
6514 fi
6515 else
6516 pkg_failed=untried
6517 fi
6518 if test -n "$XXF86VM_LIBS"; then
6519 pkg_cv_XXF86VM_LIBS="$XXF86VM_LIBS"
6520 elif test -n "$PKG_CONFIG"; then
6521 if test -n "$PKG_CONFIG" && \
6522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
6523 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
6524 ac_status=$?
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }; then
6527 pkg_cv_XXF86VM_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
6528 test "x$?" != "x0" && pkg_failed=yes
6529 else
6530 pkg_failed=yes
6531 fi
6532 else
6533 pkg_failed=untried
6534 fi
6535
6536
6537
6538 if test $pkg_failed = yes; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541
6542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6543 _pkg_short_errors_supported=yes
6544 else
6545 _pkg_short_errors_supported=no
6546 fi
6547 if test $_pkg_short_errors_supported = yes; then
6548 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
6549 else
6550 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
6551 fi
6552 # Put the nasty error message in config.log where it belongs
6553 echo "$XXF86VM_PKG_ERRORS" >&5
6554
6555
6556 have_Xxf86vm=no
6557 if test "x${with_xf86vm}" = xyes ; then :
6558
6559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6561 as_fn_error $? "--with-xf86vm specified, library or headers found
6562 See \`config.log' for more details" "$LINENO" 5; }
6563
6564 fi
6565
6566 elif test $pkg_failed = untried; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569
6570 have_Xxf86vm=no
6571 if test "x${with_xf86vm}" = xyes ; then :
6572
6573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6575 as_fn_error $? "--with-xf86vm specified, library or headers found
6576 See \`config.log' for more details" "$LINENO" 5; }
6577
6578 fi
6579
6580 else
6581 XXF86VM_CFLAGS=$pkg_cv_XXF86VM_CFLAGS
6582 XXF86VM_LIBS=$pkg_cv_XXF86VM_LIBS
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 $as_echo "yes" >&6; }
6585
6586 have_Xxf86vm=yes
6587
6588 $as_echo "#define HAVE_XXF86VM 1" >>confdefs.h
6589
6590
6591 fi
6592
6593 fi
6594
6595
6596 # Check whether --with-xf86dga was given.
6597 if test "${with_xf86dga+set}" = set; then :
6598 withval=$with_xf86dga;
6599 else
6600 with_xf86dga=no
6601 fi
6602
6603 have_Xxf86dga=no
6604 if test "x$with_xf86dga" != xno ; then :
6605
6606
6607 pkg_failed=no
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xxf86dga" >&5
6609 $as_echo_n "checking for xxf86dga... " >&6; }
6610
6611 if test -n "$XXF86DGA_CFLAGS"; then
6612 pkg_cv_XXF86DGA_CFLAGS="$XXF86DGA_CFLAGS"
6613 elif test -n "$PKG_CONFIG"; then
6614 if test -n "$PKG_CONFIG" && \
6615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
6616 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
6617 ac_status=$?
6618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619 test $ac_status = 0; }; then
6620 pkg_cv_XXF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null`
6621 test "x$?" != "x0" && pkg_failed=yes
6622 else
6623 pkg_failed=yes
6624 fi
6625 else
6626 pkg_failed=untried
6627 fi
6628 if test -n "$XXF86DGA_LIBS"; then
6629 pkg_cv_XXF86DGA_LIBS="$XXF86DGA_LIBS"
6630 elif test -n "$PKG_CONFIG"; then
6631 if test -n "$PKG_CONFIG" && \
6632 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
6633 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
6634 ac_status=$?
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }; then
6637 pkg_cv_XXF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null`
6638 test "x$?" != "x0" && pkg_failed=yes
6639 else
6640 pkg_failed=yes
6641 fi
6642 else
6643 pkg_failed=untried
6644 fi
6645
6646
6647
6648 if test $pkg_failed = yes; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6651
6652 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6653 _pkg_short_errors_supported=yes
6654 else
6655 _pkg_short_errors_supported=no
6656 fi
6657 if test $_pkg_short_errors_supported = yes; then
6658 XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86dga" 2>&1`
6659 else
6660 XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86dga" 2>&1`
6661 fi
6662 # Put the nasty error message in config.log where it belongs
6663 echo "$XXF86DGA_PKG_ERRORS" >&5
6664
6665 as_fn_error $? "Package requirements (xxf86dga) were not met:
6666
6667 $XXF86DGA_PKG_ERRORS
6668
6669 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6670 installed software in a non-standard prefix.
6671
6672 Alternatively, you may set the environment variables XXF86DGA_CFLAGS
6673 and XXF86DGA_LIBS to avoid the need to call pkg-config.
6674 See the pkg-config man page for more details." "$LINENO" 5
6675 elif test $pkg_failed = untried; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6680 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6681 is in your PATH or set the PKG_CONFIG environment variable to the full
6682 path to pkg-config.
6683
6684 Alternatively, you may set the environment variables XXF86DGA_CFLAGS
6685 and XXF86DGA_LIBS to avoid the need to call pkg-config.
6686 See the pkg-config man page for more details.
6687
6688 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6689 See \`config.log' for more details" "$LINENO" 5; }
6690 else
6691 XXF86DGA_CFLAGS=$pkg_cv_XXF86DGA_CFLAGS
6692 XXF86DGA_LIBS=$pkg_cv_XXF86DGA_LIBS
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6694 $as_echo "yes" >&6; }
6695
6696 have_Xxf86dga=yes
6697
6698 $as_echo "#define HAVE_XXF86DGA 1" >>confdefs.h
6699
6700 for ac_header in X11/extensions/Xxf86dga.h
6701 do :
6702 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xxf86dga.h" "ac_cv_header_X11_extensions_Xxf86dga_h" "
6703 #include <X11/Xlib.h>
6704 #include <X11/Xatom.h>
6705
6706 "
6707 if test "x$ac_cv_header_X11_extensions_Xxf86dga_h" = xyes; then :
6708 cat >>confdefs.h <<_ACEOF
6709 #define HAVE_X11_EXTENSIONS_XXF86DGA_H 1
6710 _ACEOF
6711
6712 fi
6713
6714 done
6715
6716
6717 fi
6718
6719 else
6720
6721 have_Xxf86dga=no
6722 if test "x${with_xf86dga}" = xyes ; then :
6723
6724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6726 as_fn_error $? "--with-xf86dga specified, library or headers not found
6727 See \`config.log' for more details" "$LINENO" 5; }
6728
6729 fi
6730
6731 fi
6732
6733
6734 # Check whether --with-zlib was given.
6735 if test "${with_zlib+set}" = set; then :
6736 withval=$with_zlib;
6737 else
6738 with_zlib=check
6739 fi
6740
6741 have_zlib=no
6742 if test "x${with_zlib}" != xno ; then :
6743
6744
6745 pkg_failed=no
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
6747 $as_echo_n "checking for zlib... " >&6; }
6748
6749 if test -n "$ZLIB_CFLAGS"; then
6750 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
6751 elif test -n "$PKG_CONFIG"; then
6752 if test -n "$PKG_CONFIG" && \
6753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
6754 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
6755 ac_status=$?
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; }; then
6758 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
6759 test "x$?" != "x0" && pkg_failed=yes
6760 else
6761 pkg_failed=yes
6762 fi
6763 else
6764 pkg_failed=untried
6765 fi
6766 if test -n "$ZLIB_LIBS"; then
6767 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
6768 elif test -n "$PKG_CONFIG"; then
6769 if test -n "$PKG_CONFIG" && \
6770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
6771 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
6772 ac_status=$?
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; }; then
6775 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
6776 test "x$?" != "x0" && pkg_failed=yes
6777 else
6778 pkg_failed=yes
6779 fi
6780 else
6781 pkg_failed=untried
6782 fi
6783
6784
6785
6786 if test $pkg_failed = yes; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789
6790 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6791 _pkg_short_errors_supported=yes
6792 else
6793 _pkg_short_errors_supported=no
6794 fi
6795 if test $_pkg_short_errors_supported = yes; then
6796 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
6797 else
6798 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
6799 fi
6800 # Put the nasty error message in config.log where it belongs
6801 echo "$ZLIB_PKG_ERRORS" >&5
6802
6803
6804 have_zlib=no
6805 if test "x${with_zlib}" = xyes ; then :
6806
6807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6809 as_fn_error $? "--with-zlib specified, library or headers not found
6810 See \`config.log' for more details" "$LINENO" 5; }
6811
6812 fi
6813
6814 elif test $pkg_failed = untried; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817
6818 have_zlib=no
6819 if test "x${with_zlib}" = xyes ; then :
6820
6821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6823 as_fn_error $? "--with-zlib specified, library or headers not found
6824 See \`config.log' for more details" "$LINENO" 5; }
6825
6826 fi
6827
6828 else
6829 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
6830 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6832 $as_echo "yes" >&6; }
6833
6834 have_zlib=yes
6835
6836 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
6837
6838
6839 fi
6840
6841 fi
6842
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_read_header" >&5
6844 $as_echo_n "checking for library containing jpeg_read_header... " >&6; }
6845 if ${ac_cv_search_jpeg_read_header+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 ac_func_search_save_LIBS=$LIBS
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851
6852 /* Override any GCC internal prototype to avoid an error.
6853 Use char because int might match the return type of a GCC
6854 builtin and then its argument prototype would still apply. */
6855 #ifdef __cplusplus
6856 extern "C"
6857 #endif
6858 char jpeg_read_header ();
6859 int
6860 main ()
6861 {
6862 return jpeg_read_header ();
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 for ac_lib in '' jpeg; do
6868 if test -z "$ac_lib"; then
6869 ac_res="none required"
6870 else
6871 ac_res=-l$ac_lib
6872 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6873 fi
6874 if ac_fn_c_try_link "$LINENO"; then :
6875 ac_cv_search_jpeg_read_header=$ac_res
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext \
6878 conftest$ac_exeext
6879 if ${ac_cv_search_jpeg_read_header+:} false; then :
6880 break
6881 fi
6882 done
6883 if ${ac_cv_search_jpeg_read_header+:} false; then :
6884
6885 else
6886 ac_cv_search_jpeg_read_header=no
6887 fi
6888 rm conftest.$ac_ext
6889 LIBS=$ac_func_search_save_LIBS
6890 fi
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_read_header" >&5
6892 $as_echo "$ac_cv_search_jpeg_read_header" >&6; }
6893 ac_res=$ac_cv_search_jpeg_read_header
6894 if test "$ac_res" != no; then :
6895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6896
6897 else
6898
6899 as_fn_error $? "required jpeg library not found" "$LINENO" 5
6900
6901 fi
6902
6903
6904
6905 pkg_failed=no
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
6907 $as_echo_n "checking for libcurl... " >&6; }
6908
6909 if test -n "$LIBCURL_CFLAGS"; then
6910 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
6911 elif test -n "$PKG_CONFIG"; then
6912 if test -n "$PKG_CONFIG" && \
6913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
6914 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
6915 ac_status=$?
6916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6917 test $ac_status = 0; }; then
6918 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
6919 test "x$?" != "x0" && pkg_failed=yes
6920 else
6921 pkg_failed=yes
6922 fi
6923 else
6924 pkg_failed=untried
6925 fi
6926 if test -n "$LIBCURL_LIBS"; then
6927 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
6928 elif test -n "$PKG_CONFIG"; then
6929 if test -n "$PKG_CONFIG" && \
6930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
6931 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
6932 ac_status=$?
6933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934 test $ac_status = 0; }; then
6935 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
6936 test "x$?" != "x0" && pkg_failed=yes
6937 else
6938 pkg_failed=yes
6939 fi
6940 else
6941 pkg_failed=untried
6942 fi
6943
6944
6945
6946 if test $pkg_failed = yes; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949
6950 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6951 _pkg_short_errors_supported=yes
6952 else
6953 _pkg_short_errors_supported=no
6954 fi
6955 if test $_pkg_short_errors_supported = yes; then
6956 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
6957 else
6958 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
6959 fi
6960 # Put the nasty error message in config.log where it belongs
6961 echo "$LIBCURL_PKG_ERRORS" >&5
6962
6963
6964 as_fn_error $? "required cURL library not found" "$LINENO" 5
6965
6966 elif test $pkg_failed = untried; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969
6970 as_fn_error $? "required cURL library not found" "$LINENO" 5
6971
6972 else
6973 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
6974 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6976 $as_echo "yes" >&6; }
6977
6978 fi
6979
6980
6981 pkg_failed=no
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg" >&5
6983 $as_echo_n "checking for ogg... " >&6; }
6984
6985 if test -n "$OGG_CFLAGS"; then
6986 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
6987 elif test -n "$PKG_CONFIG"; then
6988 if test -n "$PKG_CONFIG" && \
6989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg\""; } >&5
6990 ($PKG_CONFIG --exists --print-errors "ogg") 2>&5
6991 ac_status=$?
6992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993 test $ac_status = 0; }; then
6994 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg" 2>/dev/null`
6995 test "x$?" != "x0" && pkg_failed=yes
6996 else
6997 pkg_failed=yes
6998 fi
6999 else
7000 pkg_failed=untried
7001 fi
7002 if test -n "$OGG_LIBS"; then
7003 pkg_cv_OGG_LIBS="$OGG_LIBS"
7004 elif test -n "$PKG_CONFIG"; then
7005 if test -n "$PKG_CONFIG" && \
7006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg\""; } >&5
7007 ($PKG_CONFIG --exists --print-errors "ogg") 2>&5
7008 ac_status=$?
7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010 test $ac_status = 0; }; then
7011 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg" 2>/dev/null`
7012 test "x$?" != "x0" && pkg_failed=yes
7013 else
7014 pkg_failed=yes
7015 fi
7016 else
7017 pkg_failed=untried
7018 fi
7019
7020
7021
7022 if test $pkg_failed = yes; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025
7026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7027 _pkg_short_errors_supported=yes
7028 else
7029 _pkg_short_errors_supported=no
7030 fi
7031 if test $_pkg_short_errors_supported = yes; then
7032 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg" 2>&1`
7033 else
7034 OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg" 2>&1`
7035 fi
7036 # Put the nasty error message in config.log where it belongs
7037 echo "$OGG_PKG_ERRORS" >&5
7038
7039
7040 as_fn_error $? "required Ogg libraries not found" "$LINENO" 5
7041
7042 elif test $pkg_failed = untried; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045
7046 as_fn_error $? "required Ogg libraries not found" "$LINENO" 5
7047
7048 else
7049 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
7050 OGG_LIBS=$pkg_cv_OGG_LIBS
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7052 $as_echo "yes" >&6; }
7053
7054 fi
7055
7056
7057 pkg_failed=no
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis vorbisfile" >&5
7059 $as_echo_n "checking for vorbis vorbisfile... " >&6; }
7060
7061 if test -n "$VORBIS_CFLAGS"; then
7062 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
7063 elif test -n "$PKG_CONFIG"; then
7064 if test -n "$PKG_CONFIG" && \
7065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis vorbisfile\""; } >&5
7066 ($PKG_CONFIG --exists --print-errors "vorbis vorbisfile") 2>&5
7067 ac_status=$?
7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069 test $ac_status = 0; }; then
7070 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis vorbisfile" 2>/dev/null`
7071 test "x$?" != "x0" && pkg_failed=yes
7072 else
7073 pkg_failed=yes
7074 fi
7075 else
7076 pkg_failed=untried
7077 fi
7078 if test -n "$VORBIS_LIBS"; then
7079 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
7080 elif test -n "$PKG_CONFIG"; then
7081 if test -n "$PKG_CONFIG" && \
7082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis vorbisfile\""; } >&5
7083 ($PKG_CONFIG --exists --print-errors "vorbis vorbisfile") 2>&5
7084 ac_status=$?
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }; then
7087 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis vorbisfile" 2>/dev/null`
7088 test "x$?" != "x0" && pkg_failed=yes
7089 else
7090 pkg_failed=yes
7091 fi
7092 else
7093 pkg_failed=untried
7094 fi
7095
7096
7097
7098 if test $pkg_failed = yes; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101
7102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7103 _pkg_short_errors_supported=yes
7104 else
7105 _pkg_short_errors_supported=no
7106 fi
7107 if test $_pkg_short_errors_supported = yes; then
7108 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vorbis vorbisfile" 2>&1`
7109 else
7110 VORBIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vorbis vorbisfile" 2>&1`
7111 fi
7112 # Put the nasty error message in config.log where it belongs
7113 echo "$VORBIS_PKG_ERRORS" >&5
7114
7115
7116 as_fn_error $? "required Vorbis libraries not found" "$LINENO" 5
7117
7118 elif test $pkg_failed = untried; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121
7122 as_fn_error $? "required Vorbis libraries not found" "$LINENO" 5
7123
7124 else
7125 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
7126 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }
7129
7130 fi
7131
7132
7133 pkg_failed=no
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
7135 $as_echo_n "checking for freetype2... " >&6; }
7136
7137 if test -n "$FREETYPE2_CFLAGS"; then
7138 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
7139 elif test -n "$PKG_CONFIG"; then
7140 if test -n "$PKG_CONFIG" && \
7141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
7142 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
7143 ac_status=$?
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; }; then
7146 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
7147 test "x$?" != "x0" && pkg_failed=yes
7148 else
7149 pkg_failed=yes
7150 fi
7151 else
7152 pkg_failed=untried
7153 fi
7154 if test -n "$FREETYPE2_LIBS"; then
7155 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
7156 elif test -n "$PKG_CONFIG"; then
7157 if test -n "$PKG_CONFIG" && \
7158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
7159 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
7160 ac_status=$?
7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162 test $ac_status = 0; }; then
7163 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
7164 test "x$?" != "x0" && pkg_failed=yes
7165 else
7166 pkg_failed=yes
7167 fi
7168 else
7169 pkg_failed=untried
7170 fi
7171
7172
7173
7174 if test $pkg_failed = yes; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177
7178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7179 _pkg_short_errors_supported=yes
7180 else
7181 _pkg_short_errors_supported=no
7182 fi
7183 if test $_pkg_short_errors_supported = yes; then
7184 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
7185 else
7186 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
7187 fi
7188 # Put the nasty error message in config.log where it belongs
7189 echo "$FREETYPE2_PKG_ERRORS" >&5
7190
7191
7192 as_fn_error $? "required FreeType2 library not found" "$LINENO" 5
7193
7194 elif test $pkg_failed = untried; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197
7198 as_fn_error $? "required FreeType2 library not found" "$LINENO" 5
7199
7200 else
7201 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
7202 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7204 $as_echo "yes" >&6; }
7205
7206 fi
7207
7208 if test "x$system_libode" = "xyes" ; then :
7209
7210
7211 pkg_failed=no
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ode" >&5
7213 $as_echo_n "checking for ode... " >&6; }
7214
7215 if test -n "$ODE_CFLAGS"; then
7216 pkg_cv_ODE_CFLAGS="$ODE_CFLAGS"
7217 elif test -n "$PKG_CONFIG"; then
7218 if test -n "$PKG_CONFIG" && \
7219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ode\""; } >&5
7220 ($PKG_CONFIG --exists --print-errors "ode") 2>&5
7221 ac_status=$?
7222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; }; then
7224 pkg_cv_ODE_CFLAGS=`$PKG_CONFIG --cflags "ode" 2>/dev/null`
7225 test "x$?" != "x0" && pkg_failed=yes
7226 else
7227 pkg_failed=yes
7228 fi
7229 else
7230 pkg_failed=untried
7231 fi
7232 if test -n "$ODE_LIBS"; then
7233 pkg_cv_ODE_LIBS="$ODE_LIBS"
7234 elif test -n "$PKG_CONFIG"; then
7235 if test -n "$PKG_CONFIG" && \
7236 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ode\""; } >&5
7237 ($PKG_CONFIG --exists --print-errors "ode") 2>&5
7238 ac_status=$?
7239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240 test $ac_status = 0; }; then
7241 pkg_cv_ODE_LIBS=`$PKG_CONFIG --libs "ode" 2>/dev/null`
7242 test "x$?" != "x0" && pkg_failed=yes
7243 else
7244 pkg_failed=yes
7245 fi
7246 else
7247 pkg_failed=untried
7248 fi
7249
7250
7251
7252 if test $pkg_failed = yes; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255
7256 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7257 _pkg_short_errors_supported=yes
7258 else
7259 _pkg_short_errors_supported=no
7260 fi
7261 if test $_pkg_short_errors_supported = yes; then
7262 ODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ode" 2>&1`
7263 else
7264 ODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ode" 2>&1`
7265 fi
7266 # Put the nasty error message in config.log where it belongs
7267 echo "$ODE_PKG_ERRORS" >&5
7268
7269
7270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7272 as_fn_error $? "--with-system-libode specified, but the Open Dynamics Engine library could not be found
7273 See \`config.log' for more details" "$LINENO" 5; }
7274
7275 elif test $pkg_failed = untried; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278
7279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7281 as_fn_error $? "--with-system-libode specified, but the Open Dynamics Engine library could not be found
7282 See \`config.log' for more details" "$LINENO" 5; }
7283
7284 else
7285 ODE_CFLAGS=$pkg_cv_ODE_CFLAGS
7286 ODE_LIBS=$pkg_cv_ODE_LIBS
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7288 $as_echo "yes" >&6; }
7289
7290 fi
7291
7292 else
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing new_handler" >&5
7295 $as_echo_n "checking for library containing new_handler... " >&6; }
7296 if ${ac_cv_search_new_handler+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 ac_func_search_save_LIBS=$LIBS
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302
7303 /* Override any GCC internal prototype to avoid an error.
7304 Use char because int might match the return type of a GCC
7305 builtin and then its argument prototype would still apply. */
7306 #ifdef __cplusplus
7307 extern "C"
7308 #endif
7309 char new_handler ();
7310 int
7311 main ()
7312 {
7313 return new_handler ();
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 for ac_lib in '' stdc++; do
7319 if test -z "$ac_lib"; then
7320 ac_res="none required"
7321 else
7322 ac_res=-l$ac_lib
7323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7324 fi
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 ac_cv_search_new_handler=$ac_res
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext
7330 if ${ac_cv_search_new_handler+:} false; then :
7331 break
7332 fi
7333 done
7334 if ${ac_cv_search_new_handler+:} false; then :
7335
7336 else
7337 ac_cv_search_new_handler=no
7338 fi
7339 rm conftest.$ac_ext
7340 LIBS=$ac_func_search_save_LIBS
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_new_handler" >&5
7343 $as_echo "$ac_cv_search_new_handler" >&6; }
7344 ac_res=$ac_cv_search_new_handler
7345 if test "$ac_res" != no; then :
7346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7347
7348 fi
7349
7350
7351
7352 fi
7353
7354
7355 fi
7356
7357 #
7358 # Checks for header files
7359 #
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7362 $as_echo_n "checking for ANSI C header files... " >&6; }
7363 if ${ac_cv_header_stdc+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #include <stdlib.h>
7369 #include <stdarg.h>
7370 #include <string.h>
7371 #include <float.h>
7372
7373 int
7374 main ()
7375 {
7376
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382 ac_cv_header_stdc=yes
7383 else
7384 ac_cv_header_stdc=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387
7388 if test $ac_cv_header_stdc = yes; then
7389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #include <string.h>
7393
7394 _ACEOF
7395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7396 $EGREP "memchr" >/dev/null 2>&1; then :
7397
7398 else
7399 ac_cv_header_stdc=no
7400 fi
7401 rm -f conftest*
7402
7403 fi
7404
7405 if test $ac_cv_header_stdc = yes; then
7406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409 #include <stdlib.h>
7410
7411 _ACEOF
7412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7413 $EGREP "free" >/dev/null 2>&1; then :
7414
7415 else
7416 ac_cv_header_stdc=no
7417 fi
7418 rm -f conftest*
7419
7420 fi
7421
7422 if test $ac_cv_header_stdc = yes; then
7423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7424 if test "$cross_compiling" = yes; then :
7425 :
7426 else
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 #include <ctype.h>
7430 #include <stdlib.h>
7431 #if ((' ' & 0x0FF) == 0x020)
7432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7434 #else
7435 # define ISLOWER(c) \
7436 (('a' <= (c) && (c) <= 'i') \
7437 || ('j' <= (c) && (c) <= 'r') \
7438 || ('s' <= (c) && (c) <= 'z'))
7439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7440 #endif
7441
7442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7443 int
7444 main ()
7445 {
7446 int i;
7447 for (i = 0; i < 256; i++)
7448 if (XOR (islower (i), ISLOWER (i))
7449 || toupper (i) != TOUPPER (i))
7450 return 2;
7451 return 0;
7452 }
7453 _ACEOF
7454 if ac_fn_c_try_run "$LINENO"; then :
7455
7456 else
7457 ac_cv_header_stdc=no
7458 fi
7459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7460 conftest.$ac_objext conftest.beam conftest.$ac_ext
7461 fi
7462
7463 fi
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7466 $as_echo "$ac_cv_header_stdc" >&6; }
7467 if test $ac_cv_header_stdc = yes; then
7468
7469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7470
7471 fi
7472
7473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7474 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7475 inttypes.h stdint.h unistd.h
7476 do :
7477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7479 "
7480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7481 cat >>confdefs.h <<_ACEOF
7482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7483 _ACEOF
7484
7485 fi
7486
7487 done
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7491 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7492 if ${ac_cv_header_stdbool_h+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497
7498 #include <stdbool.h>
7499 #ifndef bool
7500 "error: bool is not defined"
7501 #endif
7502 #ifndef false
7503 "error: false is not defined"
7504 #endif
7505 #if false
7506 "error: false is not 0"
7507 #endif
7508 #ifndef true
7509 "error: true is not defined"
7510 #endif
7511 #if true != 1
7512 "error: true is not 1"
7513 #endif
7514 #ifndef __bool_true_false_are_defined
7515 "error: __bool_true_false_are_defined is not defined"
7516 #endif
7517
7518 struct s { _Bool s: 1; _Bool t; } s;
7519
7520 char a[true == 1 ? 1 : -1];
7521 char b[false == 0 ? 1 : -1];
7522 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7523 char d[(bool) 0.5 == true ? 1 : -1];
7524 /* See body of main program for 'e'. */
7525 char f[(_Bool) 0.0 == false ? 1 : -1];
7526 char g[true];
7527 char h[sizeof (_Bool)];
7528 char i[sizeof s.t];
7529 enum { j = false, k = true, l = false * true, m = true * 256 };
7530 /* The following fails for
7531 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7532 _Bool n[m];
7533 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7534 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7535 /* Catch a bug in an HP-UX C compiler. See
7536 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7537 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7538 */
7539 _Bool q = true;
7540 _Bool *pq = &q;
7541
7542 int
7543 main ()
7544 {
7545
7546 bool e = &s;
7547 *pq |= q;
7548 *pq |= ! q;
7549 /* Refer to every declared value, to avoid compiler optimizations. */
7550 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7551 + !m + !n + !o + !p + !q + !pq);
7552
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 ac_cv_header_stdbool_h=yes
7559 else
7560 ac_cv_header_stdbool_h=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7565 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7566 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7567 if test "x$ac_cv_type__Bool" = xyes; then :
7568
7569 cat >>confdefs.h <<_ACEOF
7570 #define HAVE__BOOL 1
7571 _ACEOF
7572
7573
7574 fi
7575
7576
7577 if test $ac_cv_header_stdbool_h = yes; then
7578
7579 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7580
7581 fi
7582
7583 ac_header_dirent=no
7584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7585 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7587 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7588 if eval \${$as_ac_Header+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #include <sys/types.h>
7594 #include <$ac_hdr>
7595
7596 int
7597 main ()
7598 {
7599 if ((DIR *) 0)
7600 return 0;
7601 ;
7602 return 0;
7603 }
7604 _ACEOF
7605 if ac_fn_c_try_compile "$LINENO"; then :
7606 eval "$as_ac_Header=yes"
7607 else
7608 eval "$as_ac_Header=no"
7609 fi
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 fi
7612 eval ac_res=\$$as_ac_Header
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7614 $as_echo "$ac_res" >&6; }
7615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7616 cat >>confdefs.h <<_ACEOF
7617 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7618 _ACEOF
7619
7620 ac_header_dirent=$ac_hdr; break
7621 fi
7622
7623 done
7624 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7625 if test $ac_header_dirent = dirent.h; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7627 $as_echo_n "checking for library containing opendir... " >&6; }
7628 if ${ac_cv_search_opendir+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 ac_func_search_save_LIBS=$LIBS
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634
7635 /* Override any GCC internal prototype to avoid an error.
7636 Use char because int might match the return type of a GCC
7637 builtin and then its argument prototype would still apply. */
7638 #ifdef __cplusplus
7639 extern "C"
7640 #endif
7641 char opendir ();
7642 int
7643 main ()
7644 {
7645 return opendir ();
7646 ;
7647 return 0;
7648 }
7649 _ACEOF
7650 for ac_lib in '' dir; do
7651 if test -z "$ac_lib"; then
7652 ac_res="none required"
7653 else
7654 ac_res=-l$ac_lib
7655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7656 fi
7657 if ac_fn_c_try_link "$LINENO"; then :
7658 ac_cv_search_opendir=$ac_res
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext
7662 if ${ac_cv_search_opendir+:} false; then :
7663 break
7664 fi
7665 done
7666 if ${ac_cv_search_opendir+:} false; then :
7667
7668 else
7669 ac_cv_search_opendir=no
7670 fi
7671 rm conftest.$ac_ext
7672 LIBS=$ac_func_search_save_LIBS
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7675 $as_echo "$ac_cv_search_opendir" >&6; }
7676 ac_res=$ac_cv_search_opendir
7677 if test "$ac_res" != no; then :
7678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7679
7680 fi
7681
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7684 $as_echo_n "checking for library containing opendir... " >&6; }
7685 if ${ac_cv_search_opendir+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 ac_func_search_save_LIBS=$LIBS
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691
7692 /* Override any GCC internal prototype to avoid an error.
7693 Use char because int might match the return type of a GCC
7694 builtin and then its argument prototype would still apply. */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 char opendir ();
7699 int
7700 main ()
7701 {
7702 return opendir ();
7703 ;
7704 return 0;
7705 }
7706 _ACEOF
7707 for ac_lib in '' x; do
7708 if test -z "$ac_lib"; then
7709 ac_res="none required"
7710 else
7711 ac_res=-l$ac_lib
7712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7713 fi
7714 if ac_fn_c_try_link "$LINENO"; then :
7715 ac_cv_search_opendir=$ac_res
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext
7719 if ${ac_cv_search_opendir+:} false; then :
7720 break
7721 fi
7722 done
7723 if ${ac_cv_search_opendir+:} false; then :
7724
7725 else
7726 ac_cv_search_opendir=no
7727 fi
7728 rm conftest.$ac_ext
7729 LIBS=$ac_func_search_save_LIBS
7730 fi
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7732 $as_echo "$ac_cv_search_opendir" >&6; }
7733 ac_res=$ac_cv_search_opendir
7734 if test "$ac_res" != no; then :
7735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7736
7737 fi
7738
7739 fi
7740
7741
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
7743 $as_echo_n "checking whether to enable assertions... " >&6; }
7744 # Check whether --enable-assert was given.
7745 if test "${enable_assert+set}" = set; then :
7746 enableval=$enable_assert; ac_enable_assert=$enableval
7747 if test "x$enableval" = xno; then :
7748
7749 $as_echo "#define NDEBUG 1" >>confdefs.h
7750
7751 elif test "x$enableval" != xyes; then :
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
7753 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
7754 ac_enable_assert=yes
7755 fi
7756 else
7757 ac_enable_assert=yes
7758 fi
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
7761 $as_echo "$ac_enable_assert" >&6; }
7762
7763
7764 for ac_header in unistd.h stdarg.h
7765 do :
7766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7767 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7769 cat >>confdefs.h <<_ACEOF
7770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7771 _ACEOF
7772
7773 fi
7774
7775 done
7776
7777 for ac_header in dlfcn.h
7778 do :
7779 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7780 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7781 cat >>confdefs.h <<_ACEOF
7782 #define HAVE_DLFCN_H 1
7783 _ACEOF
7784
7785 fi
7786
7787 done
7788
7789 for ac_header in sys/time.h time.h
7790 do :
7791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7794 cat >>confdefs.h <<_ACEOF
7795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7797
7798 fi
7799
7800 done
7801
7802 for ac_header in string.h strings.h ctype.h
7803 do :
7804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7805 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7807 cat >>confdefs.h <<_ACEOF
7808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809 _ACEOF
7810
7811 fi
7812
7813 done
7814
7815 for ac_header in signal.h
7816 do :
7817 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
7818 if test "x$ac_cv_header_signal_h" = xyes; then :
7819 cat >>confdefs.h <<_ACEOF
7820 #define HAVE_SIGNAL_H 1
7821 _ACEOF
7822
7823 fi
7824
7825 done
7826
7827 for ac_header in setjmp.h
7828 do :
7829 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
7830 if test "x$ac_cv_header_setjmp_h" = xyes; then :
7831 cat >>confdefs.h <<_ACEOF
7832 #define HAVE_SETJMP_H 1
7833 _ACEOF
7834
7835 fi
7836
7837 done
7838
7839 for ac_header in math.h float.h
7840 do :
7841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7842 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7843 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7844 cat >>confdefs.h <<_ACEOF
7845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7846 _ACEOF
7847
7848 fi
7849
7850 done
7851
7852 for ac_header in \
7853 sys/socket.h \
7854 netinet/in.h \
7855 netdb.h \
7856 sys/param.h \
7857 sys/ioctl.h \
7858 sys/uio.h \
7859
7860 do :
7861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7862 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7863 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7864 cat >>confdefs.h <<_ACEOF
7865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866 _ACEOF
7867
7868 fi
7869
7870 done
7871
7872
7873 for ac_header in \
7874 arpa/inet.h \
7875 fcntl.h \
7876 inttypes.h \
7877 limits.h \
7878 malloc.h \
7879 memory.h \
7880 termios.h \
7881 sys/mman.h
7882
7883 do :
7884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7887 cat >>confdefs.h <<_ACEOF
7888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889 _ACEOF
7890
7891 fi
7892
7893 done
7894
7895
7896 if test -z "$BUILD_CLIENT_TRUE"; then :
7897
7898
7899 jpeglib_h_found=no
7900 for ac_header in jpeglib.h jpeg/jpeglib.h
7901 do :
7902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7903 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7904 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7905 cat >>confdefs.h <<_ACEOF
7906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 _ACEOF
7908 jpeglib_h_found=yes
7909 fi
7910
7911 done
7912
7913 if test "x${jpeglib_h_found}" = xno ; then :
7914 as_fn_error $? "required JPEG header file, jpeglib.h, not found" "$LINENO" 5
7915 fi
7916
7917 openal_h_found=no
7918 for ac_header in AL/al.h al.h OpenAL/al.h
7919 do :
7920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7923 cat >>confdefs.h <<_ACEOF
7924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7925 _ACEOF
7926 openal_h_found=yes
7927 fi
7928
7929 done
7930
7931 if test "x${openal_h_found}" = xno ; then :
7932 as_fn_error $? "required OpenAL header file, al.h, not found" "$LINENO" 5
7933 fi
7934
7935 openalc_h_found=no
7936 for ac_header in AL/alc.h alc.h OpenAL/alc.h
7937 do :
7938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7939 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7941 cat >>confdefs.h <<_ACEOF
7942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7943 _ACEOF
7944 openalc_h_found=yes
7945 fi
7946
7947 done
7948
7949 if test "x${openalc_h_found}" = xno ; then :
7950 as_fn_error $? "required OpenAL header file, alc.h, not found" "$LINENO" 5
7951 fi
7952
7953 for ac_header in GL/gl.h
7954 do :
7955 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
7956 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
7957 cat >>confdefs.h <<_ACEOF
7958 #define HAVE_GL_GL_H 1
7959 _ACEOF
7960
7961 else
7962 as_fn_error $? "required OpenGL header file, gl.h, not found" "$LINENO" 5
7963 fi
7964
7965 done
7966
7967 for ac_header in GL/glx.h
7968 do :
7969 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
7970 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_GL_GLX_H 1
7973 _ACEOF
7974
7975 else
7976 as_fn_error $? "required OpenGL header file, glx.h, not found" "$LINENO" 5
7977 fi
7978
7979 done
7980
7981
7982 if test "x$system_libode" = "xyes"; then :
7983
7984 for ac_header in ode/ode.h
7985 do :
7986 ac_fn_c_check_header_compile "$LINENO" "ode/ode.h" "ac_cv_header_ode_ode_h" "
7987 #define dDOUBLE
7988
7989 "
7990 if test "x$ac_cv_header_ode_ode_h" = xyes; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_ODE_ODE_H 1
7993 _ACEOF
7994
7995 else
7996 as_fn_error $? "with-system-libode: required ODE header file, ode.h, not found" "$LINENO" 5
7997
7998 fi
7999
8000 done
8001
8002
8003 fi
8004
8005 fi
8006
8007 if test "x$system_libode" = "xyes" ; then
8008 USE_SYSTEM_LIBODE_TRUE=
8009 USE_SYSTEM_LIBODE_FALSE='#'
8010 else
8011 USE_SYSTEM_LIBODE_TRUE='#'
8012 USE_SYSTEM_LIBODE_FALSE=
8013 fi
8014
8015
8016
8017 #
8018 # Checks for typedefs, structures, and compiler characteristics.
8019 #
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8021 $as_echo_n "checking for inline... " >&6; }
8022 if ${ac_cv_c_inline+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 ac_cv_c_inline=no
8026 for ac_kw in inline __inline__ __inline; do
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 #ifndef __cplusplus
8030 typedef int foo_t;
8031 static $ac_kw foo_t static_foo () {return 0; }
8032 $ac_kw foo_t foo () {return 0; }
8033 #endif
8034
8035 _ACEOF
8036 if ac_fn_c_try_compile "$LINENO"; then :
8037 ac_cv_c_inline=$ac_kw
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 test "$ac_cv_c_inline" != no && break
8041 done
8042
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8045 $as_echo "$ac_cv_c_inline" >&6; }
8046
8047 case $ac_cv_c_inline in
8048 inline | yes) ;;
8049 *)
8050 case $ac_cv_c_inline in
8051 no) ac_val=;;
8052 *) ac_val=$ac_cv_c_inline;;
8053 esac
8054 cat >>confdefs.h <<_ACEOF
8055 #ifndef __cplusplus
8056 #define inline $ac_val
8057 #endif
8058 _ACEOF
8059 ;;
8060 esac
8061
8062 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8063 if test "x$ac_cv_type_size_t" = xyes; then :
8064
8065 else
8066
8067 cat >>confdefs.h <<_ACEOF
8068 #define size_t unsigned int
8069 _ACEOF
8070
8071 fi
8072
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8074 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8075 if ${ac_cv_type_uid_t+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #include <sys/types.h>
8081
8082 _ACEOF
8083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8084 $EGREP "uid_t" >/dev/null 2>&1; then :
8085 ac_cv_type_uid_t=yes
8086 else
8087 ac_cv_type_uid_t=no
8088 fi
8089 rm -f conftest*
8090
8091 fi
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8093 $as_echo "$ac_cv_type_uid_t" >&6; }
8094 if test $ac_cv_type_uid_t = no; then
8095
8096 $as_echo "#define uid_t int" >>confdefs.h
8097
8098
8099 $as_echo "#define gid_t int" >>confdefs.h
8100
8101 fi
8102
8103 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
8104 case $ac_cv_c_int32_t in #(
8105 no|yes) ;; #(
8106 *)
8107
8108 cat >>confdefs.h <<_ACEOF
8109 #define int32_t $ac_cv_c_int32_t
8110 _ACEOF
8111 ;;
8112 esac
8113
8114 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
8115 case $ac_cv_c_int64_t in #(
8116 no|yes) ;; #(
8117 *)
8118
8119 cat >>confdefs.h <<_ACEOF
8120 #define int64_t $ac_cv_c_int64_t
8121 _ACEOF
8122 ;;
8123 esac
8124
8125 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
8126 case $ac_cv_c_uint64_t in #(
8127 no|yes) ;; #(
8128 *)
8129
8130 $as_echo "#define _UINT64_T 1" >>confdefs.h
8131
8132
8133 cat >>confdefs.h <<_ACEOF
8134 #define uint64_t $ac_cv_c_uint64_t
8135 _ACEOF
8136 ;;
8137 esac
8138
8139 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8140 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8141
8142 cat >>confdefs.h <<_ACEOF
8143 #define HAVE_PTRDIFF_T 1
8144 _ACEOF
8145
8146
8147 fi
8148
8149 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8150 if test "x$ac_cv_type_uintptr_t" = xyes; then :
8151
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_UINTPTR_T 1
8154 _ACEOF
8155
8156
8157 fi
8158
8159
8160 #
8161 # Checks for library functions.
8162 #
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
8164 $as_echo_n "checking for error_at_line... " >&6; }
8165 if ${ac_cv_lib_error_at_line+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <error.h>
8171 int
8172 main ()
8173 {
8174 error_at_line (0, 0, "", 0, "an error occurred");
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 ac_cv_lib_error_at_line=yes
8181 else
8182 ac_cv_lib_error_at_line=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
8188 $as_echo "$ac_cv_lib_error_at_line" >&6; }
8189 if test $ac_cv_lib_error_at_line = no; then
8190 case " $LIBOBJS " in
8191 *" error.$ac_objext "* ) ;;
8192 *) LIBOBJS="$LIBOBJS error.$ac_objext"
8193 ;;
8194 esac
8195
8196 fi
8197
8198 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8199 # for constant arguments. Useless!
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8201 $as_echo_n "checking for working alloca.h... " >&6; }
8202 if ${ac_cv_working_alloca_h+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 #include <alloca.h>
8208 int
8209 main ()
8210 {
8211 char *p = (char *) alloca (2 * sizeof (int));
8212 if (p) return 0;
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 ac_cv_working_alloca_h=yes
8219 else
8220 ac_cv_working_alloca_h=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8226 $as_echo "$ac_cv_working_alloca_h" >&6; }
8227 if test $ac_cv_working_alloca_h = yes; then
8228
8229 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8230
8231 fi
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8234 $as_echo_n "checking for alloca... " >&6; }
8235 if ${ac_cv_func_alloca_works+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 #ifdef __GNUC__
8241 # define alloca __builtin_alloca
8242 #else
8243 # ifdef _MSC_VER
8244 # include <malloc.h>
8245 # define alloca _alloca
8246 # else
8247 # ifdef HAVE_ALLOCA_H
8248 # include <alloca.h>
8249 # else
8250 # ifdef _AIX
8251 #pragma alloca
8252 # else
8253 # ifndef alloca /* predefined by HP cc +Olibcalls */
8254 void *alloca (size_t);
8255 # endif
8256 # endif
8257 # endif
8258 # endif
8259 #endif
8260
8261 int
8262 main ()
8263 {
8264 char *p = (char *) alloca (1);
8265 if (p) return 0;
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_link "$LINENO"; then :
8271 ac_cv_func_alloca_works=yes
8272 else
8273 ac_cv_func_alloca_works=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8279 $as_echo "$ac_cv_func_alloca_works" >&6; }
8280
8281 if test $ac_cv_func_alloca_works = yes; then
8282
8283 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8284
8285 else
8286 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8287 # that cause trouble. Some versions do not even contain alloca or
8288 # contain a buggy version. If you still want to use their alloca,
8289 # use ar to extract alloca.o from them instead of compiling alloca.c.
8290
8291 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8292
8293 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8294
8295
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8297 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8298 if ${ac_cv_os_cray+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #if defined CRAY && ! defined CRAY2
8304 webecray
8305 #else
8306 wenotbecray
8307 #endif
8308
8309 _ACEOF
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "webecray" >/dev/null 2>&1; then :
8312 ac_cv_os_cray=yes
8313 else
8314 ac_cv_os_cray=no
8315 fi
8316 rm -f conftest*
8317
8318 fi
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8320 $as_echo "$ac_cv_os_cray" >&6; }
8321 if test $ac_cv_os_cray = yes; then
8322 for ac_func in _getb67 GETB67 getb67; do
8323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8324 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8325 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8326
8327 cat >>confdefs.h <<_ACEOF
8328 #define CRAY_STACKSEG_END $ac_func
8329 _ACEOF
8330
8331 break
8332 fi
8333
8334 done
8335 fi
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8338 $as_echo_n "checking stack direction for C alloca... " >&6; }
8339 if ${ac_cv_c_stack_direction+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 if test "$cross_compiling" = yes; then :
8343 ac_cv_c_stack_direction=0
8344 else
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 int
8349 find_stack_direction (int *addr, int depth)
8350 {
8351 int dir, dummy = 0;
8352 if (! addr)
8353 addr = &dummy;
8354 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8355 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8356 return dir + dummy;
8357 }
8358
8359 int
8360 main (int argc, char **argv)
8361 {
8362 return find_stack_direction (0, argc + !argv + 20) < 0;
8363 }
8364 _ACEOF
8365 if ac_fn_c_try_run "$LINENO"; then :
8366 ac_cv_c_stack_direction=1
8367 else
8368 ac_cv_c_stack_direction=-1
8369 fi
8370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8371 conftest.$ac_objext conftest.beam conftest.$ac_ext
8372 fi
8373
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8376 $as_echo "$ac_cv_c_stack_direction" >&6; }
8377 cat >>confdefs.h <<_ACEOF
8378 #define STACK_DIRECTION $ac_cv_c_stack_direction
8379 _ACEOF
8380
8381
8382 fi
8383
8384 for ac_header in stdlib.h
8385 do :
8386 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8387 if test "x$ac_cv_header_stdlib_h" = xyes; then :
8388 cat >>confdefs.h <<_ACEOF
8389 #define HAVE_STDLIB_H 1
8390 _ACEOF
8391
8392 fi
8393
8394 done
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8397 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8398 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test "$cross_compiling" = yes; then :
8402 ac_cv_func_malloc_0_nonnull=no
8403 else
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8407 # include <stdlib.h>
8408 #else
8409 char *malloc ();
8410 #endif
8411
8412 int
8413 main ()
8414 {
8415 return ! malloc (0);
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_c_try_run "$LINENO"; then :
8421 ac_cv_func_malloc_0_nonnull=yes
8422 else
8423 ac_cv_func_malloc_0_nonnull=no
8424 fi
8425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8426 conftest.$ac_objext conftest.beam conftest.$ac_ext
8427 fi
8428
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
8431 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8432 if test $ac_cv_func_malloc_0_nonnull = yes; then :
8433
8434 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
8435
8436 else
8437 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
8438
8439 case " $LIBOBJS " in
8440 *" malloc.$ac_objext "* ) ;;
8441 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8442 ;;
8443 esac
8444
8445
8446 $as_echo "#define malloc rpl_malloc" >>confdefs.h
8447
8448 fi
8449
8450
8451
8452
8453
8454 for ac_header in $ac_header_list
8455 do :
8456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8458 "
8459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8460 cat >>confdefs.h <<_ACEOF
8461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8462 _ACEOF
8463
8464 fi
8465
8466 done
8467
8468
8469
8470
8471
8472
8473
8474
8475 for ac_func in getpagesize
8476 do :
8477 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8478 if test "x$ac_cv_func_getpagesize" = xyes; then :
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_GETPAGESIZE 1
8481 _ACEOF
8482
8483 fi
8484 done
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8487 $as_echo_n "checking for working mmap... " >&6; }
8488 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 if test "$cross_compiling" = yes; then :
8492 ac_cv_func_mmap_fixed_mapped=no
8493 else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 /* malloc might have been renamed as rpl_malloc. */
8498 #undef malloc
8499
8500 /* Thanks to Mike Haertel and Jim Avera for this test.
8501 Here is a matrix of mmap possibilities:
8502 mmap private not fixed
8503 mmap private fixed at somewhere currently unmapped
8504 mmap private fixed at somewhere already mapped
8505 mmap shared not fixed
8506 mmap shared fixed at somewhere currently unmapped
8507 mmap shared fixed at somewhere already mapped
8508 For private mappings, we should verify that changes cannot be read()
8509 back from the file, nor mmap's back from the file at a different
8510 address. (There have been systems where private was not correctly
8511 implemented like the infamous i386 svr4.0, and systems where the
8512 VM page cache was not coherent with the file system buffer cache
8513 like early versions of FreeBSD and possibly contemporary NetBSD.)
8514 For shared mappings, we should conversely verify that changes get
8515 propagated back to all the places they're supposed to be.
8516
8517 Grep wants private fixed already mapped.
8518 The main things grep needs to know about mmap are:
8519 * does it exist and is it safe to write into the mmap'd area
8520 * how to use it (BSD variants) */
8521
8522 #include <fcntl.h>
8523 #include <sys/mman.h>
8524
8525 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8526 char *malloc ();
8527 #endif
8528
8529 /* This mess was copied from the GNU getpagesize.h. */
8530 #ifndef HAVE_GETPAGESIZE
8531 # ifdef _SC_PAGESIZE
8532 # define getpagesize() sysconf(_SC_PAGESIZE)
8533 # else /* no _SC_PAGESIZE */
8534 # ifdef HAVE_SYS_PARAM_H
8535 # include <sys/param.h>
8536 # ifdef EXEC_PAGESIZE
8537 # define getpagesize() EXEC_PAGESIZE
8538 # else /* no EXEC_PAGESIZE */
8539 # ifdef NBPG
8540 # define getpagesize() NBPG * CLSIZE
8541 # ifndef CLSIZE
8542 # define CLSIZE 1
8543 # endif /* no CLSIZE */
8544 # else /* no NBPG */
8545 # ifdef NBPC
8546 # define getpagesize() NBPC
8547 # else /* no NBPC */
8548 # ifdef PAGESIZE
8549 # define getpagesize() PAGESIZE
8550 # endif /* PAGESIZE */
8551 # endif /* no NBPC */
8552 # endif /* no NBPG */
8553 # endif /* no EXEC_PAGESIZE */
8554 # else /* no HAVE_SYS_PARAM_H */
8555 # define getpagesize() 8192 /* punt totally */
8556 # endif /* no HAVE_SYS_PARAM_H */
8557 # endif /* no _SC_PAGESIZE */
8558
8559 #endif /* no HAVE_GETPAGESIZE */
8560
8561 int
8562 main ()
8563 {
8564 char *data, *data2, *data3;
8565 const char *cdata2;
8566 int i, pagesize;
8567 int fd, fd2;
8568
8569 pagesize = getpagesize ();
8570
8571 /* First, make a file with some known garbage in it. */
8572 data = (char *) malloc (pagesize);
8573 if (!data)
8574 return 1;
8575 for (i = 0; i < pagesize; ++i)
8576 *(data + i) = rand ();
8577 umask (0);
8578 fd = creat ("conftest.mmap", 0600);
8579 if (fd < 0)
8580 return 2;
8581 if (write (fd, data, pagesize) != pagesize)
8582 return 3;
8583 close (fd);
8584
8585 /* Next, check that the tail of a page is zero-filled. File must have
8586 non-zero length, otherwise we risk SIGBUS for entire page. */
8587 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8588 if (fd2 < 0)
8589 return 4;
8590 cdata2 = "";
8591 if (write (fd2, cdata2, 1) != 1)
8592 return 5;
8593 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8594 if (data2 == MAP_FAILED)
8595 return 6;
8596 for (i = 0; i < pagesize; ++i)
8597 if (*(data2 + i))
8598 return 7;
8599 close (fd2);
8600 if (munmap (data2, pagesize))
8601 return 8;
8602
8603 /* Next, try to mmap the file at a fixed address which already has
8604 something else allocated at it. If we can, also make sure that
8605 we see the same garbage. */
8606 fd = open ("conftest.mmap", O_RDWR);
8607 if (fd < 0)
8608 return 9;
8609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8610 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8611 return 10;
8612 for (i = 0; i < pagesize; ++i)
8613 if (*(data + i) != *(data2 + i))
8614 return 11;
8615
8616 /* Finally, make sure that changes to the mapped area do not
8617 percolate back to the file as seen by read(). (This is a bug on
8618 some variants of i386 svr4.0.) */
8619 for (i = 0; i < pagesize; ++i)
8620 *(data2 + i) = *(data2 + i) + 1;
8621 data3 = (char *) malloc (pagesize);
8622 if (!data3)
8623 return 12;
8624 if (read (fd, data3, pagesize) != pagesize)
8625 return 13;
8626 for (i = 0; i < pagesize; ++i)
8627 if (*(data + i) != *(data3 + i))
8628 return 14;
8629 close (fd);
8630 free (data);
8631 free (data3);
8632 return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_run "$LINENO"; then :
8636 ac_cv_func_mmap_fixed_mapped=yes
8637 else
8638 ac_cv_func_mmap_fixed_mapped=no
8639 fi
8640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8641 conftest.$ac_objext conftest.beam conftest.$ac_ext
8642 fi
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8646 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8647 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8648
8649 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8650
8651 fi
8652 rm -f conftest.mmap conftest.txt
8653
8654 for ac_header in stdlib.h
8655 do :
8656 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8657 if test "x$ac_cv_header_stdlib_h" = xyes; then :
8658 cat >>confdefs.h <<_ACEOF
8659 #define HAVE_STDLIB_H 1
8660 _ACEOF
8661
8662 fi
8663
8664 done
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8667 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8668 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 if test "$cross_compiling" = yes; then :
8672 ac_cv_func_realloc_0_nonnull=no
8673 else
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8677 # include <stdlib.h>
8678 #else
8679 char *realloc ();
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 return ! realloc (0, 0);
8686 ;
8687 return 0;
8688 }
8689 _ACEOF
8690 if ac_fn_c_try_run "$LINENO"; then :
8691 ac_cv_func_realloc_0_nonnull=yes
8692 else
8693 ac_cv_func_realloc_0_nonnull=no
8694 fi
8695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8696 conftest.$ac_objext conftest.beam conftest.$ac_ext
8697 fi
8698
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8701 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
8702 if test $ac_cv_func_realloc_0_nonnull = yes; then :
8703
8704 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
8705
8706 else
8707 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
8708
8709 case " $LIBOBJS " in
8710 *" realloc.$ac_objext "* ) ;;
8711 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8712 ;;
8713 esac
8714
8715
8716 $as_echo "#define realloc rpl_realloc" >>confdefs.h
8717
8718 fi
8719
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
8722 $as_echo_n "checking for obstacks... " >&6; }
8723 if ${ac_cv_func_obstack+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 $ac_includes_default
8729 #include "obstack.h"
8730 int
8731 main ()
8732 {
8733 struct obstack mem;
8734 #define obstack_chunk_alloc malloc
8735 #define obstack_chunk_free free
8736 obstack_init (&mem);
8737 obstack_free (&mem, 0);
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 if ac_fn_c_try_link "$LINENO"; then :
8743 ac_cv_func_obstack=yes
8744 else
8745 ac_cv_func_obstack=no
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
8751 $as_echo "$ac_cv_func_obstack" >&6; }
8752 if test $ac_cv_func_obstack = yes; then
8753
8754 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
8755
8756 else
8757 case " $LIBOBJS " in
8758 *" obstack.$ac_objext "* ) ;;
8759 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
8760 ;;
8761 esac
8762
8763 fi
8764
8765
8766 for ac_func in vsnprintf
8767 do :
8768 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
8769 if test "x$ac_cv_func_vsnprintf" = xyes; then :
8770 cat >>confdefs.h <<_ACEOF
8771 #define HAVE_VSNPRINTF 1
8772 _ACEOF
8773
8774 fi
8775 done
8776
8777 for ac_func in strerror
8778 do :
8779 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
8780 if test "x$ac_cv_func_strerror" = xyes; then :
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_STRERROR 1
8783 _ACEOF
8784
8785 fi
8786 done
8787
8788 for ac_func in strdup
8789 do :
8790 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
8791 if test "x$ac_cv_func_strdup" = xyes; then :
8792 cat >>confdefs.h <<_ACEOF
8793 #define HAVE_STRDUP 1
8794 _ACEOF
8795
8796 fi
8797 done
8798
8799 for ac_func in nanosleep usleep
8800 do :
8801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8802 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8803 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8804 cat >>confdefs.h <<_ACEOF
8805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8806 _ACEOF
8807
8808 fi
8809 done
8810
8811 for ac_func in clock_gettime floor getcwd gethostbyname gettimeofday \
8812 isascii memmove memset mkdir munmap pow putenv select socket sqrt \
8813 strchr strrchr strstr strtoul
8814 do :
8815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8818 cat >>confdefs.h <<_ACEOF
8819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8820 _ACEOF
8821
8822 fi
8823 done
8824
8825 for ac_func in stat fstat filelength strlcat strlcpy
8826 do :
8827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8830 cat >>confdefs.h <<_ACEOF
8831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8832 _ACEOF
8833
8834 fi
8835 done
8836
8837
8838 for ac_func in _begin_thread _getcwd _mkdir _putenv _strdup _stricmp \
8839 _strnicmp unlink _unlink
8840 do :
8841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8843 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8844 cat >>confdefs.h <<_ACEOF
8845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8846 _ACEOF
8847
8848 fi
8849 done
8850
8851
8852 for ac_func in closesocket
8853 do :
8854 ac_fn_c_check_func "$LINENO" "closesocket" "ac_cv_func_closesocket"
8855 if test "x$ac_cv_func_closesocket" = xyes; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_CLOSESOCKET 1
8858 _ACEOF
8859
8860 fi
8861 done
8862
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
8865 $as_echo_n "checking POSIX termios... " >&6; }
8866 if ${ac_cv_sys_posix_termios+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #include <sys/types.h>
8872 #include <unistd.h>
8873 #include <termios.h>
8874
8875 int
8876 main ()
8877 {
8878 /* SunOS 4.0.3 has termios.h but not the library calls. */
8879 tcgetattr(0, 0);
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_c_try_link "$LINENO"; then :
8885 ac_cv_sys_posix_termios=yes
8886 else
8887 ac_cv_sys_posix_termios=no
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
8893 $as_echo "$ac_cv_sys_posix_termios" >&6; }
8894
8895
8896
8897 if ${CFLAGS+:} false; then :
8898
8899 case " $CFLAGS " in #(
8900 *" -ffast-math "*) :
8901 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -ffast-math"; } >&5
8902 (: CFLAGS already contains -ffast-math) 2>&5
8903 ac_status=$?
8904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8905 test $ac_status = 0; } ;; #(
8906 *) :
8907
8908 as_fn_append CFLAGS " -ffast-math"
8909 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8910 (: CFLAGS="$CFLAGS") 2>&5
8911 ac_status=$?
8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8913 test $ac_status = 0; }
8914 ;;
8915 esac
8916
8917 else
8918
8919 CFLAGS=-ffast-math
8920 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8921 (: CFLAGS="$CFLAGS") 2>&5
8922 ac_status=$?
8923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8924 test $ac_status = 0; }
8925
8926 fi
8927
8928
8929 if ${CFLAGS+:} false; then :
8930
8931 case " $CFLAGS " in #(
8932 *" -fno-strict-aliasing "*) :
8933 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fno-strict-aliasing"; } >&5
8934 (: CFLAGS already contains -fno-strict-aliasing) 2>&5
8935 ac_status=$?
8936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8937 test $ac_status = 0; } ;; #(
8938 *) :
8939
8940 as_fn_append CFLAGS " -fno-strict-aliasing"
8941 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8942 (: CFLAGS="$CFLAGS") 2>&5
8943 ac_status=$?
8944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945 test $ac_status = 0; }
8946 ;;
8947 esac
8948
8949 else
8950
8951 CFLAGS=-fno-strict-aliasing
8952 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8953 (: CFLAGS="$CFLAGS") 2>&5
8954 ac_status=$?
8955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8956 test $ac_status = 0; }
8957
8958 fi
8959
8960
8961 if ${CFLAGS+:} false; then :
8962
8963 case " $CFLAGS " in #(
8964 *" -fcommon "*) :
8965 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fcommon"; } >&5
8966 (: CFLAGS already contains -fcommon) 2>&5
8967 ac_status=$?
8968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8969 test $ac_status = 0; } ;; #(
8970 *) :
8971
8972 as_fn_append CFLAGS " -fcommon"
8973 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8974 (: CFLAGS="$CFLAGS") 2>&5
8975 ac_status=$?
8976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8977 test $ac_status = 0; }
8978 ;;
8979 esac
8980
8981 else
8982
8983 CFLAGS=-fcommon
8984 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8985 (: CFLAGS="$CFLAGS") 2>&5
8986 ac_status=$?
8987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8988 test $ac_status = 0; }
8989
8990 fi
8991
8992
8993 #
8994 # Outputs
8995 #
8996 ac_config_files="$ac_config_files Makefile source/Makefile"
8997
8998
8999 cat >confcache <<\_ACEOF
9000 # This file is a shell script that caches the results of configure
9001 # tests run on this system so they can be shared between configure
9002 # scripts and configure runs, see configure's option --config-cache.
9003 # It is not useful on other systems. If it contains results you don't
9004 # want to keep, you may remove or edit it.
9005 #
9006 # config.status only pays attention to the cache file if you give it
9007 # the --recheck option to rerun configure.
9008 #
9009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9011 # following values.
9012
9013 _ACEOF
9014
9015 # The following way of writing the cache mishandles newlines in values,
9016 # but we know of no workaround that is simple, portable, and efficient.
9017 # So, we kill variables containing newlines.
9018 # Ultrix sh set writes to stderr and can't be redirected directly,
9019 # and sets the high bit in the cache file unless we assign to the vars.
9020 (
9021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9022 eval ac_val=\$$ac_var
9023 case $ac_val in #(
9024 *${as_nl}*)
9025 case $ac_var in #(
9026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9028 esac
9029 case $ac_var in #(
9030 _ | IFS | as_nl) ;; #(
9031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9032 *) { eval $ac_var=; unset $ac_var;} ;;
9033 esac ;;
9034 esac
9035 done
9036
9037 (set) 2>&1 |
9038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9039 *${as_nl}ac_space=\ *)
9040 # `set' does not quote correctly, so add quotes: double-quote
9041 # substitution turns \\\\ into \\, and sed turns \\ into \.
9042 sed -n \
9043 "s/'/'\\\\''/g;
9044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9045 ;; #(
9046 *)
9047 # `set' quotes correctly as required by POSIX, so do not add quotes.
9048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9049 ;;
9050 esac |
9051 sort
9052 ) |
9053 sed '
9054 /^ac_cv_env_/b end
9055 t clear
9056 :clear
9057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9058 t end
9059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9060 :end' >>confcache
9061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9062 if test -w "$cache_file"; then
9063 if test "x$cache_file" != "x/dev/null"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9065 $as_echo "$as_me: updating cache $cache_file" >&6;}
9066 if test ! -f "$cache_file" || test -h "$cache_file"; then
9067 cat confcache >"$cache_file"
9068 else
9069 case $cache_file in #(
9070 */* | ?:*)
9071 mv -f confcache "$cache_file"$$ &&
9072 mv -f "$cache_file"$$ "$cache_file" ;; #(
9073 *)
9074 mv -f confcache "$cache_file" ;;
9075 esac
9076 fi
9077 fi
9078 else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9081 fi
9082 fi
9083 rm -f confcache
9084
9085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9086 # Let make expand exec_prefix.
9087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9088
9089 DEFS=-DHAVE_CONFIG_H
9090
9091 ac_libobjs=
9092 ac_ltlibobjs=
9093 U=
9094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9095 # 1. Remove the extension, and $U if already installed.
9096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9099 # will be set to the directory where LIBOBJS objects are built.
9100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9101 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9102 done
9103 LIBOBJS=$ac_libobjs
9104
9105 LTLIBOBJS=$ac_ltlibobjs
9106
9107
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9109 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9110 if test -n "$am_sleep_pid"; then
9111 # Hide warnings about reused PIDs.
9112 wait $am_sleep_pid 2>/dev/null
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9115 $as_echo "done" >&6; }
9116 if test -n "$EXEEXT"; then
9117 am__EXEEXT_TRUE=
9118 am__EXEEXT_FALSE='#'
9119 else
9120 am__EXEEXT_TRUE='#'
9121 am__EXEEXT_FALSE=
9122 fi
9123
9124 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9125 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9127 fi
9128 if test -z "${WITH_DATA1PKG_TRUE}" && test -z "${WITH_DATA1PKG_FALSE}"; then
9129 as_fn_error $? "conditional \"WITH_DATA1PKG\" was never defined.
9130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9131 fi
9132 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9133 as_fn_error $? "conditional \"AMDEP\" was never defined.
9134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9135 fi
9136 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9137 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9139 fi
9140 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9141 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9143 fi
9144 if test -z "${BUILD_CLIENT_TRUE}" && test -z "${BUILD_CLIENT_FALSE}"; then
9145 as_fn_error $? "conditional \"BUILD_CLIENT\" was never defined.
9146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9147 fi
9148 if test -z "${DOC_INSTALL_TRUE}" && test -z "${DOC_INSTALL_FALSE}"; then
9149 as_fn_error $? "conditional \"DOC_INSTALL\" was never defined.
9150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9151 fi
9152 if test -z "${ICONS_INSTALL_TRUE}" && test -z "${ICONS_INSTALL_FALSE}"; then
9153 as_fn_error $? "conditional \"ICONS_INSTALL\" was never defined.
9154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9155 fi
9156 if test -z "${USE_SYSTEM_LIBODE_TRUE}" && test -z "${USE_SYSTEM_LIBODE_FALSE}"; then
9157 as_fn_error $? "conditional \"USE_SYSTEM_LIBODE\" was never defined.
9158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9159 fi
9160
9161 : "${CONFIG_STATUS=./config.status}"
9162 ac_write_fail=0
9163 ac_clean_files_save=$ac_clean_files
9164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9166 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9167 as_write_fail=0
9168 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9169 #! $SHELL
9170 # Generated by $as_me.
9171 # Run this file to recreate the current configuration.
9172 # Compiler output produced by configure, useful for debugging
9173 # configure, is in config.log if it exists.
9174
9175 debug=false
9176 ac_cs_recheck=false
9177 ac_cs_silent=false
9178
9179 SHELL=\${CONFIG_SHELL-$SHELL}
9180 export SHELL
9181 _ASEOF
9182 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9183 ## -------------------- ##
9184 ## M4sh Initialization. ##
9185 ## -------------------- ##
9186
9187 # Be more Bourne compatible
9188 DUALCASE=1; export DUALCASE # for MKS sh
9189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9190 emulate sh
9191 NULLCMD=:
9192 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9193 # is contrary to our usage. Disable this feature.
9194 alias -g '${1+"$@"}'='"$@"'
9195 setopt NO_GLOB_SUBST
9196 else
9197 case `(set -o) 2>/dev/null` in #(
9198 *posix*) :
9199 set -o posix ;; #(
9200 *) :
9201 ;;
9202 esac
9203 fi
9204
9205
9206 as_nl='
9207 '
9208 export as_nl
9209 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9210 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9211 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9213 # Prefer a ksh shell builtin over an external printf program on Solaris,
9214 # but without wasting forks for bash or zsh.
9215 if test -z "$BASH_VERSION$ZSH_VERSION" \
9216 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9217 as_echo='print -r --'
9218 as_echo_n='print -rn --'
9219 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9220 as_echo='printf %s\n'
9221 as_echo_n='printf %s'
9222 else
9223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9224 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9225 as_echo_n='/usr/ucb/echo -n'
9226 else
9227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9228 as_echo_n_body='eval
9229 arg=$1;
9230 case $arg in #(
9231 *"$as_nl"*)
9232 expr "X$arg" : "X\\(.*\\)$as_nl";
9233 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9234 esac;
9235 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9236 '
9237 export as_echo_n_body
9238 as_echo_n='sh -c $as_echo_n_body as_echo'
9239 fi
9240 export as_echo_body
9241 as_echo='sh -c $as_echo_body as_echo'
9242 fi
9243
9244 # The user is always right.
9245 if test "${PATH_SEPARATOR+set}" != set; then
9246 PATH_SEPARATOR=:
9247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9248 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9249 PATH_SEPARATOR=';'
9250 }
9251 fi
9252
9253
9254 # IFS
9255 # We need space, tab and new line, in precisely that order. Quoting is
9256 # there to prevent editors from complaining about space-tab.
9257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9258 # splitting by setting IFS to empty value.)
9259 IFS=" "" $as_nl"
9260
9261 # Find who we are. Look in the path if we contain no directory separator.
9262 as_myself=
9263 case $0 in #((
9264 *[\\/]* ) as_myself=$0 ;;
9265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 for as_dir in $PATH
9267 do
9268 IFS=$as_save_IFS
9269 test -z "$as_dir" && as_dir=.
9270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9271 done
9272 IFS=$as_save_IFS
9273
9274 ;;
9275 esac
9276 # We did not find ourselves, most probably we were run as `sh COMMAND'
9277 # in which case we are not to be found in the path.
9278 if test "x$as_myself" = x; then
9279 as_myself=$0
9280 fi
9281 if test ! -f "$as_myself"; then
9282 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9283 exit 1
9284 fi
9285
9286 # Unset variables that we do not need and which cause bugs (e.g. in
9287 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9288 # suppresses any "Segmentation fault" message there. '((' could
9289 # trigger a bug in pdksh 5.2.14.
9290 for as_var in BASH_ENV ENV MAIL MAILPATH
9291 do eval test x\${$as_var+set} = xset \
9292 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9293 done
9294 PS1='$ '
9295 PS2='> '
9296 PS4='+ '
9297
9298 # NLS nuisances.
9299 LC_ALL=C
9300 export LC_ALL
9301 LANGUAGE=C
9302 export LANGUAGE
9303
9304 # CDPATH.
9305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9306
9307
9308 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9309 # ----------------------------------------
9310 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9311 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9312 # script with STATUS, using 1 if that was 0.
9313 as_fn_error ()
9314 {
9315 as_status=$1; test $as_status -eq 0 && as_status=1
9316 if test "$4"; then
9317 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9318 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9319 fi
9320 $as_echo "$as_me: error: $2" >&2
9321 as_fn_exit $as_status
9322 } # as_fn_error
9323
9324
9325 # as_fn_set_status STATUS
9326 # -----------------------
9327 # Set $? to STATUS, without forking.
9328 as_fn_set_status ()
9329 {
9330 return $1
9331 } # as_fn_set_status
9332
9333 # as_fn_exit STATUS
9334 # -----------------
9335 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9336 as_fn_exit ()
9337 {
9338 set +e
9339 as_fn_set_status $1
9340 exit $1
9341 } # as_fn_exit
9342
9343 # as_fn_unset VAR
9344 # ---------------
9345 # Portably unset VAR.
9346 as_fn_unset ()
9347 {
9348 { eval $1=; unset $1;}
9349 }
9350 as_unset=as_fn_unset
9351 # as_fn_append VAR VALUE
9352 # ----------------------
9353 # Append the text in VALUE to the end of the definition contained in VAR. Take
9354 # advantage of any shell optimizations that allow amortized linear growth over
9355 # repeated appends, instead of the typical quadratic growth present in naive
9356 # implementations.
9357 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9358 eval 'as_fn_append ()
9359 {
9360 eval $1+=\$2
9361 }'
9362 else
9363 as_fn_append ()
9364 {
9365 eval $1=\$$1\$2
9366 }
9367 fi # as_fn_append
9368
9369 # as_fn_arith ARG...
9370 # ------------------
9371 # Perform arithmetic evaluation on the ARGs, and store the result in the
9372 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9373 # must be portable across $(()) and expr.
9374 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9375 eval 'as_fn_arith ()
9376 {
9377 as_val=$(( $* ))
9378 }'
9379 else
9380 as_fn_arith ()
9381 {
9382 as_val=`expr "$@" || test $? -eq 1`
9383 }
9384 fi # as_fn_arith
9385
9386
9387 if expr a : '\(a\)' >/dev/null 2>&1 &&
9388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9389 as_expr=expr
9390 else
9391 as_expr=false
9392 fi
9393
9394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9395 as_basename=basename
9396 else
9397 as_basename=false
9398 fi
9399
9400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9401 as_dirname=dirname
9402 else
9403 as_dirname=false
9404 fi
9405
9406 as_me=`$as_basename -- "$0" ||
9407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9408 X"$0" : 'X\(//\)$' \| \
9409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9410 $as_echo X/"$0" |
9411 sed '/^.*\/\([^/][^/]*\)\/*$/{
9412 s//\1/
9413 q
9414 }
9415 /^X\/\(\/\/\)$/{
9416 s//\1/
9417 q
9418 }
9419 /^X\/\(\/\).*/{
9420 s//\1/
9421 q
9422 }
9423 s/.*/./; q'`
9424
9425 # Avoid depending upon Character Ranges.
9426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9429 as_cr_digits='0123456789'
9430 as_cr_alnum=$as_cr_Letters$as_cr_digits
9431
9432 ECHO_C= ECHO_N= ECHO_T=
9433 case `echo -n x` in #(((((
9434 -n*)
9435 case `echo 'xy\c'` in
9436 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9437 xy) ECHO_C='\c';;
9438 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9439 ECHO_T=' ';;
9440 esac;;
9441 *)
9442 ECHO_N='-n';;
9443 esac
9444
9445 rm -f conf$$ conf$$.exe conf$$.file
9446 if test -d conf$$.dir; then
9447 rm -f conf$$.dir/conf$$.file
9448 else
9449 rm -f conf$$.dir
9450 mkdir conf$$.dir 2>/dev/null
9451 fi
9452 if (echo >conf$$.file) 2>/dev/null; then
9453 if ln -s conf$$.file conf$$ 2>/dev/null; then
9454 as_ln_s='ln -s'
9455 # ... but there are two gotchas:
9456 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9457 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9458 # In both cases, we have to default to `cp -pR'.
9459 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9460 as_ln_s='cp -pR'
9461 elif ln conf$$.file conf$$ 2>/dev/null; then
9462 as_ln_s=ln
9463 else
9464 as_ln_s='cp -pR'
9465 fi
9466 else
9467 as_ln_s='cp -pR'
9468 fi
9469 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9470 rmdir conf$$.dir 2>/dev/null
9471
9472
9473 # as_fn_mkdir_p
9474 # -------------
9475 # Create "$as_dir" as a directory, including parents if necessary.
9476 as_fn_mkdir_p ()
9477 {
9478
9479 case $as_dir in #(
9480 -*) as_dir=./$as_dir;;
9481 esac
9482 test -d "$as_dir" || eval $as_mkdir_p || {
9483 as_dirs=
9484 while :; do
9485 case $as_dir in #(
9486 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9487 *) as_qdir=$as_dir;;
9488 esac
9489 as_dirs="'$as_qdir' $as_dirs"
9490 as_dir=`$as_dirname -- "$as_dir" ||
9491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9492 X"$as_dir" : 'X\(//\)[^/]' \| \
9493 X"$as_dir" : 'X\(//\)$' \| \
9494 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9495 $as_echo X"$as_dir" |
9496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9497 s//\1/
9498 q
9499 }
9500 /^X\(\/\/\)[^/].*/{
9501 s//\1/
9502 q
9503 }
9504 /^X\(\/\/\)$/{
9505 s//\1/
9506 q
9507 }
9508 /^X\(\/\).*/{
9509 s//\1/
9510 q
9511 }
9512 s/.*/./; q'`
9513 test -d "$as_dir" && break
9514 done
9515 test -z "$as_dirs" || eval "mkdir $as_dirs"
9516 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9517
9518
9519 } # as_fn_mkdir_p
9520 if mkdir -p . 2>/dev/null; then
9521 as_mkdir_p='mkdir -p "$as_dir"'
9522 else
9523 test -d ./-p && rmdir ./-p
9524 as_mkdir_p=false
9525 fi
9526
9527
9528 # as_fn_executable_p FILE
9529 # -----------------------
9530 # Test if FILE is an executable regular file.
9531 as_fn_executable_p ()
9532 {
9533 test -f "$1" && test -x "$1"
9534 } # as_fn_executable_p
9535 as_test_x='test -x'
9536 as_executable_p=as_fn_executable_p
9537
9538 # Sed expression to map a string onto a valid CPP name.
9539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9540
9541 # Sed expression to map a string onto a valid variable name.
9542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9543
9544
9545 exec 6>&1
9546 ## ----------------------------------- ##
9547 ## Main body of $CONFIG_STATUS script. ##
9548 ## ----------------------------------- ##
9549 _ASEOF
9550 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9551
9552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9553 # Save the log message, to keep $0 and so on meaningful, and to
9554 # report actual input values of CONFIG_FILES etc. instead of their
9555 # values after options handling.
9556 ac_log="
9557 This file was extended by alienarena $as_me 7.71.7, which was
9558 generated by GNU Autoconf 2.69. Invocation command line was
9559
9560 CONFIG_FILES = $CONFIG_FILES
9561 CONFIG_HEADERS = $CONFIG_HEADERS
9562 CONFIG_LINKS = $CONFIG_LINKS
9563 CONFIG_COMMANDS = $CONFIG_COMMANDS
9564 $ $0 $@
9565
9566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9567 "
9568
9569 _ACEOF
9570
9571 case $ac_config_files in *"
9572 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9573 esac
9574
9575 case $ac_config_headers in *"
9576 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9577 esac
9578
9579
9580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9581 # Files that config.status was made for.
9582 config_files="$ac_config_files"
9583 config_headers="$ac_config_headers"
9584 config_commands="$ac_config_commands"
9585
9586 _ACEOF
9587
9588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9589 ac_cs_usage="\
9590 \`$as_me' instantiates files and other configuration actions
9591 from templates according to the current configuration. Unless the files
9592 and actions are specified as TAGs, all are instantiated by default.
9593
9594 Usage: $0 [OPTION]... [TAG]...
9595
9596 -h, --help print this help, then exit
9597 -V, --version print version number and configuration settings, then exit
9598 --config print configuration, then exit
9599 -q, --quiet, --silent
9600 do not print progress messages
9601 -d, --debug don't remove temporary files
9602 --recheck update $as_me by reconfiguring in the same conditions
9603 --file=FILE[:TEMPLATE]
9604 instantiate the configuration file FILE
9605 --header=FILE[:TEMPLATE]
9606 instantiate the configuration header FILE
9607
9608 Configuration files:
9609 $config_files
9610
9611 Configuration headers:
9612 $config_headers
9613
9614 Configuration commands:
9615 $config_commands
9616
9617 Report bugs to <[email protected]>."
9618
9619 _ACEOF
9620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9621 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9622 ac_cs_version="\\
9623 alienarena config.status 7.71.7
9624 configured by $0, generated by GNU Autoconf 2.69,
9625 with options \\"\$ac_cs_config\\"
9626
9627 Copyright (C) 2012 Free Software Foundation, Inc.
9628 This config.status script is free software; the Free Software Foundation
9629 gives unlimited permission to copy, distribute and modify it."
9630
9631 ac_pwd='$ac_pwd'
9632 srcdir='$srcdir'
9633 INSTALL='$INSTALL'
9634 MKDIR_P='$MKDIR_P'
9635 AWK='$AWK'
9636 test -n "\$AWK" || AWK=awk
9637 _ACEOF
9638
9639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9640 # The default lists apply if the user does not specify any file.
9641 ac_need_defaults=:
9642 while test $# != 0
9643 do
9644 case $1 in
9645 --*=?*)
9646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9647 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9648 ac_shift=:
9649 ;;
9650 --*=)
9651 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9652 ac_optarg=
9653 ac_shift=:
9654 ;;
9655 *)
9656 ac_option=$1
9657 ac_optarg=$2
9658 ac_shift=shift
9659 ;;
9660 esac
9661
9662 case $ac_option in
9663 # Handling of the options.
9664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9665 ac_cs_recheck=: ;;
9666 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9667 $as_echo "$ac_cs_version"; exit ;;
9668 --config | --confi | --conf | --con | --co | --c )
9669 $as_echo "$ac_cs_config"; exit ;;
9670 --debug | --debu | --deb | --de | --d | -d )
9671 debug=: ;;
9672 --file | --fil | --fi | --f )
9673 $ac_shift
9674 case $ac_optarg in
9675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9676 '') as_fn_error $? "missing file argument" ;;
9677 esac
9678 as_fn_append CONFIG_FILES " '$ac_optarg'"
9679 ac_need_defaults=false;;
9680 --header | --heade | --head | --hea )
9681 $ac_shift
9682 case $ac_optarg in
9683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9684 esac
9685 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9686 ac_need_defaults=false;;
9687 --he | --h)
9688 # Conflict between --help and --header
9689 as_fn_error $? "ambiguous option: \`$1'
9690 Try \`$0 --help' for more information.";;
9691 --help | --hel | -h )
9692 $as_echo "$ac_cs_usage"; exit ;;
9693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9695 ac_cs_silent=: ;;
9696
9697 # This is an error.
9698 -*) as_fn_error $? "unrecognized option: \`$1'
9699 Try \`$0 --help' for more information." ;;
9700
9701 *) as_fn_append ac_config_targets " $1"
9702 ac_need_defaults=false ;;
9703
9704 esac
9705 shift
9706 done
9707
9708 ac_configure_extra_args=
9709
9710 if $ac_cs_silent; then
9711 exec 6>/dev/null
9712 ac_configure_extra_args="$ac_configure_extra_args --silent"
9713 fi
9714
9715 _ACEOF
9716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9717 if \$ac_cs_recheck; then
9718 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9719 shift
9720 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9721 CONFIG_SHELL='$SHELL'
9722 export CONFIG_SHELL
9723 exec "\$@"
9724 fi
9725
9726 _ACEOF
9727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9728 exec 5>>config.log
9729 {
9730 echo
9731 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9732 ## Running $as_me. ##
9733 _ASBOX
9734 $as_echo "$ac_log"
9735 } >&5
9736
9737 _ACEOF
9738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9739 #
9740 # INIT-COMMANDS
9741 #
9742 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9743
9744 _ACEOF
9745
9746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9747
9748 # Handling of arguments.
9749 for ac_config_target in $ac_config_targets
9750 do
9751 case $ac_config_target in
9752 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
9753 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9754 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9755 "source/Makefile") CONFIG_FILES="$CONFIG_FILES source/Makefile" ;;
9756
9757 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9758 esac
9759 done
9760
9761
9762 # If the user did not use the arguments to specify the items to instantiate,
9763 # then the envvar interface is used. Set only those that are not.
9764 # We use the long form for the default assignment because of an extremely
9765 # bizarre bug on SunOS 4.1.3.
9766 if $ac_need_defaults; then
9767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9769 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9770 fi
9771
9772 # Have a temporary directory for convenience. Make it in the build tree
9773 # simply because there is no reason against having it here, and in addition,
9774 # creating and moving files from /tmp can sometimes cause problems.
9775 # Hook for its removal unless debugging.
9776 # Note that there is a small window in which the directory will not be cleaned:
9777 # after its creation but before its name has been assigned to `$tmp'.
9778 $debug ||
9779 {
9780 tmp= ac_tmp=
9781 trap 'exit_status=$?
9782 : "${ac_tmp:=$tmp}"
9783 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9784 ' 0
9785 trap 'as_fn_exit 1' 1 2 13 15
9786 }
9787 # Create a (secure) tmp directory for tmp files.
9788
9789 {
9790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9791 test -d "$tmp"
9792 } ||
9793 {
9794 tmp=./conf$$-$RANDOM
9795 (umask 077 && mkdir "$tmp")
9796 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9797 ac_tmp=$tmp
9798
9799 # Set up the scripts for CONFIG_FILES section.
9800 # No need to generate them if there are no CONFIG_FILES.
9801 # This happens for instance with `./config.status config.h'.
9802 if test -n "$CONFIG_FILES"; then
9803
9804
9805 ac_cr=`echo X | tr X '\015'`
9806 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9807 # But we know of no other shell where ac_cr would be empty at this
9808 # point, so we can use a bashism as a fallback.
9809 if test "x$ac_cr" = x; then
9810 eval ac_cr=\$\'\\r\'
9811 fi
9812 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9813 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9814 ac_cs_awk_cr='\\r'
9815 else
9816 ac_cs_awk_cr=$ac_cr
9817 fi
9818
9819 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9820 _ACEOF
9821
9822
9823 {
9824 echo "cat >conf$$subs.awk <<_ACEOF" &&
9825 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9826 echo "_ACEOF"
9827 } >conf$$subs.sh ||
9828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9830 ac_delim='%!_!# '
9831 for ac_last_try in false false false false false :; do
9832 . ./conf$$subs.sh ||
9833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9834
9835 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9836 if test $ac_delim_n = $ac_delim_num; then
9837 break
9838 elif $ac_last_try; then
9839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9840 else
9841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9842 fi
9843 done
9844 rm -f conf$$subs.sh
9845
9846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9847 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9848 _ACEOF
9849 sed -n '
9850 h
9851 s/^/S["/; s/!.*/"]=/
9852 p
9853 g
9854 s/^[^!]*!//
9855 :repl
9856 t repl
9857 s/'"$ac_delim"'$//
9858 t delim
9859 :nl
9860 h
9861 s/\(.\{148\}\)..*/\1/
9862 t more1
9863 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9864 p
9865 n
9866 b repl
9867 :more1
9868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9869 p
9870 g
9871 s/.\{148\}//
9872 t nl
9873 :delim
9874 h
9875 s/\(.\{148\}\)..*/\1/
9876 t more2
9877 s/["\\]/\\&/g; s/^/"/; s/$/"/
9878 p
9879 b
9880 :more2
9881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9882 p
9883 g
9884 s/.\{148\}//
9885 t delim
9886 ' <conf$$subs.awk | sed '
9887 /^[^""]/{
9888 N
9889 s/\n//
9890 }
9891 ' >>$CONFIG_STATUS || ac_write_fail=1
9892 rm -f conf$$subs.awk
9893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9894 _ACAWK
9895 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9896 for (key in S) S_is_set[key] = 1
9897 FS = ""
9898
9899 }
9900 {
9901 line = $ 0
9902 nfields = split(line, field, "@")
9903 substed = 0
9904 len = length(field[1])
9905 for (i = 2; i < nfields; i++) {
9906 key = field[i]
9907 keylen = length(key)
9908 if (S_is_set[key]) {
9909 value = S[key]
9910 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9911 len += length(value) + length(field[++i])
9912 substed = 1
9913 } else
9914 len += 1 + keylen
9915 }
9916
9917 print line
9918 }
9919
9920 _ACAWK
9921 _ACEOF
9922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9924 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9925 else
9926 cat
9927 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9928 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9929 _ACEOF
9930
9931 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9932 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9933 # trailing colons and then remove the whole line if VPATH becomes empty
9934 # (actually we leave an empty line to preserve line numbers).
9935 if test "x$srcdir" = x.; then
9936 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9937 h
9938 s///
9939 s/^/:/
9940 s/[ ]*$/:/
9941 s/:\$(srcdir):/:/g
9942 s/:\${srcdir}:/:/g
9943 s/:@srcdir@:/:/g
9944 s/^:*//
9945 s/:*$//
9946 x
9947 s/\(=[ ]*\).*/\1/
9948 G
9949 s/\n//
9950 s/^[^=]*=[ ]*$//
9951 }'
9952 fi
9953
9954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9955 fi # test -n "$CONFIG_FILES"
9956
9957 # Set up the scripts for CONFIG_HEADERS section.
9958 # No need to generate them if there are no CONFIG_HEADERS.
9959 # This happens for instance with `./config.status Makefile'.
9960 if test -n "$CONFIG_HEADERS"; then
9961 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9962 BEGIN {
9963 _ACEOF
9964
9965 # Transform confdefs.h into an awk script `defines.awk', embedded as
9966 # here-document in config.status, that substitutes the proper values into
9967 # config.h.in to produce config.h.
9968
9969 # Create a delimiter string that does not exist in confdefs.h, to ease
9970 # handling of long lines.
9971 ac_delim='%!_!# '
9972 for ac_last_try in false false :; do
9973 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9974 if test -z "$ac_tt"; then
9975 break
9976 elif $ac_last_try; then
9977 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9978 else
9979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9980 fi
9981 done
9982
9983 # For the awk script, D is an array of macro values keyed by name,
9984 # likewise P contains macro parameters if any. Preserve backslash
9985 # newline sequences.
9986
9987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9988 sed -n '
9989 s/.\{148\}/&'"$ac_delim"'/g
9990 t rset
9991 :rset
9992 s/^[ ]*#[ ]*define[ ][ ]*/ /
9993 t def
9994 d
9995 :def
9996 s/\\$//
9997 t bsnl
9998 s/["\\]/\\&/g
9999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10000 D["\1"]=" \3"/p
10001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10002 d
10003 :bsnl
10004 s/["\\]/\\&/g
10005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10006 D["\1"]=" \3\\\\\\n"\\/p
10007 t cont
10008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10009 t cont
10010 d
10011 :cont
10012 n
10013 s/.\{148\}/&'"$ac_delim"'/g
10014 t clear
10015 :clear
10016 s/\\$//
10017 t bsnlc
10018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10019 d
10020 :bsnlc
10021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10022 b cont
10023 ' <confdefs.h | sed '
10024 s/'"$ac_delim"'/"\\\
10025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10026
10027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10028 for (key in D) D_is_set[key] = 1
10029 FS = ""
10030 }
10031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10032 line = \$ 0
10033 split(line, arg, " ")
10034 if (arg[1] == "#") {
10035 defundef = arg[2]
10036 mac1 = arg[3]
10037 } else {
10038 defundef = substr(arg[1], 2)
10039 mac1 = arg[2]
10040 }
10041 split(mac1, mac2, "(") #)
10042 macro = mac2[1]
10043 prefix = substr(line, 1, index(line, defundef) - 1)
10044 if (D_is_set[macro]) {
10045 # Preserve the white space surrounding the "#".
10046 print prefix "define", macro P[macro] D[macro]
10047 next
10048 } else {
10049 # Replace #undef with comments. This is necessary, for example,
10050 # in the case of _POSIX_SOURCE, which is predefined and required
10051 # on some systems where configure will not decide to define it.
10052 if (defundef == "undef") {
10053 print "/*", prefix defundef, macro, "*/"
10054 next
10055 }
10056 }
10057 }
10058 { print }
10059 _ACAWK
10060 _ACEOF
10061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10062 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10063 fi # test -n "$CONFIG_HEADERS"
10064
10065
10066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10067 shift
10068 for ac_tag
10069 do
10070 case $ac_tag in
10071 :[FHLC]) ac_mode=$ac_tag; continue;;
10072 esac
10073 case $ac_mode$ac_tag in
10074 :[FHL]*:*);;
10075 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10076 :[FH]-) ac_tag=-:-;;
10077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10078 esac
10079 ac_save_IFS=$IFS
10080 IFS=:
10081 set x $ac_tag
10082 IFS=$ac_save_IFS
10083 shift
10084 ac_file=$1
10085 shift
10086
10087 case $ac_mode in
10088 :L) ac_source=$1;;
10089 :[FH])
10090 ac_file_inputs=
10091 for ac_f
10092 do
10093 case $ac_f in
10094 -) ac_f="$ac_tmp/stdin";;
10095 *) # Look for the file first in the build tree, then in the source tree
10096 # (if the path is not absolute). The absolute path cannot be DOS-style,
10097 # because $ac_f cannot contain `:'.
10098 test -f "$ac_f" ||
10099 case $ac_f in
10100 [\\/$]*) false;;
10101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10102 esac ||
10103 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10104 esac
10105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10106 as_fn_append ac_file_inputs " '$ac_f'"
10107 done
10108
10109 # Let's still pretend it is `configure' which instantiates (i.e., don't
10110 # use $as_me), people would be surprised to read:
10111 # /* config.h. Generated by config.status. */
10112 configure_input='Generated from '`
10113 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10114 `' by configure.'
10115 if test x"$ac_file" != x-; then
10116 configure_input="$ac_file. $configure_input"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10118 $as_echo "$as_me: creating $ac_file" >&6;}
10119 fi
10120 # Neutralize special characters interpreted by sed in replacement strings.
10121 case $configure_input in #(
10122 *\&* | *\|* | *\\* )
10123 ac_sed_conf_input=`$as_echo "$configure_input" |
10124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10125 *) ac_sed_conf_input=$configure_input;;
10126 esac
10127
10128 case $ac_tag in
10129 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10131 esac
10132 ;;
10133 esac
10134
10135 ac_dir=`$as_dirname -- "$ac_file" ||
10136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10137 X"$ac_file" : 'X\(//\)[^/]' \| \
10138 X"$ac_file" : 'X\(//\)$' \| \
10139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10140 $as_echo X"$ac_file" |
10141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10142 s//\1/
10143 q
10144 }
10145 /^X\(\/\/\)[^/].*/{
10146 s//\1/
10147 q
10148 }
10149 /^X\(\/\/\)$/{
10150 s//\1/
10151 q
10152 }
10153 /^X\(\/\).*/{
10154 s//\1/
10155 q
10156 }
10157 s/.*/./; q'`
10158 as_dir="$ac_dir"; as_fn_mkdir_p
10159 ac_builddir=.
10160
10161 case "$ac_dir" in
10162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10163 *)
10164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10165 # A ".." for each directory in $ac_dir_suffix.
10166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10167 case $ac_top_builddir_sub in
10168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10170 esac ;;
10171 esac
10172 ac_abs_top_builddir=$ac_pwd
10173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10174 # for backward compatibility:
10175 ac_top_builddir=$ac_top_build_prefix
10176
10177 case $srcdir in
10178 .) # We are building in place.
10179 ac_srcdir=.
10180 ac_top_srcdir=$ac_top_builddir_sub
10181 ac_abs_top_srcdir=$ac_pwd ;;
10182 [\\/]* | ?:[\\/]* ) # Absolute name.
10183 ac_srcdir=$srcdir$ac_dir_suffix;
10184 ac_top_srcdir=$srcdir
10185 ac_abs_top_srcdir=$srcdir ;;
10186 *) # Relative name.
10187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10188 ac_top_srcdir=$ac_top_build_prefix$srcdir
10189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10190 esac
10191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10192
10193
10194 case $ac_mode in
10195 :F)
10196 #
10197 # CONFIG_FILE
10198 #
10199
10200 case $INSTALL in
10201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10202 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10203 esac
10204 ac_MKDIR_P=$MKDIR_P
10205 case $MKDIR_P in
10206 [\\/$]* | ?:[\\/]* ) ;;
10207 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10208 esac
10209 _ACEOF
10210
10211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10212 # If the template does not know about datarootdir, expand it.
10213 # FIXME: This hack should be removed a few years after 2.60.
10214 ac_datarootdir_hack=; ac_datarootdir_seen=
10215 ac_sed_dataroot='
10216 /datarootdir/ {
10217 p
10218 q
10219 }
10220 /@datadir@/p
10221 /@docdir@/p
10222 /@infodir@/p
10223 /@localedir@/p
10224 /@mandir@/p'
10225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10226 *datarootdir*) ac_datarootdir_seen=yes;;
10227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10230 _ACEOF
10231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10232 ac_datarootdir_hack='
10233 s&@datadir@&$datadir&g
10234 s&@docdir@&$docdir&g
10235 s&@infodir@&$infodir&g
10236 s&@localedir@&$localedir&g
10237 s&@mandir@&$mandir&g
10238 s&\\\${datarootdir}&$datarootdir&g' ;;
10239 esac
10240 _ACEOF
10241
10242 # Neutralize VPATH when `$srcdir' = `.'.
10243 # Shell code in configure.ac might set extrasub.
10244 # FIXME: do we really want to maintain this feature?
10245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10246 ac_sed_extra="$ac_vpsub
10247 $extrasub
10248 _ACEOF
10249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10250 :t
10251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10252 s|@configure_input@|$ac_sed_conf_input|;t t
10253 s&@top_builddir@&$ac_top_builddir_sub&;t t
10254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10255 s&@srcdir@&$ac_srcdir&;t t
10256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10257 s&@top_srcdir@&$ac_top_srcdir&;t t
10258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10259 s&@builddir@&$ac_builddir&;t t
10260 s&@abs_builddir@&$ac_abs_builddir&;t t
10261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10262 s&@INSTALL@&$ac_INSTALL&;t t
10263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10264 $ac_datarootdir_hack
10265 "
10266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10267 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10268
10269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10270 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10272 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10274 which seems to be undefined. Please make sure it is defined" >&5
10275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10276 which seems to be undefined. Please make sure it is defined" >&2;}
10277
10278 rm -f "$ac_tmp/stdin"
10279 case $ac_file in
10280 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10281 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10282 esac \
10283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10284 ;;
10285 :H)
10286 #
10287 # CONFIG_HEADER
10288 #
10289 if test x"$ac_file" != x-; then
10290 {
10291 $as_echo "/* $configure_input */" \
10292 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10293 } >"$ac_tmp/config.h" \
10294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10295 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10297 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10298 else
10299 rm -f "$ac_file"
10300 mv "$ac_tmp/config.h" "$ac_file" \
10301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10302 fi
10303 else
10304 $as_echo "/* $configure_input */" \
10305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10306 || as_fn_error $? "could not create -" "$LINENO" 5
10307 fi
10308 # Compute "$ac_file"'s index in $config_headers.
10309 _am_arg="$ac_file"
10310 _am_stamp_count=1
10311 for _am_header in $config_headers :; do
10312 case $_am_header in
10313 $_am_arg | $_am_arg:* )
10314 break ;;
10315 * )
10316 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10317 esac
10318 done
10319 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10320 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10321 X"$_am_arg" : 'X\(//\)[^/]' \| \
10322 X"$_am_arg" : 'X\(//\)$' \| \
10323 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10324 $as_echo X"$_am_arg" |
10325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10326 s//\1/
10327 q
10328 }
10329 /^X\(\/\/\)[^/].*/{
10330 s//\1/
10331 q
10332 }
10333 /^X\(\/\/\)$/{
10334 s//\1/
10335 q
10336 }
10337 /^X\(\/\).*/{
10338 s//\1/
10339 q
10340 }
10341 s/.*/./; q'`/stamp-h$_am_stamp_count
10342 ;;
10343
10344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10345 $as_echo "$as_me: executing $ac_file commands" >&6;}
10346 ;;
10347 esac
10348
10349
10350 case $ac_file$ac_mode in
10351 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10352 # Older Autoconf quotes --file arguments for eval, but not when files
10353 # are listed without --file. Let's play safe and only enable the eval
10354 # if we detect the quoting.
10355 case $CONFIG_FILES in
10356 *\'*) eval set x "$CONFIG_FILES" ;;
10357 *) set x $CONFIG_FILES ;;
10358 esac
10359 shift
10360 for mf
10361 do
10362 # Strip MF so we end up with the name of the file.
10363 mf=`echo "$mf" | sed -e 's/:.*$//'`
10364 # Check whether this is an Automake generated Makefile or not.
10365 # We used to match only the files named 'Makefile.in', but
10366 # some people rename them; so instead we look at the file content.
10367 # Grep'ing the first line is not enough: some people post-process
10368 # each Makefile.in and add a new line on top of each file to say so.
10369 # Grep'ing the whole file is not good either: AIX grep has a line
10370 # limit of 2048, but all sed's we know have understand at least 4000.
10371 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10372 dirpart=`$as_dirname -- "$mf" ||
10373 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10374 X"$mf" : 'X\(//\)[^/]' \| \
10375 X"$mf" : 'X\(//\)$' \| \
10376 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10377 $as_echo X"$mf" |
10378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10379 s//\1/
10380 q
10381 }
10382 /^X\(\/\/\)[^/].*/{
10383 s//\1/
10384 q
10385 }
10386 /^X\(\/\/\)$/{
10387 s//\1/
10388 q
10389 }
10390 /^X\(\/\).*/{
10391 s//\1/
10392 q
10393 }
10394 s/.*/./; q'`
10395 else
10396 continue
10397 fi
10398 # Extract the definition of DEPDIR, am__include, and am__quote
10399 # from the Makefile without running 'make'.
10400 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10401 test -z "$DEPDIR" && continue
10402 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10403 test -z "$am__include" && continue
10404 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10405 # Find all dependency output files, they are included files with
10406 # $(DEPDIR) in their names. We invoke sed twice because it is the
10407 # simplest approach to changing $(DEPDIR) to its actual value in the
10408 # expansion.
10409 for file in `sed -n "
10410 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10412 # Make sure the directory exists.
10413 test -f "$dirpart/$file" && continue
10414 fdir=`$as_dirname -- "$file" ||
10415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10416 X"$file" : 'X\(//\)[^/]' \| \
10417 X"$file" : 'X\(//\)$' \| \
10418 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10419 $as_echo X"$file" |
10420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10421 s//\1/
10422 q
10423 }
10424 /^X\(\/\/\)[^/].*/{
10425 s//\1/
10426 q
10427 }
10428 /^X\(\/\/\)$/{
10429 s//\1/
10430 q
10431 }
10432 /^X\(\/\).*/{
10433 s//\1/
10434 q
10435 }
10436 s/.*/./; q'`
10437 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10438 # echo "creating $dirpart/$file"
10439 echo '# dummy' > "$dirpart/$file"
10440 done
10441 done
10442 }
10443 ;;
10444
10445 esac
10446 done # for ac_tag
10447
10448
10449 as_fn_exit 0
10450 _ACEOF
10451 ac_clean_files=$ac_clean_files_save
10452
10453 test $ac_write_fail = 0 ||
10454 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10455
10456
10457 # configure is writing to config.log, and then calls config.status.
10458 # config.status does its own redirection, appending to config.log.
10459 # Unfortunately, on DOS this fails, as config.log is still kept open
10460 # by configure, so config.status won't be able to write to it; its
10461 # output is simply discarded. So we exec the FD to /dev/null,
10462 # effectively closing config.log, so it can be properly (re)opened and
10463 # appended to by config.status. When coming back to configure, we
10464 # need to make the FD available again.
10465 if test "$no_create" != yes; then
10466 ac_cs_success=:
10467 ac_config_status_args=
10468 test "$silent" = yes &&
10469 ac_config_status_args="$ac_config_status_args --quiet"
10470 exec 5>/dev/null
10471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10472 exec 5>>config.log
10473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10474 # would make configure fail if this is the last instruction.
10475 $ac_cs_success || as_fn_exit 1
10476 fi
10477
10478 #
10479 # CONFIG_SUBDIRS section.
10480 #
10481 if test "$no_recursion" != yes; then
10482
10483 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10484 # so they do not pile up.
10485 ac_sub_configure_args=
10486 ac_prev=
10487 eval "set x $ac_configure_args"
10488 shift
10489 for ac_arg
10490 do
10491 if test -n "$ac_prev"; then
10492 ac_prev=
10493 continue
10494 fi
10495 case $ac_arg in
10496 -cache-file | --cache-file | --cache-fil | --cache-fi \
10497 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10498 ac_prev=cache_file ;;
10499 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10500 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10501 | --c=*)
10502 ;;
10503 --config-cache | -C)
10504 ;;
10505 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10506 ac_prev=srcdir ;;
10507 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10508 ;;
10509 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10510 ac_prev=prefix ;;
10511 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10512 ;;
10513 --disable-option-checking)
10514 ;;
10515 *)
10516 case $ac_arg in
10517 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10518 esac
10519 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10520 esac
10521 done
10522
10523 # Always prepend --prefix to ensure using the same prefix
10524 # in subdir configurations.
10525 ac_arg="--prefix=$prefix"
10526 case $ac_arg in
10527 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10528 esac
10529 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10530
10531 # Pass --silent
10532 if test "$silent" = yes; then
10533 ac_sub_configure_args="--silent $ac_sub_configure_args"
10534 fi
10535
10536 # Always prepend --disable-option-checking to silence warnings, since
10537 # different subdirs can have different --enable and --with options.
10538 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10539
10540 ac_popdir=`pwd`
10541 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10542
10543 # Do not complain, so a configure script can configure whichever
10544 # parts of a large source tree are present.
10545 test -d "$srcdir/$ac_dir" || continue
10546
10547 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10548 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10549 $as_echo "$ac_msg" >&6
10550 as_dir="$ac_dir"; as_fn_mkdir_p
10551 ac_builddir=.
10552
10553 case "$ac_dir" in
10554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10555 *)
10556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10557 # A ".." for each directory in $ac_dir_suffix.
10558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10559 case $ac_top_builddir_sub in
10560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10562 esac ;;
10563 esac
10564 ac_abs_top_builddir=$ac_pwd
10565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10566 # for backward compatibility:
10567 ac_top_builddir=$ac_top_build_prefix
10568
10569 case $srcdir in
10570 .) # We are building in place.
10571 ac_srcdir=.
10572 ac_top_srcdir=$ac_top_builddir_sub
10573 ac_abs_top_srcdir=$ac_pwd ;;
10574 [\\/]* | ?:[\\/]* ) # Absolute name.
10575 ac_srcdir=$srcdir$ac_dir_suffix;
10576 ac_top_srcdir=$srcdir
10577 ac_abs_top_srcdir=$srcdir ;;
10578 *) # Relative name.
10579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10580 ac_top_srcdir=$ac_top_build_prefix$srcdir
10581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10582 esac
10583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10584
10585
10586 cd "$ac_dir"
10587
10588 # Check for guested configure; otherwise get Cygnus style configure.
10589 if test -f "$ac_srcdir/configure.gnu"; then
10590 ac_sub_configure=$ac_srcdir/configure.gnu
10591 elif test -f "$ac_srcdir/configure"; then
10592 ac_sub_configure=$ac_srcdir/configure
10593 elif test -f "$ac_srcdir/configure.in"; then
10594 # This should be Cygnus configure.
10595 ac_sub_configure=$ac_aux_dir/configure
10596 else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10599 ac_sub_configure=
10600 fi
10601
10602 # The recursion is here.
10603 if test -n "$ac_sub_configure"; then
10604 # Make the cache file name correct relative to the subdirectory.
10605 case $cache_file in
10606 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10607 *) # Relative name.
10608 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10609 esac
10610
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10612 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10613 # The eval makes quoting arguments work.
10614 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10615 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10616 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10617 fi
10618
10619 cd "$ac_popdir"
10620 done
10621 fi
10622 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10624 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10625 fi
10626
10627
10628 #
10629 # Status message
10630 #
10631 # Check whether --enable-build-status was given.
10632 if test "${enable_build_status+set}" = set; then :
10633 enableval=$enable_build_status; hide_status=${enableval}
10634 else
10635 hide_status=no
10636 fi
10637
10638
10639 if test "x${hide_status}" = xno ; then :
10640
10641 $as_echo
10642 $as_echo "-------------------------------------------"
10643 $as_echo "Package: ${PACKAGE_NAME} Version: ${PACKAGE_VERSION}"
10644 $as_echo " OS: .................... ${host_os}"
10645 $as_echo " CPU: ................... ${host_cpu}"
10646 if test "x${build_client}" = xyes ; then :
10647
10648 dedicated_only=no
10649 else
10650
10651 dedicated_only=yes
10652 fi
10653 $as_echo " Dedicated Only: ........ ${dedicated_only}"
10654
10655 if test -z "$BUILD_CLIENT_TRUE"; then :
10656
10657 $as_echo " XF86 DGA support: ...... ${have_Xxf86dga}"
10658 $as_echo " XF86 VidMode support: .. ${have_Xxf86vm}"
10659 $as_echo " Zlib support: .......... ${have_zlib}"
10660 if test "x${unix_host}" = xdarwin ; then :
10661
10662 $as_echo " GL_LIBDIR: ............. ${gl_dlopen_path}"
10663
10664 fi
10665
10666 fi
10667 $as_echo " prefix ................ ${prefix}"
10668 $as_echo " doc-install ........... ${doc_install}"
10669 $as_echo " icons-install: ........ ${icons_install}"
10670 $as_echo " with data1: ........... ${with_data1pkg}"
10671 $as_echo " assertions enabled: ... ${ac_enable_assert}"
10672 $as_echo
10673 $as_echo "Advanced Build Information:"
10674 $as_echo " See README for information and recommendations."
10675 $as_echo " Run ./configure --help for configure options."
10676 $as_echo " Compiler options:"
10677 $as_echo " CFLAGS:.... ${CFLAGS}"
10678 $as_echo
10679 $as_echo "X11:"
10680 $as_echo " cflags: ${X11_CFLAGS} ${XXF86VM_CFLAGS} ${XXF86DGA_CFLAGS}"
10681 $as_echo " libs: ${X11_LIBS} ${XXF86VM_LIBS} ${XXF86DGA_LIBS}"
10682 $as_echo "FREETYPE2:"
10683 $as_echo " cflags: ${FREETYPE2_CFLAGS}"
10684 $as_echo " libs: ${FREETYPE2_LIBS}"
10685 $as_echo "LIBCURL:"
10686 $as_echo " cflags: ${LIBCURL_CFLAGS}"
10687 $as_echo " libs: ${LIBCURL_LIBS}"
10688 if test "x$system_libode" = "xyes"; then :
10689
10690 $as_echo "ODE:"
10691 $as_echo " cflags: ${ODE_CFLAGS}"
10692 $as_echo " libs: ${ODE_LIBS}"
10693
10694 fi
10695 $as_echo "OGG:"
10696 $as_echo " cflags: ${OGG}"
10697 $as_echo " libs: ${OGG_LIBS}"
10698 $as_echo "VORBIS:"
10699 $as_echo " cflags: ${VORBIS_CFLAGS}"
10700 $as_echo " libs: ${VORBIS_LIBS}"
10701 $as_echo "ZLIB:"
10702 $as_echo " cflags: ${ZLIB_CFLAGS}"
10703 $as_echo " libs: ${ZLIB_LIBS}"
10704 $as_echo
10705
10706 fi