Fix is_matrix_symmetry() to correctly choose between c1 and s1.
[gliv.git] / configure
blobb1d22cf325cd751f06e48c5bc0115d4758b0fed2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gliv 1.9.7.
5 # Report bugs to <guichaz@gmail.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and guichaz@gmail.com
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='gliv'
551 PACKAGE_TARNAME='gliv'
552 PACKAGE_VERSION='1.9.7'
553 PACKAGE_STRING='gliv 1.9.7'
554 PACKAGE_BUGREPORT='guichaz@gmail.com'
555 PACKAGE_URL=''
557 ac_unique_file="src/main.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 gt_needs=
595 ac_subst_vars='am__EXEEXT_FALSE
596 am__EXEEXT_TRUE
597 LTLIBOBJS
598 LIBOBJS
599 POSUB
600 LTLIBINTL
601 LIBINTL
602 INTLLIBS
603 INTL_LIBTOOL_SUFFIX_PREFIX
604 INTLOBJS
605 GENCAT
606 INSTOBJEXT
607 DATADIRNAME
608 CATOBJEXT
609 USE_INCLUDED_LIBINTL
610 BUILD_INCLUDED_LIBINTL
611 LTLIBC
612 WINDRES
613 WOE32
614 WOE32DLL
615 HAVE_WPRINTF
616 HAVE_SNPRINTF
617 HAVE_ASPRINTF
618 HAVE_POSIX_PRINTF
619 INTL_MACOSX_LIBS
620 GLIBC21
621 INTLBISON
622 LTLIBICONV
623 LIBICONV
624 LTLIBMULTITHREAD
625 LIBMULTITHREAD
626 LTLIBTHREAD
627 LIBTHREAD
628 LIBPTH_PREFIX
629 LTLIBPTH
630 LIBPTH
631 PRI_MACROS_BROKEN
632 ALLOCA
633 HAVE_VISIBILITY
634 CFLAG_VISIBILITY
635 GLIBC2
636 host_os
637 host_vendor
638 host_cpu
639 host
640 build_os
641 build_vendor
642 build_cpu
643 build
644 XGETTEXT_EXTRA_OPTIONS
645 MSGMERGE
646 XGETTEXT_015
647 XGETTEXT
648 GMSGFMT_015
649 MSGFMT_015
650 GMSGFMT
651 MSGFMT
652 GETTEXT_MACRO_VERSION
653 USE_NLS
654 GTK_LIBS
655 GTK_CFLAGS
656 GTKGLEXT_LIBS
657 GTKGLEXT_CFLAGS
658 PKG_CONFIG
659 X_EXTRA_LIBS
660 X_LIBS
661 X_PRE_LIBS
662 X_CFLAGS
663 XMKMF
664 NEED_REPLACEMENTS_FALSE
665 NEED_REPLACEMENTS_TRUE
666 GETOPT_LONG_FALSE
667 GETOPT_LONG_TRUE
668 GETDELIM_FALSE
669 GETDELIM_TRUE
670 RANLIB
671 EGREP
672 GREP
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_dependency_tracking
755 enable_largefile
756 with_x
757 enable_gtktest
758 enable_nls
759 enable_threads
760 with_gnu_ld
761 enable_rpath
762 with_libpth_prefix
763 with_libiconv_prefix
764 with_included_gettext
765 with_libintl_prefix
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
776 XMKMF
777 PKG_CONFIG
778 GTKGLEXT_CFLAGS
779 GTKGLEXT_LIBS'
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
830 ac_prev=
831 ac_dashdash=
832 for ac_option
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
850 ac_dashdash=yes ;;
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
869 --config-cache | -C)
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1186 esac
1187 done
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error "missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures gliv 1.9.7 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/gliv]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1376 cat <<\_ACEOF
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383 X features:
1384 --x-includes=DIR X include files are in DIR
1385 --x-libraries=DIR X library files are in DIR
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of gliv 1.9.7:";;
1396 esac
1397 cat <<\_ACEOF
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --disable-largefile omit support for large files
1406 --disable-gtktest do not try to compile and run a test GTK+ program
1407 --disable-nls do not use Native Language Support
1408 --enable-threads={posix|solaris|pth|win32}
1409 specify multithreading API
1410 --disable-threads build without multithread safety
1411 --disable-rpath do not hardcode runtime library paths
1413 Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-x use the X Window System
1417 --with-gnu-ld assume the C compiler uses GNU ld default=no
1418 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1419 --without-libpth-prefix don't search for libpth in includedir and libdir
1420 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1421 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1422 --with-included-gettext use the GNU gettext library included here
1423 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1424 --without-libintl-prefix don't search for libintl in includedir and libdir
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor
1435 XMKMF Path to xmkmf, Makefile generator for X Window System
1436 PKG_CONFIG path to pkg-config utility
1437 GTKGLEXT_CFLAGS
1438 C compiler flags for GTKGLEXT, overriding pkg-config
1439 GTKGLEXT_LIBS
1440 linker flags for GTKGLEXT, overriding pkg-config
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <guichaz@gmail.com>.
1446 _ACEOF
1447 ac_status=$?
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 gliv configure 1.9.7
1509 generated by GNU Autoconf 2.64
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1553 ac_retval=1
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } >/dev/null && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1595 } # ac_fn_c_try_cpp
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1601 # accordingly.
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609 $as_echo_n "(cached) " >&6
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1625 else
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1641 else
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 yes:no: )
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 no:yes:* )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( cat <<\_ASBOX
1668 ## -------------------------------- ##
1669 ## Report this to guichaz@gmail.com ##
1670 ## -------------------------------- ##
1671 _ASBOX
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1674 esac
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 eval "$3=\$ac_header_compiler"
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_header_mongrel
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1730 } # ac_fn_c_try_run
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_c_check_header_compile
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=1
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824 #define $2 innocuous_$2
1826 /* System header to define __stub macros and hopefully few prototypes,
1827 which can conflict with char $2 (); below.
1828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829 <limits.h> exists even on freestanding compilers. */
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1837 #undef $2
1839 /* Override any GCC internal prototype to avoid an error.
1840 Use char because int might match the return type of a GCC
1841 builtin and then its argument prototype would still apply. */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1854 main ()
1856 return $2 ();
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862 eval "$3=yes"
1863 else
1864 eval "$3=no"
1866 rm -f core conftest.err conftest.$ac_objext \
1867 conftest$ac_exeext conftest.$ac_ext
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 } # ac_fn_c_check_func
1876 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1877 # --------------------------------------------
1878 # Tries to find the compile-time value of EXPR in a program that includes
1879 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1880 # computed
1881 ac_fn_c_compute_int ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if test "$cross_compiling" = yes; then
1885 # Depending upon the size, compute the lo and hi bounds.
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 main ()
1892 static int test_array [1 - 2 * !(($2) >= 0)];
1893 test_array [0] = 0
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_lo=0 ac_mid=0
1901 while :; do
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1906 main ()
1908 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1909 test_array [0] = 0
1912 return 0;
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_hi=$ac_mid; break
1917 else
1918 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919 if test $ac_lo -le $ac_mid; then
1920 ac_lo= ac_hi=
1921 break
1923 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 done
1927 else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1932 main ()
1934 static int test_array [1 - 2 * !(($2) < 0)];
1935 test_array [0] = 0
1938 return 0;
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_hi=-1 ac_mid=-1
1943 while :; do
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 main ()
1950 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1951 test_array [0] = 0
1954 return 0;
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_lo=$ac_mid; break
1959 else
1960 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961 if test $ac_mid -le $ac_hi; then
1962 ac_lo= ac_hi=
1963 break
1965 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
1969 else
1970 ac_lo= ac_hi=
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 # Binary search between lo and hi bounds.
1976 while test "x$ac_lo" != "x$ac_hi"; do
1977 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 main ()
1984 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985 test_array [0] = 0
1988 return 0;
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_hi=$ac_mid
1993 else
1994 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 done
1998 case $ac_lo in #((
1999 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2000 '') ac_retval=1 ;;
2001 esac
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2006 static long int longval () { return $2; }
2007 static unsigned long int ulongval () { return $2; }
2008 #include <stdio.h>
2009 #include <stdlib.h>
2011 main ()
2014 FILE *f = fopen ("conftest.val", "w");
2015 if (! f)
2016 return 1;
2017 if (($2) < 0)
2019 long int i = longval ();
2020 if (i != ($2))
2021 return 1;
2022 fprintf (f, "%ld", i);
2024 else
2026 unsigned long int i = ulongval ();
2027 if (i != ($2))
2028 return 1;
2029 fprintf (f, "%lu", i);
2031 /* Do not output a trailing newline, as this causes \r\n confusion
2032 on some platforms. */
2033 return ferror (f) || fclose (f) != 0;
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_run "$LINENO"; then :
2040 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2041 else
2042 ac_retval=1
2044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2045 conftest.$ac_objext conftest.beam conftest.$ac_ext
2046 rm -f conftest.val
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 return $ac_retval
2052 } # ac_fn_c_compute_int
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 eval "$3=no"
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 if (sizeof ($2))
2074 return 0;
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 if (sizeof (($2)))
2087 return 0;
2089 return 0;
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2094 else
2095 eval "$3=yes"
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106 } # ac_fn_c_check_type
2107 cat >config.log <<_ACEOF
2108 This file contains any messages produced by compilers while
2109 running configure, to aid debugging if configure makes a mistake.
2111 It was created by gliv $as_me 1.9.7, which was
2112 generated by GNU Autoconf 2.64. Invocation command line was
2114 $ $0 $@
2116 _ACEOF
2117 exec 5>>config.log
2119 cat <<_ASUNAME
2120 ## --------- ##
2121 ## Platform. ##
2122 ## --------- ##
2124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2133 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2141 _ASUNAME
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 $as_echo "PATH: $as_dir"
2149 done
2150 IFS=$as_save_IFS
2152 } >&5
2154 cat >&5 <<_ACEOF
2157 ## ----------- ##
2158 ## Core tests. ##
2159 ## ----------- ##
2161 _ACEOF
2164 # Keep a trace of the command line.
2165 # Strip out --no-create and --no-recursion so they do not pile up.
2166 # Strip out --silent because we don't want to record it for future runs.
2167 # Also quote any args containing shell meta-characters.
2168 # Make two passes to allow for proper duplicate-argument suppression.
2169 ac_configure_args=
2170 ac_configure_args0=
2171 ac_configure_args1=
2172 ac_must_keep_next=false
2173 for ac_pass in 1 2
2175 for ac_arg
2177 case $ac_arg in
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2181 continue ;;
2182 *\'*)
2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 esac
2185 case $ac_pass in
2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188 as_fn_append ac_configure_args1 " '$ac_arg'"
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2191 else
2192 case $ac_arg in
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 esac
2201 -* ) ac_must_keep_next=true ;;
2202 esac
2204 as_fn_append ac_configure_args " '$ac_arg'"
2206 esac
2207 done
2208 done
2209 { ac_configure_args0=; unset ac_configure_args0;}
2210 { ac_configure_args1=; unset ac_configure_args1;}
2212 # When interrupted or exit'd, cleanup temporary files, and complete
2213 # config.log. We remove comments because anyway the quotes in there
2214 # would cause problems or look ugly.
2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217 trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2220 echo
2222 cat <<\_ASBOX
2223 ## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##
2226 _ASBOX
2227 echo
2228 # The following way of writing the cache mishandles newlines in values,
2230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in #(
2233 *${as_nl}*)
2234 case $ac_var in #(
2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237 esac
2238 case $ac_var in #(
2239 _ | IFS | as_nl) ;; #(
2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241 *) { eval $ac_var=; unset $ac_var;} ;;
2242 esac ;;
2243 esac
2244 done
2245 (set) 2>&1 |
2246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247 *${as_nl}ac_space=\ *)
2248 sed -n \
2249 "s/'\''/'\''\\\\'\'''\''/g;
2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251 ;; #(
2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2255 esac |
2256 sort
2258 echo
2260 cat <<\_ASBOX
2261 ## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##
2264 _ASBOX
2265 echo
2266 for ac_var in $ac_subst_vars
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2276 if test -n "$ac_subst_files"; then
2277 cat <<\_ASBOX
2278 ## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##
2281 _ASBOX
2282 echo
2283 for ac_var in $ac_subst_files
2285 eval ac_val=\$$ac_var
2286 case $ac_val in
2287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288 esac
2289 $as_echo "$ac_var='\''$ac_val'\''"
2290 done | sort
2291 echo
2294 if test -s confdefs.h; then
2295 cat <<\_ASBOX
2296 ## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##
2299 _ASBOX
2300 echo
2301 cat confdefs.h
2302 echo
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314 done
2315 ac_signal=0
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2320 $as_echo "/* confdefs.h */" > confdefs.h
2322 # Predefined preprocessor variables.
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2346 _ACEOF
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 ac_site_file1=NONE
2352 ac_site_file2=NONE
2353 if test -n "$CONFIG_SITE"; then
2354 ac_site_file1=$CONFIG_SITE
2355 elif test "x$prefix" != xNONE; then
2356 ac_site_file1=$prefix/share/config.site
2357 ac_site_file2=$prefix/etc/config.site
2358 else
2359 ac_site_file1=$ac_default_prefix/share/config.site
2360 ac_site_file2=$ac_default_prefix/etc/config.site
2362 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2364 test "x$ac_site_file" = xNONE && continue
2365 if test -r "$ac_site_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368 sed 's/^/| /' "$ac_site_file" >&5
2369 . "$ac_site_file"
2371 done
2373 if test -r "$cache_file"; then
2374 # Some versions of bash will fail to source /dev/null (special
2375 # files actually), so we avoid doing that.
2376 if test -f "$cache_file"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379 case $cache_file in
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2382 esac
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2387 >$cache_file
2390 gt_needs="$gt_needs "
2391 # Check that the precious variables saved in the cache have kept the same
2392 # value.
2393 ac_cache_corrupted=false
2394 for ac_var in $ac_precious_vars; do
2395 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396 eval ac_new_set=\$ac_env_${ac_var}_set
2397 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398 eval ac_new_val=\$ac_env_${ac_var}_value
2399 case $ac_old_set,$ac_new_set in
2400 set,)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,set)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,);;
2410 if test "x$ac_old_val" != "x$ac_new_val"; then
2411 # differences in whitespace do not lead to failure.
2412 ac_old_val_w=`echo x $ac_old_val`
2413 ac_new_val_w=`echo x $ac_new_val`
2414 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2416 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417 ac_cache_corrupted=:
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2420 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2421 eval $ac_var=\$ac_old_val
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2424 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2426 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2427 fi;;
2428 esac
2429 # Pass precious variables to config.status.
2430 if test "$ac_new_set" = set; then
2431 case $ac_new_val in
2432 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 *) ac_arg=$ac_var=$ac_new_val ;;
2434 esac
2435 case " $ac_configure_args " in
2436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2437 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2438 esac
2440 done
2441 if $ac_cache_corrupted; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2445 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2446 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448 ## -------------------- ##
2449 ## Main body of script. ##
2450 ## -------------------- ##
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460 am__api_version='1.11'
2462 ac_aux_dir=
2463 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2464 for ac_t in install-sh install.sh shtool; do
2465 if test -f "$ac_dir/$ac_t"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/$ac_t -c"
2468 break 2
2470 done
2471 done
2472 if test -z "$ac_aux_dir"; then
2473 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2476 # These three variables are undocumented and unsupported,
2477 # and are intended to be withdrawn in a future Autoconf release.
2478 # They can cause serious problems if a builder's source tree is in a directory
2479 # whose full name contains unusual characters.
2480 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2481 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2482 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if test "${ac_cv_path_install+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 # Account for people who put trailing slashes in PATH elements.
2511 case $as_dir/ in #((
2512 ./ | .// | /[cC]/* | \
2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2515 /usr/ucb/* ) ;;
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2531 else
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2535 mkdir conftest.dir
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2540 then
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2546 done
2547 done
2549 esac
2551 done
2552 IFS=$as_save_IFS
2554 rm -rf conftest.one conftest.two conftest.dir
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2580 # Just in case
2581 sleep 1
2582 echo timestamp > conftest.file
2583 # Reject unsafe characters in $srcdir or the absolute working directory
2584 # name. Accept space and tab only in the latter.
2585 am_lf='
2587 case `pwd` in
2588 *[\\\"\#\$\&\'\`$am_lf]*)
2589 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2590 esac
2591 case $srcdir in
2592 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2593 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2594 esac
2596 # Do `set' in a subshell so we don't clobber the current shell's
2597 # arguments. Must try -L first in case configure is actually a
2598 # symlink; some systems play weird games with the mod time of symlinks
2599 # (eg FreeBSD returns the mod time of the symlink's containing
2600 # directory).
2601 if (
2602 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2604 # -L didn't work.
2605 set X `ls -t "$srcdir/configure" conftest.file`
2607 rm -f conftest.file
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2616 alias in your environment" "$LINENO" 5
2619 test "$2" = conftest.file
2621 then
2622 # Ok.
2624 else
2625 as_fn_error "newly created file is older than distributed files!
2626 Check your system clock" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629 $as_echo "yes" >&6; }
2630 test "$program_prefix" != NONE &&
2631 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2632 # Use a double $ so make ignores it.
2633 test "$program_suffix" != NONE &&
2634 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2635 # Double any \ or $.
2636 # By default was `s,x,x', remove it if useless.
2637 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2638 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640 # expand $ac_aux_dir to an absolute path
2641 am_aux_dir=`cd $ac_aux_dir && pwd`
2643 if test x"${MISSING+set}" != xset; then
2644 case $am_aux_dir in
2645 *\ * | *\ *)
2646 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2649 esac
2651 # Use eval to expand $SHELL
2652 if eval "$MISSING --run true"; then
2653 am_missing_run="$MISSING --run "
2654 else
2655 am_missing_run=
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2657 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2660 if test x"${install_sh}" != xset; then
2661 case $am_aux_dir in
2662 *\ * | *\ *)
2663 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665 install_sh="\${SHELL} $am_aux_dir/install-sh"
2666 esac
2669 # Installed binaries are usually stripped using `strip' when the user
2670 # run `make install-strip'. However `strip' might not be the right
2671 # tool to use in cross-compilation environments, therefore Automake
2672 # will honor the `STRIP' environment variable to overrule this program.
2673 if test "$cross_compiling" != no; then
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}strip; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if test "${ac_cv_prog_STRIP+set}" = set; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$STRIP"; then
2683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 STRIP=$ac_cv_prog_STRIP
2703 if test -n "$STRIP"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2705 $as_echo "$STRIP" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2713 if test -z "$ac_cv_prog_STRIP"; then
2714 ac_ct_STRIP=$STRIP
2715 # Extract the first word of "strip", so it can be a program name with args.
2716 set dummy strip; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_STRIP"; then
2723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_ac_ct_STRIP="strip"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2743 if test -n "$ac_ct_STRIP"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2745 $as_echo "$ac_ct_STRIP" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2751 if test "x$ac_ct_STRIP" = x; then
2752 STRIP=":"
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755 yes:)
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760 STRIP=$ac_ct_STRIP
2762 else
2763 STRIP="$ac_cv_prog_STRIP"
2767 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2771 if test -z "$MKDIR_P"; then
2772 if test "${ac_cv_path_mkdir+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_prog in mkdir gmkdir; do
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2784 'mkdir (GNU coreutils) '* | \
2785 'mkdir (coreutils) '* | \
2786 'mkdir (fileutils) '4.1*)
2787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2788 break 3;;
2789 esac
2790 done
2791 done
2792 done
2793 IFS=$as_save_IFS
2797 if test "${ac_cv_path_mkdir+set}" = set; then
2798 MKDIR_P="$ac_cv_path_mkdir -p"
2799 else
2800 # As a last resort, use the slow shell script. Don't cache a
2801 # value for MKDIR_P within a source directory, because that will
2802 # break other packages using the cache if that directory is
2803 # removed, or if the value is a relative name.
2804 test -d ./--version && rmdir ./--version
2805 MKDIR_P="$ac_install_sh -d"
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2809 $as_echo "$MKDIR_P" >&6; }
2811 mkdir_p="$MKDIR_P"
2812 case $mkdir_p in
2813 [\\/$]* | ?:[\\/]*) ;;
2814 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2815 esac
2817 for ac_prog in gawk mawk nawk awk
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_AWK+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$AWK"; then
2827 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_AWK="$ac_prog"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2840 done
2841 done
2842 IFS=$as_save_IFS
2846 AWK=$ac_cv_prog_AWK
2847 if test -n "$AWK"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2849 $as_echo "$AWK" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2856 test -n "$AWK" && break
2857 done
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2860 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861 set x ${MAKE-make}
2862 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2863 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 cat >conftest.make <<\_ACEOF
2867 SHELL = /bin/sh
2868 all:
2869 @echo '@@@%%%=$(MAKE)=@@@%%%'
2870 _ACEOF
2871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2872 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873 *@@@%%%=?*=@@@%%%*)
2874 eval ac_cv_prog_make_${ac_make}_set=yes;;
2876 eval ac_cv_prog_make_${ac_make}_set=no;;
2877 esac
2878 rm -f conftest.make
2880 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883 SET_MAKE=
2884 else
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 SET_MAKE="MAKE=${MAKE-make}"
2890 rm -rf .tst 2>/dev/null
2891 mkdir .tst 2>/dev/null
2892 if test -d .tst; then
2893 am__leading_dot=.
2894 else
2895 am__leading_dot=_
2897 rmdir .tst 2>/dev/null
2899 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2900 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2901 # is not polluted with repeated "-I."
2902 am__isrc=' -I$(srcdir)'
2903 # test to see if srcdir already configured
2904 if test -f $srcdir/config.status; then
2905 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2909 # test whether we have cygpath
2910 if test -z "$CYGPATH_W"; then
2911 if (cygpath --version) >/dev/null 2>/dev/null; then
2912 CYGPATH_W='cygpath -w'
2913 else
2914 CYGPATH_W=echo
2919 # Define the identity of the package.
2920 PACKAGE='gliv'
2921 VERSION='1.9.7'
2924 cat >>confdefs.h <<_ACEOF
2925 #define PACKAGE "$PACKAGE"
2926 _ACEOF
2929 cat >>confdefs.h <<_ACEOF
2930 #define VERSION "$VERSION"
2931 _ACEOF
2933 # Some tools Automake needs.
2935 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2938 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2941 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2944 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2947 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2949 # We need awk for the "check" target. The system "awk" is bad on
2950 # some platforms.
2951 # Always define AMTAR for backward compatibility.
2953 AMTAR=${AMTAR-"${am_missing_run}tar"}
2955 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2961 ac_config_headers="$ac_config_headers config.h"
2963 ac_ext=c
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 DEPDIR="${am__leading_dot}deps"
2971 ac_config_commands="$ac_config_commands depfiles"
2974 am_make=${MAKE-make}
2975 cat > confinc << 'END'
2976 am__doit:
2977 @echo this is the am__doit target
2978 .PHONY: am__doit
2980 # If we don't find an include directive, just comment out the code.
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2982 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2983 am__include="#"
2984 am__quote=
2985 _am_result=none
2986 # First try GNU make style include.
2987 echo "include confinc" > confmf
2988 # Ignore all kinds of additional output from `make'.
2989 case `$am_make -s -f confmf 2> /dev/null` in #(
2990 *the\ am__doit\ target*)
2991 am__include=include
2992 am__quote=
2993 _am_result=GNU
2995 esac
2996 # Now try BSD make style include.
2997 if test "$am__include" = "#"; then
2998 echo '.include "confinc"' > confmf
2999 case `$am_make -s -f confmf 2> /dev/null` in #(
3000 *the\ am__doit\ target*)
3001 am__include=.include
3002 am__quote="\""
3003 _am_result=BSD
3005 esac
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3010 $as_echo "$_am_result" >&6; }
3011 rm -f confinc confmf
3013 # Check whether --enable-dependency-tracking was given.
3014 if test "${enable_dependency_tracking+set}" = set; then :
3015 enableval=$enable_dependency_tracking;
3018 if test "x$enable_dependency_tracking" != xno; then
3019 am_depcomp="$ac_aux_dir/depcomp"
3020 AMDEPBACKSLASH='\'
3022 if test "x$enable_dependency_tracking" != xno; then
3023 AMDEP_TRUE=
3024 AMDEP_FALSE='#'
3025 else
3026 AMDEP_TRUE='#'
3027 AMDEP_FALSE=
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3058 done
3059 done
3060 IFS=$as_save_IFS
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3075 if test -z "$ac_cv_prog_CC"; then
3076 ac_ct_CC=$CC
3077 # Extract the first word of "gcc", so it can be a program name with args.
3078 set dummy gcc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_ac_ct_CC="gcc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3098 done
3099 done
3100 IFS=$as_save_IFS
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3113 if test "x$ac_ct_CC" = x; then
3114 CC=""
3115 else
3116 case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122 CC=$ac_ct_CC
3124 else
3125 CC="$ac_cv_prog_CC"
3128 if test -z "$CC"; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}cc; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="${ac_tool_prefix}cc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3169 if test -z "$CC"; then
3170 # Extract the first word of "cc", so it can be a program name with args.
3171 set dummy cc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_CC+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 ac_prog_rejected=no
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3189 ac_prog_rejected=yes
3190 continue
3192 ac_cv_prog_CC="cc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3200 if test $ac_prog_rejected = yes; then
3201 # We found a bogon in the path, so make sure we never use it.
3202 set dummy $ac_cv_prog_CC
3203 shift
3204 if test $# != 0; then
3205 # We chose a different compiler from the bogus one.
3206 # However, it has the same basename, so the bogon will be chosen
3207 # first if we set CC to just the basename; use the full file name.
3208 shift
3209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3225 if test -z "$CC"; then
3226 if test -n "$ac_tool_prefix"; then
3227 for ac_prog in cl.exe
3229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if test "${ac_cv_prog_CC+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC="$CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3250 done
3251 done
3252 IFS=$as_save_IFS
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3266 test -n "$CC" && break
3267 done
3269 if test -z "$CC"; then
3270 ac_ct_CC=$CC
3271 for ac_prog in cl.exe
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_ac_ct_CC="$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3310 test -n "$ac_ct_CC" && break
3311 done
3313 if test "x$ac_ct_CC" = x; then
3314 CC=""
3315 else
3316 case $cross_compiling:$ac_tool_warned in
3317 yes:)
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320 ac_tool_warned=yes ;;
3321 esac
3322 CC=$ac_ct_CC
3329 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "no acceptable C compiler found in \$PATH
3332 See \`config.log' for more details." "$LINENO" 5; }
3334 # Provide some information about the compiler.
3335 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3336 set X $ac_compile
3337 ac_compiler=$2
3338 for ac_option in --version -v -V -qversion; do
3339 { { ac_try="$ac_compiler $ac_option >&5"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3347 ac_status=$?
3348 if test -s conftest.err; then
3349 sed '10a\
3350 ... rest of stderr output deleted ...
3351 10q' conftest.err >conftest.er1
3352 cat conftest.er1 >&5
3353 rm -f conftest.er1 conftest.err
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }
3357 done
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361 #include <stdio.h>
3363 main ()
3365 FILE *f = fopen ("conftest.out", "w");
3366 return ferror (f) || fclose (f) != 0;
3369 return 0;
3371 _ACEOF
3372 ac_clean_files_save=$ac_clean_files
3373 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3374 # Try to create an executable without -o first, disregard a.out.
3375 # It will help us diagnose broken compilers, and finding out an intuition
3376 # of exeext.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378 $as_echo_n "checking for C compiler default output file name... " >&6; }
3379 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3381 # The possible output files:
3382 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3384 ac_rmfiles=
3385 for ac_file in $ac_files
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3390 esac
3391 done
3392 rm -f $ac_rmfiles
3394 if { { ac_try="$ac_link_default"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_link_default") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; then :
3405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3406 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3407 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3408 # so that the user can short-circuit this test for compilers unknown to
3409 # Autoconf.
3410 for ac_file in $ac_files ''
3412 test -f "$ac_file" || continue
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3416 [ab].out )
3417 # We found the default executable, but exeext='' is most
3418 # certainly right.
3419 break;;
3420 *.* )
3421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3422 then :; else
3423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425 # We set ac_cv_exeext here because the later test for it is not
3426 # safe: cross compilers may not add the suffix if given an `-o'
3427 # argument, so we may need to know it at that point already.
3428 # Even if this section looks crufty: it has the advantage of
3429 # actually working.
3430 break;;
3432 break;;
3433 esac
3434 done
3435 test "$ac_cv_exeext" = no && ac_cv_exeext=
3437 else
3438 ac_file=''
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3441 $as_echo "$ac_file" >&6; }
3442 if test -z "$ac_file"; then :
3443 $as_echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 { as_fn_set_status 77
3449 as_fn_error "C compiler cannot create executables
3450 See \`config.log' for more details." "$LINENO" 5; }; }
3452 ac_exeext=$ac_cv_exeext
3454 # Check that the compiler produces executables we can run. If not, either
3455 # the compiler is broken, or we cross compile.
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3457 $as_echo_n "checking whether the C compiler works... " >&6; }
3458 # If not cross compiling, check that we can run a simple program.
3459 if test "$cross_compiling" != yes; then
3460 if { ac_try='./$ac_file'
3461 { { case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_try") 2>&5
3468 ac_status=$?
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; }; then
3471 cross_compiling=no
3472 else
3473 if test "$cross_compiling" = maybe; then
3474 cross_compiling=yes
3475 else
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error "cannot run C compiled programs.
3479 If you meant to cross compile, use \`--host'.
3480 See \`config.log' for more details." "$LINENO" 5; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 $as_echo "yes" >&6; }
3487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3488 ac_clean_files=$ac_clean_files_save
3489 # Check that the compiler produces executables we can run. If not, either
3490 # the compiler is broken, or we cross compile.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492 $as_echo_n "checking whether we are cross compiling... " >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3494 $as_echo "$cross_compiling" >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3497 $as_echo_n "checking for suffix of executables... " >&6; }
3498 if { { ac_try="$ac_link"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_link") 2>&5
3506 ac_status=$?
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3510 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3511 # work properly (i.e., refer to `conftest.exe'), while it won't with
3512 # `rm'.
3513 for ac_file in conftest.exe conftest conftest.*; do
3514 test -f "$ac_file" || continue
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3518 break;;
3519 * ) break;;
3520 esac
3521 done
3522 else
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error "cannot compute suffix of executables: cannot compile and link
3526 See \`config.log' for more details." "$LINENO" 5; }
3528 rm -f conftest$ac_cv_exeext
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3530 $as_echo "$ac_cv_exeext" >&6; }
3532 rm -f conftest.$ac_ext
3533 EXEEXT=$ac_cv_exeext
3534 ac_exeext=$EXEEXT
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3536 $as_echo_n "checking for suffix of object files... " >&6; }
3537 if test "${ac_cv_objext+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3544 main ()
3548 return 0;
3550 _ACEOF
3551 rm -f conftest.o conftest.obj
3552 if { { ac_try="$ac_compile"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_compile") 2>&5
3560 ac_status=$?
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }; then :
3563 for ac_file in conftest.o conftest.obj conftest.*; do
3564 test -f "$ac_file" || continue;
3565 case $ac_file in
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3568 break;;
3569 esac
3570 done
3571 else
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error "cannot compute suffix of object files: cannot compile
3578 See \`config.log' for more details." "$LINENO" 5; }
3580 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3583 $as_echo "$ac_cv_objext" >&6; }
3584 OBJEXT=$ac_cv_objext
3585 ac_objext=$OBJEXT
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3587 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3588 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3595 main ()
3597 #ifndef __GNUC__
3598 choke me
3599 #endif
3602 return 0;
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_compiler_gnu=yes
3607 else
3608 ac_compiler_gnu=no
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3615 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3616 if test $ac_compiler_gnu = yes; then
3617 GCC=yes
3618 else
3619 GCC=
3621 ac_test_CFLAGS=${CFLAGS+set}
3622 ac_save_CFLAGS=$CFLAGS
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3624 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3625 if test "${ac_cv_prog_cc_g+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_save_c_werror_flag=$ac_c_werror_flag
3629 ac_c_werror_flag=yes
3630 ac_cv_prog_cc_g=no
3631 CFLAGS="-g"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3636 main ()
3640 return 0;
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_g=yes
3645 else
3646 CFLAGS=""
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3651 main ()
3655 return 0;
3657 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"; then :
3660 else
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3662 CFLAGS="-g"
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3667 main ()
3671 return 0;
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_g=yes
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 ac_c_werror_flag=$ac_save_c_werror_flag
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3685 $as_echo "$ac_cv_prog_cc_g" >&6; }
3686 if test "$ac_test_CFLAGS" = set; then
3687 CFLAGS=$ac_save_CFLAGS
3688 elif test $ac_cv_prog_cc_g = yes; then
3689 if test "$GCC" = yes; then
3690 CFLAGS="-g -O2"
3691 else
3692 CFLAGS="-g"
3694 else
3695 if test "$GCC" = yes; then
3696 CFLAGS="-O2"
3697 else
3698 CFLAGS=
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3702 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3703 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_cv_prog_cc_c89=no
3707 ac_save_CC=$CC
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 #include <stdarg.h>
3711 #include <stdio.h>
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3718 char **p;
3719 int i;
3721 return p[i];
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3725 char *s;
3726 va_list v;
3727 va_start (v,p);
3728 s = g (p, va_arg (v,int));
3729 va_end (v);
3730 return s;
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3734 function prototypes and stuff, but not '\xHH' hex character constants.
3735 These don't provoke an error unfortunately, instead are silently treated
3736 as 'x'. The following induces an error, until -std is added to get
3737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3738 array size at least. It's necessary to write '\x00'==0 to get something
3739 that's true only with -std. */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743 inside strings and character constants. */
3744 #define FOO(x) 'x'
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 int argc;
3752 char **argv;
3754 main ()
3756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3758 return 0;
3760 _ACEOF
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 CC="$ac_save_CC $ac_arg"
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_prog_cc_c89=$ac_arg
3768 rm -f core conftest.err conftest.$ac_objext
3769 test "x$ac_cv_prog_cc_c89" != "xno" && break
3770 done
3771 rm -f conftest.$ac_ext
3772 CC=$ac_save_CC
3775 # AC_CACHE_VAL
3776 case "x$ac_cv_prog_cc_c89" in
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3779 $as_echo "none needed" >&6; } ;;
3780 xno)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3782 $as_echo "unsupported" >&6; } ;;
3784 CC="$CC $ac_cv_prog_cc_c89"
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3787 esac
3788 if test "x$ac_cv_prog_cc_c89" != xno; then :
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 depcc="$CC" am_compiler_list=
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3801 $as_echo_n "checking dependency style of $depcc... " >&6; }
3802 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3806 # We make a subdir and do the tests there. Otherwise we can end up
3807 # making bogus files that we don't know about and never remove. For
3808 # instance it was reported that on HP-UX the gcc test will end up
3809 # making a dummy file named `D' -- because `-MD' means `put the output
3810 # in D'.
3811 mkdir conftest.dir
3812 # Copy depcomp to subdir because otherwise we won't find it if we're
3813 # using a relative directory.
3814 cp "$am_depcomp" conftest.dir
3815 cd conftest.dir
3816 # We will build objects and dependencies in a subdirectory because
3817 # it helps to detect inapplicable dependency modes. For instance
3818 # both Tru64's cc and ICC support -MD to output dependencies as a
3819 # side effect of compilation, but ICC will put the dependencies in
3820 # the current directory while Tru64 will put them in the object
3821 # directory.
3822 mkdir sub
3824 am_cv_CC_dependencies_compiler_type=none
3825 if test "$am_compiler_list" = ""; then
3826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3828 am__universal=false
3829 case " $depcc " in #(
3830 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3831 esac
3833 for depmode in $am_compiler_list; do
3834 # Setup a source with many dependencies, because some compilers
3835 # like to wrap large dependency lists on column 80 (with \), and
3836 # we should not choose a depcomp mode which is confused by this.
3838 # We need to recreate these files for each test, as the compiler may
3839 # overwrite some of them when testing with obscure command lines.
3840 # This happens at least with the AIX C compiler.
3841 : > sub/conftest.c
3842 for i in 1 2 3 4 5 6; do
3843 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3844 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3845 # Solaris 8's {/usr,}/bin/sh.
3846 touch sub/conftst$i.h
3847 done
3848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3850 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3851 # mode. It turns out that the SunPro C++ compiler does not properly
3852 # handle `-M -o', and we need to detect this. Also, some Intel
3853 # versions had trouble with output in subdirs
3854 am__obj=sub/conftest.${OBJEXT-o}
3855 am__minus_obj="-o $am__obj"
3856 case $depmode in
3857 gcc)
3858 # This depmode causes a compiler race in universal mode.
3859 test "$am__universal" = false || continue
3861 nosideeffect)
3862 # after this tag, mechanisms are not by side-effect, so they'll
3863 # only be used when explicitly requested
3864 if test "x$enable_dependency_tracking" = xyes; then
3865 continue
3866 else
3867 break
3870 msvisualcpp | msvcmsys)
3871 # This compiler won't grok `-c -o', but also, the minuso test has
3872 # not run yet. These depmodes are late enough in the game, and
3873 # so weak that their functioning should not be impacted.
3874 am__obj=conftest.${OBJEXT-o}
3875 am__minus_obj=
3877 none) break ;;
3878 esac
3879 if depmode=$depmode \
3880 source=sub/conftest.c object=$am__obj \
3881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3883 >/dev/null 2>conftest.err &&
3884 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3885 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3886 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3887 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3888 # icc doesn't choke on unknown options, it will just issue warnings
3889 # or remarks (even with -Werror). So we grep stderr for any message
3890 # that says an option was ignored or not supported.
3891 # When given -MP, icc 7.0 and 7.1 complain thusly:
3892 # icc: Command line warning: ignoring option '-M'; no argument required
3893 # The diagnosis changed in icc 8.0:
3894 # icc: Command line remark: option '-MP' not supported
3895 if (grep 'ignoring option' conftest.err ||
3896 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3897 am_cv_CC_dependencies_compiler_type=$depmode
3898 break
3901 done
3903 cd ..
3904 rm -rf conftest.dir
3905 else
3906 am_cv_CC_dependencies_compiler_type=none
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3911 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3915 test "x$enable_dependency_tracking" != xno \
3916 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917 am__fastdepCC_TRUE=
3918 am__fastdepCC_FALSE='#'
3919 else
3920 am__fastdepCC_TRUE='#'
3921 am__fastdepCC_FALSE=
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3932 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3933 # On Suns, sometimes $CPP names a directory.
3934 if test -n "$CPP" && test -d "$CPP"; then
3935 CPP=
3937 if test -z "$CPP"; then
3938 if test "${ac_cv_prog_CPP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 # Double quotes because CPP needs to be expanded
3942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3944 ac_preproc_ok=false
3945 for ac_c_preproc_warn_flag in '' yes
3947 # Use a header file that comes with gcc, so configuring glibc
3948 # with a fresh cross-compiler works.
3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3950 # <limits.h> exists even on freestanding compilers.
3951 # On the NeXT, cc -E runs the code through the compiler's parser,
3952 # not just through cpp. "Syntax error" is here to catch this case.
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #ifdef __STDC__
3956 # include <limits.h>
3957 #else
3958 # include <assert.h>
3959 #endif
3960 Syntax error
3961 _ACEOF
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3964 else
3965 # Broken: fails on valid input.
3966 continue
3968 rm -f conftest.err conftest.$ac_ext
3970 # OK, works on sane cases. Now check whether nonexistent headers
3971 # can be detected and how.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 #include <ac_nonexistent.h>
3975 _ACEOF
3976 if ac_fn_c_try_cpp "$LINENO"; then :
3977 # Broken: success on invalid input.
3978 continue
3979 else
3980 # Passes both tests.
3981 ac_preproc_ok=:
3982 break
3984 rm -f conftest.err conftest.$ac_ext
3986 done
3987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988 rm -f conftest.err conftest.$ac_ext
3989 if $ac_preproc_ok; then :
3990 break
3993 done
3994 ac_cv_prog_CPP=$CPP
3997 CPP=$ac_cv_prog_CPP
3998 else
3999 ac_cv_prog_CPP=$CPP
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4002 $as_echo "$CPP" >&6; }
4003 ac_preproc_ok=false
4004 for ac_c_preproc_warn_flag in '' yes
4006 # Use a header file that comes with gcc, so configuring glibc
4007 # with a fresh cross-compiler works.
4008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4009 # <limits.h> exists even on freestanding compilers.
4010 # On the NeXT, cc -E runs the code through the compiler's parser,
4011 # not just through cpp. "Syntax error" is here to catch this case.
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014 #ifdef __STDC__
4015 # include <limits.h>
4016 #else
4017 # include <assert.h>
4018 #endif
4019 Syntax error
4020 _ACEOF
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4023 else
4024 # Broken: fails on valid input.
4025 continue
4027 rm -f conftest.err conftest.$ac_ext
4029 # OK, works on sane cases. Now check whether nonexistent headers
4030 # can be detected and how.
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033 #include <ac_nonexistent.h>
4034 _ACEOF
4035 if ac_fn_c_try_cpp "$LINENO"; then :
4036 # Broken: success on invalid input.
4037 continue
4038 else
4039 # Passes both tests.
4040 ac_preproc_ok=:
4041 break
4043 rm -f conftest.err conftest.$ac_ext
4045 done
4046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4047 rm -f conftest.err conftest.$ac_ext
4048 if $ac_preproc_ok; then :
4050 else
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4054 See \`config.log' for more details." "$LINENO" 5; }
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4066 if test "${ac_cv_path_GREP+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -z "$GREP"; then
4070 ac_path_GREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in grep ggrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4081 # Check for GNU ac_path_GREP and select it if it is found.
4082 # Check for GNU $ac_path_GREP
4083 case `"$ac_path_GREP" --version 2>&1` in
4084 *GNU*)
4085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4087 ac_count=0
4088 $as_echo_n 0123456789 >"conftest.in"
4089 while :
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 $as_echo 'GREP' >> "conftest.nl"
4095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 as_fn_arith $ac_count + 1 && ac_count=$as_val
4098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_GREP="$ac_path_GREP"
4101 ac_path_GREP_max=$ac_count
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4105 done
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4109 $ac_path_GREP_found && break 3
4110 done
4111 done
4112 done
4113 IFS=$as_save_IFS
4114 if test -z "$ac_cv_path_GREP"; then
4115 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4117 else
4118 ac_cv_path_GREP=$GREP
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4123 $as_echo "$ac_cv_path_GREP" >&6; }
4124 GREP="$ac_cv_path_GREP"
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4128 $as_echo_n "checking for egrep... " >&6; }
4129 if test "${ac_cv_path_EGREP+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4133 then ac_cv_path_EGREP="$GREP -E"
4134 else
4135 if test -z "$EGREP"; then
4136 ac_path_EGREP_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in egrep; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4146 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4147 # Check for GNU ac_path_EGREP and select it if it is found.
4148 # Check for GNU $ac_path_EGREP
4149 case `"$ac_path_EGREP" --version 2>&1` in
4150 *GNU*)
4151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4153 ac_count=0
4154 $as_echo_n 0123456789 >"conftest.in"
4155 while :
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 $as_echo 'EGREP' >> "conftest.nl"
4161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 as_fn_arith $ac_count + 1 && ac_count=$as_val
4164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_EGREP="$ac_path_EGREP"
4167 ac_path_EGREP_max=$ac_count
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4171 done
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4175 $ac_path_EGREP_found && break 3
4176 done
4177 done
4178 done
4179 IFS=$as_save_IFS
4180 if test -z "$ac_cv_path_EGREP"; then
4181 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4183 else
4184 ac_cv_path_EGREP=$EGREP
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4190 $as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP="$ac_cv_path_EGREP"
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4195 $as_echo_n "checking for ANSI C header files... " >&6; }
4196 if test "${ac_cv_header_stdc+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <stdlib.h>
4202 #include <stdarg.h>
4203 #include <string.h>
4204 #include <float.h>
4207 main ()
4211 return 0;
4213 _ACEOF
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_header_stdc=yes
4216 else
4217 ac_cv_header_stdc=no
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 if test $ac_cv_header_stdc = yes; then
4222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #include <string.h>
4227 _ACEOF
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229 $EGREP "memchr" >/dev/null 2>&1; then :
4231 else
4232 ac_cv_header_stdc=no
4234 rm -f conftest*
4238 if test $ac_cv_header_stdc = yes; then
4239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <stdlib.h>
4244 _ACEOF
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246 $EGREP "free" >/dev/null 2>&1; then :
4248 else
4249 ac_cv_header_stdc=no
4251 rm -f conftest*
4255 if test $ac_cv_header_stdc = yes; then
4256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4257 if test "$cross_compiling" = yes; then :
4259 else
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #include <ctype.h>
4263 #include <stdlib.h>
4264 #if ((' ' & 0x0FF) == 0x020)
4265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4267 #else
4268 # define ISLOWER(c) \
4269 (('a' <= (c) && (c) <= 'i') \
4270 || ('j' <= (c) && (c) <= 'r') \
4271 || ('s' <= (c) && (c) <= 'z'))
4272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4273 #endif
4275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4277 main ()
4279 int i;
4280 for (i = 0; i < 256; i++)
4281 if (XOR (islower (i), ISLOWER (i))
4282 || toupper (i) != TOUPPER (i))
4283 return 2;
4284 return 0;
4286 _ACEOF
4287 if ac_fn_c_try_run "$LINENO"; then :
4289 else
4290 ac_cv_header_stdc=no
4292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4293 conftest.$ac_objext conftest.beam conftest.$ac_ext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4299 $as_echo "$ac_cv_header_stdc" >&6; }
4300 if test $ac_cv_header_stdc = yes; then
4302 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308 inttypes.h stdint.h unistd.h
4309 do :
4310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4313 eval as_val=\$$as_ac_Header
4314 if test "x$as_val" = x""yes; then :
4315 cat >>confdefs.h <<_ACEOF
4316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 _ACEOF
4321 done
4325 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4326 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4327 MINIX=yes
4328 else
4329 MINIX=
4333 if test "$MINIX" = yes; then
4335 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4338 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4341 $as_echo "#define _MINIX 1" >>confdefs.h
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4347 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4348 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4354 # define __EXTENSIONS__ 1
4355 $ac_includes_default
4357 main ()
4361 return 0;
4363 _ACEOF
4364 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_cv_safe_to_define___extensions__=yes
4366 else
4367 ac_cv_safe_to_define___extensions__=no
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4372 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4373 test $ac_cv_safe_to_define___extensions__ = yes &&
4374 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4376 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4378 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4380 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4382 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4388 # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2".
4389 if test "x$CFLAGS" = "x"; then
4390 DEFAULT_CFLAGS=yes
4391 else
4392 DEFAULT_CFLAGS=no
4395 # Checks for programs.
4396 ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_CC+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4411 else
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
4429 CC=$ac_cv_prog_CC
4430 if test -n "$CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432 $as_echo "$CC" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4440 if test -z "$ac_cv_prog_CC"; then
4441 ac_ct_CC=$CC
4442 # Extract the first word of "gcc", so it can be a program name with args.
4443 set dummy gcc; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$ac_ct_CC"; then
4450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_CC="gcc"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4470 if test -n "$ac_ct_CC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4472 $as_echo "$ac_ct_CC" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4478 if test "x$ac_ct_CC" = x; then
4479 CC=""
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 CC=$ac_ct_CC
4489 else
4490 CC="$ac_cv_prog_CC"
4493 if test -z "$CC"; then
4494 if test -n "$ac_tool_prefix"; then
4495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4496 set dummy ${ac_tool_prefix}cc; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_CC+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC="$CC" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_CC="${ac_tool_prefix}cc"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4516 done
4517 done
4518 IFS=$as_save_IFS
4522 CC=$ac_cv_prog_CC
4523 if test -n "$CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4525 $as_echo "$CC" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4534 if test -z "$CC"; then
4535 # Extract the first word of "cc", so it can be a program name with args.
4536 set dummy cc; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_CC+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$CC"; then
4543 ac_cv_prog_CC="$CC" # Let the user override the test.
4544 else
4545 ac_prog_rejected=no
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4554 ac_prog_rejected=yes
4555 continue
4557 ac_cv_prog_CC="cc"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4561 done
4562 done
4563 IFS=$as_save_IFS
4565 if test $ac_prog_rejected = yes; then
4566 # We found a bogon in the path, so make sure we never use it.
4567 set dummy $ac_cv_prog_CC
4568 shift
4569 if test $# != 0; then
4570 # We chose a different compiler from the bogus one.
4571 # However, it has the same basename, so the bogon will be chosen
4572 # first if we set CC to just the basename; use the full file name.
4573 shift
4574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4579 CC=$ac_cv_prog_CC
4580 if test -n "$CC"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4582 $as_echo "$CC" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4590 if test -z "$CC"; then
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in cl.exe
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_CC+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$CC"; then
4602 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4621 CC=$ac_cv_prog_CC
4622 if test -n "$CC"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4624 $as_echo "$CC" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4631 test -n "$CC" && break
4632 done
4634 if test -z "$CC"; then
4635 ac_ct_CC=$CC
4636 for ac_prog in cl.exe
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$ac_ct_CC"; then
4646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_ac_ct_CC="$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4666 if test -n "$ac_ct_CC"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4668 $as_echo "$ac_ct_CC" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 test -n "$ac_ct_CC" && break
4676 done
4678 if test "x$ac_ct_CC" = x; then
4679 CC=""
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687 CC=$ac_ct_CC
4694 test -z "$CC" && { { $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 "no acceptable C compiler found in \$PATH
4697 See \`config.log' for more details." "$LINENO" 5; }
4699 # Provide some information about the compiler.
4700 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4701 set X $ac_compile
4702 ac_compiler=$2
4703 for ac_option in --version -v -V -qversion; do
4704 { { ac_try="$ac_compiler $ac_option >&5"
4705 case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708 esac
4709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710 $as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4712 ac_status=$?
4713 if test -s conftest.err; then
4714 sed '10a\
4715 ... rest of stderr output deleted ...
4716 10q' conftest.err >conftest.er1
4717 cat conftest.er1 >&5
4718 rm -f conftest.er1 conftest.err
4720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4721 test $ac_status = 0; }
4722 done
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4725 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4726 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4733 main ()
4735 #ifndef __GNUC__
4736 choke me
4737 #endif
4740 return 0;
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_compiler_gnu=yes
4745 else
4746 ac_compiler_gnu=no
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4754 if test $ac_compiler_gnu = yes; then
4755 GCC=yes
4756 else
4757 GCC=
4759 ac_test_CFLAGS=${CFLAGS+set}
4760 ac_save_CFLAGS=$CFLAGS
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4763 if test "${ac_cv_prog_cc_g+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 ac_save_c_werror_flag=$ac_c_werror_flag
4767 ac_c_werror_flag=yes
4768 ac_cv_prog_cc_g=no
4769 CFLAGS="-g"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4774 main ()
4778 return 0;
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 ac_cv_prog_cc_g=yes
4783 else
4784 CFLAGS=""
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4789 main ()
4793 return 0;
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4798 else
4799 ac_c_werror_flag=$ac_save_c_werror_flag
4800 CFLAGS="-g"
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4805 main ()
4809 return 0;
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"; then :
4813 ac_cv_prog_cc_g=yes
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ac_c_werror_flag=$ac_save_c_werror_flag
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4823 $as_echo "$ac_cv_prog_cc_g" >&6; }
4824 if test "$ac_test_CFLAGS" = set; then
4825 CFLAGS=$ac_save_CFLAGS
4826 elif test $ac_cv_prog_cc_g = yes; then
4827 if test "$GCC" = yes; then
4828 CFLAGS="-g -O2"
4829 else
4830 CFLAGS="-g"
4832 else
4833 if test "$GCC" = yes; then
4834 CFLAGS="-O2"
4835 else
4836 CFLAGS=
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4841 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 ac_cv_prog_cc_c89=no
4845 ac_save_CC=$CC
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4848 #include <stdarg.h>
4849 #include <stdio.h>
4850 #include <sys/types.h>
4851 #include <sys/stat.h>
4852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4853 struct buf { int x; };
4854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4855 static char *e (p, i)
4856 char **p;
4857 int i;
4859 return p[i];
4861 static char *f (char * (*g) (char **, int), char **p, ...)
4863 char *s;
4864 va_list v;
4865 va_start (v,p);
4866 s = g (p, va_arg (v,int));
4867 va_end (v);
4868 return s;
4871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4872 function prototypes and stuff, but not '\xHH' hex character constants.
4873 These don't provoke an error unfortunately, instead are silently treated
4874 as 'x'. The following induces an error, until -std is added to get
4875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4876 array size at least. It's necessary to write '\x00'==0 to get something
4877 that's true only with -std. */
4878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4881 inside strings and character constants. */
4882 #define FOO(x) 'x'
4883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4885 int test (int i, double x);
4886 struct s1 {int (*f) (int a);};
4887 struct s2 {int (*f) (double a);};
4888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4889 int argc;
4890 char **argv;
4892 main ()
4894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4896 return 0;
4898 _ACEOF
4899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4902 CC="$ac_save_CC $ac_arg"
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904 ac_cv_prog_cc_c89=$ac_arg
4906 rm -f core conftest.err conftest.$ac_objext
4907 test "x$ac_cv_prog_cc_c89" != "xno" && break
4908 done
4909 rm -f conftest.$ac_ext
4910 CC=$ac_save_CC
4913 # AC_CACHE_VAL
4914 case "x$ac_cv_prog_cc_c89" in
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4917 $as_echo "none needed" >&6; } ;;
4918 xno)
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4920 $as_echo "unsupported" >&6; } ;;
4922 CC="$CC $ac_cv_prog_cc_c89"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4924 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4925 esac
4926 if test "x$ac_cv_prog_cc_c89" != xno; then :
4930 ac_ext=c
4931 ac_cpp='$CPP $CPPFLAGS'
4932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 depcc="$CC" am_compiler_list=
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939 $as_echo_n "checking dependency style of $depcc... " >&6; }
4940 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944 # We make a subdir and do the tests there. Otherwise we can end up
4945 # making bogus files that we don't know about and never remove. For
4946 # instance it was reported that on HP-UX the gcc test will end up
4947 # making a dummy file named `D' -- because `-MD' means `put the output
4948 # in D'.
4949 mkdir conftest.dir
4950 # Copy depcomp to subdir because otherwise we won't find it if we're
4951 # using a relative directory.
4952 cp "$am_depcomp" conftest.dir
4953 cd conftest.dir
4954 # We will build objects and dependencies in a subdirectory because
4955 # it helps to detect inapplicable dependency modes. For instance
4956 # both Tru64's cc and ICC support -MD to output dependencies as a
4957 # side effect of compilation, but ICC will put the dependencies in
4958 # the current directory while Tru64 will put them in the object
4959 # directory.
4960 mkdir sub
4962 am_cv_CC_dependencies_compiler_type=none
4963 if test "$am_compiler_list" = ""; then
4964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4966 am__universal=false
4967 case " $depcc " in #(
4968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4969 esac
4971 for depmode in $am_compiler_list; do
4972 # Setup a source with many dependencies, because some compilers
4973 # like to wrap large dependency lists on column 80 (with \), and
4974 # we should not choose a depcomp mode which is confused by this.
4976 # We need to recreate these files for each test, as the compiler may
4977 # overwrite some of them when testing with obscure command lines.
4978 # This happens at least with the AIX C compiler.
4979 : > sub/conftest.c
4980 for i in 1 2 3 4 5 6; do
4981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4982 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4983 # Solaris 8's {/usr,}/bin/sh.
4984 touch sub/conftst$i.h
4985 done
4986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4989 # mode. It turns out that the SunPro C++ compiler does not properly
4990 # handle `-M -o', and we need to detect this. Also, some Intel
4991 # versions had trouble with output in subdirs
4992 am__obj=sub/conftest.${OBJEXT-o}
4993 am__minus_obj="-o $am__obj"
4994 case $depmode in
4995 gcc)
4996 # This depmode causes a compiler race in universal mode.
4997 test "$am__universal" = false || continue
4999 nosideeffect)
5000 # after this tag, mechanisms are not by side-effect, so they'll
5001 # only be used when explicitly requested
5002 if test "x$enable_dependency_tracking" = xyes; then
5003 continue
5004 else
5005 break
5008 msvisualcpp | msvcmsys)
5009 # This compiler won't grok `-c -o', but also, the minuso test has
5010 # not run yet. These depmodes are late enough in the game, and
5011 # so weak that their functioning should not be impacted.
5012 am__obj=conftest.${OBJEXT-o}
5013 am__minus_obj=
5015 none) break ;;
5016 esac
5017 if depmode=$depmode \
5018 source=sub/conftest.c object=$am__obj \
5019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5021 >/dev/null 2>conftest.err &&
5022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5026 # icc doesn't choke on unknown options, it will just issue warnings
5027 # or remarks (even with -Werror). So we grep stderr for any message
5028 # that says an option was ignored or not supported.
5029 # When given -MP, icc 7.0 and 7.1 complain thusly:
5030 # icc: Command line warning: ignoring option '-M'; no argument required
5031 # The diagnosis changed in icc 8.0:
5032 # icc: Command line remark: option '-MP' not supported
5033 if (grep 'ignoring option' conftest.err ||
5034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5035 am_cv_CC_dependencies_compiler_type=$depmode
5036 break
5039 done
5041 cd ..
5042 rm -rf conftest.dir
5043 else
5044 am_cv_CC_dependencies_compiler_type=none
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5053 test "x$enable_dependency_tracking" != xno \
5054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5055 am__fastdepCC_TRUE=
5056 am__fastdepCC_FALSE='#'
5057 else
5058 am__fastdepCC_TRUE='#'
5059 am__fastdepCC_FALSE=
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5085 done
5086 done
5087 IFS=$as_save_IFS
5091 RANLIB=$ac_cv_prog_RANLIB
5092 if test -n "$RANLIB"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5094 $as_echo "$RANLIB" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5102 if test -z "$ac_cv_prog_RANLIB"; then
5103 ac_ct_RANLIB=$RANLIB
5104 # Extract the first word of "ranlib", so it can be a program name with args.
5105 set dummy ranlib; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$ac_ct_RANLIB"; then
5112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_RANLIB="ranlib"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5132 if test -n "$ac_ct_RANLIB"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5134 $as_echo "$ac_ct_RANLIB" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5140 if test "x$ac_ct_RANLIB" = x; then
5141 RANLIB=":"
5142 else
5143 case $cross_compiling:$ac_tool_warned in
5144 yes:)
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5148 esac
5149 RANLIB=$ac_ct_RANLIB
5151 else
5152 RANLIB="$ac_cv_prog_RANLIB"
5157 # Default CFLAGS.
5158 if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
5159 CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
5161 CFLAGS="$CFLAGS -I${srcdir}/../lib"
5163 # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
5164 # Check whether --enable-largefile was given.
5165 if test "${enable_largefile+set}" = set; then :
5166 enableval=$enable_largefile;
5169 if test "$enable_largefile" != no; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5172 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5173 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 ac_cv_sys_largefile_CC=no
5177 if test "$GCC" != yes; then
5178 ac_save_CC=$CC
5179 while :; do
5180 # IRIX 6.2 and later do not support large files by default,
5181 # so use the C compiler's -n32 option if that helps.
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 #include <sys/types.h>
5185 /* Check that off_t can represent 2**63 - 1 correctly.
5186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5187 since some C++ compilers masquerading as C compilers
5188 incorrectly reject 9223372036854775807. */
5189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5191 && LARGE_OFF_T % 2147483647 == 1)
5192 ? 1 : -1];
5194 main ()
5198 return 0;
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"; then :
5202 break
5204 rm -f core conftest.err conftest.$ac_objext
5205 CC="$CC -n32"
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 ac_cv_sys_largefile_CC=' -n32'; break
5209 rm -f core conftest.err conftest.$ac_objext
5210 break
5211 done
5212 CC=$ac_save_CC
5213 rm -f conftest.$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5217 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5218 if test "$ac_cv_sys_largefile_CC" != no; then
5219 CC=$CC$ac_cv_sys_largefile_CC
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5223 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5224 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 while :; do
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #include <sys/types.h>
5231 /* Check that off_t can represent 2**63 - 1 correctly.
5232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5233 since some C++ compilers masquerading as C compilers
5234 incorrectly reject 9223372036854775807. */
5235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5237 && LARGE_OFF_T % 2147483647 == 1)
5238 ? 1 : -1];
5240 main ()
5244 return 0;
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 ac_cv_sys_file_offset_bits=no; break
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #define _FILE_OFFSET_BITS 64
5254 #include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5262 ? 1 : -1];
5264 main ()
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_cv_sys_file_offset_bits=64; break
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 ac_cv_sys_file_offset_bits=unknown
5276 break
5277 done
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5280 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5281 case $ac_cv_sys_file_offset_bits in #(
5282 no | unknown) ;;
5284 cat >>confdefs.h <<_ACEOF
5285 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5286 _ACEOF
5288 esac
5289 rm -rf conftest*
5290 if test $ac_cv_sys_file_offset_bits = unknown; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5292 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5293 if test "${ac_cv_sys_large_files+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 while :; do
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 /* Check that off_t can represent 2**63 - 1 correctly.
5301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5302 since some C++ compilers masquerading as C compilers
5303 incorrectly reject 9223372036854775807. */
5304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5306 && LARGE_OFF_T % 2147483647 == 1)
5307 ? 1 : -1];
5309 main ()
5313 return 0;
5315 _ACEOF
5316 if ac_fn_c_try_compile "$LINENO"; then :
5317 ac_cv_sys_large_files=no; break
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #define _LARGE_FILES 1
5323 #include <sys/types.h>
5324 /* Check that off_t can represent 2**63 - 1 correctly.
5325 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326 since some C++ compilers masquerading as C compilers
5327 incorrectly reject 9223372036854775807. */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330 && LARGE_OFF_T % 2147483647 == 1)
5331 ? 1 : -1];
5333 main ()
5337 return 0;
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 ac_cv_sys_large_files=1; break
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cv_sys_large_files=unknown
5345 break
5346 done
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5349 $as_echo "$ac_cv_sys_large_files" >&6; }
5350 case $ac_cv_sys_large_files in #(
5351 no | unknown) ;;
5353 cat >>confdefs.h <<_ACEOF
5354 #define _LARGE_FILES $ac_cv_sys_large_files
5355 _ACEOF
5357 esac
5358 rm -rf conftest*
5366 OLD_CFLAGS="$CFLAGS"
5367 CFLAGS="$CFLAGS -w"
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5
5369 $as_echo_n "checking for library containing atan2... " >&6; }
5370 if test "${ac_cv_search_atan2+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 ac_func_search_save_LIBS=$LIBS
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5377 /* Override any GCC internal prototype to avoid an error.
5378 Use char because int might match the return type of a GCC
5379 builtin and then its argument prototype would still apply. */
5380 #ifdef __cplusplus
5381 extern "C"
5382 #endif
5383 char atan2 ();
5385 main ()
5387 return atan2 ();
5389 return 0;
5391 _ACEOF
5392 for ac_lib in '' m mx; do
5393 if test -z "$ac_lib"; then
5394 ac_res="none required"
5395 else
5396 ac_res=-l$ac_lib
5397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5399 if ac_fn_c_try_link "$LINENO"; then :
5400 ac_cv_search_atan2=$ac_res
5402 rm -f core conftest.err conftest.$ac_objext \
5403 conftest$ac_exeext
5404 if test "${ac_cv_search_atan2+set}" = set; then :
5405 break
5407 done
5408 if test "${ac_cv_search_atan2+set}" = set; then :
5410 else
5411 ac_cv_search_atan2=no
5413 rm conftest.$ac_ext
5414 LIBS=$ac_func_search_save_LIBS
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5
5417 $as_echo "$ac_cv_search_atan2" >&6; }
5418 ac_res=$ac_cv_search_atan2
5419 if test "$ac_res" != no; then :
5420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5422 $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
5426 CFLAGS="$OLD_CFLAGS"
5429 # Checks for hypot (SVID 3, BSD 4.3).
5430 # The replacement is #defined in the source.
5431 OLD_CFLAGS="$CFLAGS"
5432 CFLAGS="$CFLAGS -w"
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypot" >&5
5434 $as_echo_n "checking for library containing hypot... " >&6; }
5435 if test "${ac_cv_search_hypot+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_func_search_save_LIBS=$LIBS
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5442 /* Override any GCC internal prototype to avoid an error.
5443 Use char because int might match the return type of a GCC
5444 builtin and then its argument prototype would still apply. */
5445 #ifdef __cplusplus
5446 extern "C"
5447 #endif
5448 char hypot ();
5450 main ()
5452 return hypot ();
5454 return 0;
5456 _ACEOF
5457 for ac_lib in '' m mx; do
5458 if test -z "$ac_lib"; then
5459 ac_res="none required"
5460 else
5461 ac_res=-l$ac_lib
5462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5464 if ac_fn_c_try_link "$LINENO"; then :
5465 ac_cv_search_hypot=$ac_res
5467 rm -f core conftest.err conftest.$ac_objext \
5468 conftest$ac_exeext
5469 if test "${ac_cv_search_hypot+set}" = set; then :
5470 break
5472 done
5473 if test "${ac_cv_search_hypot+set}" = set; then :
5475 else
5476 ac_cv_search_hypot=no
5478 rm conftest.$ac_ext
5479 LIBS=$ac_func_search_save_LIBS
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypot" >&5
5482 $as_echo "$ac_cv_search_hypot" >&6; }
5483 ac_res=$ac_cv_search_hypot
5484 if test "$ac_res" != no; then :
5485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5487 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
5491 CFLAGS="$OLD_CFLAGS"
5494 # Checks for math functions using floats.
5495 # Using floats instead of doubles makes gcc use SSE with -msse
5496 # The replacement are #defined in math_floats.h.
5497 OLD_CFLAGS="$CFLAGS"
5498 CFLAGS="$CFLAGS -w"
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5
5500 $as_echo_n "checking for library containing sqrtf... " >&6; }
5501 if test "${ac_cv_search_sqrtf+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 ac_func_search_save_LIBS=$LIBS
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5508 /* Override any GCC internal prototype to avoid an error.
5509 Use char because int might match the return type of a GCC
5510 builtin and then its argument prototype would still apply. */
5511 #ifdef __cplusplus
5512 extern "C"
5513 #endif
5514 char sqrtf ();
5516 main ()
5518 return sqrtf ();
5520 return 0;
5522 _ACEOF
5523 for ac_lib in '' m mx; do
5524 if test -z "$ac_lib"; then
5525 ac_res="none required"
5526 else
5527 ac_res=-l$ac_lib
5528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5530 if ac_fn_c_try_link "$LINENO"; then :
5531 ac_cv_search_sqrtf=$ac_res
5533 rm -f core conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext
5535 if test "${ac_cv_search_sqrtf+set}" = set; then :
5536 break
5538 done
5539 if test "${ac_cv_search_sqrtf+set}" = set; then :
5541 else
5542 ac_cv_search_sqrtf=no
5544 rm conftest.$ac_ext
5545 LIBS=$ac_func_search_save_LIBS
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5
5548 $as_echo "$ac_cv_search_sqrtf" >&6; }
5549 ac_res=$ac_cv_search_sqrtf
5550 if test "$ac_res" != no; then :
5551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5553 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
5557 CFLAGS="$OLD_CFLAGS"
5558 OLD_CFLAGS="$CFLAGS"
5559 CFLAGS="$CFLAGS -w"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypotf" >&5
5561 $as_echo_n "checking for library containing hypotf... " >&6; }
5562 if test "${ac_cv_search_hypotf+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 ac_func_search_save_LIBS=$LIBS
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5569 /* Override any GCC internal prototype to avoid an error.
5570 Use char because int might match the return type of a GCC
5571 builtin and then its argument prototype would still apply. */
5572 #ifdef __cplusplus
5573 extern "C"
5574 #endif
5575 char hypotf ();
5577 main ()
5579 return hypotf ();
5581 return 0;
5583 _ACEOF
5584 for ac_lib in '' m mx; do
5585 if test -z "$ac_lib"; then
5586 ac_res="none required"
5587 else
5588 ac_res=-l$ac_lib
5589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5591 if ac_fn_c_try_link "$LINENO"; then :
5592 ac_cv_search_hypotf=$ac_res
5594 rm -f core conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext
5596 if test "${ac_cv_search_hypotf+set}" = set; then :
5597 break
5599 done
5600 if test "${ac_cv_search_hypotf+set}" = set; then :
5602 else
5603 ac_cv_search_hypotf=no
5605 rm conftest.$ac_ext
5606 LIBS=$ac_func_search_save_LIBS
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypotf" >&5
5609 $as_echo "$ac_cv_search_hypotf" >&6; }
5610 ac_res=$ac_cv_search_hypotf
5611 if test "$ac_res" != no; then :
5612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5614 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
5618 CFLAGS="$OLD_CFLAGS"
5619 OLD_CFLAGS="$CFLAGS"
5620 CFLAGS="$CFLAGS -w"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2f" >&5
5622 $as_echo_n "checking for library containing atan2f... " >&6; }
5623 if test "${ac_cv_search_atan2f+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 ac_func_search_save_LIBS=$LIBS
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5630 /* Override any GCC internal prototype to avoid an error.
5631 Use char because int might match the return type of a GCC
5632 builtin and then its argument prototype would still apply. */
5633 #ifdef __cplusplus
5634 extern "C"
5635 #endif
5636 char atan2f ();
5638 main ()
5640 return atan2f ();
5642 return 0;
5644 _ACEOF
5645 for ac_lib in '' m mx; do
5646 if test -z "$ac_lib"; then
5647 ac_res="none required"
5648 else
5649 ac_res=-l$ac_lib
5650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 ac_cv_search_atan2f=$ac_res
5655 rm -f core conftest.err conftest.$ac_objext \
5656 conftest$ac_exeext
5657 if test "${ac_cv_search_atan2f+set}" = set; then :
5658 break
5660 done
5661 if test "${ac_cv_search_atan2f+set}" = set; then :
5663 else
5664 ac_cv_search_atan2f=no
5666 rm conftest.$ac_ext
5667 LIBS=$ac_func_search_save_LIBS
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2f" >&5
5670 $as_echo "$ac_cv_search_atan2f" >&6; }
5671 ac_res=$ac_cv_search_atan2f
5672 if test "$ac_res" != no; then :
5673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5675 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
5679 CFLAGS="$OLD_CFLAGS"
5680 OLD_CFLAGS="$CFLAGS"
5681 CFLAGS="$CFLAGS -w"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing powf" >&5
5683 $as_echo_n "checking for library containing powf... " >&6; }
5684 if test "${ac_cv_search_powf+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 ac_func_search_save_LIBS=$LIBS
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5691 /* Override any GCC internal prototype to avoid an error.
5692 Use char because int might match the return type of a GCC
5693 builtin and then its argument prototype would still apply. */
5694 #ifdef __cplusplus
5695 extern "C"
5696 #endif
5697 char powf ();
5699 main ()
5701 return powf ();
5703 return 0;
5705 _ACEOF
5706 for ac_lib in '' m mx; do
5707 if test -z "$ac_lib"; then
5708 ac_res="none required"
5709 else
5710 ac_res=-l$ac_lib
5711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5713 if ac_fn_c_try_link "$LINENO"; then :
5714 ac_cv_search_powf=$ac_res
5716 rm -f core conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext
5718 if test "${ac_cv_search_powf+set}" = set; then :
5719 break
5721 done
5722 if test "${ac_cv_search_powf+set}" = set; then :
5724 else
5725 ac_cv_search_powf=no
5727 rm conftest.$ac_ext
5728 LIBS=$ac_func_search_save_LIBS
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_powf" >&5
5731 $as_echo "$ac_cv_search_powf" >&6; }
5732 ac_res=$ac_cv_search_powf
5733 if test "$ac_res" != no; then :
5734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5736 $as_echo "#define HAVE_POWF 1" >>confdefs.h
5740 CFLAGS="$OLD_CFLAGS"
5741 OLD_CFLAGS="$CFLAGS"
5742 CFLAGS="$CFLAGS -w"
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceilf" >&5
5744 $as_echo_n "checking for library containing ceilf... " >&6; }
5745 if test "${ac_cv_search_ceilf+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 ac_func_search_save_LIBS=$LIBS
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 /* Override any GCC internal prototype to avoid an error.
5753 Use char because int might match the return type of a GCC
5754 builtin and then its argument prototype would still apply. */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 char ceilf ();
5760 main ()
5762 return ceilf ();
5764 return 0;
5766 _ACEOF
5767 for ac_lib in '' m mx; do
5768 if test -z "$ac_lib"; then
5769 ac_res="none required"
5770 else
5771 ac_res=-l$ac_lib
5772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5774 if ac_fn_c_try_link "$LINENO"; then :
5775 ac_cv_search_ceilf=$ac_res
5777 rm -f core conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext
5779 if test "${ac_cv_search_ceilf+set}" = set; then :
5780 break
5782 done
5783 if test "${ac_cv_search_ceilf+set}" = set; then :
5785 else
5786 ac_cv_search_ceilf=no
5788 rm conftest.$ac_ext
5789 LIBS=$ac_func_search_save_LIBS
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceilf" >&5
5792 $as_echo "$ac_cv_search_ceilf" >&6; }
5793 ac_res=$ac_cv_search_ceilf
5794 if test "$ac_res" != no; then :
5795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5797 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
5801 CFLAGS="$OLD_CFLAGS"
5802 OLD_CFLAGS="$CFLAGS"
5803 CFLAGS="$CFLAGS -w"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
5805 $as_echo_n "checking for library containing cosf... " >&6; }
5806 if test "${ac_cv_search_cosf+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 ac_func_search_save_LIBS=$LIBS
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5813 /* Override any GCC internal prototype to avoid an error.
5814 Use char because int might match the return type of a GCC
5815 builtin and then its argument prototype would still apply. */
5816 #ifdef __cplusplus
5817 extern "C"
5818 #endif
5819 char cosf ();
5821 main ()
5823 return cosf ();
5825 return 0;
5827 _ACEOF
5828 for ac_lib in '' m mx; do
5829 if test -z "$ac_lib"; then
5830 ac_res="none required"
5831 else
5832 ac_res=-l$ac_lib
5833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5835 if ac_fn_c_try_link "$LINENO"; then :
5836 ac_cv_search_cosf=$ac_res
5838 rm -f core conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext
5840 if test "${ac_cv_search_cosf+set}" = set; then :
5841 break
5843 done
5844 if test "${ac_cv_search_cosf+set}" = set; then :
5846 else
5847 ac_cv_search_cosf=no
5849 rm conftest.$ac_ext
5850 LIBS=$ac_func_search_save_LIBS
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
5853 $as_echo "$ac_cv_search_cosf" >&6; }
5854 ac_res=$ac_cv_search_cosf
5855 if test "$ac_res" != no; then :
5856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5858 $as_echo "#define HAVE_COSF 1" >>confdefs.h
5862 CFLAGS="$OLD_CFLAGS"
5863 OLD_CFLAGS="$CFLAGS"
5864 CFLAGS="$CFLAGS -w"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sinf" >&5
5866 $as_echo_n "checking for library containing sinf... " >&6; }
5867 if test "${ac_cv_search_sinf+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 ac_func_search_save_LIBS=$LIBS
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5874 /* Override any GCC internal prototype to avoid an error.
5875 Use char because int might match the return type of a GCC
5876 builtin and then its argument prototype would still apply. */
5877 #ifdef __cplusplus
5878 extern "C"
5879 #endif
5880 char sinf ();
5882 main ()
5884 return sinf ();
5886 return 0;
5888 _ACEOF
5889 for ac_lib in '' m mx; do
5890 if test -z "$ac_lib"; then
5891 ac_res="none required"
5892 else
5893 ac_res=-l$ac_lib
5894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5896 if ac_fn_c_try_link "$LINENO"; then :
5897 ac_cv_search_sinf=$ac_res
5899 rm -f core conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext
5901 if test "${ac_cv_search_sinf+set}" = set; then :
5902 break
5904 done
5905 if test "${ac_cv_search_sinf+set}" = set; then :
5907 else
5908 ac_cv_search_sinf=no
5910 rm conftest.$ac_ext
5911 LIBS=$ac_func_search_save_LIBS
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sinf" >&5
5914 $as_echo "$ac_cv_search_sinf" >&6; }
5915 ac_res=$ac_cv_search_sinf
5916 if test "$ac_res" != no; then :
5917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5919 $as_echo "#define HAVE_SINF 1" >>confdefs.h
5923 CFLAGS="$OLD_CFLAGS"
5924 OLD_CFLAGS="$CFLAGS"
5925 CFLAGS="$CFLAGS -w"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acosf" >&5
5927 $as_echo_n "checking for library containing acosf... " >&6; }
5928 if test "${ac_cv_search_acosf+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 ac_func_search_save_LIBS=$LIBS
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 /* Override any GCC internal prototype to avoid an error.
5936 Use char because int might match the return type of a GCC
5937 builtin and then its argument prototype would still apply. */
5938 #ifdef __cplusplus
5939 extern "C"
5940 #endif
5941 char acosf ();
5943 main ()
5945 return acosf ();
5947 return 0;
5949 _ACEOF
5950 for ac_lib in '' m mx; do
5951 if test -z "$ac_lib"; then
5952 ac_res="none required"
5953 else
5954 ac_res=-l$ac_lib
5955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5957 if ac_fn_c_try_link "$LINENO"; then :
5958 ac_cv_search_acosf=$ac_res
5960 rm -f core conftest.err conftest.$ac_objext \
5961 conftest$ac_exeext
5962 if test "${ac_cv_search_acosf+set}" = set; then :
5963 break
5965 done
5966 if test "${ac_cv_search_acosf+set}" = set; then :
5968 else
5969 ac_cv_search_acosf=no
5971 rm conftest.$ac_ext
5972 LIBS=$ac_func_search_save_LIBS
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acosf" >&5
5975 $as_echo "$ac_cv_search_acosf" >&6; }
5976 ac_res=$ac_cv_search_acosf
5977 if test "$ac_res" != no; then :
5978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5980 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
5984 CFLAGS="$OLD_CFLAGS"
5985 OLD_CFLAGS="$CFLAGS"
5986 CFLAGS="$CFLAGS -w"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmodf" >&5
5988 $as_echo_n "checking for library containing fmodf... " >&6; }
5989 if test "${ac_cv_search_fmodf+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 ac_func_search_save_LIBS=$LIBS
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5996 /* Override any GCC internal prototype to avoid an error.
5997 Use char because int might match the return type of a GCC
5998 builtin and then its argument prototype would still apply. */
5999 #ifdef __cplusplus
6000 extern "C"
6001 #endif
6002 char fmodf ();
6004 main ()
6006 return fmodf ();
6008 return 0;
6010 _ACEOF
6011 for ac_lib in '' m mx; do
6012 if test -z "$ac_lib"; then
6013 ac_res="none required"
6014 else
6015 ac_res=-l$ac_lib
6016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6018 if ac_fn_c_try_link "$LINENO"; then :
6019 ac_cv_search_fmodf=$ac_res
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext
6023 if test "${ac_cv_search_fmodf+set}" = set; then :
6024 break
6026 done
6027 if test "${ac_cv_search_fmodf+set}" = set; then :
6029 else
6030 ac_cv_search_fmodf=no
6032 rm conftest.$ac_ext
6033 LIBS=$ac_func_search_save_LIBS
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmodf" >&5
6036 $as_echo "$ac_cv_search_fmodf" >&6; }
6037 ac_res=$ac_cv_search_fmodf
6038 if test "$ac_res" != no; then :
6039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6041 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
6045 CFLAGS="$OLD_CFLAGS"
6046 OLD_CFLAGS="$CFLAGS"
6047 CFLAGS="$CFLAGS -w"
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
6049 $as_echo_n "checking for library containing fabsf... " >&6; }
6050 if test "${ac_cv_search_fabsf+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 ac_func_search_save_LIBS=$LIBS
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6057 /* Override any GCC internal prototype to avoid an error.
6058 Use char because int might match the return type of a GCC
6059 builtin and then its argument prototype would still apply. */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 char fabsf ();
6065 main ()
6067 return fabsf ();
6069 return 0;
6071 _ACEOF
6072 for ac_lib in '' m mx; do
6073 if test -z "$ac_lib"; then
6074 ac_res="none required"
6075 else
6076 ac_res=-l$ac_lib
6077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6079 if ac_fn_c_try_link "$LINENO"; then :
6080 ac_cv_search_fabsf=$ac_res
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext
6084 if test "${ac_cv_search_fabsf+set}" = set; then :
6085 break
6087 done
6088 if test "${ac_cv_search_fabsf+set}" = set; then :
6090 else
6091 ac_cv_search_fabsf=no
6093 rm conftest.$ac_ext
6094 LIBS=$ac_func_search_save_LIBS
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
6097 $as_echo "$ac_cv_search_fabsf" >&6; }
6098 ac_res=$ac_cv_search_fabsf
6099 if test "$ac_res" != no; then :
6100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6102 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
6106 CFLAGS="$OLD_CFLAGS"
6107 OLD_CFLAGS="$CFLAGS"
6108 CFLAGS="$CFLAGS -w"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10f" >&5
6110 $as_echo_n "checking for library containing log10f... " >&6; }
6111 if test "${ac_cv_search_log10f+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 ac_func_search_save_LIBS=$LIBS
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6118 /* Override any GCC internal prototype to avoid an error.
6119 Use char because int might match the return type of a GCC
6120 builtin and then its argument prototype would still apply. */
6121 #ifdef __cplusplus
6122 extern "C"
6123 #endif
6124 char log10f ();
6126 main ()
6128 return log10f ();
6130 return 0;
6132 _ACEOF
6133 for ac_lib in '' m mx; do
6134 if test -z "$ac_lib"; then
6135 ac_res="none required"
6136 else
6137 ac_res=-l$ac_lib
6138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6140 if ac_fn_c_try_link "$LINENO"; then :
6141 ac_cv_search_log10f=$ac_res
6143 rm -f core conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext
6145 if test "${ac_cv_search_log10f+set}" = set; then :
6146 break
6148 done
6149 if test "${ac_cv_search_log10f+set}" = set; then :
6151 else
6152 ac_cv_search_log10f=no
6154 rm conftest.$ac_ext
6155 LIBS=$ac_func_search_save_LIBS
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10f" >&5
6158 $as_echo "$ac_cv_search_log10f" >&6; }
6159 ac_res=$ac_cv_search_log10f
6160 if test "$ac_res" != no; then :
6161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6163 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
6167 CFLAGS="$OLD_CFLAGS"
6169 # If we don't have ftello, we'll use ftell.
6170 for ac_func in ftello
6171 do :
6172 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
6173 if test "x$ac_cv_func_ftello" = x""yes; then :
6174 cat >>confdefs.h <<_ACEOF
6175 #define HAVE_FTELLO 1
6176 _ACEOF
6179 done
6182 # If we don't have fseeko, we'll use fseek.
6183 for ac_func in fseeko
6184 do :
6185 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
6186 if test "x$ac_cv_func_fseeko" = x""yes; then :
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_FSEEKO 1
6189 _ACEOF
6192 done
6196 # Checks for getdelim, this is a GNU extension.
6197 CFLAGS="$CFLAGS -D_GNU_SOURCE"
6198 for ac_func in getdelim
6199 do :
6200 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
6201 if test "x$ac_cv_func_getdelim" = x""yes; then :
6202 cat >>confdefs.h <<_ACEOF
6203 #define HAVE_GETDELIM 1
6204 _ACEOF
6206 have_getdelim="yes"
6208 else
6210 have_getdelim="no"
6213 done
6216 if test "$have_getdelim" = "yes"; then
6217 GETDELIM_TRUE=
6218 GETDELIM_FALSE='#'
6219 else
6220 GETDELIM_TRUE='#'
6221 GETDELIM_FALSE=
6226 # Checks for getopt_long, another GNU extension.
6227 for ac_func in getopt_long
6228 do :
6229 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6230 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6231 cat >>confdefs.h <<_ACEOF
6232 #define HAVE_GETOPT_LONG 1
6233 _ACEOF
6235 have_getopt_long="yes"
6237 else
6239 have_getopt_long="no"
6242 done
6245 if test "$have_getopt_long" = "yes"; then
6246 GETOPT_LONG_TRUE=
6247 GETOPT_LONG_FALSE='#'
6248 else
6249 GETOPT_LONG_TRUE='#'
6250 GETOPT_LONG_FALSE=
6255 if test "$have_getdelim" = "no" ||
6256 test "$have_getopt_long" = "no"; then
6257 if true; then
6258 NEED_REPLACEMENTS_TRUE=
6259 NEED_REPLACEMENTS_FALSE='#'
6260 else
6261 NEED_REPLACEMENTS_TRUE='#'
6262 NEED_REPLACEMENTS_FALSE=
6265 else
6266 if false; then
6267 NEED_REPLACEMENTS_TRUE=
6268 NEED_REPLACEMENTS_FALSE='#'
6269 else
6270 NEED_REPLACEMENTS_TRUE='#'
6271 NEED_REPLACEMENTS_FALSE=
6277 # Checks for flavours of varargs macros (borrowed from glib-2)
6278 # ISO C99
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros" >&5
6280 $as_echo_n "checking for ISO C99 varargs macros... " >&6; }
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6286 main ()
6289 int a(int p1, int p2, int p3);
6290 #define call_a(...) a(1,__VA_ARGS__)
6291 call_a(2,3);
6294 return 0;
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 have_iso_c_varargs=yes
6299 else
6300 have_iso_c_varargs=no
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iso_c_varargs" >&5
6305 $as_echo "$have_iso_c_varargs" >&6; }
6307 if test $have_iso_c_varargs = yes; then
6308 iso_c_varargs=1
6309 else
6310 iso_c_varargs=0
6314 cat >>confdefs.h <<_ACEOF
6315 #define HAVE_ISO_C_VARARGS $iso_c_varargs
6316 _ACEOF
6319 if test $have_iso_c_varargs = no; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ISO C99 variadic macros" >&5
6321 $as_echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;}
6324 # 32bit or 64bit ?
6325 # The cast to long int works around a bug in the HP C Compiler
6326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6328 # This bug is HP SR number 8606223364.
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
6330 $as_echo_n "checking size of unsigned long... " >&6; }
6331 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
6336 else
6337 if test "$ac_cv_type_unsigned_long" = yes; then
6338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6340 { as_fn_set_status 77
6341 as_fn_error "cannot compute sizeof (unsigned long)
6342 See \`config.log' for more details." "$LINENO" 5; }; }
6343 else
6344 ac_cv_sizeof_unsigned_long=0
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
6350 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
6354 cat >>confdefs.h <<_ACEOF
6355 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
6356 _ACEOF
6360 # Checks for X.
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6362 $as_echo_n "checking for X... " >&6; }
6365 # Check whether --with-x was given.
6366 if test "${with_x+set}" = set; then :
6367 withval=$with_x;
6370 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6371 if test "x$with_x" = xno; then
6372 # The user explicitly disabled X.
6373 have_x=disabled
6374 else
6375 case $x_includes,$x_libraries in #(
6376 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6377 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 # One or both of the vars are not set, and there is no cached value.
6381 ac_x_includes=no ac_x_libraries=no
6382 rm -f -r conftest.dir
6383 if mkdir conftest.dir; then
6384 cd conftest.dir
6385 cat >Imakefile <<'_ACEOF'
6386 incroot:
6387 @echo incroot='${INCROOT}'
6388 usrlibdir:
6389 @echo usrlibdir='${USRLIBDIR}'
6390 libdir:
6391 @echo libdir='${LIBDIR}'
6392 _ACEOF
6393 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6395 for ac_var in incroot usrlibdir libdir; do
6396 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6397 done
6398 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6399 for ac_extension in a so sl dylib la dll; do
6400 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6401 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6402 ac_im_usrlibdir=$ac_im_libdir; break
6404 done
6405 # Screen out bogus values from the imake configuration. They are
6406 # bogus both because they are the default anyway, and because
6407 # using them would break gcc on systems where it needs fixed includes.
6408 case $ac_im_incroot in
6409 /usr/include) ac_x_includes= ;;
6410 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6411 esac
6412 case $ac_im_usrlibdir in
6413 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6414 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6415 esac
6417 cd ..
6418 rm -f -r conftest.dir
6421 # Standard set of common directories for X headers.
6422 # Check X11 before X11Rn because it is often a symlink to the current release.
6423 ac_x_header_dirs='
6424 /usr/X11/include
6425 /usr/X11R7/include
6426 /usr/X11R6/include
6427 /usr/X11R5/include
6428 /usr/X11R4/include
6430 /usr/include/X11
6431 /usr/include/X11R7
6432 /usr/include/X11R6
6433 /usr/include/X11R5
6434 /usr/include/X11R4
6436 /usr/local/X11/include
6437 /usr/local/X11R7/include
6438 /usr/local/X11R6/include
6439 /usr/local/X11R5/include
6440 /usr/local/X11R4/include
6442 /usr/local/include/X11
6443 /usr/local/include/X11R7
6444 /usr/local/include/X11R6
6445 /usr/local/include/X11R5
6446 /usr/local/include/X11R4
6448 /usr/X386/include
6449 /usr/x386/include
6450 /usr/XFree86/include/X11
6452 /usr/include
6453 /usr/local/include
6454 /usr/unsupported/include
6455 /usr/athena/include
6456 /usr/local/x11r5/include
6457 /usr/lpp/Xamples/include
6459 /usr/openwin/include
6460 /usr/openwin/share/include'
6462 if test "$ac_x_includes" = no; then
6463 # Guess where to find include files, by looking for Xlib.h.
6464 # First, try using that file with no special directory specified.
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <X11/Xlib.h>
6468 _ACEOF
6469 if ac_fn_c_try_cpp "$LINENO"; then :
6470 # We can compile using X headers with no special include directory.
6471 ac_x_includes=
6472 else
6473 for ac_dir in $ac_x_header_dirs; do
6474 if test -r "$ac_dir/X11/Xlib.h"; then
6475 ac_x_includes=$ac_dir
6476 break
6478 done
6480 rm -f conftest.err conftest.$ac_ext
6481 fi # $ac_x_includes = no
6483 if test "$ac_x_libraries" = no; then
6484 # Check for the libraries.
6485 # See if we find them without any special options.
6486 # Don't add to $LIBS permanently.
6487 ac_save_LIBS=$LIBS
6488 LIBS="-lX11 $LIBS"
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <X11/Xlib.h>
6493 main ()
6495 XrmInitialize ()
6497 return 0;
6499 _ACEOF
6500 if ac_fn_c_try_link "$LINENO"; then :
6501 LIBS=$ac_save_LIBS
6502 # We can link X programs with no special library path.
6503 ac_x_libraries=
6504 else
6505 LIBS=$ac_save_LIBS
6506 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6508 # Don't even attempt the hair of trying to link an X program!
6509 for ac_extension in a so sl dylib la dll; do
6510 if test -r "$ac_dir/libX11.$ac_extension"; then
6511 ac_x_libraries=$ac_dir
6512 break 2
6514 done
6515 done
6517 rm -f core conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6519 fi # $ac_x_libraries = no
6521 case $ac_x_includes,$ac_x_libraries in #(
6522 no,* | *,no | *\'*)
6523 # Didn't find X, or a directory has "'" in its name.
6524 ac_cv_have_x="have_x=no";; #(
6526 # Record where we found X for the cache.
6527 ac_cv_have_x="have_x=yes\
6528 ac_x_includes='$ac_x_includes'\
6529 ac_x_libraries='$ac_x_libraries'"
6530 esac
6532 ;; #(
6533 *) have_x=yes;;
6534 esac
6535 eval "$ac_cv_have_x"
6536 fi # $with_x != no
6538 if test "$have_x" != yes; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6540 $as_echo "$have_x" >&6; }
6541 no_x=yes
6542 else
6543 # If each of the values was on the command line, it overrides each guess.
6544 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6545 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6546 # Update the cache value to reflect the command line values.
6547 ac_cv_have_x="have_x=yes\
6548 ac_x_includes='$x_includes'\
6549 ac_x_libraries='$x_libraries'"
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6551 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6554 if test "$no_x" = yes; then
6555 # Not all programs may use this symbol, but it does not hurt to define it.
6557 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6559 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6560 else
6561 if test -n "$x_includes"; then
6562 X_CFLAGS="$X_CFLAGS -I$x_includes"
6565 # It would also be nice to do this for all -L options, not just this one.
6566 if test -n "$x_libraries"; then
6567 X_LIBS="$X_LIBS -L$x_libraries"
6568 # For Solaris; some versions of Sun CC require a space after -R and
6569 # others require no space. Words are not sufficient . . . .
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6571 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6572 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6573 ac_xsave_c_werror_flag=$ac_c_werror_flag
6574 ac_c_werror_flag=yes
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6579 main ()
6583 return 0;
6585 _ACEOF
6586 if ac_fn_c_try_link "$LINENO"; then :
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 X_LIBS="$X_LIBS -R$x_libraries"
6590 else
6591 LIBS="$ac_xsave_LIBS -R $x_libraries"
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6596 main ()
6600 return 0;
6602 _ACEOF
6603 if ac_fn_c_try_link "$LINENO"; then :
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605 $as_echo "yes" >&6; }
6606 X_LIBS="$X_LIBS -R $x_libraries"
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6609 $as_echo "neither works" >&6; }
6611 rm -f core conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6614 rm -f core conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext conftest.$ac_ext
6616 ac_c_werror_flag=$ac_xsave_c_werror_flag
6617 LIBS=$ac_xsave_LIBS
6620 # Check for system-dependent libraries X programs must link with.
6621 # Do this before checking for the system-independent R6 libraries
6622 # (-lICE), since we may need -lsocket or whatever for X linking.
6624 if test "$ISC" = yes; then
6625 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6626 else
6627 # Martyn Johnson says this is needed for Ultrix, if the X
6628 # libraries were built with DECnet support. And Karl Berry says
6629 # the Alpha needs dnet_stub (dnet does not exist).
6630 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6634 /* Override any GCC internal prototype to avoid an error.
6635 Use char because int might match the return type of a GCC
6636 builtin and then its argument prototype would still apply. */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 char XOpenDisplay ();
6642 main ()
6644 return XOpenDisplay ();
6646 return 0;
6648 _ACEOF
6649 if ac_fn_c_try_link "$LINENO"; then :
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6653 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6654 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 ac_check_lib_save_LIBS=$LIBS
6658 LIBS="-ldnet $LIBS"
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6662 /* Override any GCC internal prototype to avoid an error.
6663 Use char because int might match the return type of a GCC
6664 builtin and then its argument prototype would still apply. */
6665 #ifdef __cplusplus
6666 extern "C"
6667 #endif
6668 char dnet_ntoa ();
6670 main ()
6672 return dnet_ntoa ();
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_link "$LINENO"; then :
6678 ac_cv_lib_dnet_dnet_ntoa=yes
6679 else
6680 ac_cv_lib_dnet_dnet_ntoa=no
6682 rm -f core conftest.err conftest.$ac_objext \
6683 conftest$ac_exeext conftest.$ac_ext
6684 LIBS=$ac_check_lib_save_LIBS
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6687 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6688 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6689 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6692 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6694 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6695 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 ac_check_lib_save_LIBS=$LIBS
6699 LIBS="-ldnet_stub $LIBS"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6703 /* Override any GCC internal prototype to avoid an error.
6704 Use char because int might match the return type of a GCC
6705 builtin and then its argument prototype would still apply. */
6706 #ifdef __cplusplus
6707 extern "C"
6708 #endif
6709 char dnet_ntoa ();
6711 main ()
6713 return dnet_ntoa ();
6715 return 0;
6717 _ACEOF
6718 if ac_fn_c_try_link "$LINENO"; then :
6719 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6720 else
6721 ac_cv_lib_dnet_stub_dnet_ntoa=no
6723 rm -f core conftest.err conftest.$ac_objext \
6724 conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_check_lib_save_LIBS
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6728 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6729 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6730 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6735 rm -f core conftest.err conftest.$ac_objext \
6736 conftest$ac_exeext conftest.$ac_ext
6737 LIBS="$ac_xsave_LIBS"
6739 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6740 # to get the SysV transport functions.
6741 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6742 # needs -lnsl.
6743 # The nsl library prevents programs from opening the X display
6744 # on Irix 5.2, according to T.E. Dickey.
6745 # The functions gethostbyname, getservbyname, and inet_addr are
6746 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6747 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6748 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6752 if test $ac_cv_func_gethostbyname = no; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6754 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6755 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 ac_check_lib_save_LIBS=$LIBS
6759 LIBS="-lnsl $LIBS"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6763 /* Override any GCC internal prototype to avoid an error.
6764 Use char because int might match the return type of a GCC
6765 builtin and then its argument prototype would still apply. */
6766 #ifdef __cplusplus
6767 extern "C"
6768 #endif
6769 char gethostbyname ();
6771 main ()
6773 return gethostbyname ();
6775 return 0;
6777 _ACEOF
6778 if ac_fn_c_try_link "$LINENO"; then :
6779 ac_cv_lib_nsl_gethostbyname=yes
6780 else
6781 ac_cv_lib_nsl_gethostbyname=no
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6788 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6789 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6790 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6793 if test $ac_cv_lib_nsl_gethostbyname = no; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6795 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6796 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 ac_check_lib_save_LIBS=$LIBS
6800 LIBS="-lbsd $LIBS"
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6804 /* Override any GCC internal prototype to avoid an error.
6805 Use char because int might match the return type of a GCC
6806 builtin and then its argument prototype would still apply. */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 char gethostbyname ();
6812 main ()
6814 return gethostbyname ();
6816 return 0;
6818 _ACEOF
6819 if ac_fn_c_try_link "$LINENO"; then :
6820 ac_cv_lib_bsd_gethostbyname=yes
6821 else
6822 ac_cv_lib_bsd_gethostbyname=no
6824 rm -f core conftest.err conftest.$ac_objext \
6825 conftest$ac_exeext conftest.$ac_ext
6826 LIBS=$ac_check_lib_save_LIBS
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6829 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6830 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6831 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6837 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6838 # socket/setsockopt and other routines are undefined under SCO ODT
6839 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6840 # on later versions), says Simon Leinen: it contains gethostby*
6841 # variants that don't use the name server (or something). -lsocket
6842 # must be given before -lnsl if both are needed. We assume that
6843 # if connect needs -lnsl, so does gethostbyname.
6844 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6845 if test "x$ac_cv_func_connect" = x""yes; then :
6849 if test $ac_cv_func_connect = no; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6851 $as_echo_n "checking for connect in -lsocket... " >&6; }
6852 if test "${ac_cv_lib_socket_connect+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 ac_check_lib_save_LIBS=$LIBS
6856 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6860 /* Override any GCC internal prototype to avoid an error.
6861 Use char because int might match the return type of a GCC
6862 builtin and then its argument prototype would still apply. */
6863 #ifdef __cplusplus
6864 extern "C"
6865 #endif
6866 char connect ();
6868 main ()
6870 return connect ();
6872 return 0;
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"; then :
6876 ac_cv_lib_socket_connect=yes
6877 else
6878 ac_cv_lib_socket_connect=no
6880 rm -f core conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6882 LIBS=$ac_check_lib_save_LIBS
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6885 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6886 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6887 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6892 # Guillermo Gomez says -lposix is necessary on A/UX.
6893 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6894 if test "x$ac_cv_func_remove" = x""yes; then :
6898 if test $ac_cv_func_remove = no; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6900 $as_echo_n "checking for remove in -lposix... " >&6; }
6901 if test "${ac_cv_lib_posix_remove+set}" = set; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 ac_check_lib_save_LIBS=$LIBS
6905 LIBS="-lposix $LIBS"
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6909 /* Override any GCC internal prototype to avoid an error.
6910 Use char because int might match the return type of a GCC
6911 builtin and then its argument prototype would still apply. */
6912 #ifdef __cplusplus
6913 extern "C"
6914 #endif
6915 char remove ();
6917 main ()
6919 return remove ();
6921 return 0;
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925 ac_cv_lib_posix_remove=yes
6926 else
6927 ac_cv_lib_posix_remove=no
6929 rm -f core conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6931 LIBS=$ac_check_lib_save_LIBS
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6934 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6935 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6941 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6942 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6943 if test "x$ac_cv_func_shmat" = x""yes; then :
6947 if test $ac_cv_func_shmat = no; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6949 $as_echo_n "checking for shmat in -lipc... " >&6; }
6950 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 ac_check_lib_save_LIBS=$LIBS
6954 LIBS="-lipc $LIBS"
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6958 /* Override any GCC internal prototype to avoid an error.
6959 Use char because int might match the return type of a GCC
6960 builtin and then its argument prototype would still apply. */
6961 #ifdef __cplusplus
6962 extern "C"
6963 #endif
6964 char shmat ();
6966 main ()
6968 return shmat ();
6970 return 0;
6972 _ACEOF
6973 if ac_fn_c_try_link "$LINENO"; then :
6974 ac_cv_lib_ipc_shmat=yes
6975 else
6976 ac_cv_lib_ipc_shmat=no
6978 rm -f core conftest.err conftest.$ac_objext \
6979 conftest$ac_exeext conftest.$ac_ext
6980 LIBS=$ac_check_lib_save_LIBS
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6983 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6984 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6991 # Check for libraries that X11R6 Xt/Xaw programs need.
6992 ac_save_LDFLAGS=$LDFLAGS
6993 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6994 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6995 # check for ICE first), but we must link in the order -lSM -lICE or
6996 # we get undefined symbols. So assume we have SM if we have ICE.
6997 # These have to be linked with before -lX11, unlike the other
6998 # libraries we check for below, so use a different variable.
6999 # John Interrante, Karl Berry
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7001 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7002 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 ac_check_lib_save_LIBS=$LIBS
7006 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7010 /* Override any GCC internal prototype to avoid an error.
7011 Use char because int might match the return type of a GCC
7012 builtin and then its argument prototype would still apply. */
7013 #ifdef __cplusplus
7014 extern "C"
7015 #endif
7016 char IceConnectionNumber ();
7018 main ()
7020 return IceConnectionNumber ();
7022 return 0;
7024 _ACEOF
7025 if ac_fn_c_try_link "$LINENO"; then :
7026 ac_cv_lib_ICE_IceConnectionNumber=yes
7027 else
7028 ac_cv_lib_ICE_IceConnectionNumber=no
7030 rm -f core conftest.err conftest.$ac_objext \
7031 conftest$ac_exeext conftest.$ac_ext
7032 LIBS=$ac_check_lib_save_LIBS
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7035 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7036 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7037 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7040 LDFLAGS=$ac_save_LDFLAGS
7044 CFLAGS="$X_CFLAGS $CFLAGS"
7045 LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
7047 # Checks for GtkGLExt.
7050 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 case $PKG_CONFIG in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7075 done
7076 done
7077 IFS=$as_save_IFS
7080 esac
7082 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7083 if test -n "$PKG_CONFIG"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7085 $as_echo "$PKG_CONFIG" >&6; }
7086 else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7093 if test -z "$ac_cv_path_PKG_CONFIG"; then
7094 ac_pt_PKG_CONFIG=$PKG_CONFIG
7095 # Extract the first word of "pkg-config", so it can be a program name with args.
7096 set dummy pkg-config; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 case $ac_pt_PKG_CONFIG in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7118 done
7119 done
7120 IFS=$as_save_IFS
7123 esac
7125 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7126 if test -n "$ac_pt_PKG_CONFIG"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7128 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7134 if test "x$ac_pt_PKG_CONFIG" = x; then
7135 PKG_CONFIG=""
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 PKG_CONFIG=$ac_pt_PKG_CONFIG
7145 else
7146 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7150 if test -n "$PKG_CONFIG"; then
7151 _pkg_min_version=0.9.0
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7153 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7154 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7156 $as_echo "yes" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 PKG_CONFIG=""
7165 pkg_failed=no
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5
7167 $as_echo_n "checking for GTKGLEXT... " >&6; }
7169 if test -n "$PKG_CONFIG"; then
7170 if test -n "$GTKGLEXT_CFLAGS"; then
7171 pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS"
7172 else
7173 if test -n "$PKG_CONFIG" && \
7174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7175 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7176 ac_status=$?
7177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178 test $ac_status = 0; }; then
7179 pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7180 else
7181 pkg_failed=yes
7184 else
7185 pkg_failed=untried
7187 if test -n "$PKG_CONFIG"; then
7188 if test -n "$GTKGLEXT_LIBS"; then
7189 pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS"
7190 else
7191 if test -n "$PKG_CONFIG" && \
7192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7193 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7194 ac_status=$?
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; }; then
7197 pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7198 else
7199 pkg_failed=yes
7202 else
7203 pkg_failed=untried
7208 if test $pkg_failed = yes; then
7210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7211 _pkg_short_errors_supported=yes
7212 else
7213 _pkg_short_errors_supported=no
7215 if test $_pkg_short_errors_supported = yes; then
7216 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7217 else
7218 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7220 # Put the nasty error message in config.log where it belongs
7221 echo "$GTKGLEXT_PKG_ERRORS" >&5
7223 as_fn_error "Package requirements (gtkglext-1.0 >= 0.7.0) were not met:
7225 $GTKGLEXT_PKG_ERRORS
7227 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7228 installed software in a non-standard prefix.
7230 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7231 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7232 See the pkg-config man page for more details.
7233 " "$LINENO" 5
7234 elif test $pkg_failed = untried; then
7235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7237 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
7238 is in your PATH or set the PKG_CONFIG environment variable to the full
7239 path to pkg-config.
7241 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7242 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7243 See the pkg-config man page for more details.
7245 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7246 See \`config.log' for more details." "$LINENO" 5; }
7247 else
7248 GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS
7249 GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7251 $as_echo "yes" >&6; }
7254 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
7255 LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
7256 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
7258 # Checks for OpenGL.
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include "GL/gl.h"
7263 main ()
7265 glBegin(GL_QUADS);
7267 return 0;
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"; then :
7271 ogl="yes"
7272 else
7273 ogl="no"
7275 rm -f core conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7278 if test "x$ogl" = "xno"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: maybe libGL requires libpthread..." >&5
7280 $as_echo "$as_me: maybe libGL requires libpthread..." >&6;}
7281 OLD_LDFLAGS="$LDFLAGS"
7282 LDFLAGS="$LDFLAGS -lpthread"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include "GL/gl.h"
7287 main ()
7289 glBegin(GL_QUADS);
7291 return 0;
7293 _ACEOF
7294 if ac_fn_c_try_link "$LINENO"; then :
7296 else
7297 as_fn_error "cannot use -lGL" "$LINENO" 5
7299 rm -f core conftest.err conftest.$ac_objext \
7300 conftest$ac_exeext conftest.$ac_ext
7303 # Checks for gtk.
7304 # Check whether --enable-gtktest was given.
7305 if test "${enable_gtktest+set}" = set; then :
7306 enableval=$enable_gtktest;
7307 else
7308 enable_gtktest=yes
7312 pkg_config_args=gtk+-2.0
7313 for module in . gthread
7315 case "$module" in
7316 gthread)
7317 pkg_config_args="$pkg_config_args gthread-2.0"
7319 esac
7320 done
7322 no_gtk=""
7324 # Extract the first word of "pkg-config", so it can be a program name with args.
7325 set dummy pkg-config; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 case $PKG_CONFIG in
7332 [\\/]* | ?:[\\/]*)
7333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7347 done
7348 done
7349 IFS=$as_save_IFS
7351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7353 esac
7355 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7356 if test -n "$PKG_CONFIG"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7358 $as_echo "$PKG_CONFIG" >&6; }
7359 else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test x$PKG_CONFIG != xno ; then
7367 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7369 else
7370 echo "*** pkg-config too old; version 0.7 or better required."
7371 no_gtk=yes
7372 PKG_CONFIG=no
7374 else
7375 no_gtk=yes
7378 min_gtk_version=2.6.0
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7380 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7382 if test x$PKG_CONFIG != xno ; then
7383 ## don't try to run the test against uninstalled libtool libs
7384 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7385 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7386 enable_gtktest=no
7389 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7391 else
7392 no_gtk=yes
7396 if test x"$no_gtk" = x ; then
7397 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7398 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7399 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7401 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7403 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7404 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7405 if test "x$enable_gtktest" = "xyes" ; then
7406 ac_save_CFLAGS="$CFLAGS"
7407 ac_save_LIBS="$LIBS"
7408 CFLAGS="$CFLAGS $GTK_CFLAGS"
7409 LIBS="$GTK_LIBS $LIBS"
7410 rm -f conf.gtktest
7411 if test "$cross_compiling" = yes; then :
7412 echo $ac_n "cross compiling; assumed OK... $ac_c"
7413 else
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7417 #include <gtk/gtk.h>
7418 #include <stdio.h>
7419 #include <stdlib.h>
7422 main ()
7424 int major, minor, micro;
7425 char *tmp_version;
7427 system ("touch conf.gtktest");
7429 /* HP/UX 9 (%@#!) writes to sscanf strings */
7430 tmp_version = g_strdup("$min_gtk_version");
7431 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7432 printf("%s, bad version string\n", "$min_gtk_version");
7433 exit(1);
7436 if ((gtk_major_version != $gtk_config_major_version) ||
7437 (gtk_minor_version != $gtk_config_minor_version) ||
7438 (gtk_micro_version != $gtk_config_micro_version))
7440 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7441 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7442 gtk_major_version, gtk_minor_version, gtk_micro_version);
7443 printf ("*** was found! If pkg-config was correct, then it is best\n");
7444 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7445 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7446 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7447 printf("*** required on your system.\n");
7448 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7449 printf("*** to point to the correct configuration files\n");
7451 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7452 (gtk_minor_version != GTK_MINOR_VERSION) ||
7453 (gtk_micro_version != GTK_MICRO_VERSION))
7455 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7456 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7457 printf("*** library (version %d.%d.%d)\n",
7458 gtk_major_version, gtk_minor_version, gtk_micro_version);
7460 else
7462 if ((gtk_major_version > major) ||
7463 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7464 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7466 return 0;
7468 else
7470 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7471 gtk_major_version, gtk_minor_version, gtk_micro_version);
7472 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7473 major, minor, micro);
7474 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7475 printf("***\n");
7476 printf("*** If you have already installed a sufficiently new version, this error\n");
7477 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7478 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7479 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7480 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7481 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7482 printf("*** so that the correct libraries are found at run-time))\n");
7485 return 1;
7488 _ACEOF
7489 if ac_fn_c_try_run "$LINENO"; then :
7491 else
7492 no_gtk=yes
7494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7495 conftest.$ac_objext conftest.beam conftest.$ac_ext
7498 CFLAGS="$ac_save_CFLAGS"
7499 LIBS="$ac_save_LIBS"
7502 if test "x$no_gtk" = x ; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7504 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7506 CFLAGS="$GTK_CFLAGS $CFLAGS"
7507 LDFLAGS="$GTK_LIBS $LDFLAGS"
7508 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 if test "$PKG_CONFIG" = "no" ; then
7514 echo "*** A new enough version of pkg-config was not found."
7515 echo "*** See http://pkgconfig.sourceforge.net"
7516 else
7517 if test -f conf.gtktest ; then
7519 else
7520 echo "*** Could not run GTK+ test program, checking why..."
7521 ac_save_CFLAGS="$CFLAGS"
7522 ac_save_LIBS="$LIBS"
7523 CFLAGS="$CFLAGS $GTK_CFLAGS"
7524 LIBS="$LIBS $GTK_LIBS"
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7528 #include <gtk/gtk.h>
7529 #include <stdio.h>
7532 main ()
7534 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7536 return 0;
7538 _ACEOF
7539 if ac_fn_c_try_link "$LINENO"; then :
7540 echo "*** The test program compiled, but did not run. This usually means"
7541 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7542 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7543 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7544 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7545 echo "*** is required on your system"
7546 echo "***"
7547 echo "*** If you have an old version installed, it is best to remove it, although"
7548 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7549 else
7550 echo "*** The test program failed to compile or link. See the file config.log for the"
7551 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7553 rm -f core conftest.err conftest.$ac_objext \
7554 conftest$ac_exeext conftest.$ac_ext
7555 CFLAGS="$ac_save_CFLAGS"
7556 LIBS="$ac_save_LIBS"
7559 GTK_CFLAGS=""
7560 GTK_LIBS=""
7561 exit 1
7565 rm -f conf.gtktest
7568 # I18n.
7569 ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7573 $as_echo_n "checking whether NLS is requested... " >&6; }
7574 # Check whether --enable-nls was given.
7575 if test "${enable_nls+set}" = set; then :
7576 enableval=$enable_nls; USE_NLS=$enableval
7577 else
7578 USE_NLS=yes
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7582 $as_echo "$USE_NLS" >&6; }
7587 GETTEXT_MACRO_VERSION=0.17
7592 # Prepare PATH_SEPARATOR.
7593 # The user is always right.
7594 if test "${PATH_SEPARATOR+set}" != set; then
7595 echo "#! /bin/sh" >conf$$.sh
7596 echo "exit 0" >>conf$$.sh
7597 chmod +x conf$$.sh
7598 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7599 PATH_SEPARATOR=';'
7600 else
7601 PATH_SEPARATOR=:
7603 rm -f conf$$.sh
7606 # Find out how to test for executable files. Don't use a zero-byte file,
7607 # as systems may use methods other than mode bits to determine executability.
7608 cat >conf$$.file <<_ASEOF
7609 #! /bin/sh
7610 exit 0
7611 _ASEOF
7612 chmod +x conf$$.file
7613 if test -x conf$$.file >/dev/null 2>&1; then
7614 ac_executable_p="test -x"
7615 else
7616 ac_executable_p="test -f"
7618 rm -f conf$$.file
7620 # Extract the first word of "msgfmt", so it can be a program name with args.
7621 set dummy msgfmt; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_path_MSGFMT+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 case "$MSGFMT" in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7632 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7633 for ac_dir in $PATH; do
7634 IFS="$ac_save_IFS"
7635 test -z "$ac_dir" && ac_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7638 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7639 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7640 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7641 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7642 break 2
7645 done
7646 done
7647 IFS="$ac_save_IFS"
7648 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7650 esac
7652 MSGFMT="$ac_cv_path_MSGFMT"
7653 if test "$MSGFMT" != ":"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7655 $as_echo "$MSGFMT" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7661 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7662 set dummy gmsgfmt; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 case $GMSGFMT in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7684 done
7685 done
7686 IFS=$as_save_IFS
7688 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7690 esac
7692 GMSGFMT=$ac_cv_path_GMSGFMT
7693 if test -n "$GMSGFMT"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7695 $as_echo "$GMSGFMT" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7703 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7704 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7705 *) MSGFMT_015=$MSGFMT ;;
7706 esac
7708 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7709 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7710 *) GMSGFMT_015=$GMSGFMT ;;
7711 esac
7715 # Prepare PATH_SEPARATOR.
7716 # The user is always right.
7717 if test "${PATH_SEPARATOR+set}" != set; then
7718 echo "#! /bin/sh" >conf$$.sh
7719 echo "exit 0" >>conf$$.sh
7720 chmod +x conf$$.sh
7721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7722 PATH_SEPARATOR=';'
7723 else
7724 PATH_SEPARATOR=:
7726 rm -f conf$$.sh
7729 # Find out how to test for executable files. Don't use a zero-byte file,
7730 # as systems may use methods other than mode bits to determine executability.
7731 cat >conf$$.file <<_ASEOF
7732 #! /bin/sh
7733 exit 0
7734 _ASEOF
7735 chmod +x conf$$.file
7736 if test -x conf$$.file >/dev/null 2>&1; then
7737 ac_executable_p="test -x"
7738 else
7739 ac_executable_p="test -f"
7741 rm -f conf$$.file
7743 # Extract the first word of "xgettext", so it can be a program name with args.
7744 set dummy xgettext; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 case "$XGETTEXT" in
7751 [\\/]* | ?:[\\/]*)
7752 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7755 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7756 for ac_dir in $PATH; do
7757 IFS="$ac_save_IFS"
7758 test -z "$ac_dir" && ac_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7761 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7762 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7763 (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
7764 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7765 break 2
7768 done
7769 done
7770 IFS="$ac_save_IFS"
7771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7773 esac
7775 XGETTEXT="$ac_cv_path_XGETTEXT"
7776 if test "$XGETTEXT" != ":"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7778 $as_echo "$XGETTEXT" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7784 rm -f messages.po
7786 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7787 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7788 *) XGETTEXT_015=$XGETTEXT ;;
7789 esac
7793 # Prepare PATH_SEPARATOR.
7794 # The user is always right.
7795 if test "${PATH_SEPARATOR+set}" != set; then
7796 echo "#! /bin/sh" >conf$$.sh
7797 echo "exit 0" >>conf$$.sh
7798 chmod +x conf$$.sh
7799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7800 PATH_SEPARATOR=';'
7801 else
7802 PATH_SEPARATOR=:
7804 rm -f conf$$.sh
7807 # Find out how to test for executable files. Don't use a zero-byte file,
7808 # as systems may use methods other than mode bits to determine executability.
7809 cat >conf$$.file <<_ASEOF
7810 #! /bin/sh
7811 exit 0
7812 _ASEOF
7813 chmod +x conf$$.file
7814 if test -x conf$$.file >/dev/null 2>&1; then
7815 ac_executable_p="test -x"
7816 else
7817 ac_executable_p="test -f"
7819 rm -f conf$$.file
7821 # Extract the first word of "msgmerge", so it can be a program name with args.
7822 set dummy msgmerge; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 case "$MSGMERGE" in
7829 [\\/]* | ?:[\\/]*)
7830 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7833 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7834 for ac_dir in $PATH; do
7835 IFS="$ac_save_IFS"
7836 test -z "$ac_dir" && ac_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7839 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7840 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7841 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7842 break 2
7845 done
7846 done
7847 IFS="$ac_save_IFS"
7848 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7850 esac
7852 MSGMERGE="$ac_cv_path_MSGMERGE"
7853 if test "$MSGMERGE" != ":"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7855 $as_echo "$MSGMERGE" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7862 test -n "$localedir" || localedir='${datadir}/locale'
7865 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7868 ac_config_commands="$ac_config_commands po-directories"
7871 # Make sure we can run config.sub.
7872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7873 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7876 $as_echo_n "checking build system type... " >&6; }
7877 if test "${ac_cv_build+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 ac_build_alias=$build_alias
7881 test "x$ac_build_alias" = x &&
7882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7883 test "x$ac_build_alias" = x &&
7884 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
7885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7886 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7890 $as_echo "$ac_cv_build" >&6; }
7891 case $ac_cv_build in
7892 *-*-*) ;;
7893 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
7894 esac
7895 build=$ac_cv_build
7896 ac_save_IFS=$IFS; IFS='-'
7897 set x $ac_cv_build
7898 shift
7899 build_cpu=$1
7900 build_vendor=$2
7901 shift; shift
7902 # Remember, the first character of IFS is used to create $*,
7903 # except with old shells:
7904 build_os=$*
7905 IFS=$ac_save_IFS
7906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7910 $as_echo_n "checking host system type... " >&6; }
7911 if test "${ac_cv_host+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 if test "x$host_alias" = x; then
7915 ac_cv_host=$ac_cv_build
7916 else
7917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7918 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7923 $as_echo "$ac_cv_host" >&6; }
7924 case $ac_cv_host in
7925 *-*-*) ;;
7926 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
7927 esac
7928 host=$ac_cv_host
7929 ac_save_IFS=$IFS; IFS='-'
7930 set x $ac_cv_host
7931 shift
7932 host_cpu=$1
7933 host_vendor=$2
7934 shift; shift
7935 # Remember, the first character of IFS is used to create $*,
7936 # except with old shells:
7937 host_os=$*
7938 IFS=$ac_save_IFS
7939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7944 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
7945 if test "${ac_cv_gnu_library_2+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7951 #include <features.h>
7952 #ifdef __GNU_LIBRARY__
7953 #if (__GLIBC__ >= 2)
7954 Lucky GNU user
7955 #endif
7956 #endif
7958 _ACEOF
7959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7960 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7961 ac_cv_gnu_library_2=yes
7962 else
7963 ac_cv_gnu_library_2=no
7965 rm -f conftest*
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
7971 $as_echo "$ac_cv_gnu_library_2" >&6; }
7973 GLIBC2="$ac_cv_gnu_library_2"
7978 CFLAG_VISIBILITY=
7979 HAVE_VISIBILITY=0
7980 if test -n "$GCC"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
7982 $as_echo_n "checking for simple visibility declarations... " >&6; }
7983 if test "${gl_cv_cc_visibility+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7987 gl_save_CFLAGS="$CFLAGS"
7988 CFLAGS="$CFLAGS -fvisibility=hidden"
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
7992 extern __attribute__((__visibility__("default"))) int exportedvar;
7993 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
7994 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
7996 main ()
8000 return 0;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004 gl_cv_cc_visibility=yes
8005 else
8006 gl_cv_cc_visibility=no
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 CFLAGS="$gl_save_CFLAGS"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
8013 $as_echo "$gl_cv_cc_visibility" >&6; }
8014 if test $gl_cv_cc_visibility = yes; then
8015 CFLAG_VISIBILITY="-fvisibility=hidden"
8016 HAVE_VISIBILITY=1
8022 cat >>confdefs.h <<_ACEOF
8023 #define HAVE_VISIBILITY $HAVE_VISIBILITY
8024 _ACEOF
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8028 $as_echo_n "checking for inline... " >&6; }
8029 if test "${ac_cv_c_inline+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 ac_cv_c_inline=no
8033 for ac_kw in inline __inline__ __inline; do
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 #ifndef __cplusplus
8037 typedef int foo_t;
8038 static $ac_kw foo_t static_foo () {return 0; }
8039 $ac_kw foo_t foo () {return 0; }
8040 #endif
8042 _ACEOF
8043 if ac_fn_c_try_compile "$LINENO"; then :
8044 ac_cv_c_inline=$ac_kw
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 test "$ac_cv_c_inline" != no && break
8048 done
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8052 $as_echo "$ac_cv_c_inline" >&6; }
8054 case $ac_cv_c_inline in
8055 inline | yes) ;;
8057 case $ac_cv_c_inline in
8058 no) ac_val=;;
8059 *) ac_val=$ac_cv_c_inline;;
8060 esac
8061 cat >>confdefs.h <<_ACEOF
8062 #ifndef __cplusplus
8063 #define inline $ac_val
8064 #endif
8065 _ACEOF
8067 esac
8069 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8070 if test "x$ac_cv_type_size_t" = x""yes; then :
8072 else
8074 cat >>confdefs.h <<_ACEOF
8075 #define size_t unsigned int
8076 _ACEOF
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8082 $as_echo_n "checking for stdint.h... " >&6; }
8083 if test "${gl_cv_header_stdint_h+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 #include <sys/types.h>
8089 #include <stdint.h>
8091 main ()
8093 uintmax_t i = (uintmax_t) -1; return !i;
8095 return 0;
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099 gl_cv_header_stdint_h=yes
8100 else
8101 gl_cv_header_stdint_h=no
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8106 $as_echo "$gl_cv_header_stdint_h" >&6; }
8107 if test $gl_cv_header_stdint_h = yes; then
8109 cat >>confdefs.h <<_ACEOF
8110 #define HAVE_STDINT_H_WITH_UINTMAX 1
8111 _ACEOF
8115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8116 # for constant arguments. Useless!
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8118 $as_echo_n "checking for working alloca.h... " >&6; }
8119 if test "${ac_cv_working_alloca_h+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 #include <alloca.h>
8126 main ()
8128 char *p = (char *) alloca (2 * sizeof (int));
8129 if (p) return 0;
8131 return 0;
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135 ac_cv_working_alloca_h=yes
8136 else
8137 ac_cv_working_alloca_h=no
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8143 $as_echo "$ac_cv_working_alloca_h" >&6; }
8144 if test $ac_cv_working_alloca_h = yes; then
8146 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8151 $as_echo_n "checking for alloca... " >&6; }
8152 if test "${ac_cv_func_alloca_works+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #ifdef __GNUC__
8158 # define alloca __builtin_alloca
8159 #else
8160 # ifdef _MSC_VER
8161 # include <malloc.h>
8162 # define alloca _alloca
8163 # else
8164 # ifdef HAVE_ALLOCA_H
8165 # include <alloca.h>
8166 # else
8167 # ifdef _AIX
8168 #pragma alloca
8169 # else
8170 # ifndef alloca /* predefined by HP cc +Olibcalls */
8171 char *alloca ();
8172 # endif
8173 # endif
8174 # endif
8175 # endif
8176 #endif
8179 main ()
8181 char *p = (char *) alloca (1);
8182 if (p) return 0;
8184 return 0;
8186 _ACEOF
8187 if ac_fn_c_try_link "$LINENO"; then :
8188 ac_cv_func_alloca_works=yes
8189 else
8190 ac_cv_func_alloca_works=no
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8196 $as_echo "$ac_cv_func_alloca_works" >&6; }
8198 if test $ac_cv_func_alloca_works = yes; then
8200 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8202 else
8203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8204 # that cause trouble. Some versions do not even contain alloca or
8205 # contain a buggy version. If you still want to use their alloca,
8206 # use ar to extract alloca.o from them instead of compiling alloca.c.
8208 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8210 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8214 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8215 if test "${ac_cv_os_cray+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #if defined CRAY && ! defined CRAY2
8221 webecray
8222 #else
8223 wenotbecray
8224 #endif
8226 _ACEOF
8227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8228 $EGREP "webecray" >/dev/null 2>&1; then :
8229 ac_cv_os_cray=yes
8230 else
8231 ac_cv_os_cray=no
8233 rm -f conftest*
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8237 $as_echo "$ac_cv_os_cray" >&6; }
8238 if test $ac_cv_os_cray = yes; then
8239 for ac_func in _getb67 GETB67 getb67; do
8240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8242 eval as_val=\$$as_ac_var
8243 if test "x$as_val" = x""yes; then :
8245 cat >>confdefs.h <<_ACEOF
8246 #define CRAY_STACKSEG_END $ac_func
8247 _ACEOF
8249 break
8252 done
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8256 $as_echo_n "checking stack direction for C alloca... " >&6; }
8257 if test "${ac_cv_c_stack_direction+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test "$cross_compiling" = yes; then :
8261 ac_cv_c_stack_direction=0
8262 else
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 $ac_includes_default
8267 find_stack_direction ()
8269 static char *addr = 0;
8270 auto char dummy;
8271 if (addr == 0)
8273 addr = &dummy;
8274 return find_stack_direction ();
8276 else
8277 return (&dummy > addr) ? 1 : -1;
8281 main ()
8283 return find_stack_direction () < 0;
8285 _ACEOF
8286 if ac_fn_c_try_run "$LINENO"; then :
8287 ac_cv_c_stack_direction=1
8288 else
8289 ac_cv_c_stack_direction=-1
8291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8292 conftest.$ac_objext conftest.beam conftest.$ac_ext
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8297 $as_echo "$ac_cv_c_stack_direction" >&6; }
8298 cat >>confdefs.h <<_ACEOF
8299 #define STACK_DIRECTION $ac_cv_c_stack_direction
8300 _ACEOF
8305 for ac_header in stdlib.h unistd.h
8306 do :
8307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8309 eval as_val=\$$as_ac_Header
8310 if test "x$as_val" = x""yes; then :
8311 cat >>confdefs.h <<_ACEOF
8312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8313 _ACEOF
8317 done
8319 for ac_func in getpagesize
8320 do :
8321 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8322 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8323 cat >>confdefs.h <<_ACEOF
8324 #define HAVE_GETPAGESIZE 1
8325 _ACEOF
8328 done
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8331 $as_echo_n "checking for working mmap... " >&6; }
8332 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test "$cross_compiling" = yes; then :
8336 ac_cv_func_mmap_fixed_mapped=no
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 $ac_includes_default
8341 /* malloc might have been renamed as rpl_malloc. */
8342 #undef malloc
8344 /* Thanks to Mike Haertel and Jim Avera for this test.
8345 Here is a matrix of mmap possibilities:
8346 mmap private not fixed
8347 mmap private fixed at somewhere currently unmapped
8348 mmap private fixed at somewhere already mapped
8349 mmap shared not fixed
8350 mmap shared fixed at somewhere currently unmapped
8351 mmap shared fixed at somewhere already mapped
8352 For private mappings, we should verify that changes cannot be read()
8353 back from the file, nor mmap's back from the file at a different
8354 address. (There have been systems where private was not correctly
8355 implemented like the infamous i386 svr4.0, and systems where the
8356 VM page cache was not coherent with the file system buffer cache
8357 like early versions of FreeBSD and possibly contemporary NetBSD.)
8358 For shared mappings, we should conversely verify that changes get
8359 propagated back to all the places they're supposed to be.
8361 Grep wants private fixed already mapped.
8362 The main things grep needs to know about mmap are:
8363 * does it exist and is it safe to write into the mmap'd area
8364 * how to use it (BSD variants) */
8366 #include <fcntl.h>
8367 #include <sys/mman.h>
8369 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8370 char *malloc ();
8371 #endif
8373 /* This mess was copied from the GNU getpagesize.h. */
8374 #ifndef HAVE_GETPAGESIZE
8375 /* Assume that all systems that can run configure have sys/param.h. */
8376 # ifndef HAVE_SYS_PARAM_H
8377 # define HAVE_SYS_PARAM_H 1
8378 # endif
8380 # ifdef _SC_PAGESIZE
8381 # define getpagesize() sysconf(_SC_PAGESIZE)
8382 # else /* no _SC_PAGESIZE */
8383 # ifdef HAVE_SYS_PARAM_H
8384 # include <sys/param.h>
8385 # ifdef EXEC_PAGESIZE
8386 # define getpagesize() EXEC_PAGESIZE
8387 # else /* no EXEC_PAGESIZE */
8388 # ifdef NBPG
8389 # define getpagesize() NBPG * CLSIZE
8390 # ifndef CLSIZE
8391 # define CLSIZE 1
8392 # endif /* no CLSIZE */
8393 # else /* no NBPG */
8394 # ifdef NBPC
8395 # define getpagesize() NBPC
8396 # else /* no NBPC */
8397 # ifdef PAGESIZE
8398 # define getpagesize() PAGESIZE
8399 # endif /* PAGESIZE */
8400 # endif /* no NBPC */
8401 # endif /* no NBPG */
8402 # endif /* no EXEC_PAGESIZE */
8403 # else /* no HAVE_SYS_PARAM_H */
8404 # define getpagesize() 8192 /* punt totally */
8405 # endif /* no HAVE_SYS_PARAM_H */
8406 # endif /* no _SC_PAGESIZE */
8408 #endif /* no HAVE_GETPAGESIZE */
8411 main ()
8413 char *data, *data2, *data3;
8414 int i, pagesize;
8415 int fd;
8417 pagesize = getpagesize ();
8419 /* First, make a file with some known garbage in it. */
8420 data = (char *) malloc (pagesize);
8421 if (!data)
8422 return 1;
8423 for (i = 0; i < pagesize; ++i)
8424 *(data + i) = rand ();
8425 umask (0);
8426 fd = creat ("conftest.mmap", 0600);
8427 if (fd < 0)
8428 return 1;
8429 if (write (fd, data, pagesize) != pagesize)
8430 return 1;
8431 close (fd);
8433 /* Next, try to mmap the file at a fixed address which already has
8434 something else allocated at it. If we can, also make sure that
8435 we see the same garbage. */
8436 fd = open ("conftest.mmap", O_RDWR);
8437 if (fd < 0)
8438 return 1;
8439 data2 = (char *) malloc (2 * pagesize);
8440 if (!data2)
8441 return 1;
8442 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8443 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8444 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8445 return 1;
8446 for (i = 0; i < pagesize; ++i)
8447 if (*(data + i) != *(data2 + i))
8448 return 1;
8450 /* Finally, make sure that changes to the mapped area do not
8451 percolate back to the file as seen by read(). (This is a bug on
8452 some variants of i386 svr4.0.) */
8453 for (i = 0; i < pagesize; ++i)
8454 *(data2 + i) = *(data2 + i) + 1;
8455 data3 = (char *) malloc (pagesize);
8456 if (!data3)
8457 return 1;
8458 if (read (fd, data3, pagesize) != pagesize)
8459 return 1;
8460 for (i = 0; i < pagesize; ++i)
8461 if (*(data + i) != *(data3 + i))
8462 return 1;
8463 close (fd);
8464 return 0;
8466 _ACEOF
8467 if ac_fn_c_try_run "$LINENO"; then :
8468 ac_cv_func_mmap_fixed_mapped=yes
8469 else
8470 ac_cv_func_mmap_fixed_mapped=no
8472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8473 conftest.$ac_objext conftest.beam conftest.$ac_ext
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8478 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8479 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8481 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8484 rm -f conftest.mmap
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
8489 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8490 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8494 gt_cv_int_divbyzero_sigfpe=
8495 case "$host_os" in
8496 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
8497 # On MacOS X 10.2 or newer, just assume the same as when cross-
8498 # compiling. If we were to perform the real test, 1 Crash Report
8499 # dialog window would pop up.
8500 case "$host_cpu" in
8501 i[34567]86 | x86_64)
8502 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
8503 esac
8505 esac
8506 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8507 if test "$cross_compiling" = yes; then :
8509 # Guess based on the CPU.
8510 case "$host_cpu" in
8511 alpha* | i[34567]86 | x86_64 | m68k | s390*)
8512 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8514 gt_cv_int_divbyzero_sigfpe="guessing no";;
8515 esac
8517 else
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8521 #include <stdlib.h>
8522 #include <signal.h>
8524 static void
8525 sigfpe_handler (int sig)
8527 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8528 exit (sig != SIGFPE);
8531 int x = 1;
8532 int y = 0;
8533 int z;
8534 int nan;
8536 int main ()
8538 signal (SIGFPE, sigfpe_handler);
8539 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8540 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8541 signal (SIGTRAP, sigfpe_handler);
8542 #endif
8543 /* Linux/SPARC yields signal SIGILL. */
8544 #if defined (__sparc__) && defined (__linux__)
8545 signal (SIGILL, sigfpe_handler);
8546 #endif
8548 z = x / y;
8549 nan = y / y;
8550 exit (1);
8553 _ACEOF
8554 if ac_fn_c_try_run "$LINENO"; then :
8555 gt_cv_int_divbyzero_sigfpe=yes
8556 else
8557 gt_cv_int_divbyzero_sigfpe=no
8559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8560 conftest.$ac_objext conftest.beam conftest.$ac_ext
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
8567 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8568 case "$gt_cv_int_divbyzero_sigfpe" in
8569 *yes) value=1;;
8570 *) value=0;;
8571 esac
8573 cat >>confdefs.h <<_ACEOF
8574 #define INTDIV0_RAISES_SIGFPE $value
8575 _ACEOF
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8580 $as_echo_n "checking for inttypes.h... " >&6; }
8581 if test "${gl_cv_header_inttypes_h+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #include <sys/types.h>
8587 #include <inttypes.h>
8589 main ()
8591 uintmax_t i = (uintmax_t) -1; return !i;
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597 gl_cv_header_inttypes_h=yes
8598 else
8599 gl_cv_header_inttypes_h=no
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8604 $as_echo "$gl_cv_header_inttypes_h" >&6; }
8605 if test $gl_cv_header_inttypes_h = yes; then
8607 cat >>confdefs.h <<_ACEOF
8608 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8609 _ACEOF
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8615 $as_echo_n "checking for unsigned long long int... " >&6; }
8616 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8622 /* Test preprocessor. */
8623 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8624 error in preprocessor;
8625 #endif
8626 #if ! (18446744073709551615ULL <= -1ull)
8627 error in preprocessor;
8628 #endif
8629 /* Test literals. */
8630 long long int ll = 9223372036854775807ll;
8631 long long int nll = -9223372036854775807LL;
8632 unsigned long long int ull = 18446744073709551615ULL;
8633 /* Test constant expressions. */
8634 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8635 ? 1 : -1)];
8636 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8637 ? 1 : -1)];
8638 int i = 63;
8640 main ()
8642 /* Test availability of runtime routines for shift and division. */
8643 long long int llmax = 9223372036854775807ll;
8644 unsigned long long int ullmax = 18446744073709551615ull;
8645 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8646 | (llmax / ll) | (llmax % ll)
8647 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8648 | (ullmax / ull) | (ullmax % ull));
8650 return 0;
8653 _ACEOF
8654 if ac_fn_c_try_link "$LINENO"; then :
8655 ac_cv_type_unsigned_long_long_int=yes
8656 else
8657 ac_cv_type_unsigned_long_long_int=no
8659 rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8663 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8664 if test $ac_cv_type_unsigned_long_long_int = yes; then
8666 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8673 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8675 test $ac_cv_type_unsigned_long_long_int = yes \
8676 && ac_type='unsigned long long' \
8677 || ac_type='unsigned long'
8679 cat >>confdefs.h <<_ACEOF
8680 #define uintmax_t $ac_type
8681 _ACEOF
8683 else
8685 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8690 for ac_header in inttypes.h
8691 do :
8692 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8693 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_INTTYPES_H 1
8696 _ACEOF
8700 done
8702 if test $ac_cv_header_inttypes_h = yes; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8704 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8705 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #include <inttypes.h>
8712 #ifdef PRId32
8713 char *p = PRId32;
8714 #endif
8717 main ()
8721 return 0;
8723 _ACEOF
8724 if ac_fn_c_try_compile "$LINENO"; then :
8725 gt_cv_inttypes_pri_broken=no
8726 else
8727 gt_cv_inttypes_pri_broken=yes
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8733 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8735 if test "$gt_cv_inttypes_pri_broken" = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738 #define PRI_MACROS_BROKEN 1
8739 _ACEOF
8741 PRI_MACROS_BROKEN=1
8742 else
8743 PRI_MACROS_BROKEN=0
8751 # Check whether --enable-threads was given.
8752 if test "${enable_threads+set}" = set; then :
8753 enableval=$enable_threads; gl_use_threads=$enableval
8754 else
8755 case "$host_os" in
8756 osf*) gl_use_threads=no ;;
8757 *) gl_use_threads=yes ;;
8758 esac
8762 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8763 # For using <pthread.h>:
8764 case "$host_os" in
8765 osf*)
8766 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8767 # groks <pthread.h>. cc also understands the flag -pthread, but
8768 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8769 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8770 # causes the AC_TRY_LINK test below to succeed unexpectedly,
8771 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8772 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8774 esac
8775 # Some systems optimize for single-threaded programs by default, and
8776 # need special flags to disable these optimizations. For example, the
8777 # definition of 'errno' in <errno.h>.
8778 case "$host_os" in
8779 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8780 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8781 esac
8788 if test "X$prefix" = "XNONE"; then
8789 acl_final_prefix="$ac_default_prefix"
8790 else
8791 acl_final_prefix="$prefix"
8793 if test "X$exec_prefix" = "XNONE"; then
8794 acl_final_exec_prefix='${prefix}'
8795 else
8796 acl_final_exec_prefix="$exec_prefix"
8798 acl_save_prefix="$prefix"
8799 prefix="$acl_final_prefix"
8800 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8801 prefix="$acl_save_prefix"
8804 # Check whether --with-gnu-ld was given.
8805 if test "${with_gnu_ld+set}" = set; then :
8806 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8807 else
8808 with_gnu_ld=no
8811 # Prepare PATH_SEPARATOR.
8812 # The user is always right.
8813 if test "${PATH_SEPARATOR+set}" != set; then
8814 echo "#! /bin/sh" >conf$$.sh
8815 echo "exit 0" >>conf$$.sh
8816 chmod +x conf$$.sh
8817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8818 PATH_SEPARATOR=';'
8819 else
8820 PATH_SEPARATOR=:
8822 rm -f conf$$.sh
8824 ac_prog=ld
8825 if test "$GCC" = yes; then
8826 # Check if gcc -print-prog-name=ld gives a path.
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8828 $as_echo_n "checking for ld used by GCC... " >&6; }
8829 case $host in
8830 *-*-mingw*)
8831 # gcc leaves a trailing carriage return which upsets mingw
8832 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8834 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8835 esac
8836 case $ac_prog in
8837 # Accept absolute paths.
8838 [\\/]* | [A-Za-z]:[\\/]*)
8839 re_direlt='/[^/][^/]*/\.\./'
8840 # Canonicalize the path of ld
8841 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8842 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8843 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8844 done
8845 test -z "$LD" && LD="$ac_prog"
8848 # If it fails, then pretend we aren't using GCC.
8849 ac_prog=ld
8852 # If it is relative, then search for the first ld in PATH.
8853 with_gnu_ld=unknown
8855 esac
8856 elif test "$with_gnu_ld" = yes; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8858 $as_echo_n "checking for GNU ld... " >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8861 $as_echo_n "checking for non-GNU ld... " >&6; }
8863 if test "${acl_cv_path_LD+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -z "$LD"; then
8867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8868 for ac_dir in $PATH; do
8869 test -z "$ac_dir" && ac_dir=.
8870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8871 acl_cv_path_LD="$ac_dir/$ac_prog"
8872 # Check to see if the program is GNU ld. I'd rather use --version,
8873 # but apparently some GNU ld's only accept -v.
8874 # Break only if it was the GNU/non-GNU ld that we prefer.
8875 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8876 *GNU* | *'with BFD'*)
8877 test "$with_gnu_ld" != no && break ;;
8879 test "$with_gnu_ld" != yes && break ;;
8880 esac
8882 done
8883 IFS="$ac_save_ifs"
8884 else
8885 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8889 LD="$acl_cv_path_LD"
8890 if test -n "$LD"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8892 $as_echo "$LD" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8897 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8899 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8900 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8904 case `$LD -v 2>&1 </dev/null` in
8905 *GNU* | *'with BFD'*)
8906 acl_cv_prog_gnu_ld=yes ;;
8908 acl_cv_prog_gnu_ld=no ;;
8909 esac
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8912 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8913 with_gnu_ld=$acl_cv_prog_gnu_ld
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8919 $as_echo_n "checking for shared library run path origin... " >&6; }
8920 if test "${acl_cv_rpath+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8924 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8925 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8926 . ./conftest.sh
8927 rm -f ./conftest.sh
8928 acl_cv_rpath=done
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8932 $as_echo "$acl_cv_rpath" >&6; }
8933 wl="$acl_cv_wl"
8934 acl_libext="$acl_cv_libext"
8935 acl_shlibext="$acl_cv_shlibext"
8936 acl_libname_spec="$acl_cv_libname_spec"
8937 acl_library_names_spec="$acl_cv_library_names_spec"
8938 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8939 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8940 acl_hardcode_direct="$acl_cv_hardcode_direct"
8941 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8942 # Check whether --enable-rpath was given.
8943 if test "${enable_rpath+set}" = set; then :
8944 enableval=$enable_rpath; :
8945 else
8946 enable_rpath=yes
8951 acl_libdirstem=lib
8952 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8953 if test -n "$searchpath"; then
8954 acl_save_IFS="${IFS= }"; IFS=":"
8955 for searchdir in $searchpath; do
8956 if test -d "$searchdir"; then
8957 case "$searchdir" in
8958 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8959 *) searchdir=`cd "$searchdir" && pwd`
8960 case "$searchdir" in
8961 */lib64 ) acl_libdirstem=lib64 ;;
8962 esac ;;
8963 esac
8965 done
8966 IFS="$acl_save_IFS"
8971 gl_threads_api=none
8972 LIBTHREAD=
8973 LTLIBTHREAD=
8974 LIBMULTITHREAD=
8975 LTLIBMULTITHREAD=
8976 if test "$gl_use_threads" != no; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
8978 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
8979 gl_have_weak=no
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 extern void xyzzy ();
8983 #pragma weak xyzzy
8985 main ()
8987 xyzzy();
8989 return 0;
8991 _ACEOF
8992 if ac_fn_c_try_link "$LINENO"; then :
8993 gl_have_weak=yes
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
8998 $as_echo "$gl_have_weak" >&6; }
8999 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9000 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9001 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
9002 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9003 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9004 gl_have_pthread_h=yes
9005 else
9006 gl_have_pthread_h=no
9010 if test "$gl_have_pthread_h" = yes; then
9011 # Other possible tests:
9012 # -lpthreads (FSU threads, PCthreads)
9013 # -lgthreads
9014 gl_have_pthread=
9015 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9016 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9017 # the second one only in libpthread, and lock.c needs it.
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 #include <pthread.h>
9022 main ()
9024 pthread_mutex_lock((pthread_mutex_t*)0);
9025 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9027 return 0;
9029 _ACEOF
9030 if ac_fn_c_try_link "$LINENO"; then :
9031 gl_have_pthread=yes
9033 rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9036 # since it is defined as a macro on OSF/1.)
9037 if test -n "$gl_have_pthread"; then
9038 # The program links fine without libpthread. But it may actually
9039 # need to link with libpthread in order to create multiple threads.
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9041 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9042 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 ac_check_lib_save_LIBS=$LIBS
9046 LIBS="-lpthread $LIBS"
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9050 /* Override any GCC internal prototype to avoid an error.
9051 Use char because int might match the return type of a GCC
9052 builtin and then its argument prototype would still apply. */
9053 #ifdef __cplusplus
9054 extern "C"
9055 #endif
9056 char pthread_kill ();
9058 main ()
9060 return pthread_kill ();
9062 return 0;
9064 _ACEOF
9065 if ac_fn_c_try_link "$LINENO"; then :
9066 ac_cv_lib_pthread_pthread_kill=yes
9067 else
9068 ac_cv_lib_pthread_pthread_kill=no
9070 rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9075 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9076 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
9077 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9078 # On Solaris and HP-UX, most pthread functions exist also in libc.
9079 # Therefore pthread_in_use() needs to actually try to create a
9080 # thread: pthread_create from libc will fail, whereas
9081 # pthread_create will actually create a thread.
9082 case "$host_os" in
9083 solaris* | hpux*)
9085 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9087 esac
9091 else
9092 # Some library is needed. Try libpthread and libc_r.
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9094 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9095 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 ac_check_lib_save_LIBS=$LIBS
9099 LIBS="-lpthread $LIBS"
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9103 /* Override any GCC internal prototype to avoid an error.
9104 Use char because int might match the return type of a GCC
9105 builtin and then its argument prototype would still apply. */
9106 #ifdef __cplusplus
9107 extern "C"
9108 #endif
9109 char pthread_kill ();
9111 main ()
9113 return pthread_kill ();
9115 return 0;
9117 _ACEOF
9118 if ac_fn_c_try_link "$LINENO"; then :
9119 ac_cv_lib_pthread_pthread_kill=yes
9120 else
9121 ac_cv_lib_pthread_pthread_kill=no
9123 rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9128 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9129 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
9130 gl_have_pthread=yes
9131 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9132 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9135 if test -z "$gl_have_pthread"; then
9136 # For FreeBSD 4.
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9138 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9139 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 ac_check_lib_save_LIBS=$LIBS
9143 LIBS="-lc_r $LIBS"
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9147 /* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 char pthread_kill ();
9155 main ()
9157 return pthread_kill ();
9159 return 0;
9161 _ACEOF
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 ac_cv_lib_c_r_pthread_kill=yes
9164 else
9165 ac_cv_lib_c_r_pthread_kill=no
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 LIBS=$ac_check_lib_save_LIBS
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9172 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9173 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
9174 gl_have_pthread=yes
9175 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9176 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9181 if test -n "$gl_have_pthread"; then
9182 gl_threads_api=posix
9184 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9186 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9187 if test $gl_have_weak = yes; then
9189 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9191 LIBTHREAD=
9192 LTLIBTHREAD=
9195 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
9196 # pthread_rwlock_* functions.
9197 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
9199 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
9201 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
9205 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 #include <pthread.h>
9210 main ()
9212 #if __FreeBSD__ == 4
9213 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
9214 #else
9215 int x = (int)PTHREAD_MUTEX_RECURSIVE;
9216 return !x;
9217 #endif
9219 return 0;
9221 _ACEOF
9222 if ac_fn_c_try_compile "$LINENO"; then :
9224 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 if test -z "$gl_have_pthread"; then
9232 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9233 gl_have_solaristhread=
9234 gl_save_LIBS="$LIBS"
9235 LIBS="$LIBS -lthread"
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #include <thread.h>
9239 #include <synch.h>
9241 main ()
9243 thr_self();
9245 return 0;
9247 _ACEOF
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 gl_have_solaristhread=yes
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 LIBS="$gl_save_LIBS"
9254 if test -n "$gl_have_solaristhread"; then
9255 gl_threads_api=solaris
9256 LIBTHREAD=-lthread
9257 LTLIBTHREAD=-lthread
9258 LIBMULTITHREAD="$LIBTHREAD"
9259 LTLIBMULTITHREAD="$LTLIBTHREAD"
9261 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9263 if test $gl_have_weak = yes; then
9265 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9267 LIBTHREAD=
9268 LTLIBTHREAD=
9273 if test "$gl_use_threads" = pth; then
9274 gl_save_CPPFLAGS="$CPPFLAGS"
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9281 $as_echo_n "checking how to link with libpth... " >&6; }
9282 if test "${ac_cv_libpth_libs+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9290 use_additional=yes
9292 acl_save_prefix="$prefix"
9293 prefix="$acl_final_prefix"
9294 acl_save_exec_prefix="$exec_prefix"
9295 exec_prefix="$acl_final_exec_prefix"
9297 eval additional_includedir=\"$includedir\"
9298 eval additional_libdir=\"$libdir\"
9300 exec_prefix="$acl_save_exec_prefix"
9301 prefix="$acl_save_prefix"
9304 # Check whether --with-libpth-prefix was given.
9305 if test "${with_libpth_prefix+set}" = set; then :
9306 withval=$with_libpth_prefix;
9307 if test "X$withval" = "Xno"; then
9308 use_additional=no
9309 else
9310 if test "X$withval" = "X"; then
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
9317 eval additional_includedir=\"$includedir\"
9318 eval additional_libdir=\"$libdir\"
9320 exec_prefix="$acl_save_exec_prefix"
9321 prefix="$acl_save_prefix"
9323 else
9324 additional_includedir="$withval/include"
9325 additional_libdir="$withval/$acl_libdirstem"
9331 LIBPTH=
9332 LTLIBPTH=
9333 INCPTH=
9334 LIBPTH_PREFIX=
9335 rpathdirs=
9336 ltrpathdirs=
9337 names_already_handled=
9338 names_next_round='pth '
9339 while test -n "$names_next_round"; do
9340 names_this_round="$names_next_round"
9341 names_next_round=
9342 for name in $names_this_round; do
9343 already_handled=
9344 for n in $names_already_handled; do
9345 if test "$n" = "$name"; then
9346 already_handled=yes
9347 break
9349 done
9350 if test -z "$already_handled"; then
9351 names_already_handled="$names_already_handled $name"
9352 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9353 eval value=\"\$HAVE_LIB$uppername\"
9354 if test -n "$value"; then
9355 if test "$value" = yes; then
9356 eval value=\"\$LIB$uppername\"
9357 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9358 eval value=\"\$LTLIB$uppername\"
9359 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9360 else
9363 else
9364 found_dir=
9365 found_la=
9366 found_so=
9367 found_a=
9368 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9369 if test -n "$acl_shlibext"; then
9370 shrext=".$acl_shlibext" # typically: shrext=.so
9371 else
9372 shrext=
9374 if test $use_additional = yes; then
9375 dir="$additional_libdir"
9376 if test -n "$acl_shlibext"; then
9377 if test -f "$dir/$libname$shrext"; then
9378 found_dir="$dir"
9379 found_so="$dir/$libname$shrext"
9380 else
9381 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9382 ver=`(cd "$dir" && \
9383 for f in "$libname$shrext".*; do echo "$f"; done \
9384 | sed -e "s,^$libname$shrext\\\\.,," \
9385 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9386 | sed 1q ) 2>/dev/null`
9387 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9388 found_dir="$dir"
9389 found_so="$dir/$libname$shrext.$ver"
9391 else
9392 eval library_names=\"$acl_library_names_spec\"
9393 for f in $library_names; do
9394 if test -f "$dir/$f"; then
9395 found_dir="$dir"
9396 found_so="$dir/$f"
9397 break
9399 done
9403 if test "X$found_dir" = "X"; then
9404 if test -f "$dir/$libname.$acl_libext"; then
9405 found_dir="$dir"
9406 found_a="$dir/$libname.$acl_libext"
9409 if test "X$found_dir" != "X"; then
9410 if test -f "$dir/$libname.la"; then
9411 found_la="$dir/$libname.la"
9415 if test "X$found_dir" = "X"; then
9416 for x in $LDFLAGS $LTLIBPTH; do
9418 acl_save_prefix="$prefix"
9419 prefix="$acl_final_prefix"
9420 acl_save_exec_prefix="$exec_prefix"
9421 exec_prefix="$acl_final_exec_prefix"
9422 eval x=\"$x\"
9423 exec_prefix="$acl_save_exec_prefix"
9424 prefix="$acl_save_prefix"
9426 case "$x" in
9427 -L*)
9428 dir=`echo "X$x" | sed -e 's/^X-L//'`
9429 if test -n "$acl_shlibext"; then
9430 if test -f "$dir/$libname$shrext"; then
9431 found_dir="$dir"
9432 found_so="$dir/$libname$shrext"
9433 else
9434 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9435 ver=`(cd "$dir" && \
9436 for f in "$libname$shrext".*; do echo "$f"; done \
9437 | sed -e "s,^$libname$shrext\\\\.,," \
9438 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9439 | sed 1q ) 2>/dev/null`
9440 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9441 found_dir="$dir"
9442 found_so="$dir/$libname$shrext.$ver"
9444 else
9445 eval library_names=\"$acl_library_names_spec\"
9446 for f in $library_names; do
9447 if test -f "$dir/$f"; then
9448 found_dir="$dir"
9449 found_so="$dir/$f"
9450 break
9452 done
9456 if test "X$found_dir" = "X"; then
9457 if test -f "$dir/$libname.$acl_libext"; then
9458 found_dir="$dir"
9459 found_a="$dir/$libname.$acl_libext"
9462 if test "X$found_dir" != "X"; then
9463 if test -f "$dir/$libname.la"; then
9464 found_la="$dir/$libname.la"
9468 esac
9469 if test "X$found_dir" != "X"; then
9470 break
9472 done
9474 if test "X$found_dir" != "X"; then
9475 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9476 if test "X$found_so" != "X"; then
9477 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9478 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9479 else
9480 haveit=
9481 for x in $ltrpathdirs; do
9482 if test "X$x" = "X$found_dir"; then
9483 haveit=yes
9484 break
9486 done
9487 if test -z "$haveit"; then
9488 ltrpathdirs="$ltrpathdirs $found_dir"
9490 if test "$acl_hardcode_direct" = yes; then
9491 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9492 else
9493 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9494 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9495 haveit=
9496 for x in $rpathdirs; do
9497 if test "X$x" = "X$found_dir"; then
9498 haveit=yes
9499 break
9501 done
9502 if test -z "$haveit"; then
9503 rpathdirs="$rpathdirs $found_dir"
9505 else
9506 haveit=
9507 for x in $LDFLAGS $LIBPTH; do
9509 acl_save_prefix="$prefix"
9510 prefix="$acl_final_prefix"
9511 acl_save_exec_prefix="$exec_prefix"
9512 exec_prefix="$acl_final_exec_prefix"
9513 eval x=\"$x\"
9514 exec_prefix="$acl_save_exec_prefix"
9515 prefix="$acl_save_prefix"
9517 if test "X$x" = "X-L$found_dir"; then
9518 haveit=yes
9519 break
9521 done
9522 if test -z "$haveit"; then
9523 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9525 if test "$acl_hardcode_minus_L" != no; then
9526 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9527 else
9528 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9533 else
9534 if test "X$found_a" != "X"; then
9535 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
9536 else
9537 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9540 additional_includedir=
9541 case "$found_dir" in
9542 */$acl_libdirstem | */$acl_libdirstem/)
9543 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9544 LIBPTH_PREFIX="$basedir"
9545 additional_includedir="$basedir/include"
9547 esac
9548 if test "X$additional_includedir" != "X"; then
9549 if test "X$additional_includedir" != "X/usr/include"; then
9550 haveit=
9551 if test "X$additional_includedir" = "X/usr/local/include"; then
9552 if test -n "$GCC"; then
9553 case $host_os in
9554 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9555 esac
9558 if test -z "$haveit"; then
9559 for x in $CPPFLAGS $INCPTH; do
9561 acl_save_prefix="$prefix"
9562 prefix="$acl_final_prefix"
9563 acl_save_exec_prefix="$exec_prefix"
9564 exec_prefix="$acl_final_exec_prefix"
9565 eval x=\"$x\"
9566 exec_prefix="$acl_save_exec_prefix"
9567 prefix="$acl_save_prefix"
9569 if test "X$x" = "X-I$additional_includedir"; then
9570 haveit=yes
9571 break
9573 done
9574 if test -z "$haveit"; then
9575 if test -d "$additional_includedir"; then
9576 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
9582 if test -n "$found_la"; then
9583 save_libdir="$libdir"
9584 case "$found_la" in
9585 */* | *\\*) . "$found_la" ;;
9586 *) . "./$found_la" ;;
9587 esac
9588 libdir="$save_libdir"
9589 for dep in $dependency_libs; do
9590 case "$dep" in
9591 -L*)
9592 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9593 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9594 haveit=
9595 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9596 if test -n "$GCC"; then
9597 case $host_os in
9598 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9599 esac
9602 if test -z "$haveit"; then
9603 haveit=
9604 for x in $LDFLAGS $LIBPTH; do
9606 acl_save_prefix="$prefix"
9607 prefix="$acl_final_prefix"
9608 acl_save_exec_prefix="$exec_prefix"
9609 exec_prefix="$acl_final_exec_prefix"
9610 eval x=\"$x\"
9611 exec_prefix="$acl_save_exec_prefix"
9612 prefix="$acl_save_prefix"
9614 if test "X$x" = "X-L$additional_libdir"; then
9615 haveit=yes
9616 break
9618 done
9619 if test -z "$haveit"; then
9620 if test -d "$additional_libdir"; then
9621 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
9624 haveit=
9625 for x in $LDFLAGS $LTLIBPTH; do
9627 acl_save_prefix="$prefix"
9628 prefix="$acl_final_prefix"
9629 acl_save_exec_prefix="$exec_prefix"
9630 exec_prefix="$acl_final_exec_prefix"
9631 eval x=\"$x\"
9632 exec_prefix="$acl_save_exec_prefix"
9633 prefix="$acl_save_prefix"
9635 if test "X$x" = "X-L$additional_libdir"; then
9636 haveit=yes
9637 break
9639 done
9640 if test -z "$haveit"; then
9641 if test -d "$additional_libdir"; then
9642 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9648 -R*)
9649 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9650 if test "$enable_rpath" != no; then
9651 haveit=
9652 for x in $rpathdirs; do
9653 if test "X$x" = "X$dir"; then
9654 haveit=yes
9655 break
9657 done
9658 if test -z "$haveit"; then
9659 rpathdirs="$rpathdirs $dir"
9661 haveit=
9662 for x in $ltrpathdirs; do
9663 if test "X$x" = "X$dir"; then
9664 haveit=yes
9665 break
9667 done
9668 if test -z "$haveit"; then
9669 ltrpathdirs="$ltrpathdirs $dir"
9673 -l*)
9674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9676 *.la)
9677 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9680 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
9681 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
9683 esac
9684 done
9686 else
9687 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9688 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9692 done
9693 done
9694 if test "X$rpathdirs" != "X"; then
9695 if test -n "$acl_hardcode_libdir_separator"; then
9696 alldirs=
9697 for found_dir in $rpathdirs; do
9698 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9699 done
9700 acl_save_libdir="$libdir"
9701 libdir="$alldirs"
9702 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9703 libdir="$acl_save_libdir"
9704 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9705 else
9706 for found_dir in $rpathdirs; do
9707 acl_save_libdir="$libdir"
9708 libdir="$found_dir"
9709 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9710 libdir="$acl_save_libdir"
9711 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9712 done
9715 if test "X$ltrpathdirs" != "X"; then
9716 for found_dir in $ltrpathdirs; do
9717 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
9718 done
9721 ac_cv_libpth_libs="$LIBPTH"
9722 ac_cv_libpth_ltlibs="$LTLIBPTH"
9723 ac_cv_libpth_cppflags="$INCPTH"
9724 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
9728 $as_echo "$ac_cv_libpth_libs" >&6; }
9729 LIBPTH="$ac_cv_libpth_libs"
9730 LTLIBPTH="$ac_cv_libpth_ltlibs"
9731 INCPTH="$ac_cv_libpth_cppflags"
9732 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
9734 for element in $INCPTH; do
9735 haveit=
9736 for x in $CPPFLAGS; do
9738 acl_save_prefix="$prefix"
9739 prefix="$acl_final_prefix"
9740 acl_save_exec_prefix="$exec_prefix"
9741 exec_prefix="$acl_final_exec_prefix"
9742 eval x=\"$x\"
9743 exec_prefix="$acl_save_exec_prefix"
9744 prefix="$acl_save_prefix"
9746 if test "X$x" = "X$element"; then
9747 haveit=yes
9748 break
9750 done
9751 if test -z "$haveit"; then
9752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9754 done
9759 HAVE_LIBPTH=yes
9763 gl_have_pth=
9764 gl_save_LIBS="$LIBS"
9765 LIBS="$LIBS -lpth"
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768 #include <pth.h>
9770 main ()
9772 pth_self();
9774 return 0;
9776 _ACEOF
9777 if ac_fn_c_try_link "$LINENO"; then :
9778 gl_have_pth=yes
9780 rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS="$gl_save_LIBS"
9783 if test -n "$gl_have_pth"; then
9784 gl_threads_api=pth
9785 LIBTHREAD="$LIBPTH"
9786 LTLIBTHREAD="$LTLIBPTH"
9787 LIBMULTITHREAD="$LIBTHREAD"
9788 LTLIBMULTITHREAD="$LTLIBTHREAD"
9790 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
9792 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9793 if test $gl_have_weak = yes; then
9795 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
9797 LIBTHREAD=
9798 LTLIBTHREAD=
9801 else
9802 CPPFLAGS="$gl_save_CPPFLAGS"
9805 if test -z "$gl_have_pthread"; then
9806 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
9807 if { case "$host_os" in
9808 mingw*) true;;
9809 *) false;;
9810 esac
9811 }; then
9812 gl_threads_api=win32
9814 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
9821 $as_echo_n "checking for multithread API to use... " >&6; }
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
9823 $as_echo "$gl_threads_api" >&6; }
9844 use_additional=yes
9846 acl_save_prefix="$prefix"
9847 prefix="$acl_final_prefix"
9848 acl_save_exec_prefix="$exec_prefix"
9849 exec_prefix="$acl_final_exec_prefix"
9851 eval additional_includedir=\"$includedir\"
9852 eval additional_libdir=\"$libdir\"
9854 exec_prefix="$acl_save_exec_prefix"
9855 prefix="$acl_save_prefix"
9858 # Check whether --with-libiconv-prefix was given.
9859 if test "${with_libiconv_prefix+set}" = set; then :
9860 withval=$with_libiconv_prefix;
9861 if test "X$withval" = "Xno"; then
9862 use_additional=no
9863 else
9864 if test "X$withval" = "X"; then
9866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9871 eval additional_includedir=\"$includedir\"
9872 eval additional_libdir=\"$libdir\"
9874 exec_prefix="$acl_save_exec_prefix"
9875 prefix="$acl_save_prefix"
9877 else
9878 additional_includedir="$withval/include"
9879 additional_libdir="$withval/$acl_libdirstem"
9885 LIBICONV=
9886 LTLIBICONV=
9887 INCICONV=
9888 LIBICONV_PREFIX=
9889 rpathdirs=
9890 ltrpathdirs=
9891 names_already_handled=
9892 names_next_round='iconv '
9893 while test -n "$names_next_round"; do
9894 names_this_round="$names_next_round"
9895 names_next_round=
9896 for name in $names_this_round; do
9897 already_handled=
9898 for n in $names_already_handled; do
9899 if test "$n" = "$name"; then
9900 already_handled=yes
9901 break
9903 done
9904 if test -z "$already_handled"; then
9905 names_already_handled="$names_already_handled $name"
9906 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9907 eval value=\"\$HAVE_LIB$uppername\"
9908 if test -n "$value"; then
9909 if test "$value" = yes; then
9910 eval value=\"\$LIB$uppername\"
9911 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9912 eval value=\"\$LTLIB$uppername\"
9913 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9914 else
9917 else
9918 found_dir=
9919 found_la=
9920 found_so=
9921 found_a=
9922 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9923 if test -n "$acl_shlibext"; then
9924 shrext=".$acl_shlibext" # typically: shrext=.so
9925 else
9926 shrext=
9928 if test $use_additional = yes; then
9929 dir="$additional_libdir"
9930 if test -n "$acl_shlibext"; then
9931 if test -f "$dir/$libname$shrext"; then
9932 found_dir="$dir"
9933 found_so="$dir/$libname$shrext"
9934 else
9935 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9936 ver=`(cd "$dir" && \
9937 for f in "$libname$shrext".*; do echo "$f"; done \
9938 | sed -e "s,^$libname$shrext\\\\.,," \
9939 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9940 | sed 1q ) 2>/dev/null`
9941 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9942 found_dir="$dir"
9943 found_so="$dir/$libname$shrext.$ver"
9945 else
9946 eval library_names=\"$acl_library_names_spec\"
9947 for f in $library_names; do
9948 if test -f "$dir/$f"; then
9949 found_dir="$dir"
9950 found_so="$dir/$f"
9951 break
9953 done
9957 if test "X$found_dir" = "X"; then
9958 if test -f "$dir/$libname.$acl_libext"; then
9959 found_dir="$dir"
9960 found_a="$dir/$libname.$acl_libext"
9963 if test "X$found_dir" != "X"; then
9964 if test -f "$dir/$libname.la"; then
9965 found_la="$dir/$libname.la"
9969 if test "X$found_dir" = "X"; then
9970 for x in $LDFLAGS $LTLIBICONV; do
9972 acl_save_prefix="$prefix"
9973 prefix="$acl_final_prefix"
9974 acl_save_exec_prefix="$exec_prefix"
9975 exec_prefix="$acl_final_exec_prefix"
9976 eval x=\"$x\"
9977 exec_prefix="$acl_save_exec_prefix"
9978 prefix="$acl_save_prefix"
9980 case "$x" in
9981 -L*)
9982 dir=`echo "X$x" | sed -e 's/^X-L//'`
9983 if test -n "$acl_shlibext"; then
9984 if test -f "$dir/$libname$shrext"; then
9985 found_dir="$dir"
9986 found_so="$dir/$libname$shrext"
9987 else
9988 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9989 ver=`(cd "$dir" && \
9990 for f in "$libname$shrext".*; do echo "$f"; done \
9991 | sed -e "s,^$libname$shrext\\\\.,," \
9992 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9993 | sed 1q ) 2>/dev/null`
9994 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9995 found_dir="$dir"
9996 found_so="$dir/$libname$shrext.$ver"
9998 else
9999 eval library_names=\"$acl_library_names_spec\"
10000 for f in $library_names; do
10001 if test -f "$dir/$f"; then
10002 found_dir="$dir"
10003 found_so="$dir/$f"
10004 break
10006 done
10010 if test "X$found_dir" = "X"; then
10011 if test -f "$dir/$libname.$acl_libext"; then
10012 found_dir="$dir"
10013 found_a="$dir/$libname.$acl_libext"
10016 if test "X$found_dir" != "X"; then
10017 if test -f "$dir/$libname.la"; then
10018 found_la="$dir/$libname.la"
10022 esac
10023 if test "X$found_dir" != "X"; then
10024 break
10026 done
10028 if test "X$found_dir" != "X"; then
10029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10030 if test "X$found_so" != "X"; then
10031 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10032 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10033 else
10034 haveit=
10035 for x in $ltrpathdirs; do
10036 if test "X$x" = "X$found_dir"; then
10037 haveit=yes
10038 break
10040 done
10041 if test -z "$haveit"; then
10042 ltrpathdirs="$ltrpathdirs $found_dir"
10044 if test "$acl_hardcode_direct" = yes; then
10045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10046 else
10047 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10048 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10049 haveit=
10050 for x in $rpathdirs; do
10051 if test "X$x" = "X$found_dir"; then
10052 haveit=yes
10053 break
10055 done
10056 if test -z "$haveit"; then
10057 rpathdirs="$rpathdirs $found_dir"
10059 else
10060 haveit=
10061 for x in $LDFLAGS $LIBICONV; do
10063 acl_save_prefix="$prefix"
10064 prefix="$acl_final_prefix"
10065 acl_save_exec_prefix="$exec_prefix"
10066 exec_prefix="$acl_final_exec_prefix"
10067 eval x=\"$x\"
10068 exec_prefix="$acl_save_exec_prefix"
10069 prefix="$acl_save_prefix"
10071 if test "X$x" = "X-L$found_dir"; then
10072 haveit=yes
10073 break
10075 done
10076 if test -z "$haveit"; then
10077 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10079 if test "$acl_hardcode_minus_L" != no; then
10080 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10081 else
10082 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10087 else
10088 if test "X$found_a" != "X"; then
10089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10090 else
10091 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10094 additional_includedir=
10095 case "$found_dir" in
10096 */$acl_libdirstem | */$acl_libdirstem/)
10097 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10098 LIBICONV_PREFIX="$basedir"
10099 additional_includedir="$basedir/include"
10101 esac
10102 if test "X$additional_includedir" != "X"; then
10103 if test "X$additional_includedir" != "X/usr/include"; then
10104 haveit=
10105 if test "X$additional_includedir" = "X/usr/local/include"; then
10106 if test -n "$GCC"; then
10107 case $host_os in
10108 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10109 esac
10112 if test -z "$haveit"; then
10113 for x in $CPPFLAGS $INCICONV; do
10115 acl_save_prefix="$prefix"
10116 prefix="$acl_final_prefix"
10117 acl_save_exec_prefix="$exec_prefix"
10118 exec_prefix="$acl_final_exec_prefix"
10119 eval x=\"$x\"
10120 exec_prefix="$acl_save_exec_prefix"
10121 prefix="$acl_save_prefix"
10123 if test "X$x" = "X-I$additional_includedir"; then
10124 haveit=yes
10125 break
10127 done
10128 if test -z "$haveit"; then
10129 if test -d "$additional_includedir"; then
10130 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10136 if test -n "$found_la"; then
10137 save_libdir="$libdir"
10138 case "$found_la" in
10139 */* | *\\*) . "$found_la" ;;
10140 *) . "./$found_la" ;;
10141 esac
10142 libdir="$save_libdir"
10143 for dep in $dependency_libs; do
10144 case "$dep" in
10145 -L*)
10146 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10147 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10148 haveit=
10149 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10150 if test -n "$GCC"; then
10151 case $host_os in
10152 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10153 esac
10156 if test -z "$haveit"; then
10157 haveit=
10158 for x in $LDFLAGS $LIBICONV; do
10160 acl_save_prefix="$prefix"
10161 prefix="$acl_final_prefix"
10162 acl_save_exec_prefix="$exec_prefix"
10163 exec_prefix="$acl_final_exec_prefix"
10164 eval x=\"$x\"
10165 exec_prefix="$acl_save_exec_prefix"
10166 prefix="$acl_save_prefix"
10168 if test "X$x" = "X-L$additional_libdir"; then
10169 haveit=yes
10170 break
10172 done
10173 if test -z "$haveit"; then
10174 if test -d "$additional_libdir"; then
10175 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10178 haveit=
10179 for x in $LDFLAGS $LTLIBICONV; do
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 acl_save_exec_prefix="$exec_prefix"
10184 exec_prefix="$acl_final_exec_prefix"
10185 eval x=\"$x\"
10186 exec_prefix="$acl_save_exec_prefix"
10187 prefix="$acl_save_prefix"
10189 if test "X$x" = "X-L$additional_libdir"; then
10190 haveit=yes
10191 break
10193 done
10194 if test -z "$haveit"; then
10195 if test -d "$additional_libdir"; then
10196 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10202 -R*)
10203 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10204 if test "$enable_rpath" != no; then
10205 haveit=
10206 for x in $rpathdirs; do
10207 if test "X$x" = "X$dir"; then
10208 haveit=yes
10209 break
10211 done
10212 if test -z "$haveit"; then
10213 rpathdirs="$rpathdirs $dir"
10215 haveit=
10216 for x in $ltrpathdirs; do
10217 if test "X$x" = "X$dir"; then
10218 haveit=yes
10219 break
10221 done
10222 if test -z "$haveit"; then
10223 ltrpathdirs="$ltrpathdirs $dir"
10227 -l*)
10228 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10230 *.la)
10231 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10234 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10235 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10237 esac
10238 done
10240 else
10241 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10242 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10246 done
10247 done
10248 if test "X$rpathdirs" != "X"; then
10249 if test -n "$acl_hardcode_libdir_separator"; then
10250 alldirs=
10251 for found_dir in $rpathdirs; do
10252 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10253 done
10254 acl_save_libdir="$libdir"
10255 libdir="$alldirs"
10256 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10257 libdir="$acl_save_libdir"
10258 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10259 else
10260 for found_dir in $rpathdirs; do
10261 acl_save_libdir="$libdir"
10262 libdir="$found_dir"
10263 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10264 libdir="$acl_save_libdir"
10265 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10266 done
10269 if test "X$ltrpathdirs" != "X"; then
10270 for found_dir in $ltrpathdirs; do
10271 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10272 done
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
10283 main ()
10287 return 0;
10289 _ACEOF
10290 if ac_fn_c_try_link "$LINENO"; then :
10292 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
10295 rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10298 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
10299 do :
10300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10301 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10302 eval as_val=\$$as_ac_Header
10303 if test "x$as_val" = x""yes; then :
10304 cat >>confdefs.h <<_ACEOF
10305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10306 _ACEOF
10310 done
10312 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
10313 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
10314 argz_next __fsetlocking
10315 do :
10316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10318 eval as_val=\$$as_ac_var
10319 if test "x$as_val" = x""yes; then :
10320 cat >>confdefs.h <<_ACEOF
10321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10322 _ACEOF
10325 done
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
10330 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10331 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336 #include <stdio.h>
10338 main ()
10341 #ifndef feof_unlocked
10342 char *p = (char *) feof_unlocked;
10343 #endif
10346 return 0;
10348 _ACEOF
10349 if ac_fn_c_try_compile "$LINENO"; then :
10350 ac_cv_have_decl_feof_unlocked=yes
10351 else
10352 ac_cv_have_decl_feof_unlocked=no
10354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
10357 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10358 if test $ac_cv_have_decl_feof_unlocked = yes; then
10359 gt_value=1
10360 else
10361 gt_value=0
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10366 _ACEOF
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
10371 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10372 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377 #include <stdio.h>
10379 main ()
10382 #ifndef fgets_unlocked
10383 char *p = (char *) fgets_unlocked;
10384 #endif
10387 return 0;
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"; then :
10391 ac_cv_have_decl_fgets_unlocked=yes
10392 else
10393 ac_cv_have_decl_fgets_unlocked=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
10398 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10399 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10400 gt_value=1
10401 else
10402 gt_value=0
10405 cat >>confdefs.h <<_ACEOF
10406 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10407 _ACEOF
10416 am_save_CPPFLAGS="$CPPFLAGS"
10418 for element in $INCICONV; do
10419 haveit=
10420 for x in $CPPFLAGS; do
10422 acl_save_prefix="$prefix"
10423 prefix="$acl_final_prefix"
10424 acl_save_exec_prefix="$exec_prefix"
10425 exec_prefix="$acl_final_exec_prefix"
10426 eval x=\"$x\"
10427 exec_prefix="$acl_save_exec_prefix"
10428 prefix="$acl_save_prefix"
10430 if test "X$x" = "X$element"; then
10431 haveit=yes
10432 break
10434 done
10435 if test -z "$haveit"; then
10436 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10438 done
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10442 $as_echo_n "checking for iconv... " >&6; }
10443 if test "${am_cv_func_iconv+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10447 am_cv_func_iconv="no, consider installing GNU libiconv"
10448 am_cv_lib_iconv=no
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 #include <stdlib.h>
10452 #include <iconv.h>
10454 main ()
10456 iconv_t cd = iconv_open("","");
10457 iconv(cd,NULL,NULL,NULL,NULL);
10458 iconv_close(cd);
10460 return 0;
10462 _ACEOF
10463 if ac_fn_c_try_link "$LINENO"; then :
10464 am_cv_func_iconv=yes
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 if test "$am_cv_func_iconv" != yes; then
10469 am_save_LIBS="$LIBS"
10470 LIBS="$LIBS $LIBICONV"
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 #include <stdlib.h>
10474 #include <iconv.h>
10476 main ()
10478 iconv_t cd = iconv_open("","");
10479 iconv(cd,NULL,NULL,NULL,NULL);
10480 iconv_close(cd);
10482 return 0;
10484 _ACEOF
10485 if ac_fn_c_try_link "$LINENO"; then :
10486 am_cv_lib_iconv=yes
10487 am_cv_func_iconv=yes
10489 rm -f core conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LIBS="$am_save_LIBS"
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10496 $as_echo "$am_cv_func_iconv" >&6; }
10497 if test "$am_cv_func_iconv" = yes; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10499 $as_echo_n "checking for working iconv... " >&6; }
10500 if test "${am_cv_func_iconv_works+set}" = set; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10504 am_save_LIBS="$LIBS"
10505 if test $am_cv_lib_iconv = yes; then
10506 LIBS="$LIBS $LIBICONV"
10508 if test "$cross_compiling" = yes; then :
10509 case "$host_os" in
10510 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10511 *) am_cv_func_iconv_works="guessing yes" ;;
10512 esac
10513 else
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10517 #include <iconv.h>
10518 #include <string.h>
10519 int main ()
10521 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10522 returns. */
10524 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10525 if (cd_utf8_to_88591 != (iconv_t)(-1))
10527 static const char input[] = "\342\202\254"; /* EURO SIGN */
10528 char buf[10];
10529 const char *inptr = input;
10530 size_t inbytesleft = strlen (input);
10531 char *outptr = buf;
10532 size_t outbytesleft = sizeof (buf);
10533 size_t res = iconv (cd_utf8_to_88591,
10534 (char **) &inptr, &inbytesleft,
10535 &outptr, &outbytesleft);
10536 if (res == 0)
10537 return 1;
10540 #if 0 /* This bug could be worked around by the caller. */
10541 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10543 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10544 if (cd_88591_to_utf8 != (iconv_t)(-1))
10546 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10547 char buf[50];
10548 const char *inptr = input;
10549 size_t inbytesleft = strlen (input);
10550 char *outptr = buf;
10551 size_t outbytesleft = sizeof (buf);
10552 size_t res = iconv (cd_88591_to_utf8,
10553 (char **) &inptr, &inbytesleft,
10554 &outptr, &outbytesleft);
10555 if ((int)res > 0)
10556 return 1;
10559 #endif
10560 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10561 provided. */
10562 if (/* Try standardized names. */
10563 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10564 /* Try IRIX, OSF/1 names. */
10565 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10566 /* Try AIX names. */
10567 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10568 /* Try HP-UX names. */
10569 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10570 return 1;
10571 return 0;
10573 _ACEOF
10574 if ac_fn_c_try_run "$LINENO"; then :
10575 am_cv_func_iconv_works=yes
10576 else
10577 am_cv_func_iconv_works=no
10579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10580 conftest.$ac_objext conftest.beam conftest.$ac_ext
10583 LIBS="$am_save_LIBS"
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10587 $as_echo "$am_cv_func_iconv_works" >&6; }
10588 case "$am_cv_func_iconv_works" in
10589 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10590 *) am_func_iconv=yes ;;
10591 esac
10592 else
10593 am_func_iconv=no am_cv_lib_iconv=no
10595 if test "$am_func_iconv" = yes; then
10597 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10600 if test "$am_cv_lib_iconv" = yes; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10602 $as_echo_n "checking how to link with libiconv... " >&6; }
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10604 $as_echo "$LIBICONV" >&6; }
10605 else
10606 CPPFLAGS="$am_save_CPPFLAGS"
10607 LIBICONV=
10608 LTLIBICONV=
10613 if test "$am_cv_func_iconv" = yes; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10615 $as_echo_n "checking for iconv declaration... " >&6; }
10616 if test "${am_cv_proto_iconv+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 #include <stdlib.h>
10624 #include <iconv.h>
10625 extern
10626 #ifdef __cplusplus
10628 #endif
10629 #if defined(__STDC__) || defined(__cplusplus)
10630 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10631 #else
10632 size_t iconv();
10633 #endif
10636 main ()
10640 return 0;
10642 _ACEOF
10643 if ac_fn_c_try_compile "$LINENO"; then :
10644 am_cv_proto_iconv_arg1=""
10645 else
10646 am_cv_proto_iconv_arg1="const"
10648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10652 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10654 }$am_cv_proto_iconv" >&5
10655 $as_echo "${ac_t:-
10656 }$am_cv_proto_iconv" >&6; }
10658 cat >>confdefs.h <<_ACEOF
10659 #define ICONV_CONST $am_cv_proto_iconv_arg1
10660 _ACEOF
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
10666 $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
10667 if test "${gt_cv_nl_locale_name+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <langinfo.h>
10673 #include <locale.h>
10675 main ()
10677 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
10678 return !cs;
10681 return 0;
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 gt_cv_nl_locale_name=yes
10686 else
10687 gt_cv_nl_locale_name=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
10694 $as_echo "$gt_cv_nl_locale_name" >&6; }
10695 if test $gt_cv_nl_locale_name = yes; then
10697 $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
10701 for ac_prog in bison
10703 # Extract the first word of "$ac_prog", so it can be a program name with args.
10704 set dummy $ac_prog; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 if test -n "$INTLBISON"; then
10711 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10712 else
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720 ac_cv_prog_INTLBISON="$ac_prog"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10724 done
10725 done
10726 IFS=$as_save_IFS
10730 INTLBISON=$ac_cv_prog_INTLBISON
10731 if test -n "$INTLBISON"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
10733 $as_echo "$INTLBISON" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10740 test -n "$INTLBISON" && break
10741 done
10743 if test -z "$INTLBISON"; then
10744 ac_verc_fail=yes
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
10747 $as_echo_n "checking version of bison... " >&6; }
10748 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10749 case $ac_prog_version in
10750 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10751 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10752 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10753 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10754 esac
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
10756 $as_echo "$ac_prog_version" >&6; }
10758 if test $ac_verc_fail = yes; then
10759 INTLBISON=:
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10764 $as_echo_n "checking for long long int... " >&6; }
10765 if test "${ac_cv_type_long_long_int+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10771 /* Test preprocessor. */
10772 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10773 error in preprocessor;
10774 #endif
10775 #if ! (18446744073709551615ULL <= -1ull)
10776 error in preprocessor;
10777 #endif
10778 /* Test literals. */
10779 long long int ll = 9223372036854775807ll;
10780 long long int nll = -9223372036854775807LL;
10781 unsigned long long int ull = 18446744073709551615ULL;
10782 /* Test constant expressions. */
10783 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10784 ? 1 : -1)];
10785 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10786 ? 1 : -1)];
10787 int i = 63;
10789 main ()
10791 /* Test availability of runtime routines for shift and division. */
10792 long long int llmax = 9223372036854775807ll;
10793 unsigned long long int ullmax = 18446744073709551615ull;
10794 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10795 | (llmax / ll) | (llmax % ll)
10796 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10797 | (ullmax / ull) | (ullmax % ull));
10799 return 0;
10802 _ACEOF
10803 if ac_fn_c_try_link "$LINENO"; then :
10804 if test "$cross_compiling" = yes; then :
10805 ac_cv_type_long_long_int=yes
10806 else
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809 #include <limits.h>
10810 #ifndef LLONG_MAX
10811 # define HALF \
10812 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10813 # define LLONG_MAX (HALF - 1 + HALF)
10814 #endif
10816 main ()
10818 long long int n = 1;
10819 int i;
10820 for (i = 0; ; i++)
10822 long long int m = n << i;
10823 if (m >> i != n)
10824 return 1;
10825 if (LLONG_MAX / 2 < m)
10826 break;
10828 return 0;
10830 return 0;
10832 _ACEOF
10833 if ac_fn_c_try_run "$LINENO"; then :
10834 ac_cv_type_long_long_int=yes
10835 else
10836 ac_cv_type_long_long_int=no
10838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10839 conftest.$ac_objext conftest.beam conftest.$ac_ext
10842 else
10843 ac_cv_type_long_long_int=no
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10849 $as_echo "$ac_cv_type_long_long_int" >&6; }
10850 if test $ac_cv_type_long_long_int = yes; then
10852 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10858 $as_echo_n "checking for wchar_t... " >&6; }
10859 if test "${gt_cv_c_wchar_t+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #include <stddef.h>
10865 wchar_t foo = (wchar_t)'\0';
10867 main ()
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_compile "$LINENO"; then :
10875 gt_cv_c_wchar_t=yes
10876 else
10877 gt_cv_c_wchar_t=no
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10882 $as_echo "$gt_cv_c_wchar_t" >&6; }
10883 if test $gt_cv_c_wchar_t = yes; then
10885 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10891 $as_echo_n "checking for wint_t... " >&6; }
10892 if test "${gt_cv_c_wint_t+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10898 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10899 <wchar.h>.
10900 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10901 before <wchar.h>. */
10902 #include <stddef.h>
10903 #include <stdio.h>
10904 #include <time.h>
10905 #include <wchar.h>
10906 wint_t foo = (wchar_t)'\0';
10908 main ()
10912 return 0;
10914 _ACEOF
10915 if ac_fn_c_try_compile "$LINENO"; then :
10916 gt_cv_c_wint_t=yes
10917 else
10918 gt_cv_c_wint_t=no
10920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10923 $as_echo "$gt_cv_c_wint_t" >&6; }
10924 if test $gt_cv_c_wint_t = yes; then
10926 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
10934 $as_echo_n "checking for intmax_t... " >&6; }
10935 if test "${gt_cv_c_intmax_t+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10941 #include <stddef.h>
10942 #include <stdlib.h>
10943 #if HAVE_STDINT_H_WITH_UINTMAX
10944 #include <stdint.h>
10945 #endif
10946 #if HAVE_INTTYPES_H_WITH_UINTMAX
10947 #include <inttypes.h>
10948 #endif
10951 main ()
10953 intmax_t x = -1;
10954 return !x;
10956 return 0;
10958 _ACEOF
10959 if ac_fn_c_try_compile "$LINENO"; then :
10960 gt_cv_c_intmax_t=yes
10961 else
10962 gt_cv_c_intmax_t=no
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
10967 $as_echo "$gt_cv_c_intmax_t" >&6; }
10968 if test $gt_cv_c_intmax_t = yes; then
10970 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
10977 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
10978 if test "${gt_cv_func_printf_posix+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10982 if test "$cross_compiling" = yes; then :
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
10988 notposix
10989 #endif
10991 _ACEOF
10992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10993 $EGREP "notposix" >/dev/null 2>&1; then :
10994 gt_cv_func_printf_posix="guessing no"
10995 else
10996 gt_cv_func_printf_posix="guessing yes"
10998 rm -f conftest*
11001 else
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11005 #include <stdio.h>
11006 #include <string.h>
11007 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11008 dollar expansion (possibly an autoconf bug). */
11009 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11010 static char buf[100];
11011 int main ()
11013 sprintf (buf, format, 33, 55);
11014 return (strcmp (buf, "55 33") != 0);
11016 _ACEOF
11017 if ac_fn_c_try_run "$LINENO"; then :
11018 gt_cv_func_printf_posix=yes
11019 else
11020 gt_cv_func_printf_posix=no
11022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11023 conftest.$ac_objext conftest.beam conftest.$ac_ext
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11029 $as_echo "$gt_cv_func_printf_posix" >&6; }
11030 case $gt_cv_func_printf_posix in
11031 *yes)
11033 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
11036 esac
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11040 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11041 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11047 #include <features.h>
11048 #ifdef __GNU_LIBRARY__
11049 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11050 Lucky GNU user
11051 #endif
11052 #endif
11054 _ACEOF
11055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11056 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11057 ac_cv_gnu_library_2_1=yes
11058 else
11059 ac_cv_gnu_library_2_1=no
11061 rm -f conftest*
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11067 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11069 GLIBC21="$ac_cv_gnu_library_2_1"
11073 for ac_header in stdint.h
11074 do :
11075 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11076 if test "x$ac_cv_header_stdint_h" = x""yes; then :
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_STDINT_H 1
11079 _ACEOF
11083 done
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11086 $as_echo_n "checking for SIZE_MAX... " >&6; }
11087 if test "${gl_cv_size_max+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11091 gl_cv_size_max=
11092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11095 #include <limits.h>
11096 #if HAVE_STDINT_H
11097 #include <stdint.h>
11098 #endif
11099 #ifdef SIZE_MAX
11100 Found it
11101 #endif
11103 _ACEOF
11104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11105 $EGREP "Found it" >/dev/null 2>&1; then :
11106 gl_cv_size_max=yes
11108 rm -f conftest*
11110 if test -z "$gl_cv_size_max"; then
11111 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11112 #include <limits.h>"; then :
11114 else
11115 size_t_bits_minus_1=
11118 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
11120 else
11121 fits_in_uint=
11124 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
11125 if test $fits_in_uint = 1; then
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11128 #include <stddef.h>
11129 extern size_t foo;
11130 extern unsigned long foo;
11133 main ()
11137 return 0;
11139 _ACEOF
11140 if ac_fn_c_try_compile "$LINENO"; then :
11141 fits_in_uint=0
11143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11145 if test $fits_in_uint = 1; then
11146 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
11147 else
11148 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
11150 else
11151 gl_cv_size_max='((size_t)~(size_t)0)'
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
11158 $as_echo "$gl_cv_size_max" >&6; }
11159 if test "$gl_cv_size_max" != yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define SIZE_MAX $gl_cv_size_max
11163 _ACEOF
11170 for ac_header in stdint.h
11171 do :
11172 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11173 if test "x$ac_cv_header_stdint_h" = x""yes; then :
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_STDINT_H 1
11176 _ACEOF
11180 done
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11185 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11186 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 gt_save_LIBS="$LIBS"
11190 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 #include <CoreFoundation/CFPreferences.h>
11195 main ()
11197 CFPreferencesCopyAppValue(NULL, NULL)
11199 return 0;
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 gt_cv_func_CFPreferencesCopyAppValue=yes
11204 else
11205 gt_cv_func_CFPreferencesCopyAppValue=no
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LIBS="$gt_save_LIBS"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11212 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11213 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11215 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11219 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11220 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 gt_save_LIBS="$LIBS"
11224 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 #include <CoreFoundation/CFLocale.h>
11229 main ()
11231 CFLocaleCopyCurrent();
11233 return 0;
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 gt_cv_func_CFLocaleCopyCurrent=yes
11238 else
11239 gt_cv_func_CFLocaleCopyCurrent=no
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 LIBS="$gt_save_LIBS"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11246 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11247 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11249 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11252 INTL_MACOSX_LIBS=
11253 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11254 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11263 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11264 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11266 else
11268 $as_echo "#define ptrdiff_t long" >>confdefs.h
11273 for ac_header in stddef.h stdlib.h string.h
11274 do :
11275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11277 eval as_val=\$$as_ac_Header
11278 if test "x$as_val" = x""yes; then :
11279 cat >>confdefs.h <<_ACEOF
11280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11281 _ACEOF
11285 done
11287 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
11288 do :
11289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11290 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11291 eval as_val=\$$as_ac_var
11292 if test "x$as_val" = x""yes; then :
11293 cat >>confdefs.h <<_ACEOF
11294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 _ACEOF
11298 done
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
11303 $as_echo_n "checking whether _snprintf is declared... " >&6; }
11304 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309 #include <stdio.h>
11311 main ()
11314 #ifndef _snprintf
11315 char *p = (char *) _snprintf;
11316 #endif
11319 return 0;
11321 _ACEOF
11322 if ac_fn_c_try_compile "$LINENO"; then :
11323 ac_cv_have_decl__snprintf=yes
11324 else
11325 ac_cv_have_decl__snprintf=no
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
11330 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
11331 if test $ac_cv_have_decl__snprintf = yes; then
11332 gt_value=1
11333 else
11334 gt_value=0
11337 cat >>confdefs.h <<_ACEOF
11338 #define HAVE_DECL__SNPRINTF $gt_value
11339 _ACEOF
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
11344 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
11345 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350 #include <stdio.h>
11352 main ()
11355 #ifndef _snwprintf
11356 char *p = (char *) _snwprintf;
11357 #endif
11360 return 0;
11362 _ACEOF
11363 if ac_fn_c_try_compile "$LINENO"; then :
11364 ac_cv_have_decl__snwprintf=yes
11365 else
11366 ac_cv_have_decl__snwprintf=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
11371 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
11372 if test $ac_cv_have_decl__snwprintf = yes; then
11373 gt_value=1
11374 else
11375 gt_value=0
11378 cat >>confdefs.h <<_ACEOF
11379 #define HAVE_DECL__SNWPRINTF $gt_value
11380 _ACEOF
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
11386 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
11387 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392 #include <stdio.h>
11394 main ()
11397 #ifndef getc_unlocked
11398 char *p = (char *) getc_unlocked;
11399 #endif
11402 return 0;
11404 _ACEOF
11405 if ac_fn_c_try_compile "$LINENO"; then :
11406 ac_cv_have_decl_getc_unlocked=yes
11407 else
11408 ac_cv_have_decl_getc_unlocked=no
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
11413 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11414 if test $ac_cv_have_decl_getc_unlocked = yes; then
11415 gt_value=1
11416 else
11417 gt_value=0
11420 cat >>confdefs.h <<_ACEOF
11421 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11422 _ACEOF
11426 case $gt_cv_func_printf_posix in
11427 *yes) HAVE_POSIX_PRINTF=1 ;;
11428 *) HAVE_POSIX_PRINTF=0 ;;
11429 esac
11431 if test "$ac_cv_func_asprintf" = yes; then
11432 HAVE_ASPRINTF=1
11433 else
11434 HAVE_ASPRINTF=0
11437 if test "$ac_cv_func_snprintf" = yes; then
11438 HAVE_SNPRINTF=1
11439 else
11440 HAVE_SNPRINTF=0
11443 if test "$ac_cv_func_wprintf" = yes; then
11444 HAVE_WPRINTF=1
11445 else
11446 HAVE_WPRINTF=0
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11452 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11453 if test "${am_cv_langinfo_codeset+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458 #include <langinfo.h>
11460 main ()
11462 char* cs = nl_langinfo(CODESET); return !cs;
11464 return 0;
11466 _ACEOF
11467 if ac_fn_c_try_link "$LINENO"; then :
11468 am_cv_langinfo_codeset=yes
11469 else
11470 am_cv_langinfo_codeset=no
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11477 $as_echo "$am_cv_langinfo_codeset" >&6; }
11478 if test $am_cv_langinfo_codeset = yes; then
11480 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11486 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11487 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492 #include <locale.h>
11494 main ()
11496 return LC_MESSAGES
11498 return 0;
11500 _ACEOF
11501 if ac_fn_c_try_link "$LINENO"; then :
11502 gt_cv_val_LC_MESSAGES=yes
11503 else
11504 gt_cv_val_LC_MESSAGES=no
11506 rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
11510 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
11511 if test $gt_cv_val_LC_MESSAGES = yes; then
11513 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11518 if test "$enable_shared" = yes; then
11519 case "$host_os" in
11520 mingw* | cygwin*) is_woe32dll=yes ;;
11521 *) is_woe32dll=no ;;
11522 esac
11523 else
11524 is_woe32dll=no
11526 WOE32DLL=$is_woe32dll
11529 case "$host_os" in
11530 mingw* | cygwin*) is_woe32=yes ;;
11531 *) is_woe32=no ;;
11532 esac
11533 WOE32=$is_woe32
11535 if test $WOE32 = yes; then
11536 if test -n "$ac_tool_prefix"; then
11537 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11538 set dummy ${ac_tool_prefix}windres; ac_word=$2
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540 $as_echo_n "checking for $ac_word... " >&6; }
11541 if test "${ac_cv_prog_WINDRES+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 if test -n "$WINDRES"; then
11545 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11546 else
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
11555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 break 2
11558 done
11559 done
11560 IFS=$as_save_IFS
11564 WINDRES=$ac_cv_prog_WINDRES
11565 if test -n "$WINDRES"; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11567 $as_echo "$WINDRES" >&6; }
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11575 if test -z "$ac_cv_prog_WINDRES"; then
11576 ac_ct_WINDRES=$WINDRES
11577 # Extract the first word of "windres", so it can be a program name with args.
11578 set dummy windres; ac_word=$2
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580 $as_echo_n "checking for $ac_word... " >&6; }
11581 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 if test -n "$ac_ct_WINDRES"; then
11585 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
11586 else
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594 ac_cv_prog_ac_ct_WINDRES="windres"
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11598 done
11599 done
11600 IFS=$as_save_IFS
11604 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
11605 if test -n "$ac_ct_WINDRES"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
11607 $as_echo "$ac_ct_WINDRES" >&6; }
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11613 if test "x$ac_ct_WINDRES" = x; then
11614 WINDRES=""
11615 else
11616 case $cross_compiling:$ac_tool_warned in
11617 yes:)
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11620 ac_tool_warned=yes ;;
11621 esac
11622 WINDRES=$ac_ct_WINDRES
11624 else
11625 WINDRES="$ac_cv_prog_WINDRES"
11630 case "$host_os" in
11631 hpux*) LTLIBC="" ;;
11632 *) LTLIBC="-lc" ;;
11633 esac
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11661 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11662 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 gt_save_LIBS="$LIBS"
11666 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 #include <CoreFoundation/CFPreferences.h>
11671 main ()
11673 CFPreferencesCopyAppValue(NULL, NULL)
11675 return 0;
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 gt_cv_func_CFPreferencesCopyAppValue=yes
11680 else
11681 gt_cv_func_CFPreferencesCopyAppValue=no
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS="$gt_save_LIBS"
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11688 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11689 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11691 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11695 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11696 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 gt_save_LIBS="$LIBS"
11700 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 #include <CoreFoundation/CFLocale.h>
11705 main ()
11707 CFLocaleCopyCurrent();
11709 return 0;
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"; then :
11713 gt_cv_func_CFLocaleCopyCurrent=yes
11714 else
11715 gt_cv_func_CFLocaleCopyCurrent=no
11717 rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11719 LIBS="$gt_save_LIBS"
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11722 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11723 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11725 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11728 INTL_MACOSX_LIBS=
11729 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11730 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11738 BUILD_INCLUDED_LIBINTL=no
11739 USE_INCLUDED_LIBINTL=no
11741 LIBINTL=
11742 LTLIBINTL=
11743 POSUB=
11745 case " $gt_needs " in
11746 *" need-formatstring-macros "*) gt_api_version=3 ;;
11747 *" need-ngettext "*) gt_api_version=2 ;;
11748 *) gt_api_version=1 ;;
11749 esac
11750 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11751 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11753 if test "$USE_NLS" = "yes"; then
11754 gt_use_preinstalled_gnugettext=no
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
11757 $as_echo_n "checking whether included gettext is requested... " >&6; }
11759 # Check whether --with-included-gettext was given.
11760 if test "${with_included_gettext+set}" = set; then :
11761 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11762 else
11763 nls_cv_force_use_gnu_gettext=no
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
11767 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
11769 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11770 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11773 if test $gt_api_version -ge 3; then
11774 gt_revision_test_code='
11775 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11776 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11777 #endif
11778 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11780 else
11781 gt_revision_test_code=
11783 if test $gt_api_version -ge 2; then
11784 gt_expression_test_code=' + * ngettext ("", "", 0)'
11785 else
11786 gt_expression_test_code=
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11790 $as_echo_n "checking for GNU gettext in libc... " >&6; }
11791 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 #include <libintl.h>
11797 $gt_revision_test_code
11798 extern int _nl_msg_cat_cntr;
11799 extern int *_nl_domain_bindings;
11801 main ()
11803 bindtextdomain ("", "");
11804 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11806 return 0;
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 eval "$gt_func_gnugettext_libc=yes"
11811 else
11812 eval "$gt_func_gnugettext_libc=no"
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11817 eval ac_res=\$$gt_func_gnugettext_libc
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11819 $as_echo "$ac_res" >&6; }
11821 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11827 use_additional=yes
11829 acl_save_prefix="$prefix"
11830 prefix="$acl_final_prefix"
11831 acl_save_exec_prefix="$exec_prefix"
11832 exec_prefix="$acl_final_exec_prefix"
11834 eval additional_includedir=\"$includedir\"
11835 eval additional_libdir=\"$libdir\"
11837 exec_prefix="$acl_save_exec_prefix"
11838 prefix="$acl_save_prefix"
11841 # Check whether --with-libintl-prefix was given.
11842 if test "${with_libintl_prefix+set}" = set; then :
11843 withval=$with_libintl_prefix;
11844 if test "X$withval" = "Xno"; then
11845 use_additional=no
11846 else
11847 if test "X$withval" = "X"; then
11849 acl_save_prefix="$prefix"
11850 prefix="$acl_final_prefix"
11851 acl_save_exec_prefix="$exec_prefix"
11852 exec_prefix="$acl_final_exec_prefix"
11854 eval additional_includedir=\"$includedir\"
11855 eval additional_libdir=\"$libdir\"
11857 exec_prefix="$acl_save_exec_prefix"
11858 prefix="$acl_save_prefix"
11860 else
11861 additional_includedir="$withval/include"
11862 additional_libdir="$withval/$acl_libdirstem"
11868 LIBINTL=
11869 LTLIBINTL=
11870 INCINTL=
11871 LIBINTL_PREFIX=
11872 rpathdirs=
11873 ltrpathdirs=
11874 names_already_handled=
11875 names_next_round='intl '
11876 while test -n "$names_next_round"; do
11877 names_this_round="$names_next_round"
11878 names_next_round=
11879 for name in $names_this_round; do
11880 already_handled=
11881 for n in $names_already_handled; do
11882 if test "$n" = "$name"; then
11883 already_handled=yes
11884 break
11886 done
11887 if test -z "$already_handled"; then
11888 names_already_handled="$names_already_handled $name"
11889 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11890 eval value=\"\$HAVE_LIB$uppername\"
11891 if test -n "$value"; then
11892 if test "$value" = yes; then
11893 eval value=\"\$LIB$uppername\"
11894 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11895 eval value=\"\$LTLIB$uppername\"
11896 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11897 else
11900 else
11901 found_dir=
11902 found_la=
11903 found_so=
11904 found_a=
11905 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11906 if test -n "$acl_shlibext"; then
11907 shrext=".$acl_shlibext" # typically: shrext=.so
11908 else
11909 shrext=
11911 if test $use_additional = yes; then
11912 dir="$additional_libdir"
11913 if test -n "$acl_shlibext"; then
11914 if test -f "$dir/$libname$shrext"; then
11915 found_dir="$dir"
11916 found_so="$dir/$libname$shrext"
11917 else
11918 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11919 ver=`(cd "$dir" && \
11920 for f in "$libname$shrext".*; do echo "$f"; done \
11921 | sed -e "s,^$libname$shrext\\\\.,," \
11922 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11923 | sed 1q ) 2>/dev/null`
11924 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11925 found_dir="$dir"
11926 found_so="$dir/$libname$shrext.$ver"
11928 else
11929 eval library_names=\"$acl_library_names_spec\"
11930 for f in $library_names; do
11931 if test -f "$dir/$f"; then
11932 found_dir="$dir"
11933 found_so="$dir/$f"
11934 break
11936 done
11940 if test "X$found_dir" = "X"; then
11941 if test -f "$dir/$libname.$acl_libext"; then
11942 found_dir="$dir"
11943 found_a="$dir/$libname.$acl_libext"
11946 if test "X$found_dir" != "X"; then
11947 if test -f "$dir/$libname.la"; then
11948 found_la="$dir/$libname.la"
11952 if test "X$found_dir" = "X"; then
11953 for x in $LDFLAGS $LTLIBINTL; do
11955 acl_save_prefix="$prefix"
11956 prefix="$acl_final_prefix"
11957 acl_save_exec_prefix="$exec_prefix"
11958 exec_prefix="$acl_final_exec_prefix"
11959 eval x=\"$x\"
11960 exec_prefix="$acl_save_exec_prefix"
11961 prefix="$acl_save_prefix"
11963 case "$x" in
11964 -L*)
11965 dir=`echo "X$x" | sed -e 's/^X-L//'`
11966 if test -n "$acl_shlibext"; then
11967 if test -f "$dir/$libname$shrext"; then
11968 found_dir="$dir"
11969 found_so="$dir/$libname$shrext"
11970 else
11971 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11972 ver=`(cd "$dir" && \
11973 for f in "$libname$shrext".*; do echo "$f"; done \
11974 | sed -e "s,^$libname$shrext\\\\.,," \
11975 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11976 | sed 1q ) 2>/dev/null`
11977 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11978 found_dir="$dir"
11979 found_so="$dir/$libname$shrext.$ver"
11981 else
11982 eval library_names=\"$acl_library_names_spec\"
11983 for f in $library_names; do
11984 if test -f "$dir/$f"; then
11985 found_dir="$dir"
11986 found_so="$dir/$f"
11987 break
11989 done
11993 if test "X$found_dir" = "X"; then
11994 if test -f "$dir/$libname.$acl_libext"; then
11995 found_dir="$dir"
11996 found_a="$dir/$libname.$acl_libext"
11999 if test "X$found_dir" != "X"; then
12000 if test -f "$dir/$libname.la"; then
12001 found_la="$dir/$libname.la"
12005 esac
12006 if test "X$found_dir" != "X"; then
12007 break
12009 done
12011 if test "X$found_dir" != "X"; then
12012 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12013 if test "X$found_so" != "X"; then
12014 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12016 else
12017 haveit=
12018 for x in $ltrpathdirs; do
12019 if test "X$x" = "X$found_dir"; then
12020 haveit=yes
12021 break
12023 done
12024 if test -z "$haveit"; then
12025 ltrpathdirs="$ltrpathdirs $found_dir"
12027 if test "$acl_hardcode_direct" = yes; then
12028 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12029 else
12030 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12031 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12032 haveit=
12033 for x in $rpathdirs; do
12034 if test "X$x" = "X$found_dir"; then
12035 haveit=yes
12036 break
12038 done
12039 if test -z "$haveit"; then
12040 rpathdirs="$rpathdirs $found_dir"
12042 else
12043 haveit=
12044 for x in $LDFLAGS $LIBINTL; do
12046 acl_save_prefix="$prefix"
12047 prefix="$acl_final_prefix"
12048 acl_save_exec_prefix="$exec_prefix"
12049 exec_prefix="$acl_final_exec_prefix"
12050 eval x=\"$x\"
12051 exec_prefix="$acl_save_exec_prefix"
12052 prefix="$acl_save_prefix"
12054 if test "X$x" = "X-L$found_dir"; then
12055 haveit=yes
12056 break
12058 done
12059 if test -z "$haveit"; then
12060 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12062 if test "$acl_hardcode_minus_L" != no; then
12063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12064 else
12065 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12070 else
12071 if test "X$found_a" != "X"; then
12072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12073 else
12074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12077 additional_includedir=
12078 case "$found_dir" in
12079 */$acl_libdirstem | */$acl_libdirstem/)
12080 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12081 LIBINTL_PREFIX="$basedir"
12082 additional_includedir="$basedir/include"
12084 esac
12085 if test "X$additional_includedir" != "X"; then
12086 if test "X$additional_includedir" != "X/usr/include"; then
12087 haveit=
12088 if test "X$additional_includedir" = "X/usr/local/include"; then
12089 if test -n "$GCC"; then
12090 case $host_os in
12091 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12092 esac
12095 if test -z "$haveit"; then
12096 for x in $CPPFLAGS $INCINTL; do
12098 acl_save_prefix="$prefix"
12099 prefix="$acl_final_prefix"
12100 acl_save_exec_prefix="$exec_prefix"
12101 exec_prefix="$acl_final_exec_prefix"
12102 eval x=\"$x\"
12103 exec_prefix="$acl_save_exec_prefix"
12104 prefix="$acl_save_prefix"
12106 if test "X$x" = "X-I$additional_includedir"; then
12107 haveit=yes
12108 break
12110 done
12111 if test -z "$haveit"; then
12112 if test -d "$additional_includedir"; then
12113 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12119 if test -n "$found_la"; then
12120 save_libdir="$libdir"
12121 case "$found_la" in
12122 */* | *\\*) . "$found_la" ;;
12123 *) . "./$found_la" ;;
12124 esac
12125 libdir="$save_libdir"
12126 for dep in $dependency_libs; do
12127 case "$dep" in
12128 -L*)
12129 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12130 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12131 haveit=
12132 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12133 if test -n "$GCC"; then
12134 case $host_os in
12135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12136 esac
12139 if test -z "$haveit"; then
12140 haveit=
12141 for x in $LDFLAGS $LIBINTL; do
12143 acl_save_prefix="$prefix"
12144 prefix="$acl_final_prefix"
12145 acl_save_exec_prefix="$exec_prefix"
12146 exec_prefix="$acl_final_exec_prefix"
12147 eval x=\"$x\"
12148 exec_prefix="$acl_save_exec_prefix"
12149 prefix="$acl_save_prefix"
12151 if test "X$x" = "X-L$additional_libdir"; then
12152 haveit=yes
12153 break
12155 done
12156 if test -z "$haveit"; then
12157 if test -d "$additional_libdir"; then
12158 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12161 haveit=
12162 for x in $LDFLAGS $LTLIBINTL; do
12164 acl_save_prefix="$prefix"
12165 prefix="$acl_final_prefix"
12166 acl_save_exec_prefix="$exec_prefix"
12167 exec_prefix="$acl_final_exec_prefix"
12168 eval x=\"$x\"
12169 exec_prefix="$acl_save_exec_prefix"
12170 prefix="$acl_save_prefix"
12172 if test "X$x" = "X-L$additional_libdir"; then
12173 haveit=yes
12174 break
12176 done
12177 if test -z "$haveit"; then
12178 if test -d "$additional_libdir"; then
12179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12185 -R*)
12186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12187 if test "$enable_rpath" != no; then
12188 haveit=
12189 for x in $rpathdirs; do
12190 if test "X$x" = "X$dir"; then
12191 haveit=yes
12192 break
12194 done
12195 if test -z "$haveit"; then
12196 rpathdirs="$rpathdirs $dir"
12198 haveit=
12199 for x in $ltrpathdirs; do
12200 if test "X$x" = "X$dir"; then
12201 haveit=yes
12202 break
12204 done
12205 if test -z "$haveit"; then
12206 ltrpathdirs="$ltrpathdirs $dir"
12210 -l*)
12211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12213 *.la)
12214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12217 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12218 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12220 esac
12221 done
12223 else
12224 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12225 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12229 done
12230 done
12231 if test "X$rpathdirs" != "X"; then
12232 if test -n "$acl_hardcode_libdir_separator"; then
12233 alldirs=
12234 for found_dir in $rpathdirs; do
12235 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12236 done
12237 acl_save_libdir="$libdir"
12238 libdir="$alldirs"
12239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12240 libdir="$acl_save_libdir"
12241 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12242 else
12243 for found_dir in $rpathdirs; do
12244 acl_save_libdir="$libdir"
12245 libdir="$found_dir"
12246 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12247 libdir="$acl_save_libdir"
12248 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12249 done
12252 if test "X$ltrpathdirs" != "X"; then
12253 for found_dir in $ltrpathdirs; do
12254 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12255 done
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12259 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12260 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 gt_save_CPPFLAGS="$CPPFLAGS"
12264 CPPFLAGS="$CPPFLAGS $INCINTL"
12265 gt_save_LIBS="$LIBS"
12266 LIBS="$LIBS $LIBINTL"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269 #include <libintl.h>
12270 $gt_revision_test_code
12271 extern int _nl_msg_cat_cntr;
12272 extern
12273 #ifdef __cplusplus
12275 #endif
12276 const char *_nl_expand_alias (const char *);
12278 main ()
12280 bindtextdomain ("", "");
12281 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12283 return 0;
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287 eval "$gt_func_gnugettext_libintl=yes"
12288 else
12289 eval "$gt_func_gnugettext_libintl=no"
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12294 LIBS="$LIBS $LIBICONV"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297 #include <libintl.h>
12298 $gt_revision_test_code
12299 extern int _nl_msg_cat_cntr;
12300 extern
12301 #ifdef __cplusplus
12303 #endif
12304 const char *_nl_expand_alias (const char *);
12306 main ()
12308 bindtextdomain ("", "");
12309 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12311 return 0;
12313 _ACEOF
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 LIBINTL="$LIBINTL $LIBICONV"
12316 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12317 eval "$gt_func_gnugettext_libintl=yes"
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12323 CPPFLAGS="$gt_save_CPPFLAGS"
12324 LIBS="$gt_save_LIBS"
12326 eval ac_res=\$$gt_func_gnugettext_libintl
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12328 $as_echo "$ac_res" >&6; }
12331 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12332 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12333 && test "$PACKAGE" != gettext-runtime \
12334 && test "$PACKAGE" != gettext-tools; }; then
12335 gt_use_preinstalled_gnugettext=yes
12336 else
12337 LIBINTL=
12338 LTLIBINTL=
12339 INCINTL=
12343 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12344 nls_cv_use_gnu_gettext=yes
12348 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12349 BUILD_INCLUDED_LIBINTL=yes
12350 USE_INCLUDED_LIBINTL=yes
12351 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
12352 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
12353 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12356 CATOBJEXT=
12357 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12358 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12359 CATOBJEXT=.gmo
12363 if test -n "$INTL_MACOSX_LIBS"; then
12364 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12365 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12366 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12367 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12371 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12372 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12374 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12376 else
12377 USE_NLS=no
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12382 $as_echo_n "checking whether to use NLS... " >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12384 $as_echo "$USE_NLS" >&6; }
12385 if test "$USE_NLS" = "yes"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12387 $as_echo_n "checking where the gettext function comes from... " >&6; }
12388 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12389 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12390 gt_source="external libintl"
12391 else
12392 gt_source="libc"
12394 else
12395 gt_source="included intl directory"
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12398 $as_echo "$gt_source" >&6; }
12401 if test "$USE_NLS" = "yes"; then
12403 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12404 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12406 $as_echo_n "checking how to link with libintl... " >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12408 $as_echo "$LIBINTL" >&6; }
12410 for element in $INCINTL; do
12411 haveit=
12412 for x in $CPPFLAGS; do
12414 acl_save_prefix="$prefix"
12415 prefix="$acl_final_prefix"
12416 acl_save_exec_prefix="$exec_prefix"
12417 exec_prefix="$acl_final_exec_prefix"
12418 eval x=\"$x\"
12419 exec_prefix="$acl_save_exec_prefix"
12420 prefix="$acl_save_prefix"
12422 if test "X$x" = "X$element"; then
12423 haveit=yes
12424 break
12426 done
12427 if test -z "$haveit"; then
12428 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12430 done
12435 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12438 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12442 POSUB=po
12446 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12447 BUILD_INCLUDED_LIBINTL=yes
12454 nls_cv_header_intl=
12455 nls_cv_header_libgt=
12457 DATADIRNAME=share
12460 INSTOBJEXT=.mo
12463 GENCAT=gencat
12466 INTLOBJS=
12467 if test "$USE_INCLUDED_LIBINTL" = yes; then
12468 INTLOBJS="\$(GETTOBJS)"
12472 INTL_LIBTOOL_SUFFIX_PREFIX=
12476 INTLLIBS="$LIBINTL"
12483 CFLAGS="$CFLAGS -I../${srcdir}/intl"
12484 LIBS="$LIBS $LIBINTL"
12487 ac_config_files="$ac_config_files intl/Makefile Makefile lib/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/actions/Makefile tools/glade/image_nr/Makefile tools/glade/options/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/en/Makefile man/fr/Makefile man/ru/Makefile src/Makefile gliv.spec"
12490 cat >confcache <<\_ACEOF
12491 # This file is a shell script that caches the results of configure
12492 # tests run on this system so they can be shared between configure
12493 # scripts and configure runs, see configure's option --config-cache.
12494 # It is not useful on other systems. If it contains results you don't
12495 # want to keep, you may remove or edit it.
12497 # config.status only pays attention to the cache file if you give it
12498 # the --recheck option to rerun configure.
12500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12502 # following values.
12504 _ACEOF
12506 # The following way of writing the cache mishandles newlines in values,
12507 # but we know of no workaround that is simple, portable, and efficient.
12508 # So, we kill variables containing newlines.
12509 # Ultrix sh set writes to stderr and can't be redirected directly,
12510 # and sets the high bit in the cache file unless we assign to the vars.
12512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12513 eval ac_val=\$$ac_var
12514 case $ac_val in #(
12515 *${as_nl}*)
12516 case $ac_var in #(
12517 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12518 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12519 esac
12520 case $ac_var in #(
12521 _ | IFS | as_nl) ;; #(
12522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12523 *) { eval $ac_var=; unset $ac_var;} ;;
12524 esac ;;
12525 esac
12526 done
12528 (set) 2>&1 |
12529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12530 *${as_nl}ac_space=\ *)
12531 # `set' does not quote correctly, so add quotes: double-quote
12532 # substitution turns \\\\ into \\, and sed turns \\ into \.
12533 sed -n \
12534 "s/'/'\\\\''/g;
12535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12536 ;; #(
12538 # `set' quotes correctly as required by POSIX, so do not add quotes.
12539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12541 esac |
12542 sort
12544 sed '
12545 /^ac_cv_env_/b end
12546 t clear
12547 :clear
12548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12549 t end
12550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12551 :end' >>confcache
12552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12553 if test -w "$cache_file"; then
12554 test "x$cache_file" != "x/dev/null" &&
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12556 $as_echo "$as_me: updating cache $cache_file" >&6;}
12557 cat confcache >$cache_file
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12560 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12563 rm -f confcache
12565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12566 # Let make expand exec_prefix.
12567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12569 DEFS=-DHAVE_CONFIG_H
12571 ac_libobjs=
12572 ac_ltlibobjs=
12573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12574 # 1. Remove the extension, and $U if already installed.
12575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12576 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12578 # will be set to the directory where LIBOBJS objects are built.
12579 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12580 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12581 done
12582 LIBOBJS=$ac_libobjs
12584 LTLIBOBJS=$ac_ltlibobjs
12587 if test -n "$EXEEXT"; then
12588 am__EXEEXT_TRUE=
12589 am__EXEEXT_FALSE='#'
12590 else
12591 am__EXEEXT_TRUE='#'
12592 am__EXEEXT_FALSE=
12595 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12596 as_fn_error "conditional \"AMDEP\" was never defined.
12597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12599 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12600 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12603 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12604 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12607 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
12608 as_fn_error "conditional \"GETDELIM\" was never defined.
12609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12611 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
12612 as_fn_error "conditional \"GETOPT_LONG\" was never defined.
12613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12615 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12616 as_fn_error "conditional \"NEED_REPLACEMENTS\" was never defined.
12617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12619 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12620 as_fn_error "conditional \"NEED_REPLACEMENTS\" was never defined.
12621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12624 : ${CONFIG_STATUS=./config.status}
12625 ac_write_fail=0
12626 ac_clean_files_save=$ac_clean_files
12627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12630 as_write_fail=0
12631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12632 #! $SHELL
12633 # Generated by $as_me.
12634 # Run this file to recreate the current configuration.
12635 # Compiler output produced by configure, useful for debugging
12636 # configure, is in config.log if it exists.
12638 debug=false
12639 ac_cs_recheck=false
12640 ac_cs_silent=false
12642 SHELL=\${CONFIG_SHELL-$SHELL}
12643 export SHELL
12644 _ASEOF
12645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12646 ## -------------------- ##
12647 ## M4sh Initialization. ##
12648 ## -------------------- ##
12650 # Be more Bourne compatible
12651 DUALCASE=1; export DUALCASE # for MKS sh
12652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12653 emulate sh
12654 NULLCMD=:
12655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12656 # is contrary to our usage. Disable this feature.
12657 alias -g '${1+"$@"}'='"$@"'
12658 setopt NO_GLOB_SUBST
12659 else
12660 case `(set -o) 2>/dev/null` in #(
12661 *posix*) :
12662 set -o posix ;; #(
12663 *) :
12665 esac
12669 as_nl='
12671 export as_nl
12672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12676 # Prefer a ksh shell builtin over an external printf program on Solaris,
12677 # but without wasting forks for bash or zsh.
12678 if test -z "$BASH_VERSION$ZSH_VERSION" \
12679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12680 as_echo='print -r --'
12681 as_echo_n='print -rn --'
12682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12683 as_echo='printf %s\n'
12684 as_echo_n='printf %s'
12685 else
12686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12688 as_echo_n='/usr/ucb/echo -n'
12689 else
12690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12691 as_echo_n_body='eval
12692 arg=$1;
12693 case $arg in #(
12694 *"$as_nl"*)
12695 expr "X$arg" : "X\\(.*\\)$as_nl";
12696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12697 esac;
12698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12700 export as_echo_n_body
12701 as_echo_n='sh -c $as_echo_n_body as_echo'
12703 export as_echo_body
12704 as_echo='sh -c $as_echo_body as_echo'
12707 # The user is always right.
12708 if test "${PATH_SEPARATOR+set}" != set; then
12709 PATH_SEPARATOR=:
12710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12712 PATH_SEPARATOR=';'
12717 # IFS
12718 # We need space, tab and new line, in precisely that order. Quoting is
12719 # there to prevent editors from complaining about space-tab.
12720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12721 # splitting by setting IFS to empty value.)
12722 IFS=" "" $as_nl"
12724 # Find who we are. Look in the path if we contain no directory separator.
12725 case $0 in #((
12726 *[\\/]* ) as_myself=$0 ;;
12727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12733 done
12734 IFS=$as_save_IFS
12737 esac
12738 # We did not find ourselves, most probably we were run as `sh COMMAND'
12739 # in which case we are not to be found in the path.
12740 if test "x$as_myself" = x; then
12741 as_myself=$0
12743 if test ! -f "$as_myself"; then
12744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12745 exit 1
12748 # Unset variables that we do not need and which cause bugs (e.g. in
12749 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12750 # suppresses any "Segmentation fault" message there. '((' could
12751 # trigger a bug in pdksh 5.2.14.
12752 for as_var in BASH_ENV ENV MAIL MAILPATH
12753 do eval test x\${$as_var+set} = xset \
12754 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12755 done
12756 PS1='$ '
12757 PS2='> '
12758 PS4='+ '
12760 # NLS nuisances.
12761 LC_ALL=C
12762 export LC_ALL
12763 LANGUAGE=C
12764 export LANGUAGE
12766 # CDPATH.
12767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12770 # as_fn_error ERROR [LINENO LOG_FD]
12771 # ---------------------------------
12772 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12773 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12774 # script with status $?, using 1 if that was 0.
12775 as_fn_error ()
12777 as_status=$?; test $as_status -eq 0 && as_status=1
12778 if test "$3"; then
12779 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12780 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12782 $as_echo "$as_me: error: $1" >&2
12783 as_fn_exit $as_status
12784 } # as_fn_error
12787 # as_fn_set_status STATUS
12788 # -----------------------
12789 # Set $? to STATUS, without forking.
12790 as_fn_set_status ()
12792 return $1
12793 } # as_fn_set_status
12795 # as_fn_exit STATUS
12796 # -----------------
12797 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12798 as_fn_exit ()
12800 set +e
12801 as_fn_set_status $1
12802 exit $1
12803 } # as_fn_exit
12805 # as_fn_unset VAR
12806 # ---------------
12807 # Portably unset VAR.
12808 as_fn_unset ()
12810 { eval $1=; unset $1;}
12812 as_unset=as_fn_unset
12813 # as_fn_append VAR VALUE
12814 # ----------------------
12815 # Append the text in VALUE to the end of the definition contained in VAR. Take
12816 # advantage of any shell optimizations that allow amortized linear growth over
12817 # repeated appends, instead of the typical quadratic growth present in naive
12818 # implementations.
12819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12820 eval 'as_fn_append ()
12822 eval $1+=\$2
12824 else
12825 as_fn_append ()
12827 eval $1=\$$1\$2
12829 fi # as_fn_append
12831 # as_fn_arith ARG...
12832 # ------------------
12833 # Perform arithmetic evaluation on the ARGs, and store the result in the
12834 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12835 # must be portable across $(()) and expr.
12836 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12837 eval 'as_fn_arith ()
12839 as_val=$(( $* ))
12841 else
12842 as_fn_arith ()
12844 as_val=`expr "$@" || test $? -eq 1`
12846 fi # as_fn_arith
12849 if expr a : '\(a\)' >/dev/null 2>&1 &&
12850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12851 as_expr=expr
12852 else
12853 as_expr=false
12856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12857 as_basename=basename
12858 else
12859 as_basename=false
12862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12863 as_dirname=dirname
12864 else
12865 as_dirname=false
12868 as_me=`$as_basename -- "$0" ||
12869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12870 X"$0" : 'X\(//\)$' \| \
12871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12872 $as_echo X/"$0" |
12873 sed '/^.*\/\([^/][^/]*\)\/*$/{
12874 s//\1/
12877 /^X\/\(\/\/\)$/{
12878 s//\1/
12881 /^X\/\(\/\).*/{
12882 s//\1/
12885 s/.*/./; q'`
12887 # Avoid depending upon Character Ranges.
12888 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12891 as_cr_digits='0123456789'
12892 as_cr_alnum=$as_cr_Letters$as_cr_digits
12894 ECHO_C= ECHO_N= ECHO_T=
12895 case `echo -n x` in #(((((
12896 -n*)
12897 case `echo 'xy\c'` in
12898 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12899 xy) ECHO_C='\c';;
12900 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12901 ECHO_T=' ';;
12902 esac;;
12904 ECHO_N='-n';;
12905 esac
12907 rm -f conf$$ conf$$.exe conf$$.file
12908 if test -d conf$$.dir; then
12909 rm -f conf$$.dir/conf$$.file
12910 else
12911 rm -f conf$$.dir
12912 mkdir conf$$.dir 2>/dev/null
12914 if (echo >conf$$.file) 2>/dev/null; then
12915 if ln -s conf$$.file conf$$ 2>/dev/null; then
12916 as_ln_s='ln -s'
12917 # ... but there are two gotchas:
12918 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12919 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12920 # In both cases, we have to default to `cp -p'.
12921 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12922 as_ln_s='cp -p'
12923 elif ln conf$$.file conf$$ 2>/dev/null; then
12924 as_ln_s=ln
12925 else
12926 as_ln_s='cp -p'
12928 else
12929 as_ln_s='cp -p'
12931 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12932 rmdir conf$$.dir 2>/dev/null
12935 # as_fn_mkdir_p
12936 # -------------
12937 # Create "$as_dir" as a directory, including parents if necessary.
12938 as_fn_mkdir_p ()
12941 case $as_dir in #(
12942 -*) as_dir=./$as_dir;;
12943 esac
12944 test -d "$as_dir" || eval $as_mkdir_p || {
12945 as_dirs=
12946 while :; do
12947 case $as_dir in #(
12948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12949 *) as_qdir=$as_dir;;
12950 esac
12951 as_dirs="'$as_qdir' $as_dirs"
12952 as_dir=`$as_dirname -- "$as_dir" ||
12953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12954 X"$as_dir" : 'X\(//\)[^/]' \| \
12955 X"$as_dir" : 'X\(//\)$' \| \
12956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12957 $as_echo X"$as_dir" |
12958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12959 s//\1/
12962 /^X\(\/\/\)[^/].*/{
12963 s//\1/
12966 /^X\(\/\/\)$/{
12967 s//\1/
12970 /^X\(\/\).*/{
12971 s//\1/
12974 s/.*/./; q'`
12975 test -d "$as_dir" && break
12976 done
12977 test -z "$as_dirs" || eval "mkdir $as_dirs"
12978 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12981 } # as_fn_mkdir_p
12982 if mkdir -p . 2>/dev/null; then
12983 as_mkdir_p='mkdir -p "$as_dir"'
12984 else
12985 test -d ./-p && rmdir ./-p
12986 as_mkdir_p=false
12989 if test -x / >/dev/null 2>&1; then
12990 as_test_x='test -x'
12991 else
12992 if ls -dL / >/dev/null 2>&1; then
12993 as_ls_L_option=L
12994 else
12995 as_ls_L_option=
12997 as_test_x='
12998 eval sh -c '\''
12999 if test -d "$1"; then
13000 test -d "$1/.";
13001 else
13002 case $1 in #(
13003 -*)set "./$1";;
13004 esac;
13005 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13006 ???[sx]*):;;*)false;;esac;fi
13007 '\'' sh
13010 as_executable_p=$as_test_x
13012 # Sed expression to map a string onto a valid CPP name.
13013 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13015 # Sed expression to map a string onto a valid variable name.
13016 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13019 exec 6>&1
13020 ## ----------------------------------- ##
13021 ## Main body of $CONFIG_STATUS script. ##
13022 ## ----------------------------------- ##
13023 _ASEOF
13024 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13027 # Save the log message, to keep $0 and so on meaningful, and to
13028 # report actual input values of CONFIG_FILES etc. instead of their
13029 # values after options handling.
13030 ac_log="
13031 This file was extended by gliv $as_me 1.9.7, which was
13032 generated by GNU Autoconf 2.64. Invocation command line was
13034 CONFIG_FILES = $CONFIG_FILES
13035 CONFIG_HEADERS = $CONFIG_HEADERS
13036 CONFIG_LINKS = $CONFIG_LINKS
13037 CONFIG_COMMANDS = $CONFIG_COMMANDS
13038 $ $0 $@
13040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13043 _ACEOF
13045 case $ac_config_files in *"
13046 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13047 esac
13049 case $ac_config_headers in *"
13050 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13051 esac
13054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13055 # Files that config.status was made for.
13056 config_files="$ac_config_files"
13057 config_headers="$ac_config_headers"
13058 config_commands="$ac_config_commands"
13060 _ACEOF
13062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13063 ac_cs_usage="\
13064 \`$as_me' instantiates files and other configuration actions
13065 from templates according to the current configuration. Unless the files
13066 and actions are specified as TAGs, all are instantiated by default.
13068 Usage: $0 [OPTION]... [TAG]...
13070 -h, --help print this help, then exit
13071 -V, --version print version number and configuration settings, then exit
13072 -q, --quiet, --silent
13073 do not print progress messages
13074 -d, --debug don't remove temporary files
13075 --recheck update $as_me by reconfiguring in the same conditions
13076 --file=FILE[:TEMPLATE]
13077 instantiate the configuration file FILE
13078 --header=FILE[:TEMPLATE]
13079 instantiate the configuration header FILE
13081 Configuration files:
13082 $config_files
13084 Configuration headers:
13085 $config_headers
13087 Configuration commands:
13088 $config_commands
13090 Report bugs to <guichaz@gmail.com>."
13092 _ACEOF
13093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13094 ac_cs_version="\\
13095 gliv config.status 1.9.7
13096 configured by $0, generated by GNU Autoconf 2.64,
13097 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13099 Copyright (C) 2009 Free Software Foundation, Inc.
13100 This config.status script is free software; the Free Software Foundation
13101 gives unlimited permission to copy, distribute and modify it."
13103 ac_pwd='$ac_pwd'
13104 srcdir='$srcdir'
13105 INSTALL='$INSTALL'
13106 MKDIR_P='$MKDIR_P'
13107 AWK='$AWK'
13108 test -n "\$AWK" || AWK=awk
13109 _ACEOF
13111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13112 # The default lists apply if the user does not specify any file.
13113 ac_need_defaults=:
13114 while test $# != 0
13116 case $1 in
13117 --*=*)
13118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13120 ac_shift=:
13123 ac_option=$1
13124 ac_optarg=$2
13125 ac_shift=shift
13127 esac
13129 case $ac_option in
13130 # Handling of the options.
13131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13132 ac_cs_recheck=: ;;
13133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13134 $as_echo "$ac_cs_version"; exit ;;
13135 --debug | --debu | --deb | --de | --d | -d )
13136 debug=: ;;
13137 --file | --fil | --fi | --f )
13138 $ac_shift
13139 case $ac_optarg in
13140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13141 esac
13142 as_fn_append CONFIG_FILES " '$ac_optarg'"
13143 ac_need_defaults=false;;
13144 --header | --heade | --head | --hea )
13145 $ac_shift
13146 case $ac_optarg in
13147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13148 esac
13149 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13150 ac_need_defaults=false;;
13151 --he | --h)
13152 # Conflict between --help and --header
13153 as_fn_error "ambiguous option: \`$1'
13154 Try \`$0 --help' for more information.";;
13155 --help | --hel | -h )
13156 $as_echo "$ac_cs_usage"; exit ;;
13157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13158 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13159 ac_cs_silent=: ;;
13161 # This is an error.
13162 -*) as_fn_error "unrecognized option: \`$1'
13163 Try \`$0 --help' for more information." ;;
13165 *) as_fn_append ac_config_targets " $1"
13166 ac_need_defaults=false ;;
13168 esac
13169 shift
13170 done
13172 ac_configure_extra_args=
13174 if $ac_cs_silent; then
13175 exec 6>/dev/null
13176 ac_configure_extra_args="$ac_configure_extra_args --silent"
13179 _ACEOF
13180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13181 if \$ac_cs_recheck; then
13182 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13183 shift
13184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13185 CONFIG_SHELL='$SHELL'
13186 export CONFIG_SHELL
13187 exec "\$@"
13190 _ACEOF
13191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13192 exec 5>>config.log
13194 echo
13195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13196 ## Running $as_me. ##
13197 _ASBOX
13198 $as_echo "$ac_log"
13199 } >&5
13201 _ACEOF
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13204 # INIT-COMMANDS
13206 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13207 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13208 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13209 # from automake < 1.5.
13210 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13211 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13212 LINGUAS="${LINGUAS-%UNSET%}"
13215 _ACEOF
13217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13219 # Handling of arguments.
13220 for ac_config_target in $ac_config_targets
13222 case $ac_config_target in
13223 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13224 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13225 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13226 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13227 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13228 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13229 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13230 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13231 "tools/glade/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;;
13232 "tools/glade/actions/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/actions/Makefile" ;;
13233 "tools/glade/image_nr/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/image_nr/Makefile" ;;
13234 "tools/glade/options/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;;
13235 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13236 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
13237 "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
13238 "man/en/Makefile") CONFIG_FILES="$CONFIG_FILES man/en/Makefile" ;;
13239 "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
13240 "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
13241 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13242 "gliv.spec") CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
13244 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13245 esac
13246 done
13249 # If the user did not use the arguments to specify the items to instantiate,
13250 # then the envvar interface is used. Set only those that are not.
13251 # We use the long form for the default assignment because of an extremely
13252 # bizarre bug on SunOS 4.1.3.
13253 if $ac_need_defaults; then
13254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13259 # Have a temporary directory for convenience. Make it in the build tree
13260 # simply because there is no reason against having it here, and in addition,
13261 # creating and moving files from /tmp can sometimes cause problems.
13262 # Hook for its removal unless debugging.
13263 # Note that there is a small window in which the directory will not be cleaned:
13264 # after its creation but before its name has been assigned to `$tmp'.
13265 $debug ||
13267 tmp=
13268 trap 'exit_status=$?
13269 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13271 trap 'as_fn_exit 1' 1 2 13 15
13273 # Create a (secure) tmp directory for tmp files.
13276 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13277 test -n "$tmp" && test -d "$tmp"
13278 } ||
13280 tmp=./conf$$-$RANDOM
13281 (umask 077 && mkdir "$tmp")
13282 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13284 # Set up the scripts for CONFIG_FILES section.
13285 # No need to generate them if there are no CONFIG_FILES.
13286 # This happens for instance with `./config.status config.h'.
13287 if test -n "$CONFIG_FILES"; then
13290 ac_cr=`echo X | tr X '\015'`
13291 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13292 # But we know of no other shell where ac_cr would be empty at this
13293 # point, so we can use a bashism as a fallback.
13294 if test "x$ac_cr" = x; then
13295 eval ac_cr=\$\'\\r\'
13297 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13298 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13299 ac_cs_awk_cr='\r'
13300 else
13301 ac_cs_awk_cr=$ac_cr
13304 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13305 _ACEOF
13309 echo "cat >conf$$subs.awk <<_ACEOF" &&
13310 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13311 echo "_ACEOF"
13312 } >conf$$subs.sh ||
13313 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13314 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13315 ac_delim='%!_!# '
13316 for ac_last_try in false false false false false :; do
13317 . ./conf$$subs.sh ||
13318 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13320 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13321 if test $ac_delim_n = $ac_delim_num; then
13322 break
13323 elif $ac_last_try; then
13324 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13325 else
13326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13328 done
13329 rm -f conf$$subs.sh
13331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13332 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13333 _ACEOF
13334 sed -n '
13336 s/^/S["/; s/!.*/"]=/
13339 s/^[^!]*!//
13340 :repl
13341 t repl
13342 s/'"$ac_delim"'$//
13343 t delim
13346 s/\(.\{148\}\).*/\1/
13347 t more1
13348 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13351 b repl
13352 :more1
13353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13356 s/.\{148\}//
13357 t nl
13358 :delim
13360 s/\(.\{148\}\).*/\1/
13361 t more2
13362 s/["\\]/\\&/g; s/^/"/; s/$/"/
13365 :more2
13366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13369 s/.\{148\}//
13370 t delim
13371 ' <conf$$subs.awk | sed '
13372 /^[^""]/{
13374 s/\n//
13376 ' >>$CONFIG_STATUS || ac_write_fail=1
13377 rm -f conf$$subs.awk
13378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13379 _ACAWK
13380 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13381 for (key in S) S_is_set[key] = 1
13382 FS = "\a"
13386 line = $ 0
13387 nfields = split(line, field, "@")
13388 substed = 0
13389 len = length(field[1])
13390 for (i = 2; i < nfields; i++) {
13391 key = field[i]
13392 keylen = length(key)
13393 if (S_is_set[key]) {
13394 value = S[key]
13395 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13396 len += length(value) + length(field[++i])
13397 substed = 1
13398 } else
13399 len += 1 + keylen
13402 print line
13405 _ACAWK
13406 _ACEOF
13407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13409 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13410 else
13412 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13413 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13414 _ACEOF
13416 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13417 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13418 # trailing colons and then remove the whole line if VPATH becomes empty
13419 # (actually we leave an empty line to preserve line numbers).
13420 if test "x$srcdir" = x.; then
13421 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13422 s/:*\$(srcdir):*/:/
13423 s/:*\${srcdir}:*/:/
13424 s/:*@srcdir@:*/:/
13425 s/^\([^=]*=[ ]*\):*/\1/
13426 s/:*$//
13427 s/^[^=]*=[ ]*$//
13431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13432 fi # test -n "$CONFIG_FILES"
13434 # Set up the scripts for CONFIG_HEADERS section.
13435 # No need to generate them if there are no CONFIG_HEADERS.
13436 # This happens for instance with `./config.status Makefile'.
13437 if test -n "$CONFIG_HEADERS"; then
13438 cat >"$tmp/defines.awk" <<\_ACAWK ||
13439 BEGIN {
13440 _ACEOF
13442 # Transform confdefs.h into an awk script `defines.awk', embedded as
13443 # here-document in config.status, that substitutes the proper values into
13444 # config.h.in to produce config.h.
13446 # Create a delimiter string that does not exist in confdefs.h, to ease
13447 # handling of long lines.
13448 ac_delim='%!_!# '
13449 for ac_last_try in false false :; do
13450 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13451 if test -z "$ac_t"; then
13452 break
13453 elif $ac_last_try; then
13454 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13455 else
13456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13458 done
13460 # For the awk script, D is an array of macro values keyed by name,
13461 # likewise P contains macro parameters if any. Preserve backslash
13462 # newline sequences.
13464 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13465 sed -n '
13466 s/.\{148\}/&'"$ac_delim"'/g
13467 t rset
13468 :rset
13469 s/^[ ]*#[ ]*define[ ][ ]*/ /
13470 t def
13472 :def
13473 s/\\$//
13474 t bsnl
13475 s/["\\]/\\&/g
13476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13477 D["\1"]=" \3"/p
13478 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13480 :bsnl
13481 s/["\\]/\\&/g
13482 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13483 D["\1"]=" \3\\\\\\n"\\/p
13484 t cont
13485 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13486 t cont
13488 :cont
13490 s/.\{148\}/&'"$ac_delim"'/g
13491 t clear
13492 :clear
13493 s/\\$//
13494 t bsnlc
13495 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13497 :bsnlc
13498 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13499 b cont
13500 ' <confdefs.h | sed '
13501 s/'"$ac_delim"'/"\\\
13502 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13505 for (key in D) D_is_set[key] = 1
13506 FS = "\a"
13508 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13509 line = \$ 0
13510 split(line, arg, " ")
13511 if (arg[1] == "#") {
13512 defundef = arg[2]
13513 mac1 = arg[3]
13514 } else {
13515 defundef = substr(arg[1], 2)
13516 mac1 = arg[2]
13518 split(mac1, mac2, "(") #)
13519 macro = mac2[1]
13520 prefix = substr(line, 1, index(line, defundef) - 1)
13521 if (D_is_set[macro]) {
13522 # Preserve the white space surrounding the "#".
13523 print prefix "define", macro P[macro] D[macro]
13524 next
13525 } else {
13526 # Replace #undef with comments. This is necessary, for example,
13527 # in the case of _POSIX_SOURCE, which is predefined and required
13528 # on some systems where configure will not decide to define it.
13529 if (defundef == "undef") {
13530 print "/*", prefix defundef, macro, "*/"
13531 next
13535 { print }
13536 _ACAWK
13537 _ACEOF
13538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13539 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13540 fi # test -n "$CONFIG_HEADERS"
13543 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13544 shift
13545 for ac_tag
13547 case $ac_tag in
13548 :[FHLC]) ac_mode=$ac_tag; continue;;
13549 esac
13550 case $ac_mode$ac_tag in
13551 :[FHL]*:*);;
13552 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13553 :[FH]-) ac_tag=-:-;;
13554 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13555 esac
13556 ac_save_IFS=$IFS
13557 IFS=:
13558 set x $ac_tag
13559 IFS=$ac_save_IFS
13560 shift
13561 ac_file=$1
13562 shift
13564 case $ac_mode in
13565 :L) ac_source=$1;;
13566 :[FH])
13567 ac_file_inputs=
13568 for ac_f
13570 case $ac_f in
13571 -) ac_f="$tmp/stdin";;
13572 *) # Look for the file first in the build tree, then in the source tree
13573 # (if the path is not absolute). The absolute path cannot be DOS-style,
13574 # because $ac_f cannot contain `:'.
13575 test -f "$ac_f" ||
13576 case $ac_f in
13577 [\\/$]*) false;;
13578 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13579 esac ||
13580 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13581 esac
13582 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13583 as_fn_append ac_file_inputs " '$ac_f'"
13584 done
13586 # Let's still pretend it is `configure' which instantiates (i.e., don't
13587 # use $as_me), people would be surprised to read:
13588 # /* config.h. Generated by config.status. */
13589 configure_input='Generated from '`
13590 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13591 `' by configure.'
13592 if test x"$ac_file" != x-; then
13593 configure_input="$ac_file. $configure_input"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13595 $as_echo "$as_me: creating $ac_file" >&6;}
13597 # Neutralize special characters interpreted by sed in replacement strings.
13598 case $configure_input in #(
13599 *\&* | *\|* | *\\* )
13600 ac_sed_conf_input=`$as_echo "$configure_input" |
13601 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13602 *) ac_sed_conf_input=$configure_input;;
13603 esac
13605 case $ac_tag in
13606 *:-:* | *:-) cat >"$tmp/stdin" \
13607 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13608 esac
13610 esac
13612 ac_dir=`$as_dirname -- "$ac_file" ||
13613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13614 X"$ac_file" : 'X\(//\)[^/]' \| \
13615 X"$ac_file" : 'X\(//\)$' \| \
13616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13617 $as_echo X"$ac_file" |
13618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13619 s//\1/
13622 /^X\(\/\/\)[^/].*/{
13623 s//\1/
13626 /^X\(\/\/\)$/{
13627 s//\1/
13630 /^X\(\/\).*/{
13631 s//\1/
13634 s/.*/./; q'`
13635 as_dir="$ac_dir"; as_fn_mkdir_p
13636 ac_builddir=.
13638 case "$ac_dir" in
13639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13642 # A ".." for each directory in $ac_dir_suffix.
13643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13644 case $ac_top_builddir_sub in
13645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13647 esac ;;
13648 esac
13649 ac_abs_top_builddir=$ac_pwd
13650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13651 # for backward compatibility:
13652 ac_top_builddir=$ac_top_build_prefix
13654 case $srcdir in
13655 .) # We are building in place.
13656 ac_srcdir=.
13657 ac_top_srcdir=$ac_top_builddir_sub
13658 ac_abs_top_srcdir=$ac_pwd ;;
13659 [\\/]* | ?:[\\/]* ) # Absolute name.
13660 ac_srcdir=$srcdir$ac_dir_suffix;
13661 ac_top_srcdir=$srcdir
13662 ac_abs_top_srcdir=$srcdir ;;
13663 *) # Relative name.
13664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13665 ac_top_srcdir=$ac_top_build_prefix$srcdir
13666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13667 esac
13668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13671 case $ac_mode in
13674 # CONFIG_FILE
13677 case $INSTALL in
13678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13680 esac
13681 ac_MKDIR_P=$MKDIR_P
13682 case $MKDIR_P in
13683 [\\/$]* | ?:[\\/]* ) ;;
13684 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13685 esac
13686 _ACEOF
13688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13689 # If the template does not know about datarootdir, expand it.
13690 # FIXME: This hack should be removed a few years after 2.60.
13691 ac_datarootdir_hack=; ac_datarootdir_seen=
13692 ac_sed_dataroot='
13693 /datarootdir/ {
13697 /@datadir@/p
13698 /@docdir@/p
13699 /@infodir@/p
13700 /@localedir@/p
13701 /@mandir@/p'
13702 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13703 *datarootdir*) ac_datarootdir_seen=yes;;
13704 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13706 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13707 _ACEOF
13708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13709 ac_datarootdir_hack='
13710 s&@datadir@&$datadir&g
13711 s&@docdir@&$docdir&g
13712 s&@infodir@&$infodir&g
13713 s&@localedir@&$localedir&g
13714 s&@mandir@&$mandir&g
13715 s&\\\${datarootdir}&$datarootdir&g' ;;
13716 esac
13717 _ACEOF
13719 # Neutralize VPATH when `$srcdir' = `.'.
13720 # Shell code in configure.ac might set extrasub.
13721 # FIXME: do we really want to maintain this feature?
13722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13723 ac_sed_extra="$ac_vpsub
13724 $extrasub
13725 _ACEOF
13726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13729 s|@configure_input@|$ac_sed_conf_input|;t t
13730 s&@top_builddir@&$ac_top_builddir_sub&;t t
13731 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13732 s&@srcdir@&$ac_srcdir&;t t
13733 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13734 s&@top_srcdir@&$ac_top_srcdir&;t t
13735 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13736 s&@builddir@&$ac_builddir&;t t
13737 s&@abs_builddir@&$ac_abs_builddir&;t t
13738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13739 s&@INSTALL@&$ac_INSTALL&;t t
13740 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13741 $ac_datarootdir_hack
13743 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13744 || as_fn_error "could not create $ac_file" "$LINENO" 5
13746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13747 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13750 which seems to be undefined. Please make sure it is defined." >&5
13751 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13752 which seems to be undefined. Please make sure it is defined." >&2;}
13754 rm -f "$tmp/stdin"
13755 case $ac_file in
13756 -) cat "$tmp/out" && rm -f "$tmp/out";;
13757 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13758 esac \
13759 || as_fn_error "could not create $ac_file" "$LINENO" 5
13763 # CONFIG_HEADER
13765 if test x"$ac_file" != x-; then
13767 $as_echo "/* $configure_input */" \
13768 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13769 } >"$tmp/config.h" \
13770 || as_fn_error "could not create $ac_file" "$LINENO" 5
13771 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13773 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13774 else
13775 rm -f "$ac_file"
13776 mv "$tmp/config.h" "$ac_file" \
13777 || as_fn_error "could not create $ac_file" "$LINENO" 5
13779 else
13780 $as_echo "/* $configure_input */" \
13781 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13782 || as_fn_error "could not create -" "$LINENO" 5
13784 # Compute "$ac_file"'s index in $config_headers.
13785 _am_arg="$ac_file"
13786 _am_stamp_count=1
13787 for _am_header in $config_headers :; do
13788 case $_am_header in
13789 $_am_arg | $_am_arg:* )
13790 break ;;
13792 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13793 esac
13794 done
13795 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13796 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13797 X"$_am_arg" : 'X\(//\)[^/]' \| \
13798 X"$_am_arg" : 'X\(//\)$' \| \
13799 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13800 $as_echo X"$_am_arg" |
13801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13802 s//\1/
13805 /^X\(\/\/\)[^/].*/{
13806 s//\1/
13809 /^X\(\/\/\)$/{
13810 s//\1/
13813 /^X\(\/\).*/{
13814 s//\1/
13817 s/.*/./; q'`/stamp-h$_am_stamp_count
13820 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13821 $as_echo "$as_me: executing $ac_file commands" >&6;}
13823 esac
13826 case $ac_file$ac_mode in
13827 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13828 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13829 # are listed without --file. Let's play safe and only enable the eval
13830 # if we detect the quoting.
13831 case $CONFIG_FILES in
13832 *\'*) eval set x "$CONFIG_FILES" ;;
13833 *) set x $CONFIG_FILES ;;
13834 esac
13835 shift
13836 for mf
13838 # Strip MF so we end up with the name of the file.
13839 mf=`echo "$mf" | sed -e 's/:.*$//'`
13840 # Check whether this is an Automake generated Makefile or not.
13841 # We used to match only the files named `Makefile.in', but
13842 # some people rename them; so instead we look at the file content.
13843 # Grep'ing the first line is not enough: some people post-process
13844 # each Makefile.in and add a new line on top of each file to say so.
13845 # Grep'ing the whole file is not good either: AIX grep has a line
13846 # limit of 2048, but all sed's we know have understand at least 4000.
13847 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13848 dirpart=`$as_dirname -- "$mf" ||
13849 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13850 X"$mf" : 'X\(//\)[^/]' \| \
13851 X"$mf" : 'X\(//\)$' \| \
13852 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13853 $as_echo X"$mf" |
13854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13855 s//\1/
13858 /^X\(\/\/\)[^/].*/{
13859 s//\1/
13862 /^X\(\/\/\)$/{
13863 s//\1/
13866 /^X\(\/\).*/{
13867 s//\1/
13870 s/.*/./; q'`
13871 else
13872 continue
13874 # Extract the definition of DEPDIR, am__include, and am__quote
13875 # from the Makefile without running `make'.
13876 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13877 test -z "$DEPDIR" && continue
13878 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13879 test -z "am__include" && continue
13880 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13881 # When using ansi2knr, U may be empty or an underscore; expand it
13882 U=`sed -n 's/^U = //p' < "$mf"`
13883 # Find all dependency output files, they are included files with
13884 # $(DEPDIR) in their names. We invoke sed twice because it is the
13885 # simplest approach to changing $(DEPDIR) to its actual value in the
13886 # expansion.
13887 for file in `sed -n "
13888 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13889 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13890 # Make sure the directory exists.
13891 test -f "$dirpart/$file" && continue
13892 fdir=`$as_dirname -- "$file" ||
13893 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13894 X"$file" : 'X\(//\)[^/]' \| \
13895 X"$file" : 'X\(//\)$' \| \
13896 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13897 $as_echo X"$file" |
13898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13899 s//\1/
13902 /^X\(\/\/\)[^/].*/{
13903 s//\1/
13906 /^X\(\/\/\)$/{
13907 s//\1/
13910 /^X\(\/\).*/{
13911 s//\1/
13914 s/.*/./; q'`
13915 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13916 # echo "creating $dirpart/$file"
13917 echo '# dummy' > "$dirpart/$file"
13918 done
13919 done
13922 "po-directories":C)
13923 for ac_file in $CONFIG_FILES; do
13924 # Support "outfile[:infile[:infile...]]"
13925 case "$ac_file" in
13926 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13927 esac
13928 # PO directories have a Makefile.in generated from Makefile.in.in.
13929 case "$ac_file" in */Makefile.in)
13930 # Adjust a relative srcdir.
13931 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13932 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13933 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13934 # In autoconf-2.13 it is called $ac_given_srcdir.
13935 # In autoconf-2.50 it is called $srcdir.
13936 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13937 case "$ac_given_srcdir" in
13938 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13939 /*) top_srcdir="$ac_given_srcdir" ;;
13940 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13941 esac
13942 # Treat a directory as a PO directory if and only if it has a
13943 # POTFILES.in file. This allows packages to have multiple PO
13944 # directories under different names or in different locations.
13945 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13946 rm -f "$ac_dir/POTFILES"
13947 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13948 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13949 POMAKEFILEDEPS="POTFILES.in"
13950 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13951 # on $ac_dir but don't depend on user-specified configuration
13952 # parameters.
13953 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13954 # The LINGUAS file contains the set of available languages.
13955 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13956 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13958 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13959 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13960 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13961 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13962 else
13963 # The set of available languages was given in configure.in.
13964 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13965 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13967 # Compute POFILES
13968 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13969 # Compute UPDATEPOFILES
13970 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13971 # Compute DUMMYPOFILES
13972 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13973 # Compute GMOFILES
13974 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13975 case "$ac_given_srcdir" in
13976 .) srcdirpre= ;;
13977 *) srcdirpre='$(srcdir)/' ;;
13978 esac
13979 POFILES=
13980 UPDATEPOFILES=
13981 DUMMYPOFILES=
13982 GMOFILES=
13983 for lang in $ALL_LINGUAS; do
13984 POFILES="$POFILES $srcdirpre$lang.po"
13985 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13986 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13987 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13988 done
13989 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13990 # environment variable.
13991 INST_LINGUAS=
13992 if test -n "$ALL_LINGUAS"; then
13993 for presentlang in $ALL_LINGUAS; do
13994 useit=no
13995 if test "%UNSET%" != "$LINGUAS"; then
13996 desiredlanguages="$LINGUAS"
13997 else
13998 desiredlanguages="$ALL_LINGUAS"
14000 for desiredlang in $desiredlanguages; do
14001 # Use the presentlang catalog if desiredlang is
14002 # a. equal to presentlang, or
14003 # b. a variant of presentlang (because in this case,
14004 # presentlang can be used as a fallback for messages
14005 # which are not translated in the desiredlang catalog).
14006 case "$desiredlang" in
14007 "$presentlang"*) useit=yes;;
14008 esac
14009 done
14010 if test $useit = yes; then
14011 INST_LINGUAS="$INST_LINGUAS $presentlang"
14013 done
14015 CATALOGS=
14016 if test -n "$INST_LINGUAS"; then
14017 for lang in $INST_LINGUAS; do
14018 CATALOGS="$CATALOGS $lang.gmo"
14019 done
14021 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14022 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"
14023 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14024 if test -f "$f"; then
14025 case "$f" in
14026 *.orig | *.bak | *~) ;;
14027 *) cat "$f" >> "$ac_dir/Makefile" ;;
14028 esac
14030 done
14033 esac
14034 done ;;
14036 esac
14037 done # for ac_tag
14040 as_fn_exit 0
14041 _ACEOF
14042 ac_clean_files=$ac_clean_files_save
14044 test $ac_write_fail = 0 ||
14045 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14048 # configure is writing to config.log, and then calls config.status.
14049 # config.status does its own redirection, appending to config.log.
14050 # Unfortunately, on DOS this fails, as config.log is still kept open
14051 # by configure, so config.status won't be able to write to it; its
14052 # output is simply discarded. So we exec the FD to /dev/null,
14053 # effectively closing config.log, so it can be properly (re)opened and
14054 # appended to by config.status. When coming back to configure, we
14055 # need to make the FD available again.
14056 if test "$no_create" != yes; then
14057 ac_cs_success=:
14058 ac_config_status_args=
14059 test "$silent" = yes &&
14060 ac_config_status_args="$ac_config_status_args --quiet"
14061 exec 5>/dev/null
14062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14063 exec 5>>config.log
14064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14065 # would make configure fail if this is the last instruction.
14066 $ac_cs_success || as_fn_exit $?
14068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14074 echo
14075 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
14076 echo