20130320
[gdash.git] / configure
blob5d0d768c3114b0ebdd1b701dd7d3595be860b702
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GDash 20130317unstable.
5 # Report bugs to <http://code.google.com/p/gdash/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
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
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
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
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 bug-autoconf@gnu.org and
270 $0: http://code.google.com/p/gdash/ 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."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
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 ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
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/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
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"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
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 ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
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 ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
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 ()
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
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
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
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
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/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
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
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 '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
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; }
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
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;;
513 ECHO_N='-n';;
514 esac
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
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'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
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
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
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`
569 # Initializations.
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=
580 # Identity of this package.
581 PACKAGE_NAME='GDash'
582 PACKAGE_TARNAME='gdash'
583 PACKAGE_VERSION='20130317unstable'
584 PACKAGE_STRING='GDash 20130317unstable'
585 PACKAGE_BUGREPORT='http://code.google.com/p/gdash/'
586 PACKAGE_URL=''
588 ac_unique_file="src/gtkmain.cpp"
589 gt_needs=
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBPNG_LIBS
630 LIBPNG_CFLAGS
631 GL_LIBS
632 GL_CFLAGS
634 XMKMF
635 SDL_LIBS
636 SDL_CFLAGS
637 SDL_CONFIG
638 SDL_FALSE
639 SDL_TRUE
640 GTK_LIBS
641 GTK_CFLAGS
642 GTK_FALSE
643 GTK_TRUE
644 GLIB_COMPILE_RESOURCES
645 GLIB_MKENUMS
646 GOBJECT_QUERY
647 GLIB_GENMARSHAL
648 GLIB_LIBS
649 GLIB_CFLAGS
650 LIBOBJS
651 POSUB
652 LTLIBINTL
653 LIBINTL
654 INTLLIBS
655 LTLIBICONV
656 LIBICONV
657 INTL_MACOSX_LIBS
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 XGETTEXT_EXTRA_OPTIONS
667 MSGMERGE
668 XGETTEXT_015
669 XGETTEXT
670 GMSGFMT_015
671 MSGFMT_015
672 GMSGFMT
673 MSGFMT
674 GETTEXT_MACRO_VERSION
675 USE_NLS
676 EGREP
677 GREP
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 am__fastdepCXX_FALSE
683 am__fastdepCXX_TRUE
684 CXXDEPMODE
685 ac_ct_CXX
686 CXXFLAGS
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_silent_rules
774 enable_dependency_tracking
775 enable_nls
776 with_gnu_ld
777 enable_rpath
778 with_libiconv_prefix
779 with_libintl_prefix
780 with_gtk
781 with_sdl
782 enable_glibtest
783 enable_gtktest
784 with_sdl_prefix
785 with_sdl_exec_prefix
786 enable_sdltest
787 with_x
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
798 CXXFLAGS
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
804 XMKMF
805 LIBPNG_CFLAGS
806 LIBPNG_LIBS'
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
857 ac_prev=
858 ac_dashdash=
859 for ac_option
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
878 ac_dashdash=yes ;;
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
897 --config-cache | -C)
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 esac
1215 done
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1299 /^X\(\/\/\)$/{
1300 s//\1/
1303 /^X\(\/\).*/{
1304 s//\1/
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1312 else
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures GDash 20130317unstable to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/gdash]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1402 cat <<\_ACEOF
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 X features:
1410 --x-includes=DIR X include files are in DIR
1411 --x-libraries=DIR X library files are in DIR
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of GDash 20130317unstable:";;
1422 esac
1423 cat <<\_ACEOF
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: `make V=1')
1430 --disable-silent-rules verbose build output (undo: `make V=0')
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
1433 --disable-nls do not use Native Language Support
1434 --disable-rpath do not hardcode runtime library paths
1435 --disable-glibtest do not try to compile and run a test GLIB program
1436 --disable-gtktest do not try to compile and run a test GTK+ program
1437 --disable-sdltest Do not try to compile and run a test SDL program
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-gnu-ld assume the C compiler uses GNU ld default=no
1443 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1444 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1445 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1446 --without-libintl-prefix don't search for libintl in includedir and libdir
1447 --without-gtk disables using gtk+
1448 --without-sdl disables using sdl
1449 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1450 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1451 --with-x use the X Window System
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CXX C++ compiler command
1462 CXXFLAGS C++ compiler flags
1463 PKG_CONFIG path to pkg-config utility
1464 PKG_CONFIG_PATH
1465 directories to add to pkg-config's search path
1466 PKG_CONFIG_LIBDIR
1467 path overriding pkg-config's built-in search path
1468 CPP C preprocessor
1469 XMKMF Path to xmkmf, Makefile generator for X Window System
1470 LIBPNG_CFLAGS
1471 C compiler flags for LIBPNG, overriding pkg-config
1472 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to <http://code.google.com/p/gdash/>.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 GDash configure 20130317unstable
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=1
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_cxx_try_compile LINENO
1593 # ----------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_cxx_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_cxx_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1623 ac_retval=1
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1628 } # ac_fn_cxx_try_compile
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_link ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 test -x conftest$ac_exeext
1658 }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=1
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_link
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 ac_retval=1
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_cpp
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_run
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1783 #undef $2
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1800 main ()
1802 return $2 ();
1804 return 0;
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_func
1822 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1825 # the include files in INCLUDES and setting the cache variable VAR
1826 # accordingly.
1827 ac_fn_c_check_header_mongrel ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if eval \${$3+:} false; then :
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 else
1840 # Is the header compilable?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1842 $as_echo_n "checking $2 usability... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 ac_header_compiler=yes
1850 else
1851 ac_header_compiler=no
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1855 $as_echo "$ac_header_compiler" >&6; }
1857 # Is the header present?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1859 $as_echo_n "checking $2 presence... " >&6; }
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_cpp "$LINENO"; then :
1865 ac_header_preproc=yes
1866 else
1867 ac_header_preproc=no
1869 rm -f conftest.err conftest.i conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1871 $as_echo "$ac_header_preproc" >&6; }
1873 # So? What about this header?
1874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1875 yes:no: )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1877 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 no:yes:* )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1883 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1885 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1887 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1889 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 ( $as_echo "## ---------------------------------------------- ##
1893 ## Report this to http://code.google.com/p/gdash/ ##
1894 ## ---------------------------------------------- ##"
1895 ) | sed "s/^/$as_me: WARNING: /" >&2
1897 esac
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 eval "$3=\$ac_header_compiler"
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 } # ac_fn_c_check_header_mongrel
1913 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists and can be compiled using the include files in
1916 # INCLUDES, setting the cache variable VAR accordingly.
1917 ac_fn_c_check_header_compile ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924 else
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_header_compile
1944 # ac_fn_c_find_uintX_t LINENO BITS VAR
1945 # ------------------------------------
1946 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1947 # accordingly.
1948 ac_fn_c_find_uintX_t ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1952 $as_echo_n "checking for uint$2_t... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=no"
1957 # Order is important - never check a type that is potentially smaller
1958 # than half of the expected target width.
1959 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1960 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $ac_includes_default
1965 main ()
1967 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1968 test_array [0] = 0;
1969 return test_array [0];
1972 return 0;
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 case $ac_type in #(
1977 uint$2_t) :
1978 eval "$3=yes" ;; #(
1979 *) :
1980 eval "$3=\$ac_type" ;;
1981 esac
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 if eval test \"x\$"$3"\" = x"no"; then :
1986 else
1987 break
1989 done
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_find_uintX_t
1997 cat >config.log <<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2001 It was created by GDash $as_me 20130317unstable, which was
2002 generated by GNU Autoconf 2.69. Invocation command line was
2004 $ $0 $@
2006 _ACEOF
2007 exec 5>>config.log
2009 cat <<_ASUNAME
2010 ## --------- ##
2011 ## Platform. ##
2012 ## --------- ##
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2031 _ASUNAME
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 $as_echo "PATH: $as_dir"
2039 done
2040 IFS=$as_save_IFS
2042 } >&5
2044 cat >&5 <<_ACEOF
2047 ## ----------- ##
2048 ## Core tests. ##
2049 ## ----------- ##
2051 _ACEOF
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_configure_args=
2060 ac_configure_args0=
2061 ac_configure_args1=
2062 ac_must_keep_next=false
2063 for ac_pass in 1 2
2065 for ac_arg
2067 case $ac_arg in
2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070 | -silent | --silent | --silen | --sile | --sil)
2071 continue ;;
2072 *\'*)
2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 esac
2075 case $ac_pass in
2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078 as_fn_append ac_configure_args1 " '$ac_arg'"
2079 if test $ac_must_keep_next = true; then
2080 ac_must_keep_next=false # Got value, back to normal.
2081 else
2082 case $ac_arg in
2083 *=* | --config-cache | -C | -disable-* | --disable-* \
2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086 | -with-* | --with-* | -without-* | --without-* | --x)
2087 case "$ac_configure_args0 " in
2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089 esac
2091 -* ) ac_must_keep_next=true ;;
2092 esac
2094 as_fn_append ac_configure_args " '$ac_arg'"
2096 esac
2097 done
2098 done
2099 { ac_configure_args0=; unset ac_configure_args0;}
2100 { ac_configure_args1=; unset ac_configure_args1;}
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log. We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2110 echo
2112 $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 # The following way of writing the cache mishandles newlines in values,
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in #(
2121 *${as_nl}*)
2122 case $ac_var in #(
2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 esac
2126 case $ac_var in #(
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2130 esac ;;
2131 esac
2132 done
2133 (set) 2>&1 |
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2136 sed -n \
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 ;; #(
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2143 esac |
2144 sort
2146 echo
2148 $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151 echo
2152 for ac_var in $ac_subst_vars
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2162 if test -n "$ac_subst_files"; then
2163 $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166 echo
2167 for ac_var in $ac_subst_files
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2178 if test -s confdefs.h; then
2179 $as_echo "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182 echo
2183 cat confdefs.h
2184 echo
2186 test "$ac_signal" != 0 &&
2187 $as_echo "$as_me: caught signal $ac_signal"
2188 $as_echo "$as_me: exit $exit_status"
2189 } >&5
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 exit $exit_status
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2202 $as_echo "/* confdefs.h */" > confdefs.h
2204 # Predefined preprocessor variables.
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2208 _ACEOF
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212 _ACEOF
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2216 _ACEOF
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2220 _ACEOF
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224 _ACEOF
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2228 _ACEOF
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2233 ac_site_file1=NONE
2234 ac_site_file2=NONE
2235 if test -n "$CONFIG_SITE"; then
2236 # We do not want a PATH search for config.site.
2237 case $CONFIG_SITE in #((
2238 -*) ac_site_file1=./$CONFIG_SITE;;
2239 */*) ac_site_file1=$CONFIG_SITE;;
2240 *) ac_site_file1=./$CONFIG_SITE;;
2241 esac
2242 elif test "x$prefix" != xNONE; then
2243 ac_site_file1=$prefix/share/config.site
2244 ac_site_file2=$prefix/etc/config.site
2245 else
2246 ac_site_file1=$ac_default_prefix/share/config.site
2247 ac_site_file2=$ac_default_prefix/etc/config.site
2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2251 test "x$ac_site_file" = xNONE && continue
2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2256 . "$ac_site_file" \
2257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2262 done
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270 case $cache_file in
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2273 esac
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278 >$cache_file
2281 gt_needs="$gt_needs "
2282 # Check that the precious variables saved in the cache have kept the same
2283 # value.
2284 ac_cache_corrupted=false
2285 for ac_var in $ac_precious_vars; do
2286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2287 eval ac_new_set=\$ac_env_${ac_var}_set
2288 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2289 eval ac_new_val=\$ac_env_${ac_var}_value
2290 case $ac_old_set,$ac_new_set in
2291 set,)
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2295 ,set)
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2297 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2298 ac_cache_corrupted=: ;;
2299 ,);;
2301 if test "x$ac_old_val" != "x$ac_new_val"; then
2302 # differences in whitespace do not lead to failure.
2303 ac_old_val_w=`echo x $ac_old_val`
2304 ac_new_val_w=`echo x $ac_new_val`
2305 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2307 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2308 ac_cache_corrupted=:
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2311 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2312 eval $ac_var=\$ac_old_val
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2315 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2317 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2318 fi;;
2319 esac
2320 # Pass precious variables to config.status.
2321 if test "$ac_new_set" = set; then
2322 case $ac_new_val in
2323 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 *) ac_arg=$ac_var=$ac_new_val ;;
2325 esac
2326 case " $ac_configure_args " in
2327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2328 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2329 esac
2331 done
2332 if $ac_cache_corrupted; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2336 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2337 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339 ## -------------------- ##
2340 ## Main body of script. ##
2341 ## -------------------- ##
2343 ac_ext=c
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 am__api_version='1.11'
2353 ac_aux_dir=
2354 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2355 if test -f "$ac_dir/install-sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install-sh -c"
2358 break
2359 elif test -f "$ac_dir/install.sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install.sh -c"
2362 break
2363 elif test -f "$ac_dir/shtool"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/shtool install -c"
2366 break
2368 done
2369 if test -z "$ac_aux_dir"; then
2370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 # These three variables are undocumented and unsupported,
2374 # and are intended to be withdrawn in a future Autoconf release.
2375 # They can cause serious problems if a builder's source tree is in a directory
2376 # whose full name contains unusual characters.
2377 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2378 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2379 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382 # Find a good install program. We prefer a C program (faster),
2383 # so one script is as good as another. But avoid the broken or
2384 # incompatible versions:
2385 # SysV /etc/install, /usr/sbin/install
2386 # SunOS /usr/etc/install
2387 # IRIX /sbin/install
2388 # AIX /bin/install
2389 # AmigaOS /C/install, which installs bootblocks on floppy discs
2390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393 # OS/2's system install, which has a completely different semantic
2394 # ./install, which can be erroneously created by make from ./install.sh.
2395 # Reject install programs that cannot install multiple files.
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2397 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2398 if test -z "$INSTALL"; then
2399 if ${ac_cv_path_install+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 # Account for people who put trailing slashes in PATH elements.
2408 case $as_dir/ in #((
2409 ./ | .// | /[cC]/* | \
2410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2411 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2412 /usr/ucb/* ) ;;
2414 # OSF1 and SCO ODT 3.0 have their own names for install.
2415 # Don't use installbsd from OSF since it installs stuff as root
2416 # by default.
2417 for ac_prog in ginstall scoinst install; do
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2420 if test $ac_prog = install &&
2421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # AIX install. It has an incompatible calling convention.
2424 elif test $ac_prog = install &&
2425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426 # program-specific install script used by HP pwplus--don't use.
2428 else
2429 rm -rf conftest.one conftest.two conftest.dir
2430 echo one > conftest.one
2431 echo two > conftest.two
2432 mkdir conftest.dir
2433 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2434 test -s conftest.one && test -s conftest.two &&
2435 test -s conftest.dir/conftest.one &&
2436 test -s conftest.dir/conftest.two
2437 then
2438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2439 break 3
2443 done
2444 done
2446 esac
2448 done
2449 IFS=$as_save_IFS
2451 rm -rf conftest.one conftest.two conftest.dir
2454 if test "${ac_cv_path_install+set}" = set; then
2455 INSTALL=$ac_cv_path_install
2456 else
2457 # As a last resort, use the slow shell script. Don't cache a
2458 # value for INSTALL within a source directory, because that will
2459 # break other packages using the cache if that directory is
2460 # removed, or if the value is a relative name.
2461 INSTALL=$ac_install_sh
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2465 $as_echo "$INSTALL" >&6; }
2467 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2468 # It thinks the first close brace ends the variable substitution.
2469 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2476 $as_echo_n "checking whether build environment is sane... " >&6; }
2477 # Just in case
2478 sleep 1
2479 echo timestamp > conftest.file
2480 # Reject unsafe characters in $srcdir or the absolute working directory
2481 # name. Accept space and tab only in the latter.
2482 am_lf='
2484 case `pwd` in
2485 *[\\\"\#\$\&\'\`$am_lf]*)
2486 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2487 esac
2488 case $srcdir in
2489 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2490 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2491 esac
2493 # Do `set' in a subshell so we don't clobber the current shell's
2494 # arguments. Must try -L first in case configure is actually a
2495 # symlink; some systems play weird games with the mod time of symlinks
2496 # (eg FreeBSD returns the mod time of the symlink's containing
2497 # directory).
2498 if (
2499 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2500 if test "$*" = "X"; then
2501 # -L didn't work.
2502 set X `ls -t "$srcdir/configure" conftest.file`
2504 rm -f conftest.file
2505 if test "$*" != "X $srcdir/configure conftest.file" \
2506 && test "$*" != "X conftest.file $srcdir/configure"; then
2508 # If neither matched, then we have a broken ls. This can happen
2509 # if, for instance, CONFIG_SHELL is bash and it inherits a
2510 # broken ls alias from the environment. This has actually
2511 # happened. Such a system could not be considered "sane".
2512 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" "$LINENO" 5
2516 test "$2" = conftest.file
2518 then
2519 # Ok.
2521 else
2522 as_fn_error $? "newly created file is older than distributed files!
2523 Check your system clock" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526 $as_echo "yes" >&6; }
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s,x,x', remove it if useless.
2534 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2535 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537 # expand $ac_aux_dir to an absolute path
2538 am_aux_dir=`cd $ac_aux_dir && pwd`
2540 if test x"${MISSING+set}" != xset; then
2541 case $am_aux_dir in
2542 *\ * | *\ *)
2543 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2545 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2546 esac
2548 # Use eval to expand $SHELL
2549 if eval "$MISSING --run true"; then
2550 am_missing_run="$MISSING --run "
2551 else
2552 am_missing_run=
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2554 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2557 if test x"${install_sh}" != xset; then
2558 case $am_aux_dir in
2559 *\ * | *\ *)
2560 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2562 install_sh="\${SHELL} $am_aux_dir/install-sh"
2563 esac
2566 # Installed binaries are usually stripped using `strip' when the user
2567 # run `make install-strip'. However `strip' might not be the right
2568 # tool to use in cross-compilation environments, therefore Automake
2569 # will honor the `STRIP' environment variable to overrule this program.
2570 if test "$cross_compiling" != no; then
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}strip; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_STRIP+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$STRIP"; then
2580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 STRIP=$ac_cv_prog_STRIP
2600 if test -n "$STRIP"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2602 $as_echo "$STRIP" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2610 if test -z "$ac_cv_prog_STRIP"; then
2611 ac_ct_STRIP=$STRIP
2612 # Extract the first word of "strip", so it can be a program name with args.
2613 set dummy strip; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$ac_ct_STRIP"; then
2620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_ac_ct_STRIP="strip"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2633 done
2634 done
2635 IFS=$as_save_IFS
2639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2640 if test -n "$ac_ct_STRIP"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2642 $as_echo "$ac_ct_STRIP" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2648 if test "x$ac_ct_STRIP" = x; then
2649 STRIP=":"
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652 yes:)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655 ac_tool_warned=yes ;;
2656 esac
2657 STRIP=$ac_ct_STRIP
2659 else
2660 STRIP="$ac_cv_prog_STRIP"
2664 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2667 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2668 if test -z "$MKDIR_P"; then
2669 if ${ac_cv_path_mkdir+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_prog in mkdir gmkdir; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2680 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2681 'mkdir (GNU coreutils) '* | \
2682 'mkdir (coreutils) '* | \
2683 'mkdir (fileutils) '4.1*)
2684 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2685 break 3;;
2686 esac
2687 done
2688 done
2689 done
2690 IFS=$as_save_IFS
2694 test -d ./--version && rmdir ./--version
2695 if test "${ac_cv_path_mkdir+set}" = set; then
2696 MKDIR_P="$ac_cv_path_mkdir -p"
2697 else
2698 # As a last resort, use the slow shell script. Don't cache a
2699 # value for MKDIR_P within a source directory, because that will
2700 # break other packages using the cache if that directory is
2701 # removed, or if the value is a relative name.
2702 MKDIR_P="$ac_install_sh -d"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2706 $as_echo "$MKDIR_P" >&6; }
2708 mkdir_p="$MKDIR_P"
2709 case $mkdir_p in
2710 [\\/$]* | ?:[\\/]*) ;;
2711 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2712 esac
2714 for ac_prog in gawk mawk nawk awk
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_AWK+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$AWK"; then
2724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_AWK="$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2739 IFS=$as_save_IFS
2743 AWK=$ac_cv_prog_AWK
2744 if test -n "$AWK"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2746 $as_echo "$AWK" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2753 test -n "$AWK" && break
2754 done
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2757 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2758 set x ${MAKE-make}
2759 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2760 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 cat >conftest.make <<\_ACEOF
2764 SHELL = /bin/sh
2765 all:
2766 @echo '@@@%%%=$(MAKE)=@@@%%%'
2767 _ACEOF
2768 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2769 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2770 *@@@%%%=?*=@@@%%%*)
2771 eval ac_cv_prog_make_${ac_make}_set=yes;;
2773 eval ac_cv_prog_make_${ac_make}_set=no;;
2774 esac
2775 rm -f conftest.make
2777 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779 $as_echo "yes" >&6; }
2780 SET_MAKE=
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 SET_MAKE="MAKE=${MAKE-make}"
2787 rm -rf .tst 2>/dev/null
2788 mkdir .tst 2>/dev/null
2789 if test -d .tst; then
2790 am__leading_dot=.
2791 else
2792 am__leading_dot=_
2794 rmdir .tst 2>/dev/null
2796 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2797 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2798 # is not polluted with repeated "-I."
2799 am__isrc=' -I$(srcdir)'
2800 # test to see if srcdir already configured
2801 if test -f $srcdir/config.status; then
2802 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2806 # test whether we have cygpath
2807 if test -z "$CYGPATH_W"; then
2808 if (cygpath --version) >/dev/null 2>/dev/null; then
2809 CYGPATH_W='cygpath -w'
2810 else
2811 CYGPATH_W=echo
2816 # Define the identity of the package.
2817 PACKAGE='gdash'
2818 VERSION='20130317unstable'
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE "$PACKAGE"
2823 _ACEOF
2826 cat >>confdefs.h <<_ACEOF
2827 #define VERSION "$VERSION"
2828 _ACEOF
2830 # Some tools Automake needs.
2832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846 # We need awk for the "check" target. The system "awk" is bad on
2847 # some platforms.
2848 # Always define AMTAR for backward compatibility. Yes, it's still used
2849 # in the wild :-( We should find a proper way to deprecate it ...
2850 AMTAR='$${TAR-tar}'
2852 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2858 ac_config_headers="$ac_config_headers config.h"
2860 # Check whether --enable-silent-rules was given.
2861 if test "${enable_silent_rules+set}" = set; then :
2862 enableval=$enable_silent_rules;
2865 case $enable_silent_rules in
2866 yes) AM_DEFAULT_VERBOSITY=0;;
2867 no) AM_DEFAULT_VERBOSITY=1;;
2868 *) AM_DEFAULT_VERBOSITY=0;;
2869 esac
2870 am_make=${MAKE-make}
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2872 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2873 if ${am_cv_make_support_nested_variables+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if $as_echo 'TRUE=$(BAR$(V))
2877 BAR0=false
2878 BAR1=true
2880 am__doit:
2881 @$(TRUE)
2882 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2883 am_cv_make_support_nested_variables=yes
2884 else
2885 am_cv_make_support_nested_variables=no
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2889 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2890 if test $am_cv_make_support_nested_variables = yes; then
2891 AM_V='$(V)'
2892 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2893 else
2894 AM_V=$AM_DEFAULT_VERBOSITY
2895 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2897 AM_BACKSLASH='\'
2900 ac_ext=c
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_CC+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2927 done
2928 done
2929 IFS=$as_save_IFS
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2944 if test -z "$ac_cv_prog_CC"; then
2945 ac_ct_CC=$CC
2946 # Extract the first word of "gcc", so it can be a program name with args.
2947 set dummy gcc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_CC="gcc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2969 IFS=$as_save_IFS
2973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974 if test -n "$ac_ct_CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2976 $as_echo "$ac_ct_CC" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2982 if test "x$ac_ct_CC" = x; then
2983 CC=""
2984 else
2985 case $cross_compiling:$ac_tool_warned in
2986 yes:)
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989 ac_tool_warned=yes ;;
2990 esac
2991 CC=$ac_ct_CC
2993 else
2994 CC="$ac_cv_prog_CC"
2997 if test -z "$CC"; then
2998 if test -n "$ac_tool_prefix"; then
2999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}cc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_CC+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_CC="${ac_tool_prefix}cc"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3038 if test -z "$CC"; then
3039 # Extract the first word of "cc", so it can be a program name with args.
3040 set dummy cc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_CC+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 ac_prog_rejected=no
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3058 ac_prog_rejected=yes
3059 continue
3061 ac_cv_prog_CC="cc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3065 done
3066 done
3067 IFS=$as_save_IFS
3069 if test $ac_prog_rejected = yes; then
3070 # We found a bogon in the path, so make sure we never use it.
3071 set dummy $ac_cv_prog_CC
3072 shift
3073 if test $# != 0; then
3074 # We chose a different compiler from the bogus one.
3075 # However, it has the same basename, so the bogon will be chosen
3076 # first if we set CC to just the basename; use the full file name.
3077 shift
3078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3083 CC=$ac_cv_prog_CC
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 for ac_prog in cl.exe
3098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_CC+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3119 done
3120 done
3121 IFS=$as_save_IFS
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 $as_echo "$CC" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3135 test -n "$CC" && break
3136 done
3138 if test -z "$CC"; then
3139 ac_ct_CC=$CC
3140 for ac_prog in cl.exe
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 if test -n "$ac_ct_CC"; then
3150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_ac_ct_CC="$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3163 done
3164 done
3165 IFS=$as_save_IFS
3169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3170 if test -n "$ac_ct_CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3172 $as_echo "$ac_ct_CC" >&6; }
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179 test -n "$ac_ct_CC" && break
3180 done
3182 if test "x$ac_ct_CC" = x; then
3183 CC=""
3184 else
3185 case $cross_compiling:$ac_tool_warned in
3186 yes:)
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189 ac_tool_warned=yes ;;
3190 esac
3191 CC=$ac_ct_CC
3198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "no acceptable C compiler found in \$PATH
3201 See \`config.log' for more details" "$LINENO" 5; }
3203 # Provide some information about the compiler.
3204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3205 set X $ac_compile
3206 ac_compiler=$2
3207 for ac_option in --version -v -V -qversion; do
3208 { { ac_try="$ac_compiler $ac_option >&5"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3216 ac_status=$?
3217 if test -s conftest.err; then
3218 sed '10a\
3219 ... rest of stderr output deleted ...
3220 10q' conftest.err >conftest.er1
3221 cat conftest.er1 >&5
3223 rm -f conftest.er1 conftest.err
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3226 done
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3232 main ()
3236 return 0;
3238 _ACEOF
3239 ac_clean_files_save=$ac_clean_files
3240 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3241 # Try to create an executable without -o first, disregard a.out.
3242 # It will help us diagnose broken compilers, and finding out an intuition
3243 # of exeext.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3245 $as_echo_n "checking whether the C compiler works... " >&6; }
3246 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3248 # The possible output files:
3249 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3251 ac_rmfiles=
3252 for ac_file in $ac_files
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3257 esac
3258 done
3259 rm -f $ac_rmfiles
3261 if { { ac_try="$ac_link_default"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_link_default") 2>&5
3269 ac_status=$?
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3275 # so that the user can short-circuit this test for compilers unknown to
3276 # Autoconf.
3277 for ac_file in $ac_files ''
3279 test -f "$ac_file" || continue
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3283 [ab].out )
3284 # We found the default executable, but exeext='' is most
3285 # certainly right.
3286 break;;
3287 *.* )
3288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3289 then :; else
3290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 # We set ac_cv_exeext here because the later test for it is not
3293 # safe: cross compilers may not add the suffix if given an `-o'
3294 # argument, so we may need to know it at that point already.
3295 # Even if this section looks crufty: it has the advantage of
3296 # actually working.
3297 break;;
3299 break;;
3300 esac
3301 done
3302 test "$ac_cv_exeext" = no && ac_cv_exeext=
3304 else
3305 ac_file=''
3307 if test -z "$ac_file"; then :
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 $as_echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error 77 "C compiler cannot create executables
3316 See \`config.log' for more details" "$LINENO" 5; }
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 $as_echo "yes" >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3322 $as_echo_n "checking for C compiler default output file name... " >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3324 $as_echo "$ac_file" >&6; }
3325 ac_exeext=$ac_cv_exeext
3327 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3328 ac_clean_files=$ac_clean_files_save
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3330 $as_echo_n "checking for suffix of executables... " >&6; }
3331 if { { ac_try="$ac_link"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_link") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3343 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3344 # work properly (i.e., refer to `conftest.exe'), while it won't with
3345 # `rm'.
3346 for ac_file in conftest.exe conftest conftest.*; do
3347 test -f "$ac_file" || continue
3348 case $ac_file in
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 break;;
3352 * ) break;;
3353 esac
3354 done
3355 else
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3359 See \`config.log' for more details" "$LINENO" 5; }
3361 rm -f conftest conftest$ac_cv_exeext
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3363 $as_echo "$ac_cv_exeext" >&6; }
3365 rm -f conftest.$ac_ext
3366 EXEEXT=$ac_cv_exeext
3367 ac_exeext=$EXEEXT
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370 #include <stdio.h>
3372 main ()
3374 FILE *f = fopen ("conftest.out", "w");
3375 return ferror (f) || fclose (f) != 0;
3378 return 0;
3380 _ACEOF
3381 ac_clean_files="$ac_clean_files conftest.out"
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3385 $as_echo_n "checking whether we are cross compiling... " >&6; }
3386 if test "$cross_compiling" != yes; then
3387 { { ac_try="$ac_link"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }
3398 if { ac_try='./conftest$ac_cv_exeext'
3399 { { case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_try") 2>&5
3406 ac_status=$?
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; }; then
3409 cross_compiling=no
3410 else
3411 if test "$cross_compiling" = maybe; then
3412 cross_compiling=yes
3413 else
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $? "cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details" "$LINENO" 5; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3426 ac_clean_files=$ac_clean_files_save
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3428 $as_echo_n "checking for suffix of object files... " >&6; }
3429 if ${ac_cv_objext+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.o conftest.obj
3444 if { { ac_try="$ac_compile"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_compile") 2>&5
3452 ac_status=$?
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; then :
3455 for ac_file in conftest.o conftest.obj conftest.*; do
3456 test -f "$ac_file" || continue;
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3460 break;;
3461 esac
3462 done
3463 else
3464 $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details" "$LINENO" 5; }
3472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3475 $as_echo "$ac_cv_objext" >&6; }
3476 OBJEXT=$ac_cv_objext
3477 ac_objext=$OBJEXT
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3480 if ${ac_cv_c_compiler_gnu+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3487 main ()
3489 #ifndef __GNUC__
3490 choke me
3491 #endif
3494 return 0;
3496 _ACEOF
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498 ac_compiler_gnu=yes
3499 else
3500 ac_compiler_gnu=no
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3508 if test $ac_compiler_gnu = yes; then
3509 GCC=yes
3510 else
3511 GCC=
3513 ac_test_CFLAGS=${CFLAGS+set}
3514 ac_save_CFLAGS=$CFLAGS
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3517 if ${ac_cv_prog_cc_g+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 ac_save_c_werror_flag=$ac_c_werror_flag
3521 ac_c_werror_flag=yes
3522 ac_cv_prog_cc_g=no
3523 CFLAGS="-g"
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3528 main ()
3532 return 0;
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_cv_prog_cc_g=yes
3537 else
3538 CFLAGS=""
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3543 main ()
3547 return 0;
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3552 else
3553 ac_c_werror_flag=$ac_save_c_werror_flag
3554 CFLAGS="-g"
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567 ac_cv_prog_cc_g=yes
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3577 $as_echo "$ac_cv_prog_cc_g" >&6; }
3578 if test "$ac_test_CFLAGS" = set; then
3579 CFLAGS=$ac_save_CFLAGS
3580 elif test $ac_cv_prog_cc_g = yes; then
3581 if test "$GCC" = yes; then
3582 CFLAGS="-g -O2"
3583 else
3584 CFLAGS="-g"
3586 else
3587 if test "$GCC" = yes; then
3588 CFLAGS="-O2"
3589 else
3590 CFLAGS=
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3595 if ${ac_cv_prog_cc_c89+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 ac_cv_prog_cc_c89=no
3599 ac_save_CC=$CC
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602 #include <stdarg.h>
3603 #include <stdio.h>
3604 struct stat;
3605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3606 struct buf { int x; };
3607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3608 static char *e (p, i)
3609 char **p;
3610 int i;
3612 return p[i];
3614 static char *f (char * (*g) (char **, int), char **p, ...)
3616 char *s;
3617 va_list v;
3618 va_start (v,p);
3619 s = g (p, va_arg (v,int));
3620 va_end (v);
3621 return s;
3624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3625 function prototypes and stuff, but not '\xHH' hex character constants.
3626 These don't provoke an error unfortunately, instead are silently treated
3627 as 'x'. The following induces an error, until -std is added to get
3628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3629 array size at least. It's necessary to write '\x00'==0 to get something
3630 that's true only with -std. */
3631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3634 inside strings and character constants. */
3635 #define FOO(x) 'x'
3636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3638 int test (int i, double x);
3639 struct s1 {int (*f) (int a);};
3640 struct s2 {int (*f) (double a);};
3641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3642 int argc;
3643 char **argv;
3645 main ()
3647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3649 return 0;
3651 _ACEOF
3652 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3653 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3655 CC="$ac_save_CC $ac_arg"
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_cv_prog_cc_c89=$ac_arg
3659 rm -f core conftest.err conftest.$ac_objext
3660 test "x$ac_cv_prog_cc_c89" != "xno" && break
3661 done
3662 rm -f conftest.$ac_ext
3663 CC=$ac_save_CC
3666 # AC_CACHE_VAL
3667 case "x$ac_cv_prog_cc_c89" in
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3670 $as_echo "none needed" >&6; } ;;
3671 xno)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3673 $as_echo "unsupported" >&6; } ;;
3675 CC="$CC $ac_cv_prog_cc_c89"
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3677 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3678 esac
3679 if test "x$ac_cv_prog_cc_c89" != xno; then :
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 DEPDIR="${am__leading_dot}deps"
3690 ac_config_commands="$ac_config_commands depfiles"
3693 am_make=${MAKE-make}
3694 cat > confinc << 'END'
3695 am__doit:
3696 @echo this is the am__doit target
3697 .PHONY: am__doit
3699 # If we don't find an include directive, just comment out the code.
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3701 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3702 am__include="#"
3703 am__quote=
3704 _am_result=none
3705 # First try GNU make style include.
3706 echo "include confinc" > confmf
3707 # Ignore all kinds of additional output from `make'.
3708 case `$am_make -s -f confmf 2> /dev/null` in #(
3709 *the\ am__doit\ target*)
3710 am__include=include
3711 am__quote=
3712 _am_result=GNU
3714 esac
3715 # Now try BSD make style include.
3716 if test "$am__include" = "#"; then
3717 echo '.include "confinc"' > confmf
3718 case `$am_make -s -f confmf 2> /dev/null` in #(
3719 *the\ am__doit\ target*)
3720 am__include=.include
3721 am__quote="\""
3722 _am_result=BSD
3724 esac
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3729 $as_echo "$_am_result" >&6; }
3730 rm -f confinc confmf
3732 # Check whether --enable-dependency-tracking was given.
3733 if test "${enable_dependency_tracking+set}" = set; then :
3734 enableval=$enable_dependency_tracking;
3737 if test "x$enable_dependency_tracking" != xno; then
3738 am_depcomp="$ac_aux_dir/depcomp"
3739 AMDEPBACKSLASH='\'
3740 am__nodep='_no'
3742 if test "x$enable_dependency_tracking" != xno; then
3743 AMDEP_TRUE=
3744 AMDEP_FALSE='#'
3745 else
3746 AMDEP_TRUE='#'
3747 AMDEP_FALSE=
3752 depcc="$CC" am_compiler_list=
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3755 $as_echo_n "checking dependency style of $depcc... " >&6; }
3756 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3760 # We make a subdir and do the tests there. Otherwise we can end up
3761 # making bogus files that we don't know about and never remove. For
3762 # instance it was reported that on HP-UX the gcc test will end up
3763 # making a dummy file named `D' -- because `-MD' means `put the output
3764 # in D'.
3765 rm -rf conftest.dir
3766 mkdir conftest.dir
3767 # Copy depcomp to subdir because otherwise we won't find it if we're
3768 # using a relative directory.
3769 cp "$am_depcomp" conftest.dir
3770 cd conftest.dir
3771 # We will build objects and dependencies in a subdirectory because
3772 # it helps to detect inapplicable dependency modes. For instance
3773 # both Tru64's cc and ICC support -MD to output dependencies as a
3774 # side effect of compilation, but ICC will put the dependencies in
3775 # the current directory while Tru64 will put them in the object
3776 # directory.
3777 mkdir sub
3779 am_cv_CC_dependencies_compiler_type=none
3780 if test "$am_compiler_list" = ""; then
3781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3783 am__universal=false
3784 case " $depcc " in #(
3785 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3786 esac
3788 for depmode in $am_compiler_list; do
3789 # Setup a source with many dependencies, because some compilers
3790 # like to wrap large dependency lists on column 80 (with \), and
3791 # we should not choose a depcomp mode which is confused by this.
3793 # We need to recreate these files for each test, as the compiler may
3794 # overwrite some of them when testing with obscure command lines.
3795 # This happens at least with the AIX C compiler.
3796 : > sub/conftest.c
3797 for i in 1 2 3 4 5 6; do
3798 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3800 # Solaris 8's {/usr,}/bin/sh.
3801 touch sub/conftst$i.h
3802 done
3803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3806 # mode. It turns out that the SunPro C++ compiler does not properly
3807 # handle `-M -o', and we need to detect this. Also, some Intel
3808 # versions had trouble with output in subdirs
3809 am__obj=sub/conftest.${OBJEXT-o}
3810 am__minus_obj="-o $am__obj"
3811 case $depmode in
3812 gcc)
3813 # This depmode causes a compiler race in universal mode.
3814 test "$am__universal" = false || continue
3816 nosideeffect)
3817 # after this tag, mechanisms are not by side-effect, so they'll
3818 # only be used when explicitly requested
3819 if test "x$enable_dependency_tracking" = xyes; then
3820 continue
3821 else
3822 break
3825 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3826 # This compiler won't grok `-c -o', but also, the minuso test has
3827 # not run yet. These depmodes are late enough in the game, and
3828 # so weak that their functioning should not be impacted.
3829 am__obj=conftest.${OBJEXT-o}
3830 am__minus_obj=
3832 none) break ;;
3833 esac
3834 if depmode=$depmode \
3835 source=sub/conftest.c object=$am__obj \
3836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3838 >/dev/null 2>conftest.err &&
3839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3843 # icc doesn't choke on unknown options, it will just issue warnings
3844 # or remarks (even with -Werror). So we grep stderr for any message
3845 # that says an option was ignored or not supported.
3846 # When given -MP, icc 7.0 and 7.1 complain thusly:
3847 # icc: Command line warning: ignoring option '-M'; no argument required
3848 # The diagnosis changed in icc 8.0:
3849 # icc: Command line remark: option '-MP' not supported
3850 if (grep 'ignoring option' conftest.err ||
3851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3852 am_cv_CC_dependencies_compiler_type=$depmode
3853 break
3856 done
3858 cd ..
3859 rm -rf conftest.dir
3860 else
3861 am_cv_CC_dependencies_compiler_type=none
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3866 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3867 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870 test "x$enable_dependency_tracking" != xno \
3871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3872 am__fastdepCC_TRUE=
3873 am__fastdepCC_FALSE='#'
3874 else
3875 am__fastdepCC_TRUE='#'
3876 am__fastdepCC_FALSE=
3880 ac_ext=cpp
3881 ac_cpp='$CXXCPP $CPPFLAGS'
3882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3885 if test -z "$CXX"; then
3886 if test -n "$CCC"; then
3887 CXX=$CCC
3888 else
3889 if test -n "$ac_tool_prefix"; then
3890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CXX+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$CXX"; then
3900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 CXX=$ac_cv_prog_CXX
3920 if test -n "$CXX"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3922 $as_echo "$CXX" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$CXX" && break
3930 done
3932 if test -z "$CXX"; then
3933 ac_ct_CXX=$CXX
3934 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$ac_ct_CXX"; then
3944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_CXX="$ac_prog"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3957 done
3958 done
3959 IFS=$as_save_IFS
3963 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3964 if test -n "$ac_ct_CXX"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3966 $as_echo "$ac_ct_CXX" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3973 test -n "$ac_ct_CXX" && break
3974 done
3976 if test "x$ac_ct_CXX" = x; then
3977 CXX="g++"
3978 else
3979 case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3984 esac
3985 CXX=$ac_ct_CXX
3991 # Provide some information about the compiler.
3992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3993 set X $ac_compile
3994 ac_compiler=$2
3995 for ac_option in --version -v -V -qversion; do
3996 { { ac_try="$ac_compiler $ac_option >&5"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4004 ac_status=$?
4005 if test -s conftest.err; then
4006 sed '10a\
4007 ... rest of stderr output deleted ...
4008 10q' conftest.err >conftest.er1
4009 cat conftest.er1 >&5
4011 rm -f conftest.er1 conftest.err
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }
4014 done
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4017 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4018 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4025 main ()
4027 #ifndef __GNUC__
4028 choke me
4029 #endif
4032 return 0;
4034 _ACEOF
4035 if ac_fn_cxx_try_compile "$LINENO"; then :
4036 ac_compiler_gnu=yes
4037 else
4038 ac_compiler_gnu=no
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4045 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4046 if test $ac_compiler_gnu = yes; then
4047 GXX=yes
4048 else
4049 GXX=
4051 ac_test_CXXFLAGS=${CXXFLAGS+set}
4052 ac_save_CXXFLAGS=$CXXFLAGS
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4054 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4055 if ${ac_cv_prog_cxx_g+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4059 ac_cxx_werror_flag=yes
4060 ac_cv_prog_cxx_g=no
4061 CXXFLAGS="-g"
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4070 return 0;
4072 _ACEOF
4073 if ac_fn_cxx_try_compile "$LINENO"; then :
4074 ac_cv_prog_cxx_g=yes
4075 else
4076 CXXFLAGS=""
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_cxx_try_compile "$LINENO"; then :
4090 else
4091 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4092 CXXFLAGS="-g"
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4097 main ()
4101 return 0;
4103 _ACEOF
4104 if ac_fn_cxx_try_compile "$LINENO"; then :
4105 ac_cv_prog_cxx_g=yes
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4115 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4116 if test "$ac_test_CXXFLAGS" = set; then
4117 CXXFLAGS=$ac_save_CXXFLAGS
4118 elif test $ac_cv_prog_cxx_g = yes; then
4119 if test "$GXX" = yes; then
4120 CXXFLAGS="-g -O2"
4121 else
4122 CXXFLAGS="-g"
4124 else
4125 if test "$GXX" = yes; then
4126 CXXFLAGS="-O2"
4127 else
4128 CXXFLAGS=
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 depcc="$CXX" am_compiler_list=
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4140 $as_echo_n "checking dependency style of $depcc... " >&6; }
4141 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4145 # We make a subdir and do the tests there. Otherwise we can end up
4146 # making bogus files that we don't know about and never remove. For
4147 # instance it was reported that on HP-UX the gcc test will end up
4148 # making a dummy file named `D' -- because `-MD' means `put the output
4149 # in D'.
4150 rm -rf conftest.dir
4151 mkdir conftest.dir
4152 # Copy depcomp to subdir because otherwise we won't find it if we're
4153 # using a relative directory.
4154 cp "$am_depcomp" conftest.dir
4155 cd conftest.dir
4156 # We will build objects and dependencies in a subdirectory because
4157 # it helps to detect inapplicable dependency modes. For instance
4158 # both Tru64's cc and ICC support -MD to output dependencies as a
4159 # side effect of compilation, but ICC will put the dependencies in
4160 # the current directory while Tru64 will put them in the object
4161 # directory.
4162 mkdir sub
4164 am_cv_CXX_dependencies_compiler_type=none
4165 if test "$am_compiler_list" = ""; then
4166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4168 am__universal=false
4169 case " $depcc " in #(
4170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4171 esac
4173 for depmode in $am_compiler_list; do
4174 # Setup a source with many dependencies, because some compilers
4175 # like to wrap large dependency lists on column 80 (with \), and
4176 # we should not choose a depcomp mode which is confused by this.
4178 # We need to recreate these files for each test, as the compiler may
4179 # overwrite some of them when testing with obscure command lines.
4180 # This happens at least with the AIX C compiler.
4181 : > sub/conftest.c
4182 for i in 1 2 3 4 5 6; do
4183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4185 # Solaris 8's {/usr,}/bin/sh.
4186 touch sub/conftst$i.h
4187 done
4188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4191 # mode. It turns out that the SunPro C++ compiler does not properly
4192 # handle `-M -o', and we need to detect this. Also, some Intel
4193 # versions had trouble with output in subdirs
4194 am__obj=sub/conftest.${OBJEXT-o}
4195 am__minus_obj="-o $am__obj"
4196 case $depmode in
4197 gcc)
4198 # This depmode causes a compiler race in universal mode.
4199 test "$am__universal" = false || continue
4201 nosideeffect)
4202 # after this tag, mechanisms are not by side-effect, so they'll
4203 # only be used when explicitly requested
4204 if test "x$enable_dependency_tracking" = xyes; then
4205 continue
4206 else
4207 break
4210 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4211 # This compiler won't grok `-c -o', but also, the minuso test has
4212 # not run yet. These depmodes are late enough in the game, and
4213 # so weak that their functioning should not be impacted.
4214 am__obj=conftest.${OBJEXT-o}
4215 am__minus_obj=
4217 none) break ;;
4218 esac
4219 if depmode=$depmode \
4220 source=sub/conftest.c object=$am__obj \
4221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4223 >/dev/null 2>conftest.err &&
4224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4228 # icc doesn't choke on unknown options, it will just issue warnings
4229 # or remarks (even with -Werror). So we grep stderr for any message
4230 # that says an option was ignored or not supported.
4231 # When given -MP, icc 7.0 and 7.1 complain thusly:
4232 # icc: Command line warning: ignoring option '-M'; no argument required
4233 # The diagnosis changed in icc 8.0:
4234 # icc: Command line remark: option '-MP' not supported
4235 if (grep 'ignoring option' conftest.err ||
4236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4237 am_cv_CXX_dependencies_compiler_type=$depmode
4238 break
4241 done
4243 cd ..
4244 rm -rf conftest.dir
4245 else
4246 am_cv_CXX_dependencies_compiler_type=none
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4251 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4252 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4255 test "x$enable_dependency_tracking" != xno \
4256 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4257 am__fastdepCXX_TRUE=
4258 am__fastdepCXX_FALSE='#'
4259 else
4260 am__fastdepCXX_TRUE='#'
4261 am__fastdepCXX_FALSE=
4265 if test "x$CC" != xcc; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4268 else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 set dummy $CC; ac_cc=`$as_echo "$2" |
4273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4292 rm -f conftest2.*
4293 if { { case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; } &&
4303 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; };
4313 then
4314 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4315 if test "x$CC" != xcc; then
4316 # Test first that cc exists at all.
4317 if { ac_try='cc -c conftest.$ac_ext >&5'
4318 { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; }; then
4328 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4329 rm -f conftest2.*
4330 if { { case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; } &&
4340 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343 esac
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4347 ac_status=$?
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; };
4350 then
4351 # cc works too.
4353 else
4354 # cc exists but doesn't like -o.
4355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4359 else
4360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4362 rm -f core conftest*
4365 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4378 set dummy $CC
4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4398 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4399 if test -n "$ac_tool_prefix"; then
4400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4401 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 case $PKG_CONFIG in
4408 [\\/]* | ?:[\\/]*)
4409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4425 IFS=$as_save_IFS
4428 esac
4430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4431 if test -n "$PKG_CONFIG"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4433 $as_echo "$PKG_CONFIG" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4441 if test -z "$ac_cv_path_PKG_CONFIG"; then
4442 ac_pt_PKG_CONFIG=$PKG_CONFIG
4443 # Extract the first word of "pkg-config", so it can be a program name with args.
4444 set dummy pkg-config; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 case $ac_pt_PKG_CONFIG in
4451 [\\/]* | ?:[\\/]*)
4452 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4466 done
4467 done
4468 IFS=$as_save_IFS
4471 esac
4473 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4474 if test -n "$ac_pt_PKG_CONFIG"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4476 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4482 if test "x$ac_pt_PKG_CONFIG" = x; then
4483 PKG_CONFIG=""
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491 PKG_CONFIG=$ac_pt_PKG_CONFIG
4493 else
4494 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4498 if test -n "$PKG_CONFIG"; then
4499 _pkg_min_version=0.9.0
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4501 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4502 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4504 $as_echo "yes" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4508 PKG_CONFIG=""
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4514 $as_echo_n "checking for library containing strerror... " >&6; }
4515 if ${ac_cv_search_strerror+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 ac_func_search_save_LIBS=$LIBS
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4522 /* Override any GCC internal prototype to avoid an error.
4523 Use char because int might match the return type of a GCC
4524 builtin and then its argument prototype would still apply. */
4525 #ifdef __cplusplus
4526 extern "C"
4527 #endif
4528 char strerror ();
4530 main ()
4532 return strerror ();
4534 return 0;
4536 _ACEOF
4537 for ac_lib in '' cposix; do
4538 if test -z "$ac_lib"; then
4539 ac_res="none required"
4540 else
4541 ac_res=-l$ac_lib
4542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4544 if ac_fn_c_try_link "$LINENO"; then :
4545 ac_cv_search_strerror=$ac_res
4547 rm -f core conftest.err conftest.$ac_objext \
4548 conftest$ac_exeext
4549 if ${ac_cv_search_strerror+:} false; then :
4550 break
4552 done
4553 if ${ac_cv_search_strerror+:} false; then :
4555 else
4556 ac_cv_search_strerror=no
4558 rm conftest.$ac_ext
4559 LIBS=$ac_func_search_save_LIBS
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4562 $as_echo "$ac_cv_search_strerror" >&6; }
4563 ac_res=$ac_cv_search_strerror
4564 if test "$ac_res" != no; then :
4565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4575 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4576 # On Suns, sometimes $CPP names a directory.
4577 if test -n "$CPP" && test -d "$CPP"; then
4578 CPP=
4580 if test -z "$CPP"; then
4581 if ${ac_cv_prog_CPP+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 # Double quotes because CPP needs to be expanded
4585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4587 ac_preproc_ok=false
4588 for ac_c_preproc_warn_flag in '' yes
4590 # Use a header file that comes with gcc, so configuring glibc
4591 # with a fresh cross-compiler works.
4592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593 # <limits.h> exists even on freestanding compilers.
4594 # On the NeXT, cc -E runs the code through the compiler's parser,
4595 # not just through cpp. "Syntax error" is here to catch this case.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #ifdef __STDC__
4599 # include <limits.h>
4600 #else
4601 # include <assert.h>
4602 #endif
4603 Syntax error
4604 _ACEOF
4605 if ac_fn_c_try_cpp "$LINENO"; then :
4607 else
4608 # Broken: fails on valid input.
4609 continue
4611 rm -f conftest.err conftest.i conftest.$ac_ext
4613 # OK, works on sane cases. Now check whether nonexistent headers
4614 # can be detected and how.
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <ac_nonexistent.h>
4618 _ACEOF
4619 if ac_fn_c_try_cpp "$LINENO"; then :
4620 # Broken: success on invalid input.
4621 continue
4622 else
4623 # Passes both tests.
4624 ac_preproc_ok=:
4625 break
4627 rm -f conftest.err conftest.i conftest.$ac_ext
4629 done
4630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4631 rm -f conftest.i conftest.err conftest.$ac_ext
4632 if $ac_preproc_ok; then :
4633 break
4636 done
4637 ac_cv_prog_CPP=$CPP
4640 CPP=$ac_cv_prog_CPP
4641 else
4642 ac_cv_prog_CPP=$CPP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4645 $as_echo "$CPP" >&6; }
4646 ac_preproc_ok=false
4647 for ac_c_preproc_warn_flag in '' yes
4649 # Use a header file that comes with gcc, so configuring glibc
4650 # with a fresh cross-compiler works.
4651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652 # <limits.h> exists even on freestanding compilers.
4653 # On the NeXT, cc -E runs the code through the compiler's parser,
4654 # not just through cpp. "Syntax error" is here to catch this case.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #ifdef __STDC__
4658 # include <limits.h>
4659 #else
4660 # include <assert.h>
4661 #endif
4662 Syntax error
4663 _ACEOF
4664 if ac_fn_c_try_cpp "$LINENO"; then :
4666 else
4667 # Broken: fails on valid input.
4668 continue
4670 rm -f conftest.err conftest.i conftest.$ac_ext
4672 # OK, works on sane cases. Now check whether nonexistent headers
4673 # can be detected and how.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <ac_nonexistent.h>
4677 _ACEOF
4678 if ac_fn_c_try_cpp "$LINENO"; then :
4679 # Broken: success on invalid input.
4680 continue
4681 else
4682 # Passes both tests.
4683 ac_preproc_ok=:
4684 break
4686 rm -f conftest.err conftest.i conftest.$ac_ext
4688 done
4689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4690 rm -f conftest.i conftest.err conftest.$ac_ext
4691 if $ac_preproc_ok; then :
4693 else
4694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4696 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4697 See \`config.log' for more details" "$LINENO" 5; }
4700 ac_ext=c
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4708 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4709 if ${ac_cv_path_GREP+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -z "$GREP"; then
4713 ac_path_GREP_found=false
4714 # Loop through the user's path and test for each of PROGNAME-LIST
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_prog in grep ggrep; do
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4723 as_fn_executable_p "$ac_path_GREP" || continue
4724 # Check for GNU ac_path_GREP and select it if it is found.
4725 # Check for GNU $ac_path_GREP
4726 case `"$ac_path_GREP" --version 2>&1` in
4727 *GNU*)
4728 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4730 ac_count=0
4731 $as_echo_n 0123456789 >"conftest.in"
4732 while :
4734 cat "conftest.in" "conftest.in" >"conftest.tmp"
4735 mv "conftest.tmp" "conftest.in"
4736 cp "conftest.in" "conftest.nl"
4737 $as_echo 'GREP' >> "conftest.nl"
4738 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4740 as_fn_arith $ac_count + 1 && ac_count=$as_val
4741 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4742 # Best one so far, save it but keep looking for a better one
4743 ac_cv_path_GREP="$ac_path_GREP"
4744 ac_path_GREP_max=$ac_count
4746 # 10*(2^10) chars as input seems more than enough
4747 test $ac_count -gt 10 && break
4748 done
4749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4750 esac
4752 $ac_path_GREP_found && break 3
4753 done
4754 done
4755 done
4756 IFS=$as_save_IFS
4757 if test -z "$ac_cv_path_GREP"; then
4758 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4760 else
4761 ac_cv_path_GREP=$GREP
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4766 $as_echo "$ac_cv_path_GREP" >&6; }
4767 GREP="$ac_cv_path_GREP"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4771 $as_echo_n "checking for egrep... " >&6; }
4772 if ${ac_cv_path_EGREP+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4776 then ac_cv_path_EGREP="$GREP -E"
4777 else
4778 if test -z "$EGREP"; then
4779 ac_path_EGREP_found=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_prog in egrep; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4789 as_fn_executable_p "$ac_path_EGREP" || continue
4790 # Check for GNU ac_path_EGREP and select it if it is found.
4791 # Check for GNU $ac_path_EGREP
4792 case `"$ac_path_EGREP" --version 2>&1` in
4793 *GNU*)
4794 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4796 ac_count=0
4797 $as_echo_n 0123456789 >"conftest.in"
4798 while :
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo 'EGREP' >> "conftest.nl"
4804 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
4807 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_EGREP="$ac_path_EGREP"
4810 ac_path_EGREP_max=$ac_count
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4814 done
4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816 esac
4818 $ac_path_EGREP_found && break 3
4819 done
4820 done
4821 done
4822 IFS=$as_save_IFS
4823 if test -z "$ac_cv_path_EGREP"; then
4824 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4826 else
4827 ac_cv_path_EGREP=$EGREP
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4833 $as_echo "$ac_cv_path_EGREP" >&6; }
4834 EGREP="$ac_cv_path_EGREP"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4838 $as_echo_n "checking for ANSI C header files... " >&6; }
4839 if ${ac_cv_header_stdc+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 #include <stdlib.h>
4845 #include <stdarg.h>
4846 #include <string.h>
4847 #include <float.h>
4850 main ()
4854 return 0;
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 ac_cv_header_stdc=yes
4859 else
4860 ac_cv_header_stdc=no
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 if test $ac_cv_header_stdc = yes; then
4865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #include <string.h>
4870 _ACEOF
4871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872 $EGREP "memchr" >/dev/null 2>&1; then :
4874 else
4875 ac_cv_header_stdc=no
4877 rm -f conftest*
4881 if test $ac_cv_header_stdc = yes; then
4882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <stdlib.h>
4887 _ACEOF
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 $EGREP "free" >/dev/null 2>&1; then :
4891 else
4892 ac_cv_header_stdc=no
4894 rm -f conftest*
4898 if test $ac_cv_header_stdc = yes; then
4899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4900 if test "$cross_compiling" = yes; then :
4902 else
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #include <ctype.h>
4906 #include <stdlib.h>
4907 #if ((' ' & 0x0FF) == 0x020)
4908 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4909 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4910 #else
4911 # define ISLOWER(c) \
4912 (('a' <= (c) && (c) <= 'i') \
4913 || ('j' <= (c) && (c) <= 'r') \
4914 || ('s' <= (c) && (c) <= 'z'))
4915 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4916 #endif
4918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4920 main ()
4922 int i;
4923 for (i = 0; i < 256; i++)
4924 if (XOR (islower (i), ISLOWER (i))
4925 || toupper (i) != TOUPPER (i))
4926 return 2;
4927 return 0;
4929 _ACEOF
4930 if ac_fn_c_try_run "$LINENO"; then :
4932 else
4933 ac_cv_header_stdc=no
4935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4936 conftest.$ac_objext conftest.beam conftest.$ac_ext
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4942 $as_echo "$ac_cv_header_stdc" >&6; }
4943 if test $ac_cv_header_stdc = yes; then
4945 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4950 for ac_func in setlocale
4951 do :
4952 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4953 if test "x$ac_cv_func_setlocale" = xyes; then :
4954 cat >>confdefs.h <<_ACEOF
4955 #define HAVE_SETLOCALE 1
4956 _ACEOF
4959 done
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4964 $as_echo_n "checking whether NLS is requested... " >&6; }
4965 # Check whether --enable-nls was given.
4966 if test "${enable_nls+set}" = set; then :
4967 enableval=$enable_nls; USE_NLS=$enableval
4968 else
4969 USE_NLS=yes
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4973 $as_echo "$USE_NLS" >&6; }
4978 GETTEXT_MACRO_VERSION=0.18
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986 echo "#! /bin/sh" >conf$$.sh
4987 echo "exit 0" >>conf$$.sh
4988 chmod +x conf$$.sh
4989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4990 PATH_SEPARATOR=';'
4991 else
4992 PATH_SEPARATOR=:
4994 rm -f conf$$.sh
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.file <<_ASEOF
5000 #! /bin/sh
5001 exit 0
5002 _ASEOF
5003 chmod +x conf$$.file
5004 if test -x conf$$.file >/dev/null 2>&1; then
5005 ac_executable_p="test -x"
5006 else
5007 ac_executable_p="test -f"
5009 rm -f conf$$.file
5011 # Extract the first word of "msgfmt", so it can be a program name with args.
5012 set dummy msgfmt; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_path_MSGFMT+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 case "$MSGFMT" in
5019 [\\/]* | ?:[\\/]*)
5020 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5023 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5024 for ac_dir in $PATH; do
5025 IFS="$ac_save_IFS"
5026 test -z "$ac_dir" && ac_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5031 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5032 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5033 break 2
5036 done
5037 done
5038 IFS="$ac_save_IFS"
5039 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5041 esac
5043 MSGFMT="$ac_cv_path_MSGFMT"
5044 if test "$MSGFMT" != ":"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5046 $as_echo "$MSGFMT" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5052 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5053 set dummy gmsgfmt; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_path_GMSGFMT+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 case $GMSGFMT in
5060 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5079 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5081 esac
5083 GMSGFMT=$ac_cv_path_GMSGFMT
5084 if test -n "$GMSGFMT"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5086 $as_echo "$GMSGFMT" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5094 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5095 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5096 *) MSGFMT_015=$MSGFMT ;;
5097 esac
5099 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5100 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5101 *) GMSGFMT_015=$GMSGFMT ;;
5102 esac
5106 # Prepare PATH_SEPARATOR.
5107 # The user is always right.
5108 if test "${PATH_SEPARATOR+set}" != set; then
5109 echo "#! /bin/sh" >conf$$.sh
5110 echo "exit 0" >>conf$$.sh
5111 chmod +x conf$$.sh
5112 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5113 PATH_SEPARATOR=';'
5114 else
5115 PATH_SEPARATOR=:
5117 rm -f conf$$.sh
5120 # Find out how to test for executable files. Don't use a zero-byte file,
5121 # as systems may use methods other than mode bits to determine executability.
5122 cat >conf$$.file <<_ASEOF
5123 #! /bin/sh
5124 exit 0
5125 _ASEOF
5126 chmod +x conf$$.file
5127 if test -x conf$$.file >/dev/null 2>&1; then
5128 ac_executable_p="test -x"
5129 else
5130 ac_executable_p="test -f"
5132 rm -f conf$$.file
5134 # Extract the first word of "xgettext", so it can be a program name with args.
5135 set dummy xgettext; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_path_XGETTEXT+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 case "$XGETTEXT" in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5146 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5147 for ac_dir in $PATH; do
5148 IFS="$ac_save_IFS"
5149 test -z "$ac_dir" && ac_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5152 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5153 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5154 (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
5155 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5156 break 2
5159 done
5160 done
5161 IFS="$ac_save_IFS"
5162 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5164 esac
5166 XGETTEXT="$ac_cv_path_XGETTEXT"
5167 if test "$XGETTEXT" != ":"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5169 $as_echo "$XGETTEXT" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5175 rm -f messages.po
5177 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5178 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5179 *) XGETTEXT_015=$XGETTEXT ;;
5180 esac
5184 # Prepare PATH_SEPARATOR.
5185 # The user is always right.
5186 if test "${PATH_SEPARATOR+set}" != set; then
5187 echo "#! /bin/sh" >conf$$.sh
5188 echo "exit 0" >>conf$$.sh
5189 chmod +x conf$$.sh
5190 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5191 PATH_SEPARATOR=';'
5192 else
5193 PATH_SEPARATOR=:
5195 rm -f conf$$.sh
5198 # Find out how to test for executable files. Don't use a zero-byte file,
5199 # as systems may use methods other than mode bits to determine executability.
5200 cat >conf$$.file <<_ASEOF
5201 #! /bin/sh
5202 exit 0
5203 _ASEOF
5204 chmod +x conf$$.file
5205 if test -x conf$$.file >/dev/null 2>&1; then
5206 ac_executable_p="test -x"
5207 else
5208 ac_executable_p="test -f"
5210 rm -f conf$$.file
5212 # Extract the first word of "msgmerge", so it can be a program name with args.
5213 set dummy msgmerge; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_MSGMERGE+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 case "$MSGMERGE" in
5220 [\\/]* | ?:[\\/]*)
5221 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5224 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5225 for ac_dir in $PATH; do
5226 IFS="$ac_save_IFS"
5227 test -z "$ac_dir" && ac_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5230 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5231 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5232 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5233 break 2
5236 done
5237 done
5238 IFS="$ac_save_IFS"
5239 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5241 esac
5243 MSGMERGE="$ac_cv_path_MSGMERGE"
5244 if test "$MSGMERGE" != ":"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5246 $as_echo "$MSGMERGE" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 test -n "$localedir" || localedir='${datadir}/locale'
5256 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5259 ac_config_commands="$ac_config_commands po-directories"
5263 if test "X$prefix" = "XNONE"; then
5264 acl_final_prefix="$ac_default_prefix"
5265 else
5266 acl_final_prefix="$prefix"
5268 if test "X$exec_prefix" = "XNONE"; then
5269 acl_final_exec_prefix='${prefix}'
5270 else
5271 acl_final_exec_prefix="$exec_prefix"
5273 acl_save_prefix="$prefix"
5274 prefix="$acl_final_prefix"
5275 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5276 prefix="$acl_save_prefix"
5278 # Make sure we can run config.sub.
5279 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5280 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5283 $as_echo_n "checking build system type... " >&6; }
5284 if ${ac_cv_build+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 ac_build_alias=$build_alias
5288 test "x$ac_build_alias" = x &&
5289 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5290 test "x$ac_build_alias" = x &&
5291 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5292 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5293 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5297 $as_echo "$ac_cv_build" >&6; }
5298 case $ac_cv_build in
5299 *-*-*) ;;
5300 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5301 esac
5302 build=$ac_cv_build
5303 ac_save_IFS=$IFS; IFS='-'
5304 set x $ac_cv_build
5305 shift
5306 build_cpu=$1
5307 build_vendor=$2
5308 shift; shift
5309 # Remember, the first character of IFS is used to create $*,
5310 # except with old shells:
5311 build_os=$*
5312 IFS=$ac_save_IFS
5313 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5317 $as_echo_n "checking host system type... " >&6; }
5318 if ${ac_cv_host+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test "x$host_alias" = x; then
5322 ac_cv_host=$ac_cv_build
5323 else
5324 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5330 $as_echo "$ac_cv_host" >&6; }
5331 case $ac_cv_host in
5332 *-*-*) ;;
5333 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5334 esac
5335 host=$ac_cv_host
5336 ac_save_IFS=$IFS; IFS='-'
5337 set x $ac_cv_host
5338 shift
5339 host_cpu=$1
5340 host_vendor=$2
5341 shift; shift
5342 # Remember, the first character of IFS is used to create $*,
5343 # except with old shells:
5344 host_os=$*
5345 IFS=$ac_save_IFS
5346 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5350 # Check whether --with-gnu-ld was given.
5351 if test "${with_gnu_ld+set}" = set; then :
5352 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5353 else
5354 with_gnu_ld=no
5357 # Prepare PATH_SEPARATOR.
5358 # The user is always right.
5359 if test "${PATH_SEPARATOR+set}" != set; then
5360 echo "#! /bin/sh" >conf$$.sh
5361 echo "exit 0" >>conf$$.sh
5362 chmod +x conf$$.sh
5363 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5364 PATH_SEPARATOR=';'
5365 else
5366 PATH_SEPARATOR=:
5368 rm -f conf$$.sh
5370 ac_prog=ld
5371 if test "$GCC" = yes; then
5372 # Check if gcc -print-prog-name=ld gives a path.
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5374 $as_echo_n "checking for ld used by GCC... " >&6; }
5375 case $host in
5376 *-*-mingw*)
5377 # gcc leaves a trailing carriage return which upsets mingw
5378 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5380 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5381 esac
5382 case $ac_prog in
5383 # Accept absolute paths.
5384 [\\/]* | [A-Za-z]:[\\/]*)
5385 re_direlt='/[^/][^/]*/\.\./'
5386 # Canonicalize the path of ld
5387 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5388 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5389 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5390 done
5391 test -z "$LD" && LD="$ac_prog"
5394 # If it fails, then pretend we aren't using GCC.
5395 ac_prog=ld
5398 # If it is relative, then search for the first ld in PATH.
5399 with_gnu_ld=unknown
5401 esac
5402 elif test "$with_gnu_ld" = yes; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5404 $as_echo_n "checking for GNU ld... " >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5407 $as_echo_n "checking for non-GNU ld... " >&6; }
5409 if ${acl_cv_path_LD+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -z "$LD"; then
5413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5414 for ac_dir in $PATH; do
5415 test -z "$ac_dir" && ac_dir=.
5416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5417 acl_cv_path_LD="$ac_dir/$ac_prog"
5418 # Check to see if the program is GNU ld. I'd rather use --version,
5419 # but apparently some GNU ld's only accept -v.
5420 # Break only if it was the GNU/non-GNU ld that we prefer.
5421 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5422 *GNU* | *'with BFD'*)
5423 test "$with_gnu_ld" != no && break ;;
5425 test "$with_gnu_ld" != yes && break ;;
5426 esac
5428 done
5429 IFS="$ac_save_ifs"
5430 else
5431 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5435 LD="$acl_cv_path_LD"
5436 if test -n "$LD"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5438 $as_echo "$LD" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5443 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5445 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5446 if ${acl_cv_prog_gnu_ld+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5450 case `$LD -v 2>&1 </dev/null` in
5451 *GNU* | *'with BFD'*)
5452 acl_cv_prog_gnu_ld=yes ;;
5454 acl_cv_prog_gnu_ld=no ;;
5455 esac
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5458 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5459 with_gnu_ld=$acl_cv_prog_gnu_ld
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5465 $as_echo_n "checking for shared library run path origin... " >&6; }
5466 if ${acl_cv_rpath+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5470 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5471 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5472 . ./conftest.sh
5473 rm -f ./conftest.sh
5474 acl_cv_rpath=done
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5478 $as_echo "$acl_cv_rpath" >&6; }
5479 wl="$acl_cv_wl"
5480 acl_libext="$acl_cv_libext"
5481 acl_shlibext="$acl_cv_shlibext"
5482 acl_libname_spec="$acl_cv_libname_spec"
5483 acl_library_names_spec="$acl_cv_library_names_spec"
5484 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5485 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5486 acl_hardcode_direct="$acl_cv_hardcode_direct"
5487 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5488 # Check whether --enable-rpath was given.
5489 if test "${enable_rpath+set}" = set; then :
5490 enableval=$enable_rpath; :
5491 else
5492 enable_rpath=yes
5498 acl_libdirstem=lib
5499 acl_libdirstem2=
5500 case "$host_os" in
5501 solaris*)
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5503 $as_echo_n "checking for 64-bit host... " >&6; }
5504 if ${gl_cv_solaris_64bit+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 #ifdef _LP64
5511 sixtyfour bits
5512 #endif
5514 _ACEOF
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5517 gl_cv_solaris_64bit=yes
5518 else
5519 gl_cv_solaris_64bit=no
5521 rm -f conftest*
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5526 $as_echo "$gl_cv_solaris_64bit" >&6; }
5527 if test $gl_cv_solaris_64bit = yes; then
5528 acl_libdirstem=lib/64
5529 case "$host_cpu" in
5530 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5531 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5532 esac
5536 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5537 if test -n "$searchpath"; then
5538 acl_save_IFS="${IFS= }"; IFS=":"
5539 for searchdir in $searchpath; do
5540 if test -d "$searchdir"; then
5541 case "$searchdir" in
5542 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5543 */../ | */.. )
5544 # Better ignore directories of this form. They are misleading.
5546 *) searchdir=`cd "$searchdir" && pwd`
5547 case "$searchdir" in
5548 */lib64 ) acl_libdirstem=lib64 ;;
5549 esac ;;
5550 esac
5552 done
5553 IFS="$acl_save_IFS"
5556 esac
5557 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5570 use_additional=yes
5572 acl_save_prefix="$prefix"
5573 prefix="$acl_final_prefix"
5574 acl_save_exec_prefix="$exec_prefix"
5575 exec_prefix="$acl_final_exec_prefix"
5577 eval additional_includedir=\"$includedir\"
5578 eval additional_libdir=\"$libdir\"
5580 exec_prefix="$acl_save_exec_prefix"
5581 prefix="$acl_save_prefix"
5584 # Check whether --with-libiconv-prefix was given.
5585 if test "${with_libiconv_prefix+set}" = set; then :
5586 withval=$with_libiconv_prefix;
5587 if test "X$withval" = "Xno"; then
5588 use_additional=no
5589 else
5590 if test "X$withval" = "X"; then
5592 acl_save_prefix="$prefix"
5593 prefix="$acl_final_prefix"
5594 acl_save_exec_prefix="$exec_prefix"
5595 exec_prefix="$acl_final_exec_prefix"
5597 eval additional_includedir=\"$includedir\"
5598 eval additional_libdir=\"$libdir\"
5600 exec_prefix="$acl_save_exec_prefix"
5601 prefix="$acl_save_prefix"
5603 else
5604 additional_includedir="$withval/include"
5605 additional_libdir="$withval/$acl_libdirstem"
5606 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5607 && ! test -d "$withval/$acl_libdirstem"; then
5608 additional_libdir="$withval/$acl_libdirstem2"
5615 LIBICONV=
5616 LTLIBICONV=
5617 INCICONV=
5618 LIBICONV_PREFIX=
5619 HAVE_LIBICONV=
5620 rpathdirs=
5621 ltrpathdirs=
5622 names_already_handled=
5623 names_next_round='iconv '
5624 while test -n "$names_next_round"; do
5625 names_this_round="$names_next_round"
5626 names_next_round=
5627 for name in $names_this_round; do
5628 already_handled=
5629 for n in $names_already_handled; do
5630 if test "$n" = "$name"; then
5631 already_handled=yes
5632 break
5634 done
5635 if test -z "$already_handled"; then
5636 names_already_handled="$names_already_handled $name"
5637 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5638 eval value=\"\$HAVE_LIB$uppername\"
5639 if test -n "$value"; then
5640 if test "$value" = yes; then
5641 eval value=\"\$LIB$uppername\"
5642 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5643 eval value=\"\$LTLIB$uppername\"
5644 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5645 else
5648 else
5649 found_dir=
5650 found_la=
5651 found_so=
5652 found_a=
5653 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5654 if test -n "$acl_shlibext"; then
5655 shrext=".$acl_shlibext" # typically: shrext=.so
5656 else
5657 shrext=
5659 if test $use_additional = yes; then
5660 dir="$additional_libdir"
5661 if test -n "$acl_shlibext"; then
5662 if test -f "$dir/$libname$shrext"; then
5663 found_dir="$dir"
5664 found_so="$dir/$libname$shrext"
5665 else
5666 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5667 ver=`(cd "$dir" && \
5668 for f in "$libname$shrext".*; do echo "$f"; done \
5669 | sed -e "s,^$libname$shrext\\\\.,," \
5670 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5671 | sed 1q ) 2>/dev/null`
5672 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5673 found_dir="$dir"
5674 found_so="$dir/$libname$shrext.$ver"
5676 else
5677 eval library_names=\"$acl_library_names_spec\"
5678 for f in $library_names; do
5679 if test -f "$dir/$f"; then
5680 found_dir="$dir"
5681 found_so="$dir/$f"
5682 break
5684 done
5688 if test "X$found_dir" = "X"; then
5689 if test -f "$dir/$libname.$acl_libext"; then
5690 found_dir="$dir"
5691 found_a="$dir/$libname.$acl_libext"
5694 if test "X$found_dir" != "X"; then
5695 if test -f "$dir/$libname.la"; then
5696 found_la="$dir/$libname.la"
5700 if test "X$found_dir" = "X"; then
5701 for x in $LDFLAGS $LTLIBICONV; do
5703 acl_save_prefix="$prefix"
5704 prefix="$acl_final_prefix"
5705 acl_save_exec_prefix="$exec_prefix"
5706 exec_prefix="$acl_final_exec_prefix"
5707 eval x=\"$x\"
5708 exec_prefix="$acl_save_exec_prefix"
5709 prefix="$acl_save_prefix"
5711 case "$x" in
5712 -L*)
5713 dir=`echo "X$x" | sed -e 's/^X-L//'`
5714 if test -n "$acl_shlibext"; then
5715 if test -f "$dir/$libname$shrext"; then
5716 found_dir="$dir"
5717 found_so="$dir/$libname$shrext"
5718 else
5719 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5720 ver=`(cd "$dir" && \
5721 for f in "$libname$shrext".*; do echo "$f"; done \
5722 | sed -e "s,^$libname$shrext\\\\.,," \
5723 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5724 | sed 1q ) 2>/dev/null`
5725 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5726 found_dir="$dir"
5727 found_so="$dir/$libname$shrext.$ver"
5729 else
5730 eval library_names=\"$acl_library_names_spec\"
5731 for f in $library_names; do
5732 if test -f "$dir/$f"; then
5733 found_dir="$dir"
5734 found_so="$dir/$f"
5735 break
5737 done
5741 if test "X$found_dir" = "X"; then
5742 if test -f "$dir/$libname.$acl_libext"; then
5743 found_dir="$dir"
5744 found_a="$dir/$libname.$acl_libext"
5747 if test "X$found_dir" != "X"; then
5748 if test -f "$dir/$libname.la"; then
5749 found_la="$dir/$libname.la"
5753 esac
5754 if test "X$found_dir" != "X"; then
5755 break
5757 done
5759 if test "X$found_dir" != "X"; then
5760 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5761 if test "X$found_so" != "X"; then
5762 if test "$enable_rpath" = no \
5763 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5764 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5766 else
5767 haveit=
5768 for x in $ltrpathdirs; do
5769 if test "X$x" = "X$found_dir"; then
5770 haveit=yes
5771 break
5773 done
5774 if test -z "$haveit"; then
5775 ltrpathdirs="$ltrpathdirs $found_dir"
5777 if test "$acl_hardcode_direct" = yes; then
5778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5779 else
5780 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5782 haveit=
5783 for x in $rpathdirs; do
5784 if test "X$x" = "X$found_dir"; then
5785 haveit=yes
5786 break
5788 done
5789 if test -z "$haveit"; then
5790 rpathdirs="$rpathdirs $found_dir"
5792 else
5793 haveit=
5794 for x in $LDFLAGS $LIBICONV; do
5796 acl_save_prefix="$prefix"
5797 prefix="$acl_final_prefix"
5798 acl_save_exec_prefix="$exec_prefix"
5799 exec_prefix="$acl_final_exec_prefix"
5800 eval x=\"$x\"
5801 exec_prefix="$acl_save_exec_prefix"
5802 prefix="$acl_save_prefix"
5804 if test "X$x" = "X-L$found_dir"; then
5805 haveit=yes
5806 break
5808 done
5809 if test -z "$haveit"; then
5810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5812 if test "$acl_hardcode_minus_L" != no; then
5813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5814 else
5815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5820 else
5821 if test "X$found_a" != "X"; then
5822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5823 else
5824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5827 additional_includedir=
5828 case "$found_dir" in
5829 */$acl_libdirstem | */$acl_libdirstem/)
5830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5831 if test "$name" = 'iconv'; then
5832 LIBICONV_PREFIX="$basedir"
5834 additional_includedir="$basedir/include"
5836 */$acl_libdirstem2 | */$acl_libdirstem2/)
5837 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5838 if test "$name" = 'iconv'; then
5839 LIBICONV_PREFIX="$basedir"
5841 additional_includedir="$basedir/include"
5843 esac
5844 if test "X$additional_includedir" != "X"; then
5845 if test "X$additional_includedir" != "X/usr/include"; then
5846 haveit=
5847 if test "X$additional_includedir" = "X/usr/local/include"; then
5848 if test -n "$GCC"; then
5849 case $host_os in
5850 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5851 esac
5854 if test -z "$haveit"; then
5855 for x in $CPPFLAGS $INCICONV; do
5857 acl_save_prefix="$prefix"
5858 prefix="$acl_final_prefix"
5859 acl_save_exec_prefix="$exec_prefix"
5860 exec_prefix="$acl_final_exec_prefix"
5861 eval x=\"$x\"
5862 exec_prefix="$acl_save_exec_prefix"
5863 prefix="$acl_save_prefix"
5865 if test "X$x" = "X-I$additional_includedir"; then
5866 haveit=yes
5867 break
5869 done
5870 if test -z "$haveit"; then
5871 if test -d "$additional_includedir"; then
5872 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5878 if test -n "$found_la"; then
5879 save_libdir="$libdir"
5880 case "$found_la" in
5881 */* | *\\*) . "$found_la" ;;
5882 *) . "./$found_la" ;;
5883 esac
5884 libdir="$save_libdir"
5885 for dep in $dependency_libs; do
5886 case "$dep" in
5887 -L*)
5888 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5889 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5890 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5891 haveit=
5892 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5893 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5894 if test -n "$GCC"; then
5895 case $host_os in
5896 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5897 esac
5900 if test -z "$haveit"; then
5901 haveit=
5902 for x in $LDFLAGS $LIBICONV; do
5904 acl_save_prefix="$prefix"
5905 prefix="$acl_final_prefix"
5906 acl_save_exec_prefix="$exec_prefix"
5907 exec_prefix="$acl_final_exec_prefix"
5908 eval x=\"$x\"
5909 exec_prefix="$acl_save_exec_prefix"
5910 prefix="$acl_save_prefix"
5912 if test "X$x" = "X-L$additional_libdir"; then
5913 haveit=yes
5914 break
5916 done
5917 if test -z "$haveit"; then
5918 if test -d "$additional_libdir"; then
5919 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5922 haveit=
5923 for x in $LDFLAGS $LTLIBICONV; do
5925 acl_save_prefix="$prefix"
5926 prefix="$acl_final_prefix"
5927 acl_save_exec_prefix="$exec_prefix"
5928 exec_prefix="$acl_final_exec_prefix"
5929 eval x=\"$x\"
5930 exec_prefix="$acl_save_exec_prefix"
5931 prefix="$acl_save_prefix"
5933 if test "X$x" = "X-L$additional_libdir"; then
5934 haveit=yes
5935 break
5937 done
5938 if test -z "$haveit"; then
5939 if test -d "$additional_libdir"; then
5940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5946 -R*)
5947 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5948 if test "$enable_rpath" != no; then
5949 haveit=
5950 for x in $rpathdirs; do
5951 if test "X$x" = "X$dir"; then
5952 haveit=yes
5953 break
5955 done
5956 if test -z "$haveit"; then
5957 rpathdirs="$rpathdirs $dir"
5959 haveit=
5960 for x in $ltrpathdirs; do
5961 if test "X$x" = "X$dir"; then
5962 haveit=yes
5963 break
5965 done
5966 if test -z "$haveit"; then
5967 ltrpathdirs="$ltrpathdirs $dir"
5971 -l*)
5972 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5974 *.la)
5975 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5978 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5979 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5981 esac
5982 done
5984 else
5985 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5986 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5990 done
5991 done
5992 if test "X$rpathdirs" != "X"; then
5993 if test -n "$acl_hardcode_libdir_separator"; then
5994 alldirs=
5995 for found_dir in $rpathdirs; do
5996 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5997 done
5998 acl_save_libdir="$libdir"
5999 libdir="$alldirs"
6000 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6001 libdir="$acl_save_libdir"
6002 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6003 else
6004 for found_dir in $rpathdirs; do
6005 acl_save_libdir="$libdir"
6006 libdir="$found_dir"
6007 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6008 libdir="$acl_save_libdir"
6009 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6010 done
6013 if test "X$ltrpathdirs" != "X"; then
6014 for found_dir in $ltrpathdirs; do
6015 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6016 done
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6050 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6051 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 gt_save_LIBS="$LIBS"
6055 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <CoreFoundation/CFPreferences.h>
6060 main ()
6062 CFPreferencesCopyAppValue(NULL, NULL)
6064 return 0;
6066 _ACEOF
6067 if ac_fn_c_try_link "$LINENO"; then :
6068 gt_cv_func_CFPreferencesCopyAppValue=yes
6069 else
6070 gt_cv_func_CFPreferencesCopyAppValue=no
6072 rm -f core conftest.err conftest.$ac_objext \
6073 conftest$ac_exeext conftest.$ac_ext
6074 LIBS="$gt_save_LIBS"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6077 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6078 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6080 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6084 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6085 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 gt_save_LIBS="$LIBS"
6089 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 #include <CoreFoundation/CFLocale.h>
6094 main ()
6096 CFLocaleCopyCurrent();
6098 return 0;
6100 _ACEOF
6101 if ac_fn_c_try_link "$LINENO"; then :
6102 gt_cv_func_CFLocaleCopyCurrent=yes
6103 else
6104 gt_cv_func_CFLocaleCopyCurrent=no
6106 rm -f core conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
6108 LIBS="$gt_save_LIBS"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6111 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6112 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6114 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6117 INTL_MACOSX_LIBS=
6118 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6119 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6127 LIBINTL=
6128 LTLIBINTL=
6129 POSUB=
6131 case " $gt_needs " in
6132 *" need-formatstring-macros "*) gt_api_version=3 ;;
6133 *" need-ngettext "*) gt_api_version=2 ;;
6134 *) gt_api_version=1 ;;
6135 esac
6136 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6137 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6139 if test "$USE_NLS" = "yes"; then
6140 gt_use_preinstalled_gnugettext=no
6143 if test $gt_api_version -ge 3; then
6144 gt_revision_test_code='
6145 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6146 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6147 #endif
6148 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6150 else
6151 gt_revision_test_code=
6153 if test $gt_api_version -ge 2; then
6154 gt_expression_test_code=' + * ngettext ("", "", 0)'
6155 else
6156 gt_expression_test_code=
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6160 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6161 if eval \${$gt_func_gnugettext_libc+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <libintl.h>
6167 $gt_revision_test_code
6168 extern int _nl_msg_cat_cntr;
6169 extern int *_nl_domain_bindings;
6171 main ()
6173 bindtextdomain ("", "");
6174 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6176 return 0;
6178 _ACEOF
6179 if ac_fn_c_try_link "$LINENO"; then :
6180 eval "$gt_func_gnugettext_libc=yes"
6181 else
6182 eval "$gt_func_gnugettext_libc=no"
6184 rm -f core conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6187 eval ac_res=\$$gt_func_gnugettext_libc
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6189 $as_echo "$ac_res" >&6; }
6191 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6197 am_save_CPPFLAGS="$CPPFLAGS"
6199 for element in $INCICONV; do
6200 haveit=
6201 for x in $CPPFLAGS; do
6203 acl_save_prefix="$prefix"
6204 prefix="$acl_final_prefix"
6205 acl_save_exec_prefix="$exec_prefix"
6206 exec_prefix="$acl_final_exec_prefix"
6207 eval x=\"$x\"
6208 exec_prefix="$acl_save_exec_prefix"
6209 prefix="$acl_save_prefix"
6211 if test "X$x" = "X$element"; then
6212 haveit=yes
6213 break
6215 done
6216 if test -z "$haveit"; then
6217 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6219 done
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6223 $as_echo_n "checking for iconv... " >&6; }
6224 if ${am_cv_func_iconv+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6228 am_cv_func_iconv="no, consider installing GNU libiconv"
6229 am_cv_lib_iconv=no
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 #include <stdlib.h>
6233 #include <iconv.h>
6235 main ()
6237 iconv_t cd = iconv_open("","");
6238 iconv(cd,NULL,NULL,NULL,NULL);
6239 iconv_close(cd);
6241 return 0;
6243 _ACEOF
6244 if ac_fn_c_try_link "$LINENO"; then :
6245 am_cv_func_iconv=yes
6247 rm -f core conftest.err conftest.$ac_objext \
6248 conftest$ac_exeext conftest.$ac_ext
6249 if test "$am_cv_func_iconv" != yes; then
6250 am_save_LIBS="$LIBS"
6251 LIBS="$LIBS $LIBICONV"
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <stdlib.h>
6255 #include <iconv.h>
6257 main ()
6259 iconv_t cd = iconv_open("","");
6260 iconv(cd,NULL,NULL,NULL,NULL);
6261 iconv_close(cd);
6263 return 0;
6265 _ACEOF
6266 if ac_fn_c_try_link "$LINENO"; then :
6267 am_cv_lib_iconv=yes
6268 am_cv_func_iconv=yes
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272 LIBS="$am_save_LIBS"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6277 $as_echo "$am_cv_func_iconv" >&6; }
6278 if test "$am_cv_func_iconv" = yes; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6280 $as_echo_n "checking for working iconv... " >&6; }
6281 if ${am_cv_func_iconv_works+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6285 am_save_LIBS="$LIBS"
6286 if test $am_cv_lib_iconv = yes; then
6287 LIBS="$LIBS $LIBICONV"
6289 if test "$cross_compiling" = yes; then :
6290 case "$host_os" in
6291 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6292 *) am_cv_func_iconv_works="guessing yes" ;;
6293 esac
6294 else
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6298 #include <iconv.h>
6299 #include <string.h>
6300 int main ()
6302 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6303 returns. */
6305 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6306 if (cd_utf8_to_88591 != (iconv_t)(-1))
6308 static const char input[] = "\342\202\254"; /* EURO SIGN */
6309 char buf[10];
6310 const char *inptr = input;
6311 size_t inbytesleft = strlen (input);
6312 char *outptr = buf;
6313 size_t outbytesleft = sizeof (buf);
6314 size_t res = iconv (cd_utf8_to_88591,
6315 (char **) &inptr, &inbytesleft,
6316 &outptr, &outbytesleft);
6317 if (res == 0)
6318 return 1;
6321 /* Test against Solaris 10 bug: Failures are not distinguishable from
6322 successful returns. */
6324 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6325 if (cd_ascii_to_88591 != (iconv_t)(-1))
6327 static const char input[] = "\263";
6328 char buf[10];
6329 const char *inptr = input;
6330 size_t inbytesleft = strlen (input);
6331 char *outptr = buf;
6332 size_t outbytesleft = sizeof (buf);
6333 size_t res = iconv (cd_ascii_to_88591,
6334 (char **) &inptr, &inbytesleft,
6335 &outptr, &outbytesleft);
6336 if (res == 0)
6337 return 1;
6340 #if 0 /* This bug could be worked around by the caller. */
6341 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6343 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6344 if (cd_88591_to_utf8 != (iconv_t)(-1))
6346 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6347 char buf[50];
6348 const char *inptr = input;
6349 size_t inbytesleft = strlen (input);
6350 char *outptr = buf;
6351 size_t outbytesleft = sizeof (buf);
6352 size_t res = iconv (cd_88591_to_utf8,
6353 (char **) &inptr, &inbytesleft,
6354 &outptr, &outbytesleft);
6355 if ((int)res > 0)
6356 return 1;
6359 #endif
6360 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6361 provided. */
6362 if (/* Try standardized names. */
6363 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6364 /* Try IRIX, OSF/1 names. */
6365 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6366 /* Try AIX names. */
6367 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6368 /* Try HP-UX names. */
6369 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6370 return 1;
6371 return 0;
6373 _ACEOF
6374 if ac_fn_c_try_run "$LINENO"; then :
6375 am_cv_func_iconv_works=yes
6376 else
6377 am_cv_func_iconv_works=no
6379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6380 conftest.$ac_objext conftest.beam conftest.$ac_ext
6383 LIBS="$am_save_LIBS"
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6387 $as_echo "$am_cv_func_iconv_works" >&6; }
6388 case "$am_cv_func_iconv_works" in
6389 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6390 *) am_func_iconv=yes ;;
6391 esac
6392 else
6393 am_func_iconv=no am_cv_lib_iconv=no
6395 if test "$am_func_iconv" = yes; then
6397 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6400 if test "$am_cv_lib_iconv" = yes; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6402 $as_echo_n "checking how to link with libiconv... " >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6404 $as_echo "$LIBICONV" >&6; }
6405 else
6406 CPPFLAGS="$am_save_CPPFLAGS"
6407 LIBICONV=
6408 LTLIBICONV=
6421 use_additional=yes
6423 acl_save_prefix="$prefix"
6424 prefix="$acl_final_prefix"
6425 acl_save_exec_prefix="$exec_prefix"
6426 exec_prefix="$acl_final_exec_prefix"
6428 eval additional_includedir=\"$includedir\"
6429 eval additional_libdir=\"$libdir\"
6431 exec_prefix="$acl_save_exec_prefix"
6432 prefix="$acl_save_prefix"
6435 # Check whether --with-libintl-prefix was given.
6436 if test "${with_libintl_prefix+set}" = set; then :
6437 withval=$with_libintl_prefix;
6438 if test "X$withval" = "Xno"; then
6439 use_additional=no
6440 else
6441 if test "X$withval" = "X"; then
6443 acl_save_prefix="$prefix"
6444 prefix="$acl_final_prefix"
6445 acl_save_exec_prefix="$exec_prefix"
6446 exec_prefix="$acl_final_exec_prefix"
6448 eval additional_includedir=\"$includedir\"
6449 eval additional_libdir=\"$libdir\"
6451 exec_prefix="$acl_save_exec_prefix"
6452 prefix="$acl_save_prefix"
6454 else
6455 additional_includedir="$withval/include"
6456 additional_libdir="$withval/$acl_libdirstem"
6457 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6458 && ! test -d "$withval/$acl_libdirstem"; then
6459 additional_libdir="$withval/$acl_libdirstem2"
6466 LIBINTL=
6467 LTLIBINTL=
6468 INCINTL=
6469 LIBINTL_PREFIX=
6470 HAVE_LIBINTL=
6471 rpathdirs=
6472 ltrpathdirs=
6473 names_already_handled=
6474 names_next_round='intl '
6475 while test -n "$names_next_round"; do
6476 names_this_round="$names_next_round"
6477 names_next_round=
6478 for name in $names_this_round; do
6479 already_handled=
6480 for n in $names_already_handled; do
6481 if test "$n" = "$name"; then
6482 already_handled=yes
6483 break
6485 done
6486 if test -z "$already_handled"; then
6487 names_already_handled="$names_already_handled $name"
6488 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6489 eval value=\"\$HAVE_LIB$uppername\"
6490 if test -n "$value"; then
6491 if test "$value" = yes; then
6492 eval value=\"\$LIB$uppername\"
6493 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6494 eval value=\"\$LTLIB$uppername\"
6495 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6496 else
6499 else
6500 found_dir=
6501 found_la=
6502 found_so=
6503 found_a=
6504 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6505 if test -n "$acl_shlibext"; then
6506 shrext=".$acl_shlibext" # typically: shrext=.so
6507 else
6508 shrext=
6510 if test $use_additional = yes; then
6511 dir="$additional_libdir"
6512 if test -n "$acl_shlibext"; then
6513 if test -f "$dir/$libname$shrext"; then
6514 found_dir="$dir"
6515 found_so="$dir/$libname$shrext"
6516 else
6517 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6518 ver=`(cd "$dir" && \
6519 for f in "$libname$shrext".*; do echo "$f"; done \
6520 | sed -e "s,^$libname$shrext\\\\.,," \
6521 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6522 | sed 1q ) 2>/dev/null`
6523 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6524 found_dir="$dir"
6525 found_so="$dir/$libname$shrext.$ver"
6527 else
6528 eval library_names=\"$acl_library_names_spec\"
6529 for f in $library_names; do
6530 if test -f "$dir/$f"; then
6531 found_dir="$dir"
6532 found_so="$dir/$f"
6533 break
6535 done
6539 if test "X$found_dir" = "X"; then
6540 if test -f "$dir/$libname.$acl_libext"; then
6541 found_dir="$dir"
6542 found_a="$dir/$libname.$acl_libext"
6545 if test "X$found_dir" != "X"; then
6546 if test -f "$dir/$libname.la"; then
6547 found_la="$dir/$libname.la"
6551 if test "X$found_dir" = "X"; then
6552 for x in $LDFLAGS $LTLIBINTL; do
6554 acl_save_prefix="$prefix"
6555 prefix="$acl_final_prefix"
6556 acl_save_exec_prefix="$exec_prefix"
6557 exec_prefix="$acl_final_exec_prefix"
6558 eval x=\"$x\"
6559 exec_prefix="$acl_save_exec_prefix"
6560 prefix="$acl_save_prefix"
6562 case "$x" in
6563 -L*)
6564 dir=`echo "X$x" | sed -e 's/^X-L//'`
6565 if test -n "$acl_shlibext"; then
6566 if test -f "$dir/$libname$shrext"; then
6567 found_dir="$dir"
6568 found_so="$dir/$libname$shrext"
6569 else
6570 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6571 ver=`(cd "$dir" && \
6572 for f in "$libname$shrext".*; do echo "$f"; done \
6573 | sed -e "s,^$libname$shrext\\\\.,," \
6574 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6575 | sed 1q ) 2>/dev/null`
6576 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6577 found_dir="$dir"
6578 found_so="$dir/$libname$shrext.$ver"
6580 else
6581 eval library_names=\"$acl_library_names_spec\"
6582 for f in $library_names; do
6583 if test -f "$dir/$f"; then
6584 found_dir="$dir"
6585 found_so="$dir/$f"
6586 break
6588 done
6592 if test "X$found_dir" = "X"; then
6593 if test -f "$dir/$libname.$acl_libext"; then
6594 found_dir="$dir"
6595 found_a="$dir/$libname.$acl_libext"
6598 if test "X$found_dir" != "X"; then
6599 if test -f "$dir/$libname.la"; then
6600 found_la="$dir/$libname.la"
6604 esac
6605 if test "X$found_dir" != "X"; then
6606 break
6608 done
6610 if test "X$found_dir" != "X"; then
6611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6612 if test "X$found_so" != "X"; then
6613 if test "$enable_rpath" = no \
6614 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6615 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6617 else
6618 haveit=
6619 for x in $ltrpathdirs; do
6620 if test "X$x" = "X$found_dir"; then
6621 haveit=yes
6622 break
6624 done
6625 if test -z "$haveit"; then
6626 ltrpathdirs="$ltrpathdirs $found_dir"
6628 if test "$acl_hardcode_direct" = yes; then
6629 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6630 else
6631 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6632 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6633 haveit=
6634 for x in $rpathdirs; do
6635 if test "X$x" = "X$found_dir"; then
6636 haveit=yes
6637 break
6639 done
6640 if test -z "$haveit"; then
6641 rpathdirs="$rpathdirs $found_dir"
6643 else
6644 haveit=
6645 for x in $LDFLAGS $LIBINTL; do
6647 acl_save_prefix="$prefix"
6648 prefix="$acl_final_prefix"
6649 acl_save_exec_prefix="$exec_prefix"
6650 exec_prefix="$acl_final_exec_prefix"
6651 eval x=\"$x\"
6652 exec_prefix="$acl_save_exec_prefix"
6653 prefix="$acl_save_prefix"
6655 if test "X$x" = "X-L$found_dir"; then
6656 haveit=yes
6657 break
6659 done
6660 if test -z "$haveit"; then
6661 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6663 if test "$acl_hardcode_minus_L" != no; then
6664 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6665 else
6666 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6671 else
6672 if test "X$found_a" != "X"; then
6673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6674 else
6675 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6678 additional_includedir=
6679 case "$found_dir" in
6680 */$acl_libdirstem | */$acl_libdirstem/)
6681 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6682 if test "$name" = 'intl'; then
6683 LIBINTL_PREFIX="$basedir"
6685 additional_includedir="$basedir/include"
6687 */$acl_libdirstem2 | */$acl_libdirstem2/)
6688 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6689 if test "$name" = 'intl'; then
6690 LIBINTL_PREFIX="$basedir"
6692 additional_includedir="$basedir/include"
6694 esac
6695 if test "X$additional_includedir" != "X"; then
6696 if test "X$additional_includedir" != "X/usr/include"; then
6697 haveit=
6698 if test "X$additional_includedir" = "X/usr/local/include"; then
6699 if test -n "$GCC"; then
6700 case $host_os in
6701 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6702 esac
6705 if test -z "$haveit"; then
6706 for x in $CPPFLAGS $INCINTL; do
6708 acl_save_prefix="$prefix"
6709 prefix="$acl_final_prefix"
6710 acl_save_exec_prefix="$exec_prefix"
6711 exec_prefix="$acl_final_exec_prefix"
6712 eval x=\"$x\"
6713 exec_prefix="$acl_save_exec_prefix"
6714 prefix="$acl_save_prefix"
6716 if test "X$x" = "X-I$additional_includedir"; then
6717 haveit=yes
6718 break
6720 done
6721 if test -z "$haveit"; then
6722 if test -d "$additional_includedir"; then
6723 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6729 if test -n "$found_la"; then
6730 save_libdir="$libdir"
6731 case "$found_la" in
6732 */* | *\\*) . "$found_la" ;;
6733 *) . "./$found_la" ;;
6734 esac
6735 libdir="$save_libdir"
6736 for dep in $dependency_libs; do
6737 case "$dep" in
6738 -L*)
6739 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6740 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6741 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6742 haveit=
6743 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6744 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6745 if test -n "$GCC"; then
6746 case $host_os in
6747 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6748 esac
6751 if test -z "$haveit"; then
6752 haveit=
6753 for x in $LDFLAGS $LIBINTL; do
6755 acl_save_prefix="$prefix"
6756 prefix="$acl_final_prefix"
6757 acl_save_exec_prefix="$exec_prefix"
6758 exec_prefix="$acl_final_exec_prefix"
6759 eval x=\"$x\"
6760 exec_prefix="$acl_save_exec_prefix"
6761 prefix="$acl_save_prefix"
6763 if test "X$x" = "X-L$additional_libdir"; then
6764 haveit=yes
6765 break
6767 done
6768 if test -z "$haveit"; then
6769 if test -d "$additional_libdir"; then
6770 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6773 haveit=
6774 for x in $LDFLAGS $LTLIBINTL; do
6776 acl_save_prefix="$prefix"
6777 prefix="$acl_final_prefix"
6778 acl_save_exec_prefix="$exec_prefix"
6779 exec_prefix="$acl_final_exec_prefix"
6780 eval x=\"$x\"
6781 exec_prefix="$acl_save_exec_prefix"
6782 prefix="$acl_save_prefix"
6784 if test "X$x" = "X-L$additional_libdir"; then
6785 haveit=yes
6786 break
6788 done
6789 if test -z "$haveit"; then
6790 if test -d "$additional_libdir"; then
6791 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6797 -R*)
6798 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6799 if test "$enable_rpath" != no; then
6800 haveit=
6801 for x in $rpathdirs; do
6802 if test "X$x" = "X$dir"; then
6803 haveit=yes
6804 break
6806 done
6807 if test -z "$haveit"; then
6808 rpathdirs="$rpathdirs $dir"
6810 haveit=
6811 for x in $ltrpathdirs; do
6812 if test "X$x" = "X$dir"; then
6813 haveit=yes
6814 break
6816 done
6817 if test -z "$haveit"; then
6818 ltrpathdirs="$ltrpathdirs $dir"
6822 -l*)
6823 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6825 *.la)
6826 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6829 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6830 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6832 esac
6833 done
6835 else
6836 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6837 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6841 done
6842 done
6843 if test "X$rpathdirs" != "X"; then
6844 if test -n "$acl_hardcode_libdir_separator"; then
6845 alldirs=
6846 for found_dir in $rpathdirs; do
6847 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6848 done
6849 acl_save_libdir="$libdir"
6850 libdir="$alldirs"
6851 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6852 libdir="$acl_save_libdir"
6853 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6854 else
6855 for found_dir in $rpathdirs; do
6856 acl_save_libdir="$libdir"
6857 libdir="$found_dir"
6858 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6859 libdir="$acl_save_libdir"
6860 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6861 done
6864 if test "X$ltrpathdirs" != "X"; then
6865 for found_dir in $ltrpathdirs; do
6866 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6867 done
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6876 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6877 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 gt_save_CPPFLAGS="$CPPFLAGS"
6881 CPPFLAGS="$CPPFLAGS $INCINTL"
6882 gt_save_LIBS="$LIBS"
6883 LIBS="$LIBS $LIBINTL"
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #include <libintl.h>
6887 $gt_revision_test_code
6888 extern int _nl_msg_cat_cntr;
6889 extern
6890 #ifdef __cplusplus
6892 #endif
6893 const char *_nl_expand_alias (const char *);
6895 main ()
6897 bindtextdomain ("", "");
6898 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6900 return 0;
6902 _ACEOF
6903 if ac_fn_c_try_link "$LINENO"; then :
6904 eval "$gt_func_gnugettext_libintl=yes"
6905 else
6906 eval "$gt_func_gnugettext_libintl=no"
6908 rm -f core conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
6910 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6911 LIBS="$LIBS $LIBICONV"
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914 #include <libintl.h>
6915 $gt_revision_test_code
6916 extern int _nl_msg_cat_cntr;
6917 extern
6918 #ifdef __cplusplus
6920 #endif
6921 const char *_nl_expand_alias (const char *);
6923 main ()
6925 bindtextdomain ("", "");
6926 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6928 return 0;
6930 _ACEOF
6931 if ac_fn_c_try_link "$LINENO"; then :
6932 LIBINTL="$LIBINTL $LIBICONV"
6933 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6934 eval "$gt_func_gnugettext_libintl=yes"
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6940 CPPFLAGS="$gt_save_CPPFLAGS"
6941 LIBS="$gt_save_LIBS"
6943 eval ac_res=\$$gt_func_gnugettext_libintl
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6945 $as_echo "$ac_res" >&6; }
6948 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6949 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6950 && test "$PACKAGE" != gettext-runtime \
6951 && test "$PACKAGE" != gettext-tools; }; then
6952 gt_use_preinstalled_gnugettext=yes
6953 else
6954 LIBINTL=
6955 LTLIBINTL=
6956 INCINTL=
6961 if test -n "$INTL_MACOSX_LIBS"; then
6962 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6963 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6964 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6965 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6969 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6970 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6972 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6974 else
6975 USE_NLS=no
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6980 $as_echo_n "checking whether to use NLS... " >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6982 $as_echo "$USE_NLS" >&6; }
6983 if test "$USE_NLS" = "yes"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6985 $as_echo_n "checking where the gettext function comes from... " >&6; }
6986 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6987 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6988 gt_source="external libintl"
6989 else
6990 gt_source="libc"
6992 else
6993 gt_source="included intl directory"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6996 $as_echo "$gt_source" >&6; }
6999 if test "$USE_NLS" = "yes"; then
7001 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7002 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7004 $as_echo_n "checking how to link with libintl... " >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7006 $as_echo "$LIBINTL" >&6; }
7008 for element in $INCINTL; do
7009 haveit=
7010 for x in $CPPFLAGS; do
7012 acl_save_prefix="$prefix"
7013 prefix="$acl_final_prefix"
7014 acl_save_exec_prefix="$exec_prefix"
7015 exec_prefix="$acl_final_exec_prefix"
7016 eval x=\"$x\"
7017 exec_prefix="$acl_save_exec_prefix"
7018 prefix="$acl_save_prefix"
7020 if test "X$x" = "X$element"; then
7021 haveit=yes
7022 break
7024 done
7025 if test -z "$haveit"; then
7026 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7028 done
7033 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7036 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7040 POSUB=po
7045 INTLLIBS="$LIBINTL"
7056 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7058 inttypes.h stdint.h unistd.h
7059 do :
7060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7064 cat >>confdefs.h <<_ACEOF
7065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7066 _ACEOF
7070 done
7073 for ac_header in stdint.h stdlib.h
7074 do :
7075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7078 cat >>confdefs.h <<_ACEOF
7079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7080 _ACEOF
7084 done
7086 for ac_func in strchr strrchr
7087 do :
7088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7089 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7090 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7091 cat >>confdefs.h <<_ACEOF
7092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7093 _ACEOF
7096 done
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7099 $as_echo_n "checking for working memcmp... " >&6; }
7100 if ${ac_cv_func_memcmp_working+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test "$cross_compiling" = yes; then :
7104 ac_cv_func_memcmp_working=no
7105 else
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 $ac_includes_default
7110 main ()
7113 /* Some versions of memcmp are not 8-bit clean. */
7114 char c0 = '\100', c1 = '\200', c2 = '\201';
7115 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7116 return 1;
7118 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7119 or more and with at least one buffer not starting on a 4-byte boundary.
7120 William Lewis provided this test program. */
7122 char foo[21];
7123 char bar[21];
7124 int i;
7125 for (i = 0; i < 4; i++)
7127 char *a = foo + i;
7128 char *b = bar + i;
7129 strcpy (a, "--------01111111");
7130 strcpy (b, "--------10000000");
7131 if (memcmp (a, b, 16) >= 0)
7132 return 1;
7134 return 0;
7138 return 0;
7140 _ACEOF
7141 if ac_fn_c_try_run "$LINENO"; then :
7142 ac_cv_func_memcmp_working=yes
7143 else
7144 ac_cv_func_memcmp_working=no
7146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7147 conftest.$ac_objext conftest.beam conftest.$ac_ext
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7152 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7153 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7154 *" memcmp.$ac_objext "* ) ;;
7155 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7157 esac
7160 for ac_header in stdlib.h
7161 do :
7162 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7163 if test "x$ac_cv_header_stdlib_h" = xyes; then :
7164 cat >>confdefs.h <<_ACEOF
7165 #define HAVE_STDLIB_H 1
7166 _ACEOF
7170 done
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7173 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7174 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 if test "$cross_compiling" = yes; then :
7178 ac_cv_func_malloc_0_nonnull=no
7179 else
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7183 # include <stdlib.h>
7184 #else
7185 char *malloc ();
7186 #endif
7189 main ()
7191 return ! malloc (0);
7193 return 0;
7195 _ACEOF
7196 if ac_fn_c_try_run "$LINENO"; then :
7197 ac_cv_func_malloc_0_nonnull=yes
7198 else
7199 ac_cv_func_malloc_0_nonnull=no
7201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7202 conftest.$ac_objext conftest.beam conftest.$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7207 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7208 if test $ac_cv_func_malloc_0_nonnull = yes; then :
7210 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7212 else
7213 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7215 case " $LIBOBJS " in
7216 *" malloc.$ac_objext "* ) ;;
7217 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7219 esac
7222 $as_echo "#define malloc rpl_malloc" >>confdefs.h
7227 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7228 case $ac_cv_c_uint32_t in #(
7229 no|yes) ;; #(
7232 $as_echo "#define _UINT32_T 1" >>confdefs.h
7235 cat >>confdefs.h <<_ACEOF
7236 #define uint32_t $ac_cv_c_uint32_t
7237 _ACEOF
7239 esac
7243 # Check whether --with-gtk was given.
7244 if test "${with_gtk+set}" = set; then :
7245 withval=$with_gtk; with_gtk=$withval
7246 else
7247 with_gtk=yes
7251 # Check whether --with-sdl was given.
7252 if test "${with_sdl+set}" = set; then :
7253 withval=$with_sdl; with_sdl=$withval
7254 else
7255 with_sdl=yes
7259 if test x"$with_gtk" = "xno" -a x"$with_sdl" = "xno"; then
7260 as_fn_error $? "You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." "$LINENO" 5
7263 # Check whether --enable-glibtest was given.
7264 if test "${enable_glibtest+set}" = set; then :
7265 enableval=$enable_glibtest;
7266 else
7267 enable_glibtest=yes
7271 pkg_config_args=glib-2.0
7272 for module in . gthread
7274 case "$module" in
7275 gmodule)
7276 pkg_config_args="$pkg_config_args gmodule-2.0"
7278 gmodule-no-export)
7279 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7281 gobject)
7282 pkg_config_args="$pkg_config_args gobject-2.0"
7284 gthread)
7285 pkg_config_args="$pkg_config_args gthread-2.0"
7287 gio*)
7288 pkg_config_args="$pkg_config_args $module-2.0"
7290 esac
7291 done
7300 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 case $PKG_CONFIG in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7325 done
7326 done
7327 IFS=$as_save_IFS
7330 esac
7332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7333 if test -n "$PKG_CONFIG"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7335 $as_echo "$PKG_CONFIG" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_path_PKG_CONFIG"; then
7344 ac_pt_PKG_CONFIG=$PKG_CONFIG
7345 # Extract the first word of "pkg-config", so it can be a program name with args.
7346 set dummy pkg-config; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 case $ac_pt_PKG_CONFIG in
7353 [\\/]* | ?:[\\/]*)
7354 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7370 IFS=$as_save_IFS
7373 esac
7375 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7376 if test -n "$ac_pt_PKG_CONFIG"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7378 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7384 if test "x$ac_pt_PKG_CONFIG" = x; then
7385 PKG_CONFIG=""
7386 else
7387 case $cross_compiling:$ac_tool_warned in
7388 yes:)
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 ac_tool_warned=yes ;;
7392 esac
7393 PKG_CONFIG=$ac_pt_PKG_CONFIG
7395 else
7396 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7400 if test -n "$PKG_CONFIG"; then
7401 _pkg_min_version=0.16
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7403 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7404 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 PKG_CONFIG=""
7414 no_glib=""
7416 if test "x$PKG_CONFIG" = x ; then
7417 no_glib=yes
7418 PKG_CONFIG=no
7421 min_glib_version=2.12.0
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
7423 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
7425 if test x$PKG_CONFIG != xno ; then
7426 ## don't try to run the test against uninstalled libtool libs
7427 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7428 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7429 enable_glibtest=no
7432 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7434 else
7435 no_glib=yes
7439 if test x"$no_glib" = x ; then
7440 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7441 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7442 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7443 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
7445 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7446 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7447 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7449 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7451 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7453 if test "x$enable_glibtest" = "xyes" ; then
7454 ac_save_CFLAGS="$CFLAGS"
7455 ac_save_LIBS="$LIBS"
7456 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7457 LIBS="$GLIB_LIBS $LIBS"
7458 rm -f conf.glibtest
7459 if test "$cross_compiling" = yes; then :
7460 echo $ac_n "cross compiling; assumed OK... $ac_c"
7461 else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7465 #include <glib.h>
7466 #include <stdio.h>
7467 #include <stdlib.h>
7470 main ()
7472 unsigned int major, minor, micro;
7473 char *tmp_version;
7475 fclose (fopen ("conf.glibtest", "w"));
7477 /* HP/UX 9 (%@#!) writes to sscanf strings */
7478 tmp_version = g_strdup("$min_glib_version");
7479 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
7480 printf("%s, bad version string\n", "$min_glib_version");
7481 exit(1);
7484 if ((glib_major_version != $glib_config_major_version) ||
7485 (glib_minor_version != $glib_config_minor_version) ||
7486 (glib_micro_version != $glib_config_micro_version))
7488 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7489 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7490 glib_major_version, glib_minor_version, glib_micro_version);
7491 printf ("*** was found! If pkg-config was correct, then it is best\n");
7492 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7493 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7494 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7495 printf("*** required on your system.\n");
7496 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7497 printf("*** to point to the correct configuration files\n");
7499 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7500 (glib_minor_version != GLIB_MINOR_VERSION) ||
7501 (glib_micro_version != GLIB_MICRO_VERSION))
7503 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7504 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7505 printf("*** library (version %d.%d.%d)\n",
7506 glib_major_version, glib_minor_version, glib_micro_version);
7508 else
7510 if ((glib_major_version > major) ||
7511 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7512 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7514 return 0;
7516 else
7518 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
7519 glib_major_version, glib_minor_version, glib_micro_version);
7520 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
7521 major, minor, micro);
7522 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7523 printf("***\n");
7524 printf("*** If you have already installed a sufficiently new version, this error\n");
7525 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7526 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7527 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7528 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7529 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7530 printf("*** so that the correct libraries are found at run-time))\n");
7533 return 1;
7536 _ACEOF
7537 if ac_fn_c_try_run "$LINENO"; then :
7539 else
7540 no_glib=yes
7542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7543 conftest.$ac_objext conftest.beam conftest.$ac_ext
7546 CFLAGS="$ac_save_CFLAGS"
7547 LIBS="$ac_save_LIBS"
7550 if test "x$no_glib" = x ; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7552 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7554 else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 if test "$PKG_CONFIG" = "no" ; then
7558 echo "*** A new enough version of pkg-config was not found."
7559 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7560 else
7561 if test -f conf.glibtest ; then
7563 else
7564 echo "*** Could not run GLIB test program, checking why..."
7565 ac_save_CFLAGS="$CFLAGS"
7566 ac_save_LIBS="$LIBS"
7567 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7568 LIBS="$LIBS $GLIB_LIBS"
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7572 #include <glib.h>
7573 #include <stdio.h>
7576 main ()
7578 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7580 return 0;
7582 _ACEOF
7583 if ac_fn_c_try_link "$LINENO"; then :
7584 echo "*** The test program compiled, but did not run. This usually means"
7585 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7586 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7587 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7588 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7589 echo "*** is required on your system"
7590 echo "***"
7591 echo "*** If you have an old version installed, it is best to remove it, although"
7592 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7593 else
7594 echo "*** The test program failed to compile or link. See the file config.log for the"
7595 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7597 rm -f core conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 CFLAGS="$ac_save_CFLAGS"
7600 LIBS="$ac_save_LIBS"
7603 GLIB_CFLAGS=""
7604 GLIB_LIBS=""
7605 GLIB_GENMARSHAL=""
7606 GOBJECT_QUERY=""
7607 GLIB_MKENUMS=""
7608 GLIB_COMPILE_RESOURCES=""
7609 as_fn_error $? "Test for GLIB failed. See the file 'INSTALL' for help." "$LINENO" 5
7617 rm -f conf.glibtest
7620 if test x"$with_gtk" = "xyes"; then
7621 GTK_TRUE=
7622 GTK_FALSE='#'
7623 else
7624 GTK_TRUE='#'
7625 GTK_FALSE=
7628 if test x"$with_gtk" = "xyes" ; then
7630 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
7632 # Check whether --enable-gtktest was given.
7633 if test "${enable_gtktest+set}" = set; then :
7634 enableval=$enable_gtktest;
7635 else
7636 enable_gtktest=yes
7640 pkg_config_args=gtk+-2.0
7641 for module in .
7643 case "$module" in
7644 gthread)
7645 pkg_config_args="$pkg_config_args gthread-2.0"
7647 esac
7648 done
7650 no_gtk=""
7652 # Extract the first word of "pkg-config", so it can be a program name with args.
7653 set dummy pkg-config; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 case $PKG_CONFIG in
7660 [\\/]* | ?:[\\/]*)
7661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7675 done
7676 done
7677 IFS=$as_save_IFS
7679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7681 esac
7683 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7684 if test -n "$PKG_CONFIG"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7686 $as_echo "$PKG_CONFIG" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7694 if test x$PKG_CONFIG != xno ; then
7695 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7697 else
7698 echo "*** pkg-config too old; version 0.7 or better required."
7699 no_gtk=yes
7700 PKG_CONFIG=no
7702 else
7703 no_gtk=yes
7706 min_gtk_version=2.12.0
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7708 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7710 if test x$PKG_CONFIG != xno ; then
7711 ## don't try to run the test against uninstalled libtool libs
7712 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7713 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7714 enable_gtktest=no
7717 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7719 else
7720 no_gtk=yes
7724 if test x"$no_gtk" = x ; then
7725 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7726 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7727 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7729 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7731 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7733 if test "x$enable_gtktest" = "xyes" ; then
7734 ac_save_CFLAGS="$CFLAGS"
7735 ac_save_LIBS="$LIBS"
7736 CFLAGS="$CFLAGS $GTK_CFLAGS"
7737 LIBS="$GTK_LIBS $LIBS"
7738 rm -f conf.gtktest
7739 if test "$cross_compiling" = yes; then :
7740 echo $ac_n "cross compiling; assumed OK... $ac_c"
7741 else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7745 #include <gtk/gtk.h>
7746 #include <stdio.h>
7747 #include <stdlib.h>
7750 main ()
7752 int major, minor, micro;
7753 char *tmp_version;
7755 fclose (fopen ("conf.gtktest", "w"));
7757 /* HP/UX 9 (%@#!) writes to sscanf strings */
7758 tmp_version = g_strdup("$min_gtk_version");
7759 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7760 printf("%s, bad version string\n", "$min_gtk_version");
7761 exit(1);
7764 if ((gtk_major_version != $gtk_config_major_version) ||
7765 (gtk_minor_version != $gtk_config_minor_version) ||
7766 (gtk_micro_version != $gtk_config_micro_version))
7768 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7769 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7770 gtk_major_version, gtk_minor_version, gtk_micro_version);
7771 printf ("*** was found! If pkg-config was correct, then it is best\n");
7772 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7773 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7774 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7775 printf("*** required on your system.\n");
7776 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7777 printf("*** to point to the correct configuration files\n");
7779 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7780 (gtk_minor_version != GTK_MINOR_VERSION) ||
7781 (gtk_micro_version != GTK_MICRO_VERSION))
7783 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7784 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7785 printf("*** library (version %d.%d.%d)\n",
7786 gtk_major_version, gtk_minor_version, gtk_micro_version);
7788 else
7790 if ((gtk_major_version > major) ||
7791 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7792 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7794 return 0;
7796 else
7798 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7799 gtk_major_version, gtk_minor_version, gtk_micro_version);
7800 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7801 major, minor, micro);
7802 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7803 printf("***\n");
7804 printf("*** If you have already installed a sufficiently new version, this error\n");
7805 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7806 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7807 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7808 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7809 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7810 printf("*** so that the correct libraries are found at run-time))\n");
7813 return 1;
7816 _ACEOF
7817 if ac_fn_c_try_run "$LINENO"; then :
7819 else
7820 no_gtk=yes
7822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7823 conftest.$ac_objext conftest.beam conftest.$ac_ext
7826 CFLAGS="$ac_save_CFLAGS"
7827 LIBS="$ac_save_LIBS"
7830 if test "x$no_gtk" = x ; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7832 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 if test "$PKG_CONFIG" = "no" ; then
7838 echo "*** A new enough version of pkg-config was not found."
7839 echo "*** See http://pkgconfig.sourceforge.net"
7840 else
7841 if test -f conf.gtktest ; then
7843 else
7844 echo "*** Could not run GTK+ test program, checking why..."
7845 ac_save_CFLAGS="$CFLAGS"
7846 ac_save_LIBS="$LIBS"
7847 CFLAGS="$CFLAGS $GTK_CFLAGS"
7848 LIBS="$LIBS $GTK_LIBS"
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7852 #include <gtk/gtk.h>
7853 #include <stdio.h>
7856 main ()
7858 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7860 return 0;
7862 _ACEOF
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 echo "*** The test program compiled, but did not run. This usually means"
7865 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7866 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7867 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7868 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7869 echo "*** is required on your system"
7870 echo "***"
7871 echo "*** If you have an old version installed, it is best to remove it, although"
7872 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7873 else
7874 echo "*** The test program failed to compile or link. See the file config.log for the"
7875 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7877 rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 CFLAGS="$ac_save_CFLAGS"
7880 LIBS="$ac_save_LIBS"
7883 GTK_CFLAGS=""
7884 GTK_LIBS=""
7885 as_fn_error $? "Test for GTK+ failed. See the file 'INSTALL' for help." "$LINENO" 5
7889 rm -f conf.gtktest
7893 if test x"$with_sdl" = "xyes"; then
7894 SDL_TRUE=
7895 SDL_FALSE='#'
7896 else
7897 SDL_TRUE='#'
7898 SDL_FALSE=
7901 if test x"$with_sdl" = "xyes" ; then
7903 $as_echo "#define HAVE_SDL /**/" >>confdefs.h
7906 # Check whether --with-sdl-prefix was given.
7907 if test "${with_sdl_prefix+set}" = set; then :
7908 withval=$with_sdl_prefix; sdl_prefix="$withval"
7909 else
7910 sdl_prefix=""
7914 # Check whether --with-sdl-exec-prefix was given.
7915 if test "${with_sdl_exec_prefix+set}" = set; then :
7916 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7917 else
7918 sdl_exec_prefix=""
7921 # Check whether --enable-sdltest was given.
7922 if test "${enable_sdltest+set}" = set; then :
7923 enableval=$enable_sdltest;
7924 else
7925 enable_sdltest=yes
7929 if test x$sdl_exec_prefix != x ; then
7930 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7931 if test x${SDL_CONFIG+set} != xset ; then
7932 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7935 if test x$sdl_prefix != x ; then
7936 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7937 if test x${SDL_CONFIG+set} != xset ; then
7938 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7942 as_save_PATH="$PATH"
7943 if test "x$prefix" != xNONE; then
7944 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7946 # Extract the first word of "sdl-config", so it can be a program name with args.
7947 set dummy sdl-config; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_path_SDL_CONFIG+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 case $SDL_CONFIG in
7954 [\\/]* | ?:[\\/]*)
7955 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7969 done
7970 done
7971 IFS=$as_save_IFS
7973 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7975 esac
7977 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7978 if test -n "$SDL_CONFIG"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7980 $as_echo "$SDL_CONFIG" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7987 PATH="$as_save_PATH"
7988 min_sdl_version=1.2.0
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7990 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
7991 no_sdl=""
7992 if test "$SDL_CONFIG" = "no" ; then
7993 no_sdl=yes
7994 else
7995 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
7996 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
7998 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
7999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8000 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
8001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8002 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
8003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8004 if test "x$enable_sdltest" = "xyes" ; then
8005 ac_save_CFLAGS="$CFLAGS"
8006 ac_save_CXXFLAGS="$CXXFLAGS"
8007 ac_save_LIBS="$LIBS"
8008 CFLAGS="$CFLAGS $SDL_CFLAGS"
8009 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8010 LIBS="$LIBS $SDL_LIBS"
8011 rm -f conf.sdltest
8012 if test "$cross_compiling" = yes; then :
8013 echo $ac_n "cross compiling; assumed OK... $ac_c"
8014 else
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8018 #include <stdio.h>
8019 #include <stdlib.h>
8020 #include <string.h>
8021 #include "SDL.h"
8023 char*
8024 my_strdup (char *str)
8026 char *new_str;
8028 if (str)
8030 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8031 strcpy (new_str, str);
8033 else
8034 new_str = NULL;
8036 return new_str;
8039 int main (int argc, char *argv[])
8041 int major, minor, micro;
8042 char *tmp_version;
8044 /* This hangs on some systems (?)
8045 system ("touch conf.sdltest");
8047 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8049 /* HP/UX 9 (%@#!) writes to sscanf strings */
8050 tmp_version = my_strdup("$min_sdl_version");
8051 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8052 printf("%s, bad version string\n", "$min_sdl_version");
8053 exit(1);
8056 if (($sdl_major_version > major) ||
8057 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8058 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8060 return 0;
8062 else
8064 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8065 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8066 printf("*** best to upgrade to the required version.\n");
8067 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8068 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8069 printf("*** config.cache before re-running configure\n");
8070 return 1;
8075 _ACEOF
8076 if ac_fn_c_try_run "$LINENO"; then :
8078 else
8079 no_sdl=yes
8081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8082 conftest.$ac_objext conftest.beam conftest.$ac_ext
8085 CFLAGS="$ac_save_CFLAGS"
8086 CXXFLAGS="$ac_save_CXXFLAGS"
8087 LIBS="$ac_save_LIBS"
8090 if test "x$no_sdl" = x ; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092 $as_echo "yes" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 if test "$SDL_CONFIG" = "no" ; then
8098 echo "*** The sdl-config script installed by SDL could not be found"
8099 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8100 echo "*** your path, or set the SDL_CONFIG environment variable to the"
8101 echo "*** full path to sdl-config."
8102 else
8103 if test -f conf.sdltest ; then
8105 else
8106 echo "*** Could not run SDL test program, checking why..."
8107 CFLAGS="$CFLAGS $SDL_CFLAGS"
8108 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8109 LIBS="$LIBS $SDL_LIBS"
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8113 #include <stdio.h>
8114 #include "SDL.h"
8116 int main(int argc, char *argv[])
8117 { return 0; }
8118 #undef main
8119 #define main K_and_R_C_main
8122 main ()
8124 return 0;
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_link "$LINENO"; then :
8130 echo "*** The test program compiled, but did not run. This usually means"
8131 echo "*** that the run-time linker is not finding SDL or finding the wrong"
8132 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8133 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8134 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8135 echo "*** is required on your system"
8136 echo "***"
8137 echo "*** If you have an old version installed, it is best to remove it, although"
8138 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8139 else
8140 echo "*** The test program failed to compile or link. See the file config.log for the"
8141 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8142 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8143 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
8145 rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8147 CFLAGS="$ac_save_CFLAGS"
8148 CXXFLAGS="$ac_save_CXXFLAGS"
8149 LIBS="$ac_save_LIBS"
8152 SDL_CFLAGS=""
8153 SDL_LIBS=""
8154 as_fn_error $? "Test for SDL failed. See the file 'INSTALL' for help." "$LINENO" 5
8158 rm -f conf.sdltest
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8163 $as_echo_n "checking for X... " >&6; }
8166 # Check whether --with-x was given.
8167 if test "${with_x+set}" = set; then :
8168 withval=$with_x;
8171 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8172 if test "x$with_x" = xno; then
8173 # The user explicitly disabled X.
8174 have_x=disabled
8175 else
8176 case $x_includes,$x_libraries in #(
8177 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8178 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 # One or both of the vars are not set, and there is no cached value.
8182 ac_x_includes=no ac_x_libraries=no
8183 rm -f -r conftest.dir
8184 if mkdir conftest.dir; then
8185 cd conftest.dir
8186 cat >Imakefile <<'_ACEOF'
8187 incroot:
8188 @echo incroot='${INCROOT}'
8189 usrlibdir:
8190 @echo usrlibdir='${USRLIBDIR}'
8191 libdir:
8192 @echo libdir='${LIBDIR}'
8193 _ACEOF
8194 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8196 for ac_var in incroot usrlibdir libdir; do
8197 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8198 done
8199 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8200 for ac_extension in a so sl dylib la dll; do
8201 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8202 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8203 ac_im_usrlibdir=$ac_im_libdir; break
8205 done
8206 # Screen out bogus values from the imake configuration. They are
8207 # bogus both because they are the default anyway, and because
8208 # using them would break gcc on systems where it needs fixed includes.
8209 case $ac_im_incroot in
8210 /usr/include) ac_x_includes= ;;
8211 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8212 esac
8213 case $ac_im_usrlibdir in
8214 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8215 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8216 esac
8218 cd ..
8219 rm -f -r conftest.dir
8222 # Standard set of common directories for X headers.
8223 # Check X11 before X11Rn because it is often a symlink to the current release.
8224 ac_x_header_dirs='
8225 /usr/X11/include
8226 /usr/X11R7/include
8227 /usr/X11R6/include
8228 /usr/X11R5/include
8229 /usr/X11R4/include
8231 /usr/include/X11
8232 /usr/include/X11R7
8233 /usr/include/X11R6
8234 /usr/include/X11R5
8235 /usr/include/X11R4
8237 /usr/local/X11/include
8238 /usr/local/X11R7/include
8239 /usr/local/X11R6/include
8240 /usr/local/X11R5/include
8241 /usr/local/X11R4/include
8243 /usr/local/include/X11
8244 /usr/local/include/X11R7
8245 /usr/local/include/X11R6
8246 /usr/local/include/X11R5
8247 /usr/local/include/X11R4
8249 /usr/X386/include
8250 /usr/x386/include
8251 /usr/XFree86/include/X11
8253 /usr/include
8254 /usr/local/include
8255 /usr/unsupported/include
8256 /usr/athena/include
8257 /usr/local/x11r5/include
8258 /usr/lpp/Xamples/include
8260 /usr/openwin/include
8261 /usr/openwin/share/include'
8263 if test "$ac_x_includes" = no; then
8264 # Guess where to find include files, by looking for Xlib.h.
8265 # First, try using that file with no special directory specified.
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <X11/Xlib.h>
8269 _ACEOF
8270 if ac_fn_c_try_cpp "$LINENO"; then :
8271 # We can compile using X headers with no special include directory.
8272 ac_x_includes=
8273 else
8274 for ac_dir in $ac_x_header_dirs; do
8275 if test -r "$ac_dir/X11/Xlib.h"; then
8276 ac_x_includes=$ac_dir
8277 break
8279 done
8281 rm -f conftest.err conftest.i conftest.$ac_ext
8282 fi # $ac_x_includes = no
8284 if test "$ac_x_libraries" = no; then
8285 # Check for the libraries.
8286 # See if we find them without any special options.
8287 # Don't add to $LIBS permanently.
8288 ac_save_LIBS=$LIBS
8289 LIBS="-lX11 $LIBS"
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 #include <X11/Xlib.h>
8294 main ()
8296 XrmInitialize ()
8298 return 0;
8300 _ACEOF
8301 if ac_fn_c_try_link "$LINENO"; then :
8302 LIBS=$ac_save_LIBS
8303 # We can link X programs with no special library path.
8304 ac_x_libraries=
8305 else
8306 LIBS=$ac_save_LIBS
8307 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8309 # Don't even attempt the hair of trying to link an X program!
8310 for ac_extension in a so sl dylib la dll; do
8311 if test -r "$ac_dir/libX11.$ac_extension"; then
8312 ac_x_libraries=$ac_dir
8313 break 2
8315 done
8316 done
8318 rm -f core conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8320 fi # $ac_x_libraries = no
8322 case $ac_x_includes,$ac_x_libraries in #(
8323 no,* | *,no | *\'*)
8324 # Didn't find X, or a directory has "'" in its name.
8325 ac_cv_have_x="have_x=no";; #(
8327 # Record where we found X for the cache.
8328 ac_cv_have_x="have_x=yes\
8329 ac_x_includes='$ac_x_includes'\
8330 ac_x_libraries='$ac_x_libraries'"
8331 esac
8333 ;; #(
8334 *) have_x=yes;;
8335 esac
8336 eval "$ac_cv_have_x"
8337 fi # $with_x != no
8339 if test "$have_x" != yes; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8341 $as_echo "$have_x" >&6; }
8342 no_x=yes
8343 else
8344 # If each of the values was on the command line, it overrides each guess.
8345 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8346 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8347 # Update the cache value to reflect the command line values.
8348 ac_cv_have_x="have_x=yes\
8349 ac_x_includes='$x_includes'\
8350 ac_x_libraries='$x_libraries'"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8352 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8356 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8357 if ${ac_cv_path_SED+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8361 for ac_i in 1 2 3 4 5 6 7; do
8362 ac_script="$ac_script$as_nl$ac_script"
8363 done
8364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8365 { ac_script=; unset ac_script;}
8366 if test -z "$SED"; then
8367 ac_path_SED_found=false
8368 # Loop through the user's path and test for each of PROGNAME-LIST
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_prog in sed gsed; do
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8377 as_fn_executable_p "$ac_path_SED" || continue
8378 # Check for GNU ac_path_SED and select it if it is found.
8379 # Check for GNU $ac_path_SED
8380 case `"$ac_path_SED" --version 2>&1` in
8381 *GNU*)
8382 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8384 ac_count=0
8385 $as_echo_n 0123456789 >"conftest.in"
8386 while :
8388 cat "conftest.in" "conftest.in" >"conftest.tmp"
8389 mv "conftest.tmp" "conftest.in"
8390 cp "conftest.in" "conftest.nl"
8391 $as_echo '' >> "conftest.nl"
8392 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8394 as_fn_arith $ac_count + 1 && ac_count=$as_val
8395 if test $ac_count -gt ${ac_path_SED_max-0}; then
8396 # Best one so far, save it but keep looking for a better one
8397 ac_cv_path_SED="$ac_path_SED"
8398 ac_path_SED_max=$ac_count
8400 # 10*(2^10) chars as input seems more than enough
8401 test $ac_count -gt 10 && break
8402 done
8403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8404 esac
8406 $ac_path_SED_found && break 3
8407 done
8408 done
8409 done
8410 IFS=$as_save_IFS
8411 if test -z "$ac_cv_path_SED"; then
8412 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8414 else
8415 ac_cv_path_SED=$SED
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8420 $as_echo "$ac_cv_path_SED" >&6; }
8421 SED="$ac_cv_path_SED"
8422 rm -f conftest.sed
8425 ac_ext=c
8426 ac_cpp='$CPP $CPPFLAGS'
8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8432 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8433 if ${ax_cv_c_compiler_ms+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8440 main ()
8442 #ifndef _MSC_VER
8443 choke me
8444 #endif
8447 return 0;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 ax_compiler_ms=yes
8452 else
8453 ax_compiler_ms=no
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 ax_cv_c_compiler_ms=$ax_compiler_ms
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8460 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8463 # Use x_includes and x_libraries if they have been set (presumably by
8464 # AC_PATH_X).
8466 if test X$no_x != Xyes -a -n "$x_includes"; then :
8467 GL_CFLAGS="-I$x_includes $GL_CFLAGS"
8470 for ac_header in windows.h
8471 do :
8472 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8473 if test "x$ac_cv_header_windows_h" = xyes; then :
8474 cat >>confdefs.h <<_ACEOF
8475 #define HAVE_WINDOWS_H 1
8476 _ACEOF
8480 done
8483 ax_save_CPPFLAGS=$CPPFLAGS
8484 CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
8485 for ac_header in GL/gl.h OpenGL/gl.h
8486 do :
8487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8489 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8490 # include <windows.h>
8491 # endif
8494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8495 cat >>confdefs.h <<_ACEOF
8496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8497 _ACEOF
8501 done
8503 CPPFLAGS=$ax_save_CPPFLAGS
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
8510 $as_echo_n "checking for OpenGL library... " >&6; }
8511 if ${ax_cv_check_gl_libgl+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 ax_cv_check_gl_libgl=no
8515 case $host_cpu in
8516 x86_64) ax_check_gl_libdir=lib64 ;;
8517 *) ax_check_gl_libdir=lib ;;
8518 esac
8519 ax_save_CPPFLAGS=$CPPFLAGS
8520 CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
8521 ax_save_LDFLAGS=$LDFLAGS
8522 if test X$no_x != Xyes -a -n "$x_libraries"; then :
8523 LDFLAGS="$LDFLAGS -L$x_libraries"
8525 ax_save_LIBS=$LIBS
8526 ax_check_libs="-lopengl32 -lGL"
8527 for ax_lib in $ax_check_libs; do
8528 if test X$ax_compiler_ms = Xyes; then :
8529 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8530 else
8531 ax_try_lib=$ax_lib
8533 LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
8534 LIBS="$ax_try_lib $ax_save_LIBS"
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8538 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8539 # include <windows.h>
8540 # endif
8541 # ifdef HAVE_GL_GL_H
8542 # include <GL/gl.h>
8543 # elif defined(HAVE_OPENGL_GL_H)
8544 # include <OpenGL/gl.h>
8545 # else
8546 # error no gl.h
8547 # endif
8549 main ()
8551 glBegin(0)
8553 return 0;
8555 _ACEOF
8556 if ac_fn_c_try_link "$LINENO"; then :
8557 ax_cv_check_gl_libgl=$ax_try_lib; break
8558 else
8559 ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
8560 LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_dylib_flag"
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8564 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8565 # include <windows.h>
8566 # endif
8567 # ifdef HAVE_GL_GL_H
8568 # include <GL/gl.h>
8569 # elif defined(HAVE_OPENGL_GL_H)
8570 # include <OpenGL/gl.h>
8571 # else
8572 # error no gl.h
8573 # endif
8575 main ()
8577 glBegin(0)
8579 return 0;
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 ax_cv_check_gl_libgl="$ax_check_gl_dylib_flag $ax_try_lib"; break
8585 rm -f core conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 done
8593 # If no_x is "yes", we don't want to wind up using a libGL that is
8594 # linked with X11. Test to see if the found libGL includes GLX
8595 # functions. If it does and no_x is "yes", we want to reset
8596 # ax_cv_check_gl_libgl back to "no".
8598 # Note that LDFLAGS and LIBS should still have whatever values they
8599 # had when we broke out of the test loop above; use that.
8601 if test "X$ax_cv_check_gl_libgl" != Xno; then :
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8605 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8606 # include <windows.h>
8607 # endif
8608 # ifdef HAVE_GL_GL_H
8609 # include <GL/gl.h>
8610 # elif defined(HAVE_OPENGL_GL_H)
8611 # include <OpenGL/gl.h>
8612 # else
8613 # error no gl.h
8614 # endif
8616 main ()
8618 glXQueryVersion(0, 0, 0)
8620 return 0;
8622 _ACEOF
8623 if ac_fn_c_try_link "$LINENO"; then :
8624 if test X$no_x = Xyes; then :
8625 ax_cv_check_gl_libgl=no
8628 rm -f core conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ax_save_LIBS
8633 if test "X$ax_cv_check_gl_libgl" = Xno -a X$no_x = Xyes; then :
8634 LDFLAGS="$ax_save_LDFLAGS -framework OpenGL"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8638 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8639 # include <windows.h>
8640 # endif
8641 # ifdef HAVE_GL_GL_H
8642 # include <GL/gl.h>
8643 # elif defined(HAVE_OPENGL_GL_H)
8644 # include <OpenGL/gl.h>
8645 # else
8646 # error no gl.h
8647 # endif
8649 main ()
8651 glBegin(0)
8653 return 0;
8655 _ACEOF
8656 if ac_fn_c_try_link "$LINENO"; then :
8657 ax_cv_check_gl_libgl='-framework OpenGL'
8659 rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8663 LDFLAGS=$ax_save_LDFLAGS
8664 CPPFLAGS=$ax_save_CPPFLAGS
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
8667 $as_echo "$ax_cv_check_gl_libgl" >&6; }
8669 if test "X$ax_cv_check_gl_libgl" = Xno; then :
8670 no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
8671 else
8672 GL_LIBS="$ax_cv_check_gl_libgl $GL_LIBS"
8674 ac_ext=c
8675 ac_cpp='$CPP $CPPFLAGS'
8676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8686 pkg_failed=no
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
8688 $as_echo_n "checking for LIBPNG... " >&6; }
8690 if test -n "$LIBPNG_CFLAGS"; then
8691 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8692 elif test -n "$PKG_CONFIG"; then
8693 if test -n "$PKG_CONFIG" && \
8694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8695 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8696 ac_status=$?
8697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8698 test $ac_status = 0; }; then
8699 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
8700 test "x$?" != "x0" && pkg_failed=yes
8701 else
8702 pkg_failed=yes
8704 else
8705 pkg_failed=untried
8707 if test -n "$LIBPNG_LIBS"; then
8708 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8709 elif test -n "$PKG_CONFIG"; then
8710 if test -n "$PKG_CONFIG" && \
8711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8712 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8713 ac_status=$?
8714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8715 test $ac_status = 0; }; then
8716 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
8717 test "x$?" != "x0" && pkg_failed=yes
8718 else
8719 pkg_failed=yes
8721 else
8722 pkg_failed=untried
8727 if test $pkg_failed = yes; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8732 _pkg_short_errors_supported=yes
8733 else
8734 _pkg_short_errors_supported=no
8736 if test $_pkg_short_errors_supported = yes; then
8737 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
8738 else
8739 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
8741 # Put the nasty error message in config.log where it belongs
8742 echo "$LIBPNG_PKG_ERRORS" >&5
8744 as_fn_error $? "Package requirements (libpng) were not met:
8746 $LIBPNG_PKG_ERRORS
8748 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8749 installed software in a non-standard prefix.
8751 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8752 and LIBPNG_LIBS to avoid the need to call pkg-config.
8753 See the pkg-config man page for more details." "$LINENO" 5
8754 elif test $pkg_failed = untried; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8759 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8760 is in your PATH or set the PKG_CONFIG environment variable to the full
8761 path to pkg-config.
8763 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8764 and LIBPNG_LIBS to avoid the need to call pkg-config.
8765 See the pkg-config man page for more details.
8767 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8768 See \`config.log' for more details" "$LINENO" 5; }
8769 else
8770 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8771 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8773 $as_echo "yes" >&6; }
8775 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
8780 ac_config_files="$ac_config_files Makefile po/Makefile.in include/Makefile src/Makefile caves/Makefile docs/Makefile sound/Makefile music/Makefile"
8782 cat >confcache <<\_ACEOF
8783 # This file is a shell script that caches the results of configure
8784 # tests run on this system so they can be shared between configure
8785 # scripts and configure runs, see configure's option --config-cache.
8786 # It is not useful on other systems. If it contains results you don't
8787 # want to keep, you may remove or edit it.
8789 # config.status only pays attention to the cache file if you give it
8790 # the --recheck option to rerun configure.
8792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8794 # following values.
8796 _ACEOF
8798 # The following way of writing the cache mishandles newlines in values,
8799 # but we know of no workaround that is simple, portable, and efficient.
8800 # So, we kill variables containing newlines.
8801 # Ultrix sh set writes to stderr and can't be redirected directly,
8802 # and sets the high bit in the cache file unless we assign to the vars.
8804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8805 eval ac_val=\$$ac_var
8806 case $ac_val in #(
8807 *${as_nl}*)
8808 case $ac_var in #(
8809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8811 esac
8812 case $ac_var in #(
8813 _ | IFS | as_nl) ;; #(
8814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8815 *) { eval $ac_var=; unset $ac_var;} ;;
8816 esac ;;
8817 esac
8818 done
8820 (set) 2>&1 |
8821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8822 *${as_nl}ac_space=\ *)
8823 # `set' does not quote correctly, so add quotes: double-quote
8824 # substitution turns \\\\ into \\, and sed turns \\ into \.
8825 sed -n \
8826 "s/'/'\\\\''/g;
8827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8828 ;; #(
8830 # `set' quotes correctly as required by POSIX, so do not add quotes.
8831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8833 esac |
8834 sort
8836 sed '
8837 /^ac_cv_env_/b end
8838 t clear
8839 :clear
8840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8841 t end
8842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8843 :end' >>confcache
8844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8845 if test -w "$cache_file"; then
8846 if test "x$cache_file" != "x/dev/null"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8848 $as_echo "$as_me: updating cache $cache_file" >&6;}
8849 if test ! -f "$cache_file" || test -h "$cache_file"; then
8850 cat confcache >"$cache_file"
8851 else
8852 case $cache_file in #(
8853 */* | ?:*)
8854 mv -f confcache "$cache_file"$$ &&
8855 mv -f "$cache_file"$$ "$cache_file" ;; #(
8857 mv -f confcache "$cache_file" ;;
8858 esac
8861 else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8866 rm -f confcache
8868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8869 # Let make expand exec_prefix.
8870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8872 DEFS=-DHAVE_CONFIG_H
8874 ac_libobjs=
8875 ac_ltlibobjs=
8877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8878 # 1. Remove the extension, and $U if already installed.
8879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8880 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8882 # will be set to the directory where LIBOBJS objects are built.
8883 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8884 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8885 done
8886 LIBOBJS=$ac_libobjs
8888 LTLIBOBJS=$ac_ltlibobjs
8891 if test -n "$EXEEXT"; then
8892 am__EXEEXT_TRUE=
8893 am__EXEEXT_FALSE='#'
8894 else
8895 am__EXEEXT_TRUE='#'
8896 am__EXEEXT_FALSE=
8899 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8900 as_fn_error $? "conditional \"AMDEP\" was never defined.
8901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8904 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8907 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8908 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8911 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8912 as_fn_error $? "conditional \"GTK\" was never defined.
8913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8915 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
8916 as_fn_error $? "conditional \"SDL\" was never defined.
8917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8920 : "${CONFIG_STATUS=./config.status}"
8921 ac_write_fail=0
8922 ac_clean_files_save=$ac_clean_files
8923 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8925 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8926 as_write_fail=0
8927 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8928 #! $SHELL
8929 # Generated by $as_me.
8930 # Run this file to recreate the current configuration.
8931 # Compiler output produced by configure, useful for debugging
8932 # configure, is in config.log if it exists.
8934 debug=false
8935 ac_cs_recheck=false
8936 ac_cs_silent=false
8938 SHELL=\${CONFIG_SHELL-$SHELL}
8939 export SHELL
8940 _ASEOF
8941 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8942 ## -------------------- ##
8943 ## M4sh Initialization. ##
8944 ## -------------------- ##
8946 # Be more Bourne compatible
8947 DUALCASE=1; export DUALCASE # for MKS sh
8948 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8949 emulate sh
8950 NULLCMD=:
8951 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8952 # is contrary to our usage. Disable this feature.
8953 alias -g '${1+"$@"}'='"$@"'
8954 setopt NO_GLOB_SUBST
8955 else
8956 case `(set -o) 2>/dev/null` in #(
8957 *posix*) :
8958 set -o posix ;; #(
8959 *) :
8961 esac
8965 as_nl='
8967 export as_nl
8968 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8969 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8970 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8972 # Prefer a ksh shell builtin over an external printf program on Solaris,
8973 # but without wasting forks for bash or zsh.
8974 if test -z "$BASH_VERSION$ZSH_VERSION" \
8975 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8976 as_echo='print -r --'
8977 as_echo_n='print -rn --'
8978 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8979 as_echo='printf %s\n'
8980 as_echo_n='printf %s'
8981 else
8982 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8983 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8984 as_echo_n='/usr/ucb/echo -n'
8985 else
8986 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8987 as_echo_n_body='eval
8988 arg=$1;
8989 case $arg in #(
8990 *"$as_nl"*)
8991 expr "X$arg" : "X\\(.*\\)$as_nl";
8992 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8993 esac;
8994 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8996 export as_echo_n_body
8997 as_echo_n='sh -c $as_echo_n_body as_echo'
8999 export as_echo_body
9000 as_echo='sh -c $as_echo_body as_echo'
9003 # The user is always right.
9004 if test "${PATH_SEPARATOR+set}" != set; then
9005 PATH_SEPARATOR=:
9006 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9007 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9008 PATH_SEPARATOR=';'
9013 # IFS
9014 # We need space, tab and new line, in precisely that order. Quoting is
9015 # there to prevent editors from complaining about space-tab.
9016 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9017 # splitting by setting IFS to empty value.)
9018 IFS=" "" $as_nl"
9020 # Find who we are. Look in the path if we contain no directory separator.
9021 as_myself=
9022 case $0 in #((
9023 *[\\/]* ) as_myself=$0 ;;
9024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9030 done
9031 IFS=$as_save_IFS
9034 esac
9035 # We did not find ourselves, most probably we were run as `sh COMMAND'
9036 # in which case we are not to be found in the path.
9037 if test "x$as_myself" = x; then
9038 as_myself=$0
9040 if test ! -f "$as_myself"; then
9041 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9042 exit 1
9045 # Unset variables that we do not need and which cause bugs (e.g. in
9046 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9047 # suppresses any "Segmentation fault" message there. '((' could
9048 # trigger a bug in pdksh 5.2.14.
9049 for as_var in BASH_ENV ENV MAIL MAILPATH
9050 do eval test x\${$as_var+set} = xset \
9051 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9052 done
9053 PS1='$ '
9054 PS2='> '
9055 PS4='+ '
9057 # NLS nuisances.
9058 LC_ALL=C
9059 export LC_ALL
9060 LANGUAGE=C
9061 export LANGUAGE
9063 # CDPATH.
9064 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9067 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9068 # ----------------------------------------
9069 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9070 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9071 # script with STATUS, using 1 if that was 0.
9072 as_fn_error ()
9074 as_status=$1; test $as_status -eq 0 && as_status=1
9075 if test "$4"; then
9076 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9077 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9079 $as_echo "$as_me: error: $2" >&2
9080 as_fn_exit $as_status
9081 } # as_fn_error
9084 # as_fn_set_status STATUS
9085 # -----------------------
9086 # Set $? to STATUS, without forking.
9087 as_fn_set_status ()
9089 return $1
9090 } # as_fn_set_status
9092 # as_fn_exit STATUS
9093 # -----------------
9094 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9095 as_fn_exit ()
9097 set +e
9098 as_fn_set_status $1
9099 exit $1
9100 } # as_fn_exit
9102 # as_fn_unset VAR
9103 # ---------------
9104 # Portably unset VAR.
9105 as_fn_unset ()
9107 { eval $1=; unset $1;}
9109 as_unset=as_fn_unset
9110 # as_fn_append VAR VALUE
9111 # ----------------------
9112 # Append the text in VALUE to the end of the definition contained in VAR. Take
9113 # advantage of any shell optimizations that allow amortized linear growth over
9114 # repeated appends, instead of the typical quadratic growth present in naive
9115 # implementations.
9116 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9117 eval 'as_fn_append ()
9119 eval $1+=\$2
9121 else
9122 as_fn_append ()
9124 eval $1=\$$1\$2
9126 fi # as_fn_append
9128 # as_fn_arith ARG...
9129 # ------------------
9130 # Perform arithmetic evaluation on the ARGs, and store the result in the
9131 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9132 # must be portable across $(()) and expr.
9133 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9134 eval 'as_fn_arith ()
9136 as_val=$(( $* ))
9138 else
9139 as_fn_arith ()
9141 as_val=`expr "$@" || test $? -eq 1`
9143 fi # as_fn_arith
9146 if expr a : '\(a\)' >/dev/null 2>&1 &&
9147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9148 as_expr=expr
9149 else
9150 as_expr=false
9153 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9154 as_basename=basename
9155 else
9156 as_basename=false
9159 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9160 as_dirname=dirname
9161 else
9162 as_dirname=false
9165 as_me=`$as_basename -- "$0" ||
9166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9167 X"$0" : 'X\(//\)$' \| \
9168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9169 $as_echo X/"$0" |
9170 sed '/^.*\/\([^/][^/]*\)\/*$/{
9171 s//\1/
9174 /^X\/\(\/\/\)$/{
9175 s//\1/
9178 /^X\/\(\/\).*/{
9179 s//\1/
9182 s/.*/./; q'`
9184 # Avoid depending upon Character Ranges.
9185 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9186 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9187 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9188 as_cr_digits='0123456789'
9189 as_cr_alnum=$as_cr_Letters$as_cr_digits
9191 ECHO_C= ECHO_N= ECHO_T=
9192 case `echo -n x` in #(((((
9193 -n*)
9194 case `echo 'xy\c'` in
9195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9196 xy) ECHO_C='\c';;
9197 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9198 ECHO_T=' ';;
9199 esac;;
9201 ECHO_N='-n';;
9202 esac
9204 rm -f conf$$ conf$$.exe conf$$.file
9205 if test -d conf$$.dir; then
9206 rm -f conf$$.dir/conf$$.file
9207 else
9208 rm -f conf$$.dir
9209 mkdir conf$$.dir 2>/dev/null
9211 if (echo >conf$$.file) 2>/dev/null; then
9212 if ln -s conf$$.file conf$$ 2>/dev/null; then
9213 as_ln_s='ln -s'
9214 # ... but there are two gotchas:
9215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9217 # In both cases, we have to default to `cp -pR'.
9218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9219 as_ln_s='cp -pR'
9220 elif ln conf$$.file conf$$ 2>/dev/null; then
9221 as_ln_s=ln
9222 else
9223 as_ln_s='cp -pR'
9225 else
9226 as_ln_s='cp -pR'
9228 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9229 rmdir conf$$.dir 2>/dev/null
9232 # as_fn_mkdir_p
9233 # -------------
9234 # Create "$as_dir" as a directory, including parents if necessary.
9235 as_fn_mkdir_p ()
9238 case $as_dir in #(
9239 -*) as_dir=./$as_dir;;
9240 esac
9241 test -d "$as_dir" || eval $as_mkdir_p || {
9242 as_dirs=
9243 while :; do
9244 case $as_dir in #(
9245 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9246 *) as_qdir=$as_dir;;
9247 esac
9248 as_dirs="'$as_qdir' $as_dirs"
9249 as_dir=`$as_dirname -- "$as_dir" ||
9250 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9251 X"$as_dir" : 'X\(//\)[^/]' \| \
9252 X"$as_dir" : 'X\(//\)$' \| \
9253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9254 $as_echo X"$as_dir" |
9255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9256 s//\1/
9259 /^X\(\/\/\)[^/].*/{
9260 s//\1/
9263 /^X\(\/\/\)$/{
9264 s//\1/
9267 /^X\(\/\).*/{
9268 s//\1/
9271 s/.*/./; q'`
9272 test -d "$as_dir" && break
9273 done
9274 test -z "$as_dirs" || eval "mkdir $as_dirs"
9275 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9278 } # as_fn_mkdir_p
9279 if mkdir -p . 2>/dev/null; then
9280 as_mkdir_p='mkdir -p "$as_dir"'
9281 else
9282 test -d ./-p && rmdir ./-p
9283 as_mkdir_p=false
9287 # as_fn_executable_p FILE
9288 # -----------------------
9289 # Test if FILE is an executable regular file.
9290 as_fn_executable_p ()
9292 test -f "$1" && test -x "$1"
9293 } # as_fn_executable_p
9294 as_test_x='test -x'
9295 as_executable_p=as_fn_executable_p
9297 # Sed expression to map a string onto a valid CPP name.
9298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9300 # Sed expression to map a string onto a valid variable name.
9301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9304 exec 6>&1
9305 ## ----------------------------------- ##
9306 ## Main body of $CONFIG_STATUS script. ##
9307 ## ----------------------------------- ##
9308 _ASEOF
9309 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9312 # Save the log message, to keep $0 and so on meaningful, and to
9313 # report actual input values of CONFIG_FILES etc. instead of their
9314 # values after options handling.
9315 ac_log="
9316 This file was extended by GDash $as_me 20130317unstable, which was
9317 generated by GNU Autoconf 2.69. Invocation command line was
9319 CONFIG_FILES = $CONFIG_FILES
9320 CONFIG_HEADERS = $CONFIG_HEADERS
9321 CONFIG_LINKS = $CONFIG_LINKS
9322 CONFIG_COMMANDS = $CONFIG_COMMANDS
9323 $ $0 $@
9325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9328 _ACEOF
9330 case $ac_config_files in *"
9331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9332 esac
9334 case $ac_config_headers in *"
9335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9336 esac
9339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9340 # Files that config.status was made for.
9341 config_files="$ac_config_files"
9342 config_headers="$ac_config_headers"
9343 config_commands="$ac_config_commands"
9345 _ACEOF
9347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9348 ac_cs_usage="\
9349 \`$as_me' instantiates files and other configuration actions
9350 from templates according to the current configuration. Unless the files
9351 and actions are specified as TAGs, all are instantiated by default.
9353 Usage: $0 [OPTION]... [TAG]...
9355 -h, --help print this help, then exit
9356 -V, --version print version number and configuration settings, then exit
9357 --config print configuration, then exit
9358 -q, --quiet, --silent
9359 do not print progress messages
9360 -d, --debug don't remove temporary files
9361 --recheck update $as_me by reconfiguring in the same conditions
9362 --file=FILE[:TEMPLATE]
9363 instantiate the configuration file FILE
9364 --header=FILE[:TEMPLATE]
9365 instantiate the configuration header FILE
9367 Configuration files:
9368 $config_files
9370 Configuration headers:
9371 $config_headers
9373 Configuration commands:
9374 $config_commands
9376 Report bugs to <http://code.google.com/p/gdash/>."
9378 _ACEOF
9379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9380 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9381 ac_cs_version="\\
9382 GDash config.status 20130317unstable
9383 configured by $0, generated by GNU Autoconf 2.69,
9384 with options \\"\$ac_cs_config\\"
9386 Copyright (C) 2012 Free Software Foundation, Inc.
9387 This config.status script is free software; the Free Software Foundation
9388 gives unlimited permission to copy, distribute and modify it."
9390 ac_pwd='$ac_pwd'
9391 srcdir='$srcdir'
9392 INSTALL='$INSTALL'
9393 MKDIR_P='$MKDIR_P'
9394 AWK='$AWK'
9395 test -n "\$AWK" || AWK=awk
9396 _ACEOF
9398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9399 # The default lists apply if the user does not specify any file.
9400 ac_need_defaults=:
9401 while test $# != 0
9403 case $1 in
9404 --*=?*)
9405 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9406 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9407 ac_shift=:
9409 --*=)
9410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9411 ac_optarg=
9412 ac_shift=:
9415 ac_option=$1
9416 ac_optarg=$2
9417 ac_shift=shift
9419 esac
9421 case $ac_option in
9422 # Handling of the options.
9423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9424 ac_cs_recheck=: ;;
9425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9426 $as_echo "$ac_cs_version"; exit ;;
9427 --config | --confi | --conf | --con | --co | --c )
9428 $as_echo "$ac_cs_config"; exit ;;
9429 --debug | --debu | --deb | --de | --d | -d )
9430 debug=: ;;
9431 --file | --fil | --fi | --f )
9432 $ac_shift
9433 case $ac_optarg in
9434 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9435 '') as_fn_error $? "missing file argument" ;;
9436 esac
9437 as_fn_append CONFIG_FILES " '$ac_optarg'"
9438 ac_need_defaults=false;;
9439 --header | --heade | --head | --hea )
9440 $ac_shift
9441 case $ac_optarg in
9442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9443 esac
9444 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9445 ac_need_defaults=false;;
9446 --he | --h)
9447 # Conflict between --help and --header
9448 as_fn_error $? "ambiguous option: \`$1'
9449 Try \`$0 --help' for more information.";;
9450 --help | --hel | -h )
9451 $as_echo "$ac_cs_usage"; exit ;;
9452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9454 ac_cs_silent=: ;;
9456 # This is an error.
9457 -*) as_fn_error $? "unrecognized option: \`$1'
9458 Try \`$0 --help' for more information." ;;
9460 *) as_fn_append ac_config_targets " $1"
9461 ac_need_defaults=false ;;
9463 esac
9464 shift
9465 done
9467 ac_configure_extra_args=
9469 if $ac_cs_silent; then
9470 exec 6>/dev/null
9471 ac_configure_extra_args="$ac_configure_extra_args --silent"
9474 _ACEOF
9475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9476 if \$ac_cs_recheck; then
9477 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9478 shift
9479 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9480 CONFIG_SHELL='$SHELL'
9481 export CONFIG_SHELL
9482 exec "\$@"
9485 _ACEOF
9486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9487 exec 5>>config.log
9489 echo
9490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9491 ## Running $as_me. ##
9492 _ASBOX
9493 $as_echo "$ac_log"
9494 } >&5
9496 _ACEOF
9497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9499 # INIT-COMMANDS
9501 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9502 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9503 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9504 # from automake < 1.5.
9505 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9506 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9507 LINGUAS="${LINGUAS-%UNSET%}"
9510 _ACEOF
9512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9514 # Handling of arguments.
9515 for ac_config_target in $ac_config_targets
9517 case $ac_config_target in
9518 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9519 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9520 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9521 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9522 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9523 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9524 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9525 "caves/Makefile") CONFIG_FILES="$CONFIG_FILES caves/Makefile" ;;
9526 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9527 "sound/Makefile") CONFIG_FILES="$CONFIG_FILES sound/Makefile" ;;
9528 "music/Makefile") CONFIG_FILES="$CONFIG_FILES music/Makefile" ;;
9530 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9531 esac
9532 done
9535 # If the user did not use the arguments to specify the items to instantiate,
9536 # then the envvar interface is used. Set only those that are not.
9537 # We use the long form for the default assignment because of an extremely
9538 # bizarre bug on SunOS 4.1.3.
9539 if $ac_need_defaults; then
9540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9545 # Have a temporary directory for convenience. Make it in the build tree
9546 # simply because there is no reason against having it here, and in addition,
9547 # creating and moving files from /tmp can sometimes cause problems.
9548 # Hook for its removal unless debugging.
9549 # Note that there is a small window in which the directory will not be cleaned:
9550 # after its creation but before its name has been assigned to `$tmp'.
9551 $debug ||
9553 tmp= ac_tmp=
9554 trap 'exit_status=$?
9555 : "${ac_tmp:=$tmp}"
9556 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9558 trap 'as_fn_exit 1' 1 2 13 15
9560 # Create a (secure) tmp directory for tmp files.
9563 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9564 test -d "$tmp"
9565 } ||
9567 tmp=./conf$$-$RANDOM
9568 (umask 077 && mkdir "$tmp")
9569 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9570 ac_tmp=$tmp
9572 # Set up the scripts for CONFIG_FILES section.
9573 # No need to generate them if there are no CONFIG_FILES.
9574 # This happens for instance with `./config.status config.h'.
9575 if test -n "$CONFIG_FILES"; then
9578 ac_cr=`echo X | tr X '\015'`
9579 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9580 # But we know of no other shell where ac_cr would be empty at this
9581 # point, so we can use a bashism as a fallback.
9582 if test "x$ac_cr" = x; then
9583 eval ac_cr=\$\'\\r\'
9585 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9586 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9587 ac_cs_awk_cr='\\r'
9588 else
9589 ac_cs_awk_cr=$ac_cr
9592 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9593 _ACEOF
9597 echo "cat >conf$$subs.awk <<_ACEOF" &&
9598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9599 echo "_ACEOF"
9600 } >conf$$subs.sh ||
9601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9602 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9603 ac_delim='%!_!# '
9604 for ac_last_try in false false false false false :; do
9605 . ./conf$$subs.sh ||
9606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9609 if test $ac_delim_n = $ac_delim_num; then
9610 break
9611 elif $ac_last_try; then
9612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9613 else
9614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9616 done
9617 rm -f conf$$subs.sh
9619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9620 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9621 _ACEOF
9622 sed -n '
9624 s/^/S["/; s/!.*/"]=/
9627 s/^[^!]*!//
9628 :repl
9629 t repl
9630 s/'"$ac_delim"'$//
9631 t delim
9634 s/\(.\{148\}\)..*/\1/
9635 t more1
9636 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9639 b repl
9640 :more1
9641 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9644 s/.\{148\}//
9645 t nl
9646 :delim
9648 s/\(.\{148\}\)..*/\1/
9649 t more2
9650 s/["\\]/\\&/g; s/^/"/; s/$/"/
9653 :more2
9654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9657 s/.\{148\}//
9658 t delim
9659 ' <conf$$subs.awk | sed '
9660 /^[^""]/{
9662 s/\n//
9664 ' >>$CONFIG_STATUS || ac_write_fail=1
9665 rm -f conf$$subs.awk
9666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9667 _ACAWK
9668 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9669 for (key in S) S_is_set[key] = 1
9670 FS = "\a"
9674 line = $ 0
9675 nfields = split(line, field, "@")
9676 substed = 0
9677 len = length(field[1])
9678 for (i = 2; i < nfields; i++) {
9679 key = field[i]
9680 keylen = length(key)
9681 if (S_is_set[key]) {
9682 value = S[key]
9683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9684 len += length(value) + length(field[++i])
9685 substed = 1
9686 } else
9687 len += 1 + keylen
9690 print line
9693 _ACAWK
9694 _ACEOF
9695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9696 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9697 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9698 else
9700 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9701 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9702 _ACEOF
9704 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9705 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9706 # trailing colons and then remove the whole line if VPATH becomes empty
9707 # (actually we leave an empty line to preserve line numbers).
9708 if test "x$srcdir" = x.; then
9709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9711 s///
9712 s/^/:/
9713 s/[ ]*$/:/
9714 s/:\$(srcdir):/:/g
9715 s/:\${srcdir}:/:/g
9716 s/:@srcdir@:/:/g
9717 s/^:*//
9718 s/:*$//
9720 s/\(=[ ]*\).*/\1/
9722 s/\n//
9723 s/^[^=]*=[ ]*$//
9727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9728 fi # test -n "$CONFIG_FILES"
9730 # Set up the scripts for CONFIG_HEADERS section.
9731 # No need to generate them if there are no CONFIG_HEADERS.
9732 # This happens for instance with `./config.status Makefile'.
9733 if test -n "$CONFIG_HEADERS"; then
9734 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9735 BEGIN {
9736 _ACEOF
9738 # Transform confdefs.h into an awk script `defines.awk', embedded as
9739 # here-document in config.status, that substitutes the proper values into
9740 # config.h.in to produce config.h.
9742 # Create a delimiter string that does not exist in confdefs.h, to ease
9743 # handling of long lines.
9744 ac_delim='%!_!# '
9745 for ac_last_try in false false :; do
9746 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9747 if test -z "$ac_tt"; then
9748 break
9749 elif $ac_last_try; then
9750 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9751 else
9752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9754 done
9756 # For the awk script, D is an array of macro values keyed by name,
9757 # likewise P contains macro parameters if any. Preserve backslash
9758 # newline sequences.
9760 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9761 sed -n '
9762 s/.\{148\}/&'"$ac_delim"'/g
9763 t rset
9764 :rset
9765 s/^[ ]*#[ ]*define[ ][ ]*/ /
9766 t def
9768 :def
9769 s/\\$//
9770 t bsnl
9771 s/["\\]/\\&/g
9772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9773 D["\1"]=" \3"/p
9774 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9776 :bsnl
9777 s/["\\]/\\&/g
9778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9779 D["\1"]=" \3\\\\\\n"\\/p
9780 t cont
9781 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9782 t cont
9784 :cont
9786 s/.\{148\}/&'"$ac_delim"'/g
9787 t clear
9788 :clear
9789 s/\\$//
9790 t bsnlc
9791 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9793 :bsnlc
9794 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9795 b cont
9796 ' <confdefs.h | sed '
9797 s/'"$ac_delim"'/"\\\
9798 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9801 for (key in D) D_is_set[key] = 1
9802 FS = "\a"
9804 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9805 line = \$ 0
9806 split(line, arg, " ")
9807 if (arg[1] == "#") {
9808 defundef = arg[2]
9809 mac1 = arg[3]
9810 } else {
9811 defundef = substr(arg[1], 2)
9812 mac1 = arg[2]
9814 split(mac1, mac2, "(") #)
9815 macro = mac2[1]
9816 prefix = substr(line, 1, index(line, defundef) - 1)
9817 if (D_is_set[macro]) {
9818 # Preserve the white space surrounding the "#".
9819 print prefix "define", macro P[macro] D[macro]
9820 next
9821 } else {
9822 # Replace #undef with comments. This is necessary, for example,
9823 # in the case of _POSIX_SOURCE, which is predefined and required
9824 # on some systems where configure will not decide to define it.
9825 if (defundef == "undef") {
9826 print "/*", prefix defundef, macro, "*/"
9827 next
9831 { print }
9832 _ACAWK
9833 _ACEOF
9834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9835 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9836 fi # test -n "$CONFIG_HEADERS"
9839 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9840 shift
9841 for ac_tag
9843 case $ac_tag in
9844 :[FHLC]) ac_mode=$ac_tag; continue;;
9845 esac
9846 case $ac_mode$ac_tag in
9847 :[FHL]*:*);;
9848 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9849 :[FH]-) ac_tag=-:-;;
9850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9851 esac
9852 ac_save_IFS=$IFS
9853 IFS=:
9854 set x $ac_tag
9855 IFS=$ac_save_IFS
9856 shift
9857 ac_file=$1
9858 shift
9860 case $ac_mode in
9861 :L) ac_source=$1;;
9862 :[FH])
9863 ac_file_inputs=
9864 for ac_f
9866 case $ac_f in
9867 -) ac_f="$ac_tmp/stdin";;
9868 *) # Look for the file first in the build tree, then in the source tree
9869 # (if the path is not absolute). The absolute path cannot be DOS-style,
9870 # because $ac_f cannot contain `:'.
9871 test -f "$ac_f" ||
9872 case $ac_f in
9873 [\\/$]*) false;;
9874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9875 esac ||
9876 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9877 esac
9878 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9879 as_fn_append ac_file_inputs " '$ac_f'"
9880 done
9882 # Let's still pretend it is `configure' which instantiates (i.e., don't
9883 # use $as_me), people would be surprised to read:
9884 # /* config.h. Generated by config.status. */
9885 configure_input='Generated from '`
9886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9887 `' by configure.'
9888 if test x"$ac_file" != x-; then
9889 configure_input="$ac_file. $configure_input"
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9891 $as_echo "$as_me: creating $ac_file" >&6;}
9893 # Neutralize special characters interpreted by sed in replacement strings.
9894 case $configure_input in #(
9895 *\&* | *\|* | *\\* )
9896 ac_sed_conf_input=`$as_echo "$configure_input" |
9897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9898 *) ac_sed_conf_input=$configure_input;;
9899 esac
9901 case $ac_tag in
9902 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9904 esac
9906 esac
9908 ac_dir=`$as_dirname -- "$ac_file" ||
9909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9910 X"$ac_file" : 'X\(//\)[^/]' \| \
9911 X"$ac_file" : 'X\(//\)$' \| \
9912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9913 $as_echo X"$ac_file" |
9914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9915 s//\1/
9918 /^X\(\/\/\)[^/].*/{
9919 s//\1/
9922 /^X\(\/\/\)$/{
9923 s//\1/
9926 /^X\(\/\).*/{
9927 s//\1/
9930 s/.*/./; q'`
9931 as_dir="$ac_dir"; as_fn_mkdir_p
9932 ac_builddir=.
9934 case "$ac_dir" in
9935 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9937 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9938 # A ".." for each directory in $ac_dir_suffix.
9939 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9940 case $ac_top_builddir_sub in
9941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9943 esac ;;
9944 esac
9945 ac_abs_top_builddir=$ac_pwd
9946 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9947 # for backward compatibility:
9948 ac_top_builddir=$ac_top_build_prefix
9950 case $srcdir in
9951 .) # We are building in place.
9952 ac_srcdir=.
9953 ac_top_srcdir=$ac_top_builddir_sub
9954 ac_abs_top_srcdir=$ac_pwd ;;
9955 [\\/]* | ?:[\\/]* ) # Absolute name.
9956 ac_srcdir=$srcdir$ac_dir_suffix;
9957 ac_top_srcdir=$srcdir
9958 ac_abs_top_srcdir=$srcdir ;;
9959 *) # Relative name.
9960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9961 ac_top_srcdir=$ac_top_build_prefix$srcdir
9962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9963 esac
9964 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9967 case $ac_mode in
9970 # CONFIG_FILE
9973 case $INSTALL in
9974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9976 esac
9977 ac_MKDIR_P=$MKDIR_P
9978 case $MKDIR_P in
9979 [\\/$]* | ?:[\\/]* ) ;;
9980 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9981 esac
9982 _ACEOF
9984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9985 # If the template does not know about datarootdir, expand it.
9986 # FIXME: This hack should be removed a few years after 2.60.
9987 ac_datarootdir_hack=; ac_datarootdir_seen=
9988 ac_sed_dataroot='
9989 /datarootdir/ {
9993 /@datadir@/p
9994 /@docdir@/p
9995 /@infodir@/p
9996 /@localedir@/p
9997 /@mandir@/p'
9998 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9999 *datarootdir*) ac_datarootdir_seen=yes;;
10000 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10002 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10003 _ACEOF
10004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10005 ac_datarootdir_hack='
10006 s&@datadir@&$datadir&g
10007 s&@docdir@&$docdir&g
10008 s&@infodir@&$infodir&g
10009 s&@localedir@&$localedir&g
10010 s&@mandir@&$mandir&g
10011 s&\\\${datarootdir}&$datarootdir&g' ;;
10012 esac
10013 _ACEOF
10015 # Neutralize VPATH when `$srcdir' = `.'.
10016 # Shell code in configure.ac might set extrasub.
10017 # FIXME: do we really want to maintain this feature?
10018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10019 ac_sed_extra="$ac_vpsub
10020 $extrasub
10021 _ACEOF
10022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10025 s|@configure_input@|$ac_sed_conf_input|;t t
10026 s&@top_builddir@&$ac_top_builddir_sub&;t t
10027 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10028 s&@srcdir@&$ac_srcdir&;t t
10029 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10030 s&@top_srcdir@&$ac_top_srcdir&;t t
10031 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10032 s&@builddir@&$ac_builddir&;t t
10033 s&@abs_builddir@&$ac_abs_builddir&;t t
10034 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10035 s&@INSTALL@&$ac_INSTALL&;t t
10036 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10037 $ac_datarootdir_hack
10039 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10040 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10045 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10047 which seems to be undefined. Please make sure it is defined" >&5
10048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10049 which seems to be undefined. Please make sure it is defined" >&2;}
10051 rm -f "$ac_tmp/stdin"
10052 case $ac_file in
10053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10055 esac \
10056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10060 # CONFIG_HEADER
10062 if test x"$ac_file" != x-; then
10064 $as_echo "/* $configure_input */" \
10065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10066 } >"$ac_tmp/config.h" \
10067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10071 else
10072 rm -f "$ac_file"
10073 mv "$ac_tmp/config.h" "$ac_file" \
10074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10076 else
10077 $as_echo "/* $configure_input */" \
10078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10079 || as_fn_error $? "could not create -" "$LINENO" 5
10081 # Compute "$ac_file"'s index in $config_headers.
10082 _am_arg="$ac_file"
10083 _am_stamp_count=1
10084 for _am_header in $config_headers :; do
10085 case $_am_header in
10086 $_am_arg | $_am_arg:* )
10087 break ;;
10089 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10090 esac
10091 done
10092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10094 X"$_am_arg" : 'X\(//\)[^/]' \| \
10095 X"$_am_arg" : 'X\(//\)$' \| \
10096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10097 $as_echo X"$_am_arg" |
10098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10099 s//\1/
10102 /^X\(\/\/\)[^/].*/{
10103 s//\1/
10106 /^X\(\/\/\)$/{
10107 s//\1/
10110 /^X\(\/\).*/{
10111 s//\1/
10114 s/.*/./; q'`/stamp-h$_am_stamp_count
10117 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10118 $as_echo "$as_me: executing $ac_file commands" >&6;}
10120 esac
10123 case $ac_file$ac_mode in
10124 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10125 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10126 # are listed without --file. Let's play safe and only enable the eval
10127 # if we detect the quoting.
10128 case $CONFIG_FILES in
10129 *\'*) eval set x "$CONFIG_FILES" ;;
10130 *) set x $CONFIG_FILES ;;
10131 esac
10132 shift
10133 for mf
10135 # Strip MF so we end up with the name of the file.
10136 mf=`echo "$mf" | sed -e 's/:.*$//'`
10137 # Check whether this is an Automake generated Makefile or not.
10138 # We used to match only the files named `Makefile.in', but
10139 # some people rename them; so instead we look at the file content.
10140 # Grep'ing the first line is not enough: some people post-process
10141 # each Makefile.in and add a new line on top of each file to say so.
10142 # Grep'ing the whole file is not good either: AIX grep has a line
10143 # limit of 2048, but all sed's we know have understand at least 4000.
10144 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10145 dirpart=`$as_dirname -- "$mf" ||
10146 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10147 X"$mf" : 'X\(//\)[^/]' \| \
10148 X"$mf" : 'X\(//\)$' \| \
10149 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10150 $as_echo X"$mf" |
10151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10152 s//\1/
10155 /^X\(\/\/\)[^/].*/{
10156 s//\1/
10159 /^X\(\/\/\)$/{
10160 s//\1/
10163 /^X\(\/\).*/{
10164 s//\1/
10167 s/.*/./; q'`
10168 else
10169 continue
10171 # Extract the definition of DEPDIR, am__include, and am__quote
10172 # from the Makefile without running `make'.
10173 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10174 test -z "$DEPDIR" && continue
10175 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10176 test -z "am__include" && continue
10177 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10178 # When using ansi2knr, U may be empty or an underscore; expand it
10179 U=`sed -n 's/^U = //p' < "$mf"`
10180 # Find all dependency output files, they are included files with
10181 # $(DEPDIR) in their names. We invoke sed twice because it is the
10182 # simplest approach to changing $(DEPDIR) to its actual value in the
10183 # expansion.
10184 for file in `sed -n "
10185 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10186 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10187 # Make sure the directory exists.
10188 test -f "$dirpart/$file" && continue
10189 fdir=`$as_dirname -- "$file" ||
10190 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10191 X"$file" : 'X\(//\)[^/]' \| \
10192 X"$file" : 'X\(//\)$' \| \
10193 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10194 $as_echo X"$file" |
10195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10196 s//\1/
10199 /^X\(\/\/\)[^/].*/{
10200 s//\1/
10203 /^X\(\/\/\)$/{
10204 s//\1/
10207 /^X\(\/\).*/{
10208 s//\1/
10211 s/.*/./; q'`
10212 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10213 # echo "creating $dirpart/$file"
10214 echo '# dummy' > "$dirpart/$file"
10215 done
10216 done
10219 "po-directories":C)
10220 for ac_file in $CONFIG_FILES; do
10221 # Support "outfile[:infile[:infile...]]"
10222 case "$ac_file" in
10223 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10224 esac
10225 # PO directories have a Makefile.in generated from Makefile.in.in.
10226 case "$ac_file" in */Makefile.in)
10227 # Adjust a relative srcdir.
10228 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10229 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10230 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10231 # In autoconf-2.13 it is called $ac_given_srcdir.
10232 # In autoconf-2.50 it is called $srcdir.
10233 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10234 case "$ac_given_srcdir" in
10235 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10236 /*) top_srcdir="$ac_given_srcdir" ;;
10237 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10238 esac
10239 # Treat a directory as a PO directory if and only if it has a
10240 # POTFILES.in file. This allows packages to have multiple PO
10241 # directories under different names or in different locations.
10242 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10243 rm -f "$ac_dir/POTFILES"
10244 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10245 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10246 POMAKEFILEDEPS="POTFILES.in"
10247 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10248 # on $ac_dir but don't depend on user-specified configuration
10249 # parameters.
10250 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10251 # The LINGUAS file contains the set of available languages.
10252 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10253 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10255 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10256 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10257 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10258 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10259 else
10260 # The set of available languages was given in configure.in.
10261 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10262 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10264 # Compute POFILES
10265 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10266 # Compute UPDATEPOFILES
10267 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10268 # Compute DUMMYPOFILES
10269 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10270 # Compute GMOFILES
10271 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10272 case "$ac_given_srcdir" in
10273 .) srcdirpre= ;;
10274 *) srcdirpre='$(srcdir)/' ;;
10275 esac
10276 POFILES=
10277 UPDATEPOFILES=
10278 DUMMYPOFILES=
10279 GMOFILES=
10280 for lang in $ALL_LINGUAS; do
10281 POFILES="$POFILES $srcdirpre$lang.po"
10282 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10283 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10284 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10285 done
10286 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10287 # environment variable.
10288 INST_LINGUAS=
10289 if test -n "$ALL_LINGUAS"; then
10290 for presentlang in $ALL_LINGUAS; do
10291 useit=no
10292 if test "%UNSET%" != "$LINGUAS"; then
10293 desiredlanguages="$LINGUAS"
10294 else
10295 desiredlanguages="$ALL_LINGUAS"
10297 for desiredlang in $desiredlanguages; do
10298 # Use the presentlang catalog if desiredlang is
10299 # a. equal to presentlang, or
10300 # b. a variant of presentlang (because in this case,
10301 # presentlang can be used as a fallback for messages
10302 # which are not translated in the desiredlang catalog).
10303 case "$desiredlang" in
10304 "$presentlang"*) useit=yes;;
10305 esac
10306 done
10307 if test $useit = yes; then
10308 INST_LINGUAS="$INST_LINGUAS $presentlang"
10310 done
10312 CATALOGS=
10313 if test -n "$INST_LINGUAS"; then
10314 for lang in $INST_LINGUAS; do
10315 CATALOGS="$CATALOGS $lang.gmo"
10316 done
10318 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10319 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"
10320 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10321 if test -f "$f"; then
10322 case "$f" in
10323 *.orig | *.bak | *~) ;;
10324 *) cat "$f" >> "$ac_dir/Makefile" ;;
10325 esac
10327 done
10330 esac
10331 done ;;
10333 esac
10334 done # for ac_tag
10337 as_fn_exit 0
10338 _ACEOF
10339 ac_clean_files=$ac_clean_files_save
10341 test $ac_write_fail = 0 ||
10342 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10345 # configure is writing to config.log, and then calls config.status.
10346 # config.status does its own redirection, appending to config.log.
10347 # Unfortunately, on DOS this fails, as config.log is still kept open
10348 # by configure, so config.status won't be able to write to it; its
10349 # output is simply discarded. So we exec the FD to /dev/null,
10350 # effectively closing config.log, so it can be properly (re)opened and
10351 # appended to by config.status. When coming back to configure, we
10352 # need to make the FD available again.
10353 if test "$no_create" != yes; then
10354 ac_cs_success=:
10355 ac_config_status_args=
10356 test "$silent" = yes &&
10357 ac_config_status_args="$ac_config_status_args --quiet"
10358 exec 5>/dev/null
10359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10360 exec 5>>config.log
10361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10362 # would make configure fail if this is the last instruction.
10363 $ac_cs_success || as_fn_exit 1
10365 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10367 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}