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
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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 :
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+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
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 :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
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 :
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
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.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
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."
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
241 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
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
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
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 :
355 as_val
=`expr "$@" || test $? -eq 1`
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.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
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
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
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
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 ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
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
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`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='gliv'
552 PACKAGE_VERSION
='1.9.7'
553 PACKAGE_STRING
='gliv 1.9.7'
554 PACKAGE_BUGREPORT
='guichaz@gmail.com'
557 ac_unique_file
="src/main.c"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars
='am__EXEEXT_FALSE
603 INTL_LIBTOOL_SUFFIX_PREFIX
610 BUILD_INCLUDED_LIBINTL
644 XGETTEXT_EXTRA_OPTIONS
652 GETTEXT_MACRO_VERSION
664 NEED_REPLACEMENTS_FALSE
665 NEED_REPLACEMENTS_TRUE
698 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
754 enable_dependency_tracking
764 with_included_gettext
767 ac_precious_vars
='build_alias
782 # Initialize some variables set by options.
784 ac_init_version
=false
785 ac_unrecognized_opts
=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name
=s
,x
,x
,
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'
826 libdir
='${exec_prefix}/lib'
827 localedir
='${datarootdir}/locale'
828 mandir
='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\
$ac_option
842 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
854 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
870 cache_file
=config.cache
;;
872 -datadir |
--datadir |
--datadi |
--datad)
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
895 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep
=', ';;
898 eval enable_
$ac_useropt=no
;;
900 -docdir |
--docdir |
--docdi |
--doc |
--do)
902 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
905 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
907 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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
921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep
=', ';;
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.
939 -help |
--help |
--hel |
--he |
-h)
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)
953 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
966 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
967 infodir
=$ac_optarg ;;
969 -libdir |
--libdir |
--libdi |
--libd)
971 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
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)
995 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
999 # Obsolete; use --without-fp.
1002 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1003 |
--no-cr |
--no-c |
-n)
1006 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1007 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
1057 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1058 pdfdir
=$ac_optarg ;;
1060 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1062 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1065 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1066 |
-silent |
--silent |
--silen |
--sile |
--sil)
1069 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1071 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1073 sbindir
=$ac_optarg ;;
1075 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1076 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1077 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1079 ac_prev
=sharedstatedir
;;
1080 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1081 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1082 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1084 sharedstatedir
=$ac_optarg ;;
1086 -site |
--site |
--sit)
1088 -site=* |
--site=* |
--sit=*)
1091 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1111 -version |
--version |
--versio |
--versi |
--vers |
-V)
1112 ac_init_version
=: ;;
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
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
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
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval with_
$ac_useropt=no
;;
1147 # Obsolete; use --with-x.
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."
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'" ;;
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}
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
1197 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
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.
1212 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\
$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$
]* | ?
:[\\/]* ) continue;;
1218 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1220 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
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.
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1305 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
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
1384 --x-includes=DIR X include files are
in DIR
1385 --x-libraries=DIR X library files are
in DIR
1388 --build=BUILD configure
for building on BUILD
[guessed
]
1389 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive
) echo "Configuration of gliv 1.9.7:";;
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
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>
1435 XMKMF Path to xmkmf, Makefile generator for X Window System
1436 PKG_CONFIG path to pkg-config utility
1438 C compiler flags for GTKGLEXT, overriding pkg-config
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
>.
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"; } ||
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/ ;;
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
1475 .
) # We are building in place.
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 ;;
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 ;;
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
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
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.
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"
1531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
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
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 :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
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.
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1569 *) ac_try_echo
=$ac_try;;
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
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
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.
$ac_ext >&5
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
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
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
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
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. */
1623 if ac_fn_c_try_compile
"$LINENO"; then :
1624 ac_header_compiler
=yes
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. */
1639 if ac_fn_c_try_cpp
"$LINENO"; then :
1640 ac_header_preproc
=yes
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 #((
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;}
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;}
1668 ## -------------------------------- ##
1669 ## Report this to guichaz@gmail.com ##
1670 ## -------------------------------- ##
1672 ) |
sed "s/^/$as_me: WARNING: /" >&2
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
1680 eval "$3=\$ac_header_compiler"
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.
1696 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1697 if { { ac_try
="$ac_link"
1699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
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
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;;
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
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
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
;}
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
1744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1749 if ac_fn_c_try_compile
"$LINENO"; then :
1754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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.
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"
1772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
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
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
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
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;}
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
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. */
1832 # include <limits.h>
1834 # include <assert.h>
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. */
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
1861 if ac_fn_c_try_link "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext \
1867 conftest$ac_exeext conftest.$ac_ext
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
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. */
1892 static int test_array [1 - 2 * !(($2) >= 0)];
1899 if ac_fn_c_try_compile "$LINENO"; then :
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1908 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_hi=$ac_mid; break
1918 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919 if test $ac_lo -le $ac_mid; then
1923 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) < 0)];
1941 if ac_fn_c_try_compile "$LINENO"; then :
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1950 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_lo=$ac_mid; break
1960 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961 if test $ac_mid -le $ac_hi; then
1965 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
1984 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 if ac_fn_c_try_compile "$LINENO"; then :
1994 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
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; }
2014 FILE *f = fopen ("conftest.val", "w");
2019 long int i = longval ();
2022 fprintf (f, "%ld", i);
2026 unsigned long int i = ulongval ();
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;
2039 if ac_fn_c_try_run "$LINENO"; then :
2040 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2045 conftest.$ac_objext conftest.beam conftest.$ac_ext
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
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
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
`
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 $as_echo "PATH: $as_dir"
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.
2172 ac_must_keep_next=false
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)
2183 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
2201 -* ) ac_must_keep_next=true ;;
2204 as_fn_append ac_configure_args " '$ac_arg'"
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.
2223 ## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##
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
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;} ;;
2239 _ | IFS | as_nl) ;; #(
2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241 *) { eval $ac_var=; unset $ac_var;} ;;
2246 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2247 *${as_nl}ac_space=\ *)
2249 "s/'\''/'\''\\\\'\'''\''/g;
2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 ## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##
2266 for ac_var in $ac_subst_vars
2268 eval ac_val=\$$ac_var
2270 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 $as_echo "$ac_var='\''$ac_val'\''"
2276 if test -n "$ac_subst_files"; then
2278 ## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##
2283 for ac_var in $ac_subst_files
2285 eval ac_val=\$$ac_var
2287 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 $as_echo "$ac_var='\''$ac_val'\''"
2294 if test -s confdefs.h; then
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
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"
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
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
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
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;}
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2390 gt_needs="$gt_needs "
2391 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
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;}
2429 # Pass precious variables to config.status.
2430 if test "$ac_new_set" = set; then
2432 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2433 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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 ## -------------------- ##
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'
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
2467 ac_install_sh="$ac_aux_dir/$ac_t -c"
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
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
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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[\\/]* | \
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
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.
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
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
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
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
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; }
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.
2588 *[\\\"\#\$\&\'\`$am_lf]*)
2589 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2592 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2593 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
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
2602 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2605 set X
`ls -t "$srcdir/configure" 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
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
2646 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2651 # Use eval to expand $SHELL
2652 if eval "$MISSING --run true"; then
2653 am_missing_run
="$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
2663 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665 install_sh
="\${SHELL} $am_aux_dir/install-sh"
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
2682 if test -n "$STRIP"; then
2683 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
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
2722 if test -n "$ac_ct_STRIP"; then
2723 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
2754 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
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
2797 if test "${ac_cv_path_mkdir+set}" = set; then
2798 MKDIR_P
="$ac_cv_path_mkdir -p"
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; }
2813 [\\/$
]* | ?
:[\\/]*) ;;
2814 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
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
2826 if test -n "$AWK"; then
2827 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2847 if test -n "$AWK"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2849 $as_echo "$AWK" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2856 test -n "$AWK" && break
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; }
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
2866 cat >conftest.
make <<\_ACEOF
2869 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2872 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2874 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2876 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
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; }
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
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'
2919 # Define the identity of the package.
2924 cat >>confdefs.h
<<_ACEOF
2925 #define PACKAGE "$PACKAGE"
2929 cat >>confdefs.h
<<_ACEOF
2930 #define VERSION "$VERSION"
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
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"
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'
2977 @
echo this is the am__doit target
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; }
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
*)
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
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"
3022 if test "x$enable_dependency_tracking" != xno; then
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
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC
="$CC" # Let the user override the test.
3047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
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
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
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
3116 case $cross_compiling:$ac_tool_warned in
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 ;;
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
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC
="$CC" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
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
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC
="$CC" # Let the user override the test.
3181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
3209 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
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
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC
="$CC" # Let the user override the test.
3239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3266 test -n "$CC" && break
3269 if test -z "$CC"; then
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
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3310 test -n "$ac_ct_CC" && break
3313 if test "x$ac_ct_CC" = x
; then
3316 case $cross_compiling:$ac_tool_warned in
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 ;;
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
3338 for ac_option
in --version -v -V -qversion; do
3339 { { ac_try
="$ac_compiler $ac_option >&5"
3341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
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
3348 if test -s conftest.err; then
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; }
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3365 FILE *f = fopen ("conftest.out", "w");
3366 return ferror (f) || fclose (f) != 0;
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
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.*"
3385 for ac_file in $ac_files
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3394 if { { ac_try="$ac_link_default"
3396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3397 *) ac_try_echo
=$ac_try;;
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
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
3410 for ac_file
in $ac_files ''
3412 test -f "$ac_file" ||
continue
3414 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3417 # We found the default executable, but exeext='' is most
3421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
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
3435 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
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;;
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
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; }; then
3473 if test "$cross_compiling" = maybe; then
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"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
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
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
3513 for ac_file
in conftest.exe conftest conftest.
*; do
3514 test -f "$ac_file" ||
continue
3516 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3517 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
3540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3551 rm -f conftest.o conftest.obj
3552 if { { ac_try
="$ac_compile"
3554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
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
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;
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3605 if ac_fn_c_try_compile "$LINENO"; then :
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
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
3628 ac_save_c_werror_flag=$ac_c_werror_flag
3629 ac_c_werror_flag=yes
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3643 if ac_fn_c_try_compile "$LINENO"; then :
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3658 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3674 if ac_fn_c_try_compile "$LINENO"; then :
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
3695 if test "$GCC" = yes; then
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
3706 ac_cv_prog_cc_c89=no
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.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)
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3728 s = g (p, va_arg (v,int));
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. */
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);
3756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
3771 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
3788 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
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
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
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
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
`
3829 case " $depcc " in #(
3830 *\ -arch\ *\ -arch\ *) am__universal=true ;;
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.
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
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"
3858 # This depmode causes a compiler race in universal mode.
3859 test "$am__universal" = false ||
continue
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
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}
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
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
3918 am__fastdepCC_FALSE
='#'
3920 am__fastdepCC_TRUE
='#'
3921 am__fastdepCC_FALSE
=
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
3937 if test -z "$CPP"; then
3938 if test "${ac_cv_prog_CPP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 # Double quotes because CPP needs to be expanded
3942 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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. */
3956 # include <limits.h>
3958 # include <assert.h>
3962 if ac_fn_c_try_cpp
"$LINENO"; then :
3965 # Broken: fails on valid input.
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>
3976 if ac_fn_c_try_cpp
"$LINENO"; then :
3977 # Broken: success on invalid input.
3980 # Passes both tests.
3984 rm -f conftest.err conftest.
$ac_ext
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 :
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4002 $as_echo "$CPP" >&6; }
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. */
4015 # include <limits.h>
4017 # include <assert.h>
4021 if ac_fn_c_try_cpp
"$LINENO"; then :
4024 # Broken: fails on valid input.
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>
4035 if ac_fn_c_try_cpp
"$LINENO"; then :
4036 # Broken: success on invalid input.
4039 # Passes both tests.
4043 rm -f conftest.err conftest.
$ac_ext
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 :
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; }
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
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
/xpg
4/bin
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
4085 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4088 $as_echo_n 0123456789 >"conftest.in"
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
4106 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4109 $ac_path_GREP_found && break 3
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
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
4132 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4133 then ac_cv_path_EGREP
="$GREP -E"
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
/xpg
4/bin
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
4151 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4154 $as_echo_n 0123456789 >"conftest.in"
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
4172 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4175 $ac_path_EGREP_found && break 3
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
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
4199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4214 if ac_fn_c_try_compile
"$LINENO"; then :
4215 ac_cv_header_stdc
=yes
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. */
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229 $EGREP "memchr" >/dev
/null
2>&1; then :
4232 ac_cv_header_stdc
=no
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. */
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246 $EGREP "free" >/dev
/null
2>&1; then :
4249 ac_cv_header_stdc
=no
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 :
4260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4264 #if ((' ' & 0x0FF) == 0x020)
4265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4280 for (i = 0; i < 256; i++)
4281 if (XOR (islower (i), ISLOWER (i))
4282 || toupper (i) != TOUPPER (i))
4287 if ac_fn_c_try_run
"$LINENO"; then :
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
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
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 :
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
4351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4354 # define __EXTENSIONS__ 1
4355 $ac_includes_default
4364 if ac_fn_c_try_compile
"$LINENO"; then :
4365 ac_cv_safe_to_define___extensions__
=yes
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
4395 # Checks for programs.
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
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC
="$CC" # Let the user override the test.
4412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4430 if test -n "$CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432 $as_echo "$CC" >&6; }
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
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
4449 if test -n "$ac_ct_CC"; then
4450 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
4481 case $cross_compiling:$ac_tool_warned in
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 ;;
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
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC
="$CC" # Let the user override the test.
4505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4523 if test -n "$CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4525 $as_echo "$CC" >&6; }
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
4542 if test -n "$CC"; then
4543 ac_cv_prog_CC
="$CC" # Let the user override the test.
4546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
4574 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4580 if test -n "$CC"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4582 $as_echo "$CC" >&6; }
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
4601 if test -n "$CC"; then
4602 ac_cv_prog_CC
="$CC" # Let the user override the test.
4604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4622 if test -n "$CC"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4624 $as_echo "$CC" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4631 test -n "$CC" && break
4634 if test -z "$CC"; then
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
4645 if test -n "$ac_ct_CC"; then
4646 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 test -n "$ac_ct_CC" && break
4678 if test "x$ac_ct_CC" = x
; then
4681 case $cross_compiling:$ac_tool_warned in
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 ;;
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
4703 for ac_option
in --version -v -V -qversion; do
4704 { { ac_try
="$ac_compiler $ac_option >&5"
4706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
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
4713 if test -s conftest.err; then
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; }
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
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4743 if ac_fn_c_try_compile "$LINENO"; then :
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
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
4766 ac_save_c_werror_flag=$ac_c_werror_flag
4767 ac_c_werror_flag=yes
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4781 if ac_fn_c_try_compile "$LINENO"; then :
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4796 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_c_werror_flag=$ac_save_c_werror_flag
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4812 if ac_fn_c_try_compile "$LINENO"; then :
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
4833 if test "$GCC" = yes; then
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
4844 ac_cv_prog_cc_c89=no
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.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)
4861 static char *f (char * (*g) (char **, int), char **p, ...)
4866 s = g (p, va_arg (v,int));
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. */
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);
4894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
4909 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
4926 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
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
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
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
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
`
4967 case " $depcc " in #(
4968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
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.
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
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"
4996 # This depmode causes a compiler race in universal mode.
4997 test "$am__universal" = false ||
continue
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
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}
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
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
5056 am__fastdepCC_FALSE
='#'
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
5071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
5111 if test -n "$ac_ct_RANLIB"; then
5112 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
5143 case $cross_compiling:$ac_tool_warned in
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 ;;
5149 RANLIB
=$ac_ct_RANLIB
5152 RANLIB
="$ac_cv_prog_RANLIB"
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
5176 ac_cv_sys_largefile_CC
=no
5177 if test "$GCC" != yes; then
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)
5201 if ac_fn_c_try_compile
"$LINENO"; then :
5204 rm -f core conftest.err conftest.
$ac_objext
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
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
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)
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)
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
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 #(
5284 cat >>confdefs.h
<<_ACEOF
5285 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
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
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)
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)
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
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 #(
5353 cat >>confdefs.h
<<_ACEOF
5354 #define _LARGE_FILES $ac_cv_sys_large_files
5366 OLD_CFLAGS
="$CFLAGS"
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
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. */
5392 for ac_lib
in '' m mx
; do
5393 if test -z "$ac_lib"; then
5394 ac_res
="none required"
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 \
5404 if test "${ac_cv_search_atan2+set}" = set; then :
5408 if test "${ac_cv_search_atan2+set}" = set; then :
5411 ac_cv_search_atan2
=no
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"
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
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. */
5457 for ac_lib
in '' m mx
; do
5458 if test -z "$ac_lib"; then
5459 ac_res
="none required"
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 \
5469 if test "${ac_cv_search_hypot+set}" = set; then :
5473 if test "${ac_cv_search_hypot+set}" = set; then :
5476 ac_cv_search_hypot
=no
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"
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
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. */
5523 for ac_lib
in '' m mx
; do
5524 if test -z "$ac_lib"; then
5525 ac_res
="none required"
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 \
5535 if test "${ac_cv_search_sqrtf+set}" = set; then :
5539 if test "${ac_cv_search_sqrtf+set}" = set; then :
5542 ac_cv_search_sqrtf
=no
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"
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
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. */
5584 for ac_lib
in '' m mx
; do
5585 if test -z "$ac_lib"; then
5586 ac_res
="none required"
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 \
5596 if test "${ac_cv_search_hypotf+set}" = set; then :
5600 if test "${ac_cv_search_hypotf+set}" = set; then :
5603 ac_cv_search_hypotf
=no
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"
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
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. */
5645 for ac_lib
in '' m mx
; do
5646 if test -z "$ac_lib"; then
5647 ac_res
="none required"
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 \
5657 if test "${ac_cv_search_atan2f+set}" = set; then :
5661 if test "${ac_cv_search_atan2f+set}" = set; then :
5664 ac_cv_search_atan2f
=no
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"
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
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. */
5706 for ac_lib
in '' m mx
; do
5707 if test -z "$ac_lib"; then
5708 ac_res
="none required"
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 \
5718 if test "${ac_cv_search_powf+set}" = set; then :
5722 if test "${ac_cv_search_powf+set}" = set; then :
5725 ac_cv_search_powf
=no
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"
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
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. */
5767 for ac_lib
in '' m mx
; do
5768 if test -z "$ac_lib"; then
5769 ac_res
="none required"
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 \
5779 if test "${ac_cv_search_ceilf+set}" = set; then :
5783 if test "${ac_cv_search_ceilf+set}" = set; then :
5786 ac_cv_search_ceilf
=no
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"
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
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. */
5828 for ac_lib
in '' m mx
; do
5829 if test -z "$ac_lib"; then
5830 ac_res
="none required"
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 \
5840 if test "${ac_cv_search_cosf+set}" = set; then :
5844 if test "${ac_cv_search_cosf+set}" = set; then :
5847 ac_cv_search_cosf
=no
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"
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
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. */
5889 for ac_lib
in '' m mx
; do
5890 if test -z "$ac_lib"; then
5891 ac_res
="none required"
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 \
5901 if test "${ac_cv_search_sinf+set}" = set; then :
5905 if test "${ac_cv_search_sinf+set}" = set; then :
5908 ac_cv_search_sinf
=no
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"
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
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. */
5950 for ac_lib
in '' m mx
; do
5951 if test -z "$ac_lib"; then
5952 ac_res
="none required"
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 \
5962 if test "${ac_cv_search_acosf+set}" = set; then :
5966 if test "${ac_cv_search_acosf+set}" = set; then :
5969 ac_cv_search_acosf
=no
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"
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
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. */
6011 for ac_lib
in '' m mx
; do
6012 if test -z "$ac_lib"; then
6013 ac_res
="none required"
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 \
6023 if test "${ac_cv_search_fmodf+set}" = set; then :
6027 if test "${ac_cv_search_fmodf+set}" = set; then :
6030 ac_cv_search_fmodf
=no
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"
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
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. */
6072 for ac_lib
in '' m mx
; do
6073 if test -z "$ac_lib"; then
6074 ac_res
="none required"
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 \
6084 if test "${ac_cv_search_fabsf+set}" = set; then :
6088 if test "${ac_cv_search_fabsf+set}" = set; then :
6091 ac_cv_search_fabsf
=no
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"
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
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. */
6133 for ac_lib
in '' m mx
; do
6134 if test -z "$ac_lib"; then
6135 ac_res
="none required"
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 \
6145 if test "${ac_cv_search_log10f+set}" = set; then :
6149 if test "${ac_cv_search_log10f+set}" = set; then :
6152 ac_cv_search_log10f
=no
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
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
6182 # If we don't have fseeko, we'll use fseek.
6183 for ac_func
in fseeko
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
6196 # Checks for getdelim, this is a GNU extension.
6197 CFLAGS
="$CFLAGS -D_GNU_SOURCE"
6198 for ac_func
in getdelim
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
6216 if test "$have_getdelim" = "yes"; then
6226 # Checks for getopt_long, another GNU extension.
6227 for ac_func
in getopt_long
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
6235 have_getopt_long
="yes"
6239 have_getopt_long
="no"
6245 if test "$have_getopt_long" = "yes"; then
6247 GETOPT_LONG_FALSE
='#'
6249 GETOPT_LONG_TRUE
='#'
6255 if test "$have_getdelim" = "no" ||
6256 test "$have_getopt_long" = "no"; then
6258 NEED_REPLACEMENTS_TRUE
=
6259 NEED_REPLACEMENTS_FALSE
='#'
6261 NEED_REPLACEMENTS_TRUE
='#'
6262 NEED_REPLACEMENTS_FALSE
=
6267 NEED_REPLACEMENTS_TRUE
=
6268 NEED_REPLACEMENTS_FALSE
='#'
6270 NEED_REPLACEMENTS_TRUE
='#'
6271 NEED_REPLACEMENTS_FALSE
=
6277 # Checks for flavours of varargs macros (borrowed from glib-2)
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. */
6289 int a(int p1, int p2, int p3);
6290 #define call_a(...) a(1,__VA_ARGS__)
6297 if ac_fn_c_try_compile
"$LINENO"; then :
6298 have_iso_c_varargs
=yes
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
6314 cat >>confdefs.h
<<_ACEOF
6315 #define HAVE_ISO_C_VARARGS $iso_c_varargs
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;}
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
6334 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
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; }; }
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
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 :
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.
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
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
6385 cat >Imakefile
<<'_ACEOF'
6387 @echo incroot='${INCROOT}'
6389 @echo usrlibdir='${USRLIBDIR}'
6391 @echo libdir='${LIBDIR}'
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'\`"
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
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;;
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 ;;
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.
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
6450 /usr/XFree86/include/X11
6454 /usr/unsupported/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>
6469 if ac_fn_c_try_cpp
"$LINENO"; then :
6470 # We can compile using X headers with no special include directory.
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
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.
6489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <X11/Xlib.h>
6500 if ac_fn_c_try_link
"$LINENO"; then :
6502 # We can link X programs with no special library path.
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
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 #(
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'"
6535 eval "$ac_cv_have_x"
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; }
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
=
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. */
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"
6591 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
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"
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
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"
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. */
6640 char XOpenDisplay ();
6644 return XOpenDisplay ();
6649 if ac_fn_c_try_link
"$LINENO"; then :
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
6657 ac_check_lib_save_LIBS
=$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. */
6672 return dnet_ntoa ();
6677 if ac_fn_c_try_link
"$LINENO"; then :
6678 ac_cv_lib_dnet_dnet_ntoa
=yes
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
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. */
6713 return dnet_ntoa ();
6718 if ac_fn_c_try_link
"$LINENO"; then :
6719 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
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)
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
6758 ac_check_lib_save_LIBS
=$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. */
6769 char gethostbyname ();
6773 return gethostbyname ();
6778 if ac_fn_c_try_link
"$LINENO"; then :
6779 ac_cv_lib_nsl_gethostbyname
=yes
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
6799 ac_check_lib_save_LIBS
=$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. */
6810 char gethostbyname ();
6814 return gethostbyname ();
6819 if ac_fn_c_try_link
"$LINENO"; then :
6820 ac_cv_lib_bsd_gethostbyname
=yes
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
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. */
6875 if ac_fn_c_try_link
"$LINENO"; then :
6876 ac_cv_lib_socket_connect
=yes
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
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. */
6924 if ac_fn_c_try_link
"$LINENO"; then :
6925 ac_cv_lib_posix_remove
=yes
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
6953 ac_check_lib_save_LIBS
=$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. */
6973 if ac_fn_c_try_link
"$LINENO"; then :
6974 ac_cv_lib_ipc_shmat
=yes
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
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. */
7016 char IceConnectionNumber ();
7020 return IceConnectionNumber ();
7025 if ac_fn_c_try_link
"$LINENO"; then :
7026 ac_cv_lib_ICE_IceConnectionNumber
=yes
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
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
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
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; }
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
7102 case $ac_pt_PKG_CONFIG in
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
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
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; }
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
7137 case $cross_compiling:$ac_tool_warned in
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 ;;
7143 PKG_CONFIG
=$ac_pt_PKG_CONFIG
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; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
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"
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
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`
7187 if test -n "$PKG_CONFIG"; then
7188 if test -n "$GTKGLEXT_LIBS"; then
7189 pkg_cv_GTKGLEXT_LIBS
="$GTKGLEXT_LIBS"
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
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`
7208 if test $pkg_failed = yes; then
7210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7211 _pkg_short_errors_supported
=yes
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"`
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.
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
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; }
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. */
7270 if ac_fn_c_try_link
"$LINENO"; then :
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. */
7294 if ac_fn_c_try_link
"$LINENO"; then :
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
7304 # Check whether --enable-gtktest was given.
7305 if test "${enable_gtktest+set}" = set; then :
7306 enableval
=$enable_gtktest;
7312 pkg_config_args
=gtk
+-2.0
7313 for module
in . gthread
7317 pkg_config_args
="$pkg_config_args gthread-2.0"
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
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
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
7351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
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; }
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
7370 echo "*** pkg-config too old; version 0.7 or better required."
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"
7389 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
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"
7411 if test "$cross_compiling" = yes; then :
7412 echo $ac_n "cross compiling; assumed OK... $ac_c"
7414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7417 #include <gtk/gtk.h>
7424 int major, minor, micro;
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, µ) != 3) {
7432 printf("%s, bad version string\n", "$min_gtk_version");
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);
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)))
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");
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");
7489 if ac_fn_c_try_run
"$LINENO"; then :
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)"
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"
7517 if test -f conf.gtktest
; then
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>
7534 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
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"
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"
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"
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
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
7598 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
7612 chmod +x conf$$.
file
7613 if test -x conf$$.
file >/dev
/null
2>&1; then
7614 ac_executable_p
="test -x"
7616 ac_executable_p
="test -f"
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
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
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"
7648 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
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; }
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
7670 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
7688 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
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; }
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 ;;
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 ;;
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
7721 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
7735 chmod +x conf$$.
file
7736 if test -x conf$$.
file >/dev
/null
2>&1; then
7737 ac_executable_p
="test -x"
7739 ac_executable_p
="test -f"
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
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
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"
7771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
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; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
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 ;;
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
7799 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
7813 chmod +x conf$$.
file
7814 if test -x conf$$.
file >/dev
/null
2>&1; then
7815 ac_executable_p
="test -x"
7817 ac_executable_p
="test -f"
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
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
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"
7848 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
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; }
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
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
7893 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
7896 ac_save_IFS
=$IFS; IFS
='-'
7902 # Remember, the first character of IFS is used to create $*,
7903 # except with old shells:
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
7914 if test "x$host_alias" = x
; then
7915 ac_cv_host
=$ac_cv_build
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; }
7926 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
7929 ac_save_IFS
=$IFS; IFS
='-'
7935 # Remember, the first character of IFS is used to create $*,
7936 # except with old shells:
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
7948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7951 #include <features.h>
7952 #ifdef __GNU_LIBRARY__
7953 #if (__GLIBC__ >= 2)
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
7963 ac_cv_gnu_library_2
=no
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"
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
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);
8003 if ac_fn_c_try_compile
"$LINENO"; then :
8004 gl_cv_cc_visibility
=yes
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"
8022 cat >>confdefs.h
<<_ACEOF
8023 #define HAVE_VISIBILITY $HAVE_VISIBILITY
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
8033 for ac_kw
in inline __inline__ __inline
; do
8034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8038 static $ac_kw foo_t static_foo () {return 0; }
8039 $ac_kw foo_t foo () {return 0; }
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
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
8057 case $ac_cv_c_inline in
8059 *) ac_val
=$ac_cv_c_inline;;
8061 cat >>confdefs.h
<<_ACEOF
8063 #define inline $ac_val
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 :
8074 cat >>confdefs.h
<<_ACEOF
8075 #define size_t unsigned int
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
8086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 #include <sys/types.h>
8093 uintmax_t i = (uintmax_t) -1; return !i;
8098 if ac_fn_c_try_compile
"$LINENO"; then :
8099 gl_cv_header_stdint_h
=yes
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
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
8122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8128 char *p = (char *) alloca (2 * sizeof (int));
8134 if ac_fn_c_try_link
"$LINENO"; then :
8135 ac_cv_working_alloca_h
=yes
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
8155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8158 # define alloca __builtin_alloca
8161 # include <malloc.h>
8162 # define alloca _alloca
8164 # ifdef HAVE_ALLOCA_H
8165 # include <alloca.h>
8170 # ifndef alloca /* predefined by HP cc +Olibcalls */
8181 char *p = (char *) alloca (1);
8187 if ac_fn_c_try_link
"$LINENO"; then :
8188 ac_cv_func_alloca_works
=yes
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
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
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #if defined CRAY && ! defined CRAY2
8227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8228 $EGREP "webecray" >/dev
/null
2>&1; then :
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
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
8260 if test "$cross_compiling" = yes; then :
8261 ac_cv_c_stack_direction
=0
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;
8274 return find_stack_direction ();
8277 return (&dummy > addr) ? 1 : -1;
8283 return find_stack_direction () < 0;
8286 if ac_fn_c_try_run
"$LINENO"; then :
8287 ac_cv_c_stack_direction
=1
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
8305 for ac_header
in stdlib.h unistd.h
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
8319 for ac_func
in getpagesize
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
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
8335 if test "$cross_compiling" = yes; then :
8336 ac_cv_func_mmap_fixed_mapped
=no
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. */
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) */
8367 #include <sys/mman.h>
8369 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
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
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 */
8389 # define getpagesize() NBPG * CLSIZE
8392 # endif /* no CLSIZE */
8393 # else /* no NBPG */
8395 # define getpagesize() NBPC
8396 # else /* no NBPC */
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 */
8413 char *data, *data2, *data3;
8417 pagesize = getpagesize ();
8419 /* First, make a file with some known garbage in it. */
8420 data = (char *) malloc (pagesize);
8423 for (i = 0; i < pagesize; ++i)
8424 *(data + i) = rand ();
8426 fd = creat ("conftest.mmap", 0600);
8429 if (write (fd, data, pagesize) != pagesize)
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);
8439 data2 = (char *) malloc (2 * pagesize);
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))
8446 for (i = 0; i < pagesize; ++i)
8447 if (*(data + i) != *(data2 + i))
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);
8458 if (read (fd, data3, pagesize) != pagesize)
8460 for (i = 0; i < pagesize; ++i)
8461 if (*(data + i) != *(data3 + i))
8467 if ac_fn_c_try_run
"$LINENO"; then :
8468 ac_cv_func_mmap_fixed_mapped
=yes
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
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
8494 gt_cv_int_divbyzero_sigfpe
=
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.
8501 i
[34567]86 | x86_64
)
8502 gt_cv_int_divbyzero_sigfpe
="guessing yes" ;;
8506 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8507 if test "$cross_compiling" = yes; then :
8509 # Guess based on the CPU.
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";;
8518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8525 sigfpe_handler (int sig)
8527 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8528 exit (sig != SIGFPE);
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);
8543 /* Linux/SPARC yields signal SIGILL. */
8544 #if defined (__sparc__) && defined (__linux__)
8545 signal (SIGILL, sigfpe_handler);
8554 if ac_fn_c_try_run
"$LINENO"; then :
8555 gt_cv_int_divbyzero_sigfpe
=yes
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
8573 cat >>confdefs.h
<<_ACEOF
8574 #define INTDIV0_RAISES_SIGFPE $value
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
8584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #include <sys/types.h>
8587 #include <inttypes.h>
8591 uintmax_t i = (uintmax_t) -1; return !i;
8596 if ac_fn_c_try_compile
"$LINENO"; then :
8597 gl_cv_header_inttypes_h
=yes
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
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
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;
8626 #if ! (18446744073709551615ULL <= -1ull)
8627 error in preprocessor;
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)
8636 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
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));
8654 if ac_fn_c_try_link
"$LINENO"; then :
8655 ac_cv_type_unsigned_long_long_int
=yes
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
8685 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8690 for ac_header
in inttypes.h
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
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
8709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #include <inttypes.h>
8724 if ac_fn_c_try_compile
"$LINENO"; then :
8725 gt_cv_inttypes_pri_broken
=no
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
8751 # Check whether --enable-threads was given.
8752 if test "${enable_threads+set}" = set; then :
8753 enableval
=$enable_threads; gl_use_threads
=$enableval
8756 osf
*) gl_use_threads
=no
;;
8757 *) gl_use_threads
=yes ;;
8762 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
8763 # For using <pthread.h>:
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"
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>.
8779 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
8780 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
8788 if test "X$prefix" = "XNONE"; then
8789 acl_final_prefix
="$ac_default_prefix"
8791 acl_final_prefix
="$prefix"
8793 if test "X$exec_prefix" = "XNONE"; then
8794 acl_final_exec_prefix
='${prefix}'
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
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
8817 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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; }
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` ;;
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%/%"`
8845 test -z "$LD" && LD
="$ac_prog"
8848 # If it fails, then pretend we aren't using GCC.
8852 # If it is relative, then search for the first ld in PATH.
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; }
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
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 ;;
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; }
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
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
;;
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
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
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8932 $as_echo "$acl_cv_rpath" >&6; }
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; :
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
;;
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; }
8980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 extern void xyzzy ();
8992 if ac_fn_c_try_link
"$LINENO"; then :
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
9006 gl_have_pthread_h
=no
9010 if test "$gl_have_pthread_h" = yes; then
9011 # Other possible tests:
9012 # -lpthreads (FSU threads, PCthreads)
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>
9024 pthread_mutex_lock((pthread_mutex_t*)0);
9025 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9030 if ac_fn_c_try_link
"$LINENO"; then :
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
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. */
9056 char pthread_kill ();
9060 return pthread_kill ();
9065 if ac_fn_c_try_link
"$LINENO"; then :
9066 ac_cv_lib_pthread_pthread_kill
=yes
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.
9085 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
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
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. */
9109 char pthread_kill ();
9113 return pthread_kill ();
9118 if ac_fn_c_try_link
"$LINENO"; then :
9119 ac_cv_lib_pthread_pthread_kill
=yes
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 :
9131 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
9132 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
9135 if test -z "$gl_have_pthread"; then
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
9142 ac_check_lib_save_LIBS
=$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. */
9153 char pthread_kill ();
9157 return pthread_kill ();
9162 if ac_fn_c_try_link
"$LINENO"; then :
9163 ac_cv_lib_c_r_pthread_kill
=yes
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 :
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
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>
9212 #if __FreeBSD__ == 4
9213 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
9215 int x = (int)PTHREAD_MUTEX_RECURSIVE;
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. */
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
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
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
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
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"
9324 additional_includedir
="$withval/include"
9325 additional_libdir
="$withval/$acl_libdirstem"
9337 names_already_handled
=
9338 names_next_round
='pth '
9339 while test -n "$names_next_round"; do
9340 names_this_round
="$names_next_round"
9342 for name
in $names_this_round; do
9344 for n
in $names_already_handled; do
9345 if test "$n" = "$name"; then
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"
9368 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9369 if test -n "$acl_shlibext"; then
9370 shrext
=".$acl_shlibext" # typically: shrext=.so
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
9379 found_so
="$dir/$libname$shrext"
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
9389 found_so
="$dir/$libname$shrext.$ver"
9392 eval library_names
=\"$acl_library_names_spec\"
9393 for f
in $library_names; do
9394 if test -f "$dir/$f"; then
9403 if test "X$found_dir" = "X"; then
9404 if test -f "$dir/$libname.$acl_libext"; then
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"
9423 exec_prefix
="$acl_save_exec_prefix"
9424 prefix
="$acl_save_prefix"
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
9432 found_so
="$dir/$libname$shrext"
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
9442 found_so
="$dir/$libname$shrext.$ver"
9445 eval library_names
=\"$acl_library_names_spec\"
9446 for f
in $library_names; do
9447 if test -f "$dir/$f"; then
9456 if test "X$found_dir" = "X"; then
9457 if test -f "$dir/$libname.$acl_libext"; then
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"
9469 if test "X$found_dir" != "X"; then
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"
9481 for x
in $ltrpathdirs; do
9482 if test "X$x" = "X$found_dir"; then
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"
9493 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9494 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9496 for x
in $rpathdirs; do
9497 if test "X$x" = "X$found_dir"; then
9502 if test -z "$haveit"; then
9503 rpathdirs
="$rpathdirs $found_dir"
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"
9514 exec_prefix
="$acl_save_exec_prefix"
9515 prefix
="$acl_save_prefix"
9517 if test "X$x" = "X-L$found_dir"; then
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"
9528 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
9534 if test "X$found_a" != "X"; then
9535 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
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"
9548 if test "X$additional_includedir" != "X"; then
9549 if test "X$additional_includedir" != "X/usr/include"; then
9551 if test "X$additional_includedir" = "X/usr/local/include"; then
9552 if test -n "$GCC"; then
9554 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
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"
9566 exec_prefix
="$acl_save_exec_prefix"
9567 prefix
="$acl_save_prefix"
9569 if test "X$x" = "X-I$additional_includedir"; then
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"
9585 */* |
*\\*) .
"$found_la" ;;
9586 *) .
"./$found_la" ;;
9588 libdir
="$save_libdir"
9589 for dep
in $dependency_libs; do
9592 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9593 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9595 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9596 if test -n "$GCC"; then
9598 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9602 if test -z "$haveit"; then
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"
9611 exec_prefix
="$acl_save_exec_prefix"
9612 prefix
="$acl_save_prefix"
9614 if test "X$x" = "X-L$additional_libdir"; then
9619 if test -z "$haveit"; then
9620 if test -d "$additional_libdir"; then
9621 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
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"
9632 exec_prefix
="$acl_save_exec_prefix"
9633 prefix
="$acl_save_prefix"
9635 if test "X$x" = "X-L$additional_libdir"; then
9640 if test -z "$haveit"; then
9641 if test -d "$additional_libdir"; then
9642 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9649 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9650 if test "$enable_rpath" != no
; then
9652 for x
in $rpathdirs; do
9653 if test "X$x" = "X$dir"; then
9658 if test -z "$haveit"; then
9659 rpathdirs
="$rpathdirs $dir"
9662 for x
in $ltrpathdirs; do
9663 if test "X$x" = "X$dir"; then
9668 if test -z "$haveit"; then
9669 ltrpathdirs
="$ltrpathdirs $dir"
9674 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
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"
9687 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
9688 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9694 if test "X$rpathdirs" != "X"; then
9695 if test -n "$acl_hardcode_libdir_separator"; then
9697 for found_dir
in $rpathdirs; do
9698 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9700 acl_save_libdir
="$libdir"
9702 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9703 libdir
="$acl_save_libdir"
9704 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
9706 for found_dir
in $rpathdirs; do
9707 acl_save_libdir
="$libdir"
9709 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9710 libdir
="$acl_save_libdir"
9711 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
9715 if test "X$ltrpathdirs" != "X"; then
9716 for found_dir
in $ltrpathdirs; do
9717 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
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
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"
9743 exec_prefix
="$acl_save_exec_prefix"
9744 prefix
="$acl_save_prefix"
9746 if test "X$x" = "X$element"; then
9751 if test -z "$haveit"; then
9752 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9764 gl_save_LIBS
="$LIBS"
9766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9777 if ac_fn_c_try_link
"$LINENO"; then :
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
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
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
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; }
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
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"
9878 additional_includedir
="$withval/include"
9879 additional_libdir
="$withval/$acl_libdirstem"
9891 names_already_handled
=
9892 names_next_round
='iconv '
9893 while test -n "$names_next_round"; do
9894 names_this_round
="$names_next_round"
9896 for name
in $names_this_round; do
9898 for n
in $names_already_handled; do
9899 if test "$n" = "$name"; then
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"
9922 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9923 if test -n "$acl_shlibext"; then
9924 shrext
=".$acl_shlibext" # typically: shrext=.so
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
9933 found_so
="$dir/$libname$shrext"
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
9943 found_so
="$dir/$libname$shrext.$ver"
9946 eval library_names
=\"$acl_library_names_spec\"
9947 for f
in $library_names; do
9948 if test -f "$dir/$f"; then
9957 if test "X$found_dir" = "X"; then
9958 if test -f "$dir/$libname.$acl_libext"; then
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"
9977 exec_prefix
="$acl_save_exec_prefix"
9978 prefix
="$acl_save_prefix"
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
9986 found_so
="$dir/$libname$shrext"
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
9996 found_so
="$dir/$libname$shrext.$ver"
9999 eval library_names
=\"$acl_library_names_spec\"
10000 for f
in $library_names; do
10001 if test -f "$dir/$f"; then
10010 if test "X$found_dir" = "X"; then
10011 if test -f "$dir/$libname.$acl_libext"; then
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"
10023 if test "X$found_dir" != "X"; then
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"
10035 for x
in $ltrpathdirs; do
10036 if test "X$x" = "X$found_dir"; then
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"
10047 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
10048 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10050 for x
in $rpathdirs; do
10051 if test "X$x" = "X$found_dir"; then
10056 if test -z "$haveit"; then
10057 rpathdirs
="$rpathdirs $found_dir"
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"
10068 exec_prefix
="$acl_save_exec_prefix"
10069 prefix
="$acl_save_prefix"
10071 if test "X$x" = "X-L$found_dir"; then
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"
10082 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10088 if test "X$found_a" != "X"; then
10089 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
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"
10102 if test "X$additional_includedir" != "X"; then
10103 if test "X$additional_includedir" != "X/usr/include"; then
10105 if test "X$additional_includedir" = "X/usr/local/include"; then
10106 if test -n "$GCC"; then
10108 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
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"
10120 exec_prefix
="$acl_save_exec_prefix"
10121 prefix
="$acl_save_prefix"
10123 if test "X$x" = "X-I$additional_includedir"; then
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" ;;
10142 libdir
="$save_libdir"
10143 for dep
in $dependency_libs; do
10146 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10147 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10149 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10150 if test -n "$GCC"; then
10152 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10156 if test -z "$haveit"; then
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"
10165 exec_prefix
="$acl_save_exec_prefix"
10166 prefix
="$acl_save_prefix"
10168 if test "X$x" = "X-L$additional_libdir"; then
10173 if test -z "$haveit"; then
10174 if test -d "$additional_libdir"; then
10175 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
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"
10186 exec_prefix
="$acl_save_exec_prefix"
10187 prefix
="$acl_save_prefix"
10189 if test "X$x" = "X-L$additional_libdir"; then
10194 if test -z "$haveit"; then
10195 if test -d "$additional_libdir"; then
10196 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10203 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10204 if test "$enable_rpath" != no
; then
10206 for x
in $rpathdirs; do
10207 if test "X$x" = "X$dir"; then
10212 if test -z "$haveit"; then
10213 rpathdirs
="$rpathdirs $dir"
10216 for x
in $ltrpathdirs; do
10217 if test "X$x" = "X$dir"; then
10222 if test -z "$haveit"; then
10223 ltrpathdirs
="$ltrpathdirs $dir"
10228 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
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"
10241 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10242 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10248 if test "X$rpathdirs" != "X"; then
10249 if test -n "$acl_hardcode_libdir_separator"; then
10251 for found_dir
in $rpathdirs; do
10252 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10254 acl_save_libdir
="$libdir"
10256 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10257 libdir
="$acl_save_libdir"
10258 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
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"
10269 if test "X$ltrpathdirs" != "X"; then
10270 for found_dir
in $ltrpathdirs; do
10271 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
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; }
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
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
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
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
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
10334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10341 #ifndef feof_unlocked
10342 char *p = (char *) feof_unlocked;
10349 if ac_fn_c_try_compile
"$LINENO"; then :
10350 ac_cv_have_decl_feof_unlocked
=yes
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
10364 cat >>confdefs.h
<<_ACEOF
10365 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
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
10375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10382 #ifndef fgets_unlocked
10383 char *p = (char *) fgets_unlocked;
10390 if ac_fn_c_try_compile
"$LINENO"; then :
10391 ac_cv_have_decl_fgets_unlocked
=yes
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
10405 cat >>confdefs.h
<<_ACEOF
10406 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10416 am_save_CPPFLAGS
="$CPPFLAGS"
10418 for element
in $INCICONV; do
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"
10427 exec_prefix
="$acl_save_exec_prefix"
10428 prefix
="$acl_save_prefix"
10430 if test "X$x" = "X$element"; then
10435 if test -z "$haveit"; then
10436 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
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
10447 am_cv_func_iconv
="no, consider installing GNU libiconv"
10449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 #include <stdlib.h>
10456 iconv_t cd = iconv_open("","");
10457 iconv(cd,NULL,NULL,NULL,NULL);
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>
10478 iconv_t cd = iconv_open("","");
10479 iconv(cd,NULL,NULL,NULL,NULL);
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
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 :
10510 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
10511 *) am_cv_func_iconv_works
="guessing yes" ;;
10514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10518 #include <string.h>
10521 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
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 */
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);
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";
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);
10560 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
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))
10574 if ac_fn_c_try_run
"$LINENO"; then :
10575 am_cv_func_iconv_works
=yes
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 ;;
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; }
10606 CPPFLAGS
="$am_save_CPPFLAGS"
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
10620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 #include <stdlib.h>
10629 #if defined(__STDC__) || defined(__cplusplus)
10630 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10643 if ac_fn_c_try_compile
"$LINENO"; then :
10644 am_cv_proto_iconv_arg1
=""
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
10656 }$am_cv_proto_iconv" >&6; }
10658 cat >>confdefs.h
<<_ACEOF
10659 #define ICONV_CONST $am_cv_proto_iconv_arg1
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
10670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <langinfo.h>
10673 #include <locale.h>
10677 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
10684 if ac_fn_c_try_link
"$LINENO"; then :
10685 gt_cv_nl_locale_name
=yes
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
10710 if test -n "$INTLBISON"; then
10711 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10714 for as_dir
in $PATH
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
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; }
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10740 test -n "$INTLBISON" && break
10743 if test -z "$INTLBISON"; then
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;;
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
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
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;
10775 #if ! (18446744073709551615ULL <= -1ull)
10776 error in preprocessor;
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)
10785 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
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));
10803 if ac_fn_c_try_link
"$LINENO"; then :
10804 if test "$cross_compiling" = yes; then :
10805 ac_cv_type_long_long_int
=yes
10807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809 #include <limits.h>
10812 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10813 # define LLONG_MAX (HALF - 1 + HALF)
10818 long long int n = 1;
10822 long long int m = n << i;
10825 if (LLONG_MAX / 2 < m)
10833 if ac_fn_c_try_run
"$LINENO"; then :
10834 ac_cv_type_long_long_int
=yes
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
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
10862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #include <stddef.h>
10865 wchar_t foo = (wchar_t)'\0';
10874 if ac_fn_c_try_compile
"$LINENO"; then :
10875 gt_cv_c_wchar_t
=yes
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
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
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>
10906 wint_t foo = (wchar_t)'\0';
10915 if ac_fn_c_try_compile
"$LINENO"; then :
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
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>
10946 #if HAVE_INTTYPES_H_WITH_UINTMAX
10947 #include <inttypes.h>
10959 if ac_fn_c_try_compile
"$LINENO"; then :
10960 gt_cv_c_intmax_t
=yes
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
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__
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"
10996 gt_cv_func_printf_posix
="guessing yes"
11002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.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];
11013 sprintf (buf, format, 33, 55);
11014 return (strcmp (buf, "55 33") != 0);
11017 if ac_fn_c_try_run
"$LINENO"; then :
11018 gt_cv_func_printf_posix
=yes
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
11033 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
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
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)
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
11059 ac_cv_gnu_library_2_1
=no
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
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
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
11092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11095 #include <limits.h>
11097 #include <stdint.h>
11104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11105 $EGREP "Found it" >/dev
/null
2>&1; then :
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 :
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 :
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>
11130 extern unsigned long foo;
11140 if ac_fn_c_try_compile
"$LINENO"; then :
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)"
11148 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
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
11170 for ac_header
in stdint.h
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
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
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>
11197 CFPreferencesCopyAppValue(NULL, NULL)
11202 if ac_fn_c_try_link
"$LINENO"; then :
11203 gt_cv_func_CFPreferencesCopyAppValue
=yes
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
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>
11231 CFLocaleCopyCurrent();
11236 if ac_fn_c_try_link
"$LINENO"; then :
11237 gt_cv_func_CFLocaleCopyCurrent
=yes
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
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 :
11268 $as_echo "#define ptrdiff_t long" >>confdefs.h
11273 for ac_header
in stddef.h stdlib.h string.h
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
11287 for ac_func
in asprintf fwprintf putenv setenv setlocale snprintf wcslen
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
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
11307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11315 char *p = (char *) _snprintf;
11322 if ac_fn_c_try_compile
"$LINENO"; then :
11323 ac_cv_have_decl__snprintf
=yes
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
11337 cat >>confdefs.h
<<_ACEOF
11338 #define HAVE_DECL__SNPRINTF $gt_value
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
11348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11356 char *p = (char *) _snwprintf;
11363 if ac_fn_c_try_compile
"$LINENO"; then :
11364 ac_cv_have_decl__snwprintf
=yes
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
11378 cat >>confdefs.h
<<_ACEOF
11379 #define HAVE_DECL__SNWPRINTF $gt_value
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
11390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11397 #ifndef getc_unlocked
11398 char *p = (char *) getc_unlocked;
11405 if ac_fn_c_try_compile
"$LINENO"; then :
11406 ac_cv_have_decl_getc_unlocked
=yes
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
11420 cat >>confdefs.h
<<_ACEOF
11421 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11426 case $gt_cv_func_printf_posix in
11427 *yes) HAVE_POSIX_PRINTF
=1 ;;
11428 *) HAVE_POSIX_PRINTF
=0 ;;
11431 if test "$ac_cv_func_asprintf" = yes; then
11437 if test "$ac_cv_func_snprintf" = yes; then
11443 if test "$ac_cv_func_wprintf" = yes; then
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
11456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458 #include <langinfo.h>
11462 char* cs = nl_langinfo(CODESET); return !cs;
11467 if ac_fn_c_try_link
"$LINENO"; then :
11468 am_cv_langinfo_codeset
=yes
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
11490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492 #include <locale.h>
11501 if ac_fn_c_try_link
"$LINENO"; then :
11502 gt_cv_val_LC_MESSAGES
=yes
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
11520 mingw
* | cygwin
*) is_woe32dll
=yes ;;
11521 *) is_woe32dll
=no
;;
11526 WOE32DLL
=$is_woe32dll
11530 mingw
* | cygwin
*) is_woe32
=yes ;;
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
11544 if test -n "$WINDRES"; then
11545 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
11547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11548 for as_dir
in $PATH
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
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; }
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
11584 if test -n "$ac_ct_WINDRES"; then
11585 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
11587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11588 for as_dir
in $PATH
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
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; }
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
11616 case $cross_compiling:$ac_tool_warned in
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 ;;
11622 WINDRES
=$ac_ct_WINDRES
11625 WINDRES
="$ac_cv_prog_WINDRES"
11631 hpux
*) LTLIBC
="" ;;
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
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>
11673 CFPreferencesCopyAppValue(NULL, NULL)
11678 if ac_fn_c_try_link
"$LINENO"; then :
11679 gt_cv_func_CFPreferencesCopyAppValue
=yes
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
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>
11707 CFLocaleCopyCurrent();
11712 if ac_fn_c_try_link
"$LINENO"; then :
11713 gt_cv_func_CFLocaleCopyCurrent
=yes
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
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
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 ;;
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
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)
11778 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11781 gt_revision_test_code
=
11783 if test $gt_api_version -ge 2; then
11784 gt_expression_test_code
=' + * ngettext ("", "", 0)'
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
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;
11803 bindtextdomain ("", "");
11804 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11809 if ac_fn_c_try_link
"$LINENO"; then :
11810 eval "$gt_func_gnugettext_libc=yes"
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
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
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"
11861 additional_includedir
="$withval/include"
11862 additional_libdir
="$withval/$acl_libdirstem"
11874 names_already_handled
=
11875 names_next_round
='intl '
11876 while test -n "$names_next_round"; do
11877 names_this_round
="$names_next_round"
11879 for name
in $names_this_round; do
11881 for n
in $names_already_handled; do
11882 if test "$n" = "$name"; then
11883 already_handled
=yes
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"
11905 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
11906 if test -n "$acl_shlibext"; then
11907 shrext
=".$acl_shlibext" # typically: shrext=.so
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
11916 found_so
="$dir/$libname$shrext"
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
11926 found_so
="$dir/$libname$shrext.$ver"
11929 eval library_names
=\"$acl_library_names_spec\"
11930 for f
in $library_names; do
11931 if test -f "$dir/$f"; then
11940 if test "X$found_dir" = "X"; then
11941 if test -f "$dir/$libname.$acl_libext"; then
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"
11960 exec_prefix
="$acl_save_exec_prefix"
11961 prefix
="$acl_save_prefix"
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
11969 found_so
="$dir/$libname$shrext"
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
11979 found_so
="$dir/$libname$shrext.$ver"
11982 eval library_names
=\"$acl_library_names_spec\"
11983 for f
in $library_names; do
11984 if test -f "$dir/$f"; then
11993 if test "X$found_dir" = "X"; then
11994 if test -f "$dir/$libname.$acl_libext"; then
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"
12006 if test "X$found_dir" != "X"; then
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"
12018 for x
in $ltrpathdirs; do
12019 if test "X$x" = "X$found_dir"; then
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"
12030 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
12031 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12033 for x
in $rpathdirs; do
12034 if test "X$x" = "X$found_dir"; then
12039 if test -z "$haveit"; then
12040 rpathdirs
="$rpathdirs $found_dir"
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"
12051 exec_prefix
="$acl_save_exec_prefix"
12052 prefix
="$acl_save_prefix"
12054 if test "X$x" = "X-L$found_dir"; then
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"
12065 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12071 if test "X$found_a" != "X"; then
12072 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
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"
12085 if test "X$additional_includedir" != "X"; then
12086 if test "X$additional_includedir" != "X/usr/include"; then
12088 if test "X$additional_includedir" = "X/usr/local/include"; then
12089 if test -n "$GCC"; then
12091 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
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"
12103 exec_prefix
="$acl_save_exec_prefix"
12104 prefix
="$acl_save_prefix"
12106 if test "X$x" = "X-I$additional_includedir"; then
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" ;;
12125 libdir
="$save_libdir"
12126 for dep
in $dependency_libs; do
12129 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12130 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12132 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12133 if test -n "$GCC"; then
12135 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
12139 if test -z "$haveit"; then
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"
12148 exec_prefix
="$acl_save_exec_prefix"
12149 prefix
="$acl_save_prefix"
12151 if test "X$x" = "X-L$additional_libdir"; then
12156 if test -z "$haveit"; then
12157 if test -d "$additional_libdir"; then
12158 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
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"
12169 exec_prefix
="$acl_save_exec_prefix"
12170 prefix
="$acl_save_prefix"
12172 if test "X$x" = "X-L$additional_libdir"; then
12177 if test -z "$haveit"; then
12178 if test -d "$additional_libdir"; then
12179 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12186 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12187 if test "$enable_rpath" != no
; then
12189 for x
in $rpathdirs; do
12190 if test "X$x" = "X$dir"; then
12195 if test -z "$haveit"; then
12196 rpathdirs
="$rpathdirs $dir"
12199 for x
in $ltrpathdirs; do
12200 if test "X$x" = "X$dir"; then
12205 if test -z "$haveit"; then
12206 ltrpathdirs
="$ltrpathdirs $dir"
12211 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
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"
12224 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12225 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12231 if test "X$rpathdirs" != "X"; then
12232 if test -n "$acl_hardcode_libdir_separator"; then
12234 for found_dir
in $rpathdirs; do
12235 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12237 acl_save_libdir
="$libdir"
12239 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
12240 libdir
="$acl_save_libdir"
12241 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
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"
12252 if test "X$ltrpathdirs" != "X"; then
12253 for found_dir
in $ltrpathdirs; do
12254 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
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
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;
12276 const char *_nl_expand_alias (const char *);
12280 bindtextdomain ("", "");
12281 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12286 if ac_fn_c_try_link
"$LINENO"; then :
12287 eval "$gt_func_gnugettext_libintl=yes"
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;
12304 const char *_nl_expand_alias (const char *);
12308 bindtextdomain ("", "");
12309 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
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
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/ $//'`
12357 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12358 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
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
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"
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
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"
12419 exec_prefix
="$acl_save_exec_prefix"
12420 prefix
="$acl_save_prefix"
12422 if test "X$x" = "X$element"; then
12427 if test -z "$haveit"; then
12428 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12435 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12438 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
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
=
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.
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
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;} ;;
12521 _ | IFS | as_nl
) ;; #(
12522 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12523 *) { eval $ac_var=; unset $ac_var;} ;;
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 \.
12535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12538 # `set' quotes correctly as required by POSIX, so do not add quotes.
12539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
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;}
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
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'
12582 LIBOBJS
=$ac_libobjs
12584 LTLIBOBJS
=$ac_ltlibobjs
12587 if test -n "$EXEEXT"; then
12589 am__EXEEXT_FALSE
='#'
12591 am__EXEEXT_TRUE
='#'
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}
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;}
12631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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.
12639 ac_cs_recheck=false
12642 SHELL=\${CONFIG_SHELL-$SHELL}
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 :
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
12660 case `(set -o) 2>/dev/null` in #(
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
'
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'
12690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12691 as_echo_n_body='eval
12695 expr "X$arg" : "X\\(.*\\)$as_nl";
12696 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
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
12710 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12711 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
12724 # Find who we are. Look in the path if we contain no directory separator.
12726 *[\\/]* ) as_myself=$0 ;;
12727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12731 test -z "$as_dir" && as_dir=.
12732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
12743 if test ! -f "$as_myself"; then
12744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
12777 as_status
=$?
; test $as_status -eq 0 && as_status
=1
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
12787 # as_fn_set_status STATUS
12788 # -----------------------
12789 # Set $? to STATUS, without forking.
12790 as_fn_set_status
()
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.
12801 as_fn_set_status
$1
12807 # Portably unset VAR.
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
12819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12820 eval '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 ()
12844 as_val
=`expr "$@" || test $? -eq 1`
12849 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12850 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12856 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12857 as_basename
=basename
12862 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12868 as_me
=`$as_basename -- "$0" ||
12869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12870 X"$0" : 'X\(//\)$' \| \
12871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12873 sed '/^.*\/\([^/][^/]*\)\/*$/{
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 #(((((
12897 case `echo 'xy\c'` in
12898 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12900 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12907 rm -f conf$$ conf$$.exe conf$$.
file
12908 if test -d conf$$.dir
; then
12909 rm -f conf$$.dir
/conf$$.
file
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
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 ||
12923 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12931 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12932 rmdir conf$$.dir
2>/dev
/null
12937 # Create "$as_dir" as a directory, including parents if necessary.
12942 -*) as_dir
=.
/$as_dir;;
12944 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12948 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12949 *) as_qdir
=$as_dir;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12962 /^X\(\/\/\)[^/].*/{
12975 test -d "$as_dir" && break
12977 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12978 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
12982 if mkdir
-p .
2>/dev
/null
; then
12983 as_mkdir_p
='mkdir -p "$as_dir"'
12985 test -d .
/-p && rmdir .
/-p
12989 if test -x / >/dev
/null
2>&1; then
12990 as_test_x
='test -x'
12992 if ls -dL / >/dev
/null
2>&1; then
12999 if test -d "$1"; then
13005 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13006 ???[sx]*):;;*)false;;esac;fi
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'"
13020 ## ----------------------------------- ##
13021 ## Main body of $CONFIG_STATUS script. ##
13022 ## ----------------------------------- ##
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.
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
13040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13045 case $ac_config_files in *"
13046 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13049 case $ac_config_headers in *"
13050 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
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"
13062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
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:
13084 Configuration headers:
13087 Configuration commands:
13090 Report bugs to <guichaz@gmail.com>."
13093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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."
13108 test -n "\$AWK" || AWK=awk
13111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13112 # The default lists apply if the user does not specify any file.
13118 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13119 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13130 # Handling of the options.
13131 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13133 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13134 $as_echo "$ac_cs_version"; exit ;;
13135 --debug |
--debu |
--deb |
--de |
--d |
-d )
13137 --file |
--fil |
--fi |
--f )
13140 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13142 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13143 ac_need_defaults
=false
;;
13144 --header |
--heade |
--head |
--hea )
13147 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13149 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13150 ac_need_defaults
=false
;;
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)
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
;;
13172 ac_configure_extra_args
=
13174 if $ac_cs_silent; then
13176 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
13184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13185 CONFIG_SHELL='$SHELL'
13186 export CONFIG_SHELL
13191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13196 ## Running $as_me. ##
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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%}"
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;;
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'.
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"
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
13301 ac_cs_awk_cr
=$ac_cr
13304 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13309 echo "cat >conf$$subs.awk <<_ACEOF" &&
13310 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
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 '$'`
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
13323 elif $ac_last_try; then
13324 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13326 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13329 rm -f conf$$subs.sh
13331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13332 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13336 s/^/S["/; s
/!.
*/"]=/
13346 s/\(.\{148\}\).*/\1/
13348 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13353 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13360 s/\(.\{148\}\).*/\1/
13362 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13366 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13371 ' <conf$$subs.awk | sed '
13376 ' >>$CONFIG_STATUS || ac_write_fail=1
13377 rm -f conf$$subs.awk
13378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13380 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13381 for (key in S) S_is_set[key] = 1
13387 nfields = split(line, field, "@
")
13389 len = length(field[1])
13390 for (i = 2; i < nfields; i++) {
13392 keylen = length(key)
13393 if (S_is_set[key]) {
13395 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13396 len += length(value) + length(field[++i])
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
"
13412 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13413 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
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}:*/:/
13425 s/^\([^=]*=[ ]*\):*/\1/
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 ||
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.
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
13453 elif $ac_last_try; then
13454 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
13456 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
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]*
13466 s/.\{148\}/&'"$ac_delim"'/g
13469 s/^[ ]*#[ ]*define[ ][ ]*/ /
13476 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13478 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13482 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13483 D["\
1"]=" \
3\\\\\\n
"\\/p
13485 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13490 s/.\{148\}/&'"$ac_delim"'/g
13495 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13498 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
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
13508 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13510 split(line, arg, " ")
13511 if (arg[1] == "#") {
13515 defundef
= substr
(arg
[1], 2)
13518 split(mac1
, mac2
, "(") #)
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
]
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
, "*/"
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"
13548 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13550 case $ac_mode$ac_tag in
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;;
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 `:'.
13578 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13580 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
13582 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13583 as_fn_append ac_file_inputs
" '$ac_f'"
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'
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;;
13606 *:-:* |
*:-) cat >"$tmp/stdin" \
13607 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13622 /^X\(\/\/\)[^/].*/{
13635 as_dir
="$ac_dir"; as_fn_mkdir_p
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/ ;;
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
13655 .
) # We are building in place.
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 ;;
13668 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13678 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13679 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13681 ac_MKDIR_P
=$MKDIR_P
13683 [\\/$
]* | ?
:[\\/]* ) ;;
13684 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
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
=
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;}
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' ;;
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
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;}
13756 -) cat "$tmp/out" && rm -f "$tmp/out";;
13757 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13759 || as_fn_error "could not create $ac_file" "$LINENO" 5
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;}
13776 mv "$tmp/config.h" "$ac_file" \
13777 || as_fn_error "could not create $ac_file" "$LINENO" 5
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.
13787 for _am_header
in $config_headers :; do
13788 case $_am_header in
13789 $_am_arg |
$_am_arg:* )
13792 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13805 /^X\(\/\/\)[^/].*/{
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;}
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 ;;
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 ||
13854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13858 /^X\(\/\/\)[^/].*/{
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13902 /^X\(\/\/\)[^/].*/{
13915 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
13916 # echo "creating $dirpart/$file"
13917 echo '# dummy' > "$dirpart/$file"
13922 "po-directories":C
)
13923 for ac_file
in $CONFIG_FILES; do
13924 # Support "outfile[:infile[:infile...]]"
13926 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
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" ;;
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
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"
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'
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)
13974 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13975 case "$ac_given_srcdir" in
13977 *) srcdirpre
='$(srcdir)/' ;;
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"
13989 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13990 # environment variable.
13992 if test -n "$ALL_LINGUAS"; then
13993 for presentlang
in $ALL_LINGUAS; do
13995 if test "%UNSET%" != "$LINGUAS"; then
13996 desiredlanguages
="$LINGUAS"
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;;
14010 if test $useit = yes; then
14011 INST_LINGUAS
="$INST_LINGUAS $presentlang"
14016 if test -n "$INST_LINGUAS"; then
14017 for lang
in $INST_LINGUAS; do
14018 CATALOGS
="$CATALOGS $lang.gmo"
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
14026 *.orig |
*.bak |
*~
) ;;
14027 *) cat "$f" >> "$ac_dir/Makefile" ;;
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
14058 ac_config_status_args
=
14059 test "$silent" = yes &&
14060 ac_config_status_args
="$ac_config_status_args --quiet"
14062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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;}
14075 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"