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 Chromium B.S.U. 0.9.16.1.
4 #
5 # Report bugs to <https://sf.net/p/chromium-bsu/bugs>.
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: https://sf.net/p/chromium-bsu/bugs about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a 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='Chromium B.S.U.'
582 PACKAGE_TARNAME='chromium-bsu'
583 PACKAGE_VERSION='0.9.16.1'
584 PACKAGE_STRING='Chromium B.S.U. 0.9.16.1'
585 PACKAGE_BUGREPORT='https://sf.net/p/chromium-bsu/bugs'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/main.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_header_list=
626 ac_func_list=
627 gt_needs=
628 ac_subst_vars='am__EXEEXT_FALSE
629 am__EXEEXT_TRUE
630 LTLIBOBJS
631 IMAGE_LIBS
632 IMAGE_CFLAGS
633 AUDIO_LIBS
634 AUDIO_CFLAGS
635 WINDOW_LIBS
636 WINDOW_CFLAGS
637 TEXT_CFLAGS
638 TEXT_LIBS
639 SDLIMAGE_LIBS
640 SDLIMAGE_CFLAGS
641 SDL2IMAGE_LIBS
642 SDL2IMAGE_CFLAGS
643 SDLMIXER_LIBS
644 SDLMIXER_CFLAGS
645 SDL2MIXER_LIBS
646 SDL2MIXER_CFLAGS
647 FREEALUT_LIBS
648 FREEALUT_CFLAGS
649 OPENAL_LIBS
650 OPENAL_CFLAGS
651 GLUT_LIBS
652 GLUT_CFLAGS
653 SDL_LIBS
654 SDL_CFLAGS
655 SDL2_LIBS
656 SDL2_CFLAGS
657 FONTCONFIG_LIBS
658 FONTCONFIG_CFLAGS
659 FTGL_LIBS
660 FTGL_CFLAGS
661 GLU_LIBS
662 GLU_CFLAGS
663 GL_LIBS
664 GL_CFLAGS
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 LTLIBICONV
670 LIBICONV
671 INTL_MACOSX_LIBS
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 XGETTEXT_EXTRA_OPTIONS
681 MSGMERGE
682 XGETTEXT_015
683 XGETTEXT
684 GMSGFMT_015
685 MSGFMT_015
686 GMSGFMT
687 MSGFMT
688 GETTEXT_MACRO_VERSION
689 USE_NLS
690 LIBOBJS
691 EGREP
692 GREP
693 CPP
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 ac_ct_CC
698 CFLAGS
699 CC
700 PKG_CONFIG_LIBDIR
701 PKG_CONFIG_PATH
702 PKG_CONFIG
703 am__fastdepCXX_FALSE
704 am__fastdepCXX_TRUE
705 CXXDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CXX
716 CPPFLAGS
717 LDFLAGS
718 CXXFLAGS
719 CXX
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 runstatedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_silent_rules
790 enable_dependency_tracking
791 with_macintosh
792 enable_nls
793 with_gnu_ld
794 enable_rpath
795 with_libiconv_prefix
796 with_libintl_prefix
797 with_xquartz_gl
798 enable_glc
799 enable_ftgl
800 with_font_path
801 with_font_name
802 enable_sdl2
803 enable_sdl
804 enable_glut
805 enable_openal
806 enable_sdl2mixer
807 enable_sdlmixer
808 enable_glpng
809 enable_sdl2image
810 enable_sdlimage
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CXX
816 CXXFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CCC
821 PKG_CONFIG
822 PKG_CONFIG_PATH
823 PKG_CONFIG_LIBDIR
824 CC
825 CFLAGS
826 CPP
827 GL_CFLAGS
828 GL_LIBS
829 GLU_CFLAGS
830 GLU_LIBS
831 FTGL_CFLAGS
832 FTGL_LIBS
833 FONTCONFIG_CFLAGS
834 FONTCONFIG_LIBS
835 SDL2_CFLAGS
836 SDL2_LIBS
837 SDL_CFLAGS
838 SDL_LIBS
839 GLUT_CFLAGS
840 GLUT_LIBS
841 OPENAL_CFLAGS
842 OPENAL_LIBS
843 FREEALUT_CFLAGS
844 FREEALUT_LIBS
845 SDL2MIXER_CFLAGS
846 SDL2MIXER_LIBS
847 SDLMIXER_CFLAGS
848 SDLMIXER_LIBS
849 SDL2IMAGE_CFLAGS
850 SDL2IMAGE_LIBS
851 SDLIMAGE_CFLAGS
852 SDLIMAGE_LIBS'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 runstatedir='${localstatedir}/run'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
914
915 case $ac_option in
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
919 esac
920
921 # Accept the important Cygnus configure options, so we can diagnose typos.
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -runstatedir | --runstatedir | --runstatedi | --runstated \
1145 | --runstate | --runstat | --runsta | --runst | --runs \
1146 | --run | --ru | --r)
1147 ac_prev=runstatedir ;;
1148 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150 | --run=* | --ru=* | --r=*)
1151 runstatedir=$ac_optarg ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir runstatedir
1291 do
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1320 fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1367 fi
1368 else
1369 ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures Chromium B.S.U. 0.9.16.1 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/chromium-bsu]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of Chromium B.S.U. 0.9.16.1:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-dependency-tracking
1485 do not reject slow dependency extractors
1486 --disable-dependency-tracking
1487 speeds up one-time build
1488 --disable-nls do not use Native Language Support
1489 --disable-rpath do not hardcode runtime library paths
1490 --disable-glc do not use GLC
1491 --disable-ftgl do not use FTGL
1492 --disable-sdl2 do not use SDL2
1493 --disable-sdl do not use SDL
1494 --disable-glut do not use GLUT
1495 --disable-openal do not use OpenAL
1496 --disable-sdl2mixer do not use SDL2_Mixer
1497 --disable-sdlmixer do not use SDL_Mixer
1498 --disable-glpng do not use glpng
1499 --disable-sdl2image do not use SDL2_image
1500 --disable-sdlimage do not use SDL_image
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-macintosh Enable some special macintosh path handling
1506 --with-gnu-ld assume the C compiler uses GNU ld default=no
1507 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1508 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1509 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1510 --without-libintl-prefix don't search for libintl in includedir and libdir
1511 --with-xquartz-gl[=DIR] On Mac OSX, use opengl provided by X11/XQuartz
1512 instead of the built-in framework. If enabled, the
1513 default location is [DIR=/opt/X11]. This option is
1514 default to false.
1515 --with-font-path=file.ttf
1516 Path to the TTF font to use at runtime with FTGL
1517 (bold Gothic Uralic recommended)
1518 --with-font-name="Gothic Uralic"
1519 Name of the font to default to at runtime with GLC
1520 (bold Gothic Uralic is default)
1521
1522 Some influential environment variables:
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 PKG_CONFIG path to pkg-config utility
1531 PKG_CONFIG_PATH
1532 directories to add to pkg-config's search path
1533 PKG_CONFIG_LIBDIR
1534 path overriding pkg-config's built-in search path
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 CPP C preprocessor
1538 GL_CFLAGS C compiler flags for GL, overriding configure script defaults
1539 GL_LIBS Linker flags for GL, overriding configure script defaults
1540 GLU_CFLAGS C compiler flags for GLU, overriding system check
1541 GLU_LIBS Linker flags for GLU, overriding system check
1542 FTGL_CFLAGS C compiler flags for FTGL, overriding pkg-config
1543 FTGL_LIBS linker flags for FTGL, overriding pkg-config
1544 FONTCONFIG_CFLAGS
1545 C compiler flags for FONTCONFIG, overriding pkg-config
1546 FONTCONFIG_LIBS
1547 linker flags for FONTCONFIG, overriding pkg-config
1548 SDL2_CFLAGS C compiler flags for SDL2, overriding pkg-config
1549 SDL2_LIBS linker flags for SDL2, overriding pkg-config
1550 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1551 SDL_LIBS linker flags for SDL, overriding pkg-config
1552 GLUT_CFLAGS C compiler flags for GLUT, overriding configure script defaults
1553 GLUT_LIBS Linker flags for GLUT, overriding configure script defaults
1554 OPENAL_CFLAGS
1555 C compiler flags for OPENAL, overriding pkg-config
1556 OPENAL_LIBS linker flags for OPENAL, overriding pkg-config
1557 FREEALUT_CFLAGS
1558 C compiler flags for FREEALUT, overriding pkg-config
1559 FREEALUT_LIBS
1560 linker flags for FREEALUT, overriding pkg-config
1561 SDL2MIXER_CFLAGS
1562 C compiler flags for SDL2MIXER, overriding pkg-config
1563 SDL2MIXER_LIBS
1564 linker flags for SDL2MIXER, overriding pkg-config
1565 SDLMIXER_CFLAGS
1566 C compiler flags for SDLMIXER, overriding pkg-config
1567 SDLMIXER_LIBS
1568 linker flags for SDLMIXER, overriding pkg-config
1569 SDL2IMAGE_CFLAGS
1570 C compiler flags for SDL2IMAGE, overriding pkg-config
1571 SDL2IMAGE_LIBS
1572 linker flags for SDL2IMAGE, overriding pkg-config
1573 SDLIMAGE_CFLAGS
1574 C compiler flags for SDLIMAGE, overriding pkg-config
1575 SDLIMAGE_LIBS
1576 linker flags for SDLIMAGE, overriding pkg-config
1577
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1580
1581 Report bugs to <https://sf.net/p/chromium-bsu/bugs>.
1582 _ACEOF
1583 ac_status=$?
1584 fi
1585
1586 if test "$ac_init_help" = "recursive"; then
1587 # If there are subdirs, report their specific --help.
1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589 test -d "$ac_dir" ||
1590 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591 continue
1592 ac_builddir=.
1593
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *)
1597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1609
1610 case $srcdir in
1611 .) # We are building in place.
1612 ac_srcdir=.
1613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
1616 ac_srcdir=$srcdir$ac_dir_suffix;
1617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
1634 else
1635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
1638 done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643 cat <<\_ACEOF
1644 Chromium B.S.U. configure 0.9.16.1
1645 generated by GNU Autoconf 2.69
1646
1647 Copyright (C) 2012 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651 exit
1652 fi
1653
1654 ## ------------------------ ##
1655 ## Autoconf initialization. ##
1656 ## ------------------------ ##
1657
1658 # ac_fn_cxx_try_compile LINENO
1659 # ----------------------------
1660 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_cxx_try_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext
1665 if { { ac_try="$ac_compile"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_compile") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_cxx_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest.$ac_objext; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_cxx_try_compile
1695
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext
1703 if { { ac_try="$ac_compile"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_compile
1733
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765 fi
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_cpp
1770
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=$ac_status
1806 fi
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_run
1812
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1817 # accordingly.
1818 ac_fn_c_check_header_mongrel ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if eval \${$3+:} false; then :
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 fi
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 else
1831 # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 ac_header_compiler=yes
1841 else
1842 ac_header_compiler=no
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1847
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856 ac_header_preproc=yes
1857 else
1858 ac_header_preproc=no
1859 fi
1860 rm -f conftest.err conftest.i conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1863
1864 # So? What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866 yes:no: )
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ;;
1872 no:yes:* )
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 ( $as_echo "## ------------------------------------------------- ##
1884 ## Report this to https://sf.net/p/chromium-bsu/bugs ##
1885 ## ------------------------------------------------- ##"
1886 ) | sed "s/^/$as_me: WARNING: /" >&2
1887 ;;
1888 esac
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 eval "$3=\$ac_header_compiler"
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 fi
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_header_mongrel
1903
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923 else
1924 eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_header_compile
1934
1935 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1936 # -------------------------------------------
1937 # Tests whether TYPE exists after having included INCLUDES, setting cache
1938 # variable VAR accordingly.
1939 ac_fn_c_check_type ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 eval "$3=no"
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main ()
1953 {
1954 if (sizeof ($2))
1955 return 0;
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 int
1965 main ()
1966 {
1967 if (sizeof (($2)))
1968 return 0;
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974
1975 else
1976 eval "$3=yes"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 fi
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987 } # ac_fn_c_check_type
1988
1989 # ac_fn_c_try_link LINENO
1990 # -----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_c_try_link ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_c_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 test -x conftest$ac_exeext
2017 }; then :
2018 ac_retval=0
2019 else
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024 fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2032
2033 } # ac_fn_c_try_link
2034
2035 # ac_fn_c_check_func LINENO FUNC VAR
2036 # ----------------------------------
2037 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2038 ac_fn_c_check_func ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2050 #define $2 innocuous_$2
2051
2052 /* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char $2 (); below.
2054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2055 <limits.h> exists even on freestanding compilers. */
2056
2057 #ifdef __STDC__
2058 # include <limits.h>
2059 #else
2060 # include <assert.h>
2061 #endif
2062
2063 #undef $2
2064
2065 /* Override any GCC internal prototype to avoid an error.
2066 Use char because int might match the return type of a GCC
2067 builtin and then its argument prototype would still apply. */
2068 #ifdef __cplusplus
2069 extern "C"
2070 #endif
2071 char $2 ();
2072 /* The GNU C library defines this for functions which it implements
2073 to always fail with ENOSYS. Some functions are actually named
2074 something starting with __ and the normal name is an alias. */
2075 #if defined __stub_$2 || defined __stub___$2
2076 choke me
2077 #endif
2078
2079 int
2080 main ()
2081 {
2082 return $2 ();
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_link "$LINENO"; then :
2088 eval "$3=yes"
2089 else
2090 eval "$3=no"
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext \
2093 conftest$ac_exeext conftest.$ac_ext
2094 fi
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100 } # ac_fn_c_check_func
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2104
2105 It was created by Chromium B.S.U. $as_me 0.9.16.1, which was
2106 generated by GNU Autoconf 2.69. Invocation command line was
2107
2108 $ $0 $@
2109
2110 _ACEOF
2111 exec 5>>config.log
2112 {
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2117
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126
2127 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2134
2135 _ASUNAME
2136
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 $as_echo "PATH: $as_dir"
2143 done
2144 IFS=$as_save_IFS
2145
2146 } >&5
2147
2148 cat >&5 <<_ACEOF
2149
2150
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2154
2155 _ACEOF
2156
2157
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2168 do
2169 for ac_arg
2170 do
2171 case $ac_arg in
2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174 | -silent | --silent | --silen | --sile | --sil)
2175 continue ;;
2176 *\'*)
2177 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 case $ac_pass in
2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2181 2)
2182 as_fn_append ac_configure_args1 " '$ac_arg'"
2183 if test $ac_must_keep_next = true; then
2184 ac_must_keep_next=false # Got value, back to normal.
2185 else
2186 case $ac_arg in
2187 *=* | --config-cache | -C | -disable-* | --disable-* \
2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190 | -with-* | --with-* | -without-* | --without-* | --x)
2191 case "$ac_configure_args0 " in
2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193 esac
2194 ;;
2195 -* ) ac_must_keep_next=true ;;
2196 esac
2197 fi
2198 as_fn_append ac_configure_args " '$ac_arg'"
2199 ;;
2200 esac
2201 done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2205
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log. We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212 # Save into config.log some information that might help in debugging.
2213 {
2214 echo
2215
2216 $as_echo "## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##"
2219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2221 (
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2244 *)
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 ;;
2247 esac |
2248 sort
2249 )
2250 echo
2251
2252 $as_echo "## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##"
2255 echo
2256 for ac_var in $ac_subst_vars
2257 do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2265
2266 if test -n "$ac_subst_files"; then
2267 $as_echo "## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##"
2270 echo
2271 for ac_var in $ac_subst_files
2272 do
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 esac
2277 $as_echo "$ac_var='\''$ac_val'\''"
2278 done | sort
2279 echo
2280 fi
2281
2282 if test -s confdefs.h; then
2283 $as_echo "## ----------- ##
2284 ## confdefs.h. ##
2285 ## ----------- ##"
2286 echo
2287 cat confdefs.h
2288 echo
2289 fi
2290 test "$ac_signal" != 0 &&
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2297 ' 0
2298 for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2302
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2305
2306 $as_echo "/* confdefs.h */" > confdefs.h
2307
2308 # Predefined preprocessor variables.
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2333
2334
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340 # We do not want a PATH search for config.site.
2341 case $CONFIG_SITE in #((
2342 -*) ac_site_file1=./$CONFIG_SITE;;
2343 */*) ac_site_file1=$CONFIG_SITE;;
2344 *) ac_site_file1=./$CONFIG_SITE;;
2345 esac
2346 elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2349 else
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2352 fi
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354 do
2355 test "x$ac_site_file" = xNONE && continue
2356 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2360 . "$ac_site_file" \
2361 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 as_fn_error $? "failed to load site script $ac_site_file
2364 See \`config.log' for more details" "$LINENO" 5; }
2365 fi
2366 done
2367
2368 if test -r "$cache_file"; then
2369 # Some versions of bash will fail to source /dev/null (special files
2370 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2371 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2373 $as_echo "$as_me: loading cache $cache_file" >&6;}
2374 case $cache_file in
2375 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376 *) . "./$cache_file";;
2377 esac
2378 fi
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2381 $as_echo "$as_me: creating cache $cache_file" >&6;}
2382 >$cache_file
2383 fi
2384
2385 as_fn_append ac_header_list " sys/time.h"
2386 as_fn_append ac_header_list " unistd.h"
2387 as_fn_append ac_func_list " alarm"
2388 gt_needs="$gt_needs "
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2437 fi
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 fi
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457 am__api_version='1.15'
2458
2459 ac_aux_dir=
2460 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2473 fi
2474 done
2475 if test -z "$ac_aux_dir"; then
2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2477 fi
2478
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2486
2487
2488 # Find a good install program. We prefer a C program (faster),
2489 # so one script is as good as another. But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 # Reject install programs that cannot install multiple files.
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2504 if test -z "$INSTALL"; then
2505 if ${ac_cv_path_install+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in #((
2515 ./ | .// | /[cC]/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2529 :
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
2534 else
2535 rm -rf conftest.one conftest.two conftest.dir
2536 echo one > conftest.one
2537 echo two > conftest.two
2538 mkdir conftest.dir
2539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2540 test -s conftest.one && test -s conftest.two &&
2541 test -s conftest.dir/conftest.one &&
2542 test -s conftest.dir/conftest.two
2543 then
2544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 break 3
2546 fi
2547 fi
2548 fi
2549 done
2550 done
2551 ;;
2552 esac
2553
2554 done
2555 IFS=$as_save_IFS
2556
2557 rm -rf conftest.one conftest.two conftest.dir
2558
2559 fi
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL=$ac_cv_path_install
2562 else
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 INSTALL=$ac_install_sh
2568 fi
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2571 $as_echo "$INSTALL" >&6; }
2572
2573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574 # It thinks the first close brace ends the variable substitution.
2575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576
2577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578
2579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2582 $as_echo_n "checking whether build environment is sane... " >&6; }
2583 # Reject unsafe characters in $srcdir or the absolute working directory
2584 # name. Accept space and tab only in the latter.
2585 am_lf='
2586 '
2587 case `pwd` in
2588 *[\\\"\#\$\&\'\`$am_lf]*)
2589 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2590 esac
2591 case $srcdir in
2592 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2593 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2594 esac
2595
2596 # Do 'set' in a subshell so we don't clobber the current shell's
2597 # arguments. Must try -L first in case configure is actually a
2598 # symlink; some systems play weird games with the mod time of symlinks
2599 # (eg FreeBSD returns the mod time of the symlink's containing
2600 # directory).
2601 if (
2602 am_has_slept=no
2603 for am_try in 1 2; do
2604 echo "timestamp, slept: $am_has_slept" > conftest.file
2605 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2606 if test "$*" = "X"; then
2607 # -L didn't work.
2608 set X `ls -t "$srcdir/configure" conftest.file`
2609 fi
2610 if test "$*" != "X $srcdir/configure conftest.file" \
2611 && test "$*" != "X conftest.file $srcdir/configure"; then
2612
2613 # If neither matched, then we have a broken ls. This can happen
2614 # if, for instance, CONFIG_SHELL is bash and it inherits a
2615 # broken ls alias from the environment. This has actually
2616 # happened. Such a system could not be considered "sane".
2617 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2618 alias in your environment" "$LINENO" 5
2619 fi
2620 if test "$2" = conftest.file || test $am_try -eq 2; then
2621 break
2622 fi
2623 # Just in case.
2624 sleep 1
2625 am_has_slept=yes
2626 done
2627 test "$2" = conftest.file
2628 )
2629 then
2630 # Ok.
2631 :
2632 else
2633 as_fn_error $? "newly created file is older than distributed files!
2634 Check your system clock" "$LINENO" 5
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2638 # If we didn't sleep, we still need to ensure time stamps of config.status and
2639 # generated files are strictly newer.
2640 am_sleep_pid=
2641 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2642 ( sleep 1 ) &
2643 am_sleep_pid=$!
2644 fi
2645
2646 rm -f conftest.file
2647
2648 test "$program_prefix" != NONE &&
2649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2650 # Use a double $ so make ignores it.
2651 test "$program_suffix" != NONE &&
2652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2653 # Double any \ or $.
2654 # By default was `s,x,x', remove it if useless.
2655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2657
2658 # Expand $ac_aux_dir to an absolute path.
2659 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2660
2661 if test x"${MISSING+set}" != xset; then
2662 case $am_aux_dir in
2663 *\ * | *\ *)
2664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2665 *)
2666 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2667 esac
2668 fi
2669 # Use eval to expand $SHELL
2670 if eval "$MISSING --is-lightweight"; then
2671 am_missing_run="$MISSING "
2672 else
2673 am_missing_run=
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2675 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2676 fi
2677
2678 if test x"${install_sh+set}" != xset; then
2679 case $am_aux_dir in
2680 *\ * | *\ *)
2681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2682 *)
2683 install_sh="\${SHELL} $am_aux_dir/install-sh"
2684 esac
2685 fi
2686
2687 # Installed binaries are usually stripped using 'strip' when the user
2688 # run "make install-strip". However 'strip' might not be the right
2689 # tool to use in cross-compilation environments, therefore Automake
2690 # will honor the 'STRIP' environment variable to overrule this program.
2691 if test "$cross_compiling" != no; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_STRIP+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$STRIP"; then
2701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 STRIP=$ac_cv_prog_STRIP
2721 if test -n "$STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2723 $as_echo "$STRIP" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 fi
2731 if test -z "$ac_cv_prog_STRIP"; then
2732 ac_ct_STRIP=$STRIP
2733 # Extract the first word of "strip", so it can be a program name with args.
2734 set dummy strip; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$ac_ct_STRIP"; then
2741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_ac_ct_STRIP="strip"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2761 if test -n "$ac_ct_STRIP"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2763 $as_echo "$ac_ct_STRIP" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769 if test "x$ac_ct_STRIP" = x; then
2770 STRIP=":"
2771 else
2772 case $cross_compiling:$ac_tool_warned in
2773 yes:)
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778 STRIP=$ac_ct_STRIP
2779 fi
2780 else
2781 STRIP="$ac_cv_prog_STRIP"
2782 fi
2783
2784 fi
2785 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2788 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2789 if test -z "$MKDIR_P"; then
2790 if ${ac_cv_path_mkdir+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_prog in mkdir gmkdir; do
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2802 'mkdir (GNU coreutils) '* | \
2803 'mkdir (coreutils) '* | \
2804 'mkdir (fileutils) '4.1*)
2805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2806 break 3;;
2807 esac
2808 done
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814
2815 test -d ./--version && rmdir ./--version
2816 if test "${ac_cv_path_mkdir+set}" = set; then
2817 MKDIR_P="$ac_cv_path_mkdir -p"
2818 else
2819 # As a last resort, use the slow shell script. Don't cache a
2820 # value for MKDIR_P within a source directory, because that will
2821 # break other packages using the cache if that directory is
2822 # removed, or if the value is a relative name.
2823 MKDIR_P="$ac_install_sh -d"
2824 fi
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2827 $as_echo "$MKDIR_P" >&6; }
2828
2829 for ac_prog in gawk mawk nawk awk
2830 do
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_AWK+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$AWK"; then
2839 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_AWK="$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 AWK=$ac_cv_prog_AWK
2859 if test -n "$AWK"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2861 $as_echo "$AWK" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868 test -n "$AWK" && break
2869 done
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2873 set x ${MAKE-make}
2874 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2875 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 cat >conftest.make <<\_ACEOF
2879 SHELL = /bin/sh
2880 all:
2881 @echo '@@@%%%=$(MAKE)=@@@%%%'
2882 _ACEOF
2883 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2884 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2885 *@@@%%%=?*=@@@%%%*)
2886 eval ac_cv_prog_make_${ac_make}_set=yes;;
2887 *)
2888 eval ac_cv_prog_make_${ac_make}_set=no;;
2889 esac
2890 rm -f conftest.make
2891 fi
2892 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2894 $as_echo "yes" >&6; }
2895 SET_MAKE=
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 SET_MAKE="MAKE=${MAKE-make}"
2900 fi
2901
2902 rm -rf .tst 2>/dev/null
2903 mkdir .tst 2>/dev/null
2904 if test -d .tst; then
2905 am__leading_dot=.
2906 else
2907 am__leading_dot=_
2908 fi
2909 rmdir .tst 2>/dev/null
2910
2911 # Check whether --enable-silent-rules was given.
2912 if test "${enable_silent_rules+set}" = set; then :
2913 enableval=$enable_silent_rules;
2914 fi
2915
2916 case $enable_silent_rules in # (((
2917 yes) AM_DEFAULT_VERBOSITY=0;;
2918 no) AM_DEFAULT_VERBOSITY=1;;
2919 *) AM_DEFAULT_VERBOSITY=1;;
2920 esac
2921 am_make=${MAKE-make}
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2923 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2924 if ${am_cv_make_support_nested_variables+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if $as_echo 'TRUE=$(BAR$(V))
2928 BAR0=false
2929 BAR1=true
2930 V=1
2931 am__doit:
2932 @$(TRUE)
2933 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2934 am_cv_make_support_nested_variables=yes
2935 else
2936 am_cv_make_support_nested_variables=no
2937 fi
2938 fi
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2940 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2941 if test $am_cv_make_support_nested_variables = yes; then
2942 AM_V='$(V)'
2943 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2944 else
2945 AM_V=$AM_DEFAULT_VERBOSITY
2946 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2947 fi
2948 AM_BACKSLASH='\'
2949
2950 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2951 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2952 # is not polluted with repeated "-I."
2953 am__isrc=' -I$(srcdir)'
2954 # test to see if srcdir already configured
2955 if test -f $srcdir/config.status; then
2956 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2957 fi
2958 fi
2959
2960 # test whether we have cygpath
2961 if test -z "$CYGPATH_W"; then
2962 if (cygpath --version) >/dev/null 2>/dev/null; then
2963 CYGPATH_W='cygpath -w'
2964 else
2965 CYGPATH_W=echo
2966 fi
2967 fi
2968
2969
2970 # Define the identity of the package.
2971 PACKAGE='chromium-bsu'
2972 VERSION='0.9.16.1'
2973
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE "$PACKAGE"
2977 _ACEOF
2978
2979
2980 cat >>confdefs.h <<_ACEOF
2981 #define VERSION "$VERSION"
2982 _ACEOF
2983
2984 # Some tools Automake needs.
2985
2986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2987
2988
2989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2990
2991
2992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2993
2994
2995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2996
2997
2998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2999
3000 # For better backward compatibility. To be removed once Automake 1.9.x
3001 # dies out for good. For more background, see:
3002 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3003 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3004 mkdir_p='$(MKDIR_P)'
3005
3006 # We need awk for the "check" target (and possibly the TAP driver). The
3007 # system "awk" is bad on some platforms.
3008 # Always define AMTAR for backward compatibility. Yes, it's still used
3009 # in the wild :-( We should find a proper way to deprecate it ...
3010 AMTAR='$${TAR-tar}'
3011
3012
3013 # We'll loop over all known methods to create a tar archive until one works.
3014 _am_tools='gnutar pax cpio none'
3015
3016 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3017
3018
3019
3020
3021
3022
3023 # POSIX will say in a future version that running "rm -f" with no argument
3024 # is OK; and we want to be able to make that assumption in our Makefile
3025 # recipes. So use an aggressive probe to check that the usage we want is
3026 # actually supported "in the wild" to an acceptable degree.
3027 # See automake bug#10828.
3028 # To make any issue more visible, cause the running configure to be aborted
3029 # by default if the 'rm' program in use doesn't match our expectations; the
3030 # user can still override this though.
3031 if rm -f && rm -fr && rm -rf; then : OK; else
3032 cat >&2 <<'END'
3033 Oops!
3034
3035 Your 'rm' program seems unable to run without file operands specified
3036 on the command line, even when the '-f' option is present. This is contrary
3037 to the behaviour of most rm programs out there, and not conforming with
3038 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3039
3040 Please tell [email protected] about your system, including the value
3041 of your $PATH and any error possibly output before this message. This
3042 can help us improve future automake versions.
3043
3044 END
3045 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3046 echo 'Configuration will proceed anyway, since you have set the' >&2
3047 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3048 echo >&2
3049 else
3050 cat >&2 <<'END'
3051 Aborting the configuration process, to ensure you take notice of the issue.
3052
3053 You can download and install GNU coreutils to get an 'rm' implementation
3054 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3055
3056 If you want to complete the configuration process using your problematic
3057 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3058 to "yes", and re-run configure.
3059
3060 END
3061 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3062 fi
3063 fi
3064
3065
3066
3067 ac_config_headers="$ac_config_headers chromium-bsu-config.h"
3068
3069
3070 # Programs
3071 ac_ext=cpp
3072 ac_cpp='$CXXCPP $CPPFLAGS'
3073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3076 if test -z "$CXX"; then
3077 if test -n "$CCC"; then
3078 CXX=$CCC
3079 else
3080 if test -n "$ac_tool_prefix"; then
3081 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CXX+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$CXX"; then
3091 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 CXX=$ac_cv_prog_CXX
3111 if test -n "$CXX"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3113 $as_echo "$CXX" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 test -n "$CXX" && break
3121 done
3122 fi
3123 if test -z "$CXX"; then
3124 ac_ct_CXX=$CXX
3125 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3126 do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$ac_ct_CXX"; then
3135 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_ac_ct_CXX="$ac_prog"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3155 if test -n "$ac_ct_CXX"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3157 $as_echo "$ac_ct_CXX" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163
3164 test -n "$ac_ct_CXX" && break
3165 done
3166
3167 if test "x$ac_ct_CXX" = x; then
3168 CXX="g++"
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 CXX=$ac_ct_CXX
3177 fi
3178 fi
3179
3180 fi
3181 fi
3182 # Provide some information about the compiler.
3183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3184 set X $ac_compile
3185 ac_compiler=$2
3186 for ac_option in --version -v -V -qversion; do
3187 { { ac_try="$ac_compiler $ac_option >&5"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3195 ac_status=$?
3196 if test -s conftest.err; then
3197 sed '10a\
3198 ... rest of stderr output deleted ...
3199 10q' conftest.err >conftest.er1
3200 cat conftest.er1 >&5
3201 fi
3202 rm -f conftest.er1 conftest.err
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205 done
3206
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209
3210 int
3211 main ()
3212 {
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 ac_clean_files_save=$ac_clean_files
3219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3220 # Try to create an executable without -o first, disregard a.out.
3221 # It will help us diagnose broken compilers, and finding out an intuition
3222 # of exeext.
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3224 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3225 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227 # The possible output files:
3228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
3230 ac_rmfiles=
3231 for ac_file in $ac_files
3232 do
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 esac
3237 done
3238 rm -f $ac_rmfiles
3239
3240 if { { ac_try="$ac_link_default"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link_default") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3254 # so that the user can short-circuit this test for compilers unknown to
3255 # Autoconf.
3256 for ac_file in $ac_files ''
3257 do
3258 test -f "$ac_file" || continue
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3261 ;;
3262 [ab].out )
3263 # We found the default executable, but exeext='' is most
3264 # certainly right.
3265 break;;
3266 *.* )
3267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3268 then :; else
3269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 fi
3271 # We set ac_cv_exeext here because the later test for it is not
3272 # safe: cross compilers may not add the suffix if given an `-o'
3273 # argument, so we may need to know it at that point already.
3274 # Even if this section looks crufty: it has the advantage of
3275 # actually working.
3276 break;;
3277 * )
3278 break;;
3279 esac
3280 done
3281 test "$ac_cv_exeext" = no && ac_cv_exeext=
3282
3283 else
3284 ac_file=''
3285 fi
3286 if test -z "$ac_file"; then :
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 $as_echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error 77 "C++ compiler cannot create executables
3295 See \`config.log' for more details" "$LINENO" 5; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3301 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3303 $as_echo "$ac_file" >&6; }
3304 ac_exeext=$ac_cv_exeext
3305
3306 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3307 ac_clean_files=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3309 $as_echo_n "checking for suffix of executables... " >&6; }
3310 if { { ac_try="$ac_link"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323 # work properly (i.e., refer to `conftest.exe'), while it won't with
3324 # `rm'.
3325 for ac_file in conftest.exe conftest conftest.*; do
3326 test -f "$ac_file" || continue
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 break;;
3331 * ) break;;
3332 esac
3333 done
3334 else
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3338 See \`config.log' for more details" "$LINENO" 5; }
3339 fi
3340 rm -f conftest conftest$ac_cv_exeext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3342 $as_echo "$ac_cv_exeext" >&6; }
3343
3344 rm -f conftest.$ac_ext
3345 EXEEXT=$ac_cv_exeext
3346 ac_exeext=$EXEEXT
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349 #include <stdio.h>
3350 int
3351 main ()
3352 {
3353 FILE *f = fopen ("conftest.out", "w");
3354 return ferror (f) || fclose (f) != 0;
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 ac_clean_files="$ac_clean_files conftest.out"
3361 # Check that the compiler produces executables we can run. If not, either
3362 # the compiler is broken, or we cross compile.
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3364 $as_echo_n "checking whether we are cross compiling... " >&6; }
3365 if test "$cross_compiling" != yes; then
3366 { { ac_try="$ac_link"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_link") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }
3377 if { ac_try='./conftest$ac_cv_exeext'
3378 { { case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; }; then
3388 cross_compiling=no
3389 else
3390 if test "$cross_compiling" = maybe; then
3391 cross_compiling=yes
3392 else
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $? "cannot run C++ compiled programs.
3396 If you meant to cross compile, use \`--host'.
3397 See \`config.log' for more details" "$LINENO" 5; }
3398 fi
3399 fi
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402 $as_echo "$cross_compiling" >&6; }
3403
3404 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3405 ac_clean_files=$ac_clean_files_save
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3407 $as_echo_n "checking for suffix of object files... " >&6; }
3408 if ${ac_cv_objext+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.o conftest.obj
3423 if { { ac_try="$ac_compile"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_compile") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; then :
3434 for ac_file in conftest.o conftest.obj conftest.*; do
3435 test -f "$ac_file" || continue;
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 break;;
3440 esac
3441 done
3442 else
3443 $as_echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "cannot compute suffix of object files: cannot compile
3449 See \`config.log' for more details" "$LINENO" 5; }
3450 fi
3451 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3454 $as_echo "$ac_cv_objext" >&6; }
3455 OBJEXT=$ac_cv_objext
3456 ac_objext=$OBJEXT
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3458 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3459 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464
3465 int
3466 main ()
3467 {
3468 #ifndef __GNUC__
3469 choke me
3470 #endif
3471
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 if ac_fn_cxx_try_compile "$LINENO"; then :
3477 ac_compiler_gnu=yes
3478 else
3479 ac_compiler_gnu=no
3480 fi
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3483
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3486 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3487 if test $ac_compiler_gnu = yes; then
3488 GXX=yes
3489 else
3490 GXX=
3491 fi
3492 ac_test_CXXFLAGS=${CXXFLAGS+set}
3493 ac_save_CXXFLAGS=$CXXFLAGS
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3495 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3496 if ${ac_cv_prog_cxx_g+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3500 ac_cxx_werror_flag=yes
3501 ac_cv_prog_cxx_g=no
3502 CXXFLAGS="-g"
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_cxx_try_compile "$LINENO"; then :
3515 ac_cv_prog_cxx_g=yes
3516 else
3517 CXXFLAGS=""
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main ()
3523 {
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_cxx_try_compile "$LINENO"; then :
3530
3531 else
3532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3533 CXXFLAGS="-g"
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 if ac_fn_cxx_try_compile "$LINENO"; then :
3546 ac_cv_prog_cxx_g=yes
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3556 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3557 if test "$ac_test_CXXFLAGS" = set; then
3558 CXXFLAGS=$ac_save_CXXFLAGS
3559 elif test $ac_cv_prog_cxx_g = yes; then
3560 if test "$GXX" = yes; then
3561 CXXFLAGS="-g -O2"
3562 else
3563 CXXFLAGS="-g"
3564 fi
3565 else
3566 if test "$GXX" = yes; then
3567 CXXFLAGS="-O2"
3568 else
3569 CXXFLAGS=
3570 fi
3571 fi
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 DEPDIR="${am__leading_dot}deps"
3578
3579 ac_config_commands="$ac_config_commands depfiles"
3580
3581
3582 am_make=${MAKE-make}
3583 cat > confinc << 'END'
3584 am__doit:
3585 @echo this is the am__doit target
3586 .PHONY: am__doit
3587 END
3588 # If we don't find an include directive, just comment out the code.
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3590 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3591 am__include="#"
3592 am__quote=
3593 _am_result=none
3594 # First try GNU make style include.
3595 echo "include confinc" > confmf
3596 # Ignore all kinds of additional output from 'make'.
3597 case `$am_make -s -f confmf 2> /dev/null` in #(
3598 *the\ am__doit\ target*)
3599 am__include=include
3600 am__quote=
3601 _am_result=GNU
3602 ;;
3603 esac
3604 # Now try BSD make style include.
3605 if test "$am__include" = "#"; then
3606 echo '.include "confinc"' > confmf
3607 case `$am_make -s -f confmf 2> /dev/null` in #(
3608 *the\ am__doit\ target*)
3609 am__include=.include
3610 am__quote="\""
3611 _am_result=BSD
3612 ;;
3613 esac
3614 fi
3615
3616
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3618 $as_echo "$_am_result" >&6; }
3619 rm -f confinc confmf
3620
3621 # Check whether --enable-dependency-tracking was given.
3622 if test "${enable_dependency_tracking+set}" = set; then :
3623 enableval=$enable_dependency_tracking;
3624 fi
3625
3626 if test "x$enable_dependency_tracking" != xno; then
3627 am_depcomp="$ac_aux_dir/depcomp"
3628 AMDEPBACKSLASH='\'
3629 am__nodep='_no'
3630 fi
3631 if test "x$enable_dependency_tracking" != xno; then
3632 AMDEP_TRUE=
3633 AMDEP_FALSE='#'
3634 else
3635 AMDEP_TRUE='#'
3636 AMDEP_FALSE=
3637 fi
3638
3639
3640
3641 depcc="$CXX" am_compiler_list=
3642
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3644 $as_echo_n "checking dependency style of $depcc... " >&6; }
3645 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649 # We make a subdir and do the tests there. Otherwise we can end up
3650 # making bogus files that we don't know about and never remove. For
3651 # instance it was reported that on HP-UX the gcc test will end up
3652 # making a dummy file named 'D' -- because '-MD' means "put the output
3653 # in D".
3654 rm -rf conftest.dir
3655 mkdir conftest.dir
3656 # Copy depcomp to subdir because otherwise we won't find it if we're
3657 # using a relative directory.
3658 cp "$am_depcomp" conftest.dir
3659 cd conftest.dir
3660 # We will build objects and dependencies in a subdirectory because
3661 # it helps to detect inapplicable dependency modes. For instance
3662 # both Tru64's cc and ICC support -MD to output dependencies as a
3663 # side effect of compilation, but ICC will put the dependencies in
3664 # the current directory while Tru64 will put them in the object
3665 # directory.
3666 mkdir sub
3667
3668 am_cv_CXX_dependencies_compiler_type=none
3669 if test "$am_compiler_list" = ""; then
3670 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3671 fi
3672 am__universal=false
3673 case " $depcc " in #(
3674 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3675 esac
3676
3677 for depmode in $am_compiler_list; do
3678 # Setup a source with many dependencies, because some compilers
3679 # like to wrap large dependency lists on column 80 (with \), and
3680 # we should not choose a depcomp mode which is confused by this.
3681 #
3682 # We need to recreate these files for each test, as the compiler may
3683 # overwrite some of them when testing with obscure command lines.
3684 # This happens at least with the AIX C compiler.
3685 : > sub/conftest.c
3686 for i in 1 2 3 4 5 6; do
3687 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3688 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3689 # Solaris 10 /bin/sh.
3690 echo '/* dummy */' > sub/conftst$i.h
3691 done
3692 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3693
3694 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3695 # mode. It turns out that the SunPro C++ compiler does not properly
3696 # handle '-M -o', and we need to detect this. Also, some Intel
3697 # versions had trouble with output in subdirs.
3698 am__obj=sub/conftest.${OBJEXT-o}
3699 am__minus_obj="-o $am__obj"
3700 case $depmode in
3701 gcc)
3702 # This depmode causes a compiler race in universal mode.
3703 test "$am__universal" = false || continue
3704 ;;
3705 nosideeffect)
3706 # After this tag, mechanisms are not by side-effect, so they'll
3707 # only be used when explicitly requested.
3708 if test "x$enable_dependency_tracking" = xyes; then
3709 continue
3710 else
3711 break
3712 fi
3713 ;;
3714 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3715 # This compiler won't grok '-c -o', but also, the minuso test has
3716 # not run yet. These depmodes are late enough in the game, and
3717 # so weak that their functioning should not be impacted.
3718 am__obj=conftest.${OBJEXT-o}
3719 am__minus_obj=
3720 ;;
3721 none) break ;;
3722 esac
3723 if depmode=$depmode \
3724 source=sub/conftest.c object=$am__obj \
3725 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3726 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3727 >/dev/null 2>conftest.err &&
3728 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3729 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3730 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3731 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3732 # icc doesn't choke on unknown options, it will just issue warnings
3733 # or remarks (even with -Werror). So we grep stderr for any message
3734 # that says an option was ignored or not supported.
3735 # When given -MP, icc 7.0 and 7.1 complain thusly:
3736 # icc: Command line warning: ignoring option '-M'; no argument required
3737 # The diagnosis changed in icc 8.0:
3738 # icc: Command line remark: option '-MP' not supported
3739 if (grep 'ignoring option' conftest.err ||
3740 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3741 am_cv_CXX_dependencies_compiler_type=$depmode
3742 break
3743 fi
3744 fi
3745 done
3746
3747 cd ..
3748 rm -rf conftest.dir
3749 else
3750 am_cv_CXX_dependencies_compiler_type=none
3751 fi
3752
3753 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3755 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3756 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3757
3758 if
3759 test "x$enable_dependency_tracking" != xno \
3760 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3761 am__fastdepCXX_TRUE=
3762 am__fastdepCXX_FALSE='#'
3763 else
3764 am__fastdepCXX_TRUE='#'
3765 am__fastdepCXX_FALSE=
3766 fi
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3777 if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3779 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 case $PKG_CONFIG in
3786 [\\/]* | ?:[\\/]*)
3787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3788 ;;
3789 *)
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 ;;
3806 esac
3807 fi
3808 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3809 if test -n "$PKG_CONFIG"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3811 $as_echo "$PKG_CONFIG" >&6; }
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817
3818 fi
3819 if test -z "$ac_cv_path_PKG_CONFIG"; then
3820 ac_pt_PKG_CONFIG=$PKG_CONFIG
3821 # Extract the first word of "pkg-config", so it can be a program name with args.
3822 set dummy pkg-config; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 case $ac_pt_PKG_CONFIG in
3829 [\\/]* | ?:[\\/]*)
3830 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3831 ;;
3832 *)
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844 done
3845 done
3846 IFS=$as_save_IFS
3847
3848 ;;
3849 esac
3850 fi
3851 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3852 if test -n "$ac_pt_PKG_CONFIG"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3854 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3855 else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3858 fi
3859
3860 if test "x$ac_pt_PKG_CONFIG" = x; then
3861 PKG_CONFIG=""
3862 else
3863 case $cross_compiling:$ac_tool_warned in
3864 yes:)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867 ac_tool_warned=yes ;;
3868 esac
3869 PKG_CONFIG=$ac_pt_PKG_CONFIG
3870 fi
3871 else
3872 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3873 fi
3874
3875 fi
3876 if test -n "$PKG_CONFIG"; then
3877 _pkg_min_version=0.9.0
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3879 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3880 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 PKG_CONFIG=""
3887 fi
3888 fi
3889
3890 # Headers
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if ${ac_cv_prog_CC+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -n "$CC"; then
3905 ac_cv_prog_CC="$CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918 done
3919 done
3920 IFS=$as_save_IFS
3921
3922 fi
3923 fi
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934 fi
3935 if test -z "$ac_cv_prog_CC"; then
3936 ac_ct_CC=$CC
3937 # Extract the first word of "gcc", so it can be a program name with args.
3938 set dummy gcc; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test -n "$ac_ct_CC"; then
3945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_CC="gcc"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967 $as_echo "$ac_ct_CC" >&6; }
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973 if test "x$ac_ct_CC" = x; then
3974 CC=""
3975 else
3976 case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3981 esac
3982 CC=$ac_ct_CC
3983 fi
3984 else
3985 CC="$ac_cv_prog_CC"
3986 fi
3987
3988 if test -z "$CC"; then
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}cc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if ${ac_cv_prog_CC+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$CC"; then
3998 ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_CC="${ac_tool_prefix}cc"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 fi
4028 fi
4029 if test -z "$CC"; then
4030 # Extract the first word of "cc", so it can be a program name with args.
4031 set dummy cc; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if ${ac_cv_prog_CC+:} false; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test -n "$CC"; then
4038 ac_cv_prog_CC="$CC" # Let the user override the test.
4039 else
4040 ac_prog_rejected=no
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4049 ac_prog_rejected=yes
4050 continue
4051 fi
4052 ac_cv_prog_CC="cc"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056 done
4057 done
4058 IFS=$as_save_IFS
4059
4060 if test $ac_prog_rejected = yes; then
4061 # We found a bogon in the path, so make sure we never use it.
4062 set dummy $ac_cv_prog_CC
4063 shift
4064 if test $# != 0; then
4065 # We chose a different compiler from the bogus one.
4066 # However, it has the same basename, so the bogon will be chosen
4067 # first if we set CC to just the basename; use the full file name.
4068 shift
4069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4070 fi
4071 fi
4072 fi
4073 fi
4074 CC=$ac_cv_prog_CC
4075 if test -n "$CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4077 $as_echo "$CC" >&6; }
4078 else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 fi
4082
4083
4084 fi
4085 if test -z "$CC"; then
4086 if test -n "$ac_tool_prefix"; then
4087 for ac_prog in cl.exe
4088 do
4089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_CC+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126 test -n "$CC" && break
4127 done
4128 fi
4129 if test -z "$CC"; then
4130 ac_ct_CC=$CC
4131 for ac_prog in cl.exe
4132 do
4133 # Extract the first word of "$ac_prog", so it can be a program name with args.
4134 set dummy $ac_prog; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test -n "$ac_ct_CC"; then
4141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4145 do
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_ac_ct_CC="$ac_prog"
4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4153 fi
4154 done
4155 done
4156 IFS=$as_save_IFS
4157
4158 fi
4159 fi
4160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4161 if test -n "$ac_ct_CC"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163 $as_echo "$ac_ct_CC" >&6; }
4164 else
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4167 fi
4168
4169
4170 test -n "$ac_ct_CC" && break
4171 done
4172
4173 if test "x$ac_ct_CC" = x; then
4174 CC=""
4175 else
4176 case $cross_compiling:$ac_tool_warned in
4177 yes:)
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180 ac_tool_warned=yes ;;
4181 esac
4182 CC=$ac_ct_CC
4183 fi
4184 fi
4185
4186 fi
4187
4188
4189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $? "no acceptable C compiler found in \$PATH
4192 See \`config.log' for more details" "$LINENO" 5; }
4193
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4196 set X $ac_compile
4197 ac_compiler=$2
4198 for ac_option in --version -v -V -qversion; do
4199 { { ac_try="$ac_compiler $ac_option >&5"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4207 ac_status=$?
4208 if test -s conftest.err; then
4209 sed '10a\
4210 ... rest of stderr output deleted ...
4211 10q' conftest.err >conftest.er1
4212 cat conftest.er1 >&5
4213 fi
4214 rm -f conftest.er1 conftest.err
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }
4217 done
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4221 if ${ac_cv_c_compiler_gnu+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226
4227 int
4228 main ()
4229 {
4230 #ifndef __GNUC__
4231 choke me
4232 #endif
4233
4234 ;
4235 return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239 ac_compiler_gnu=yes
4240 else
4241 ac_compiler_gnu=no
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4245
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4248 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4250 GCC=yes
4251 else
4252 GCC=
4253 fi
4254 ac_test_CFLAGS=${CFLAGS+set}
4255 ac_save_CFLAGS=$CFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4257 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4258 if ${ac_cv_prog_cc_g+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 ac_save_c_werror_flag=$ac_c_werror_flag
4262 ac_c_werror_flag=yes
4263 ac_cv_prog_cc_g=no
4264 CFLAGS="-g"
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267
4268 int
4269 main ()
4270 {
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 ac_cv_prog_cc_g=yes
4278 else
4279 CFLAGS=""
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282
4283 int
4284 main ()
4285 {
4286
4287 ;
4288 return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292
4293 else
4294 ac_c_werror_flag=$ac_save_c_werror_flag
4295 CFLAGS="-g"
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298
4299 int
4300 main ()
4301 {
4302
4303 ;
4304 return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_prog_cc_g=yes
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_c_werror_flag=$ac_save_c_werror_flag
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4318 $as_echo "$ac_cv_prog_cc_g" >&6; }
4319 if test "$ac_test_CFLAGS" = set; then
4320 CFLAGS=$ac_save_CFLAGS
4321 elif test $ac_cv_prog_cc_g = yes; then
4322 if test "$GCC" = yes; then
4323 CFLAGS="-g -O2"
4324 else
4325 CFLAGS="-g"
4326 fi
4327 else
4328 if test "$GCC" = yes; then
4329 CFLAGS="-O2"
4330 else
4331 CFLAGS=
4332 fi
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4335 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4336 if ${ac_cv_prog_cc_c89+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 ac_cv_prog_cc_c89=no
4340 ac_save_CC=$CC
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <stdarg.h>
4344 #include <stdio.h>
4345 struct stat;
4346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4347 struct buf { int x; };
4348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4349 static char *e (p, i)
4350 char **p;
4351 int i;
4352 {
4353 return p[i];
4354 }
4355 static char *f (char * (*g) (char **, int), char **p, ...)
4356 {
4357 char *s;
4358 va_list v;
4359 va_start (v,p);
4360 s = g (p, va_arg (v,int));
4361 va_end (v);
4362 return s;
4363 }
4364
4365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4366 function prototypes and stuff, but not '\xHH' hex character constants.
4367 These don't provoke an error unfortunately, instead are silently treated
4368 as 'x'. The following induces an error, until -std is added to get
4369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4370 array size at least. It's necessary to write '\x00'==0 to get something
4371 that's true only with -std. */
4372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4373
4374 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4375 inside strings and character constants. */
4376 #define FOO(x) 'x'
4377 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4378
4379 int test (int i, double x);
4380 struct s1 {int (*f) (int a);};
4381 struct s2 {int (*f) (double a);};
4382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4383 int argc;
4384 char **argv;
4385 int
4386 main ()
4387 {
4388 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4395 do
4396 CC="$ac_save_CC $ac_arg"
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_prog_cc_c89=$ac_arg
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext
4401 test "x$ac_cv_prog_cc_c89" != "xno" && break
4402 done
4403 rm -f conftest.$ac_ext
4404 CC=$ac_save_CC
4405
4406 fi
4407 # AC_CACHE_VAL
4408 case "x$ac_cv_prog_cc_c89" in
4409 x)
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4411 $as_echo "none needed" >&6; } ;;
4412 xno)
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4414 $as_echo "unsupported" >&6; } ;;
4415 *)
4416 CC="$CC $ac_cv_prog_cc_c89"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4418 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4419 esac
4420 if test "x$ac_cv_prog_cc_c89" != xno; then :
4421
4422 fi
4423
4424 ac_ext=c
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4436 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4437 if ${am_cv_prog_cc_c_o+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main ()
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 # Make sure it works both with $CC and with simple cc.
4452 # Following AC_PROG_CC_C_O, we do the test twice because some
4453 # compilers refuse to overwrite an existing .o file with -o,
4454 # though they will create one.
4455 am_cv_prog_cc_c_o=yes
4456 for am_i in 1 2; do
4457 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4458 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } \
4462 && test -f conftest2.$ac_objext; then
4463 : OK
4464 else
4465 am_cv_prog_cc_c_o=no
4466 break
4467 fi
4468 done
4469 rm -f core conftest*
4470 unset am_i
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4473 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4474 if test "$am_cv_prog_cc_c_o" != yes; then
4475 # Losing compiler, so override with the script.
4476 # FIXME: It is wrong to rewrite CC.
4477 # But if we don't then we get into trouble of one sort or another.
4478 # A longer-term fix would be to have automake use am__CC in this case,
4479 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4480 CC="$am_aux_dir/compile $CC"
4481 fi
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488
4489 depcc="$CC" am_compiler_list=
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4492 $as_echo_n "checking dependency style of $depcc... " >&6; }
4493 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4497 # We make a subdir and do the tests there. Otherwise we can end up
4498 # making bogus files that we don't know about and never remove. For
4499 # instance it was reported that on HP-UX the gcc test will end up
4500 # making a dummy file named 'D' -- because '-MD' means "put the output
4501 # in D".
4502 rm -rf conftest.dir
4503 mkdir conftest.dir
4504 # Copy depcomp to subdir because otherwise we won't find it if we're
4505 # using a relative directory.
4506 cp "$am_depcomp" conftest.dir
4507 cd conftest.dir
4508 # We will build objects and dependencies in a subdirectory because
4509 # it helps to detect inapplicable dependency modes. For instance
4510 # both Tru64's cc and ICC support -MD to output dependencies as a
4511 # side effect of compilation, but ICC will put the dependencies in
4512 # the current directory while Tru64 will put them in the object
4513 # directory.
4514 mkdir sub
4515
4516 am_cv_CC_dependencies_compiler_type=none
4517 if test "$am_compiler_list" = ""; then
4518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4519 fi
4520 am__universal=false
4521 case " $depcc " in #(
4522 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4523 esac
4524
4525 for depmode in $am_compiler_list; do
4526 # Setup a source with many dependencies, because some compilers
4527 # like to wrap large dependency lists on column 80 (with \), and
4528 # we should not choose a depcomp mode which is confused by this.
4529 #
4530 # We need to recreate these files for each test, as the compiler may
4531 # overwrite some of them when testing with obscure command lines.
4532 # This happens at least with the AIX C compiler.
4533 : > sub/conftest.c
4534 for i in 1 2 3 4 5 6; do
4535 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4536 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4537 # Solaris 10 /bin/sh.
4538 echo '/* dummy */' > sub/conftst$i.h
4539 done
4540 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4541
4542 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4543 # mode. It turns out that the SunPro C++ compiler does not properly
4544 # handle '-M -o', and we need to detect this. Also, some Intel
4545 # versions had trouble with output in subdirs.
4546 am__obj=sub/conftest.${OBJEXT-o}
4547 am__minus_obj="-o $am__obj"
4548 case $depmode in
4549 gcc)
4550 # This depmode causes a compiler race in universal mode.
4551 test "$am__universal" = false || continue
4552 ;;
4553 nosideeffect)
4554 # After this tag, mechanisms are not by side-effect, so they'll
4555 # only be used when explicitly requested.
4556 if test "x$enable_dependency_tracking" = xyes; then
4557 continue
4558 else
4559 break
4560 fi
4561 ;;
4562 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4563 # This compiler won't grok '-c -o', but also, the minuso test has
4564 # not run yet. These depmodes are late enough in the game, and
4565 # so weak that their functioning should not be impacted.
4566 am__obj=conftest.${OBJEXT-o}
4567 am__minus_obj=
4568 ;;
4569 none) break ;;
4570 esac
4571 if depmode=$depmode \
4572 source=sub/conftest.c object=$am__obj \
4573 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4574 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4575 >/dev/null 2>conftest.err &&
4576 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4577 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4578 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4579 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4580 # icc doesn't choke on unknown options, it will just issue warnings
4581 # or remarks (even with -Werror). So we grep stderr for any message
4582 # that says an option was ignored or not supported.
4583 # When given -MP, icc 7.0 and 7.1 complain thusly:
4584 # icc: Command line warning: ignoring option '-M'; no argument required
4585 # The diagnosis changed in icc 8.0:
4586 # icc: Command line remark: option '-MP' not supported
4587 if (grep 'ignoring option' conftest.err ||
4588 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4589 am_cv_CC_dependencies_compiler_type=$depmode
4590 break
4591 fi
4592 fi
4593 done
4594
4595 cd ..
4596 rm -rf conftest.dir
4597 else
4598 am_cv_CC_dependencies_compiler_type=none
4599 fi
4600
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4603 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4604 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4605
4606 if
4607 test "x$enable_dependency_tracking" != xno \
4608 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4609 am__fastdepCC_TRUE=
4610 am__fastdepCC_FALSE='#'
4611 else
4612 am__fastdepCC_TRUE='#'
4613 am__fastdepCC_FALSE=
4614 fi
4615
4616
4617
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4624 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4625 # On Suns, sometimes $CPP names a directory.
4626 if test -n "$CPP" && test -d "$CPP"; then
4627 CPP=
4628 fi
4629 if test -z "$CPP"; then
4630 if ${ac_cv_prog_CPP+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 # Double quotes because CPP needs to be expanded
4634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4635 do
4636 ac_preproc_ok=false
4637 for ac_c_preproc_warn_flag in '' yes
4638 do
4639 # Use a header file that comes with gcc, so configuring glibc
4640 # with a fresh cross-compiler works.
4641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4642 # <limits.h> exists even on freestanding compilers.
4643 # On the NeXT, cc -E runs the code through the compiler's parser,
4644 # not just through cpp. "Syntax error" is here to catch this case.
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647 #ifdef __STDC__
4648 # include <limits.h>
4649 #else
4650 # include <assert.h>
4651 #endif
4652 Syntax error
4653 _ACEOF
4654 if ac_fn_c_try_cpp "$LINENO"; then :
4655
4656 else
4657 # Broken: fails on valid input.
4658 continue
4659 fi
4660 rm -f conftest.err conftest.i conftest.$ac_ext
4661
4662 # OK, works on sane cases. Now check whether nonexistent headers
4663 # can be detected and how.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <ac_nonexistent.h>
4667 _ACEOF
4668 if ac_fn_c_try_cpp "$LINENO"; then :
4669 # Broken: success on invalid input.
4670 continue
4671 else
4672 # Passes both tests.
4673 ac_preproc_ok=:
4674 break
4675 fi
4676 rm -f conftest.err conftest.i conftest.$ac_ext
4677
4678 done
4679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4680 rm -f conftest.i conftest.err conftest.$ac_ext
4681 if $ac_preproc_ok; then :
4682 break
4683 fi
4684
4685 done
4686 ac_cv_prog_CPP=$CPP
4687
4688 fi
4689 CPP=$ac_cv_prog_CPP
4690 else
4691 ac_cv_prog_CPP=$CPP
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4694 $as_echo "$CPP" >&6; }
4695 ac_preproc_ok=false
4696 for ac_c_preproc_warn_flag in '' yes
4697 do
4698 # Use a header file that comes with gcc, so configuring glibc
4699 # with a fresh cross-compiler works.
4700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4701 # <limits.h> exists even on freestanding compilers.
4702 # On the NeXT, cc -E runs the code through the compiler's parser,
4703 # not just through cpp. "Syntax error" is here to catch this case.
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706 #ifdef __STDC__
4707 # include <limits.h>
4708 #else
4709 # include <assert.h>
4710 #endif
4711 Syntax error
4712 _ACEOF
4713 if ac_fn_c_try_cpp "$LINENO"; then :
4714
4715 else
4716 # Broken: fails on valid input.
4717 continue
4718 fi
4719 rm -f conftest.err conftest.i conftest.$ac_ext
4720
4721 # OK, works on sane cases. Now check whether nonexistent headers
4722 # can be detected and how.
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <ac_nonexistent.h>
4726 _ACEOF
4727 if ac_fn_c_try_cpp "$LINENO"; then :
4728 # Broken: success on invalid input.
4729 continue
4730 else
4731 # Passes both tests.
4732 ac_preproc_ok=:
4733 break
4734 fi
4735 rm -f conftest.err conftest.i conftest.$ac_ext
4736
4737 done
4738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4739 rm -f conftest.i conftest.err conftest.$ac_ext
4740 if $ac_preproc_ok; then :
4741
4742 else
4743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4746 See \`config.log' for more details" "$LINENO" 5; }
4747 fi
4748
4749 ac_ext=c
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4757 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4758 if ${ac_cv_path_GREP+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -z "$GREP"; then
4762 ac_path_GREP_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_prog in grep ggrep; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4772 as_fn_executable_p "$ac_path_GREP" || continue
4773 # Check for GNU ac_path_GREP and select it if it is found.
4774 # Check for GNU $ac_path_GREP
4775 case `"$ac_path_GREP" --version 2>&1` in
4776 *GNU*)
4777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4778 *)
4779 ac_count=0
4780 $as_echo_n 0123456789 >"conftest.in"
4781 while :
4782 do
4783 cat "conftest.in" "conftest.in" >"conftest.tmp"
4784 mv "conftest.tmp" "conftest.in"
4785 cp "conftest.in" "conftest.nl"
4786 $as_echo 'GREP' >> "conftest.nl"
4787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4791 # Best one so far, save it but keep looking for a better one
4792 ac_cv_path_GREP="$ac_path_GREP"
4793 ac_path_GREP_max=$ac_count
4794 fi
4795 # 10*(2^10) chars as input seems more than enough
4796 test $ac_count -gt 10 && break
4797 done
4798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799 esac
4800
4801 $ac_path_GREP_found && break 3
4802 done
4803 done
4804 done
4805 IFS=$as_save_IFS
4806 if test -z "$ac_cv_path_GREP"; then
4807 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808 fi
4809 else
4810 ac_cv_path_GREP=$GREP
4811 fi
4812
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4815 $as_echo "$ac_cv_path_GREP" >&6; }
4816 GREP="$ac_cv_path_GREP"
4817
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4820 $as_echo_n "checking for egrep... " >&6; }
4821 if ${ac_cv_path_EGREP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4825 then ac_cv_path_EGREP="$GREP -E"
4826 else
4827 if test -z "$EGREP"; then
4828 ac_path_EGREP_found=false
4829 # Loop through the user's path and test for each of PROGNAME-LIST
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_prog in egrep; do
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4838 as_fn_executable_p "$ac_path_EGREP" || continue
4839 # Check for GNU ac_path_EGREP and select it if it is found.
4840 # Check for GNU $ac_path_EGREP
4841 case `"$ac_path_EGREP" --version 2>&1` in
4842 *GNU*)
4843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4844 *)
4845 ac_count=0
4846 $as_echo_n 0123456789 >"conftest.in"
4847 while :
4848 do
4849 cat "conftest.in" "conftest.in" >"conftest.tmp"
4850 mv "conftest.tmp" "conftest.in"
4851 cp "conftest.in" "conftest.nl"
4852 $as_echo 'EGREP' >> "conftest.nl"
4853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855 as_fn_arith $ac_count + 1 && ac_count=$as_val
4856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4857 # Best one so far, save it but keep looking for a better one
4858 ac_cv_path_EGREP="$ac_path_EGREP"
4859 ac_path_EGREP_max=$ac_count
4860 fi
4861 # 10*(2^10) chars as input seems more than enough
4862 test $ac_count -gt 10 && break
4863 done
4864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4865 esac
4866
4867 $ac_path_EGREP_found && break 3
4868 done
4869 done
4870 done
4871 IFS=$as_save_IFS
4872 if test -z "$ac_cv_path_EGREP"; then
4873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4874 fi
4875 else
4876 ac_cv_path_EGREP=$EGREP
4877 fi
4878
4879 fi
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4882 $as_echo "$ac_cv_path_EGREP" >&6; }
4883 EGREP="$ac_cv_path_EGREP"
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4887 $as_echo_n "checking for ANSI C header files... " >&6; }
4888 if ${ac_cv_header_stdc+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <stdlib.h>
4894 #include <stdarg.h>
4895 #include <string.h>
4896 #include <float.h>
4897
4898 int
4899 main ()
4900 {
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 ac_cv_header_stdc=yes
4908 else
4909 ac_cv_header_stdc=no
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912
4913 if test $ac_cv_header_stdc = yes; then
4914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 #include <string.h>
4918
4919 _ACEOF
4920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921 $EGREP "memchr" >/dev/null 2>&1; then :
4922
4923 else
4924 ac_cv_header_stdc=no
4925 fi
4926 rm -f conftest*
4927
4928 fi
4929
4930 if test $ac_cv_header_stdc = yes; then
4931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <stdlib.h>
4935
4936 _ACEOF
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "free" >/dev/null 2>&1; then :
4939
4940 else
4941 ac_cv_header_stdc=no
4942 fi
4943 rm -f conftest*
4944
4945 fi
4946
4947 if test $ac_cv_header_stdc = yes; then
4948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4949 if test "$cross_compiling" = yes; then :
4950 :
4951 else
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ctype.h>
4955 #include <stdlib.h>
4956 #if ((' ' & 0x0FF) == 0x020)
4957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4959 #else
4960 # define ISLOWER(c) \
4961 (('a' <= (c) && (c) <= 'i') \
4962 || ('j' <= (c) && (c) <= 'r') \
4963 || ('s' <= (c) && (c) <= 'z'))
4964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4965 #endif
4966
4967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4968 int
4969 main ()
4970 {
4971 int i;
4972 for (i = 0; i < 256; i++)
4973 if (XOR (islower (i), ISLOWER (i))
4974 || toupper (i) != TOUPPER (i))
4975 return 2;
4976 return 0;
4977 }
4978 _ACEOF
4979 if ac_fn_c_try_run "$LINENO"; then :
4980
4981 else
4982 ac_cv_header_stdc=no
4983 fi
4984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4985 conftest.$ac_objext conftest.beam conftest.$ac_ext
4986 fi
4987
4988 fi
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4991 $as_echo "$ac_cv_header_stdc" >&6; }
4992 if test $ac_cv_header_stdc = yes; then
4993
4994 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4995
4996 fi
4997
4998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4999 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5000 inttypes.h stdint.h unistd.h
5001 do :
5002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5003 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5004 "
5005 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5006 cat >>confdefs.h <<_ACEOF
5007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008 _ACEOF
5009
5010 fi
5011
5012 done
5013
5014
5015 for ac_header in fcntl.h stdlib.h string.h unistd.h locale.h libintl.h
5016 do :
5017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5020 cat >>confdefs.h <<_ACEOF
5021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5022 _ACEOF
5023
5024 fi
5025
5026 done
5027
5028
5029 # Types and compiler bits
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5031 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5032 if ${ac_cv_header_stdbool_h+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037
5038 #include <stdbool.h>
5039 #ifndef bool
5040 "error: bool is not defined"
5041 #endif
5042 #ifndef false
5043 "error: false is not defined"
5044 #endif
5045 #if false
5046 "error: false is not 0"
5047 #endif
5048 #ifndef true
5049 "error: true is not defined"
5050 #endif
5051 #if true != 1
5052 "error: true is not 1"
5053 #endif
5054 #ifndef __bool_true_false_are_defined
5055 "error: __bool_true_false_are_defined is not defined"
5056 #endif
5057
5058 struct s { _Bool s: 1; _Bool t; } s;
5059
5060 char a[true == 1 ? 1 : -1];
5061 char b[false == 0 ? 1 : -1];
5062 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5063 char d[(bool) 0.5 == true ? 1 : -1];
5064 /* See body of main program for 'e'. */
5065 char f[(_Bool) 0.0 == false ? 1 : -1];
5066 char g[true];
5067 char h[sizeof (_Bool)];
5068 char i[sizeof s.t];
5069 enum { j = false, k = true, l = false * true, m = true * 256 };
5070 /* The following fails for
5071 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5072 _Bool n[m];
5073 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5074 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5075 /* Catch a bug in an HP-UX C compiler. See
5076 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5077 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5078 */
5079 _Bool q = true;
5080 _Bool *pq = &q;
5081
5082 int
5083 main ()
5084 {
5085
5086 bool e = &s;
5087 *pq |= q;
5088 *pq |= ! q;
5089 /* Refer to every declared value, to avoid compiler optimizations. */
5090 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5091 + !m + !n + !o + !p + !q + !pq);
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 if ac_fn_c_try_compile "$LINENO"; then :
5098 ac_cv_header_stdbool_h=yes
5099 else
5100 ac_cv_header_stdbool_h=no
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5105 $as_echo "$ac_cv_header_stdbool_h" >&6; }
5106 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5107 if test "x$ac_cv_type__Bool" = xyes; then :
5108
5109 cat >>confdefs.h <<_ACEOF
5110 #define HAVE__BOOL 1
5111 _ACEOF
5112
5113
5114 fi
5115
5116
5117 if test $ac_cv_header_stdbool_h = yes; then
5118
5119 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5120
5121 fi
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5124 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5125 if ${ac_cv_c_const+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130
5131 int
5132 main ()
5133 {
5134
5135 #ifndef __cplusplus
5136 /* Ultrix mips cc rejects this sort of thing. */
5137 typedef int charset[2];
5138 const charset cs = { 0, 0 };
5139 /* SunOS 4.1.1 cc rejects this. */
5140 char const *const *pcpcc;
5141 char **ppc;
5142 /* NEC SVR4.0.2 mips cc rejects this. */
5143 struct point {int x, y;};
5144 static struct point const zero = {0,0};
5145 /* AIX XL C 1.02.0.0 rejects this.
5146 It does not let you subtract one const X* pointer from another in
5147 an arm of an if-expression whose if-part is not a constant
5148 expression */
5149 const char *g = "string";
5150 pcpcc = &g + (g ? g-g : 0);
5151 /* HPUX 7.0 cc rejects these. */
5152 ++pcpcc;
5153 ppc = (char**) pcpcc;
5154 pcpcc = (char const *const *) ppc;
5155 { /* SCO 3.2v4 cc rejects this sort of thing. */
5156 char tx;
5157 char *t = &tx;
5158 char const *s = 0 ? (char *) 0 : (char const *) 0;
5159
5160 *t++ = 0;
5161 if (s) return 0;
5162 }
5163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5164 int x[] = {25, 17};
5165 const int *foo = &x[0];
5166 ++foo;
5167 }
5168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5169 typedef const int *iptr;
5170 iptr p = 0;
5171 ++p;
5172 }
5173 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5174 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5175 struct s { int j; const int *ap[3]; } bx;
5176 struct s *b = &bx; b->j = 5;
5177 }
5178 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5179 const int foo = 10;
5180 if (!foo) return 0;
5181 }
5182 return !cs[0] && !zero.x;
5183 #endif
5184
5185 ;
5186 return 0;
5187 }
5188 _ACEOF
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 ac_cv_c_const=yes
5191 else
5192 ac_cv_c_const=no
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5197 $as_echo "$ac_cv_c_const" >&6; }
5198 if test $ac_cv_c_const = no; then
5199
5200 $as_echo "#define const /**/" >>confdefs.h
5201
5202 fi
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5205 $as_echo_n "checking for inline... " >&6; }
5206 if ${ac_cv_c_inline+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 ac_cv_c_inline=no
5210 for ac_kw in inline __inline__ __inline; do
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #ifndef __cplusplus
5214 typedef int foo_t;
5215 static $ac_kw foo_t static_foo () {return 0; }
5216 $ac_kw foo_t foo () {return 0; }
5217 #endif
5218
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_cv_c_inline=$ac_kw
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 test "$ac_cv_c_inline" != no && break
5225 done
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5229 $as_echo "$ac_cv_c_inline" >&6; }
5230
5231 case $ac_cv_c_inline in
5232 inline | yes) ;;
5233 *)
5234 case $ac_cv_c_inline in
5235 no) ac_val=;;
5236 *) ac_val=$ac_cv_c_inline;;
5237 esac
5238 cat >>confdefs.h <<_ACEOF
5239 #ifndef __cplusplus
5240 #define inline $ac_val
5241 #endif
5242 _ACEOF
5243 ;;
5244 esac
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5247 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5248 if ${ac_cv_struct_tm+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <sys/types.h>
5254 #include <time.h>
5255
5256 int
5257 main ()
5258 {
5259 struct tm tm;
5260 int *p = &tm.tm_sec;
5261 return !p;
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267 ac_cv_struct_tm=time.h
5268 else
5269 ac_cv_struct_tm=sys/time.h
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5274 $as_echo "$ac_cv_struct_tm" >&6; }
5275 if test $ac_cv_struct_tm = sys/time.h; then
5276
5277 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5278
5279 fi
5280
5281 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5282 if test "x$ac_cv_type_size_t" = xyes; then :
5283
5284 else
5285
5286 cat >>confdefs.h <<_ACEOF
5287 #define size_t unsigned int
5288 _ACEOF
5289
5290 fi
5291
5292
5293 # Functions
5294 for ac_header in stdlib.h
5295 do :
5296 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5297 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5298 cat >>confdefs.h <<_ACEOF
5299 #define HAVE_STDLIB_H 1
5300 _ACEOF
5301
5302 fi
5303
5304 done
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5307 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5308 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test "$cross_compiling" = yes; then :
5312 ac_cv_func_malloc_0_nonnull=no
5313 else
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5317 # include <stdlib.h>
5318 #else
5319 char *malloc ();
5320 #endif
5321
5322 int
5323 main ()
5324 {
5325 return ! malloc (0);
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_run "$LINENO"; then :
5331 ac_cv_func_malloc_0_nonnull=yes
5332 else
5333 ac_cv_func_malloc_0_nonnull=no
5334 fi
5335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5336 conftest.$ac_objext conftest.beam conftest.$ac_ext
5337 fi
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5341 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5342 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5343
5344 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5345
5346 else
5347 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5348
5349 case " $LIBOBJS " in
5350 *" malloc.$ac_objext "* ) ;;
5351 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5352 ;;
5353 esac
5354
5355
5356 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5357
5358 fi
5359
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5362 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5363 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 rm -f conftest.sym conftest.file
5367 echo >conftest.file
5368 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5369 if test "$cross_compiling" = yes; then :
5370 ac_cv_func_lstat_dereferences_slashed_symlink=no
5371 else
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374 $ac_includes_default
5375 int
5376 main ()
5377 {
5378 struct stat sbuf;
5379 /* Linux will dereference the symlink and fail, as required by POSIX.
5380 That is better in the sense that it means we will not
5381 have to compile and use the lstat wrapper. */
5382 return lstat ("conftest.sym/", &sbuf) == 0;
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_run "$LINENO"; then :
5388 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5389 else
5390 ac_cv_func_lstat_dereferences_slashed_symlink=no
5391 fi
5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5393 conftest.$ac_objext conftest.beam conftest.$ac_ext
5394 fi
5395
5396 else
5397 # If the `ln -s' command failed, then we probably don't even
5398 # have an lstat function.
5399 ac_cv_func_lstat_dereferences_slashed_symlink=no
5400 fi
5401 rm -f conftest.sym conftest.file
5402
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5405 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5406
5407 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5408
5409 cat >>confdefs.h <<_ACEOF
5410 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5411 _ACEOF
5412
5413
5414 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5415 case " $LIBOBJS " in
5416 *" lstat.$ac_objext "* ) ;;
5417 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5418 ;;
5419 esac
5420
5421 fi
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
5424 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
5425 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test "$cross_compiling" = yes; then :
5429 ac_cv_func_stat_empty_string_bug=yes
5430 else
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 $ac_includes_default
5434 int
5435 main ()
5436 {
5437 struct stat sbuf;
5438 return stat ("", &sbuf) == 0;
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_run "$LINENO"; then :
5444 ac_cv_func_stat_empty_string_bug=no
5445 else
5446 ac_cv_func_stat_empty_string_bug=yes
5447 fi
5448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5449 conftest.$ac_objext conftest.beam conftest.$ac_ext
5450 fi
5451
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
5454 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
5455 if test $ac_cv_func_stat_empty_string_bug = yes; then
5456 case " $LIBOBJS " in
5457 *" stat.$ac_objext "* ) ;;
5458 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
5459 ;;
5460 esac
5461
5462
5463 cat >>confdefs.h <<_ACEOF
5464 #define HAVE_STAT_EMPTY_STRING_BUG 1
5465 _ACEOF
5466
5467 fi
5468
5469 for ac_func in vprintf
5470 do :
5471 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5472 if test "x$ac_cv_func_vprintf" = xyes; then :
5473 cat >>confdefs.h <<_ACEOF
5474 #define HAVE_VPRINTF 1
5475 _ACEOF
5476
5477 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5478 if test "x$ac_cv_func__doprnt" = xyes; then :
5479
5480 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5481
5482 fi
5483
5484 fi
5485 done
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5489 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5490 if ${ac_cv_header_time+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 #include <sys/time.h>
5497 #include <time.h>
5498
5499 int
5500 main ()
5501 {
5502 if ((struct tm *) 0)
5503 return 0;
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 if ac_fn_c_try_compile "$LINENO"; then :
5509 ac_cv_header_time=yes
5510 else
5511 ac_cv_header_time=no
5512 fi
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5516 $as_echo "$ac_cv_header_time" >&6; }
5517 if test $ac_cv_header_time = yes; then
5518
5519 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5520
5521 fi
5522
5523
5524
5525
5526 for ac_header in $ac_header_list
5527 do :
5528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5530 "
5531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5532 cat >>confdefs.h <<_ACEOF
5533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534 _ACEOF
5535
5536 fi
5537
5538 done
5539
5540
5541
5542
5543
5544
5545
5546
5547 for ac_func in $ac_func_list
5548 do :
5549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5550 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5551 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5552 cat >>confdefs.h <<_ACEOF
5553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5554 _ACEOF
5555
5556 fi
5557 done
5558
5559
5560
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
5564 $as_echo_n "checking for working mktime... " >&6; }
5565 if ${ac_cv_func_working_mktime+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test "$cross_compiling" = yes; then :
5569 ac_cv_func_working_mktime=no
5570 else
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 /* Test program from Paul Eggert and Tony Leneis. */
5574 #ifdef TIME_WITH_SYS_TIME
5575 # include <sys/time.h>
5576 # include <time.h>
5577 #else
5578 # ifdef HAVE_SYS_TIME_H
5579 # include <sys/time.h>
5580 # else
5581 # include <time.h>
5582 # endif
5583 #endif
5584
5585 #include <limits.h>
5586 #include <stdlib.h>
5587
5588 #ifdef HAVE_UNISTD_H
5589 # include <unistd.h>
5590 #endif
5591
5592 #ifndef HAVE_ALARM
5593 # define alarm(X) /* empty */
5594 #endif
5595
5596 /* Work around redefinition to rpl_putenv by other config tests. */
5597 #undef putenv
5598
5599 static time_t time_t_max;
5600 static time_t time_t_min;
5601
5602 /* Values we'll use to set the TZ environment variable. */
5603 static const char *tz_strings[] = {
5604 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5605 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5606 };
5607 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5608
5609 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
5610 Based on a problem report from Andreas Jaeger. */
5611 static int
5612 spring_forward_gap ()
5613 {
5614 /* glibc (up to about 1998-10-07) failed this test. */
5615 struct tm tm;
5616
5617 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5618 instead of "TZ=America/Vancouver" in order to detect the bug even
5619 on systems that don't support the Olson extension, or don't have the
5620 full zoneinfo tables installed. */
5621 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
5622
5623 tm.tm_year = 98;
5624 tm.tm_mon = 3;
5625 tm.tm_mday = 5;
5626 tm.tm_hour = 2;
5627 tm.tm_min = 0;
5628 tm.tm_sec = 0;
5629 tm.tm_isdst = -1;
5630 return mktime (&tm) != (time_t) -1;
5631 }
5632
5633 static int
5634 mktime_test1 (time_t now)
5635 {
5636 struct tm *lt;
5637 return ! (lt = localtime (&now)) || mktime (lt) == now;
5638 }
5639
5640 static int
5641 mktime_test (time_t now)
5642 {
5643 return (mktime_test1 (now)
5644 && mktime_test1 ((time_t) (time_t_max - now))
5645 && mktime_test1 ((time_t) (time_t_min + now)));
5646 }
5647
5648 static int
5649 irix_6_4_bug ()
5650 {
5651 /* Based on code from Ariel Faigon. */
5652 struct tm tm;
5653 tm.tm_year = 96;
5654 tm.tm_mon = 3;
5655 tm.tm_mday = 0;
5656 tm.tm_hour = 0;
5657 tm.tm_min = 0;
5658 tm.tm_sec = 0;
5659 tm.tm_isdst = -1;
5660 mktime (&tm);
5661 return tm.tm_mon == 2 && tm.tm_mday == 31;
5662 }
5663
5664 static int
5665 bigtime_test (int j)
5666 {
5667 struct tm tm;
5668 time_t now;
5669 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5670 now = mktime (&tm);
5671 if (now != (time_t) -1)
5672 {
5673 struct tm *lt = localtime (&now);
5674 if (! (lt
5675 && lt->tm_year == tm.tm_year
5676 && lt->tm_mon == tm.tm_mon
5677 && lt->tm_mday == tm.tm_mday
5678 && lt->tm_hour == tm.tm_hour
5679 && lt->tm_min == tm.tm_min
5680 && lt->tm_sec == tm.tm_sec
5681 && lt->tm_yday == tm.tm_yday
5682 && lt->tm_wday == tm.tm_wday
5683 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5684 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5685 return 0;
5686 }
5687 return 1;
5688 }
5689
5690 static int
5691 year_2050_test ()
5692 {
5693 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
5694 ignoring leap seconds. */
5695 unsigned long int answer = 2527315200UL;
5696
5697 struct tm tm;
5698 time_t t;
5699 tm.tm_year = 2050 - 1900;
5700 tm.tm_mon = 2 - 1;
5701 tm.tm_mday = 1;
5702 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
5703 tm.tm_isdst = -1;
5704
5705 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5706 instead of "TZ=America/Vancouver" in order to detect the bug even
5707 on systems that don't support the Olson extension, or don't have the
5708 full zoneinfo tables installed. */
5709 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
5710
5711 t = mktime (&tm);
5712
5713 /* Check that the result is either a failure, or close enough
5714 to the correct answer that we can assume the discrepancy is
5715 due to leap seconds. */
5716 return (t == (time_t) -1
5717 || (0 < t && answer - 120 <= t && t <= answer + 120));
5718 }
5719
5720 int
5721 main ()
5722 {
5723 time_t t, delta;
5724 int i, j;
5725
5726 /* This test makes some buggy mktime implementations loop.
5727 Give up after 60 seconds; a mktime slower than that
5728 isn't worth using anyway. */
5729 alarm (60);
5730
5731 for (;;)
5732 {
5733 t = (time_t_max << 1) + 1;
5734 if (t <= time_t_max)
5735 break;
5736 time_t_max = t;
5737 }
5738 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
5739
5740 delta = time_t_max / 997; /* a suitable prime number */
5741 for (i = 0; i < N_STRINGS; i++)
5742 {
5743 if (tz_strings[i])
5744 putenv ((char*) tz_strings[i]);
5745
5746 for (t = 0; t <= time_t_max - delta; t += delta)
5747 if (! mktime_test (t))
5748 return 1;
5749 if (! (mktime_test ((time_t) 1)
5750 && mktime_test ((time_t) (60 * 60))
5751 && mktime_test ((time_t) (60 * 60 * 24))))
5752 return 1;
5753
5754 for (j = 1; ; j <<= 1)
5755 if (! bigtime_test (j))
5756 return 1;
5757 else if (INT_MAX / 2 < j)
5758 break;
5759 if (! bigtime_test (INT_MAX))
5760 return 1;
5761 }
5762 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_run "$LINENO"; then :
5766 ac_cv_func_working_mktime=yes
5767 else
5768 ac_cv_func_working_mktime=no
5769 fi
5770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5771 conftest.$ac_objext conftest.beam conftest.$ac_ext
5772 fi
5773
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
5776 $as_echo "$ac_cv_func_working_mktime" >&6; }
5777 if test $ac_cv_func_working_mktime = no; then
5778 case " $LIBOBJS " in
5779 *" mktime.$ac_objext "* ) ;;
5780 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
5781 ;;
5782 esac
5783
5784 fi
5785
5786 for ac_func in atexit floor setenv sqrt strcasecmp strchr strerror strrchr memset setlocale strdup tzset
5787 do :
5788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5791 cat >>confdefs.h <<_ACEOF
5792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5793 _ACEOF
5794
5795 fi
5796 done
5797
5798
5799 # Enable some special macintosh path handling
5800
5801 # Check whether --with-macintosh was given.
5802 if test "${with_macintosh+set}" = set; then :
5803 withval=$with_macintosh;
5804 $as_echo "#define macintosh 1" >>confdefs.h
5805
5806 fi
5807
5808
5809 # Libraries
5810
5811 # gettext for internationalisation
5812
5813 mkdir_p="$MKDIR_P"
5814 case $mkdir_p in
5815 [\\/$]* | ?:[\\/]*) ;;
5816 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5817 esac
5818
5819
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5821 $as_echo_n "checking whether NLS is requested... " >&6; }
5822 # Check whether --enable-nls was given.
5823 if test "${enable_nls+set}" = set; then :
5824 enableval=$enable_nls; USE_NLS=$enableval
5825 else
5826 USE_NLS=yes
5827 fi
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5830 $as_echo "$USE_NLS" >&6; }
5831
5832
5833
5834
5835 GETTEXT_MACRO_VERSION=0.18
5836
5837
5838
5839
5840 # Prepare PATH_SEPARATOR.
5841 # The user is always right.
5842 if test "${PATH_SEPARATOR+set}" != set; then
5843 echo "#! /bin/sh" >conf$$.sh
5844 echo "exit 0" >>conf$$.sh
5845 chmod +x conf$$.sh
5846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5847 PATH_SEPARATOR=';'
5848 else
5849 PATH_SEPARATOR=:
5850 fi
5851 rm -f conf$$.sh
5852 fi
5853
5854 # Find out how to test for executable files. Don't use a zero-byte file,
5855 # as systems may use methods other than mode bits to determine executability.
5856 cat >conf$$.file <<_ASEOF
5857 #! /bin/sh
5858 exit 0
5859 _ASEOF
5860 chmod +x conf$$.file
5861 if test -x conf$$.file >/dev/null 2>&1; then
5862 ac_executable_p="test -x"
5863 else
5864 ac_executable_p="test -f"
5865 fi
5866 rm -f conf$$.file
5867
5868 # Extract the first word of "msgfmt", so it can be a program name with args.
5869 set dummy msgfmt; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_path_MSGFMT+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 case "$MSGFMT" in
5876 [\\/]* | ?:[\\/]*)
5877 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5878 ;;
5879 *)
5880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5881 for ac_dir in $PATH; do
5882 IFS="$ac_save_IFS"
5883 test -z "$ac_dir" && ac_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5886 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5887 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5888 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5889 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5890 break 2
5891 fi
5892 fi
5893 done
5894 done
5895 IFS="$ac_save_IFS"
5896 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5897 ;;
5898 esac
5899 fi
5900 MSGFMT="$ac_cv_path_MSGFMT"
5901 if test "$MSGFMT" != ":"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5903 $as_echo "$MSGFMT" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5910 set dummy gmsgfmt; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_path_GMSGFMT+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 case $GMSGFMT in
5917 [\\/]* | ?:[\\/]*)
5918 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5919 ;;
5920 *)
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5937 ;;
5938 esac
5939 fi
5940 GMSGFMT=$ac_cv_path_GMSGFMT
5941 if test -n "$GMSGFMT"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5943 $as_echo "$GMSGFMT" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949
5950
5951 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5952 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5953 *) MSGFMT_015=$MSGFMT ;;
5954 esac
5955
5956 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5957 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5958 *) GMSGFMT_015=$GMSGFMT ;;
5959 esac
5960
5961
5962
5963 # Prepare PATH_SEPARATOR.
5964 # The user is always right.
5965 if test "${PATH_SEPARATOR+set}" != set; then
5966 echo "#! /bin/sh" >conf$$.sh
5967 echo "exit 0" >>conf$$.sh
5968 chmod +x conf$$.sh
5969 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5970 PATH_SEPARATOR=';'
5971 else
5972 PATH_SEPARATOR=:
5973 fi
5974 rm -f conf$$.sh
5975 fi
5976
5977 # Find out how to test for executable files. Don't use a zero-byte file,
5978 # as systems may use methods other than mode bits to determine executability.
5979 cat >conf$$.file <<_ASEOF
5980 #! /bin/sh
5981 exit 0
5982 _ASEOF
5983 chmod +x conf$$.file
5984 if test -x conf$$.file >/dev/null 2>&1; then
5985 ac_executable_p="test -x"
5986 else
5987 ac_executable_p="test -f"
5988 fi
5989 rm -f conf$$.file
5990
5991 # Extract the first word of "xgettext", so it can be a program name with args.
5992 set dummy xgettext; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_path_XGETTEXT+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 case "$XGETTEXT" in
5999 [\\/]* | ?:[\\/]*)
6000 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6001 ;;
6002 *)
6003 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6004 for ac_dir in $PATH; do
6005 IFS="$ac_save_IFS"
6006 test -z "$ac_dir" && ac_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6009 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6010 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6011 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6012 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6013 break 2
6014 fi
6015 fi
6016 done
6017 done
6018 IFS="$ac_save_IFS"
6019 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6020 ;;
6021 esac
6022 fi
6023 XGETTEXT="$ac_cv_path_XGETTEXT"
6024 if test "$XGETTEXT" != ":"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6026 $as_echo "$XGETTEXT" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032 rm -f messages.po
6033
6034 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6035 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6036 *) XGETTEXT_015=$XGETTEXT ;;
6037 esac
6038
6039
6040
6041 # Prepare PATH_SEPARATOR.
6042 # The user is always right.
6043 if test "${PATH_SEPARATOR+set}" != set; then
6044 echo "#! /bin/sh" >conf$$.sh
6045 echo "exit 0" >>conf$$.sh
6046 chmod +x conf$$.sh
6047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6048 PATH_SEPARATOR=';'
6049 else
6050 PATH_SEPARATOR=:
6051 fi
6052 rm -f conf$$.sh
6053 fi
6054
6055 # Find out how to test for executable files. Don't use a zero-byte file,
6056 # as systems may use methods other than mode bits to determine executability.
6057 cat >conf$$.file <<_ASEOF
6058 #! /bin/sh
6059 exit 0
6060 _ASEOF
6061 chmod +x conf$$.file
6062 if test -x conf$$.file >/dev/null 2>&1; then
6063 ac_executable_p="test -x"
6064 else
6065 ac_executable_p="test -f"
6066 fi
6067 rm -f conf$$.file
6068
6069 # Extract the first word of "msgmerge", so it can be a program name with args.
6070 set dummy msgmerge; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_path_MSGMERGE+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 case "$MSGMERGE" in
6077 [\\/]* | ?:[\\/]*)
6078 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6079 ;;
6080 *)
6081 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6082 for ac_dir in $PATH; do
6083 IFS="$ac_save_IFS"
6084 test -z "$ac_dir" && ac_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6087 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6088 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6089 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6090 break 2
6091 fi
6092 fi
6093 done
6094 done
6095 IFS="$ac_save_IFS"
6096 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6097 ;;
6098 esac
6099 fi
6100 MSGMERGE="$ac_cv_path_MSGMERGE"
6101 if test "$MSGMERGE" != ":"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6103 $as_echo "$MSGMERGE" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110 test -n "$localedir" || localedir='${datadir}/locale'
6111
6112
6113 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6114
6115
6116 ac_config_commands="$ac_config_commands po-directories"
6117
6118
6119
6120 if test "X$prefix" = "XNONE"; then
6121 acl_final_prefix="$ac_default_prefix"
6122 else
6123 acl_final_prefix="$prefix"
6124 fi
6125 if test "X$exec_prefix" = "XNONE"; then
6126 acl_final_exec_prefix='${prefix}'
6127 else
6128 acl_final_exec_prefix="$exec_prefix"
6129 fi
6130 acl_save_prefix="$prefix"
6131 prefix="$acl_final_prefix"
6132 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6133 prefix="$acl_save_prefix"
6134
6135 # Make sure we can run config.sub.
6136 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6137 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6140 $as_echo_n "checking build system type... " >&6; }
6141 if ${ac_cv_build+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 ac_build_alias=$build_alias
6145 test "x$ac_build_alias" = x &&
6146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6147 test "x$ac_build_alias" = x &&
6148 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6149 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6150 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6151
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6154 $as_echo "$ac_cv_build" >&6; }
6155 case $ac_cv_build in
6156 *-*-*) ;;
6157 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6158 esac
6159 build=$ac_cv_build
6160 ac_save_IFS=$IFS; IFS='-'
6161 set x $ac_cv_build
6162 shift
6163 build_cpu=$1
6164 build_vendor=$2
6165 shift; shift
6166 # Remember, the first character of IFS is used to create $*,
6167 # except with old shells:
6168 build_os=$*
6169 IFS=$ac_save_IFS
6170 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6171
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6174 $as_echo_n "checking host system type... " >&6; }
6175 if ${ac_cv_host+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if test "x$host_alias" = x; then
6179 ac_cv_host=$ac_cv_build
6180 else
6181 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6182 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6183 fi
6184
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6187 $as_echo "$ac_cv_host" >&6; }
6188 case $ac_cv_host in
6189 *-*-*) ;;
6190 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6191 esac
6192 host=$ac_cv_host
6193 ac_save_IFS=$IFS; IFS='-'
6194 set x $ac_cv_host
6195 shift
6196 host_cpu=$1
6197 host_vendor=$2
6198 shift; shift
6199 # Remember, the first character of IFS is used to create $*,
6200 # except with old shells:
6201 host_os=$*
6202 IFS=$ac_save_IFS
6203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6204
6205
6206
6207 # Check whether --with-gnu-ld was given.
6208 if test "${with_gnu_ld+set}" = set; then :
6209 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6210 else
6211 with_gnu_ld=no
6212 fi
6213
6214 # Prepare PATH_SEPARATOR.
6215 # The user is always right.
6216 if test "${PATH_SEPARATOR+set}" != set; then
6217 echo "#! /bin/sh" >conf$$.sh
6218 echo "exit 0" >>conf$$.sh
6219 chmod +x conf$$.sh
6220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6221 PATH_SEPARATOR=';'
6222 else
6223 PATH_SEPARATOR=:
6224 fi
6225 rm -f conf$$.sh
6226 fi
6227 ac_prog=ld
6228 if test "$GCC" = yes; then
6229 # Check if gcc -print-prog-name=ld gives a path.
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6231 $as_echo_n "checking for ld used by GCC... " >&6; }
6232 case $host in
6233 *-*-mingw*)
6234 # gcc leaves a trailing carriage return which upsets mingw
6235 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6236 *)
6237 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6238 esac
6239 case $ac_prog in
6240 # Accept absolute paths.
6241 [\\/]* | [A-Za-z]:[\\/]*)
6242 re_direlt='/[^/][^/]*/\.\./'
6243 # Canonicalize the path of ld
6244 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6245 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6246 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6247 done
6248 test -z "$LD" && LD="$ac_prog"
6249 ;;
6250 "")
6251 # If it fails, then pretend we aren't using GCC.
6252 ac_prog=ld
6253 ;;
6254 *)
6255 # If it is relative, then search for the first ld in PATH.
6256 with_gnu_ld=unknown
6257 ;;
6258 esac
6259 elif test "$with_gnu_ld" = yes; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6261 $as_echo_n "checking for GNU ld... " >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6264 $as_echo_n "checking for non-GNU ld... " >&6; }
6265 fi
6266 if ${acl_cv_path_LD+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -z "$LD"; then
6270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6271 for ac_dir in $PATH; do
6272 test -z "$ac_dir" && ac_dir=.
6273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6274 acl_cv_path_LD="$ac_dir/$ac_prog"
6275 # Check to see if the program is GNU ld. I'd rather use --version,
6276 # but apparently some GNU ld's only accept -v.
6277 # Break only if it was the GNU/non-GNU ld that we prefer.
6278 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6279 *GNU* | *'with BFD'*)
6280 test "$with_gnu_ld" != no && break ;;
6281 *)
6282 test "$with_gnu_ld" != yes && break ;;
6283 esac
6284 fi
6285 done
6286 IFS="$ac_save_ifs"
6287 else
6288 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6289 fi
6290 fi
6291
6292 LD="$acl_cv_path_LD"
6293 if test -n "$LD"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6295 $as_echo "$LD" >&6; }
6296 else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6303 if ${acl_cv_prog_gnu_ld+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6307 case `$LD -v 2>&1 </dev/null` in
6308 *GNU* | *'with BFD'*)
6309 acl_cv_prog_gnu_ld=yes ;;
6310 *)
6311 acl_cv_prog_gnu_ld=no ;;
6312 esac
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6315 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6316 with_gnu_ld=$acl_cv_prog_gnu_ld
6317
6318
6319
6320
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6322 $as_echo_n "checking for shared library run path origin... " >&6; }
6323 if ${acl_cv_rpath+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326
6327 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6328 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6329 . ./conftest.sh
6330 rm -f ./conftest.sh
6331 acl_cv_rpath=done
6332
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6335 $as_echo "$acl_cv_rpath" >&6; }
6336 wl="$acl_cv_wl"
6337 acl_libext="$acl_cv_libext"
6338 acl_shlibext="$acl_cv_shlibext"
6339 acl_libname_spec="$acl_cv_libname_spec"
6340 acl_library_names_spec="$acl_cv_library_names_spec"
6341 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6342 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6343 acl_hardcode_direct="$acl_cv_hardcode_direct"
6344 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6345 # Check whether --enable-rpath was given.
6346 if test "${enable_rpath+set}" = set; then :
6347 enableval=$enable_rpath; :
6348 else
6349 enable_rpath=yes
6350 fi
6351
6352
6353
6354
6355 acl_libdirstem=lib
6356 acl_libdirstem2=
6357 case "$host_os" in
6358 solaris*)
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6360 $as_echo_n "checking for 64-bit host... " >&6; }
6361 if ${gl_cv_solaris_64bit+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366
6367 #ifdef _LP64
6368 sixtyfour bits
6369 #endif
6370
6371 _ACEOF
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6374 gl_cv_solaris_64bit=yes
6375 else
6376 gl_cv_solaris_64bit=no
6377 fi
6378 rm -f conftest*
6379
6380
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6383 $as_echo "$gl_cv_solaris_64bit" >&6; }
6384 if test $gl_cv_solaris_64bit = yes; then
6385 acl_libdirstem=lib/64
6386 case "$host_cpu" in
6387 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6388 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6389 esac
6390 fi
6391 ;;
6392 *)
6393 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6394 if test -n "$searchpath"; then
6395 acl_save_IFS="${IFS= }"; IFS=":"
6396 for searchdir in $searchpath; do
6397 if test -d "$searchdir"; then
6398 case "$searchdir" in
6399 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6400 */../ | */.. )
6401 # Better ignore directories of this form. They are misleading.
6402 ;;
6403 *) searchdir=`cd "$searchdir" && pwd`
6404 case "$searchdir" in
6405 */lib64 ) acl_libdirstem=lib64 ;;
6406 esac ;;
6407 esac
6408 fi
6409 done
6410 IFS="$acl_save_IFS"
6411 fi
6412 ;;
6413 esac
6414 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427 use_additional=yes
6428
6429 acl_save_prefix="$prefix"
6430 prefix="$acl_final_prefix"
6431 acl_save_exec_prefix="$exec_prefix"
6432 exec_prefix="$acl_final_exec_prefix"
6433
6434 eval additional_includedir=\"$includedir\"
6435 eval additional_libdir=\"$libdir\"
6436
6437 exec_prefix="$acl_save_exec_prefix"
6438 prefix="$acl_save_prefix"
6439
6440
6441 # Check whether --with-libiconv-prefix was given.
6442 if test "${with_libiconv_prefix+set}" = set; then :
6443 withval=$with_libiconv_prefix;
6444 if test "X$withval" = "Xno"; then
6445 use_additional=no
6446 else
6447 if test "X$withval" = "X"; then
6448
6449 acl_save_prefix="$prefix"
6450 prefix="$acl_final_prefix"
6451 acl_save_exec_prefix="$exec_prefix"
6452 exec_prefix="$acl_final_exec_prefix"
6453
6454 eval additional_includedir=\"$includedir\"
6455 eval additional_libdir=\"$libdir\"
6456
6457 exec_prefix="$acl_save_exec_prefix"
6458 prefix="$acl_save_prefix"
6459
6460 else
6461 additional_includedir="$withval/include"
6462 additional_libdir="$withval/$acl_libdirstem"
6463 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6464 && ! test -d "$withval/$acl_libdirstem"; then
6465 additional_libdir="$withval/$acl_libdirstem2"
6466 fi
6467 fi
6468 fi
6469
6470 fi
6471
6472 LIBICONV=
6473 LTLIBICONV=
6474 INCICONV=
6475 LIBICONV_PREFIX=
6476 HAVE_LIBICONV=
6477 rpathdirs=
6478 ltrpathdirs=
6479 names_already_handled=
6480 names_next_round='iconv '
6481 while test -n "$names_next_round"; do
6482 names_this_round="$names_next_round"
6483 names_next_round=
6484 for name in $names_this_round; do
6485 already_handled=
6486 for n in $names_already_handled; do
6487 if test "$n" = "$name"; then
6488 already_handled=yes
6489 break
6490 fi
6491 done
6492 if test -z "$already_handled"; then
6493 names_already_handled="$names_already_handled $name"
6494 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6495 eval value=\"\$HAVE_LIB$uppername\"
6496 if test -n "$value"; then
6497 if test "$value" = yes; then
6498 eval value=\"\$LIB$uppername\"
6499 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6500 eval value=\"\$LTLIB$uppername\"
6501 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6502 else
6503 :
6504 fi
6505 else
6506 found_dir=
6507 found_la=
6508 found_so=
6509 found_a=
6510 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6511 if test -n "$acl_shlibext"; then
6512 shrext=".$acl_shlibext" # typically: shrext=.so
6513 else
6514 shrext=
6515 fi
6516 if test $use_additional = yes; then
6517 dir="$additional_libdir"
6518 if test -n "$acl_shlibext"; then
6519 if test -f "$dir/$libname$shrext"; then
6520 found_dir="$dir"
6521 found_so="$dir/$libname$shrext"
6522 else
6523 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6524 ver=`(cd "$dir" && \
6525 for f in "$libname$shrext".*; do echo "$f"; done \
6526 | sed -e "s,^$libname$shrext\\\\.,," \
6527 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6528 | sed 1q ) 2>/dev/null`
6529 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6530 found_dir="$dir"
6531 found_so="$dir/$libname$shrext.$ver"
6532 fi
6533 else
6534 eval library_names=\"$acl_library_names_spec\"
6535 for f in $library_names; do
6536 if test -f "$dir/$f"; then
6537 found_dir="$dir"
6538 found_so="$dir/$f"
6539 break
6540 fi
6541 done
6542 fi
6543 fi
6544 fi
6545 if test "X$found_dir" = "X"; then
6546 if test -f "$dir/$libname.$acl_libext"; then
6547 found_dir="$dir"
6548 found_a="$dir/$libname.$acl_libext"
6549 fi
6550 fi
6551 if test "X$found_dir" != "X"; then
6552 if test -f "$dir/$libname.la"; then
6553 found_la="$dir/$libname.la"
6554 fi
6555 fi
6556 fi
6557 if test "X$found_dir" = "X"; then
6558 for x in $LDFLAGS $LTLIBICONV; do
6559
6560 acl_save_prefix="$prefix"
6561 prefix="$acl_final_prefix"
6562 acl_save_exec_prefix="$exec_prefix"
6563 exec_prefix="$acl_final_exec_prefix"
6564 eval x=\"$x\"
6565 exec_prefix="$acl_save_exec_prefix"
6566 prefix="$acl_save_prefix"
6567
6568 case "$x" in
6569 -L*)
6570 dir=`echo "X$x" | sed -e 's/^X-L//'`
6571 if test -n "$acl_shlibext"; then
6572 if test -f "$dir/$libname$shrext"; then
6573 found_dir="$dir"
6574 found_so="$dir/$libname$shrext"
6575 else
6576 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6577 ver=`(cd "$dir" && \
6578 for f in "$libname$shrext".*; do echo "$f"; done \
6579 | sed -e "s,^$libname$shrext\\\\.,," \
6580 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6581 | sed 1q ) 2>/dev/null`
6582 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6583 found_dir="$dir"
6584 found_so="$dir/$libname$shrext.$ver"
6585 fi
6586 else
6587 eval library_names=\"$acl_library_names_spec\"
6588 for f in $library_names; do
6589 if test -f "$dir/$f"; then
6590 found_dir="$dir"
6591 found_so="$dir/$f"
6592 break
6593 fi
6594 done
6595 fi
6596 fi
6597 fi
6598 if test "X$found_dir" = "X"; then
6599 if test -f "$dir/$libname.$acl_libext"; then
6600 found_dir="$dir"
6601 found_a="$dir/$libname.$acl_libext"
6602 fi
6603 fi
6604 if test "X$found_dir" != "X"; then
6605 if test -f "$dir/$libname.la"; then
6606 found_la="$dir/$libname.la"
6607 fi
6608 fi
6609 ;;
6610 esac
6611 if test "X$found_dir" != "X"; then
6612 break
6613 fi
6614 done
6615 fi
6616 if test "X$found_dir" != "X"; then
6617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6618 if test "X$found_so" != "X"; then
6619 if test "$enable_rpath" = no \
6620 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6621 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6622 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6623 else
6624 haveit=
6625 for x in $ltrpathdirs; do
6626 if test "X$x" = "X$found_dir"; then
6627 haveit=yes
6628 break
6629 fi
6630 done
6631 if test -z "$haveit"; then
6632 ltrpathdirs="$ltrpathdirs $found_dir"
6633 fi
6634 if test "$acl_hardcode_direct" = yes; then
6635 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6636 else
6637 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6638 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6639 haveit=
6640 for x in $rpathdirs; do
6641 if test "X$x" = "X$found_dir"; then
6642 haveit=yes
6643 break
6644 fi
6645 done
6646 if test -z "$haveit"; then
6647 rpathdirs="$rpathdirs $found_dir"
6648 fi
6649 else
6650 haveit=
6651 for x in $LDFLAGS $LIBICONV; do
6652
6653 acl_save_prefix="$prefix"
6654 prefix="$acl_final_prefix"
6655 acl_save_exec_prefix="$exec_prefix"
6656 exec_prefix="$acl_final_exec_prefix"
6657 eval x=\"$x\"
6658 exec_prefix="$acl_save_exec_prefix"
6659 prefix="$acl_save_prefix"
6660
6661 if test "X$x" = "X-L$found_dir"; then
6662 haveit=yes
6663 break
6664 fi
6665 done
6666 if test -z "$haveit"; then
6667 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6668 fi
6669 if test "$acl_hardcode_minus_L" != no; then
6670 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6671 else
6672 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6673 fi
6674 fi
6675 fi
6676 fi
6677 else
6678 if test "X$found_a" != "X"; then
6679 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6680 else
6681 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6682 fi
6683 fi
6684 additional_includedir=
6685 case "$found_dir" in
6686 */$acl_libdirstem | */$acl_libdirstem/)
6687 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6688 if test "$name" = 'iconv'; then
6689 LIBICONV_PREFIX="$basedir"
6690 fi
6691 additional_includedir="$basedir/include"
6692 ;;
6693 */$acl_libdirstem2 | */$acl_libdirstem2/)
6694 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6695 if test "$name" = 'iconv'; then
6696 LIBICONV_PREFIX="$basedir"
6697 fi
6698 additional_includedir="$basedir/include"
6699 ;;
6700 esac
6701 if test "X$additional_includedir" != "X"; then
6702 if test "X$additional_includedir" != "X/usr/include"; then
6703 haveit=
6704 if test "X$additional_includedir" = "X/usr/local/include"; then
6705 if test -n "$GCC"; then
6706 case $host_os in
6707 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6708 esac
6709 fi
6710 fi
6711 if test -z "$haveit"; then
6712 for x in $CPPFLAGS $INCICONV; do
6713
6714 acl_save_prefix="$prefix"
6715 prefix="$acl_final_prefix"
6716 acl_save_exec_prefix="$exec_prefix"
6717 exec_prefix="$acl_final_exec_prefix"
6718 eval x=\"$x\"
6719 exec_prefix="$acl_save_exec_prefix"
6720 prefix="$acl_save_prefix"
6721
6722 if test "X$x" = "X-I$additional_includedir"; then
6723 haveit=yes
6724 break
6725 fi
6726 done
6727 if test -z "$haveit"; then
6728 if test -d "$additional_includedir"; then
6729 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6730 fi
6731 fi
6732 fi
6733 fi
6734 fi
6735 if test -n "$found_la"; then
6736 save_libdir="$libdir"
6737 case "$found_la" in
6738 */* | *\\*) . "$found_la" ;;
6739 *) . "./$found_la" ;;
6740 esac
6741 libdir="$save_libdir"
6742 for dep in $dependency_libs; do
6743 case "$dep" in
6744 -L*)
6745 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6746 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6747 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6748 haveit=
6749 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6750 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6751 if test -n "$GCC"; then
6752 case $host_os in
6753 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6754 esac
6755 fi
6756 fi
6757 if test -z "$haveit"; then
6758 haveit=
6759 for x in $LDFLAGS $LIBICONV; do
6760
6761 acl_save_prefix="$prefix"
6762 prefix="$acl_final_prefix"
6763 acl_save_exec_prefix="$exec_prefix"
6764 exec_prefix="$acl_final_exec_prefix"
6765 eval x=\"$x\"
6766 exec_prefix="$acl_save_exec_prefix"
6767 prefix="$acl_save_prefix"
6768
6769 if test "X$x" = "X-L$additional_libdir"; then
6770 haveit=yes
6771 break
6772 fi
6773 done
6774 if test -z "$haveit"; then
6775 if test -d "$additional_libdir"; then
6776 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6777 fi
6778 fi
6779 haveit=
6780 for x in $LDFLAGS $LTLIBICONV; do
6781
6782 acl_save_prefix="$prefix"
6783 prefix="$acl_final_prefix"
6784 acl_save_exec_prefix="$exec_prefix"
6785 exec_prefix="$acl_final_exec_prefix"
6786 eval x=\"$x\"
6787 exec_prefix="$acl_save_exec_prefix"
6788 prefix="$acl_save_prefix"
6789
6790 if test "X$x" = "X-L$additional_libdir"; then
6791 haveit=yes
6792 break
6793 fi
6794 done
6795 if test -z "$haveit"; then
6796 if test -d "$additional_libdir"; then
6797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6798 fi
6799 fi
6800 fi
6801 fi
6802 ;;
6803 -R*)
6804 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6805 if test "$enable_rpath" != no; then
6806 haveit=
6807 for x in $rpathdirs; do
6808 if test "X$x" = "X$dir"; then
6809 haveit=yes
6810 break
6811 fi
6812 done
6813 if test -z "$haveit"; then
6814 rpathdirs="$rpathdirs $dir"
6815 fi
6816 haveit=
6817 for x in $ltrpathdirs; do
6818 if test "X$x" = "X$dir"; then
6819 haveit=yes
6820 break
6821 fi
6822 done
6823 if test -z "$haveit"; then
6824 ltrpathdirs="$ltrpathdirs $dir"
6825 fi
6826 fi
6827 ;;
6828 -l*)
6829 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6830 ;;
6831 *.la)
6832 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6833 ;;
6834 *)
6835 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6836 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6837 ;;
6838 esac
6839 done
6840 fi
6841 else
6842 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6843 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6844 fi
6845 fi
6846 fi
6847 done
6848 done
6849 if test "X$rpathdirs" != "X"; then
6850 if test -n "$acl_hardcode_libdir_separator"; then
6851 alldirs=
6852 for found_dir in $rpathdirs; do
6853 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6854 done
6855 acl_save_libdir="$libdir"
6856 libdir="$alldirs"
6857 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6858 libdir="$acl_save_libdir"
6859 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6860 else
6861 for found_dir in $rpathdirs; do
6862 acl_save_libdir="$libdir"
6863 libdir="$found_dir"
6864 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6865 libdir="$acl_save_libdir"
6866 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6867 done
6868 fi
6869 fi
6870 if test "X$ltrpathdirs" != "X"; then
6871 for found_dir in $ltrpathdirs; do
6872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6873 done
6874 fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6907 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6908 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 gt_save_LIBS="$LIBS"
6912 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 #include <CoreFoundation/CFPreferences.h>
6916 int
6917 main ()
6918 {
6919 CFPreferencesCopyAppValue(NULL, NULL)
6920 ;
6921 return 0;
6922 }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925 gt_cv_func_CFPreferencesCopyAppValue=yes
6926 else
6927 gt_cv_func_CFPreferencesCopyAppValue=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6931 LIBS="$gt_save_LIBS"
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6934 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6935 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6936
6937 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6938
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6941 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6942 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 gt_save_LIBS="$LIBS"
6946 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 #include <CoreFoundation/CFLocale.h>
6950 int
6951 main ()
6952 {
6953 CFLocaleCopyCurrent();
6954 ;
6955 return 0;
6956 }
6957 _ACEOF
6958 if ac_fn_c_try_link "$LINENO"; then :
6959 gt_cv_func_CFLocaleCopyCurrent=yes
6960 else
6961 gt_cv_func_CFLocaleCopyCurrent=no
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext \
6964 conftest$ac_exeext conftest.$ac_ext
6965 LIBS="$gt_save_LIBS"
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6968 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6969 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6970
6971 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6972
6973 fi
6974 INTL_MACOSX_LIBS=
6975 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6976 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6977 fi
6978
6979
6980
6981
6982
6983
6984 LIBINTL=
6985 LTLIBINTL=
6986 POSUB=
6987
6988 case " $gt_needs " in
6989 *" need-formatstring-macros "*) gt_api_version=3 ;;
6990 *" need-ngettext "*) gt_api_version=2 ;;
6991 *) gt_api_version=1 ;;
6992 esac
6993 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6994 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6995
6996 if test "$USE_NLS" = "yes"; then
6997 gt_use_preinstalled_gnugettext=no
6998
6999
7000 if test $gt_api_version -ge 3; then
7001 gt_revision_test_code='
7002 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7003 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7004 #endif
7005 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7006 '
7007 else
7008 gt_revision_test_code=
7009 fi
7010 if test $gt_api_version -ge 2; then
7011 gt_expression_test_code=' + * ngettext ("", "", 0)'
7012 else
7013 gt_expression_test_code=
7014 fi
7015
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7017 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7018 if eval \${$gt_func_gnugettext_libc+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <libintl.h>
7024 $gt_revision_test_code
7025 extern int _nl_msg_cat_cntr;
7026 extern int *_nl_domain_bindings;
7027 int
7028 main ()
7029 {
7030 bindtextdomain ("", "");
7031 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 eval "$gt_func_gnugettext_libc=yes"
7038 else
7039 eval "$gt_func_gnugettext_libc=no"
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 fi
7044 eval ac_res=\$$gt_func_gnugettext_libc
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7046 $as_echo "$ac_res" >&6; }
7047
7048 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7049
7050
7051
7052
7053
7054 am_save_CPPFLAGS="$CPPFLAGS"
7055
7056 for element in $INCICONV; do
7057 haveit=
7058 for x in $CPPFLAGS; do
7059
7060 acl_save_prefix="$prefix"
7061 prefix="$acl_final_prefix"
7062 acl_save_exec_prefix="$exec_prefix"
7063 exec_prefix="$acl_final_exec_prefix"
7064 eval x=\"$x\"
7065 exec_prefix="$acl_save_exec_prefix"
7066 prefix="$acl_save_prefix"
7067
7068 if test "X$x" = "X$element"; then
7069 haveit=yes
7070 break
7071 fi
7072 done
7073 if test -z "$haveit"; then
7074 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7075 fi
7076 done
7077
7078
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7080 $as_echo_n "checking for iconv... " >&6; }
7081 if ${am_cv_func_iconv+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084
7085 am_cv_func_iconv="no, consider installing GNU libiconv"
7086 am_cv_lib_iconv=no
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 #include <stdlib.h>
7090 #include <iconv.h>
7091 int
7092 main ()
7093 {
7094 iconv_t cd = iconv_open("","");
7095 iconv(cd,NULL,NULL,NULL,NULL);
7096 iconv_close(cd);
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102 am_cv_func_iconv=yes
7103 fi
7104 rm -f core conftest.err conftest.$ac_objext \
7105 conftest$ac_exeext conftest.$ac_ext
7106 if test "$am_cv_func_iconv" != yes; then
7107 am_save_LIBS="$LIBS"
7108 LIBS="$LIBS $LIBICONV"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 #include <stdlib.h>
7112 #include <iconv.h>
7113 int
7114 main ()
7115 {
7116 iconv_t cd = iconv_open("","");
7117 iconv(cd,NULL,NULL,NULL,NULL);
7118 iconv_close(cd);
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 if ac_fn_c_try_link "$LINENO"; then :
7124 am_cv_lib_iconv=yes
7125 am_cv_func_iconv=yes
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext \
7128 conftest$ac_exeext conftest.$ac_ext
7129 LIBS="$am_save_LIBS"
7130 fi
7131
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7134 $as_echo "$am_cv_func_iconv" >&6; }
7135 if test "$am_cv_func_iconv" = yes; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7137 $as_echo_n "checking for working iconv... " >&6; }
7138 if ${am_cv_func_iconv_works+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141
7142 am_save_LIBS="$LIBS"
7143 if test $am_cv_lib_iconv = yes; then
7144 LIBS="$LIBS $LIBICONV"
7145 fi
7146 if test "$cross_compiling" = yes; then :
7147 case "$host_os" in
7148 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7149 *) am_cv_func_iconv_works="guessing yes" ;;
7150 esac
7151 else
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154
7155 #include <iconv.h>
7156 #include <string.h>
7157 int main ()
7158 {
7159 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7160 returns. */
7161 {
7162 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7163 if (cd_utf8_to_88591 != (iconv_t)(-1))
7164 {
7165 static const char input[] = "\342\202\254"; /* EURO SIGN */
7166 char buf[10];
7167 const char *inptr = input;
7168 size_t inbytesleft = strlen (input);
7169 char *outptr = buf;
7170 size_t outbytesleft = sizeof (buf);
7171 size_t res = iconv (cd_utf8_to_88591,
7172 (char **) &inptr, &inbytesleft,
7173 &outptr, &outbytesleft);
7174 if (res == 0)
7175 return 1;
7176 }
7177 }
7178 /* Test against Solaris 10 bug: Failures are not distinguishable from
7179 successful returns. */
7180 {
7181 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7182 if (cd_ascii_to_88591 != (iconv_t)(-1))
7183 {
7184 static const char input[] = "\263";
7185 char buf[10];
7186 const char *inptr = input;
7187 size_t inbytesleft = strlen (input);
7188 char *outptr = buf;
7189 size_t outbytesleft = sizeof (buf);
7190 size_t res = iconv (cd_ascii_to_88591,
7191 (char **) &inptr, &inbytesleft,
7192 &outptr, &outbytesleft);
7193 if (res == 0)
7194 return 1;
7195 }
7196 }
7197 #if 0 /* This bug could be worked around by the caller. */
7198 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7199 {
7200 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7201 if (cd_88591_to_utf8 != (iconv_t)(-1))
7202 {
7203 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7204 char buf[50];
7205 const char *inptr = input;
7206 size_t inbytesleft = strlen (input);
7207 char *outptr = buf;
7208 size_t outbytesleft = sizeof (buf);
7209 size_t res = iconv (cd_88591_to_utf8,
7210 (char **) &inptr, &inbytesleft,
7211 &outptr, &outbytesleft);
7212 if ((int)res > 0)
7213 return 1;
7214 }
7215 }
7216 #endif
7217 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7218 provided. */
7219 if (/* Try standardized names. */
7220 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7221 /* Try IRIX, OSF/1 names. */
7222 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7223 /* Try AIX names. */
7224 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7225 /* Try HP-UX names. */
7226 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7227 return 1;
7228 return 0;
7229 }
7230 _ACEOF
7231 if ac_fn_c_try_run "$LINENO"; then :
7232 am_cv_func_iconv_works=yes
7233 else
7234 am_cv_func_iconv_works=no
7235 fi
7236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7237 conftest.$ac_objext conftest.beam conftest.$ac_ext
7238 fi
7239
7240 LIBS="$am_save_LIBS"
7241
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7244 $as_echo "$am_cv_func_iconv_works" >&6; }
7245 case "$am_cv_func_iconv_works" in
7246 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7247 *) am_func_iconv=yes ;;
7248 esac
7249 else
7250 am_func_iconv=no am_cv_lib_iconv=no
7251 fi
7252 if test "$am_func_iconv" = yes; then
7253
7254 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7255
7256 fi
7257 if test "$am_cv_lib_iconv" = yes; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7259 $as_echo_n "checking how to link with libiconv... " >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7261 $as_echo "$LIBICONV" >&6; }
7262 else
7263 CPPFLAGS="$am_save_CPPFLAGS"
7264 LIBICONV=
7265 LTLIBICONV=
7266 fi
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278 use_additional=yes
7279
7280 acl_save_prefix="$prefix"
7281 prefix="$acl_final_prefix"
7282 acl_save_exec_prefix="$exec_prefix"
7283 exec_prefix="$acl_final_exec_prefix"
7284
7285 eval additional_includedir=\"$includedir\"
7286 eval additional_libdir=\"$libdir\"
7287
7288 exec_prefix="$acl_save_exec_prefix"
7289 prefix="$acl_save_prefix"
7290
7291
7292 # Check whether --with-libintl-prefix was given.
7293 if test "${with_libintl_prefix+set}" = set; then :
7294 withval=$with_libintl_prefix;
7295 if test "X$withval" = "Xno"; then
7296 use_additional=no
7297 else
7298 if test "X$withval" = "X"; then
7299
7300 acl_save_prefix="$prefix"
7301 prefix="$acl_final_prefix"
7302 acl_save_exec_prefix="$exec_prefix"
7303 exec_prefix="$acl_final_exec_prefix"
7304
7305 eval additional_includedir=\"$includedir\"
7306 eval additional_libdir=\"$libdir\"
7307
7308 exec_prefix="$acl_save_exec_prefix"
7309 prefix="$acl_save_prefix"
7310
7311 else
7312 additional_includedir="$withval/include"
7313 additional_libdir="$withval/$acl_libdirstem"
7314 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7315 && ! test -d "$withval/$acl_libdirstem"; then
7316 additional_libdir="$withval/$acl_libdirstem2"
7317 fi
7318 fi
7319 fi
7320
7321 fi
7322
7323 LIBINTL=
7324 LTLIBINTL=
7325 INCINTL=
7326 LIBINTL_PREFIX=
7327 HAVE_LIBINTL=
7328 rpathdirs=
7329 ltrpathdirs=
7330 names_already_handled=
7331 names_next_round='intl '
7332 while test -n "$names_next_round"; do
7333 names_this_round="$names_next_round"
7334 names_next_round=
7335 for name in $names_this_round; do
7336 already_handled=
7337 for n in $names_already_handled; do
7338 if test "$n" = "$name"; then
7339 already_handled=yes
7340 break
7341 fi
7342 done
7343 if test -z "$already_handled"; then
7344 names_already_handled="$names_already_handled $name"
7345 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7346 eval value=\"\$HAVE_LIB$uppername\"
7347 if test -n "$value"; then
7348 if test "$value" = yes; then
7349 eval value=\"\$LIB$uppername\"
7350 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7351 eval value=\"\$LTLIB$uppername\"
7352 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7353 else
7354 :
7355 fi
7356 else
7357 found_dir=
7358 found_la=
7359 found_so=
7360 found_a=
7361 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7362 if test -n "$acl_shlibext"; then
7363 shrext=".$acl_shlibext" # typically: shrext=.so
7364 else
7365 shrext=
7366 fi
7367 if test $use_additional = yes; then
7368 dir="$additional_libdir"
7369 if test -n "$acl_shlibext"; then
7370 if test -f "$dir/$libname$shrext"; then
7371 found_dir="$dir"
7372 found_so="$dir/$libname$shrext"
7373 else
7374 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7375 ver=`(cd "$dir" && \
7376 for f in "$libname$shrext".*; do echo "$f"; done \
7377 | sed -e "s,^$libname$shrext\\\\.,," \
7378 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7379 | sed 1q ) 2>/dev/null`
7380 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7381 found_dir="$dir"
7382 found_so="$dir/$libname$shrext.$ver"
7383 fi
7384 else
7385 eval library_names=\"$acl_library_names_spec\"
7386 for f in $library_names; do
7387 if test -f "$dir/$f"; then
7388 found_dir="$dir"
7389 found_so="$dir/$f"
7390 break
7391 fi
7392 done
7393 fi
7394 fi
7395 fi
7396 if test "X$found_dir" = "X"; then
7397 if test -f "$dir/$libname.$acl_libext"; then
7398 found_dir="$dir"
7399 found_a="$dir/$libname.$acl_libext"
7400 fi
7401 fi
7402 if test "X$found_dir" != "X"; then
7403 if test -f "$dir/$libname.la"; then
7404 found_la="$dir/$libname.la"
7405 fi
7406 fi
7407 fi
7408 if test "X$found_dir" = "X"; then
7409 for x in $LDFLAGS $LTLIBINTL; do
7410
7411 acl_save_prefix="$prefix"
7412 prefix="$acl_final_prefix"
7413 acl_save_exec_prefix="$exec_prefix"
7414 exec_prefix="$acl_final_exec_prefix"
7415 eval x=\"$x\"
7416 exec_prefix="$acl_save_exec_prefix"
7417 prefix="$acl_save_prefix"
7418
7419 case "$x" in
7420 -L*)
7421 dir=`echo "X$x" | sed -e 's/^X-L//'`
7422 if test -n "$acl_shlibext"; then
7423 if test -f "$dir/$libname$shrext"; then
7424 found_dir="$dir"
7425 found_so="$dir/$libname$shrext"
7426 else
7427 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7428 ver=`(cd "$dir" && \
7429 for f in "$libname$shrext".*; do echo "$f"; done \
7430 | sed -e "s,^$libname$shrext\\\\.,," \
7431 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7432 | sed 1q ) 2>/dev/null`
7433 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7434 found_dir="$dir"
7435 found_so="$dir/$libname$shrext.$ver"
7436 fi
7437 else
7438 eval library_names=\"$acl_library_names_spec\"
7439 for f in $library_names; do
7440 if test -f "$dir/$f"; then
7441 found_dir="$dir"
7442 found_so="$dir/$f"
7443 break
7444 fi
7445 done
7446 fi
7447 fi
7448 fi
7449 if test "X$found_dir" = "X"; then
7450 if test -f "$dir/$libname.$acl_libext"; then
7451 found_dir="$dir"
7452 found_a="$dir/$libname.$acl_libext"
7453 fi
7454 fi
7455 if test "X$found_dir" != "X"; then
7456 if test -f "$dir/$libname.la"; then
7457 found_la="$dir/$libname.la"
7458 fi
7459 fi
7460 ;;
7461 esac
7462 if test "X$found_dir" != "X"; then
7463 break
7464 fi
7465 done
7466 fi
7467 if test "X$found_dir" != "X"; then
7468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7469 if test "X$found_so" != "X"; then
7470 if test "$enable_rpath" = no \
7471 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7472 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7473 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7474 else
7475 haveit=
7476 for x in $ltrpathdirs; do
7477 if test "X$x" = "X$found_dir"; then
7478 haveit=yes
7479 break
7480 fi
7481 done
7482 if test -z "$haveit"; then
7483 ltrpathdirs="$ltrpathdirs $found_dir"
7484 fi
7485 if test "$acl_hardcode_direct" = yes; then
7486 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7487 else
7488 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7490 haveit=
7491 for x in $rpathdirs; do
7492 if test "X$x" = "X$found_dir"; then
7493 haveit=yes
7494 break
7495 fi
7496 done
7497 if test -z "$haveit"; then
7498 rpathdirs="$rpathdirs $found_dir"
7499 fi
7500 else
7501 haveit=
7502 for x in $LDFLAGS $LIBINTL; do
7503
7504 acl_save_prefix="$prefix"
7505 prefix="$acl_final_prefix"
7506 acl_save_exec_prefix="$exec_prefix"
7507 exec_prefix="$acl_final_exec_prefix"
7508 eval x=\"$x\"
7509 exec_prefix="$acl_save_exec_prefix"
7510 prefix="$acl_save_prefix"
7511
7512 if test "X$x" = "X-L$found_dir"; then
7513 haveit=yes
7514 break
7515 fi
7516 done
7517 if test -z "$haveit"; then
7518 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7519 fi
7520 if test "$acl_hardcode_minus_L" != no; then
7521 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7522 else
7523 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7524 fi
7525 fi
7526 fi
7527 fi
7528 else
7529 if test "X$found_a" != "X"; then
7530 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7531 else
7532 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7533 fi
7534 fi
7535 additional_includedir=
7536 case "$found_dir" in
7537 */$acl_libdirstem | */$acl_libdirstem/)
7538 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7539 if test "$name" = 'intl'; then
7540 LIBINTL_PREFIX="$basedir"
7541 fi
7542 additional_includedir="$basedir/include"
7543 ;;
7544 */$acl_libdirstem2 | */$acl_libdirstem2/)
7545 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7546 if test "$name" = 'intl'; then
7547 LIBINTL_PREFIX="$basedir"
7548 fi
7549 additional_includedir="$basedir/include"
7550 ;;
7551 esac
7552 if test "X$additional_includedir" != "X"; then
7553 if test "X$additional_includedir" != "X/usr/include"; then
7554 haveit=
7555 if test "X$additional_includedir" = "X/usr/local/include"; then
7556 if test -n "$GCC"; then
7557 case $host_os in
7558 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7559 esac
7560 fi
7561 fi
7562 if test -z "$haveit"; then
7563 for x in $CPPFLAGS $INCINTL; do
7564
7565 acl_save_prefix="$prefix"
7566 prefix="$acl_final_prefix"
7567 acl_save_exec_prefix="$exec_prefix"
7568 exec_prefix="$acl_final_exec_prefix"
7569 eval x=\"$x\"
7570 exec_prefix="$acl_save_exec_prefix"
7571 prefix="$acl_save_prefix"
7572
7573 if test "X$x" = "X-I$additional_includedir"; then
7574 haveit=yes
7575 break
7576 fi
7577 done
7578 if test -z "$haveit"; then
7579 if test -d "$additional_includedir"; then
7580 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7581 fi
7582 fi
7583 fi
7584 fi
7585 fi
7586 if test -n "$found_la"; then
7587 save_libdir="$libdir"
7588 case "$found_la" in
7589 */* | *\\*) . "$found_la" ;;
7590 *) . "./$found_la" ;;
7591 esac
7592 libdir="$save_libdir"
7593 for dep in $dependency_libs; do
7594 case "$dep" in
7595 -L*)
7596 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7597 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7598 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7599 haveit=
7600 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7601 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7602 if test -n "$GCC"; then
7603 case $host_os in
7604 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7605 esac
7606 fi
7607 fi
7608 if test -z "$haveit"; then
7609 haveit=
7610 for x in $LDFLAGS $LIBINTL; do
7611
7612 acl_save_prefix="$prefix"
7613 prefix="$acl_final_prefix"
7614 acl_save_exec_prefix="$exec_prefix"
7615 exec_prefix="$acl_final_exec_prefix"
7616 eval x=\"$x\"
7617 exec_prefix="$acl_save_exec_prefix"
7618 prefix="$acl_save_prefix"
7619
7620 if test "X$x" = "X-L$additional_libdir"; then
7621 haveit=yes
7622 break
7623 fi
7624 done
7625 if test -z "$haveit"; then
7626 if test -d "$additional_libdir"; then
7627 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7628 fi
7629 fi
7630 haveit=
7631 for x in $LDFLAGS $LTLIBINTL; do
7632
7633 acl_save_prefix="$prefix"
7634 prefix="$acl_final_prefix"
7635 acl_save_exec_prefix="$exec_prefix"
7636 exec_prefix="$acl_final_exec_prefix"
7637 eval x=\"$x\"
7638 exec_prefix="$acl_save_exec_prefix"
7639 prefix="$acl_save_prefix"
7640
7641 if test "X$x" = "X-L$additional_libdir"; then
7642 haveit=yes
7643 break
7644 fi
7645 done
7646 if test -z "$haveit"; then
7647 if test -d "$additional_libdir"; then
7648 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7649 fi
7650 fi
7651 fi
7652 fi
7653 ;;
7654 -R*)
7655 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7656 if test "$enable_rpath" != no; then
7657 haveit=
7658 for x in $rpathdirs; do
7659 if test "X$x" = "X$dir"; then
7660 haveit=yes
7661 break
7662 fi
7663 done
7664 if test -z "$haveit"; then
7665 rpathdirs="$rpathdirs $dir"
7666 fi
7667 haveit=
7668 for x in $ltrpathdirs; do
7669 if test "X$x" = "X$dir"; then
7670 haveit=yes
7671 break
7672 fi
7673 done
7674 if test -z "$haveit"; then
7675 ltrpathdirs="$ltrpathdirs $dir"
7676 fi
7677 fi
7678 ;;
7679 -l*)
7680 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7681 ;;
7682 *.la)
7683 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7684 ;;
7685 *)
7686 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7687 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7688 ;;
7689 esac
7690 done
7691 fi
7692 else
7693 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7694 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7695 fi
7696 fi
7697 fi
7698 done
7699 done
7700 if test "X$rpathdirs" != "X"; then
7701 if test -n "$acl_hardcode_libdir_separator"; then
7702 alldirs=
7703 for found_dir in $rpathdirs; do
7704 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7705 done
7706 acl_save_libdir="$libdir"
7707 libdir="$alldirs"
7708 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7709 libdir="$acl_save_libdir"
7710 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7711 else
7712 for found_dir in $rpathdirs; do
7713 acl_save_libdir="$libdir"
7714 libdir="$found_dir"
7715 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7716 libdir="$acl_save_libdir"
7717 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7718 done
7719 fi
7720 fi
7721 if test "X$ltrpathdirs" != "X"; then
7722 for found_dir in $ltrpathdirs; do
7723 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7724 done
7725 fi
7726
7727
7728
7729
7730
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7733 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7734 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 gt_save_CPPFLAGS="$CPPFLAGS"
7738 CPPFLAGS="$CPPFLAGS $INCINTL"
7739 gt_save_LIBS="$LIBS"
7740 LIBS="$LIBS $LIBINTL"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 #include <libintl.h>
7744 $gt_revision_test_code
7745 extern int _nl_msg_cat_cntr;
7746 extern
7747 #ifdef __cplusplus
7748 "C"
7749 #endif
7750 const char *_nl_expand_alias (const char *);
7751 int
7752 main ()
7753 {
7754 bindtextdomain ("", "");
7755 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7756 ;
7757 return 0;
7758 }
7759 _ACEOF
7760 if ac_fn_c_try_link "$LINENO"; then :
7761 eval "$gt_func_gnugettext_libintl=yes"
7762 else
7763 eval "$gt_func_gnugettext_libintl=no"
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext \
7766 conftest$ac_exeext conftest.$ac_ext
7767 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7768 LIBS="$LIBS $LIBICONV"
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771 #include <libintl.h>
7772 $gt_revision_test_code
7773 extern int _nl_msg_cat_cntr;
7774 extern
7775 #ifdef __cplusplus
7776 "C"
7777 #endif
7778 const char *_nl_expand_alias (const char *);
7779 int
7780 main ()
7781 {
7782 bindtextdomain ("", "");
7783 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_link "$LINENO"; then :
7789 LIBINTL="$LIBINTL $LIBICONV"
7790 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7791 eval "$gt_func_gnugettext_libintl=yes"
7792
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796 fi
7797 CPPFLAGS="$gt_save_CPPFLAGS"
7798 LIBS="$gt_save_LIBS"
7799 fi
7800 eval ac_res=\$$gt_func_gnugettext_libintl
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7802 $as_echo "$ac_res" >&6; }
7803 fi
7804
7805 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7806 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7807 && test "$PACKAGE" != gettext-runtime \
7808 && test "$PACKAGE" != gettext-tools; }; then
7809 gt_use_preinstalled_gnugettext=yes
7810 else
7811 LIBINTL=
7812 LTLIBINTL=
7813 INCINTL=
7814 fi
7815
7816
7817
7818 if test -n "$INTL_MACOSX_LIBS"; then
7819 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7820 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7821 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7822 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7823 fi
7824 fi
7825
7826 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7827 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7828
7829 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7830
7831 else
7832 USE_NLS=no
7833 fi
7834 fi
7835
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7837 $as_echo_n "checking whether to use NLS... " >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7839 $as_echo "$USE_NLS" >&6; }
7840 if test "$USE_NLS" = "yes"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7842 $as_echo_n "checking where the gettext function comes from... " >&6; }
7843 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7844 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7845 gt_source="external libintl"
7846 else
7847 gt_source="libc"
7848 fi
7849 else
7850 gt_source="included intl directory"
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7853 $as_echo "$gt_source" >&6; }
7854 fi
7855
7856 if test "$USE_NLS" = "yes"; then
7857
7858 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7859 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7861 $as_echo_n "checking how to link with libintl... " >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7863 $as_echo "$LIBINTL" >&6; }
7864
7865 for element in $INCINTL; do
7866 haveit=
7867 for x in $CPPFLAGS; do
7868
7869 acl_save_prefix="$prefix"
7870 prefix="$acl_final_prefix"
7871 acl_save_exec_prefix="$exec_prefix"
7872 exec_prefix="$acl_final_exec_prefix"
7873 eval x=\"$x\"
7874 exec_prefix="$acl_save_exec_prefix"
7875 prefix="$acl_save_prefix"
7876
7877 if test "X$x" = "X$element"; then
7878 haveit=yes
7879 break
7880 fi
7881 done
7882 if test -z "$haveit"; then
7883 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7884 fi
7885 done
7886
7887 fi
7888
7889
7890 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7891
7892
7893 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7894
7895 fi
7896
7897 POSUB=po
7898 fi
7899
7900
7901
7902 INTLLIBS="$LIBINTL"
7903
7904
7905
7906
7907
7908
7909
7910
7911 # Need OpenGL and GLU for drawing stuff
7912
7913
7914 # Check whether --with-xquartz-gl was given.
7915 if test "${with_xquartz_gl+set}" = set; then :
7916 withval=$with_xquartz_gl; if test "X$with_xquartz_gl"="Xyes"; then :
7917 with_xquartz_gl="/opt/X11"
7918 fi
7919 else
7920 with_xquartz_gl=no
7921 fi
7922
7923 if test "X$with_xquartz_gl" != "Xno"; then :
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OSX X11 path" >&5
7925 $as_echo_n "checking OSX X11 path... " >&6; }
7926 if test -e "$with_xquartz_gl"; then :
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_xquartz_gl\"" >&5
7928 $as_echo "\"$with_xquartz_gl\"" >&6; }
7929 CFLAGS="-I$with_xquartz_gl/include $CFLAGS"
7930 LIBS="-L$with_xquartz_gl/lib $LIBS"
7931
7932 else
7933 with_xquartz_gl=no
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xquartz-gl was given, but test for X11 failed. Fallback to system framework" >&5
7937 $as_echo "$as_me: WARNING: --with-xquartz-gl was given, but test for X11 failed. Fallback to system framework" >&2;}
7938
7939 fi
7940
7941 fi
7942
7943
7944
7945
7946
7947
7948 case ${host} in #(
7949 *-darwin*) :
7950
7951
7952 if test "x$with_xquartz_gl" != "xno"; then :
7953 GL_LIBS="${GL_LIBS:--lGL}"
7954 else
7955 GL_LIBS="${GL_LIBS:--framework OpenGL}"
7956 fi
7957 ;; #(
7958 *-cygwin*|*-mingw*) :
7959
7960
7961 if test -n "$GL_LIBS"; then :
7962
7963 else
7964
7965 ax_check_gl_manual_libs_generic_extra_libs="opengl32 GL gl"
7966 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then :
7967 as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
7968 fi
7969
7970
7971
7972
7973 _ax_gl_saved_flag_cflags="$CFLAGS"
7974 CFLAGS="$GL_CFLAGS $CFLAGS"
7975
7976
7977
7978 ac_ext=c
7979 ac_cpp='$CPP $CPPFLAGS'
7980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983
7984
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
7986 $as_echo_n "checking for library containing glBegin... " >&6; }
7987 if ${ac_cv_search_glBegin+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 ac_func_search_save_LIBS=$LIBS
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993
7994 /* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
7997 #ifdef __cplusplus
7998 extern "C"
7999 #endif
8000 char glBegin ();
8001 int
8002 main ()
8003 {
8004 return glBegin ();
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do
8010 if test -z "$ac_lib"; then
8011 ac_res="none required"
8012 else
8013 ac_res=-l$ac_lib
8014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8015 fi
8016 if ac_fn_c_try_link "$LINENO"; then :
8017 ac_cv_search_glBegin=$ac_res
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext
8021 if ${ac_cv_search_glBegin+:} false; then :
8022 break
8023 fi
8024 done
8025 if ${ac_cv_search_glBegin+:} false; then :
8026
8027 else
8028 ac_cv_search_glBegin=no
8029 fi
8030 rm conftest.$ac_ext
8031 LIBS=$ac_func_search_save_LIBS
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
8034 $as_echo "$ac_cv_search_glBegin" >&6; }
8035 ac_res=$ac_cv_search_glBegin
8036 if test "$ac_res" != no; then :
8037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8038
8039 ax_check_gl_lib_opengl="yes"
8040 break
8041
8042 fi
8043
8044 if test "X$ax_check_gl_lib_opengl"="Xyes"; then :
8045 GL_LIBS="${ac_cv_search_glBegin}"
8046 fi
8047
8048
8049
8050 CFLAGS="$_ax_gl_saved_flag_cflags"
8051
8052
8053
8054
8055 ac_ext=c
8056 ac_cpp='$CPP $CPPFLAGS'
8057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061
8062
8063 fi
8064
8065 for ac_header in windows.h
8066 do :
8067 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8068 if test "x$ac_cv_header_windows_h" = xyes; then :
8069 cat >>confdefs.h <<_ACEOF
8070 #define HAVE_WINDOWS_H 1
8071 _ACEOF
8072
8073 fi
8074
8075 done
8076
8077 ;; #(
8078 *) :
8079
8080
8081
8082
8083
8084
8085
8086 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8087 if test -n "$ac_tool_prefix"; then
8088 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8089 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 case $PKG_CONFIG in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8098 ;;
8099 *)
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 ;;
8116 esac
8117 fi
8118 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8119 if test -n "$PKG_CONFIG"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8121 $as_echo "$PKG_CONFIG" >&6; }
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128 fi
8129 if test -z "$ac_cv_path_PKG_CONFIG"; then
8130 ac_pt_PKG_CONFIG=$PKG_CONFIG
8131 # Extract the first word of "pkg-config", so it can be a program name with args.
8132 set dummy pkg-config; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 case $ac_pt_PKG_CONFIG in
8139 [\\/]* | ?:[\\/]*)
8140 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8141 ;;
8142 *)
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 break 2
8153 fi
8154 done
8155 done
8156 IFS=$as_save_IFS
8157
8158 ;;
8159 esac
8160 fi
8161 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8162 if test -n "$ac_pt_PKG_CONFIG"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8164 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8168 fi
8169
8170 if test "x$ac_pt_PKG_CONFIG" = x; then
8171 PKG_CONFIG=""
8172 else
8173 case $cross_compiling:$ac_tool_warned in
8174 yes:)
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8177 ac_tool_warned=yes ;;
8178 esac
8179 PKG_CONFIG=$ac_pt_PKG_CONFIG
8180 fi
8181 else
8182 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8183 fi
8184
8185 fi
8186 if test -n "$PKG_CONFIG"; then
8187 _pkg_min_version=0.9.0
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8189 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8190 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8192 $as_echo "yes" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 PKG_CONFIG=""
8197 fi
8198 fi
8199
8200 pkg_failed=no
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
8202 $as_echo_n "checking for GL... " >&6; }
8203
8204 if test -n "$GL_CFLAGS"; then
8205 pkg_cv_GL_CFLAGS="$GL_CFLAGS"
8206 elif test -n "$PKG_CONFIG"; then
8207 if test -n "$PKG_CONFIG" && \
8208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
8209 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
8210 ac_status=$?
8211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212 test $ac_status = 0; }; then
8213 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
8214 test "x$?" != "x0" && pkg_failed=yes
8215 else
8216 pkg_failed=yes
8217 fi
8218 else
8219 pkg_failed=untried
8220 fi
8221 if test -n "$GL_LIBS"; then
8222 pkg_cv_GL_LIBS="$GL_LIBS"
8223 elif test -n "$PKG_CONFIG"; then
8224 if test -n "$PKG_CONFIG" && \
8225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
8226 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
8227 ac_status=$?
8228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8229 test $ac_status = 0; }; then
8230 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
8231 test "x$?" != "x0" && pkg_failed=yes
8232 else
8233 pkg_failed=yes
8234 fi
8235 else
8236 pkg_failed=untried
8237 fi
8238
8239
8240
8241 if test $pkg_failed = yes; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244
8245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8246 _pkg_short_errors_supported=yes
8247 else
8248 _pkg_short_errors_supported=no
8249 fi
8250 if test $_pkg_short_errors_supported = yes; then
8251 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
8252 else
8253 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
8254 fi
8255 # Put the nasty error message in config.log where it belongs
8256 echo "$GL_PKG_ERRORS" >&5
8257
8258
8259 if test -n "$GL_LIBS"; then :
8260
8261 else
8262
8263 ax_check_gl_manual_libs_generic_extra_libs="GL gl"
8264 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then :
8265 as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
8266 fi
8267
8268
8269
8270
8271 _ax_gl_saved_flag_cflags="$CFLAGS"
8272 CFLAGS="$GL_CFLAGS $CFLAGS"
8273
8274
8275
8276 ac_ext=c
8277 ac_cpp='$CPP $CPPFLAGS'
8278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8281
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
8284 $as_echo_n "checking for library containing glBegin... " >&6; }
8285 if ${ac_cv_search_glBegin+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 ac_func_search_save_LIBS=$LIBS
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291
8292 /* Override any GCC internal prototype to avoid an error.
8293 Use char because int might match the return type of a GCC
8294 builtin and then its argument prototype would still apply. */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 char glBegin ();
8299 int
8300 main ()
8301 {
8302 return glBegin ();
8303 ;
8304 return 0;
8305 }
8306 _ACEOF
8307 for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do
8308 if test -z "$ac_lib"; then
8309 ac_res="none required"
8310 else
8311 ac_res=-l$ac_lib
8312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8313 fi
8314 if ac_fn_c_try_link "$LINENO"; then :
8315 ac_cv_search_glBegin=$ac_res
8316 fi
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext
8319 if ${ac_cv_search_glBegin+:} false; then :
8320 break
8321 fi
8322 done
8323 if ${ac_cv_search_glBegin+:} false; then :
8324
8325 else
8326 ac_cv_search_glBegin=no
8327 fi
8328 rm conftest.$ac_ext
8329 LIBS=$ac_func_search_save_LIBS
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
8332 $as_echo "$ac_cv_search_glBegin" >&6; }
8333 ac_res=$ac_cv_search_glBegin
8334 if test "$ac_res" != no; then :
8335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8336
8337 ax_check_gl_lib_opengl="yes"
8338 break
8339
8340 fi
8341
8342 if test "X$ax_check_gl_lib_opengl"="Xyes"; then :
8343 GL_LIBS="${ac_cv_search_glBegin}"
8344 fi
8345
8346
8347
8348 CFLAGS="$_ax_gl_saved_flag_cflags"
8349
8350
8351
8352
8353 ac_ext=c
8354 ac_cpp='$CPP $CPPFLAGS'
8355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
8360
8361 fi
8362
8363 elif test $pkg_failed = untried; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366
8367 if test -n "$GL_LIBS"; then :
8368
8369 else
8370
8371 ax_check_gl_manual_libs_generic_extra_libs="GL gl"
8372 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then :
8373 as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
8374 fi
8375
8376
8377
8378
8379 _ax_gl_saved_flag_cflags="$CFLAGS"
8380 CFLAGS="$GL_CFLAGS $CFLAGS"
8381
8382
8383
8384 ac_ext=c
8385 ac_cpp='$CPP $CPPFLAGS'
8386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8389
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
8392 $as_echo_n "checking for library containing glBegin... " >&6; }
8393 if ${ac_cv_search_glBegin+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 ac_func_search_save_LIBS=$LIBS
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399
8400 /* Override any GCC internal prototype to avoid an error.
8401 Use char because int might match the return type of a GCC
8402 builtin and then its argument prototype would still apply. */
8403 #ifdef __cplusplus
8404 extern "C"
8405 #endif
8406 char glBegin ();
8407 int
8408 main ()
8409 {
8410 return glBegin ();
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do
8416 if test -z "$ac_lib"; then
8417 ac_res="none required"
8418 else
8419 ac_res=-l$ac_lib
8420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8421 fi
8422 if ac_fn_c_try_link "$LINENO"; then :
8423 ac_cv_search_glBegin=$ac_res
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext
8427 if ${ac_cv_search_glBegin+:} false; then :
8428 break
8429 fi
8430 done
8431 if ${ac_cv_search_glBegin+:} false; then :
8432
8433 else
8434 ac_cv_search_glBegin=no
8435 fi
8436 rm conftest.$ac_ext
8437 LIBS=$ac_func_search_save_LIBS
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
8440 $as_echo "$ac_cv_search_glBegin" >&6; }
8441 ac_res=$ac_cv_search_glBegin
8442 if test "$ac_res" != no; then :
8443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8444
8445 ax_check_gl_lib_opengl="yes"
8446 break
8447
8448 fi
8449
8450 if test "X$ax_check_gl_lib_opengl"="Xyes"; then :
8451 GL_LIBS="${ac_cv_search_glBegin}"
8452 fi
8453
8454
8455
8456 CFLAGS="$_ax_gl_saved_flag_cflags"
8457
8458
8459
8460
8461 ac_ext=c
8462 ac_cpp='$CPP $CPPFLAGS'
8463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466
8467
8468
8469 fi
8470
8471 else
8472 GL_CFLAGS=$pkg_cv_GL_CFLAGS
8473 GL_LIBS=$pkg_cv_GL_LIBS
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8475 $as_echo "yes" >&6; }
8476
8477 fi
8478 ;;
8479 esac
8480
8481
8482
8483 _ax_gl_saved_flag_cflags="$CFLAGS"
8484 CFLAGS="$GL_CFLAGS $CFLAGS"
8485
8486
8487
8488 ac_ext=c
8489 ac_cpp='$CPP $CPPFLAGS'
8490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494
8495 for ac_header in GL/gl.h OpenGL/gl.h
8496 do :
8497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8498 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8500 cat >>confdefs.h <<_ACEOF
8501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8502 _ACEOF
8503 ax_check_gl_have_headers="yes";break
8504 fi
8505
8506 done
8507
8508
8509
8510
8511 CFLAGS="$_ax_gl_saved_flag_cflags"
8512
8513
8514
8515
8516 ac_ext=c
8517 ac_cpp='$CPP $CPPFLAGS'
8518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8521
8522
8523
8524 if test "X$ax_check_gl_have_headers" = "Xyes"; then :
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL program" >&5
8526 $as_echo_n "checking for compiling a minimal OpenGL program... " >&6; }
8527 if ${ax_cv_check_gl_compile_opengl+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530
8531
8532
8533 _ax_gl_saved_flag_cflags="$CFLAGS"
8534 CFLAGS="$GL_CFLAGS $CFLAGS"
8535
8536
8537
8538 ac_ext=c
8539 ac_cpp='$CPP $CPPFLAGS'
8540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8543
8544
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547
8548 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8549 # include <windows.h>
8550 # endif
8551 # ifdef HAVE_GL_GL_H
8552 # include <GL/gl.h>
8553 # elif defined(HAVE_OPENGL_GL_H)
8554 # include <OpenGL/gl.h>
8555 # else
8556 # error no gl.h
8557 # endif
8558
8559 int
8560 main ()
8561 {
8562 glBegin(0)
8563 ;
8564 return 0;
8565 }
8566 _ACEOF
8567 if ac_fn_c_try_compile "$LINENO"; then :
8568 ax_check_gl_compile_opengl="yes"
8569 else
8570 ax_check_gl_compile_opengl="no"
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573
8574
8575
8576 CFLAGS="$_ax_gl_saved_flag_cflags"
8577
8578
8579
8580
8581 ac_ext=c
8582 ac_cpp='$CPP $CPPFLAGS'
8583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8586
8587
8588
8589 ax_cv_check_gl_compile_opengl="${ax_check_gl_compile_opengl}"
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_compile_opengl" >&5
8592 $as_echo "$ax_cv_check_gl_compile_opengl" >&6; }
8593 ax_check_gl_compile_opengl="${ax_cv_check_gl_compile_opengl}"
8594
8595 else
8596 no_gl=yes
8597 fi
8598 if test "X$ax_check_gl_compile_opengl" = "Xyes"; then :
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal OpenGL program" >&5
8600 $as_echo_n "checking for linking a minimal OpenGL program... " >&6; }
8601 if ${ax_cv_check_gl_link_opengl+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604
8605
8606
8607 _ax_gl_saved_flag_cflags="$CFLAGS"
8608 CFLAGS="$GL_CFLAGS $CFLAGS"
8609
8610
8611 _ax_gl_saved_flag_libs="$LIBS"
8612 LIBS="$GL_LIBS $LIBS"
8613
8614
8615
8616
8617 ac_ext=c
8618 ac_cpp='$CPP $CPPFLAGS'
8619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8622
8623
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626
8627 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8628 # include <windows.h>
8629 # endif
8630 # ifdef HAVE_GL_GL_H
8631 # include <GL/gl.h>
8632 # elif defined(HAVE_OPENGL_GL_H)
8633 # include <OpenGL/gl.h>
8634 # else
8635 # error no gl.h
8636 # endif
8637
8638 int
8639 main ()
8640 {
8641 glBegin(0)
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_link "$LINENO"; then :
8647 ax_check_gl_link_opengl="yes"
8648 else
8649 ax_check_gl_link_opengl="no"
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
8653
8654
8655
8656 CFLAGS="$_ax_gl_saved_flag_cflags"
8657
8658
8659 LIBS="$_ax_gl_saved_flag_libs"
8660
8661
8662 LDFLAGS="$_ax_gl_saved_flag_ldflags"
8663
8664
8665
8666
8667
8668
8669 ac_ext=c
8670 ac_cpp='$CPP $CPPFLAGS'
8671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8674
8675
8676
8677 ax_cv_check_gl_link_opengl="${ax_check_gl_link_opengl}"
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_link_opengl" >&5
8680 $as_echo "$ax_cv_check_gl_link_opengl" >&6; }
8681 ax_check_gl_link_opengl="${ax_cv_check_gl_link_opengl}"
8682
8683 else
8684 no_gl=yes
8685 fi
8686 if test "X$no_gl" = "X"; then :
8687
8688 $as_echo "#define HAVE_GL 1" >>confdefs.h
8689
8690 CFLAGS="$GL_CFLAGS $CFLAGS"
8691 LIBS="$GL_LIBS $LIBS"
8692
8693 else
8694 as_fn_error $? "Could not find a valid OpenGL implementation" "$LINENO" 5
8695
8696 fi
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 case ${host} in #(
8707 *-darwin*) :
8708
8709
8710 if test "x$with_xquartz_gl" != "xno"; then :
8711 GLU_LIBS="${GLU_LIBS:--lGLU}"
8712 else
8713 GLU_LIBS="${GLU_LIBS:--framework OpenGL}"
8714 fi
8715 ;; #(
8716 *-cygwin*) :
8717
8718
8719 ac_ext=c
8720 ac_cpp='$CPP $CPPFLAGS'
8721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8724
8725
8726
8727 _ax_glu_saved_flag_cflags="$CFLAGS"
8728 CFLAGS="$GLU_CFLAGS $CFLAGS"
8729
8730
8731 _ax_glu_saved_flag_libs="$LIBS"
8732 LIBS="$GLU_LIBS $LIBS"
8733
8734
8735
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
8738 $as_echo_n "checking for library containing gluBeginCurve... " >&6; }
8739 if ${ac_cv_search_gluBeginCurve+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 ac_func_search_save_LIBS=$LIBS
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745
8746 /* Override any GCC internal prototype to avoid an error.
8747 Use char because int might match the return type of a GCC
8748 builtin and then its argument prototype would still apply. */
8749 #ifdef __cplusplus
8750 extern "C"
8751 #endif
8752 char gluBeginCurve ();
8753 int
8754 main ()
8755 {
8756 return gluBeginCurve ();
8757 ;
8758 return 0;
8759 }
8760 _ACEOF
8761 for ac_lib in '' GLU glu MesaGLU glu32; do
8762 if test -z "$ac_lib"; then
8763 ac_res="none required"
8764 else
8765 ac_res=-l$ac_lib
8766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8767 fi
8768 if ac_fn_c_try_link "$LINENO"; then :
8769 ac_cv_search_gluBeginCurve=$ac_res
8770 fi
8771 rm -f core conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext
8773 if ${ac_cv_search_gluBeginCurve+:} false; then :
8774 break
8775 fi
8776 done
8777 if ${ac_cv_search_gluBeginCurve+:} false; then :
8778
8779 else
8780 ac_cv_search_gluBeginCurve=no
8781 fi
8782 rm conftest.$ac_ext
8783 LIBS=$ac_func_search_save_LIBS
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
8786 $as_echo "$ac_cv_search_gluBeginCurve" >&6; }
8787 ac_res=$ac_cv_search_gluBeginCurve
8788 if test "$ac_res" != no; then :
8789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8790 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
8791 fi
8792
8793
8794
8795
8796 CFLAGS="$_ax_glu_saved_flag_cflags"
8797
8798
8799 LIBS="$_ax_glu_saved_flag_libs"
8800
8801
8802
8803
8804 ac_ext=c
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809
8810
8811
8812 for ac_header in windows.h
8813 do :
8814 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8815 if test "x$ac_cv_header_windows_h" = xyes; then :
8816 cat >>confdefs.h <<_ACEOF
8817 #define HAVE_WINDOWS_H 1
8818 _ACEOF
8819
8820 fi
8821
8822 done
8823 ;; #(
8824 # try first native
8825 *-mingw*) :
8826
8827
8828 ac_ext=c
8829 ac_cpp='$CPP $CPPFLAGS'
8830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8833
8834
8835
8836 _ax_glu_saved_flag_cflags="$CFLAGS"
8837 CFLAGS="$GLU_CFLAGS $CFLAGS"
8838
8839
8840 _ax_glu_saved_flag_libs="$LIBS"
8841 LIBS="$GLU_LIBS $LIBS"
8842
8843
8844
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
8847 $as_echo_n "checking for library containing gluBeginCurve... " >&6; }
8848 if ${ac_cv_search_gluBeginCurve+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 ac_func_search_save_LIBS=$LIBS
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854
8855 /* Override any GCC internal prototype to avoid an error.
8856 Use char because int might match the return type of a GCC
8857 builtin and then its argument prototype would still apply. */
8858 #ifdef __cplusplus
8859 extern "C"
8860 #endif
8861 char gluBeginCurve ();
8862 int
8863 main ()
8864 {
8865 return gluBeginCurve ();
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 for ac_lib in '' glu32 GLU glu MesaGLU; do
8871 if test -z "$ac_lib"; then
8872 ac_res="none required"
8873 else
8874 ac_res=-l$ac_lib
8875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8876 fi
8877 if ac_fn_c_try_link "$LINENO"; then :
8878 ac_cv_search_gluBeginCurve=$ac_res
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext
8882 if ${ac_cv_search_gluBeginCurve+:} false; then :
8883 break
8884 fi
8885 done
8886 if ${ac_cv_search_gluBeginCurve+:} false; then :
8887
8888 else
8889 ac_cv_search_gluBeginCurve=no
8890 fi
8891 rm conftest.$ac_ext
8892 LIBS=$ac_func_search_save_LIBS
8893 fi
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
8895 $as_echo "$ac_cv_search_gluBeginCurve" >&6; }
8896 ac_res=$ac_cv_search_gluBeginCurve
8897 if test "$ac_res" != no; then :
8898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8899 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
8900 fi
8901
8902
8903
8904
8905 CFLAGS="$_ax_glu_saved_flag_cflags"
8906
8907
8908 LIBS="$_ax_glu_saved_flag_libs"
8909
8910
8911
8912
8913 ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919
8920
8921 for ac_header in windows.h
8922 do :
8923 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8924 if test "x$ac_cv_header_windows_h" = xyes; then :
8925 cat >>confdefs.h <<_ACEOF
8926 #define HAVE_WINDOWS_H 1
8927 _ACEOF
8928
8929 fi
8930
8931 done
8932 ;; #(
8933 *) :
8934
8935
8936
8937
8938
8939
8940
8941 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8942 if test -n "$ac_tool_prefix"; then
8943 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8944 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 case $PKG_CONFIG in
8951 [\\/]* | ?:[\\/]*)
8952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8953 ;;
8954 *)
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8957 do
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 break 2
8965 fi
8966 done
8967 done
8968 IFS=$as_save_IFS
8969
8970 ;;
8971 esac
8972 fi
8973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8974 if test -n "$PKG_CONFIG"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8976 $as_echo "$PKG_CONFIG" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8980 fi
8981
8982
8983 fi
8984 if test -z "$ac_cv_path_PKG_CONFIG"; then
8985 ac_pt_PKG_CONFIG=$PKG_CONFIG
8986 # Extract the first word of "pkg-config", so it can be a program name with args.
8987 set dummy pkg-config; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 case $ac_pt_PKG_CONFIG in
8994 [\\/]* | ?:[\\/]*)
8995 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8996 ;;
8997 *)
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9008 fi
9009 done
9010 done
9011 IFS=$as_save_IFS
9012
9013 ;;
9014 esac
9015 fi
9016 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9017 if test -n "$ac_pt_PKG_CONFIG"; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9019 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9020 else
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024
9025 if test "x$ac_pt_PKG_CONFIG" = x; then
9026 PKG_CONFIG=""
9027 else
9028 case $cross_compiling:$ac_tool_warned in
9029 yes:)
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9032 ac_tool_warned=yes ;;
9033 esac
9034 PKG_CONFIG=$ac_pt_PKG_CONFIG
9035 fi
9036 else
9037 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9038 fi
9039
9040 fi
9041 if test -n "$PKG_CONFIG"; then
9042 _pkg_min_version=0.9.0
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9044 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9045 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9047 $as_echo "yes" >&6; }
9048 else
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9051 PKG_CONFIG=""
9052 fi
9053 fi
9054
9055 pkg_failed=no
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLU" >&5
9057 $as_echo_n "checking for GLU... " >&6; }
9058
9059 if test -n "$GLU_CFLAGS"; then
9060 pkg_cv_GLU_CFLAGS="$GLU_CFLAGS"
9061 elif test -n "$PKG_CONFIG"; then
9062 if test -n "$PKG_CONFIG" && \
9063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5
9064 ($PKG_CONFIG --exists --print-errors "glu") 2>&5
9065 ac_status=$?
9066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9067 test $ac_status = 0; }; then
9068 pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "glu" 2>/dev/null`
9069 test "x$?" != "x0" && pkg_failed=yes
9070 else
9071 pkg_failed=yes
9072 fi
9073 else
9074 pkg_failed=untried
9075 fi
9076 if test -n "$GLU_LIBS"; then
9077 pkg_cv_GLU_LIBS="$GLU_LIBS"
9078 elif test -n "$PKG_CONFIG"; then
9079 if test -n "$PKG_CONFIG" && \
9080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5
9081 ($PKG_CONFIG --exists --print-errors "glu") 2>&5
9082 ac_status=$?
9083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9084 test $ac_status = 0; }; then
9085 pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "glu" 2>/dev/null`
9086 test "x$?" != "x0" && pkg_failed=yes
9087 else
9088 pkg_failed=yes
9089 fi
9090 else
9091 pkg_failed=untried
9092 fi
9093
9094
9095
9096 if test $pkg_failed = yes; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9099
9100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9101 _pkg_short_errors_supported=yes
9102 else
9103 _pkg_short_errors_supported=no
9104 fi
9105 if test $_pkg_short_errors_supported = yes; then
9106 GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glu" 2>&1`
9107 else
9108 GLU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glu" 2>&1`
9109 fi
9110 # Put the nasty error message in config.log where it belongs
9111 echo "$GLU_PKG_ERRORS" >&5
9112
9113
9114
9115 ac_ext=c
9116 ac_cpp='$CPP $CPPFLAGS'
9117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9120
9121
9122
9123 _ax_glu_saved_flag_cflags="$CFLAGS"
9124 CFLAGS="$GLU_CFLAGS $CFLAGS"
9125
9126
9127 _ax_glu_saved_flag_libs="$LIBS"
9128 LIBS="$GLU_LIBS $LIBS"
9129
9130
9131
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
9134 $as_echo_n "checking for library containing gluBeginCurve... " >&6; }
9135 if ${ac_cv_search_gluBeginCurve+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 ac_func_search_save_LIBS=$LIBS
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141
9142 /* Override any GCC internal prototype to avoid an error.
9143 Use char because int might match the return type of a GCC
9144 builtin and then its argument prototype would still apply. */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 char gluBeginCurve ();
9149 int
9150 main ()
9151 {
9152 return gluBeginCurve ();
9153 ;
9154 return 0;
9155 }
9156 _ACEOF
9157 for ac_lib in '' GLU glu MesaGLU; do
9158 if test -z "$ac_lib"; then
9159 ac_res="none required"
9160 else
9161 ac_res=-l$ac_lib
9162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9163 fi
9164 if ac_fn_c_try_link "$LINENO"; then :
9165 ac_cv_search_gluBeginCurve=$ac_res
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext
9169 if ${ac_cv_search_gluBeginCurve+:} false; then :
9170 break
9171 fi
9172 done
9173 if ${ac_cv_search_gluBeginCurve+:} false; then :
9174
9175 else
9176 ac_cv_search_gluBeginCurve=no
9177 fi
9178 rm conftest.$ac_ext
9179 LIBS=$ac_func_search_save_LIBS
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
9182 $as_echo "$ac_cv_search_gluBeginCurve" >&6; }
9183 ac_res=$ac_cv_search_gluBeginCurve
9184 if test "$ac_res" != no; then :
9185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9186 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
9187 fi
9188
9189
9190
9191
9192 CFLAGS="$_ax_glu_saved_flag_cflags"
9193
9194
9195 LIBS="$_ax_glu_saved_flag_libs"
9196
9197
9198
9199
9200 ac_ext=c
9201 ac_cpp='$CPP $CPPFLAGS'
9202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9205
9206
9207
9208 elif test $pkg_failed = untried; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9211
9212
9213 ac_ext=c
9214 ac_cpp='$CPP $CPPFLAGS'
9215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9218
9219
9220
9221 _ax_glu_saved_flag_cflags="$CFLAGS"
9222 CFLAGS="$GLU_CFLAGS $CFLAGS"
9223
9224
9225 _ax_glu_saved_flag_libs="$LIBS"
9226 LIBS="$GLU_LIBS $LIBS"
9227
9228
9229
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
9232 $as_echo_n "checking for library containing gluBeginCurve... " >&6; }
9233 if ${ac_cv_search_gluBeginCurve+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 ac_func_search_save_LIBS=$LIBS
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9239
9240 /* Override any GCC internal prototype to avoid an error.
9241 Use char because int might match the return type of a GCC
9242 builtin and then its argument prototype would still apply. */
9243 #ifdef __cplusplus
9244 extern "C"
9245 #endif
9246 char gluBeginCurve ();
9247 int
9248 main ()
9249 {
9250 return gluBeginCurve ();
9251 ;
9252 return 0;
9253 }
9254 _ACEOF
9255 for ac_lib in '' GLU glu MesaGLU; do
9256 if test -z "$ac_lib"; then
9257 ac_res="none required"
9258 else
9259 ac_res=-l$ac_lib
9260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9261 fi
9262 if ac_fn_c_try_link "$LINENO"; then :
9263 ac_cv_search_gluBeginCurve=$ac_res
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext
9267 if ${ac_cv_search_gluBeginCurve+:} false; then :
9268 break
9269 fi
9270 done
9271 if ${ac_cv_search_gluBeginCurve+:} false; then :
9272
9273 else
9274 ac_cv_search_gluBeginCurve=no
9275 fi
9276 rm conftest.$ac_ext
9277 LIBS=$ac_func_search_save_LIBS
9278 fi
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
9280 $as_echo "$ac_cv_search_gluBeginCurve" >&6; }
9281 ac_res=$ac_cv_search_gluBeginCurve
9282 if test "$ac_res" != no; then :
9283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9284 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
9285 fi
9286
9287
9288
9289
9290 CFLAGS="$_ax_glu_saved_flag_cflags"
9291
9292
9293 LIBS="$_ax_glu_saved_flag_libs"
9294
9295
9296
9297
9298 ac_ext=c
9299 ac_cpp='$CPP $CPPFLAGS'
9300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304
9305
9306 else
9307 GLU_CFLAGS=$pkg_cv_GLU_CFLAGS
9308 GLU_LIBS=$pkg_cv_GLU_LIBS
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9310 $as_echo "yes" >&6; }
9311
9312 fi
9313 ;;
9314 esac
9315
9316 case $host in #(
9317 *-darwin*) :
9318 if test "X$with_xquartz_gl" = "Xno"; then :
9319
9320
9321 ac_ext=c
9322 ac_cpp='$CPP $CPPFLAGS'
9323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9326
9327
9328
9329 _ax_glu_saved_flag_cflags="$CFLAGS"
9330 CFLAGS="$GLU_CFLAGS $CFLAGS"
9331
9332
9333
9334 for ac_header in OpenGL/glu.h
9335 do :
9336 ac_fn_c_check_header_compile "$LINENO" "OpenGL/glu.h" "ac_cv_header_OpenGL_glu_h" "
9337 $ac_includes_default
9338
9339 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9340 # include <windows.h>
9341 # endif
9342
9343
9344 "
9345 if test "x$ac_cv_header_OpenGL_glu_h" = xyes; then :
9346 cat >>confdefs.h <<_ACEOF
9347 #define HAVE_OPENGL_GLU_H 1
9348 _ACEOF
9349 ax_check_glu_have_headers="yes";
9350 fi
9351
9352 done
9353
9354
9355
9356
9357 CFLAGS="$_ax_glu_saved_flag_cflags"
9358
9359
9360
9361 ac_ext=c
9362 ac_cpp='$CPP $CPPFLAGS'
9363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9366
9367
9368
9369 else
9370
9371
9372 ac_ext=c
9373 ac_cpp='$CPP $CPPFLAGS'
9374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9377
9378
9379
9380 _ax_glu_saved_flag_cflags="$CFLAGS"
9381 CFLAGS="$GLU_CFLAGS $CFLAGS"
9382
9383
9384
9385 for ac_header in GL/glu.h
9386 do :
9387 ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "
9388 $ac_includes_default
9389
9390 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9391 # include <windows.h>
9392 # endif
9393
9394
9395 "
9396 if test "x$ac_cv_header_GL_glu_h" = xyes; then :
9397 cat >>confdefs.h <<_ACEOF
9398 #define HAVE_GL_GLU_H 1
9399 _ACEOF
9400 ax_check_glu_have_headers="yes";
9401 fi
9402
9403 done
9404
9405
9406
9407
9408 CFLAGS="$_ax_glu_saved_flag_cflags"
9409
9410
9411
9412 ac_ext=c
9413 ac_cpp='$CPP $CPPFLAGS'
9414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9417
9418
9419
9420
9421 fi ;; #(
9422 *) :
9423
9424
9425 ac_ext=c
9426 ac_cpp='$CPP $CPPFLAGS'
9427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9430
9431
9432
9433 _ax_glu_saved_flag_cflags="$CFLAGS"
9434 CFLAGS="$GLU_CFLAGS $CFLAGS"
9435
9436
9437
9438 for ac_header in GL/glu.h
9439 do :
9440 ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "
9441 $ac_includes_default
9442
9443 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9444 # include <windows.h>
9445 # endif
9446
9447
9448 "
9449 if test "x$ac_cv_header_GL_glu_h" = xyes; then :
9450 cat >>confdefs.h <<_ACEOF
9451 #define HAVE_GL_GLU_H 1
9452 _ACEOF
9453 ax_check_glu_have_headers="yes";
9454 fi
9455
9456 done
9457
9458
9459
9460
9461 CFLAGS="$_ax_glu_saved_flag_cflags"
9462
9463
9464
9465 ac_ext=c
9466 ac_cpp='$CPP $CPPFLAGS'
9467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9470
9471
9472 ;;
9473 esac
9474
9475 if test "X$ax_check_glu_have_headers" = "Xyes"; then :
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL Utility (GLU) program" >&5
9477 $as_echo_n "checking for compiling a minimal OpenGL Utility (GLU) program... " >&6; }
9478 if ${ax_cv_check_glu_compile+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481
9482 ac_ext=c
9483 ac_cpp='$CPP $CPPFLAGS'
9484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9487
9488
9489
9490 _ax_glu_saved_flag_cflags="$CFLAGS"
9491 CFLAGS="$GLU_CFLAGS $CFLAGS"
9492
9493
9494
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497
9498 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9499 # include <windows.h>
9500 # endif
9501 # ifdef HAVE_GL_GLU_H
9502 # include <GL/glu.h>
9503 # elif defined(HAVE_OPENGL_GLU_H)
9504 # include <OpenGL/glu.h>
9505 # else
9506 # error no glu.h
9507 # endif
9508
9509 int
9510 main ()
9511 {
9512 gluBeginCurve(0)
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 if ac_fn_c_try_compile "$LINENO"; then :
9518 ax_cv_check_glu_compile="yes"
9519 else
9520 ax_cv_check_glu_compile="no"
9521 fi
9522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523
9524
9525
9526 CFLAGS="$_ax_glu_saved_flag_cflags"
9527
9528
9529
9530 ac_ext=c
9531 ac_cpp='$CPP $CPPFLAGS'
9532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9535
9536
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_compile" >&5
9539 $as_echo "$ax_cv_check_glu_compile" >&6; }
9540
9541 fi
9542
9543 if test "X$ax_cv_check_glu_compile" = "Xyes"; then :
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal GLU program" >&5
9545 $as_echo_n "checking for linking a minimal GLU program... " >&6; }
9546 if ${ax_cv_check_glu_link+:} false; then :
9547 $as_echo_n "(cached) " >&6
9548 else
9549
9550 ac_ext=c
9551 ac_cpp='$CPP $CPPFLAGS'
9552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9555
9556
9557
9558 _ax_glu_saved_flag_cflags="$CFLAGS"
9559 CFLAGS="$GLU_CFLAGS $CFLAGS"
9560
9561
9562 _ax_glu_saved_flag_libs="$LIBS"
9563 LIBS="$GLU_LIBS $LIBS"
9564
9565
9566
9567
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570
9571 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9572 # include <windows.h>
9573 # endif
9574 # ifdef HAVE_GL_GLU_H
9575 # include <GL/glu.h>
9576 # elif defined(HAVE_OPENGL_GLU_H)
9577 # include <OpenGL/glu.h>
9578 # else
9579 # error no glu.h
9580 # endif
9581
9582 int
9583 main ()
9584 {
9585 gluBeginCurve(0)
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"; then :
9591 ax_cv_check_glu_link="yes"
9592 else
9593 ax_cv_check_glu_link="no"
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597
9598
9599
9600 CFLAGS="$_ax_glu_saved_flag_cflags"
9601
9602
9603 LIBS="$_ax_glu_saved_flag_libs"
9604
9605
9606
9607
9608 ac_ext=c
9609 ac_cpp='$CPP $CPPFLAGS'
9610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9613
9614
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_link" >&5
9617 $as_echo "$ax_cv_check_glu_link" >&6; }
9618
9619 fi
9620
9621 #
9622 # Some versions of Mac OS X include a broken interpretation of the GLU
9623 # tesselation callback function signature.
9624 if test "X$ax_cv_check_glu_link" = "Xyes"; then :
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GLU varargs tesselator is using non-standard form" >&5
9626 $as_echo_n "checking if GLU varargs tesselator is using non-standard form... " >&6; }
9627 if ${ax_cv_varargs_glu_tesscb+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630
9631 ac_ext=cpp
9632 ac_cpp='$CXXCPP $CPPFLAGS'
9633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9636
9637
9638
9639 _ax_glu_saved_flag_cflags="$CFLAGS"
9640 CFLAGS="$GLU_CFLAGS $CFLAGS"
9641
9642
9643
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646
9647 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9648 # include <windows.h>
9649 # endif
9650 # ifdef HAVE_GL_GLU_H
9651 # include <GL/glu.h>
9652 # elif defined(HAVE_OPENGL_GLU_H)
9653 # include <OpenGL/glu.h>
9654 # else
9655 # error no glu.h
9656 # endif
9657
9658 int
9659 main ()
9660 {
9661 GLvoid (*func)(...); gluTessCallback(0, 0, func)
9662 ;
9663 return 0;
9664 }
9665
9666 _ACEOF
9667 if ac_fn_cxx_try_compile "$LINENO"; then :
9668 ax_cv_varargs_glu_tesscb="yes"
9669 else
9670 ax_cv_varargs_glu_tesscb="no"
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673
9674
9675
9676 CFLAGS="$_ax_glu_saved_flag_cflags"
9677
9678
9679
9680 ac_ext=c
9681 ac_cpp='$CPP $CPPFLAGS'
9682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685
9686
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
9689 $as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
9690 if test "X$ax_cv_varargs_glu_tesscb" = "yes"; then :
9691
9692 $as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
9693
9694 fi
9695
9696 fi
9697
9698 if test "X$ax_cv_check_glu_link" = "Xyes"; then :
9699
9700 $as_echo "#define HAVE_GLU 1" >>confdefs.h
9701
9702 CFLAGS="$GLU_CFLAGS $CFLAGS"
9703 LIBS="$GLU_LIBS $LIBS"
9704 else
9705 as_fn_error $? "Could not find a valid GLU implementation" "$LINENO" 5
9706
9707 fi
9708
9709
9710 # Need a recent version of FTGL or GLC for text rendering
9711 # Check whether --enable-glc was given.
9712 if test "${enable_glc+set}" = set; then :
9713 enableval=$enable_glc;
9714 fi
9715
9716 # Check whether --enable-ftgl was given.
9717 if test "${enable_ftgl+set}" = set; then :
9718 enableval=$enable_ftgl;
9719 fi
9720
9721
9722 if test "x$enable_glc" != xno ; then
9723 for ac_header in GL/glc.h
9724 do :
9725 ac_fn_c_check_header_mongrel "$LINENO" "GL/glc.h" "ac_cv_header_GL_glc_h" "$ac_includes_default"
9726 if test "x$ac_cv_header_GL_glc_h" = xyes; then :
9727 cat >>confdefs.h <<_ACEOF
9728 #define HAVE_GL_GLC_H 1
9729 _ACEOF
9730 HAVE_GL_GLC_H=yes
9731 else
9732 HAVE_GL_GLC_H=no
9733 fi
9734
9735 done
9736
9737 for ac_header in QuesoGLC/glc.h
9738 do :
9739 ac_fn_c_check_header_mongrel "$LINENO" "QuesoGLC/glc.h" "ac_cv_header_QuesoGLC_glc_h" "$ac_includes_default"
9740 if test "x$ac_cv_header_QuesoGLC_glc_h" = xyes; then :
9741 cat >>confdefs.h <<_ACEOF
9742 #define HAVE_QUESOGLC_GLC_H 1
9743 _ACEOF
9744 HAVE_QUESOGL_GLC_H=yes
9745 else
9746 HAVE_QUESOGL_GLC_H=no
9747 fi
9748
9749 done
9750
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glcGenContext in -lGLC" >&5
9752 $as_echo_n "checking for glcGenContext in -lGLC... " >&6; }
9753 if ${ac_cv_lib_GLC_glcGenContext+:} false; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 ac_check_lib_save_LIBS=$LIBS
9757 LIBS="-lGLC $LIBS"
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 char glcGenContext ();
9768 int
9769 main ()
9770 {
9771 return glcGenContext ();
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 if ac_fn_c_try_link "$LINENO"; then :
9777 ac_cv_lib_GLC_glcGenContext=yes
9778 else
9779 ac_cv_lib_GLC_glcGenContext=no
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_lib_save_LIBS
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLC_glcGenContext" >&5
9786 $as_echo "$ac_cv_lib_GLC_glcGenContext" >&6; }
9787 if test "x$ac_cv_lib_GLC_glcGenContext" = xyes; then :
9788 HAVE_GLC_LIB=yes
9789 else
9790 HAVE_GLC_LIB=no
9791 fi
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glcGenContext in -lglc32" >&5
9794 $as_echo_n "checking for glcGenContext in -lglc32... " >&6; }
9795 if ${ac_cv_lib_glc32_glcGenContext+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 ac_check_lib_save_LIBS=$LIBS
9799 LIBS="-lglc32 $LIBS"
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char glcGenContext ();
9810 int
9811 main ()
9812 {
9813 return glcGenContext ();
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 if ac_fn_c_try_link "$LINENO"; then :
9819 ac_cv_lib_glc32_glcGenContext=yes
9820 else
9821 ac_cv_lib_glc32_glcGenContext=no
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glc32_glcGenContext" >&5
9828 $as_echo "$ac_cv_lib_glc32_glcGenContext" >&6; }
9829 if test "x$ac_cv_lib_glc32_glcGenContext" = xyes; then :
9830 HAVE_GLC32_LIB=yes
9831 else
9832 HAVE_GLC32_LIB=no
9833 fi
9834
9835 fi
9836
9837 if test "x$enable_ftgl" != xno ; then
9838
9839 pkg_failed=no
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTGL" >&5
9841 $as_echo_n "checking for FTGL... " >&6; }
9842
9843 if test -n "$FTGL_CFLAGS"; then
9844 pkg_cv_FTGL_CFLAGS="$FTGL_CFLAGS"
9845 elif test -n "$PKG_CONFIG"; then
9846 if test -n "$PKG_CONFIG" && \
9847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ftgl >= 2.1.3\""; } >&5
9848 ($PKG_CONFIG --exists --print-errors "ftgl >= 2.1.3") 2>&5
9849 ac_status=$?
9850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9851 test $ac_status = 0; }; then
9852 pkg_cv_FTGL_CFLAGS=`$PKG_CONFIG --cflags "ftgl >= 2.1.3" 2>/dev/null`
9853 test "x$?" != "x0" && pkg_failed=yes
9854 else
9855 pkg_failed=yes
9856 fi
9857 else
9858 pkg_failed=untried
9859 fi
9860 if test -n "$FTGL_LIBS"; then
9861 pkg_cv_FTGL_LIBS="$FTGL_LIBS"
9862 elif test -n "$PKG_CONFIG"; then
9863 if test -n "$PKG_CONFIG" && \
9864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ftgl >= 2.1.3\""; } >&5
9865 ($PKG_CONFIG --exists --print-errors "ftgl >= 2.1.3") 2>&5
9866 ac_status=$?
9867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9868 test $ac_status = 0; }; then
9869 pkg_cv_FTGL_LIBS=`$PKG_CONFIG --libs "ftgl >= 2.1.3" 2>/dev/null`
9870 test "x$?" != "x0" && pkg_failed=yes
9871 else
9872 pkg_failed=yes
9873 fi
9874 else
9875 pkg_failed=untried
9876 fi
9877
9878
9879
9880 if test $pkg_failed = yes; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9883
9884 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9885 _pkg_short_errors_supported=yes
9886 else
9887 _pkg_short_errors_supported=no
9888 fi
9889 if test $_pkg_short_errors_supported = yes; then
9890 FTGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ftgl >= 2.1.3" 2>&1`
9891 else
9892 FTGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ftgl >= 2.1.3" 2>&1`
9893 fi
9894 # Put the nasty error message in config.log where it belongs
9895 echo "$FTGL_PKG_ERRORS" >&5
9896
9897 HAVE_FTGL=no
9898 elif test $pkg_failed = untried; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9901 HAVE_FTGL=no
9902 else
9903 FTGL_CFLAGS=$pkg_cv_FTGL_CFLAGS
9904 FTGL_LIBS=$pkg_cv_FTGL_LIBS
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9906 $as_echo "yes" >&6; }
9907 HAVE_FTGL=yes
9908 fi
9909 fi
9910
9911 # Allow specifying a hard-coded font file at build time
9912
9913 # Check whether --with-font-path was given.
9914 if test "${with_font_path+set}" = set; then :
9915 withval=$with_font_path; FONT_PATH="$withval"
9916 else
9917 FONT_PATH=""
9918 fi
9919
9920
9921 if test "x$HAVE_FTGL" = xyes -a "x$enable_ftgl" != xno ; then
9922 # Need fontconfig for finding font files when using FTGL
9923
9924 pkg_failed=no
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
9926 $as_echo_n "checking for FONTCONFIG... " >&6; }
9927
9928 if test -n "$FONTCONFIG_CFLAGS"; then
9929 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
9930 elif test -n "$PKG_CONFIG"; then
9931 if test -n "$PKG_CONFIG" && \
9932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
9933 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
9934 ac_status=$?
9935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9936 test $ac_status = 0; }; then
9937 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
9938 test "x$?" != "x0" && pkg_failed=yes
9939 else
9940 pkg_failed=yes
9941 fi
9942 else
9943 pkg_failed=untried
9944 fi
9945 if test -n "$FONTCONFIG_LIBS"; then
9946 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
9947 elif test -n "$PKG_CONFIG"; then
9948 if test -n "$PKG_CONFIG" && \
9949 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
9950 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
9951 ac_status=$?
9952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9953 test $ac_status = 0; }; then
9954 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
9955 test "x$?" != "x0" && pkg_failed=yes
9956 else
9957 pkg_failed=yes
9958 fi
9959 else
9960 pkg_failed=untried
9961 fi
9962
9963
9964
9965 if test $pkg_failed = yes; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9968
9969 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9970 _pkg_short_errors_supported=yes
9971 else
9972 _pkg_short_errors_supported=no
9973 fi
9974 if test $_pkg_short_errors_supported = yes; then
9975 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
9976 else
9977 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
9978 fi
9979 # Put the nasty error message in config.log where it belongs
9980 echo "$FONTCONFIG_PKG_ERRORS" >&5
9981
9982 HAVE_FONTCONFIG=no
9983 elif test $pkg_failed = untried; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9986 HAVE_FONTCONFIG=no
9987 else
9988 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
9989 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9991 $as_echo "yes" >&6; }
9992 HAVE_FONTCONFIG=yes
9993 fi
9994 fi
9995
9996 # Allow specifying a hard-coded font name at build time
9997
9998 # Check whether --with-font-name was given.
9999 if test "${with_font_name+set}" = set; then :
10000 withval=$with_font_name; FONT_NAME="$withval"
10001 else
10002 FONT_NAME=""
10003 fi
10004
10005
10006 # Need SDL or GLUT for windowing
10007 # Check whether --enable-sdl2 was given.
10008 if test "${enable_sdl2+set}" = set; then :
10009 enableval=$enable_sdl2;
10010 fi
10011
10012 # Check whether --enable-sdl was given.
10013 if test "${enable_sdl+set}" = set; then :
10014 enableval=$enable_sdl;
10015 fi
10016
10017 # Check whether --enable-glut was given.
10018 if test "${enable_glut+set}" = set; then :
10019 enableval=$enable_glut;
10020 fi
10021
10022
10023 if test "x$enable_sdl2" != xno ; then
10024
10025 pkg_failed=no
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2" >&5
10027 $as_echo_n "checking for SDL2... " >&6; }
10028
10029 if test -n "$SDL2_CFLAGS"; then
10030 pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS"
10031 elif test -n "$PKG_CONFIG"; then
10032 if test -n "$PKG_CONFIG" && \
10033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
10034 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
10035 ac_status=$?
10036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10037 test $ac_status = 0; }; then
10038 pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
10039 test "x$?" != "x0" && pkg_failed=yes
10040 else
10041 pkg_failed=yes
10042 fi
10043 else
10044 pkg_failed=untried
10045 fi
10046 if test -n "$SDL2_LIBS"; then
10047 pkg_cv_SDL2_LIBS="$SDL2_LIBS"
10048 elif test -n "$PKG_CONFIG"; then
10049 if test -n "$PKG_CONFIG" && \
10050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
10051 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
10052 ac_status=$?
10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; }; then
10055 pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
10056 test "x$?" != "x0" && pkg_failed=yes
10057 else
10058 pkg_failed=yes
10059 fi
10060 else
10061 pkg_failed=untried
10062 fi
10063
10064
10065
10066 if test $pkg_failed = yes; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10069
10070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10071 _pkg_short_errors_supported=yes
10072 else
10073 _pkg_short_errors_supported=no
10074 fi
10075 if test $_pkg_short_errors_supported = yes; then
10076 SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
10077 else
10078 SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
10079 fi
10080 # Put the nasty error message in config.log where it belongs
10081 echo "$SDL2_PKG_ERRORS" >&5
10082
10083 HAVE_SDL2=no
10084 elif test $pkg_failed = untried; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10087 HAVE_SDL2=no
10088 else
10089 SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS
10090 SDL2_LIBS=$pkg_cv_SDL2_LIBS
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10092 $as_echo "yes" >&6; }
10093 HAVE_SDL2=yes
10094 fi
10095 fi
10096
10097 if test "x$enable_sdl" != xno ; then
10098
10099 pkg_failed=no
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
10101 $as_echo_n "checking for SDL... " >&6; }
10102
10103 if test -n "$SDL_CFLAGS"; then
10104 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10105 elif test -n "$PKG_CONFIG"; then
10106 if test -n "$PKG_CONFIG" && \
10107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.1.6\""; } >&5
10108 ($PKG_CONFIG --exists --print-errors "sdl >= 1.1.6") 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10111 test $ac_status = 0; }; then
10112 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.1.6" 2>/dev/null`
10113 test "x$?" != "x0" && pkg_failed=yes
10114 else
10115 pkg_failed=yes
10116 fi
10117 else
10118 pkg_failed=untried
10119 fi
10120 if test -n "$SDL_LIBS"; then
10121 pkg_cv_SDL_LIBS="$SDL_LIBS"
10122 elif test -n "$PKG_CONFIG"; then
10123 if test -n "$PKG_CONFIG" && \
10124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.1.6\""; } >&5
10125 ($PKG_CONFIG --exists --print-errors "sdl >= 1.1.6") 2>&5
10126 ac_status=$?
10127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10128 test $ac_status = 0; }; then
10129 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.1.6" 2>/dev/null`
10130 test "x$?" != "x0" && pkg_failed=yes
10131 else
10132 pkg_failed=yes
10133 fi
10134 else
10135 pkg_failed=untried
10136 fi
10137
10138
10139
10140 if test $pkg_failed = yes; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10143
10144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10145 _pkg_short_errors_supported=yes
10146 else
10147 _pkg_short_errors_supported=no
10148 fi
10149 if test $_pkg_short_errors_supported = yes; then
10150 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl >= 1.1.6" 2>&1`
10151 else
10152 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl >= 1.1.6" 2>&1`
10153 fi
10154 # Put the nasty error message in config.log where it belongs
10155 echo "$SDL_PKG_ERRORS" >&5
10156
10157 HAVE_SDL=no
10158 elif test $pkg_failed = untried; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10161 HAVE_SDL=no
10162 else
10163 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10164 SDL_LIBS=$pkg_cv_SDL_LIBS
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10166 $as_echo "yes" >&6; }
10167 HAVE_SDL=yes
10168 fi
10169 fi
10170
10171 if test "x$enable_glut" != xno ; then
10172
10173
10174
10175
10176
10177 case ${host} in #(
10178 *-darwin*) :
10179 if test "x$with_xquartz_gl" != "xno"; then :
10180 GLUT_LIBS="${GLUT_LIBS:--lGLUT}"
10181 else
10182 GLUT_LIBS="${GLUT_LIBS:--framework GLUT}"
10183 fi ;; #(
10184 *-cygwin*|*-mingw*) :
10185
10186
10187
10188
10189
10190 _ax_glut_saved_flag_cflags="$CFLAGS"
10191 CFLAGS="$GLUT_CFLAGS $CFLAGS"
10192
10193
10194 _ax_glut_saved_flag_libs="$LIBS"
10195 LIBS="$GLUT_LIBS $LIBS"
10196
10197
10198
10199 ac_ext=c
10200 ac_cpp='$CPP $CPPFLAGS'
10201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10204
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glutMainLoop" >&5
10207 $as_echo_n "checking for library containing glutMainLoop... " >&6; }
10208 if ${ac_cv_search_glutMainLoop+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 ac_func_search_save_LIBS=$LIBS
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char glutMainLoop ();
10222 int
10223 main ()
10224 {
10225 return glutMainLoop ();
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 for ac_lib in '' glut32 glut; do
10231 if test -z "$ac_lib"; then
10232 ac_res="none required"
10233 else
10234 ac_res=-l$ac_lib
10235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10236 fi
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 ac_cv_search_glutMainLoop=$ac_res
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext
10242 if ${ac_cv_search_glutMainLoop+:} false; then :
10243 break
10244 fi
10245 done
10246 if ${ac_cv_search_glutMainLoop+:} false; then :
10247
10248 else
10249 ac_cv_search_glutMainLoop=no
10250 fi
10251 rm conftest.$ac_ext
10252 LIBS=$ac_func_search_save_LIBS
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glutMainLoop" >&5
10255 $as_echo "$ac_cv_search_glutMainLoop" >&6; }
10256 ac_res=$ac_cv_search_glutMainLoop
10257 if test "$ac_res" != no; then :
10258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10259 GLUT_LIBS="${GLUT_LIBS:-$ac_cv_search_glutMainLoop}"
10260 fi
10261
10262
10263
10264
10265 CFLAGS="$_ax_glut_saved_flag_cflags"
10266
10267
10268 LIBS="$_ax_glut_saved_flag_libs"
10269
10270
10271
10272
10273 ac_ext=c
10274 ac_cpp='$CPP $CPPFLAGS'
10275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10278
10279
10280
10281 for ac_header in windows.h
10282 do :
10283 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10284 if test "x$ac_cv_header_windows_h" = xyes; then :
10285 cat >>confdefs.h <<_ACEOF
10286 #define HAVE_WINDOWS_H 1
10287 _ACEOF
10288
10289 fi
10290
10291 done
10292
10293 ;; #(
10294 *) :
10295
10296
10297
10298
10299 _ax_glut_saved_flag_cflags="$CFLAGS"
10300 CFLAGS="$GLUT_CFLAGS $CFLAGS"
10301
10302
10303 _ax_glut_saved_flag_libs="$LIBS"
10304 LIBS="$GLUT_LIBS $LIBS"
10305
10306
10307
10308 ac_ext=c
10309 ac_cpp='$CPP $CPPFLAGS'
10310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10313
10314
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glutMainLoop" >&5
10316 $as_echo_n "checking for library containing glutMainLoop... " >&6; }
10317 if ${ac_cv_search_glutMainLoop+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 ac_func_search_save_LIBS=$LIBS
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 char glutMainLoop ();
10331 int
10332 main ()
10333 {
10334 return glutMainLoop ();
10335 ;
10336 return 0;
10337 }
10338 _ACEOF
10339 for ac_lib in '' glut; do
10340 if test -z "$ac_lib"; then
10341 ac_res="none required"
10342 else
10343 ac_res=-l$ac_lib
10344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10345 fi
10346 if ac_fn_c_try_link "$LINENO"; then :
10347 ac_cv_search_glutMainLoop=$ac_res
10348 fi
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext
10351 if ${ac_cv_search_glutMainLoop+:} false; then :
10352 break
10353 fi
10354 done
10355 if ${ac_cv_search_glutMainLoop+:} false; then :
10356
10357 else
10358 ac_cv_search_glutMainLoop=no
10359 fi
10360 rm conftest.$ac_ext
10361 LIBS=$ac_func_search_save_LIBS
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glutMainLoop" >&5
10364 $as_echo "$ac_cv_search_glutMainLoop" >&6; }
10365 ac_res=$ac_cv_search_glutMainLoop
10366 if test "$ac_res" != no; then :
10367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10368 GLUT_LIBS="${GLUT_LIBS:-$ac_cv_search_glutMainLoop}"
10369 fi
10370
10371
10372
10373
10374 CFLAGS="$_ax_glut_saved_flag_cflags"
10375
10376
10377 LIBS="$_ax_glut_saved_flag_libs"
10378
10379
10380
10381
10382 ac_ext=c
10383 ac_cpp='$CPP $CPPFLAGS'
10384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10387
10388
10389
10390 ;;
10391 esac
10392 case ${host} in #(
10393 *-darwin*) :
10394 if test "x$with_xquartz_gl" = "xno"; then :
10395
10396
10397
10398
10399 _ax_glut_saved_flag_cflags="$CFLAGS"
10400 CFLAGS="$GLUT_CFLAGS $CFLAGS"
10401
10402
10403 ac_ext=c
10404 ac_cpp='$CPP $CPPFLAGS'
10405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10408
10409
10410 for ac_header in GLUT/glut.h
10411 do :
10412 ac_fn_c_check_header_mongrel "$LINENO" "GLUT/glut.h" "ac_cv_header_GLUT_glut_h" "$ac_includes_default"
10413 if test "x$ac_cv_header_GLUT_glut_h" = xyes; then :
10414 cat >>confdefs.h <<_ACEOF
10415 #define HAVE_GLUT_GLUT_H 1
10416 _ACEOF
10417 ax_check_glut_have_headers=yes
10418 fi
10419
10420 done
10421
10422
10423
10424
10425 CFLAGS="$_ax_glut_saved_flag_cflags"
10426
10427
10428
10429 ac_ext=c
10430 ac_cpp='$CPP $CPPFLAGS'
10431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10434
10435
10436
10437 else
10438
10439
10440
10441
10442 _ax_glut_saved_flag_cflags="$CFLAGS"
10443 CFLAGS="$GLUT_CFLAGS $CFLAGS"
10444
10445
10446 ac_ext=c
10447 ac_cpp='$CPP $CPPFLAGS'
10448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10451
10452
10453 for ac_header in GL/glut.h
10454 do :
10455 ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
10456 if test "x$ac_cv_header_GL_glut_h" = xyes; then :
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_GL_GLUT_H 1
10459 _ACEOF
10460 ax_check_glut_have_headers=yes
10461 fi
10462
10463 done
10464
10465
10466
10467
10468 CFLAGS="$_ax_glut_saved_flag_cflags"
10469
10470
10471
10472 ac_ext=c
10473 ac_cpp='$CPP $CPPFLAGS'
10474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10477
10478
10479
10480
10481 fi ;; #(
10482 *) :
10483
10484
10485
10486
10487 _ax_glut_saved_flag_cflags="$CFLAGS"
10488 CFLAGS="$GLUT_CFLAGS $CFLAGS"
10489
10490
10491 ac_ext=c
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497
10498 for ac_header in GL/glut.h
10499 do :
10500 ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
10501 if test "x$ac_cv_header_GL_glut_h" = xyes; then :
10502 cat >>confdefs.h <<_ACEOF
10503 #define HAVE_GL_GLUT_H 1
10504 _ACEOF
10505 ax_check_glut_have_headers=yes
10506 fi
10507
10508 done
10509
10510
10511
10512
10513 CFLAGS="$_ax_glut_saved_flag_cflags"
10514
10515
10516
10517 ac_ext=c
10518 ac_cpp='$CPP $CPPFLAGS'
10519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10522
10523
10524 ;;
10525 esac
10526
10527 if test "X$ax_check_glut_have_headers" = "Xyes"; then :
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal GLUT program" >&5
10529 $as_echo_n "checking for compiling a minimal GLUT program... " >&6; }
10530 if ${ax_cv_check_glut_compile+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533
10534
10535
10536 _ax_glut_saved_flag_cflags="$CFLAGS"
10537 CFLAGS="$GLUT_CFLAGS $CFLAGS"
10538
10539
10540 ac_ext=c
10541 ac_cpp='$CPP $CPPFLAGS'
10542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10545
10546
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549
10550 # if HAVE_WINDOWS_H && defined(_WIN32)
10551 # include <windows.h>
10552 # endif
10553 # ifdef HAVE_GL_GLUT_H
10554 # include <GL/glut.h>
10555 # elif defined(HAVE_GLUT_GLUT_H)
10556 # include <GLUT/glut.h>
10557 # else
10558 # error no glut.h
10559 # endif
10560 int
10561 main ()
10562 {
10563 glutMainLoop()
10564 ;
10565 return 0;
10566 }
10567 _ACEOF
10568 if ac_fn_c_try_compile "$LINENO"; then :
10569 ax_cv_check_glut_compile="yes"
10570 else
10571 ax_cv_check_glut_compile="no"
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574
10575
10576
10577 CFLAGS="$_ax_glut_saved_flag_cflags"
10578
10579
10580
10581 ac_ext=c
10582 ac_cpp='$CPP $CPPFLAGS'
10583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586
10587
10588
10589 fi
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_compile" >&5
10591 $as_echo "$ax_cv_check_glut_compile" >&6; }
10592
10593 fi
10594
10595 if test "X$ax_cv_check_glut_compile" = "Xyes"; then :
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal GLUT program" >&5
10597 $as_echo_n "checking for linking a minimal GLUT program... " >&6; }
10598 if ${ax_cv_check_glut_link+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601
10602
10603
10604 _ax_glut_saved_flag_cflags="$CFLAGS"
10605 CFLAGS="$GLUT_CFLAGS $CFLAGS"
10606
10607
10608 _ax_glut_saved_flag_libs="$LIBS"
10609 LIBS="$GLUT_LIBS $LIBS"
10610
10611
10612
10613 ac_ext=c
10614 ac_cpp='$CPP $CPPFLAGS'
10615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618
10619
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622
10623 # if HAVE_WINDOWS_H && defined(_WIN32)
10624 # include <windows.h>
10625 # endif
10626 # ifdef HAVE_GL_GLUT_H
10627 # include <GL/glut.h>
10628 # elif defined(HAVE_GLUT_GLUT_H)
10629 # include <GLUT/glut.h>
10630 # else
10631 # error no glut.h
10632 # endif
10633 int
10634 main ()
10635 {
10636 glutMainLoop()
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ax_cv_check_glut_link="yes"
10643 else
10644 ax_cv_check_glut_link="no"
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648
10649
10650
10651 CFLAGS="$_ax_glut_saved_flag_cflags"
10652
10653
10654 LIBS="$_ax_glut_saved_flag_libs"
10655
10656
10657
10658
10659 ac_ext=c
10660 ac_cpp='$CPP $CPPFLAGS'
10661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10664
10665
10666
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_link" >&5
10669 $as_echo "$ax_cv_check_glut_link" >&6; }
10670
10671 fi
10672
10673 if test "X$ax_cv_check_glut_link" = "Xyes"; then :
10674
10675 $as_echo "#define HAVE_GLUT 1" >>confdefs.h
10676
10677 no_glut=no
10678
10679 else
10680 no_glut=yes
10681
10682 fi
10683
10684
10685 fi
10686
10687 # Need OpenAL or SDL Mixer for sound
10688 # Check whether --enable-openal was given.
10689 if test "${enable_openal+set}" = set; then :
10690 enableval=$enable_openal;
10691 fi
10692
10693 # Check whether --enable-sdl2mixer was given.
10694 if test "${enable_sdl2mixer+set}" = set; then :
10695 enableval=$enable_sdl2mixer;
10696 fi
10697
10698 # Check whether --enable-sdlmixer was given.
10699 if test "${enable_sdlmixer+set}" = set; then :
10700 enableval=$enable_sdlmixer;
10701 fi
10702
10703
10704 if test "x$enable_openal" != xno ; then
10705
10706 pkg_failed=no
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENAL" >&5
10708 $as_echo_n "checking for OPENAL... " >&6; }
10709
10710 if test -n "$OPENAL_CFLAGS"; then
10711 pkg_cv_OPENAL_CFLAGS="$OPENAL_CFLAGS"
10712 elif test -n "$PKG_CONFIG"; then
10713 if test -n "$PKG_CONFIG" && \
10714 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal\""; } >&5
10715 ($PKG_CONFIG --exists --print-errors "openal") 2>&5
10716 ac_status=$?
10717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10718 test $ac_status = 0; }; then
10719 pkg_cv_OPENAL_CFLAGS=`$PKG_CONFIG --cflags "openal" 2>/dev/null`
10720 test "x$?" != "x0" && pkg_failed=yes
10721 else
10722 pkg_failed=yes
10723 fi
10724 else
10725 pkg_failed=untried
10726 fi
10727 if test -n "$OPENAL_LIBS"; then
10728 pkg_cv_OPENAL_LIBS="$OPENAL_LIBS"
10729 elif test -n "$PKG_CONFIG"; then
10730 if test -n "$PKG_CONFIG" && \
10731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal\""; } >&5
10732 ($PKG_CONFIG --exists --print-errors "openal") 2>&5
10733 ac_status=$?
10734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10735 test $ac_status = 0; }; then
10736 pkg_cv_OPENAL_LIBS=`$PKG_CONFIG --libs "openal" 2>/dev/null`
10737 test "x$?" != "x0" && pkg_failed=yes
10738 else
10739 pkg_failed=yes
10740 fi
10741 else
10742 pkg_failed=untried
10743 fi
10744
10745
10746
10747 if test $pkg_failed = yes; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750
10751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10752 _pkg_short_errors_supported=yes
10753 else
10754 _pkg_short_errors_supported=no
10755 fi
10756 if test $_pkg_short_errors_supported = yes; then
10757 OPENAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openal" 2>&1`
10758 else
10759 OPENAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openal" 2>&1`
10760 fi
10761 # Put the nasty error message in config.log where it belongs
10762 echo "$OPENAL_PKG_ERRORS" >&5
10763
10764 HAVE_OPENAL=no
10765 elif test $pkg_failed = untried; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10768 HAVE_OPENAL=no
10769 else
10770 OPENAL_CFLAGS=$pkg_cv_OPENAL_CFLAGS
10771 OPENAL_LIBS=$pkg_cv_OPENAL_LIBS
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773 $as_echo "yes" >&6; }
10774 HAVE_OPENAL=yes
10775 fi
10776
10777 pkg_failed=no
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREEALUT" >&5
10779 $as_echo_n "checking for FREEALUT... " >&6; }
10780
10781 if test -n "$FREEALUT_CFLAGS"; then
10782 pkg_cv_FREEALUT_CFLAGS="$FREEALUT_CFLAGS"
10783 elif test -n "$PKG_CONFIG"; then
10784 if test -n "$PKG_CONFIG" && \
10785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freealut\""; } >&5
10786 ($PKG_CONFIG --exists --print-errors "freealut") 2>&5
10787 ac_status=$?
10788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10789 test $ac_status = 0; }; then
10790 pkg_cv_FREEALUT_CFLAGS=`$PKG_CONFIG --cflags "freealut" 2>/dev/null`
10791 test "x$?" != "x0" && pkg_failed=yes
10792 else
10793 pkg_failed=yes
10794 fi
10795 else
10796 pkg_failed=untried
10797 fi
10798 if test -n "$FREEALUT_LIBS"; then
10799 pkg_cv_FREEALUT_LIBS="$FREEALUT_LIBS"
10800 elif test -n "$PKG_CONFIG"; then
10801 if test -n "$PKG_CONFIG" && \
10802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freealut\""; } >&5
10803 ($PKG_CONFIG --exists --print-errors "freealut") 2>&5
10804 ac_status=$?
10805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806 test $ac_status = 0; }; then
10807 pkg_cv_FREEALUT_LIBS=`$PKG_CONFIG --libs "freealut" 2>/dev/null`
10808 test "x$?" != "x0" && pkg_failed=yes
10809 else
10810 pkg_failed=yes
10811 fi
10812 else
10813 pkg_failed=untried
10814 fi
10815
10816
10817
10818 if test $pkg_failed = yes; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821
10822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10823 _pkg_short_errors_supported=yes
10824 else
10825 _pkg_short_errors_supported=no
10826 fi
10827 if test $_pkg_short_errors_supported = yes; then
10828 FREEALUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freealut" 2>&1`
10829 else
10830 FREEALUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freealut" 2>&1`
10831 fi
10832 # Put the nasty error message in config.log where it belongs
10833 echo "$FREEALUT_PKG_ERRORS" >&5
10834
10835 HAVE_FREEALUT=no
10836 elif test $pkg_failed = untried; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838 $as_echo "no" >&6; }
10839 HAVE_FREEALUT=no
10840 else
10841 FREEALUT_CFLAGS=$pkg_cv_FREEALUT_CFLAGS
10842 FREEALUT_LIBS=$pkg_cv_FREEALUT_LIBS
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10844 $as_echo "yes" >&6; }
10845 HAVE_FREEALUT=yes
10846 fi
10847 fi
10848
10849 if test "x$enable_sdl2mixer" != xno ; then
10850
10851 pkg_failed=no
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2MIXER" >&5
10853 $as_echo_n "checking for SDL2MIXER... " >&6; }
10854
10855 if test -n "$SDL2MIXER_CFLAGS"; then
10856 pkg_cv_SDL2MIXER_CFLAGS="$SDL2MIXER_CFLAGS"
10857 elif test -n "$PKG_CONFIG"; then
10858 if test -n "$PKG_CONFIG" && \
10859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5
10860 ($PKG_CONFIG --exists --print-errors "SDL2_mixer") 2>&5
10861 ac_status=$?
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; }; then
10864 pkg_cv_SDL2MIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL2_mixer" 2>/dev/null`
10865 test "x$?" != "x0" && pkg_failed=yes
10866 else
10867 pkg_failed=yes
10868 fi
10869 else
10870 pkg_failed=untried
10871 fi
10872 if test -n "$SDL2MIXER_LIBS"; then
10873 pkg_cv_SDL2MIXER_LIBS="$SDL2MIXER_LIBS"
10874 elif test -n "$PKG_CONFIG"; then
10875 if test -n "$PKG_CONFIG" && \
10876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5
10877 ($PKG_CONFIG --exists --print-errors "SDL2_mixer") 2>&5
10878 ac_status=$?
10879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880 test $ac_status = 0; }; then
10881 pkg_cv_SDL2MIXER_LIBS=`$PKG_CONFIG --libs "SDL2_mixer" 2>/dev/null`
10882 test "x$?" != "x0" && pkg_failed=yes
10883 else
10884 pkg_failed=yes
10885 fi
10886 else
10887 pkg_failed=untried
10888 fi
10889
10890
10891
10892 if test $pkg_failed = yes; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895
10896 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10897 _pkg_short_errors_supported=yes
10898 else
10899 _pkg_short_errors_supported=no
10900 fi
10901 if test $_pkg_short_errors_supported = yes; then
10902 SDL2MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL2_mixer" 2>&1`
10903 else
10904 SDL2MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL2_mixer" 2>&1`
10905 fi
10906 # Put the nasty error message in config.log where it belongs
10907 echo "$SDL2MIXER_PKG_ERRORS" >&5
10908
10909 HAVE_SDL2MIXER=no
10910 elif test $pkg_failed = untried; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10913 HAVE_SDL2MIXER=no
10914 else
10915 SDL2MIXER_CFLAGS=$pkg_cv_SDL2MIXER_CFLAGS
10916 SDL2MIXER_LIBS=$pkg_cv_SDL2MIXER_LIBS
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10918 $as_echo "yes" >&6; }
10919 HAVE_SDL2MIXER=yes
10920 fi
10921 fi
10922
10923 if test "x$enable_sdlmixer" != xno ; then
10924
10925 pkg_failed=no
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLMIXER" >&5
10927 $as_echo_n "checking for SDLMIXER... " >&6; }
10928
10929 if test -n "$SDLMIXER_CFLAGS"; then
10930 pkg_cv_SDLMIXER_CFLAGS="$SDLMIXER_CFLAGS"
10931 elif test -n "$PKG_CONFIG"; then
10932 if test -n "$PKG_CONFIG" && \
10933 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
10934 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
10935 ac_status=$?
10936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10937 test $ac_status = 0; }; then
10938 pkg_cv_SDLMIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer" 2>/dev/null`
10939 test "x$?" != "x0" && pkg_failed=yes
10940 else
10941 pkg_failed=yes
10942 fi
10943 else
10944 pkg_failed=untried
10945 fi
10946 if test -n "$SDLMIXER_LIBS"; then
10947 pkg_cv_SDLMIXER_LIBS="$SDLMIXER_LIBS"
10948 elif test -n "$PKG_CONFIG"; then
10949 if test -n "$PKG_CONFIG" && \
10950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
10951 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
10952 ac_status=$?
10953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954 test $ac_status = 0; }; then
10955 pkg_cv_SDLMIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer" 2>/dev/null`
10956 test "x$?" != "x0" && pkg_failed=yes
10957 else
10958 pkg_failed=yes
10959 fi
10960 else
10961 pkg_failed=untried
10962 fi
10963
10964
10965
10966 if test $pkg_failed = yes; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969
10970 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10971 _pkg_short_errors_supported=yes
10972 else
10973 _pkg_short_errors_supported=no
10974 fi
10975 if test $_pkg_short_errors_supported = yes; then
10976 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_mixer" 2>&1`
10977 else
10978 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_mixer" 2>&1`
10979 fi
10980 # Put the nasty error message in config.log where it belongs
10981 echo "$SDLMIXER_PKG_ERRORS" >&5
10982
10983 HAVE_SDLMIXER=no
10984 elif test $pkg_failed = untried; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 HAVE_SDLMIXER=no
10988 else
10989 SDLMIXER_CFLAGS=$pkg_cv_SDLMIXER_CFLAGS
10990 SDLMIXER_LIBS=$pkg_cv_SDLMIXER_LIBS
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10992 $as_echo "yes" >&6; }
10993 HAVE_SDLMIXER=yes
10994 fi
10995 fi
10996
10997 # Need glpng or SDL_image so we can display PNG images using OpenGL
10998 # Check whether --enable-glpng was given.
10999 if test "${enable_glpng+set}" = set; then :
11000 enableval=$enable_glpng;
11001 fi
11002
11003 # Check whether --enable-sdl2image was given.
11004 if test "${enable_sdl2image+set}" = set; then :
11005 enableval=$enable_sdl2image;
11006 fi
11007
11008 # Check whether --enable-sdlimage was given.
11009 if test "${enable_sdlimage+set}" = set; then :
11010 enableval=$enable_sdlimage;
11011 fi
11012
11013
11014 if test "x$enable_sdl2image" != xno ; then
11015
11016 pkg_failed=no
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2IMAGE" >&5
11018 $as_echo_n "checking for SDL2IMAGE... " >&6; }
11019
11020 if test -n "$SDL2IMAGE_CFLAGS"; then
11021 pkg_cv_SDL2IMAGE_CFLAGS="$SDL2IMAGE_CFLAGS"
11022 elif test -n "$PKG_CONFIG"; then
11023 if test -n "$PKG_CONFIG" && \
11024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_image\""; } >&5
11025 ($PKG_CONFIG --exists --print-errors "SDL2_image") 2>&5
11026 ac_status=$?
11027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11028 test $ac_status = 0; }; then
11029 pkg_cv_SDL2IMAGE_CFLAGS=`$PKG_CONFIG --cflags "SDL2_image" 2>/dev/null`
11030 test "x$?" != "x0" && pkg_failed=yes
11031 else
11032 pkg_failed=yes
11033 fi
11034 else
11035 pkg_failed=untried
11036 fi
11037 if test -n "$SDL2IMAGE_LIBS"; then
11038 pkg_cv_SDL2IMAGE_LIBS="$SDL2IMAGE_LIBS"
11039 elif test -n "$PKG_CONFIG"; then
11040 if test -n "$PKG_CONFIG" && \
11041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_image\""; } >&5
11042 ($PKG_CONFIG --exists --print-errors "SDL2_image") 2>&5
11043 ac_status=$?
11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; }; then
11046 pkg_cv_SDL2IMAGE_LIBS=`$PKG_CONFIG --libs "SDL2_image" 2>/dev/null`
11047 test "x$?" != "x0" && pkg_failed=yes
11048 else
11049 pkg_failed=yes
11050 fi
11051 else
11052 pkg_failed=untried
11053 fi
11054
11055
11056
11057 if test $pkg_failed = yes; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11060
11061 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11062 _pkg_short_errors_supported=yes
11063 else
11064 _pkg_short_errors_supported=no
11065 fi
11066 if test $_pkg_short_errors_supported = yes; then
11067 SDL2IMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL2_image" 2>&1`
11068 else
11069 SDL2IMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL2_image" 2>&1`
11070 fi
11071 # Put the nasty error message in config.log where it belongs
11072 echo "$SDL2IMAGE_PKG_ERRORS" >&5
11073
11074 HAVE_SDL2IMAGE=no
11075 elif test $pkg_failed = untried; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11078 HAVE_SDL2IMAGE=no
11079 else
11080 SDL2IMAGE_CFLAGS=$pkg_cv_SDL2IMAGE_CFLAGS
11081 SDL2IMAGE_LIBS=$pkg_cv_SDL2IMAGE_LIBS
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083 $as_echo "yes" >&6; }
11084 HAVE_SDL2IMAGE=yes
11085 fi
11086 fi
11087
11088 if test "x$enable_sdlimage" != xno ; then
11089
11090 pkg_failed=no
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLIMAGE" >&5
11092 $as_echo_n "checking for SDLIMAGE... " >&6; }
11093
11094 if test -n "$SDLIMAGE_CFLAGS"; then
11095 pkg_cv_SDLIMAGE_CFLAGS="$SDLIMAGE_CFLAGS"
11096 elif test -n "$PKG_CONFIG"; then
11097 if test -n "$PKG_CONFIG" && \
11098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image\""; } >&5
11099 ($PKG_CONFIG --exists --print-errors "SDL_image") 2>&5
11100 ac_status=$?
11101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11102 test $ac_status = 0; }; then
11103 pkg_cv_SDLIMAGE_CFLAGS=`$PKG_CONFIG --cflags "SDL_image" 2>/dev/null`
11104 test "x$?" != "x0" && pkg_failed=yes
11105 else
11106 pkg_failed=yes
11107 fi
11108 else
11109 pkg_failed=untried
11110 fi
11111 if test -n "$SDLIMAGE_LIBS"; then
11112 pkg_cv_SDLIMAGE_LIBS="$SDLIMAGE_LIBS"
11113 elif test -n "$PKG_CONFIG"; then
11114 if test -n "$PKG_CONFIG" && \
11115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image\""; } >&5
11116 ($PKG_CONFIG --exists --print-errors "SDL_image") 2>&5
11117 ac_status=$?
11118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11119 test $ac_status = 0; }; then
11120 pkg_cv_SDLIMAGE_LIBS=`$PKG_CONFIG --libs "SDL_image" 2>/dev/null`
11121 test "x$?" != "x0" && pkg_failed=yes
11122 else
11123 pkg_failed=yes
11124 fi
11125 else
11126 pkg_failed=untried
11127 fi
11128
11129
11130
11131 if test $pkg_failed = yes; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134
11135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11136 _pkg_short_errors_supported=yes
11137 else
11138 _pkg_short_errors_supported=no
11139 fi
11140 if test $_pkg_short_errors_supported = yes; then
11141 SDLIMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_image" 2>&1`
11142 else
11143 SDLIMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_image" 2>&1`
11144 fi
11145 # Put the nasty error message in config.log where it belongs
11146 echo "$SDLIMAGE_PKG_ERRORS" >&5
11147
11148 HAVE_SDLIMAGE=no
11149 elif test $pkg_failed = untried; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 HAVE_SDLIMAGE=no
11153 else
11154 SDLIMAGE_CFLAGS=$pkg_cv_SDLIMAGE_CFLAGS
11155 SDLIMAGE_LIBS=$pkg_cv_SDLIMAGE_LIBS
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157 $as_echo "yes" >&6; }
11158 HAVE_SDLIMAGE=yes
11159 fi
11160 fi
11161
11162 if test "x$enable_glpng" != xno ; then
11163 for ac_header in GL/glpng.h
11164 do :
11165 ac_fn_c_check_header_mongrel "$LINENO" "GL/glpng.h" "ac_cv_header_GL_glpng_h" "$ac_includes_default"
11166 if test "x$ac_cv_header_GL_glpng_h" = xyes; then :
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_GL_GLPNG_H 1
11169 _ACEOF
11170 HAVE_GL_GLPNG_H=yes
11171 else
11172 HAVE_GL_GLPNG_H=no
11173 fi
11174
11175 done
11176
11177 for ac_header in glpng/glpng.h
11178 do :
11179 ac_fn_c_check_header_mongrel "$LINENO" "glpng/glpng.h" "ac_cv_header_glpng_glpng_h" "$ac_includes_default"
11180 if test "x$ac_cv_header_glpng_glpng_h" = xyes; then :
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_GLPNG_GLPNG_H 1
11183 _ACEOF
11184 HAVE_GLPNG_GLPNG_H=yes
11185 else
11186 HAVE_GLPNG_GLPNG_H=no
11187 fi
11188
11189 done
11190
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pngBind in -lglpng" >&5
11192 $as_echo_n "checking for pngBind in -lglpng... " >&6; }
11193 if ${ac_cv_lib_glpng_pngBind+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 ac_check_lib_save_LIBS=$LIBS
11197 LIBS="-lglpng $GL_LIBS $LIBS"
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11204 #ifdef __cplusplus
11205 extern "C"
11206 #endif
11207 char pngBind ();
11208 int
11209 main ()
11210 {
11211 return pngBind ();
11212 ;
11213 return 0;
11214 }
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"; then :
11217 ac_cv_lib_glpng_pngBind=yes
11218 else
11219 ac_cv_lib_glpng_pngBind=no
11220 fi
11221 rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 LIBS=$ac_check_lib_save_LIBS
11224 fi
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glpng_pngBind" >&5
11226 $as_echo "$ac_cv_lib_glpng_pngBind" >&6; }
11227 if test "x$ac_cv_lib_glpng_pngBind" = xyes; then :
11228 HAVE_GLPNG_LIB=yes
11229 else
11230 HAVE_GLPNG_LIB=no
11231 fi
11232
11233 fi
11234
11235
11236 if test "x$no_gl" = xyes ; then
11237 as_fn_error $? "cannot find OpenGL (drawing system)" "$LINENO" 5
11238 fi
11239
11240 if test "x$no_glu" = xyes ; then
11241 as_fn_error $? "cannot find GLU (drawing system)" "$LINENO" 5
11242 fi
11243
11244
11245 if test \( "x$HAVE_GL_GLC_H" = xyes -o "x$HAVE_QUESOGLC_GLC_H" = xyes \) -a "x$HAVE_GLC_LIB" = xyes -a "x$enable_glc" != xno ; then
11246
11247 $as_echo "#define TEXT_GLC 1" >>confdefs.h
11248
11249 TEXT_LIBS="-lGLC"
11250
11251 TEXT_TYPE=GLC
11252 elif test \( "x$HAVE_GL_GLC_H" = xyes -o "x$HAVE_QUESOGLC_GLC_H" = xyes \) -a "x$HAVE_GLC32_LIB" = xyes -a "x$enable_glc" != xno ; then
11253
11254 $as_echo "#define TEXT_GLC 1" >>confdefs.h
11255
11256 TEXT_LIBS="-lglc32"
11257
11258 TEXT_TYPE=GLC
11259 elif test "x$HAVE_FTGL" = xyes -a "x$enable_ftgl" != xno ; then
11260
11261 $as_echo "#define TEXT_FTGL 1" >>confdefs.h
11262
11263 TEXT_CFLAGS="$FTGL_CFLAGS"
11264
11265 TEXT_LIBS="$FTGL_LIBS"
11266
11267 TEXT_TYPE=FTGL
11268 else
11269 as_fn_error $? "cannot find GLC or FTGL >= 2.1.3 (text renderer)" "$LINENO" 5
11270 fi
11271
11272 if test "x$TEXT_TYPE" = xGLC -a "x$FONT_NAME" != x ; then
11273 TEXT_CFLAGS="$TEXT_CFLAGS -DFONT_NAME=\"\\\"$FONT_NAME\\\"\""
11274
11275 FONT="$FONT_NAME"
11276 elif test "x$TEXT_TYPE" = xGLC ; then
11277 FONT="default (bold Gothic Uralic)"
11278 fi
11279
11280 if test "x$TEXT_TYPE" = xFTGL -a "x$FONT_PATH" != x ; then
11281 TEXT_CFLAGS="$TEXT_CFLAGS -DFONT_PATH=\"\\\"$FONT_PATH\\\"\""
11282
11283 FONT="$FONT_PATH "
11284 fi
11285
11286 if test "x$TEXT_TYPE" = xFTGL -a "x$HAVE_FONTCONFIG" = xyes ; then
11287
11288 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
11289
11290 TEXT_CFLAGS="$TEXT_CFLAGS $FONTCONFIG_CFLAGS"
11291
11292 TEXT_LIBS="$TEXT_LIBS $FONTCONFIG_LIBS"
11293
11294 FONT="$FONT fontconfig (bold Gothic Uralic) "
11295 fi
11296
11297 if test "x$TEXT_TYPE" = xFTGL -a "x$HAVE_FONTCONFIG" != xyes -a "x$FONT_PATH" = x ; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FTGL: no font path supplied and cannot find fontconfig, font searching will probably fail" >&5
11299 $as_echo "$as_me: WARNING: FTGL: no font path supplied and cannot find fontconfig, font searching will probably fail" >&2;}
11300 fi
11301
11302 if test "x$HAVE_SDL2" = xyes -a "x$enable_sdl2" != xno ; then
11303
11304 $as_echo "#define USE_SDL 1" >>confdefs.h
11305
11306 WINDOW_CFLAGS="$SDL2_CFLAGS"
11307
11308 WINDOW_LIBS="$SDL2_LIBS"
11309
11310 WINDOW_TYPE=SDL2
11311 elif test "x$HAVE_SDL" = xyes -a "x$enable_sdl" != xno ; then
11312
11313 $as_echo "#define USE_SDL 1" >>confdefs.h
11314
11315
11316 $as_echo "#define USE_SDL_CDROM 1" >>confdefs.h
11317
11318 WINDOW_CFLAGS="$SDL_CFLAGS"
11319
11320 WINDOW_LIBS="$SDL_LIBS"
11321
11322 WINDOW_TYPE=SDL
11323 elif test "x$no_glut" != xyes -a "x$enable_glut" != xno ; then
11324
11325 $as_echo "#define USE_GLUT 1" >>confdefs.h
11326
11327 WINDOW_CFLAGS="$GLUT_CFLAGS"
11328
11329 WINDOW_LIBS="$GLUT_LIBS"
11330
11331 WINDOW_TYPE=GLUT
11332 else
11333 as_fn_error $? "cannot find SDL >= 1.1.6 or GLUT (window system)" "$LINENO" 5
11334 fi
11335
11336 if test "x$HAVE_OPENAL" = xyes -a "x$HAVE_FREEALUT" = xyes -a "x$enable_openal" != xno ; then
11337
11338 $as_echo "#define AUDIO_OPENAL 1" >>confdefs.h
11339
11340 AUDIO_CFLAGS="$OPENAL_CFLAGS $FREEALUT_CFLAGS"
11341
11342 AUDIO_LIBS="$OPENAL_LIBS $FREEALUT_LIBS"
11343
11344 AUDIO_TYPE=OpenAL
11345
11346 # Need to check for MacOS X OpenAL differences
11347 ac_save_CPPFLAGS="$CPPFLAGS"
11348 ac_save_CFLAGS="$CFLAGS"
11349 CPPFLAGS="${CPPFLAGS} ${OPENAL_CFLAGS} ${FREEALUT_CFLAGS}"
11350 CFLAGS="${CFLAGS} ${OPENAL_CFLAGS} ${FREEALUT_CFLAGS}"
11351 for ac_header in OpenAL/al.h OpenAL/alc.h ALUT/alut.h
11352 do :
11353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11356 cat >>confdefs.h <<_ACEOF
11357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11358 _ACEOF
11359
11360 fi
11361
11362 done
11363
11364 for ac_header in AL/al.h AL/alc.h AL/alut.h
11365 do :
11366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11367 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11369 cat >>confdefs.h <<_ACEOF
11370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11371 _ACEOF
11372
11373 fi
11374
11375 done
11376
11377 CPPFLAGS="${ac_save_CPPFLAGS}"
11378 CFLAGS="${ac_save_CFLAGS}"
11379 elif test "x$HAVE_SDL2MIXER" = xyes -a "x$enable_sdl2mixer" != xno ; then
11380
11381 $as_echo "#define AUDIO_SDLMIXER 1" >>confdefs.h
11382
11383 AUDIO_CFLAGS="$SDL2MIXER_CFLAGS"
11384
11385 AUDIO_LIBS="$SDL2MIXER_LIBS"
11386
11387 AUDIO_TYPE="SDL mixer"
11388 elif test "x$HAVE_SDLMIXER" = xyes -a "x$enable_sdlmixer" != xno ; then
11389
11390 $as_echo "#define AUDIO_SDLMIXER 1" >>confdefs.h
11391
11392 AUDIO_CFLAGS="$SDLMIXER_CFLAGS"
11393
11394 AUDIO_LIBS="$SDLMIXER_LIBS"
11395
11396 AUDIO_TYPE="SDL mixer"
11397 else
11398 as_fn_error $? "cannot find OpenAL & ALUT or SDL Mixer (sound)" "$LINENO" 5
11399 fi
11400
11401 if test \( "x$HAVE_GL_GLPNG_H" = xyes -o "x$HAVE_GLPNG_GLPNG_H" = xyes \) -a "x$HAVE_GLPNG_LIB" = xyes -a "x$enable_glpng" != no ; then
11402
11403 $as_echo "#define IMAGE_GLPNG 1" >>confdefs.h
11404
11405 IMAGE_TYPE=glpng
11406 IMAGE_GLPNG=yes
11407 elif test "x$WINDOW_TYPE" = xSDL2 -a "x$HAVE_SDL2IMAGE" = xyes -a "x$enable_sdl2image" != no ; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using SDL2_image to load images into textures, some rendering artifacts may be present" >&5
11409 $as_echo "$as_me: WARNING: Using SDL2_image to load images into textures, some rendering artifacts may be present" >&2;}
11410
11411 $as_echo "#define IMAGE_SDL 1" >>confdefs.h
11412
11413 IMAGE_TYPE=SDL2_image
11414 IMAGE_SDL2IMAGE=yes
11415 elif test "x$WINDOW_TYPE" = xSDL -a "x$HAVE_SDLIMAGE" = xyes -a "x$enable_sdlimage" != no ; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using SDL_image to load images into textures, some rendering artifacts may be present" >&5
11417 $as_echo "$as_me: WARNING: Using SDL_image to load images into textures, some rendering artifacts may be present" >&2;}
11418
11419 $as_echo "#define IMAGE_SDL 1" >>confdefs.h
11420
11421 IMAGE_TYPE=SDL_image
11422 IMAGE_SDLIMAGE=yes
11423 else
11424 as_fn_error $? "cannot find glpng or SDL_image (image loader)" "$LINENO" 5
11425 fi
11426
11427 if test "x$WINDOW_TYPE" = xSDL2 -a "x$HAVE_SDL2IMAGE" = xyes -a "x$enable_sdl2image" != no ; then
11428
11429 $as_echo "#define ENABLE_WINDOW_ICON 1" >>confdefs.h
11430
11431 WINDOW_ICON=yes
11432 IMAGE_SDL2IMAGE=yes
11433 elif test "x$WINDOW_TYPE" = xSDL -a "x$HAVE_SDLIMAGE" = xyes -a "x$enable_sdlimage" != no ; then
11434
11435 $as_echo "#define ENABLE_WINDOW_ICON 1" >>confdefs.h
11436
11437 WINDOW_ICON=yes
11438 IMAGE_SDLIMAGE=yes
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL_image is not usable, window icon will not be set" >&5
11441 $as_echo "$as_me: WARNING: SDL_image is not usable, window icon will not be set" >&2;}
11442 WINDOW_ICON=no
11443 fi
11444
11445 if test "x$IMAGE_GLPNG" = xyes ; then
11446 IMAGE_CFLAGS="$IMAGE_CFLAGS"
11447
11448 IMAGE_LIBS="$IMAGE_LIBS -lglpng"
11449
11450 fi
11451
11452 if test "x$IMAGE_SDL2IMAGE" = xyes ; then
11453 IMAGE_CFLAGS="$IMAGE_CFLAGS $SDL2IMAGE_CFLAGS"
11454
11455 IMAGE_LIBS="$IMAGE_LIBS $SDL2IMAGE_LIBS"
11456
11457 fi
11458
11459 if test "x$IMAGE_SDLIMAGE" = xyes ; then
11460 IMAGE_CFLAGS="$IMAGE_CFLAGS $SDLIMAGE_CFLAGS"
11461
11462 IMAGE_LIBS="$IMAGE_LIBS $SDLIMAGE_LIBS"
11463
11464 fi
11465
11466 ac_config_files="$ac_config_files Makefile data/doc/Makefile data/doc/images/Makefile data/png/Makefile data/wav/Makefile data/Makefile misc/Makefile src/Makefile m4/Makefile po/Makefile.in"
11467
11468
11469 cat >confcache <<\_ACEOF
11470 # This file is a shell script that caches the results of configure
11471 # tests run on this system so they can be shared between configure
11472 # scripts and configure runs, see configure's option --config-cache.
11473 # It is not useful on other systems. If it contains results you don't
11474 # want to keep, you may remove or edit it.
11475 #
11476 # config.status only pays attention to the cache file if you give it
11477 # the --recheck option to rerun configure.
11478 #
11479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11481 # following values.
11482
11483 _ACEOF
11484
11485 # The following way of writing the cache mishandles newlines in values,
11486 # but we know of no workaround that is simple, portable, and efficient.
11487 # So, we kill variables containing newlines.
11488 # Ultrix sh set writes to stderr and can't be redirected directly,
11489 # and sets the high bit in the cache file unless we assign to the vars.
11490 (
11491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11492 eval ac_val=\$$ac_var
11493 case $ac_val in #(
11494 *${as_nl}*)
11495 case $ac_var in #(
11496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11498 esac
11499 case $ac_var in #(
11500 _ | IFS | as_nl) ;; #(
11501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11502 *) { eval $ac_var=; unset $ac_var;} ;;
11503 esac ;;
11504 esac
11505 done
11506
11507 (set) 2>&1 |
11508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11509 *${as_nl}ac_space=\ *)
11510 # `set' does not quote correctly, so add quotes: double-quote
11511 # substitution turns \\\\ into \\, and sed turns \\ into \.
11512 sed -n \
11513 "s/'/'\\\\''/g;
11514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11515 ;; #(
11516 *)
11517 # `set' quotes correctly as required by POSIX, so do not add quotes.
11518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11519 ;;
11520 esac |
11521 sort
11522 ) |
11523 sed '
11524 /^ac_cv_env_/b end
11525 t clear
11526 :clear
11527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11528 t end
11529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11530 :end' >>confcache
11531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11532 if test -w "$cache_file"; then
11533 if test "x$cache_file" != "x/dev/null"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11535 $as_echo "$as_me: updating cache $cache_file" >&6;}
11536 if test ! -f "$cache_file" || test -h "$cache_file"; then
11537 cat confcache >"$cache_file"
11538 else
11539 case $cache_file in #(
11540 */* | ?:*)
11541 mv -f confcache "$cache_file"$$ &&
11542 mv -f "$cache_file"$$ "$cache_file" ;; #(
11543 *)
11544 mv -f confcache "$cache_file" ;;
11545 esac
11546 fi
11547 fi
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11550 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11551 fi
11552 fi
11553 rm -f confcache
11554
11555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11556 # Let make expand exec_prefix.
11557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11558
11559 DEFS=-DHAVE_CONFIG_H
11560
11561 ac_libobjs=
11562 ac_ltlibobjs=
11563 U=
11564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11565 # 1. Remove the extension, and $U if already installed.
11566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11569 # will be set to the directory where LIBOBJS objects are built.
11570 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11571 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11572 done
11573 LIBOBJS=$ac_libobjs
11574
11575 LTLIBOBJS=$ac_ltlibobjs
11576
11577
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11579 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11580 if test -n "$am_sleep_pid"; then
11581 # Hide warnings about reused PIDs.
11582 wait $am_sleep_pid 2>/dev/null
11583 fi
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11585 $as_echo "done" >&6; }
11586 if test -n "$EXEEXT"; then
11587 am__EXEEXT_TRUE=
11588 am__EXEEXT_FALSE='#'
11589 else
11590 am__EXEEXT_TRUE='#'
11591 am__EXEEXT_FALSE=
11592 fi
11593
11594 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11595 as_fn_error $? "conditional \"AMDEP\" was never defined.
11596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11597 fi
11598 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11599 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11601 fi
11602 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11603 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11605 fi
11606
11607 : "${CONFIG_STATUS=./config.status}"
11608 ac_write_fail=0
11609 ac_clean_files_save=$ac_clean_files
11610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11612 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11613 as_write_fail=0
11614 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11615 #! $SHELL
11616 # Generated by $as_me.
11617 # Run this file to recreate the current configuration.
11618 # Compiler output produced by configure, useful for debugging
11619 # configure, is in config.log if it exists.
11620
11621 debug=false
11622 ac_cs_recheck=false
11623 ac_cs_silent=false
11624
11625 SHELL=\${CONFIG_SHELL-$SHELL}
11626 export SHELL
11627 _ASEOF
11628 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11629 ## -------------------- ##
11630 ## M4sh Initialization. ##
11631 ## -------------------- ##
11632
11633 # Be more Bourne compatible
11634 DUALCASE=1; export DUALCASE # for MKS sh
11635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11636 emulate sh
11637 NULLCMD=:
11638 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11639 # is contrary to our usage. Disable this feature.
11640 alias -g '${1+"$@"}'='"$@"'
11641 setopt NO_GLOB_SUBST
11642 else
11643 case `(set -o) 2>/dev/null` in #(
11644 *posix*) :
11645 set -o posix ;; #(
11646 *) :
11647 ;;
11648 esac
11649 fi
11650
11651
11652 as_nl='
11653 '
11654 export as_nl
11655 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11656 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11657 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11659 # Prefer a ksh shell builtin over an external printf program on Solaris,
11660 # but without wasting forks for bash or zsh.
11661 if test -z "$BASH_VERSION$ZSH_VERSION" \
11662 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11663 as_echo='print -r --'
11664 as_echo_n='print -rn --'
11665 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11666 as_echo='printf %s\n'
11667 as_echo_n='printf %s'
11668 else
11669 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11670 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11671 as_echo_n='/usr/ucb/echo -n'
11672 else
11673 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11674 as_echo_n_body='eval
11675 arg=$1;
11676 case $arg in #(
11677 *"$as_nl"*)
11678 expr "X$arg" : "X\\(.*\\)$as_nl";
11679 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11680 esac;
11681 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11682 '
11683 export as_echo_n_body
11684 as_echo_n='sh -c $as_echo_n_body as_echo'
11685 fi
11686 export as_echo_body
11687 as_echo='sh -c $as_echo_body as_echo'
11688 fi
11689
11690 # The user is always right.
11691 if test "${PATH_SEPARATOR+set}" != set; then
11692 PATH_SEPARATOR=:
11693 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11694 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11695 PATH_SEPARATOR=';'
11696 }
11697 fi
11698
11699
11700 # IFS
11701 # We need space, tab and new line, in precisely that order. Quoting is
11702 # there to prevent editors from complaining about space-tab.
11703 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11704 # splitting by setting IFS to empty value.)
11705 IFS=" "" $as_nl"
11706
11707 # Find who we are. Look in the path if we contain no directory separator.
11708 as_myself=
11709 case $0 in #((
11710 *[\\/]* ) as_myself=$0 ;;
11711 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11713 do
11714 IFS=$as_save_IFS
11715 test -z "$as_dir" && as_dir=.
11716 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11717 done
11718 IFS=$as_save_IFS
11719
11720 ;;
11721 esac
11722 # We did not find ourselves, most probably we were run as `sh COMMAND'
11723 # in which case we are not to be found in the path.
11724 if test "x$as_myself" = x; then
11725 as_myself=$0
11726 fi
11727 if test ! -f "$as_myself"; then
11728 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11729 exit 1
11730 fi
11731
11732 # Unset variables that we do not need and which cause bugs (e.g. in
11733 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11734 # suppresses any "Segmentation fault" message there. '((' could
11735 # trigger a bug in pdksh 5.2.14.
11736 for as_var in BASH_ENV ENV MAIL MAILPATH
11737 do eval test x\${$as_var+set} = xset \
11738 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11739 done
11740 PS1='$ '
11741 PS2='> '
11742 PS4='+ '
11743
11744 # NLS nuisances.
11745 LC_ALL=C
11746 export LC_ALL
11747 LANGUAGE=C
11748 export LANGUAGE
11749
11750 # CDPATH.
11751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11752
11753
11754 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11755 # ----------------------------------------
11756 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11757 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11758 # script with STATUS, using 1 if that was 0.
11759 as_fn_error ()
11760 {
11761 as_status=$1; test $as_status -eq 0 && as_status=1
11762 if test "$4"; then
11763 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11764 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11765 fi
11766 $as_echo "$as_me: error: $2" >&2
11767 as_fn_exit $as_status
11768 } # as_fn_error
11769
11770
11771 # as_fn_set_status STATUS
11772 # -----------------------
11773 # Set $? to STATUS, without forking.
11774 as_fn_set_status ()
11775 {
11776 return $1
11777 } # as_fn_set_status
11778
11779 # as_fn_exit STATUS
11780 # -----------------
11781 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11782 as_fn_exit ()
11783 {
11784 set +e
11785 as_fn_set_status $1
11786 exit $1
11787 } # as_fn_exit
11788
11789 # as_fn_unset VAR
11790 # ---------------
11791 # Portably unset VAR.
11792 as_fn_unset ()
11793 {
11794 { eval $1=; unset $1;}
11795 }
11796 as_unset=as_fn_unset
11797 # as_fn_append VAR VALUE
11798 # ----------------------
11799 # Append the text in VALUE to the end of the definition contained in VAR. Take
11800 # advantage of any shell optimizations that allow amortized linear growth over
11801 # repeated appends, instead of the typical quadratic growth present in naive
11802 # implementations.
11803 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11804 eval 'as_fn_append ()
11805 {
11806 eval $1+=\$2
11807 }'
11808 else
11809 as_fn_append ()
11810 {
11811 eval $1=\$$1\$2
11812 }
11813 fi # as_fn_append
11814
11815 # as_fn_arith ARG...
11816 # ------------------
11817 # Perform arithmetic evaluation on the ARGs, and store the result in the
11818 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11819 # must be portable across $(()) and expr.
11820 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11821 eval 'as_fn_arith ()
11822 {
11823 as_val=$(( $* ))
11824 }'
11825 else
11826 as_fn_arith ()
11827 {
11828 as_val=`expr "$@" || test $? -eq 1`
11829 }
11830 fi # as_fn_arith
11831
11832
11833 if expr a : '\(a\)' >/dev/null 2>&1 &&
11834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11835 as_expr=expr
11836 else
11837 as_expr=false
11838 fi
11839
11840 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11841 as_basename=basename
11842 else
11843 as_basename=false
11844 fi
11845
11846 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11847 as_dirname=dirname
11848 else
11849 as_dirname=false
11850 fi
11851
11852 as_me=`$as_basename -- "$0" ||
11853 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11854 X"$0" : 'X\(//\)$' \| \
11855 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11856 $as_echo X/"$0" |
11857 sed '/^.*\/\([^/][^/]*\)\/*$/{
11858 s//\1/
11859 q
11860 }
11861 /^X\/\(\/\/\)$/{
11862 s//\1/
11863 q
11864 }
11865 /^X\/\(\/\).*/{
11866 s//\1/
11867 q
11868 }
11869 s/.*/./; q'`
11870
11871 # Avoid depending upon Character Ranges.
11872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11875 as_cr_digits='0123456789'
11876 as_cr_alnum=$as_cr_Letters$as_cr_digits
11877
11878 ECHO_C= ECHO_N= ECHO_T=
11879 case `echo -n x` in #(((((
11880 -n*)
11881 case `echo 'xy\c'` in
11882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11883 xy) ECHO_C='\c';;
11884 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11885 ECHO_T=' ';;
11886 esac;;
11887 *)
11888 ECHO_N='-n';;
11889 esac
11890
11891 rm -f conf$$ conf$$.exe conf$$.file
11892 if test -d conf$$.dir; then
11893 rm -f conf$$.dir/conf$$.file
11894 else
11895 rm -f conf$$.dir
11896 mkdir conf$$.dir 2>/dev/null
11897 fi
11898 if (echo >conf$$.file) 2>/dev/null; then
11899 if ln -s conf$$.file conf$$ 2>/dev/null; then
11900 as_ln_s='ln -s'
11901 # ... but there are two gotchas:
11902 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11903 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11904 # In both cases, we have to default to `cp -pR'.
11905 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11906 as_ln_s='cp -pR'
11907 elif ln conf$$.file conf$$ 2>/dev/null; then
11908 as_ln_s=ln
11909 else
11910 as_ln_s='cp -pR'
11911 fi
11912 else
11913 as_ln_s='cp -pR'
11914 fi
11915 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11916 rmdir conf$$.dir 2>/dev/null
11917
11918
11919 # as_fn_mkdir_p
11920 # -------------
11921 # Create "$as_dir" as a directory, including parents if necessary.
11922 as_fn_mkdir_p ()
11923 {
11924
11925 case $as_dir in #(
11926 -*) as_dir=./$as_dir;;
11927 esac
11928 test -d "$as_dir" || eval $as_mkdir_p || {
11929 as_dirs=
11930 while :; do
11931 case $as_dir in #(
11932 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11933 *) as_qdir=$as_dir;;
11934 esac
11935 as_dirs="'$as_qdir' $as_dirs"
11936 as_dir=`$as_dirname -- "$as_dir" ||
11937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11938 X"$as_dir" : 'X\(//\)[^/]' \| \
11939 X"$as_dir" : 'X\(//\)$' \| \
11940 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11941 $as_echo X"$as_dir" |
11942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11943 s//\1/
11944 q
11945 }
11946 /^X\(\/\/\)[^/].*/{
11947 s//\1/
11948 q
11949 }
11950 /^X\(\/\/\)$/{
11951 s//\1/
11952 q
11953 }
11954 /^X\(\/\).*/{
11955 s//\1/
11956 q
11957 }
11958 s/.*/./; q'`
11959 test -d "$as_dir" && break
11960 done
11961 test -z "$as_dirs" || eval "mkdir $as_dirs"
11962 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11963
11964
11965 } # as_fn_mkdir_p
11966 if mkdir -p . 2>/dev/null; then
11967 as_mkdir_p='mkdir -p "$as_dir"'
11968 else
11969 test -d ./-p && rmdir ./-p
11970 as_mkdir_p=false
11971 fi
11972
11973
11974 # as_fn_executable_p FILE
11975 # -----------------------
11976 # Test if FILE is an executable regular file.
11977 as_fn_executable_p ()
11978 {
11979 test -f "$1" && test -x "$1"
11980 } # as_fn_executable_p
11981 as_test_x='test -x'
11982 as_executable_p=as_fn_executable_p
11983
11984 # Sed expression to map a string onto a valid CPP name.
11985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11986
11987 # Sed expression to map a string onto a valid variable name.
11988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11989
11990
11991 exec 6>&1
11992 ## ----------------------------------- ##
11993 ## Main body of $CONFIG_STATUS script. ##
11994 ## ----------------------------------- ##
11995 _ASEOF
11996 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11997
11998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11999 # Save the log message, to keep $0 and so on meaningful, and to
12000 # report actual input values of CONFIG_FILES etc. instead of their
12001 # values after options handling.
12002 ac_log="
12003 This file was extended by Chromium B.S.U. $as_me 0.9.16.1, which was
12004 generated by GNU Autoconf 2.69. Invocation command line was
12005
12006 CONFIG_FILES = $CONFIG_FILES
12007 CONFIG_HEADERS = $CONFIG_HEADERS
12008 CONFIG_LINKS = $CONFIG_LINKS
12009 CONFIG_COMMANDS = $CONFIG_COMMANDS
12010 $ $0 $@
12011
12012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12013 "
12014
12015 _ACEOF
12016
12017 case $ac_config_files in *"
12018 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12019 esac
12020
12021 case $ac_config_headers in *"
12022 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12023 esac
12024
12025
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 # Files that config.status was made for.
12028 config_files="$ac_config_files"
12029 config_headers="$ac_config_headers"
12030 config_commands="$ac_config_commands"
12031
12032 _ACEOF
12033
12034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12035 ac_cs_usage="\
12036 \`$as_me' instantiates files and other configuration actions
12037 from templates according to the current configuration. Unless the files
12038 and actions are specified as TAGs, all are instantiated by default.
12039
12040 Usage: $0 [OPTION]... [TAG]...
12041
12042 -h, --help print this help, then exit
12043 -V, --version print version number and configuration settings, then exit
12044 --config print configuration, then exit
12045 -q, --quiet, --silent
12046 do not print progress messages
12047 -d, --debug don't remove temporary files
12048 --recheck update $as_me by reconfiguring in the same conditions
12049 --file=FILE[:TEMPLATE]
12050 instantiate the configuration file FILE
12051 --header=FILE[:TEMPLATE]
12052 instantiate the configuration header FILE
12053
12054 Configuration files:
12055 $config_files
12056
12057 Configuration headers:
12058 $config_headers
12059
12060 Configuration commands:
12061 $config_commands
12062
12063 Report bugs to <https://sf.net/p/chromium-bsu/bugs>."
12064
12065 _ACEOF
12066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12067 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12068 ac_cs_version="\\
12069 Chromium B.S.U. config.status 0.9.16.1
12070 configured by $0, generated by GNU Autoconf 2.69,
12071 with options \\"\$ac_cs_config\\"
12072
12073 Copyright (C) 2012 Free Software Foundation, Inc.
12074 This config.status script is free software; the Free Software Foundation
12075 gives unlimited permission to copy, distribute and modify it."
12076
12077 ac_pwd='$ac_pwd'
12078 srcdir='$srcdir'
12079 INSTALL='$INSTALL'
12080 MKDIR_P='$MKDIR_P'
12081 AWK='$AWK'
12082 test -n "\$AWK" || AWK=awk
12083 _ACEOF
12084
12085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12086 # The default lists apply if the user does not specify any file.
12087 ac_need_defaults=:
12088 while test $# != 0
12089 do
12090 case $1 in
12091 --*=?*)
12092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12093 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12094 ac_shift=:
12095 ;;
12096 --*=)
12097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12098 ac_optarg=
12099 ac_shift=:
12100 ;;
12101 *)
12102 ac_option=$1
12103 ac_optarg=$2
12104 ac_shift=shift
12105 ;;
12106 esac
12107
12108 case $ac_option in
12109 # Handling of the options.
12110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12111 ac_cs_recheck=: ;;
12112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12113 $as_echo "$ac_cs_version"; exit ;;
12114 --config | --confi | --conf | --con | --co | --c )
12115 $as_echo "$ac_cs_config"; exit ;;
12116 --debug | --debu | --deb | --de | --d | -d )
12117 debug=: ;;
12118 --file | --fil | --fi | --f )
12119 $ac_shift
12120 case $ac_optarg in
12121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12122 '') as_fn_error $? "missing file argument" ;;
12123 esac
12124 as_fn_append CONFIG_FILES " '$ac_optarg'"
12125 ac_need_defaults=false;;
12126 --header | --heade | --head | --hea )
12127 $ac_shift
12128 case $ac_optarg in
12129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12130 esac
12131 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12132 ac_need_defaults=false;;
12133 --he | --h)
12134 # Conflict between --help and --header
12135 as_fn_error $? "ambiguous option: \`$1'
12136 Try \`$0 --help' for more information.";;
12137 --help | --hel | -h )
12138 $as_echo "$ac_cs_usage"; exit ;;
12139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12141 ac_cs_silent=: ;;
12142
12143 # This is an error.
12144 -*) as_fn_error $? "unrecognized option: \`$1'
12145 Try \`$0 --help' for more information." ;;
12146
12147 *) as_fn_append ac_config_targets " $1"
12148 ac_need_defaults=false ;;
12149
12150 esac
12151 shift
12152 done
12153
12154 ac_configure_extra_args=
12155
12156 if $ac_cs_silent; then
12157 exec 6>/dev/null
12158 ac_configure_extra_args="$ac_configure_extra_args --silent"
12159 fi
12160
12161 _ACEOF
12162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12163 if \$ac_cs_recheck; then
12164 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12165 shift
12166 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12167 CONFIG_SHELL='$SHELL'
12168 export CONFIG_SHELL
12169 exec "\$@"
12170 fi
12171
12172 _ACEOF
12173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12174 exec 5>>config.log
12175 {
12176 echo
12177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12178 ## Running $as_me. ##
12179 _ASBOX
12180 $as_echo "$ac_log"
12181 } >&5
12182
12183 _ACEOF
12184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12185 #
12186 # INIT-COMMANDS
12187 #
12188 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12189 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12190 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12191 # from automake < 1.5.
12192 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12193 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12194 LINGUAS="${LINGUAS-%UNSET%}"
12195
12196
12197 _ACEOF
12198
12199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12200
12201 # Handling of arguments.
12202 for ac_config_target in $ac_config_targets
12203 do
12204 case $ac_config_target in
12205 "chromium-bsu-config.h") CONFIG_HEADERS="$CONFIG_HEADERS chromium-bsu-config.h" ;;
12206 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12207 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12208 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12209 "data/doc/Makefile") CONFIG_FILES="$CONFIG_FILES data/doc/Makefile" ;;
12210 "data/doc/images/Makefile") CONFIG_FILES="$CONFIG_FILES data/doc/images/Makefile" ;;
12211 "data/png/Makefile") CONFIG_FILES="$CONFIG_FILES data/png/Makefile" ;;
12212 "data/wav/Makefile") CONFIG_FILES="$CONFIG_FILES data/wav/Makefile" ;;
12213 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
12214 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
12215 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12216 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
12217 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12218
12219 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12220 esac
12221 done
12222
12223
12224 # If the user did not use the arguments to specify the items to instantiate,
12225 # then the envvar interface is used. Set only those that are not.
12226 # We use the long form for the default assignment because of an extremely
12227 # bizarre bug on SunOS 4.1.3.
12228 if $ac_need_defaults; then
12229 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12230 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12231 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12232 fi
12233
12234 # Have a temporary directory for convenience. Make it in the build tree
12235 # simply because there is no reason against having it here, and in addition,
12236 # creating and moving files from /tmp can sometimes cause problems.
12237 # Hook for its removal unless debugging.
12238 # Note that there is a small window in which the directory will not be cleaned:
12239 # after its creation but before its name has been assigned to `$tmp'.
12240 $debug ||
12241 {
12242 tmp= ac_tmp=
12243 trap 'exit_status=$?
12244 : "${ac_tmp:=$tmp}"
12245 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12246 ' 0
12247 trap 'as_fn_exit 1' 1 2 13 15
12248 }
12249 # Create a (secure) tmp directory for tmp files.
12250
12251 {
12252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12253 test -d "$tmp"
12254 } ||
12255 {
12256 tmp=./conf$$-$RANDOM
12257 (umask 077 && mkdir "$tmp")
12258 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12259 ac_tmp=$tmp
12260
12261 # Set up the scripts for CONFIG_FILES section.
12262 # No need to generate them if there are no CONFIG_FILES.
12263 # This happens for instance with `./config.status config.h'.
12264 if test -n "$CONFIG_FILES"; then
12265
12266
12267 ac_cr=`echo X | tr X '\015'`
12268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12269 # But we know of no other shell where ac_cr would be empty at this
12270 # point, so we can use a bashism as a fallback.
12271 if test "x$ac_cr" = x; then
12272 eval ac_cr=\$\'\\r\'
12273 fi
12274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12276 ac_cs_awk_cr='\\r'
12277 else
12278 ac_cs_awk_cr=$ac_cr
12279 fi
12280
12281 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12282 _ACEOF
12283
12284
12285 {
12286 echo "cat >conf$$subs.awk <<_ACEOF" &&
12287 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12288 echo "_ACEOF"
12289 } >conf$$subs.sh ||
12290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12291 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12292 ac_delim='%!_!# '
12293 for ac_last_try in false false false false false :; do
12294 . ./conf$$subs.sh ||
12295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12296
12297 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12298 if test $ac_delim_n = $ac_delim_num; then
12299 break
12300 elif $ac_last_try; then
12301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12302 else
12303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12304 fi
12305 done
12306 rm -f conf$$subs.sh
12307
12308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12309 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12310 _ACEOF
12311 sed -n '
12312 h
12313 s/^/S["/; s/!.*/"]=/
12314 p
12315 g
12316 s/^[^!]*!//
12317 :repl
12318 t repl
12319 s/'"$ac_delim"'$//
12320 t delim
12321 :nl
12322 h
12323 s/\(.\{148\}\)..*/\1/
12324 t more1
12325 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12326 p
12327 n
12328 b repl
12329 :more1
12330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12331 p
12332 g
12333 s/.\{148\}//
12334 t nl
12335 :delim
12336 h
12337 s/\(.\{148\}\)..*/\1/
12338 t more2
12339 s/["\\]/\\&/g; s/^/"/; s/$/"/
12340 p
12341 b
12342 :more2
12343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12344 p
12345 g
12346 s/.\{148\}//
12347 t delim
12348 ' <conf$$subs.awk | sed '
12349 /^[^""]/{
12350 N
12351 s/\n//
12352 }
12353 ' >>$CONFIG_STATUS || ac_write_fail=1
12354 rm -f conf$$subs.awk
12355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12356 _ACAWK
12357 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12358 for (key in S) S_is_set[key] = 1
12359 FS = ""
12360
12361 }
12362 {
12363 line = $ 0
12364 nfields = split(line, field, "@")
12365 substed = 0
12366 len = length(field[1])
12367 for (i = 2; i < nfields; i++) {
12368 key = field[i]
12369 keylen = length(key)
12370 if (S_is_set[key]) {
12371 value = S[key]
12372 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12373 len += length(value) + length(field[++i])
12374 substed = 1
12375 } else
12376 len += 1 + keylen
12377 }
12378
12379 print line
12380 }
12381
12382 _ACAWK
12383 _ACEOF
12384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12387 else
12388 cat
12389 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12390 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12391 _ACEOF
12392
12393 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12394 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12395 # trailing colons and then remove the whole line if VPATH becomes empty
12396 # (actually we leave an empty line to preserve line numbers).
12397 if test "x$srcdir" = x.; then
12398 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12399 h
12400 s///
12401 s/^/:/
12402 s/[ ]*$/:/
12403 s/:\$(srcdir):/:/g
12404 s/:\${srcdir}:/:/g
12405 s/:@srcdir@:/:/g
12406 s/^:*//
12407 s/:*$//
12408 x
12409 s/\(=[ ]*\).*/\1/
12410 G
12411 s/\n//
12412 s/^[^=]*=[ ]*$//
12413 }'
12414 fi
12415
12416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12417 fi # test -n "$CONFIG_FILES"
12418
12419 # Set up the scripts for CONFIG_HEADERS section.
12420 # No need to generate them if there are no CONFIG_HEADERS.
12421 # This happens for instance with `./config.status Makefile'.
12422 if test -n "$CONFIG_HEADERS"; then
12423 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12424 BEGIN {
12425 _ACEOF
12426
12427 # Transform confdefs.h into an awk script `defines.awk', embedded as
12428 # here-document in config.status, that substitutes the proper values into
12429 # config.h.in to produce config.h.
12430
12431 # Create a delimiter string that does not exist in confdefs.h, to ease
12432 # handling of long lines.
12433 ac_delim='%!_!# '
12434 for ac_last_try in false false :; do
12435 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12436 if test -z "$ac_tt"; then
12437 break
12438 elif $ac_last_try; then
12439 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12440 else
12441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12442 fi
12443 done
12444
12445 # For the awk script, D is an array of macro values keyed by name,
12446 # likewise P contains macro parameters if any. Preserve backslash
12447 # newline sequences.
12448
12449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12450 sed -n '
12451 s/.\{148\}/&'"$ac_delim"'/g
12452 t rset
12453 :rset
12454 s/^[ ]*#[ ]*define[ ][ ]*/ /
12455 t def
12456 d
12457 :def
12458 s/\\$//
12459 t bsnl
12460 s/["\\]/\\&/g
12461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12462 D["\1"]=" \3"/p
12463 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12464 d
12465 :bsnl
12466 s/["\\]/\\&/g
12467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12468 D["\1"]=" \3\\\\\\n"\\/p
12469 t cont
12470 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12471 t cont
12472 d
12473 :cont
12474 n
12475 s/.\{148\}/&'"$ac_delim"'/g
12476 t clear
12477 :clear
12478 s/\\$//
12479 t bsnlc
12480 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12481 d
12482 :bsnlc
12483 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12484 b cont
12485 ' <confdefs.h | sed '
12486 s/'"$ac_delim"'/"\\\
12487 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12488
12489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12490 for (key in D) D_is_set[key] = 1
12491 FS = ""
12492 }
12493 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12494 line = \$ 0
12495 split(line, arg, " ")
12496 if (arg[1] == "#") {
12497 defundef = arg[2]
12498 mac1 = arg[3]
12499 } else {
12500 defundef = substr(arg[1], 2)
12501 mac1 = arg[2]
12502 }
12503 split(mac1, mac2, "(") #)
12504 macro = mac2[1]
12505 prefix = substr(line, 1, index(line, defundef) - 1)
12506 if (D_is_set[macro]) {
12507 # Preserve the white space surrounding the "#".
12508 print prefix "define", macro P[macro] D[macro]
12509 next
12510 } else {
12511 # Replace #undef with comments. This is necessary, for example,
12512 # in the case of _POSIX_SOURCE, which is predefined and required
12513 # on some systems where configure will not decide to define it.
12514 if (defundef == "undef") {
12515 print "/*", prefix defundef, macro, "*/"
12516 next
12517 }
12518 }
12519 }
12520 { print }
12521 _ACAWK
12522 _ACEOF
12523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12524 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12525 fi # test -n "$CONFIG_HEADERS"
12526
12527
12528 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12529 shift
12530 for ac_tag
12531 do
12532 case $ac_tag in
12533 :[FHLC]) ac_mode=$ac_tag; continue;;
12534 esac
12535 case $ac_mode$ac_tag in
12536 :[FHL]*:*);;
12537 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12538 :[FH]-) ac_tag=-:-;;
12539 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12540 esac
12541 ac_save_IFS=$IFS
12542 IFS=:
12543 set x $ac_tag
12544 IFS=$ac_save_IFS
12545 shift
12546 ac_file=$1
12547 shift
12548
12549 case $ac_mode in
12550 :L) ac_source=$1;;
12551 :[FH])
12552 ac_file_inputs=
12553 for ac_f
12554 do
12555 case $ac_f in
12556 -) ac_f="$ac_tmp/stdin";;
12557 *) # Look for the file first in the build tree, then in the source tree
12558 # (if the path is not absolute). The absolute path cannot be DOS-style,
12559 # because $ac_f cannot contain `:'.
12560 test -f "$ac_f" ||
12561 case $ac_f in
12562 [\\/$]*) false;;
12563 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12564 esac ||
12565 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12566 esac
12567 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12568 as_fn_append ac_file_inputs " '$ac_f'"
12569 done
12570
12571 # Let's still pretend it is `configure' which instantiates (i.e., don't
12572 # use $as_me), people would be surprised to read:
12573 # /* config.h. Generated by config.status. */
12574 configure_input='Generated from '`
12575 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12576 `' by configure.'
12577 if test x"$ac_file" != x-; then
12578 configure_input="$ac_file. $configure_input"
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12580 $as_echo "$as_me: creating $ac_file" >&6;}
12581 fi
12582 # Neutralize special characters interpreted by sed in replacement strings.
12583 case $configure_input in #(
12584 *\&* | *\|* | *\\* )
12585 ac_sed_conf_input=`$as_echo "$configure_input" |
12586 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12587 *) ac_sed_conf_input=$configure_input;;
12588 esac
12589
12590 case $ac_tag in
12591 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12593 esac
12594 ;;
12595 esac
12596
12597 ac_dir=`$as_dirname -- "$ac_file" ||
12598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12599 X"$ac_file" : 'X\(//\)[^/]' \| \
12600 X"$ac_file" : 'X\(//\)$' \| \
12601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12602 $as_echo X"$ac_file" |
12603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12604 s//\1/
12605 q
12606 }
12607 /^X\(\/\/\)[^/].*/{
12608 s//\1/
12609 q
12610 }
12611 /^X\(\/\/\)$/{
12612 s//\1/
12613 q
12614 }
12615 /^X\(\/\).*/{
12616 s//\1/
12617 q
12618 }
12619 s/.*/./; q'`
12620 as_dir="$ac_dir"; as_fn_mkdir_p
12621 ac_builddir=.
12622
12623 case "$ac_dir" in
12624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12625 *)
12626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12627 # A ".." for each directory in $ac_dir_suffix.
12628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12629 case $ac_top_builddir_sub in
12630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12632 esac ;;
12633 esac
12634 ac_abs_top_builddir=$ac_pwd
12635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12636 # for backward compatibility:
12637 ac_top_builddir=$ac_top_build_prefix
12638
12639 case $srcdir in
12640 .) # We are building in place.
12641 ac_srcdir=.
12642 ac_top_srcdir=$ac_top_builddir_sub
12643 ac_abs_top_srcdir=$ac_pwd ;;
12644 [\\/]* | ?:[\\/]* ) # Absolute name.
12645 ac_srcdir=$srcdir$ac_dir_suffix;
12646 ac_top_srcdir=$srcdir
12647 ac_abs_top_srcdir=$srcdir ;;
12648 *) # Relative name.
12649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12650 ac_top_srcdir=$ac_top_build_prefix$srcdir
12651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12652 esac
12653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12654
12655
12656 case $ac_mode in
12657 :F)
12658 #
12659 # CONFIG_FILE
12660 #
12661
12662 case $INSTALL in
12663 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12664 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12665 esac
12666 ac_MKDIR_P=$MKDIR_P
12667 case $MKDIR_P in
12668 [\\/$]* | ?:[\\/]* ) ;;
12669 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12670 esac
12671 _ACEOF
12672
12673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12674 # If the template does not know about datarootdir, expand it.
12675 # FIXME: This hack should be removed a few years after 2.60.
12676 ac_datarootdir_hack=; ac_datarootdir_seen=
12677 ac_sed_dataroot='
12678 /datarootdir/ {
12679 p
12680 q
12681 }
12682 /@datadir@/p
12683 /@docdir@/p
12684 /@infodir@/p
12685 /@localedir@/p
12686 /@mandir@/p'
12687 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12688 *datarootdir*) ac_datarootdir_seen=yes;;
12689 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12691 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12692 _ACEOF
12693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12694 ac_datarootdir_hack='
12695 s&@datadir@&$datadir&g
12696 s&@docdir@&$docdir&g
12697 s&@infodir@&$infodir&g
12698 s&@localedir@&$localedir&g
12699 s&@mandir@&$mandir&g
12700 s&\\\${datarootdir}&$datarootdir&g' ;;
12701 esac
12702 _ACEOF
12703
12704 # Neutralize VPATH when `$srcdir' = `.'.
12705 # Shell code in configure.ac might set extrasub.
12706 # FIXME: do we really want to maintain this feature?
12707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12708 ac_sed_extra="$ac_vpsub
12709 $extrasub
12710 _ACEOF
12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712 :t
12713 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12714 s|@configure_input@|$ac_sed_conf_input|;t t
12715 s&@top_builddir@&$ac_top_builddir_sub&;t t
12716 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12717 s&@srcdir@&$ac_srcdir&;t t
12718 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12719 s&@top_srcdir@&$ac_top_srcdir&;t t
12720 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12721 s&@builddir@&$ac_builddir&;t t
12722 s&@abs_builddir@&$ac_abs_builddir&;t t
12723 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12724 s&@INSTALL@&$ac_INSTALL&;t t
12725 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12726 $ac_datarootdir_hack
12727 "
12728 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12729 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12730
12731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12732 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12734 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12736 which seems to be undefined. Please make sure it is defined" >&5
12737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12738 which seems to be undefined. Please make sure it is defined" >&2;}
12739
12740 rm -f "$ac_tmp/stdin"
12741 case $ac_file in
12742 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12743 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12744 esac \
12745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12746 ;;
12747 :H)
12748 #
12749 # CONFIG_HEADER
12750 #
12751 if test x"$ac_file" != x-; then
12752 {
12753 $as_echo "/* $configure_input */" \
12754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12755 } >"$ac_tmp/config.h" \
12756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12757 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12760 else
12761 rm -f "$ac_file"
12762 mv "$ac_tmp/config.h" "$ac_file" \
12763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12764 fi
12765 else
12766 $as_echo "/* $configure_input */" \
12767 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12768 || as_fn_error $? "could not create -" "$LINENO" 5
12769 fi
12770 # Compute "$ac_file"'s index in $config_headers.
12771 _am_arg="$ac_file"
12772 _am_stamp_count=1
12773 for _am_header in $config_headers :; do
12774 case $_am_header in
12775 $_am_arg | $_am_arg:* )
12776 break ;;
12777 * )
12778 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12779 esac
12780 done
12781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12783 X"$_am_arg" : 'X\(//\)[^/]' \| \
12784 X"$_am_arg" : 'X\(//\)$' \| \
12785 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12786 $as_echo X"$_am_arg" |
12787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12788 s//\1/
12789 q
12790 }
12791 /^X\(\/\/\)[^/].*/{
12792 s//\1/
12793 q
12794 }
12795 /^X\(\/\/\)$/{
12796 s//\1/
12797 q
12798 }
12799 /^X\(\/\).*/{
12800 s//\1/
12801 q
12802 }
12803 s/.*/./; q'`/stamp-h$_am_stamp_count
12804 ;;
12805
12806 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12807 $as_echo "$as_me: executing $ac_file commands" >&6;}
12808 ;;
12809 esac
12810
12811
12812 case $ac_file$ac_mode in
12813 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12814 # Older Autoconf quotes --file arguments for eval, but not when files
12815 # are listed without --file. Let's play safe and only enable the eval
12816 # if we detect the quoting.
12817 case $CONFIG_FILES in
12818 *\'*) eval set x "$CONFIG_FILES" ;;
12819 *) set x $CONFIG_FILES ;;
12820 esac
12821 shift
12822 for mf
12823 do
12824 # Strip MF so we end up with the name of the file.
12825 mf=`echo "$mf" | sed -e 's/:.*$//'`
12826 # Check whether this is an Automake generated Makefile or not.
12827 # We used to match only the files named 'Makefile.in', but
12828 # some people rename them; so instead we look at the file content.
12829 # Grep'ing the first line is not enough: some people post-process
12830 # each Makefile.in and add a new line on top of each file to say so.
12831 # Grep'ing the whole file is not good either: AIX grep has a line
12832 # limit of 2048, but all sed's we know have understand at least 4000.
12833 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12834 dirpart=`$as_dirname -- "$mf" ||
12835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12836 X"$mf" : 'X\(//\)[^/]' \| \
12837 X"$mf" : 'X\(//\)$' \| \
12838 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12839 $as_echo X"$mf" |
12840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12841 s//\1/
12842 q
12843 }
12844 /^X\(\/\/\)[^/].*/{
12845 s//\1/
12846 q
12847 }
12848 /^X\(\/\/\)$/{
12849 s//\1/
12850 q
12851 }
12852 /^X\(\/\).*/{
12853 s//\1/
12854 q
12855 }
12856 s/.*/./; q'`
12857 else
12858 continue
12859 fi
12860 # Extract the definition of DEPDIR, am__include, and am__quote
12861 # from the Makefile without running 'make'.
12862 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12863 test -z "$DEPDIR" && continue
12864 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12865 test -z "$am__include" && continue
12866 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12867 # Find all dependency output files, they are included files with
12868 # $(DEPDIR) in their names. We invoke sed twice because it is the
12869 # simplest approach to changing $(DEPDIR) to its actual value in the
12870 # expansion.
12871 for file in `sed -n "
12872 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12873 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12874 # Make sure the directory exists.
12875 test -f "$dirpart/$file" && continue
12876 fdir=`$as_dirname -- "$file" ||
12877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12878 X"$file" : 'X\(//\)[^/]' \| \
12879 X"$file" : 'X\(//\)$' \| \
12880 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12881 $as_echo X"$file" |
12882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12883 s//\1/
12884 q
12885 }
12886 /^X\(\/\/\)[^/].*/{
12887 s//\1/
12888 q
12889 }
12890 /^X\(\/\/\)$/{
12891 s//\1/
12892 q
12893 }
12894 /^X\(\/\).*/{
12895 s//\1/
12896 q
12897 }
12898 s/.*/./; q'`
12899 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12900 # echo "creating $dirpart/$file"
12901 echo '# dummy' > "$dirpart/$file"
12902 done
12903 done
12904 }
12905 ;;
12906 "po-directories":C)
12907 for ac_file in $CONFIG_FILES; do
12908 # Support "outfile[:infile[:infile...]]"
12909 case "$ac_file" in
12910 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12911 esac
12912 # PO directories have a Makefile.in generated from Makefile.in.in.
12913 case "$ac_file" in */Makefile.in)
12914 # Adjust a relative srcdir.
12915 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12916 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12917 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12918 # In autoconf-2.13 it is called $ac_given_srcdir.
12919 # In autoconf-2.50 it is called $srcdir.
12920 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12921 case "$ac_given_srcdir" in
12922 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12923 /*) top_srcdir="$ac_given_srcdir" ;;
12924 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12925 esac
12926 # Treat a directory as a PO directory if and only if it has a
12927 # POTFILES.in file. This allows packages to have multiple PO
12928 # directories under different names or in different locations.
12929 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12930 rm -f "$ac_dir/POTFILES"
12931 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12932 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12933 POMAKEFILEDEPS="POTFILES.in"
12934 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12935 # on $ac_dir but don't depend on user-specified configuration
12936 # parameters.
12937 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12938 # The LINGUAS file contains the set of available languages.
12939 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12940 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12941 fi
12942 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12943 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12944 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12945 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12946 else
12947 # The set of available languages was given in configure.in.
12948 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12949 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12950 fi
12951 # Compute POFILES
12952 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12953 # Compute UPDATEPOFILES
12954 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12955 # Compute DUMMYPOFILES
12956 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12957 # Compute GMOFILES
12958 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12959 case "$ac_given_srcdir" in
12960 .) srcdirpre= ;;
12961 *) srcdirpre='$(srcdir)/' ;;
12962 esac
12963 POFILES=
12964 UPDATEPOFILES=
12965 DUMMYPOFILES=
12966 GMOFILES=
12967 for lang in $ALL_LINGUAS; do
12968 POFILES="$POFILES $srcdirpre$lang.po"
12969 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12970 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12971 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12972 done
12973 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12974 # environment variable.
12975 INST_LINGUAS=
12976 if test -n "$ALL_LINGUAS"; then
12977 for presentlang in $ALL_LINGUAS; do
12978 useit=no
12979 if test "%UNSET%" != "$LINGUAS"; then
12980 desiredlanguages="$LINGUAS"
12981 else
12982 desiredlanguages="$ALL_LINGUAS"
12983 fi
12984 for desiredlang in $desiredlanguages; do
12985 # Use the presentlang catalog if desiredlang is
12986 # a. equal to presentlang, or
12987 # b. a variant of presentlang (because in this case,
12988 # presentlang can be used as a fallback for messages
12989 # which are not translated in the desiredlang catalog).
12990 case "$desiredlang" in
12991 "$presentlang"*) useit=yes;;
12992 esac
12993 done
12994 if test $useit = yes; then
12995 INST_LINGUAS="$INST_LINGUAS $presentlang"
12996 fi
12997 done
12998 fi
12999 CATALOGS=
13000 if test -n "$INST_LINGUAS"; then
13001 for lang in $INST_LINGUAS; do
13002 CATALOGS="$CATALOGS $lang.gmo"
13003 done
13004 fi
13005 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13006 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13007 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13008 if test -f "$f"; then
13009 case "$f" in
13010 *.orig | *.bak | *~) ;;
13011 *) cat "$f" >> "$ac_dir/Makefile" ;;
13012 esac
13013 fi
13014 done
13015 fi
13016 ;;
13017 esac
13018 done ;;
13019
13020 esac
13021 done # for ac_tag
13022
13023
13024 as_fn_exit 0
13025 _ACEOF
13026 ac_clean_files=$ac_clean_files_save
13027
13028 test $ac_write_fail = 0 ||
13029 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13030
13031
13032 # configure is writing to config.log, and then calls config.status.
13033 # config.status does its own redirection, appending to config.log.
13034 # Unfortunately, on DOS this fails, as config.log is still kept open
13035 # by configure, so config.status won't be able to write to it; its
13036 # output is simply discarded. So we exec the FD to /dev/null,
13037 # effectively closing config.log, so it can be properly (re)opened and
13038 # appended to by config.status. When coming back to configure, we
13039 # need to make the FD available again.
13040 if test "$no_create" != yes; then
13041 ac_cs_success=:
13042 ac_config_status_args=
13043 test "$silent" = yes &&
13044 ac_config_status_args="$ac_config_status_args --quiet"
13045 exec 5>/dev/null
13046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13047 exec 5>>config.log
13048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13049 # would make configure fail if this is the last instruction.
13050 $ac_cs_success || as_fn_exit 1
13051 fi
13052 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13054 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13055 fi
13056
13057
13058 echo "
13059
13060 Chromium B.S.U. ready for building!
13061
13062 Window type: $WINDOW_TYPE
13063 Window icon: $WINDOW_ICON
13064 Image type: $IMAGE_TYPE
13065 Audio type: $AUDIO_TYPE
13066 Text type: $TEXT_TYPE
13067 Font search: $FONT
13068
13069 Type 'make' to build.
13070
13071 "