use automake 1.11, autoconf 2.65
[abook.git] / configure
blob9bc21a94ade9fce81b053632d74b95cf127eedeb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="abook.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 gt_needs=
595 ac_header_list=
596 ac_subst_vars='am__EXEEXT_FALSE
597 am__EXEEXT_TRUE
598 LTLIBOBJS
599 LIBOBJS
600 ANSI2KNR
602 USE_INCLUDED_INTL_H_FALSE
603 USE_INCLUDED_INTL_H_TRUE
604 POSUB
605 LTLIBINTL
606 LIBINTL
607 INTLLIBS
608 INTL_LIBTOOL_SUFFIX_PREFIX
609 INTLOBJS
610 GENCAT
611 INSTOBJEXT
612 DATADIRNAME
613 CATOBJEXT
614 USE_INCLUDED_LIBINTL
615 BUILD_INCLUDED_LIBINTL
616 LTLIBC
617 WINDRES
618 WOE32
619 WOE32DLL
620 HAVE_WPRINTF
621 HAVE_SNPRINTF
622 HAVE_ASPRINTF
623 HAVE_POSIX_PRINTF
624 INTL_MACOSX_LIBS
625 GLIBC21
626 INTLBISON
627 LTLIBICONV
628 LIBICONV
629 LTLIBMULTITHREAD
630 LIBMULTITHREAD
631 LTLIBTHREAD
632 LIBTHREAD
633 LIBPTH_PREFIX
634 LTLIBPTH
635 LIBPTH
636 PRI_MACROS_BROKEN
637 ALLOCA
638 HAVE_VISIBILITY
639 CFLAG_VISIBILITY
640 RANLIB
641 GLIBC2
642 host_os
643 host_vendor
644 host_cpu
645 host
646 build_os
647 build_vendor
648 build_cpu
649 build
650 XGETTEXT_EXTRA_OPTIONS
651 MSGMERGE
652 XGETTEXT_015
653 XGETTEXT
654 GMSGFMT_015
655 MSGFMT_015
656 GMSGFMT
657 MSGFMT
658 GETTEXT_MACRO_VERSION
659 USE_NLS
660 EGREP
661 GREP
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_dependency_tracking
744 enable_nls
745 enable_threads
746 with_gnu_ld
747 enable_rpath
748 with_libpth_prefix
749 with_libiconv_prefix
750 with_included_gettext
751 with_libintl_prefix
752 with_localedir
753 with_curses
754 with_readline
755 enable_debug
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
765 CPP'
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
816 ac_prev=
817 ac_dashdash=
818 for ac_option
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
827 case $ac_option in
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *) ac_optarg=yes ;;
830 esac
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
836 ac_dashdash=yes ;;
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 bindir=$ac_optarg ;;
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
855 --config-cache | -C)
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
859 ac_prev=datadir ;;
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
879 "enable_$ac_useropt"
880 "*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
887 ac_prev=docdir ;;
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 docdir=$ac_optarg ;;
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 ac_prev=dvidir ;;
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 dvidir=$ac_optarg ;;
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=no ;;
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) as_fn_error "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160 esac
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 esac
1173 done
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error "missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1182 no) ;;
1183 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 esac
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1196 case $ac_val in
1197 */ )
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1200 esac
1201 # Be sure to have absolute directory names.
1202 case $ac_val in
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 esac
1206 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error "pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 s//\1/
1255 /^X\(\/\/\)[^/].*/{
1256 s//\1/
1259 /^X\(\/\/\)$/{
1260 s//\1/
1263 /^X\(\/\).*/{
1264 s//\1/
1267 s/.*/./; q'`
1268 srcdir=$ac_confdir
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 srcdir=..
1272 else
1273 ac_srcdir_defaulted=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282 pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 srcdir=.
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1306 cat <<_ACEOF
1307 \`configure' configures this package to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1316 Configuration:
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 [PREFIX]
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1362 cat <<\_ACEOF
1364 Program names:
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369 System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1375 if test -n "$ac_init_help"; then
1377 cat <<\_ACEOF
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --disable-nls do not use Native Language Support
1386 --enable-threads={posix|solaris|pth|win32}
1387 specify multithreading API
1388 --disable-threads build without multithread safety
1389 --disable-rpath do not hardcode runtime library paths
1390 --enable-debug Enable debugging support
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1397 --without-libpth-prefix don't search for libpth in includedir and libdir
1398 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1399 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1400 --with-included-gettext use the GNU gettext library included here
1401 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1402 --without-libintl-prefix don't search for libintl in includedir and libdir
1403 --with-localedir=PATH Where the locale files are installed
1404 --with-curses=DIR Where ncurses is installed
1405 --with-readline=DIR Where readline is installed
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CPP C preprocessor
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1420 Report bugs to the package provider.
1421 _ACEOF
1422 ac_status=$?
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
1431 ac_builddir=.
1433 case "$ac_dir" in
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443 esac
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1449 case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 esac
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1482 cat <<\_ACEOF
1483 configure
1484 generated by GNU Autoconf 2.65
1486 Copyright (C) 2009 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1493 ## ------------------------ ##
1494 ## Autoconf initialization. ##
1495 ## ------------------------ ##
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524 else
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1528 ac_retval=1
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 as_fn_set_status $ac_retval
1533 } # ac_fn_c_try_compile
1535 # ac_fn_c_try_cpp LINENO
1536 # ----------------------
1537 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_cpp ()
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } >/dev/null && {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1565 ac_retval=1
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568 as_fn_set_status $ac_retval
1570 } # ac_fn_c_try_cpp
1572 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1573 # -------------------------------------------------------
1574 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575 # the include files in INCLUDES and setting the cache variable VAR
1576 # accordingly.
1577 ac_fn_c_check_header_mongrel ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582 $as_echo_n "checking for $2... " >&6; }
1583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 $as_echo_n "(cached) " >&6
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1589 else
1590 # Is the header compilable?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592 $as_echo_n "checking $2 usability... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1596 #include <$2>
1597 _ACEOF
1598 if ac_fn_c_try_compile "$LINENO"; then :
1599 ac_header_compiler=yes
1600 else
1601 ac_header_compiler=no
1603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605 $as_echo "$ac_header_compiler" >&6; }
1607 # Is the header present?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609 $as_echo_n "checking $2 presence... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_cpp "$LINENO"; then :
1615 ac_header_preproc=yes
1616 else
1617 ac_header_preproc=no
1619 rm -f conftest.err conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621 $as_echo "$ac_header_preproc" >&6; }
1623 # So? What about this header?
1624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 yes:no: )
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631 no:yes:* )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1635 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1639 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 esac
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 eval "$3=\$ac_header_compiler"
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 } # ac_fn_c_check_header_mongrel
1659 # ac_fn_c_try_run LINENO
1660 # ----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662 # that executables *can* be run.
1663 ac_fn_c_try_run ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=$ac_status
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_run
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 $as_echo_n "(cached) " >&6
1712 else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719 eval "$3=yes"
1720 else
1721 eval "$3=no"
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 } # ac_fn_c_check_header_compile
1732 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1733 # -------------------------------------------
1734 # Tests whether TYPE exists after having included INCLUDES, setting cache
1735 # variable VAR accordingly.
1736 ac_fn_c_check_type ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 eval "$3=no"
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1749 main ()
1751 if (sizeof ($2))
1752 return 0;
1754 return 0;
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1762 main ()
1764 if (sizeof (($2)))
1765 return 0;
1767 return 0;
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1772 else
1773 eval "$3=yes"
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 } # ac_fn_c_check_type
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1854 #ifdef __STDC__
1855 # include <limits.h>
1856 #else
1857 # include <assert.h>
1858 #endif
1860 #undef $2
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1873 choke me
1874 #endif
1877 main ()
1879 return $2 ();
1881 return 0;
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 } # ac_fn_c_check_func
1899 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1900 # --------------------------------------------
1901 # Tries to find the compile-time value of EXPR in a program that includes
1902 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1903 # computed
1904 ac_fn_c_compute_int ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if test "$cross_compiling" = yes; then
1908 # Depending upon the size, compute the lo and hi bounds.
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1913 main ()
1915 static int test_array [1 - 2 * !(($2) >= 0)];
1916 test_array [0] = 0
1919 return 0;
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_lo=0 ac_mid=0
1924 while :; do
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1932 test_array [0] = 0
1935 return 0;
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=$ac_mid; break
1940 else
1941 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1942 if test $ac_lo -le $ac_mid; then
1943 ac_lo= ac_hi=
1944 break
1946 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 main ()
1957 static int test_array [1 - 2 * !(($2) < 0)];
1958 test_array [0] = 0
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_hi=-1 ac_mid=-1
1966 while :; do
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1971 main ()
1973 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1974 test_array [0] = 0
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=$ac_mid; break
1982 else
1983 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1984 if test $ac_mid -le $ac_hi; then
1985 ac_lo= ac_hi=
1986 break
1988 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 done
1992 else
1993 ac_lo= ac_hi=
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 # Binary search between lo and hi bounds.
1999 while test "x$ac_lo" != "x$ac_hi"; do
2000 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid
2016 else
2017 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 done
2021 case $ac_lo in #((
2022 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2023 '') ac_retval=1 ;;
2024 esac
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2029 static long int longval () { return $2; }
2030 static unsigned long int ulongval () { return $2; }
2031 #include <stdio.h>
2032 #include <stdlib.h>
2034 main ()
2037 FILE *f = fopen ("conftest.val", "w");
2038 if (! f)
2039 return 1;
2040 if (($2) < 0)
2042 long int i = longval ();
2043 if (i != ($2))
2044 return 1;
2045 fprintf (f, "%ld", i);
2047 else
2049 unsigned long int i = ulongval ();
2050 if (i != ($2))
2051 return 1;
2052 fprintf (f, "%lu", i);
2054 /* Do not output a trailing newline, as this causes \r\n confusion
2055 on some platforms. */
2056 return ferror (f) || fclose (f) != 0;
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_run "$LINENO"; then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064 else
2065 ac_retval=1
2067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 rm -f conftest.val
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 as_fn_set_status $ac_retval
2075 } # ac_fn_c_compute_int
2077 # ac_fn_c_check_decl LINENO SYMBOL VAR
2078 # ------------------------------------
2079 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2080 ac_fn_c_check_decl ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2084 $as_echo_n "checking whether $2 is declared... " >&6; }
2085 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2092 main ()
2094 #ifndef $2
2095 (void) $2;
2096 #endif
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 eval "$3=yes"
2104 else
2105 eval "$3=no"
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 } # ac_fn_c_check_decl
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2119 It was created by $as_me, which was
2120 generated by GNU Autoconf 2.65. Invocation command line was
2122 $ $0 $@
2124 _ACEOF
2125 exec 5>>config.log
2127 cat <<_ASUNAME
2128 ## --------- ##
2129 ## Platform. ##
2130 ## --------- ##
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2149 _ASUNAME
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2157 done
2158 IFS=$as_save_IFS
2160 } >&5
2162 cat >&5 <<_ACEOF
2165 ## ----------- ##
2166 ## Core tests. ##
2167 ## ----------- ##
2169 _ACEOF
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2177 ac_configure_args=
2178 ac_configure_args0=
2179 ac_configure_args1=
2180 ac_must_keep_next=false
2181 for ac_pass in 1 2
2183 for ac_arg
2185 case $ac_arg in
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2189 continue ;;
2190 *\'*)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 esac
2193 case $ac_pass in
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2199 else
2200 case $ac_arg in
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 esac
2209 -* ) ac_must_keep_next=true ;;
2210 esac
2212 as_fn_append ac_configure_args " '$ac_arg'"
2214 esac
2215 done
2216 done
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2228 echo
2230 cat <<\_ASBOX
2231 ## ---------------- ##
2232 ## Cache variables. ##
2233 ## ---------------- ##
2234 _ASBOX
2235 echo
2236 # The following way of writing the cache mishandles newlines in values,
2238 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in #(
2241 *${as_nl}*)
2242 case $ac_var in #(
2243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245 esac
2246 case $ac_var in #(
2247 _ | IFS | as_nl) ;; #(
2248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249 *) { eval $ac_var=; unset $ac_var;} ;;
2250 esac ;;
2251 esac
2252 done
2253 (set) 2>&1 |
2254 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255 *${as_nl}ac_space=\ *)
2256 sed -n \
2257 "s/'\''/'\''\\\\'\'''\''/g;
2258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259 ;; #(
2261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263 esac |
2264 sort
2266 echo
2268 cat <<\_ASBOX
2269 ## ----------------- ##
2270 ## Output variables. ##
2271 ## ----------------- ##
2272 _ASBOX
2273 echo
2274 for ac_var in $ac_subst_vars
2276 eval ac_val=\$$ac_var
2277 case $ac_val in
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 esac
2280 $as_echo "$ac_var='\''$ac_val'\''"
2281 done | sort
2282 echo
2284 if test -n "$ac_subst_files"; then
2285 cat <<\_ASBOX
2286 ## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##
2289 _ASBOX
2290 echo
2291 for ac_var in $ac_subst_files
2293 eval ac_val=\$$ac_var
2294 case $ac_val in
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 esac
2297 $as_echo "$ac_var='\''$ac_val'\''"
2298 done | sort
2299 echo
2302 if test -s confdefs.h; then
2303 cat <<\_ASBOX
2304 ## ----------- ##
2305 ## confdefs.h. ##
2306 ## ----------- ##
2307 _ASBOX
2308 echo
2309 cat confdefs.h
2310 echo
2312 test "$ac_signal" != 0 &&
2313 $as_echo "$as_me: caught signal $ac_signal"
2314 $as_echo "$as_me: exit $exit_status"
2315 } >&5
2316 rm -f core *.core core.conftest.* &&
2317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2318 exit $exit_status
2320 for ac_signal in 1 2 13 15; do
2321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2322 done
2323 ac_signal=0
2325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2326 rm -f -r conftest* confdefs.h
2328 $as_echo "/* confdefs.h */" > confdefs.h
2330 # Predefined preprocessor variables.
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2342 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_STRING "$PACKAGE_STRING"
2346 _ACEOF
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2350 _ACEOF
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_URL "$PACKAGE_URL"
2354 _ACEOF
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer an explicitly selected file to automatically selected ones.
2359 ac_site_file1=NONE
2360 ac_site_file2=NONE
2361 if test -n "$CONFIG_SITE"; then
2362 ac_site_file1=$CONFIG_SITE
2363 elif test "x$prefix" != xNONE; then
2364 ac_site_file1=$prefix/share/config.site
2365 ac_site_file2=$prefix/etc/config.site
2366 else
2367 ac_site_file1=$ac_default_prefix/share/config.site
2368 ac_site_file2=$ac_default_prefix/etc/config.site
2370 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372 test "x$ac_site_file" = xNONE && continue
2373 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2375 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2376 sed 's/^/| /' "$ac_site_file" >&5
2377 . "$ac_site_file"
2379 done
2381 if test -r "$cache_file"; then
2382 # Some versions of bash will fail to source /dev/null (special files
2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386 $as_echo "$as_me: loading cache $cache_file" >&6;}
2387 case $cache_file in
2388 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389 *) . "./$cache_file";;
2390 esac
2392 else
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394 $as_echo "$as_me: creating cache $cache_file" >&6;}
2395 >$cache_file
2398 gt_needs="$gt_needs "
2399 as_fn_append ac_header_list " stdlib.h"
2400 as_fn_append ac_header_list " unistd.h"
2401 as_fn_append ac_header_list " sys/param.h"
2402 # Check that the precious variables saved in the cache have kept the same
2403 # value.
2404 ac_cache_corrupted=false
2405 for ac_var in $ac_precious_vars; do
2406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2407 eval ac_new_set=\$ac_env_${ac_var}_set
2408 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2409 eval ac_new_val=\$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2411 set,)
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2415 ,set)
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2418 ac_cache_corrupted=: ;;
2419 ,);;
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w=`echo x $ac_old_val`
2424 ac_new_val_w=`echo x $ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2427 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2428 ac_cache_corrupted=:
2429 else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2431 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\$ac_old_val
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2435 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2437 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2438 fi;;
2439 esac
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2442 case $ac_new_val in
2443 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 *) ac_arg=$ac_var=$ac_new_val ;;
2445 esac
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2448 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2449 esac
2451 done
2452 if $ac_cache_corrupted; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2456 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2459 ## -------------------- ##
2460 ## Main body of script. ##
2461 ## -------------------- ##
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 am__api_version='1.11'
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 for ac_t in install-sh install.sh shtool; do
2475 if test -f "$ac_dir/$ac_t"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/$ac_t -c"
2478 break 2
2480 done
2481 done
2482 if test -z "$ac_aux_dir"; then
2483 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2486 # These three variables are undocumented and unsupported,
2487 # and are intended to be withdrawn in a future Autoconf release.
2488 # They can cause serious problems if a builder's source tree is in a directory
2489 # whose full name contains unusual characters.
2490 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2491 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2492 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2501 # AIX /bin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 # Reject install programs that cannot install multiple files.
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2510 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2511 if test -z "$INSTALL"; then
2512 if test "${ac_cv_path_install+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 # Account for people who put trailing slashes in PATH elements.
2521 case $as_dir/ in #((
2522 ./ | .// | /[cC]/* | \
2523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2524 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2525 /usr/ucb/* ) ;;
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2529 # by default.
2530 for ac_prog in ginstall scoinst install; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2533 if test $ac_prog = install &&
2534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # AIX install. It has an incompatible calling convention.
2537 elif test $ac_prog = install &&
2538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # program-specific install script used by HP pwplus--don't use.
2541 else
2542 rm -rf conftest.one conftest.two conftest.dir
2543 echo one > conftest.one
2544 echo two > conftest.two
2545 mkdir conftest.dir
2546 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2547 test -s conftest.one && test -s conftest.two &&
2548 test -s conftest.dir/conftest.one &&
2549 test -s conftest.dir/conftest.two
2550 then
2551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2552 break 3
2556 done
2557 done
2559 esac
2561 done
2562 IFS=$as_save_IFS
2564 rm -rf conftest.one conftest.two conftest.dir
2567 if test "${ac_cv_path_install+set}" = set; then
2568 INSTALL=$ac_cv_path_install
2569 else
2570 # As a last resort, use the slow shell script. Don't cache a
2571 # value for INSTALL within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the value is a relative name.
2574 INSTALL=$ac_install_sh
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2578 $as_echo "$INSTALL" >&6; }
2580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2581 # It thinks the first close brace ends the variable substitution.
2582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2589 $as_echo_n "checking whether build environment is sane... " >&6; }
2590 # Just in case
2591 sleep 1
2592 echo timestamp > conftest.file
2593 # Reject unsafe characters in $srcdir or the absolute working directory
2594 # name. Accept space and tab only in the latter.
2595 am_lf='
2597 case `pwd` in
2598 *[\\\"\#\$\&\'\`$am_lf]*)
2599 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2600 esac
2601 case $srcdir in
2602 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2603 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2604 esac
2606 # Do `set' in a subshell so we don't clobber the current shell's
2607 # arguments. Must try -L first in case configure is actually a
2608 # symlink; some systems play weird games with the mod time of symlinks
2609 # (eg FreeBSD returns the mod time of the symlink's containing
2610 # directory).
2611 if (
2612 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2613 if test "$*" = "X"; then
2614 # -L didn't work.
2615 set X `ls -t "$srcdir/configure" conftest.file`
2617 rm -f conftest.file
2618 if test "$*" != "X $srcdir/configure conftest.file" \
2619 && test "$*" != "X conftest.file $srcdir/configure"; then
2621 # If neither matched, then we have a broken ls. This can happen
2622 # if, for instance, CONFIG_SHELL is bash and it inherits a
2623 # broken ls alias from the environment. This has actually
2624 # happened. Such a system could not be considered "sane".
2625 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2626 alias in your environment" "$LINENO" 5
2629 test "$2" = conftest.file
2631 then
2632 # Ok.
2634 else
2635 as_fn_error "newly created file is older than distributed files!
2636 Check your system clock" "$LINENO" 5
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639 $as_echo "yes" >&6; }
2640 test "$program_prefix" != NONE &&
2641 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2642 # Use a double $ so make ignores it.
2643 test "$program_suffix" != NONE &&
2644 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2645 # Double any \ or $.
2646 # By default was `s,x,x', remove it if useless.
2647 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2648 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2650 # expand $ac_aux_dir to an absolute path
2651 am_aux_dir=`cd $ac_aux_dir && pwd`
2653 if test x"${MISSING+set}" != xset; then
2654 case $am_aux_dir in
2655 *\ * | *\ *)
2656 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2658 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2659 esac
2661 # Use eval to expand $SHELL
2662 if eval "$MISSING --run true"; then
2663 am_missing_run="$MISSING --run "
2664 else
2665 am_missing_run=
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2667 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2670 if test x"${install_sh}" != xset; then
2671 case $am_aux_dir in
2672 *\ * | *\ *)
2673 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2675 install_sh="\${SHELL} $am_aux_dir/install-sh"
2676 esac
2679 # Installed binaries are usually stripped using `strip' when the user
2680 # run `make install-strip'. However `strip' might not be the right
2681 # tool to use in cross-compilation environments, therefore Automake
2682 # will honor the `STRIP' environment variable to overrule this program.
2683 if test "$cross_compiling" != no; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2686 set dummy ${ac_tool_prefix}strip; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if test "${ac_cv_prog_STRIP+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$STRIP"; then
2693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2706 done
2707 done
2708 IFS=$as_save_IFS
2712 STRIP=$ac_cv_prog_STRIP
2713 if test -n "$STRIP"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2715 $as_echo "$STRIP" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2723 if test -z "$ac_cv_prog_STRIP"; then
2724 ac_ct_STRIP=$STRIP
2725 # Extract the first word of "strip", so it can be a program name with args.
2726 set dummy strip; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$ac_ct_STRIP"; then
2733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_ac_ct_STRIP="strip"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2746 done
2747 done
2748 IFS=$as_save_IFS
2752 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2753 if test -n "$ac_ct_STRIP"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2755 $as_echo "$ac_ct_STRIP" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2761 if test "x$ac_ct_STRIP" = x; then
2762 STRIP=":"
2763 else
2764 case $cross_compiling:$ac_tool_warned in
2765 yes:)
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned=yes ;;
2769 esac
2770 STRIP=$ac_ct_STRIP
2772 else
2773 STRIP="$ac_cv_prog_STRIP"
2777 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2780 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2781 if test -z "$MKDIR_P"; then
2782 if test "${ac_cv_path_mkdir+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_prog in mkdir gmkdir; do
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2793 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2794 'mkdir (GNU coreutils) '* | \
2795 'mkdir (coreutils) '* | \
2796 'mkdir (fileutils) '4.1*)
2797 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2798 break 3;;
2799 esac
2800 done
2801 done
2802 done
2803 IFS=$as_save_IFS
2807 test -d ./--version && rmdir ./--version
2808 if test "${ac_cv_path_mkdir+set}" = set; then
2809 MKDIR_P="$ac_cv_path_mkdir -p"
2810 else
2811 # As a last resort, use the slow shell script. Don't cache a
2812 # value for MKDIR_P within a source directory, because that will
2813 # break other packages using the cache if that directory is
2814 # removed, or if the value is a relative name.
2815 MKDIR_P="$ac_install_sh -d"
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2819 $as_echo "$MKDIR_P" >&6; }
2821 mkdir_p="$MKDIR_P"
2822 case $mkdir_p in
2823 [\\/$]* | ?:[\\/]*) ;;
2824 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2825 esac
2827 for ac_prog in gawk mawk nawk awk
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if test "${ac_cv_prog_AWK+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$AWK"; then
2837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_AWK="$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2852 IFS=$as_save_IFS
2856 AWK=$ac_cv_prog_AWK
2857 if test -n "$AWK"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859 $as_echo "$AWK" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2866 test -n "$AWK" && break
2867 done
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871 set x ${MAKE-make}
2872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 cat >conftest.make <<\_ACEOF
2877 SHELL = /bin/sh
2878 all:
2879 @echo '@@@%%%=$(MAKE)=@@@%%%'
2880 _ACEOF
2881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883 *@@@%%%=?*=@@@%%%*)
2884 eval ac_cv_prog_make_${ac_make}_set=yes;;
2886 eval ac_cv_prog_make_${ac_make}_set=no;;
2887 esac
2888 rm -f conftest.make
2890 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 SET_MAKE=
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 SET_MAKE="MAKE=${MAKE-make}"
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2903 am__leading_dot=.
2904 else
2905 am__leading_dot=_
2907 rmdir .tst 2>/dev/null
2909 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2910 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2911 # is not polluted with repeated "-I."
2912 am__isrc=' -I$(srcdir)'
2913 # test to see if srcdir already configured
2914 if test -f $srcdir/config.status; then
2915 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2919 # test whether we have cygpath
2920 if test -z "$CYGPATH_W"; then
2921 if (cygpath --version) >/dev/null 2>/dev/null; then
2922 CYGPATH_W='cygpath -w'
2923 else
2924 CYGPATH_W=echo
2929 # Define the identity of the package.
2930 PACKAGE=abook
2931 VERSION=0.6.0pre2
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE "$PACKAGE"
2936 _ACEOF
2939 cat >>confdefs.h <<_ACEOF
2940 #define VERSION "$VERSION"
2941 _ACEOF
2943 # Some tools Automake needs.
2945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959 # We need awk for the "check" target. The system "awk" is bad on
2960 # some platforms.
2961 # Always define AMTAR for backward compatibility.
2963 AMTAR=${AMTAR-"${am_missing_run}tar"}
2965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2971 ac_config_headers="$ac_config_headers config.h"
2973 DEPDIR="${am__leading_dot}deps"
2975 ac_config_commands="$ac_config_commands depfiles"
2978 am_make=${MAKE-make}
2979 cat > confinc << 'END'
2980 am__doit:
2981 @echo this is the am__doit target
2982 .PHONY: am__doit
2984 # If we don't find an include directive, just comment out the code.
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2986 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2987 am__include="#"
2988 am__quote=
2989 _am_result=none
2990 # First try GNU make style include.
2991 echo "include confinc" > confmf
2992 # Ignore all kinds of additional output from `make'.
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target*)
2995 am__include=include
2996 am__quote=
2997 _am_result=GNU
2999 esac
3000 # Now try BSD make style include.
3001 if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
3003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target*)
3005 am__include=.include
3006 am__quote="\""
3007 _am_result=BSD
3009 esac
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3014 $as_echo "$_am_result" >&6; }
3015 rm -f confinc confmf
3017 # Check whether --enable-dependency-tracking was given.
3018 if test "${enable_dependency_tracking+set}" = set; then :
3019 enableval=$enable_dependency_tracking;
3022 if test "x$enable_dependency_tracking" != xno; then
3023 am_depcomp="$ac_aux_dir/depcomp"
3024 AMDEPBACKSLASH='\'
3026 if test "x$enable_dependency_tracking" != xno; then
3027 AMDEP_TRUE=
3028 AMDEP_FALSE='#'
3029 else
3030 AMDEP_TRUE='#'
3031 AMDEP_FALSE=
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_CC+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$ac_cv_prog_CC"; then
3080 ac_ct_CC=$CC
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082 set dummy gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3104 IFS=$as_save_IFS
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3117 if test "x$ac_ct_CC" = x; then
3118 CC=""
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126 CC=$ac_ct_CC
3128 else
3129 CC="$ac_cv_prog_CC"
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC="${ac_tool_prefix}cc"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3155 done
3156 done
3157 IFS=$as_save_IFS
3161 CC=$ac_cv_prog_CC
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3173 if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175 set dummy cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 ac_prog_rejected=no
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected=yes
3194 continue
3196 ac_cv_prog_CC="cc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3200 done
3201 done
3202 IFS=$as_save_IFS
3204 if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy $ac_cv_prog_CC
3207 shift
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3212 shift
3213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog in cl.exe
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_CC+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3254 done
3255 done
3256 IFS=$as_save_IFS
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3270 test -n "$CC" && break
3271 done
3273 if test -z "$CC"; then
3274 ac_ct_CC=$CC
3275 for ac_prog in cl.exe
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC="$ac_prog"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307 $as_echo "$ac_ct_CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3314 test -n "$ac_ct_CC" && break
3315 done
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 CC=$ac_ct_CC
3333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error "no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." "$LINENO" 5; }
3338 # Provide some information about the compiler.
3339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3340 set X $ac_compile
3341 ac_compiler=$2
3342 for ac_option in --version -v -V -qversion; do
3343 { { ac_try="$ac_compiler $ac_option >&5"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3351 ac_status=$?
3352 if test -s conftest.err; then
3353 sed '10a\
3354 ... rest of stderr output deleted ...
3355 10q' conftest.err >conftest.er1
3356 cat conftest.er1 >&5
3358 rm -f conftest.er1 conftest.err
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 done
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3371 return 0;
3373 _ACEOF
3374 ac_clean_files_save=$ac_clean_files
3375 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3376 # Try to create an executable without -o first, disregard a.out.
3377 # It will help us diagnose broken compilers, and finding out an intuition
3378 # of exeext.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3383 # The possible output files:
3384 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3386 ac_rmfiles=
3387 for ac_file in $ac_files
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392 esac
3393 done
3394 rm -f $ac_rmfiles
3396 if { { ac_try="$ac_link_default"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link_default") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3410 # so that the user can short-circuit this test for compilers unknown to
3411 # Autoconf.
3412 for ac_file in $ac_files ''
3414 test -f "$ac_file" || continue
3415 case $ac_file in
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3418 [ab].out )
3419 # We found the default executable, but exeext='' is most
3420 # certainly right.
3421 break;;
3422 *.* )
3423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3424 then :; else
3425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 # We set ac_cv_exeext here because the later test for it is not
3428 # safe: cross compilers may not add the suffix if given an `-o'
3429 # argument, so we may need to know it at that point already.
3430 # Even if this section looks crufty: it has the advantage of
3431 # actually working.
3432 break;;
3434 break;;
3435 esac
3436 done
3437 test "$ac_cv_exeext" = no && ac_cv_exeext=
3439 else
3440 ac_file=''
3442 if test -z "$ac_file"; then :
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 { as_fn_set_status 77
3451 as_fn_error "C compiler cannot create executables
3452 See \`config.log' for more details." "$LINENO" 5; }; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3458 $as_echo_n "checking for C compiler default output file name... " >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3460 $as_echo "$ac_file" >&6; }
3461 ac_exeext=$ac_cv_exeext
3463 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3464 ac_clean_files=$ac_clean_files_save
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3466 $as_echo_n "checking for suffix of executables... " >&6; }
3467 if { { ac_try="$ac_link"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link") 2>&5
3475 ac_status=$?
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3479 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3480 # work properly (i.e., refer to `conftest.exe'), while it won't with
3481 # `rm'.
3482 for ac_file in conftest.exe conftest conftest.*; do
3483 test -f "$ac_file" || continue
3484 case $ac_file in
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3486 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 break;;
3488 * ) break;;
3489 esac
3490 done
3491 else
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error "cannot compute suffix of executables: cannot compile and link
3495 See \`config.log' for more details." "$LINENO" 5; }
3497 rm -f conftest conftest$ac_cv_exeext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3499 $as_echo "$ac_cv_exeext" >&6; }
3501 rm -f conftest.$ac_ext
3502 EXEEXT=$ac_cv_exeext
3503 ac_exeext=$EXEEXT
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506 #include <stdio.h>
3508 main ()
3510 FILE *f = fopen ("conftest.out", "w");
3511 return ferror (f) || fclose (f) != 0;
3514 return 0;
3516 _ACEOF
3517 ac_clean_files="$ac_clean_files conftest.out"
3518 # Check that the compiler produces executables we can run. If not, either
3519 # the compiler is broken, or we cross compile.
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3521 $as_echo_n "checking whether we are cross compiling... " >&6; }
3522 if test "$cross_compiling" != yes; then
3523 { { ac_try="$ac_link"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3534 if { ac_try='./conftest$ac_cv_exeext'
3535 { { case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_try") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; }; then
3545 cross_compiling=no
3546 else
3547 if test "$cross_compiling" = maybe; then
3548 cross_compiling=yes
3549 else
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error "cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details." "$LINENO" 5; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3559 $as_echo "$cross_compiling" >&6; }
3561 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3562 ac_clean_files=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3564 $as_echo_n "checking for suffix of object files... " >&6; }
3565 if test "${ac_cv_objext+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3572 main ()
3576 return 0;
3578 _ACEOF
3579 rm -f conftest.o conftest.obj
3580 if { { ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compile") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }; then :
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3596 break;;
3597 esac
3598 done
3599 else
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error "cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details." "$LINENO" 5; }
3608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3611 $as_echo "$ac_cv_objext" >&6; }
3612 OBJEXT=$ac_cv_objext
3613 ac_objext=$OBJEXT
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3616 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3623 main ()
3625 #ifndef __GNUC__
3626 choke me
3627 #endif
3630 return 0;
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_compiler_gnu=yes
3635 else
3636 ac_compiler_gnu=no
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3643 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3644 if test $ac_compiler_gnu = yes; then
3645 GCC=yes
3646 else
3647 GCC=
3649 ac_test_CFLAGS=${CFLAGS+set}
3650 ac_save_CFLAGS=$CFLAGS
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3652 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3653 if test "${ac_cv_prog_cc_g+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 ac_save_c_werror_flag=$ac_c_werror_flag
3657 ac_c_werror_flag=yes
3658 ac_cv_prog_cc_g=no
3659 CFLAGS="-g"
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3664 main ()
3668 return 0;
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_cv_prog_cc_g=yes
3673 else
3674 CFLAGS=""
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3679 main ()
3683 return 0;
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3688 else
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3690 CFLAGS="-g"
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3695 main ()
3699 return 0;
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_prog_cc_g=yes
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_c_werror_flag=$ac_save_c_werror_flag
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3713 $as_echo "$ac_cv_prog_cc_g" >&6; }
3714 if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3718 CFLAGS="-g -O2"
3719 else
3720 CFLAGS="-g"
3722 else
3723 if test "$GCC" = yes; then
3724 CFLAGS="-O2"
3725 else
3726 CFLAGS=
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3730 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3731 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 ac_cv_prog_cc_c89=no
3735 ac_save_CC=$CC
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <stdarg.h>
3739 #include <stdio.h>
3740 #include <sys/types.h>
3741 #include <sys/stat.h>
3742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3743 struct buf { int x; };
3744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745 static char *e (p, i)
3746 char **p;
3747 int i;
3749 return p[i];
3751 static char *f (char * (*g) (char **, int), char **p, ...)
3753 char *s;
3754 va_list v;
3755 va_start (v,p);
3756 s = g (p, va_arg (v,int));
3757 va_end (v);
3758 return s;
3761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3762 function prototypes and stuff, but not '\xHH' hex character constants.
3763 These don't provoke an error unfortunately, instead are silently treated
3764 as 'x'. The following induces an error, until -std is added to get
3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3766 array size at least. It's necessary to write '\x00'==0 to get something
3767 that's true only with -std. */
3768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3771 inside strings and character constants. */
3772 #define FOO(x) 'x'
3773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3779 int argc;
3780 char **argv;
3782 main ()
3784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3786 return 0;
3788 _ACEOF
3789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792 CC="$ac_save_CC $ac_arg"
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_cv_prog_cc_c89=$ac_arg
3796 rm -f core conftest.err conftest.$ac_objext
3797 test "x$ac_cv_prog_cc_c89" != "xno" && break
3798 done
3799 rm -f conftest.$ac_ext
3800 CC=$ac_save_CC
3803 # AC_CACHE_VAL
3804 case "x$ac_cv_prog_cc_c89" in
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3807 $as_echo "none needed" >&6; } ;;
3808 xno)
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3810 $as_echo "unsupported" >&6; } ;;
3812 CC="$CC $ac_cv_prog_cc_c89"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3814 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3815 esac
3816 if test "x$ac_cv_prog_cc_c89" != xno; then :
3820 ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 depcc="$CC" am_compiler_list=
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3829 $as_echo_n "checking dependency style of $depcc... " >&6; }
3830 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834 # We make a subdir and do the tests there. Otherwise we can end up
3835 # making bogus files that we don't know about and never remove. For
3836 # instance it was reported that on HP-UX the gcc test will end up
3837 # making a dummy file named `D' -- because `-MD' means `put the output
3838 # in D'.
3839 mkdir conftest.dir
3840 # Copy depcomp to subdir because otherwise we won't find it if we're
3841 # using a relative directory.
3842 cp "$am_depcomp" conftest.dir
3843 cd conftest.dir
3844 # We will build objects and dependencies in a subdirectory because
3845 # it helps to detect inapplicable dependency modes. For instance
3846 # both Tru64's cc and ICC support -MD to output dependencies as a
3847 # side effect of compilation, but ICC will put the dependencies in
3848 # the current directory while Tru64 will put them in the object
3849 # directory.
3850 mkdir sub
3852 am_cv_CC_dependencies_compiler_type=none
3853 if test "$am_compiler_list" = ""; then
3854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3856 am__universal=false
3857 case " $depcc " in #(
3858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3859 esac
3861 for depmode in $am_compiler_list; do
3862 # Setup a source with many dependencies, because some compilers
3863 # like to wrap large dependency lists on column 80 (with \), and
3864 # we should not choose a depcomp mode which is confused by this.
3866 # We need to recreate these files for each test, as the compiler may
3867 # overwrite some of them when testing with obscure command lines.
3868 # This happens at least with the AIX C compiler.
3869 : > sub/conftest.c
3870 for i in 1 2 3 4 5 6; do
3871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3873 # Solaris 8's {/usr,}/bin/sh.
3874 touch sub/conftst$i.h
3875 done
3876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879 # mode. It turns out that the SunPro C++ compiler does not properly
3880 # handle `-M -o', and we need to detect this. Also, some Intel
3881 # versions had trouble with output in subdirs
3882 am__obj=sub/conftest.${OBJEXT-o}
3883 am__minus_obj="-o $am__obj"
3884 case $depmode in
3885 gcc)
3886 # This depmode causes a compiler race in universal mode.
3887 test "$am__universal" = false || continue
3889 nosideeffect)
3890 # after this tag, mechanisms are not by side-effect, so they'll
3891 # only be used when explicitly requested
3892 if test "x$enable_dependency_tracking" = xyes; then
3893 continue
3894 else
3895 break
3898 msvisualcpp | msvcmsys)
3899 # This compiler won't grok `-c -o', but also, the minuso test has
3900 # not run yet. These depmodes are late enough in the game, and
3901 # so weak that their functioning should not be impacted.
3902 am__obj=conftest.${OBJEXT-o}
3903 am__minus_obj=
3905 none) break ;;
3906 esac
3907 if depmode=$depmode \
3908 source=sub/conftest.c object=$am__obj \
3909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3911 >/dev/null 2>conftest.err &&
3912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3916 # icc doesn't choke on unknown options, it will just issue warnings
3917 # or remarks (even with -Werror). So we grep stderr for any message
3918 # that says an option was ignored or not supported.
3919 # When given -MP, icc 7.0 and 7.1 complain thusly:
3920 # icc: Command line warning: ignoring option '-M'; no argument required
3921 # The diagnosis changed in icc 8.0:
3922 # icc: Command line remark: option '-MP' not supported
3923 if (grep 'ignoring option' conftest.err ||
3924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3925 am_cv_CC_dependencies_compiler_type=$depmode
3926 break
3929 done
3931 cd ..
3932 rm -rf conftest.dir
3933 else
3934 am_cv_CC_dependencies_compiler_type=none
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3939 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3940 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3943 test "x$enable_dependency_tracking" != xno \
3944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3945 am__fastdepCC_TRUE=
3946 am__fastdepCC_FALSE='#'
3947 else
3948 am__fastdepCC_TRUE='#'
3949 am__fastdepCC_FALSE=
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3960 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3961 # On Suns, sometimes $CPP names a directory.
3962 if test -n "$CPP" && test -d "$CPP"; then
3963 CPP=
3965 if test -z "$CPP"; then
3966 if test "${ac_cv_prog_CPP+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 # Double quotes because CPP needs to be expanded
3970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3972 ac_preproc_ok=false
3973 for ac_c_preproc_warn_flag in '' yes
3975 # Use a header file that comes with gcc, so configuring glibc
3976 # with a fresh cross-compiler works.
3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3978 # <limits.h> exists even on freestanding compilers.
3979 # On the NeXT, cc -E runs the code through the compiler's parser,
3980 # not just through cpp. "Syntax error" is here to catch this case.
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #ifdef __STDC__
3984 # include <limits.h>
3985 #else
3986 # include <assert.h>
3987 #endif
3988 Syntax error
3989 _ACEOF
3990 if ac_fn_c_try_cpp "$LINENO"; then :
3992 else
3993 # Broken: fails on valid input.
3994 continue
3996 rm -f conftest.err conftest.$ac_ext
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <ac_nonexistent.h>
4003 _ACEOF
4004 if ac_fn_c_try_cpp "$LINENO"; then :
4005 # Broken: success on invalid input.
4006 continue
4007 else
4008 # Passes both tests.
4009 ac_preproc_ok=:
4010 break
4012 rm -f conftest.err conftest.$ac_ext
4014 done
4015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4016 rm -f conftest.err conftest.$ac_ext
4017 if $ac_preproc_ok; then :
4018 break
4021 done
4022 ac_cv_prog_CPP=$CPP
4025 CPP=$ac_cv_prog_CPP
4026 else
4027 ac_cv_prog_CPP=$CPP
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4030 $as_echo "$CPP" >&6; }
4031 ac_preproc_ok=false
4032 for ac_c_preproc_warn_flag in '' yes
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047 Syntax error
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4051 else
4052 # Broken: fails on valid input.
4053 continue
4055 rm -f conftest.err conftest.$ac_ext
4057 # OK, works on sane cases. Now check whether nonexistent headers
4058 # can be detected and how.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <ac_nonexistent.h>
4062 _ACEOF
4063 if ac_fn_c_try_cpp "$LINENO"; then :
4064 # Broken: success on invalid input.
4065 continue
4066 else
4067 # Passes both tests.
4068 ac_preproc_ok=:
4069 break
4071 rm -f conftest.err conftest.$ac_ext
4073 done
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.err conftest.$ac_ext
4076 if $ac_preproc_ok; then :
4078 else
4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4082 See \`config.log' for more details." "$LINENO" 5; }
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4094 if test "${ac_cv_path_GREP+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -z "$GREP"; then
4098 ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4109 # Check for GNU ac_path_GREP and select it if it is found.
4110 # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4112 *GNU*)
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115 ac_count=0
4116 $as_echo_n 0123456789 >"conftest.in"
4117 while :
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 $as_echo 'GREP' >> "conftest.nl"
4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 as_fn_arith $ac_count + 1 && ac_count=$as_val
4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4133 done
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4137 $ac_path_GREP_found && break 3
4138 done
4139 done
4140 done
4141 IFS=$as_save_IFS
4142 if test -z "$ac_cv_path_GREP"; then
4143 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145 else
4146 ac_cv_path_GREP=$GREP
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4151 $as_echo "$ac_cv_path_GREP" >&6; }
4152 GREP="$ac_cv_path_GREP"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4156 $as_echo_n "checking for egrep... " >&6; }
4157 if test "${ac_cv_path_EGREP+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4161 then ac_cv_path_EGREP="$GREP -E"
4162 else
4163 if test -z "$EGREP"; then
4164 ac_path_EGREP_found=false
4165 # Loop through the user's path and test for each of PROGNAME-LIST
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_prog in egrep; do
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4175 # Check for GNU ac_path_EGREP and select it if it is found.
4176 # Check for GNU $ac_path_EGREP
4177 case `"$ac_path_EGREP" --version 2>&1` in
4178 *GNU*)
4179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4181 ac_count=0
4182 $as_echo_n 0123456789 >"conftest.in"
4183 while :
4185 cat "conftest.in" "conftest.in" >"conftest.tmp"
4186 mv "conftest.tmp" "conftest.in"
4187 cp "conftest.in" "conftest.nl"
4188 $as_echo 'EGREP' >> "conftest.nl"
4189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4191 as_fn_arith $ac_count + 1 && ac_count=$as_val
4192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4193 # Best one so far, save it but keep looking for a better one
4194 ac_cv_path_EGREP="$ac_path_EGREP"
4195 ac_path_EGREP_max=$ac_count
4197 # 10*(2^10) chars as input seems more than enough
4198 test $ac_count -gt 10 && break
4199 done
4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201 esac
4203 $ac_path_EGREP_found && break 3
4204 done
4205 done
4206 done
4207 IFS=$as_save_IFS
4208 if test -z "$ac_cv_path_EGREP"; then
4209 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4211 else
4212 ac_cv_path_EGREP=$EGREP
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4218 $as_echo "$ac_cv_path_EGREP" >&6; }
4219 EGREP="$ac_cv_path_EGREP"
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4223 $as_echo_n "checking for ANSI C header files... " >&6; }
4224 if test "${ac_cv_header_stdc+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4230 #include <stdarg.h>
4231 #include <string.h>
4232 #include <float.h>
4235 main ()
4239 return 0;
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_cv_header_stdc=yes
4244 else
4245 ac_cv_header_stdc=no
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 if test $ac_cv_header_stdc = yes; then
4250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <string.h>
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "memchr" >/dev/null 2>&1; then :
4259 else
4260 ac_cv_header_stdc=no
4262 rm -f conftest*
4266 if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <stdlib.h>
4272 _ACEOF
4273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4274 $EGREP "free" >/dev/null 2>&1; then :
4276 else
4277 ac_cv_header_stdc=no
4279 rm -f conftest*
4283 if test $ac_cv_header_stdc = yes; then
4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4285 if test "$cross_compiling" = yes; then :
4287 else
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <ctype.h>
4291 #include <stdlib.h>
4292 #if ((' ' & 0x0FF) == 0x020)
4293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295 #else
4296 # define ISLOWER(c) \
4297 (('a' <= (c) && (c) <= 'i') \
4298 || ('j' <= (c) && (c) <= 'r') \
4299 || ('s' <= (c) && (c) <= 'z'))
4300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4301 #endif
4303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4305 main ()
4307 int i;
4308 for (i = 0; i < 256; i++)
4309 if (XOR (islower (i), ISLOWER (i))
4310 || toupper (i) != TOUPPER (i))
4311 return 2;
4312 return 0;
4314 _ACEOF
4315 if ac_fn_c_try_run "$LINENO"; then :
4317 else
4318 ac_cv_header_stdc=no
4320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4321 conftest.$ac_objext conftest.beam conftest.$ac_ext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4327 $as_echo "$ac_cv_header_stdc" >&6; }
4328 if test $ac_cv_header_stdc = yes; then
4330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336 inttypes.h stdint.h unistd.h
4337 do :
4338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4341 eval as_val=\$$as_ac_Header
4342 if test "x$as_val" = x""yes; then :
4343 cat >>confdefs.h <<_ACEOF
4344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345 _ACEOF
4349 done
4353 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4354 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4355 MINIX=yes
4356 else
4357 MINIX=
4361 if test "$MINIX" = yes; then
4363 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4366 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4369 $as_echo "#define _MINIX 1" >>confdefs.h
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4375 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4376 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4382 # define __EXTENSIONS__ 1
4383 $ac_includes_default
4385 main ()
4389 return 0;
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_safe_to_define___extensions__=yes
4394 else
4395 ac_cv_safe_to_define___extensions__=no
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4400 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4401 test $ac_cv_safe_to_define___extensions__ = yes &&
4402 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4404 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4406 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4408 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4410 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4417 $as_echo_n "checking whether NLS is requested... " >&6; }
4418 # Check whether --enable-nls was given.
4419 if test "${enable_nls+set}" = set; then :
4420 enableval=$enable_nls; USE_NLS=$enableval
4421 else
4422 USE_NLS=yes
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4426 $as_echo "$USE_NLS" >&6; }
4431 GETTEXT_MACRO_VERSION=0.17
4436 # Prepare PATH_SEPARATOR.
4437 # The user is always right.
4438 if test "${PATH_SEPARATOR+set}" != set; then
4439 echo "#! /bin/sh" >conf$$.sh
4440 echo "exit 0" >>conf$$.sh
4441 chmod +x conf$$.sh
4442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4443 PATH_SEPARATOR=';'
4444 else
4445 PATH_SEPARATOR=:
4447 rm -f conf$$.sh
4450 # Find out how to test for executable files. Don't use a zero-byte file,
4451 # as systems may use methods other than mode bits to determine executability.
4452 cat >conf$$.file <<_ASEOF
4453 #! /bin/sh
4454 exit 0
4455 _ASEOF
4456 chmod +x conf$$.file
4457 if test -x conf$$.file >/dev/null 2>&1; then
4458 ac_executable_p="test -x"
4459 else
4460 ac_executable_p="test -f"
4462 rm -f conf$$.file
4464 # Extract the first word of "msgfmt", so it can be a program name with args.
4465 set dummy msgfmt; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 case "$MSGFMT" in
4472 [\\/]* | ?:[\\/]*)
4473 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4476 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4477 for ac_dir in $PATH; do
4478 IFS="$ac_save_IFS"
4479 test -z "$ac_dir" && ac_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4482 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4483 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4484 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4485 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4486 break 2
4489 done
4490 done
4491 IFS="$ac_save_IFS"
4492 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4494 esac
4496 MSGFMT="$ac_cv_path_MSGFMT"
4497 if test "$MSGFMT" != ":"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4499 $as_echo "$MSGFMT" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4505 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4506 set dummy gmsgfmt; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 case $GMSGFMT in
4513 [\\/]* | ?:[\\/]*)
4514 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4532 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4534 esac
4536 GMSGFMT=$ac_cv_path_GMSGFMT
4537 if test -n "$GMSGFMT"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4539 $as_echo "$GMSGFMT" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4547 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4548 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4549 *) MSGFMT_015=$MSGFMT ;;
4550 esac
4552 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4553 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4554 *) GMSGFMT_015=$GMSGFMT ;;
4555 esac
4559 # Prepare PATH_SEPARATOR.
4560 # The user is always right.
4561 if test "${PATH_SEPARATOR+set}" != set; then
4562 echo "#! /bin/sh" >conf$$.sh
4563 echo "exit 0" >>conf$$.sh
4564 chmod +x conf$$.sh
4565 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4566 PATH_SEPARATOR=';'
4567 else
4568 PATH_SEPARATOR=:
4570 rm -f conf$$.sh
4573 # Find out how to test for executable files. Don't use a zero-byte file,
4574 # as systems may use methods other than mode bits to determine executability.
4575 cat >conf$$.file <<_ASEOF
4576 #! /bin/sh
4577 exit 0
4578 _ASEOF
4579 chmod +x conf$$.file
4580 if test -x conf$$.file >/dev/null 2>&1; then
4581 ac_executable_p="test -x"
4582 else
4583 ac_executable_p="test -f"
4585 rm -f conf$$.file
4587 # Extract the first word of "xgettext", so it can be a program name with args.
4588 set dummy xgettext; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 case "$XGETTEXT" in
4595 [\\/]* | ?:[\\/]*)
4596 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4599 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4600 for ac_dir in $PATH; do
4601 IFS="$ac_save_IFS"
4602 test -z "$ac_dir" && ac_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4605 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4606 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4607 (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
4608 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4609 break 2
4612 done
4613 done
4614 IFS="$ac_save_IFS"
4615 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4617 esac
4619 XGETTEXT="$ac_cv_path_XGETTEXT"
4620 if test "$XGETTEXT" != ":"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4622 $as_echo "$XGETTEXT" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4628 rm -f messages.po
4630 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4631 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4632 *) XGETTEXT_015=$XGETTEXT ;;
4633 esac
4637 # Prepare PATH_SEPARATOR.
4638 # The user is always right.
4639 if test "${PATH_SEPARATOR+set}" != set; then
4640 echo "#! /bin/sh" >conf$$.sh
4641 echo "exit 0" >>conf$$.sh
4642 chmod +x conf$$.sh
4643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4644 PATH_SEPARATOR=';'
4645 else
4646 PATH_SEPARATOR=:
4648 rm -f conf$$.sh
4651 # Find out how to test for executable files. Don't use a zero-byte file,
4652 # as systems may use methods other than mode bits to determine executability.
4653 cat >conf$$.file <<_ASEOF
4654 #! /bin/sh
4655 exit 0
4656 _ASEOF
4657 chmod +x conf$$.file
4658 if test -x conf$$.file >/dev/null 2>&1; then
4659 ac_executable_p="test -x"
4660 else
4661 ac_executable_p="test -f"
4663 rm -f conf$$.file
4665 # Extract the first word of "msgmerge", so it can be a program name with args.
4666 set dummy msgmerge; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 case "$MSGMERGE" in
4673 [\\/]* | ?:[\\/]*)
4674 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4677 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4678 for ac_dir in $PATH; do
4679 IFS="$ac_save_IFS"
4680 test -z "$ac_dir" && ac_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4683 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4684 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4685 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4686 break 2
4689 done
4690 done
4691 IFS="$ac_save_IFS"
4692 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4694 esac
4696 MSGMERGE="$ac_cv_path_MSGMERGE"
4697 if test "$MSGMERGE" != ":"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4699 $as_echo "$MSGMERGE" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4706 test -n "$localedir" || localedir='${datadir}/locale'
4709 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4712 ac_config_commands="$ac_config_commands po-directories"
4715 # Make sure we can run config.sub.
4716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4717 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4720 $as_echo_n "checking build system type... " >&6; }
4721 if test "${ac_cv_build+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 ac_build_alias=$build_alias
4725 test "x$ac_build_alias" = x &&
4726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4727 test "x$ac_build_alias" = x &&
4728 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4734 $as_echo "$ac_cv_build" >&6; }
4735 case $ac_cv_build in
4736 *-*-*) ;;
4737 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4738 esac
4739 build=$ac_cv_build
4740 ac_save_IFS=$IFS; IFS='-'
4741 set x $ac_cv_build
4742 shift
4743 build_cpu=$1
4744 build_vendor=$2
4745 shift; shift
4746 # Remember, the first character of IFS is used to create $*,
4747 # except with old shells:
4748 build_os=$*
4749 IFS=$ac_save_IFS
4750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4754 $as_echo_n "checking host system type... " >&6; }
4755 if test "${ac_cv_host+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test "x$host_alias" = x; then
4759 ac_cv_host=$ac_cv_build
4760 else
4761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4762 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4767 $as_echo "$ac_cv_host" >&6; }
4768 case $ac_cv_host in
4769 *-*-*) ;;
4770 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4771 esac
4772 host=$ac_cv_host
4773 ac_save_IFS=$IFS; IFS='-'
4774 set x $ac_cv_host
4775 shift
4776 host_cpu=$1
4777 host_vendor=$2
4778 shift; shift
4779 # Remember, the first character of IFS is used to create $*,
4780 # except with old shells:
4781 host_os=$*
4782 IFS=$ac_save_IFS
4783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4788 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4789 if test "${ac_cv_gnu_library_2+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4795 #include <features.h>
4796 #ifdef __GNU_LIBRARY__
4797 #if (__GLIBC__ >= 2)
4798 Lucky GNU user
4799 #endif
4800 #endif
4802 _ACEOF
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4805 ac_cv_gnu_library_2=yes
4806 else
4807 ac_cv_gnu_library_2=no
4809 rm -f conftest*
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4815 $as_echo "$ac_cv_gnu_library_2" >&6; }
4817 GLIBC2="$ac_cv_gnu_library_2"
4820 if test -n "$ac_tool_prefix"; then
4821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$RANLIB"; then
4829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 RANLIB=$ac_cv_prog_RANLIB
4849 if test -n "$RANLIB"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4851 $as_echo "$RANLIB" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4859 if test -z "$ac_cv_prog_RANLIB"; then
4860 ac_ct_RANLIB=$RANLIB
4861 # Extract the first word of "ranlib", so it can be a program name with args.
4862 set dummy ranlib; ac_word=$2
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 $as_echo_n "checking for $ac_word... " >&6; }
4865 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -n "$ac_ct_RANLIB"; then
4869 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_ac_ct_RANLIB="ranlib"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4882 done
4883 done
4884 IFS=$as_save_IFS
4888 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4889 if test -n "$ac_ct_RANLIB"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4891 $as_echo "$ac_ct_RANLIB" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4897 if test "x$ac_ct_RANLIB" = x; then
4898 RANLIB=":"
4899 else
4900 case $cross_compiling:$ac_tool_warned in
4901 yes:)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4905 esac
4906 RANLIB=$ac_ct_RANLIB
4908 else
4909 RANLIB="$ac_cv_prog_RANLIB"
4914 CFLAG_VISIBILITY=
4915 HAVE_VISIBILITY=0
4916 if test -n "$GCC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4918 $as_echo_n "checking for simple visibility declarations... " >&6; }
4919 if test "${gl_cv_cc_visibility+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4923 gl_save_CFLAGS="$CFLAGS"
4924 CFLAGS="$CFLAGS -fvisibility=hidden"
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4928 extern __attribute__((__visibility__("default"))) int exportedvar;
4929 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4930 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4932 main ()
4936 return 0;
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 gl_cv_cc_visibility=yes
4941 else
4942 gl_cv_cc_visibility=no
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 CFLAGS="$gl_save_CFLAGS"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
4949 $as_echo "$gl_cv_cc_visibility" >&6; }
4950 if test $gl_cv_cc_visibility = yes; then
4951 CFLAG_VISIBILITY="-fvisibility=hidden"
4952 HAVE_VISIBILITY=1
4958 cat >>confdefs.h <<_ACEOF
4959 #define HAVE_VISIBILITY $HAVE_VISIBILITY
4960 _ACEOF
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4964 $as_echo_n "checking for inline... " >&6; }
4965 if test "${ac_cv_c_inline+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 ac_cv_c_inline=no
4969 for ac_kw in inline __inline__ __inline; do
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 #ifndef __cplusplus
4973 typedef int foo_t;
4974 static $ac_kw foo_t static_foo () {return 0; }
4975 $ac_kw foo_t foo () {return 0; }
4976 #endif
4978 _ACEOF
4979 if ac_fn_c_try_compile "$LINENO"; then :
4980 ac_cv_c_inline=$ac_kw
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 test "$ac_cv_c_inline" != no && break
4984 done
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4988 $as_echo "$ac_cv_c_inline" >&6; }
4990 case $ac_cv_c_inline in
4991 inline | yes) ;;
4993 case $ac_cv_c_inline in
4994 no) ac_val=;;
4995 *) ac_val=$ac_cv_c_inline;;
4996 esac
4997 cat >>confdefs.h <<_ACEOF
4998 #ifndef __cplusplus
4999 #define inline $ac_val
5000 #endif
5001 _ACEOF
5003 esac
5005 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5006 if test "x$ac_cv_type_size_t" = x""yes; then :
5008 else
5010 cat >>confdefs.h <<_ACEOF
5011 #define size_t unsigned int
5012 _ACEOF
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5018 $as_echo_n "checking for stdint.h... " >&6; }
5019 if test "${gl_cv_header_stdint_h+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <sys/types.h>
5025 #include <stdint.h>
5027 main ()
5029 uintmax_t i = (uintmax_t) -1; return !i;
5031 return 0;
5033 _ACEOF
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 gl_cv_header_stdint_h=yes
5036 else
5037 gl_cv_header_stdint_h=no
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5042 $as_echo "$gl_cv_header_stdint_h" >&6; }
5043 if test $gl_cv_header_stdint_h = yes; then
5045 cat >>confdefs.h <<_ACEOF
5046 #define HAVE_STDINT_H_WITH_UINTMAX 1
5047 _ACEOF
5051 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5052 # for constant arguments. Useless!
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5054 $as_echo_n "checking for working alloca.h... " >&6; }
5055 if test "${ac_cv_working_alloca_h+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #include <alloca.h>
5062 main ()
5064 char *p = (char *) alloca (2 * sizeof (int));
5065 if (p) return 0;
5067 return 0;
5069 _ACEOF
5070 if ac_fn_c_try_link "$LINENO"; then :
5071 ac_cv_working_alloca_h=yes
5072 else
5073 ac_cv_working_alloca_h=no
5075 rm -f core conftest.err conftest.$ac_objext \
5076 conftest$ac_exeext conftest.$ac_ext
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5079 $as_echo "$ac_cv_working_alloca_h" >&6; }
5080 if test $ac_cv_working_alloca_h = yes; then
5082 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5087 $as_echo_n "checking for alloca... " >&6; }
5088 if test "${ac_cv_func_alloca_works+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 #ifdef __GNUC__
5094 # define alloca __builtin_alloca
5095 #else
5096 # ifdef _MSC_VER
5097 # include <malloc.h>
5098 # define alloca _alloca
5099 # else
5100 # ifdef HAVE_ALLOCA_H
5101 # include <alloca.h>
5102 # else
5103 # ifdef _AIX
5104 #pragma alloca
5105 # else
5106 # ifndef alloca /* predefined by HP cc +Olibcalls */
5107 char *alloca ();
5108 # endif
5109 # endif
5110 # endif
5111 # endif
5112 #endif
5115 main ()
5117 char *p = (char *) alloca (1);
5118 if (p) return 0;
5120 return 0;
5122 _ACEOF
5123 if ac_fn_c_try_link "$LINENO"; then :
5124 ac_cv_func_alloca_works=yes
5125 else
5126 ac_cv_func_alloca_works=no
5128 rm -f core conftest.err conftest.$ac_objext \
5129 conftest$ac_exeext conftest.$ac_ext
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5132 $as_echo "$ac_cv_func_alloca_works" >&6; }
5134 if test $ac_cv_func_alloca_works = yes; then
5136 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5138 else
5139 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5140 # that cause trouble. Some versions do not even contain alloca or
5141 # contain a buggy version. If you still want to use their alloca,
5142 # use ar to extract alloca.o from them instead of compiling alloca.c.
5144 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5146 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5150 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5151 if test "${ac_cv_os_cray+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #if defined CRAY && ! defined CRAY2
5157 webecray
5158 #else
5159 wenotbecray
5160 #endif
5162 _ACEOF
5163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5164 $EGREP "webecray" >/dev/null 2>&1; then :
5165 ac_cv_os_cray=yes
5166 else
5167 ac_cv_os_cray=no
5169 rm -f conftest*
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5173 $as_echo "$ac_cv_os_cray" >&6; }
5174 if test $ac_cv_os_cray = yes; then
5175 for ac_func in _getb67 GETB67 getb67; do
5176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5178 eval as_val=\$$as_ac_var
5179 if test "x$as_val" = x""yes; then :
5181 cat >>confdefs.h <<_ACEOF
5182 #define CRAY_STACKSEG_END $ac_func
5183 _ACEOF
5185 break
5188 done
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5192 $as_echo_n "checking stack direction for C alloca... " >&6; }
5193 if test "${ac_cv_c_stack_direction+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test "$cross_compiling" = yes; then :
5197 ac_cv_c_stack_direction=0
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 $ac_includes_default
5203 find_stack_direction ()
5205 static char *addr = 0;
5206 auto char dummy;
5207 if (addr == 0)
5209 addr = &dummy;
5210 return find_stack_direction ();
5212 else
5213 return (&dummy > addr) ? 1 : -1;
5217 main ()
5219 return find_stack_direction () < 0;
5221 _ACEOF
5222 if ac_fn_c_try_run "$LINENO"; then :
5223 ac_cv_c_stack_direction=1
5224 else
5225 ac_cv_c_stack_direction=-1
5227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5228 conftest.$ac_objext conftest.beam conftest.$ac_ext
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5233 $as_echo "$ac_cv_c_stack_direction" >&6; }
5234 cat >>confdefs.h <<_ACEOF
5235 #define STACK_DIRECTION $ac_cv_c_stack_direction
5236 _ACEOF
5244 for ac_header in $ac_header_list
5245 do :
5246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5247 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249 eval as_val=\$$as_ac_Header
5250 if test "x$as_val" = x""yes; then :
5251 cat >>confdefs.h <<_ACEOF
5252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5257 done
5266 for ac_func in getpagesize
5267 do :
5268 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5269 if test "x$ac_cv_func_getpagesize" = x""yes; then :
5270 cat >>confdefs.h <<_ACEOF
5271 #define HAVE_GETPAGESIZE 1
5272 _ACEOF
5275 done
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5278 $as_echo_n "checking for working mmap... " >&6; }
5279 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test "$cross_compiling" = yes; then :
5283 ac_cv_func_mmap_fixed_mapped=no
5284 else
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 $ac_includes_default
5288 /* malloc might have been renamed as rpl_malloc. */
5289 #undef malloc
5291 /* Thanks to Mike Haertel and Jim Avera for this test.
5292 Here is a matrix of mmap possibilities:
5293 mmap private not fixed
5294 mmap private fixed at somewhere currently unmapped
5295 mmap private fixed at somewhere already mapped
5296 mmap shared not fixed
5297 mmap shared fixed at somewhere currently unmapped
5298 mmap shared fixed at somewhere already mapped
5299 For private mappings, we should verify that changes cannot be read()
5300 back from the file, nor mmap's back from the file at a different
5301 address. (There have been systems where private was not correctly
5302 implemented like the infamous i386 svr4.0, and systems where the
5303 VM page cache was not coherent with the file system buffer cache
5304 like early versions of FreeBSD and possibly contemporary NetBSD.)
5305 For shared mappings, we should conversely verify that changes get
5306 propagated back to all the places they're supposed to be.
5308 Grep wants private fixed already mapped.
5309 The main things grep needs to know about mmap are:
5310 * does it exist and is it safe to write into the mmap'd area
5311 * how to use it (BSD variants) */
5313 #include <fcntl.h>
5314 #include <sys/mman.h>
5316 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5317 char *malloc ();
5318 #endif
5320 /* This mess was copied from the GNU getpagesize.h. */
5321 #ifndef HAVE_GETPAGESIZE
5322 # ifdef _SC_PAGESIZE
5323 # define getpagesize() sysconf(_SC_PAGESIZE)
5324 # else /* no _SC_PAGESIZE */
5325 # ifdef HAVE_SYS_PARAM_H
5326 # include <sys/param.h>
5327 # ifdef EXEC_PAGESIZE
5328 # define getpagesize() EXEC_PAGESIZE
5329 # else /* no EXEC_PAGESIZE */
5330 # ifdef NBPG
5331 # define getpagesize() NBPG * CLSIZE
5332 # ifndef CLSIZE
5333 # define CLSIZE 1
5334 # endif /* no CLSIZE */
5335 # else /* no NBPG */
5336 # ifdef NBPC
5337 # define getpagesize() NBPC
5338 # else /* no NBPC */
5339 # ifdef PAGESIZE
5340 # define getpagesize() PAGESIZE
5341 # endif /* PAGESIZE */
5342 # endif /* no NBPC */
5343 # endif /* no NBPG */
5344 # endif /* no EXEC_PAGESIZE */
5345 # else /* no HAVE_SYS_PARAM_H */
5346 # define getpagesize() 8192 /* punt totally */
5347 # endif /* no HAVE_SYS_PARAM_H */
5348 # endif /* no _SC_PAGESIZE */
5350 #endif /* no HAVE_GETPAGESIZE */
5353 main ()
5355 char *data, *data2, *data3;
5356 int i, pagesize;
5357 int fd, fd2;
5359 pagesize = getpagesize ();
5361 /* First, make a file with some known garbage in it. */
5362 data = (char *) malloc (pagesize);
5363 if (!data)
5364 return 1;
5365 for (i = 0; i < pagesize; ++i)
5366 *(data + i) = rand ();
5367 umask (0);
5368 fd = creat ("conftest.mmap", 0600);
5369 if (fd < 0)
5370 return 2;
5371 if (write (fd, data, pagesize) != pagesize)
5372 return 3;
5373 close (fd);
5375 /* Next, check that the tail of a page is zero-filled. File must have
5376 non-zero length, otherwise we risk SIGBUS for entire page. */
5377 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5378 if (fd2 < 0)
5379 return 4;
5380 data2 = "";
5381 if (write (fd2, data2, 1) != 1)
5382 return 5;
5383 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5384 if (data2 == MAP_FAILED)
5385 return 6;
5386 for (i = 0; i < pagesize; ++i)
5387 if (*(data2 + i))
5388 return 7;
5389 close (fd2);
5390 if (munmap (data2, pagesize))
5391 return 8;
5393 /* Next, try to mmap the file at a fixed address which already has
5394 something else allocated at it. If we can, also make sure that
5395 we see the same garbage. */
5396 fd = open ("conftest.mmap", O_RDWR);
5397 if (fd < 0)
5398 return 9;
5399 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5400 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5401 return 10;
5402 for (i = 0; i < pagesize; ++i)
5403 if (*(data + i) != *(data2 + i))
5404 return 11;
5406 /* Finally, make sure that changes to the mapped area do not
5407 percolate back to the file as seen by read(). (This is a bug on
5408 some variants of i386 svr4.0.) */
5409 for (i = 0; i < pagesize; ++i)
5410 *(data2 + i) = *(data2 + i) + 1;
5411 data3 = (char *) malloc (pagesize);
5412 if (!data3)
5413 return 12;
5414 if (read (fd, data3, pagesize) != pagesize)
5415 return 13;
5416 for (i = 0; i < pagesize; ++i)
5417 if (*(data + i) != *(data3 + i))
5418 return 14;
5419 close (fd);
5420 return 0;
5422 _ACEOF
5423 if ac_fn_c_try_run "$LINENO"; then :
5424 ac_cv_func_mmap_fixed_mapped=yes
5425 else
5426 ac_cv_func_mmap_fixed_mapped=no
5428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5429 conftest.$ac_objext conftest.beam conftest.$ac_ext
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5434 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5437 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5440 rm -f conftest.mmap conftest.txt
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5445 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5446 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5450 gt_cv_int_divbyzero_sigfpe=
5451 case "$host_os" in
5452 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5453 # On MacOS X 10.2 or newer, just assume the same as when cross-
5454 # compiling. If we were to perform the real test, 1 Crash Report
5455 # dialog window would pop up.
5456 case "$host_cpu" in
5457 i[34567]86 | x86_64)
5458 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5459 esac
5461 esac
5462 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5463 if test "$cross_compiling" = yes; then :
5465 # Guess based on the CPU.
5466 case "$host_cpu" in
5467 alpha* | i[34567]86 | x86_64 | m68k | s390*)
5468 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5470 gt_cv_int_divbyzero_sigfpe="guessing no";;
5471 esac
5473 else
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5477 #include <stdlib.h>
5478 #include <signal.h>
5480 static void
5481 sigfpe_handler (int sig)
5483 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5484 exit (sig != SIGFPE);
5487 int x = 1;
5488 int y = 0;
5489 int z;
5490 int nan;
5492 int main ()
5494 signal (SIGFPE, sigfpe_handler);
5495 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5496 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5497 signal (SIGTRAP, sigfpe_handler);
5498 #endif
5499 /* Linux/SPARC yields signal SIGILL. */
5500 #if defined (__sparc__) && defined (__linux__)
5501 signal (SIGILL, sigfpe_handler);
5502 #endif
5504 z = x / y;
5505 nan = y / y;
5506 exit (1);
5509 _ACEOF
5510 if ac_fn_c_try_run "$LINENO"; then :
5511 gt_cv_int_divbyzero_sigfpe=yes
5512 else
5513 gt_cv_int_divbyzero_sigfpe=no
5515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5516 conftest.$ac_objext conftest.beam conftest.$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5523 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5524 case "$gt_cv_int_divbyzero_sigfpe" in
5525 *yes) value=1;;
5526 *) value=0;;
5527 esac
5529 cat >>confdefs.h <<_ACEOF
5530 #define INTDIV0_RAISES_SIGFPE $value
5531 _ACEOF
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5536 $as_echo_n "checking for inttypes.h... " >&6; }
5537 if test "${gl_cv_header_inttypes_h+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <sys/types.h>
5543 #include <inttypes.h>
5545 main ()
5547 uintmax_t i = (uintmax_t) -1; return !i;
5549 return 0;
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 gl_cv_header_inttypes_h=yes
5554 else
5555 gl_cv_header_inttypes_h=no
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5560 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5561 if test $gl_cv_header_inttypes_h = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5565 _ACEOF
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5571 $as_echo_n "checking for unsigned long long int... " >&6; }
5572 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5578 /* Test preprocessor. */
5579 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5580 error in preprocessor;
5581 #endif
5582 #if ! (18446744073709551615ULL <= -1ull)
5583 error in preprocessor;
5584 #endif
5585 /* Test literals. */
5586 long long int ll = 9223372036854775807ll;
5587 long long int nll = -9223372036854775807LL;
5588 unsigned long long int ull = 18446744073709551615ULL;
5589 /* Test constant expressions. */
5590 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5591 ? 1 : -1)];
5592 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5593 ? 1 : -1)];
5594 int i = 63;
5596 main ()
5598 /* Test availability of runtime routines for shift and division. */
5599 long long int llmax = 9223372036854775807ll;
5600 unsigned long long int ullmax = 18446744073709551615ull;
5601 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5602 | (llmax / ll) | (llmax % ll)
5603 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5604 | (ullmax / ull) | (ullmax % ull));
5606 return 0;
5609 _ACEOF
5610 if ac_fn_c_try_link "$LINENO"; then :
5611 ac_cv_type_unsigned_long_long_int=yes
5612 else
5613 ac_cv_type_unsigned_long_long_int=no
5615 rm -f core conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5619 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5620 if test $ac_cv_type_unsigned_long_long_int = yes; then
5622 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5629 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5631 test $ac_cv_type_unsigned_long_long_int = yes \
5632 && ac_type='unsigned long long' \
5633 || ac_type='unsigned long'
5635 cat >>confdefs.h <<_ACEOF
5636 #define uintmax_t $ac_type
5637 _ACEOF
5639 else
5641 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5646 for ac_header in inttypes.h
5647 do :
5648 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5649 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
5650 cat >>confdefs.h <<_ACEOF
5651 #define HAVE_INTTYPES_H 1
5652 _ACEOF
5656 done
5658 if test $ac_cv_header_inttypes_h = yes; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5660 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5661 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <inttypes.h>
5668 #ifdef PRId32
5669 char *p = PRId32;
5670 #endif
5673 main ()
5677 return 0;
5679 _ACEOF
5680 if ac_fn_c_try_compile "$LINENO"; then :
5681 gt_cv_inttypes_pri_broken=no
5682 else
5683 gt_cv_inttypes_pri_broken=yes
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5689 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5691 if test "$gt_cv_inttypes_pri_broken" = yes; then
5693 cat >>confdefs.h <<_ACEOF
5694 #define PRI_MACROS_BROKEN 1
5695 _ACEOF
5697 PRI_MACROS_BROKEN=1
5698 else
5699 PRI_MACROS_BROKEN=0
5707 # Check whether --enable-threads was given.
5708 if test "${enable_threads+set}" = set; then :
5709 enableval=$enable_threads; gl_use_threads=$enableval
5710 else
5711 case "$host_os" in
5712 osf*) gl_use_threads=no ;;
5713 *) gl_use_threads=yes ;;
5714 esac
5718 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5719 # For using <pthread.h>:
5720 case "$host_os" in
5721 osf*)
5722 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5723 # groks <pthread.h>. cc also understands the flag -pthread, but
5724 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5725 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5726 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5727 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5728 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5730 esac
5731 # Some systems optimize for single-threaded programs by default, and
5732 # need special flags to disable these optimizations. For example, the
5733 # definition of 'errno' in <errno.h>.
5734 case "$host_os" in
5735 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5736 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5737 esac
5744 if test "X$prefix" = "XNONE"; then
5745 acl_final_prefix="$ac_default_prefix"
5746 else
5747 acl_final_prefix="$prefix"
5749 if test "X$exec_prefix" = "XNONE"; then
5750 acl_final_exec_prefix='${prefix}'
5751 else
5752 acl_final_exec_prefix="$exec_prefix"
5754 acl_save_prefix="$prefix"
5755 prefix="$acl_final_prefix"
5756 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5757 prefix="$acl_save_prefix"
5760 # Check whether --with-gnu-ld was given.
5761 if test "${with_gnu_ld+set}" = set; then :
5762 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5763 else
5764 with_gnu_ld=no
5767 # Prepare PATH_SEPARATOR.
5768 # The user is always right.
5769 if test "${PATH_SEPARATOR+set}" != set; then
5770 echo "#! /bin/sh" >conf$$.sh
5771 echo "exit 0" >>conf$$.sh
5772 chmod +x conf$$.sh
5773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5774 PATH_SEPARATOR=';'
5775 else
5776 PATH_SEPARATOR=:
5778 rm -f conf$$.sh
5780 ac_prog=ld
5781 if test "$GCC" = yes; then
5782 # Check if gcc -print-prog-name=ld gives a path.
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5784 $as_echo_n "checking for ld used by GCC... " >&6; }
5785 case $host in
5786 *-*-mingw*)
5787 # gcc leaves a trailing carriage return which upsets mingw
5788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5791 esac
5792 case $ac_prog in
5793 # Accept absolute paths.
5794 [\\/]* | [A-Za-z]:[\\/]*)
5795 re_direlt='/[^/][^/]*/\.\./'
5796 # Canonicalize the path of ld
5797 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5798 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5799 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5800 done
5801 test -z "$LD" && LD="$ac_prog"
5804 # If it fails, then pretend we aren't using GCC.
5805 ac_prog=ld
5808 # If it is relative, then search for the first ld in PATH.
5809 with_gnu_ld=unknown
5811 esac
5812 elif test "$with_gnu_ld" = yes; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5814 $as_echo_n "checking for GNU ld... " >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5817 $as_echo_n "checking for non-GNU ld... " >&6; }
5819 if test "${acl_cv_path_LD+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -z "$LD"; then
5823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5824 for ac_dir in $PATH; do
5825 test -z "$ac_dir" && ac_dir=.
5826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5827 acl_cv_path_LD="$ac_dir/$ac_prog"
5828 # Check to see if the program is GNU ld. I'd rather use --version,
5829 # but apparently some GNU ld's only accept -v.
5830 # Break only if it was the GNU/non-GNU ld that we prefer.
5831 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5832 *GNU* | *'with BFD'*)
5833 test "$with_gnu_ld" != no && break ;;
5835 test "$with_gnu_ld" != yes && break ;;
5836 esac
5838 done
5839 IFS="$ac_save_ifs"
5840 else
5841 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5845 LD="$acl_cv_path_LD"
5846 if test -n "$LD"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5848 $as_echo "$LD" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5853 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5856 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5860 case `$LD -v 2>&1 </dev/null` in
5861 *GNU* | *'with BFD'*)
5862 acl_cv_prog_gnu_ld=yes ;;
5864 acl_cv_prog_gnu_ld=no ;;
5865 esac
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5868 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5869 with_gnu_ld=$acl_cv_prog_gnu_ld
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5875 $as_echo_n "checking for shared library run path origin... " >&6; }
5876 if test "${acl_cv_rpath+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5880 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5881 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5882 . ./conftest.sh
5883 rm -f ./conftest.sh
5884 acl_cv_rpath=done
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5888 $as_echo "$acl_cv_rpath" >&6; }
5889 wl="$acl_cv_wl"
5890 acl_libext="$acl_cv_libext"
5891 acl_shlibext="$acl_cv_shlibext"
5892 acl_libname_spec="$acl_cv_libname_spec"
5893 acl_library_names_spec="$acl_cv_library_names_spec"
5894 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5895 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5896 acl_hardcode_direct="$acl_cv_hardcode_direct"
5897 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5898 # Check whether --enable-rpath was given.
5899 if test "${enable_rpath+set}" = set; then :
5900 enableval=$enable_rpath; :
5901 else
5902 enable_rpath=yes
5907 acl_libdirstem=lib
5908 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5909 if test -n "$searchpath"; then
5910 acl_save_IFS="${IFS= }"; IFS=":"
5911 for searchdir in $searchpath; do
5912 if test -d "$searchdir"; then
5913 case "$searchdir" in
5914 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5915 *) searchdir=`cd "$searchdir" && pwd`
5916 case "$searchdir" in
5917 */lib64 ) acl_libdirstem=lib64 ;;
5918 esac ;;
5919 esac
5921 done
5922 IFS="$acl_save_IFS"
5927 gl_threads_api=none
5928 LIBTHREAD=
5929 LTLIBTHREAD=
5930 LIBMULTITHREAD=
5931 LTLIBMULTITHREAD=
5932 if test "$gl_use_threads" != no; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
5934 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
5935 gl_have_weak=no
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 extern void xyzzy ();
5939 #pragma weak xyzzy
5941 main ()
5943 xyzzy();
5945 return 0;
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 gl_have_weak=yes
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
5954 $as_echo "$gl_have_weak" >&6; }
5955 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5956 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
5957 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
5958 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5959 if test "x$ac_cv_header_pthread_h" = x""yes; then :
5960 gl_have_pthread_h=yes
5961 else
5962 gl_have_pthread_h=no
5966 if test "$gl_have_pthread_h" = yes; then
5967 # Other possible tests:
5968 # -lpthreads (FSU threads, PCthreads)
5969 # -lgthreads
5970 gl_have_pthread=
5971 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
5972 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
5973 # the second one only in libpthread, and lock.c needs it.
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 #include <pthread.h>
5978 main ()
5980 pthread_mutex_lock((pthread_mutex_t*)0);
5981 pthread_mutexattr_init((pthread_mutexattr_t*)0);
5983 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_link "$LINENO"; then :
5987 gl_have_pthread=yes
5989 rm -f core conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5991 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
5992 # since it is defined as a macro on OSF/1.)
5993 if test -n "$gl_have_pthread"; then
5994 # The program links fine without libpthread. But it may actually
5995 # need to link with libpthread in order to create multiple threads.
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
5997 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
5998 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 ac_check_lib_save_LIBS=$LIBS
6002 LIBS="-lpthread $LIBS"
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6006 /* Override any GCC internal prototype to avoid an error.
6007 Use char because int might match the return type of a GCC
6008 builtin and then its argument prototype would still apply. */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 char pthread_kill ();
6014 main ()
6016 return pthread_kill ();
6018 return 0;
6020 _ACEOF
6021 if ac_fn_c_try_link "$LINENO"; then :
6022 ac_cv_lib_pthread_pthread_kill=yes
6023 else
6024 ac_cv_lib_pthread_pthread_kill=no
6026 rm -f core conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028 LIBS=$ac_check_lib_save_LIBS
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6031 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6032 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
6033 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6034 # On Solaris and HP-UX, most pthread functions exist also in libc.
6035 # Therefore pthread_in_use() needs to actually try to create a
6036 # thread: pthread_create from libc will fail, whereas
6037 # pthread_create will actually create a thread.
6038 case "$host_os" in
6039 solaris* | hpux*)
6041 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6043 esac
6047 else
6048 # Some library is needed. Try libpthread and libc_r.
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6050 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6051 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lpthread $LIBS"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6062 #ifdef __cplusplus
6063 extern "C"
6064 #endif
6065 char pthread_kill ();
6067 main ()
6069 return pthread_kill ();
6071 return 0;
6073 _ACEOF
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 ac_cv_lib_pthread_pthread_kill=yes
6076 else
6077 ac_cv_lib_pthread_pthread_kill=no
6079 rm -f core conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6084 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6085 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
6086 gl_have_pthread=yes
6087 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6088 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6091 if test -z "$gl_have_pthread"; then
6092 # For FreeBSD 4.
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6094 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6095 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 ac_check_lib_save_LIBS=$LIBS
6099 LIBS="-lc_r $LIBS"
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6103 /* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
6106 #ifdef __cplusplus
6107 extern "C"
6108 #endif
6109 char pthread_kill ();
6111 main ()
6113 return pthread_kill ();
6115 return 0;
6117 _ACEOF
6118 if ac_fn_c_try_link "$LINENO"; then :
6119 ac_cv_lib_c_r_pthread_kill=yes
6120 else
6121 ac_cv_lib_c_r_pthread_kill=no
6123 rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6125 LIBS=$ac_check_lib_save_LIBS
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6128 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6129 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
6130 gl_have_pthread=yes
6131 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6132 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6137 if test -n "$gl_have_pthread"; then
6138 gl_threads_api=posix
6140 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6142 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6143 if test $gl_have_weak = yes; then
6145 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6147 LIBTHREAD=
6148 LTLIBTHREAD=
6151 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6152 # pthread_rwlock_* functions.
6153 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6155 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
6157 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6161 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <pthread.h>
6166 main ()
6168 #if __FreeBSD__ == 4
6169 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6170 #else
6171 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6172 return !x;
6173 #endif
6175 return 0;
6177 _ACEOF
6178 if ac_fn_c_try_compile "$LINENO"; then :
6180 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 if test -z "$gl_have_pthread"; then
6188 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6189 gl_have_solaristhread=
6190 gl_save_LIBS="$LIBS"
6191 LIBS="$LIBS -lthread"
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #include <thread.h>
6195 #include <synch.h>
6197 main ()
6199 thr_self();
6201 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_link "$LINENO"; then :
6205 gl_have_solaristhread=yes
6207 rm -f core conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6209 LIBS="$gl_save_LIBS"
6210 if test -n "$gl_have_solaristhread"; then
6211 gl_threads_api=solaris
6212 LIBTHREAD=-lthread
6213 LTLIBTHREAD=-lthread
6214 LIBMULTITHREAD="$LIBTHREAD"
6215 LTLIBMULTITHREAD="$LTLIBTHREAD"
6217 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6219 if test $gl_have_weak = yes; then
6221 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6223 LIBTHREAD=
6224 LTLIBTHREAD=
6229 if test "$gl_use_threads" = pth; then
6230 gl_save_CPPFLAGS="$CPPFLAGS"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6237 $as_echo_n "checking how to link with libpth... " >&6; }
6238 if test "${ac_cv_libpth_libs+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6246 use_additional=yes
6248 acl_save_prefix="$prefix"
6249 prefix="$acl_final_prefix"
6250 acl_save_exec_prefix="$exec_prefix"
6251 exec_prefix="$acl_final_exec_prefix"
6253 eval additional_includedir=\"$includedir\"
6254 eval additional_libdir=\"$libdir\"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6260 # Check whether --with-libpth-prefix was given.
6261 if test "${with_libpth_prefix+set}" = set; then :
6262 withval=$with_libpth_prefix;
6263 if test "X$withval" = "Xno"; then
6264 use_additional=no
6265 else
6266 if test "X$withval" = "X"; then
6268 acl_save_prefix="$prefix"
6269 prefix="$acl_final_prefix"
6270 acl_save_exec_prefix="$exec_prefix"
6271 exec_prefix="$acl_final_exec_prefix"
6273 eval additional_includedir=\"$includedir\"
6274 eval additional_libdir=\"$libdir\"
6276 exec_prefix="$acl_save_exec_prefix"
6277 prefix="$acl_save_prefix"
6279 else
6280 additional_includedir="$withval/include"
6281 additional_libdir="$withval/$acl_libdirstem"
6287 LIBPTH=
6288 LTLIBPTH=
6289 INCPTH=
6290 LIBPTH_PREFIX=
6291 rpathdirs=
6292 ltrpathdirs=
6293 names_already_handled=
6294 names_next_round='pth '
6295 while test -n "$names_next_round"; do
6296 names_this_round="$names_next_round"
6297 names_next_round=
6298 for name in $names_this_round; do
6299 already_handled=
6300 for n in $names_already_handled; do
6301 if test "$n" = "$name"; then
6302 already_handled=yes
6303 break
6305 done
6306 if test -z "$already_handled"; then
6307 names_already_handled="$names_already_handled $name"
6308 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6309 eval value=\"\$HAVE_LIB$uppername\"
6310 if test -n "$value"; then
6311 if test "$value" = yes; then
6312 eval value=\"\$LIB$uppername\"
6313 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6314 eval value=\"\$LTLIB$uppername\"
6315 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6316 else
6319 else
6320 found_dir=
6321 found_la=
6322 found_so=
6323 found_a=
6324 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6325 if test -n "$acl_shlibext"; then
6326 shrext=".$acl_shlibext" # typically: shrext=.so
6327 else
6328 shrext=
6330 if test $use_additional = yes; then
6331 dir="$additional_libdir"
6332 if test -n "$acl_shlibext"; then
6333 if test -f "$dir/$libname$shrext"; then
6334 found_dir="$dir"
6335 found_so="$dir/$libname$shrext"
6336 else
6337 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6338 ver=`(cd "$dir" && \
6339 for f in "$libname$shrext".*; do echo "$f"; done \
6340 | sed -e "s,^$libname$shrext\\\\.,," \
6341 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6342 | sed 1q ) 2>/dev/null`
6343 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6344 found_dir="$dir"
6345 found_so="$dir/$libname$shrext.$ver"
6347 else
6348 eval library_names=\"$acl_library_names_spec\"
6349 for f in $library_names; do
6350 if test -f "$dir/$f"; then
6351 found_dir="$dir"
6352 found_so="$dir/$f"
6353 break
6355 done
6359 if test "X$found_dir" = "X"; then
6360 if test -f "$dir/$libname.$acl_libext"; then
6361 found_dir="$dir"
6362 found_a="$dir/$libname.$acl_libext"
6365 if test "X$found_dir" != "X"; then
6366 if test -f "$dir/$libname.la"; then
6367 found_la="$dir/$libname.la"
6371 if test "X$found_dir" = "X"; then
6372 for x in $LDFLAGS $LTLIBPTH; do
6374 acl_save_prefix="$prefix"
6375 prefix="$acl_final_prefix"
6376 acl_save_exec_prefix="$exec_prefix"
6377 exec_prefix="$acl_final_exec_prefix"
6378 eval x=\"$x\"
6379 exec_prefix="$acl_save_exec_prefix"
6380 prefix="$acl_save_prefix"
6382 case "$x" in
6383 -L*)
6384 dir=`echo "X$x" | sed -e 's/^X-L//'`
6385 if test -n "$acl_shlibext"; then
6386 if test -f "$dir/$libname$shrext"; then
6387 found_dir="$dir"
6388 found_so="$dir/$libname$shrext"
6389 else
6390 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6391 ver=`(cd "$dir" && \
6392 for f in "$libname$shrext".*; do echo "$f"; done \
6393 | sed -e "s,^$libname$shrext\\\\.,," \
6394 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6395 | sed 1q ) 2>/dev/null`
6396 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6397 found_dir="$dir"
6398 found_so="$dir/$libname$shrext.$ver"
6400 else
6401 eval library_names=\"$acl_library_names_spec\"
6402 for f in $library_names; do
6403 if test -f "$dir/$f"; then
6404 found_dir="$dir"
6405 found_so="$dir/$f"
6406 break
6408 done
6412 if test "X$found_dir" = "X"; then
6413 if test -f "$dir/$libname.$acl_libext"; then
6414 found_dir="$dir"
6415 found_a="$dir/$libname.$acl_libext"
6418 if test "X$found_dir" != "X"; then
6419 if test -f "$dir/$libname.la"; then
6420 found_la="$dir/$libname.la"
6424 esac
6425 if test "X$found_dir" != "X"; then
6426 break
6428 done
6430 if test "X$found_dir" != "X"; then
6431 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6432 if test "X$found_so" != "X"; then
6433 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6434 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6435 else
6436 haveit=
6437 for x in $ltrpathdirs; do
6438 if test "X$x" = "X$found_dir"; then
6439 haveit=yes
6440 break
6442 done
6443 if test -z "$haveit"; then
6444 ltrpathdirs="$ltrpathdirs $found_dir"
6446 if test "$acl_hardcode_direct" = yes; then
6447 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6448 else
6449 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6450 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6451 haveit=
6452 for x in $rpathdirs; do
6453 if test "X$x" = "X$found_dir"; then
6454 haveit=yes
6455 break
6457 done
6458 if test -z "$haveit"; then
6459 rpathdirs="$rpathdirs $found_dir"
6461 else
6462 haveit=
6463 for x in $LDFLAGS $LIBPTH; do
6465 acl_save_prefix="$prefix"
6466 prefix="$acl_final_prefix"
6467 acl_save_exec_prefix="$exec_prefix"
6468 exec_prefix="$acl_final_exec_prefix"
6469 eval x=\"$x\"
6470 exec_prefix="$acl_save_exec_prefix"
6471 prefix="$acl_save_prefix"
6473 if test "X$x" = "X-L$found_dir"; then
6474 haveit=yes
6475 break
6477 done
6478 if test -z "$haveit"; then
6479 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6481 if test "$acl_hardcode_minus_L" != no; then
6482 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6483 else
6484 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6489 else
6490 if test "X$found_a" != "X"; then
6491 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6492 else
6493 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6496 additional_includedir=
6497 case "$found_dir" in
6498 */$acl_libdirstem | */$acl_libdirstem/)
6499 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6500 LIBPTH_PREFIX="$basedir"
6501 additional_includedir="$basedir/include"
6503 esac
6504 if test "X$additional_includedir" != "X"; then
6505 if test "X$additional_includedir" != "X/usr/include"; then
6506 haveit=
6507 if test "X$additional_includedir" = "X/usr/local/include"; then
6508 if test -n "$GCC"; then
6509 case $host_os in
6510 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6511 esac
6514 if test -z "$haveit"; then
6515 for x in $CPPFLAGS $INCPTH; do
6517 acl_save_prefix="$prefix"
6518 prefix="$acl_final_prefix"
6519 acl_save_exec_prefix="$exec_prefix"
6520 exec_prefix="$acl_final_exec_prefix"
6521 eval x=\"$x\"
6522 exec_prefix="$acl_save_exec_prefix"
6523 prefix="$acl_save_prefix"
6525 if test "X$x" = "X-I$additional_includedir"; then
6526 haveit=yes
6527 break
6529 done
6530 if test -z "$haveit"; then
6531 if test -d "$additional_includedir"; then
6532 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6538 if test -n "$found_la"; then
6539 save_libdir="$libdir"
6540 case "$found_la" in
6541 */* | *\\*) . "$found_la" ;;
6542 *) . "./$found_la" ;;
6543 esac
6544 libdir="$save_libdir"
6545 for dep in $dependency_libs; do
6546 case "$dep" in
6547 -L*)
6548 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6549 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6550 haveit=
6551 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6552 if test -n "$GCC"; then
6553 case $host_os in
6554 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6555 esac
6558 if test -z "$haveit"; then
6559 haveit=
6560 for x in $LDFLAGS $LIBPTH; do
6562 acl_save_prefix="$prefix"
6563 prefix="$acl_final_prefix"
6564 acl_save_exec_prefix="$exec_prefix"
6565 exec_prefix="$acl_final_exec_prefix"
6566 eval x=\"$x\"
6567 exec_prefix="$acl_save_exec_prefix"
6568 prefix="$acl_save_prefix"
6570 if test "X$x" = "X-L$additional_libdir"; then
6571 haveit=yes
6572 break
6574 done
6575 if test -z "$haveit"; then
6576 if test -d "$additional_libdir"; then
6577 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6580 haveit=
6581 for x in $LDFLAGS $LTLIBPTH; do
6583 acl_save_prefix="$prefix"
6584 prefix="$acl_final_prefix"
6585 acl_save_exec_prefix="$exec_prefix"
6586 exec_prefix="$acl_final_exec_prefix"
6587 eval x=\"$x\"
6588 exec_prefix="$acl_save_exec_prefix"
6589 prefix="$acl_save_prefix"
6591 if test "X$x" = "X-L$additional_libdir"; then
6592 haveit=yes
6593 break
6595 done
6596 if test -z "$haveit"; then
6597 if test -d "$additional_libdir"; then
6598 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6604 -R*)
6605 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6606 if test "$enable_rpath" != no; then
6607 haveit=
6608 for x in $rpathdirs; do
6609 if test "X$x" = "X$dir"; then
6610 haveit=yes
6611 break
6613 done
6614 if test -z "$haveit"; then
6615 rpathdirs="$rpathdirs $dir"
6617 haveit=
6618 for x in $ltrpathdirs; do
6619 if test "X$x" = "X$dir"; then
6620 haveit=yes
6621 break
6623 done
6624 if test -z "$haveit"; then
6625 ltrpathdirs="$ltrpathdirs $dir"
6629 -l*)
6630 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6632 *.la)
6633 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6636 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6637 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6639 esac
6640 done
6642 else
6643 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6644 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6648 done
6649 done
6650 if test "X$rpathdirs" != "X"; then
6651 if test -n "$acl_hardcode_libdir_separator"; then
6652 alldirs=
6653 for found_dir in $rpathdirs; do
6654 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6655 done
6656 acl_save_libdir="$libdir"
6657 libdir="$alldirs"
6658 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6659 libdir="$acl_save_libdir"
6660 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6661 else
6662 for found_dir in $rpathdirs; do
6663 acl_save_libdir="$libdir"
6664 libdir="$found_dir"
6665 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6666 libdir="$acl_save_libdir"
6667 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6668 done
6671 if test "X$ltrpathdirs" != "X"; then
6672 for found_dir in $ltrpathdirs; do
6673 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6674 done
6677 ac_cv_libpth_libs="$LIBPTH"
6678 ac_cv_libpth_ltlibs="$LTLIBPTH"
6679 ac_cv_libpth_cppflags="$INCPTH"
6680 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6684 $as_echo "$ac_cv_libpth_libs" >&6; }
6685 LIBPTH="$ac_cv_libpth_libs"
6686 LTLIBPTH="$ac_cv_libpth_ltlibs"
6687 INCPTH="$ac_cv_libpth_cppflags"
6688 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6690 for element in $INCPTH; do
6691 haveit=
6692 for x in $CPPFLAGS; do
6694 acl_save_prefix="$prefix"
6695 prefix="$acl_final_prefix"
6696 acl_save_exec_prefix="$exec_prefix"
6697 exec_prefix="$acl_final_exec_prefix"
6698 eval x=\"$x\"
6699 exec_prefix="$acl_save_exec_prefix"
6700 prefix="$acl_save_prefix"
6702 if test "X$x" = "X$element"; then
6703 haveit=yes
6704 break
6706 done
6707 if test -z "$haveit"; then
6708 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6710 done
6715 HAVE_LIBPTH=yes
6719 gl_have_pth=
6720 gl_save_LIBS="$LIBS"
6721 LIBS="$LIBS -lpth"
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 #include <pth.h>
6726 main ()
6728 pth_self();
6730 return 0;
6732 _ACEOF
6733 if ac_fn_c_try_link "$LINENO"; then :
6734 gl_have_pth=yes
6736 rm -f core conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738 LIBS="$gl_save_LIBS"
6739 if test -n "$gl_have_pth"; then
6740 gl_threads_api=pth
6741 LIBTHREAD="$LIBPTH"
6742 LTLIBTHREAD="$LTLIBPTH"
6743 LIBMULTITHREAD="$LIBTHREAD"
6744 LTLIBMULTITHREAD="$LTLIBTHREAD"
6746 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6748 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6749 if test $gl_have_weak = yes; then
6751 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6753 LIBTHREAD=
6754 LTLIBTHREAD=
6757 else
6758 CPPFLAGS="$gl_save_CPPFLAGS"
6761 if test -z "$gl_have_pthread"; then
6762 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6763 if { case "$host_os" in
6764 mingw*) true;;
6765 *) false;;
6766 esac
6767 }; then
6768 gl_threads_api=win32
6770 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6777 $as_echo_n "checking for multithread API to use... " >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6779 $as_echo "$gl_threads_api" >&6; }
6800 use_additional=yes
6802 acl_save_prefix="$prefix"
6803 prefix="$acl_final_prefix"
6804 acl_save_exec_prefix="$exec_prefix"
6805 exec_prefix="$acl_final_exec_prefix"
6807 eval additional_includedir=\"$includedir\"
6808 eval additional_libdir=\"$libdir\"
6810 exec_prefix="$acl_save_exec_prefix"
6811 prefix="$acl_save_prefix"
6814 # Check whether --with-libiconv-prefix was given.
6815 if test "${with_libiconv_prefix+set}" = set; then :
6816 withval=$with_libiconv_prefix;
6817 if test "X$withval" = "Xno"; then
6818 use_additional=no
6819 else
6820 if test "X$withval" = "X"; then
6822 acl_save_prefix="$prefix"
6823 prefix="$acl_final_prefix"
6824 acl_save_exec_prefix="$exec_prefix"
6825 exec_prefix="$acl_final_exec_prefix"
6827 eval additional_includedir=\"$includedir\"
6828 eval additional_libdir=\"$libdir\"
6830 exec_prefix="$acl_save_exec_prefix"
6831 prefix="$acl_save_prefix"
6833 else
6834 additional_includedir="$withval/include"
6835 additional_libdir="$withval/$acl_libdirstem"
6841 LIBICONV=
6842 LTLIBICONV=
6843 INCICONV=
6844 LIBICONV_PREFIX=
6845 rpathdirs=
6846 ltrpathdirs=
6847 names_already_handled=
6848 names_next_round='iconv '
6849 while test -n "$names_next_round"; do
6850 names_this_round="$names_next_round"
6851 names_next_round=
6852 for name in $names_this_round; do
6853 already_handled=
6854 for n in $names_already_handled; do
6855 if test "$n" = "$name"; then
6856 already_handled=yes
6857 break
6859 done
6860 if test -z "$already_handled"; then
6861 names_already_handled="$names_already_handled $name"
6862 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6863 eval value=\"\$HAVE_LIB$uppername\"
6864 if test -n "$value"; then
6865 if test "$value" = yes; then
6866 eval value=\"\$LIB$uppername\"
6867 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6868 eval value=\"\$LTLIB$uppername\"
6869 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6870 else
6873 else
6874 found_dir=
6875 found_la=
6876 found_so=
6877 found_a=
6878 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6879 if test -n "$acl_shlibext"; then
6880 shrext=".$acl_shlibext" # typically: shrext=.so
6881 else
6882 shrext=
6884 if test $use_additional = yes; then
6885 dir="$additional_libdir"
6886 if test -n "$acl_shlibext"; then
6887 if test -f "$dir/$libname$shrext"; then
6888 found_dir="$dir"
6889 found_so="$dir/$libname$shrext"
6890 else
6891 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6892 ver=`(cd "$dir" && \
6893 for f in "$libname$shrext".*; do echo "$f"; done \
6894 | sed -e "s,^$libname$shrext\\\\.,," \
6895 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6896 | sed 1q ) 2>/dev/null`
6897 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6898 found_dir="$dir"
6899 found_so="$dir/$libname$shrext.$ver"
6901 else
6902 eval library_names=\"$acl_library_names_spec\"
6903 for f in $library_names; do
6904 if test -f "$dir/$f"; then
6905 found_dir="$dir"
6906 found_so="$dir/$f"
6907 break
6909 done
6913 if test "X$found_dir" = "X"; then
6914 if test -f "$dir/$libname.$acl_libext"; then
6915 found_dir="$dir"
6916 found_a="$dir/$libname.$acl_libext"
6919 if test "X$found_dir" != "X"; then
6920 if test -f "$dir/$libname.la"; then
6921 found_la="$dir/$libname.la"
6925 if test "X$found_dir" = "X"; then
6926 for x in $LDFLAGS $LTLIBICONV; do
6928 acl_save_prefix="$prefix"
6929 prefix="$acl_final_prefix"
6930 acl_save_exec_prefix="$exec_prefix"
6931 exec_prefix="$acl_final_exec_prefix"
6932 eval x=\"$x\"
6933 exec_prefix="$acl_save_exec_prefix"
6934 prefix="$acl_save_prefix"
6936 case "$x" in
6937 -L*)
6938 dir=`echo "X$x" | sed -e 's/^X-L//'`
6939 if test -n "$acl_shlibext"; then
6940 if test -f "$dir/$libname$shrext"; then
6941 found_dir="$dir"
6942 found_so="$dir/$libname$shrext"
6943 else
6944 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6945 ver=`(cd "$dir" && \
6946 for f in "$libname$shrext".*; do echo "$f"; done \
6947 | sed -e "s,^$libname$shrext\\\\.,," \
6948 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6949 | sed 1q ) 2>/dev/null`
6950 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6951 found_dir="$dir"
6952 found_so="$dir/$libname$shrext.$ver"
6954 else
6955 eval library_names=\"$acl_library_names_spec\"
6956 for f in $library_names; do
6957 if test -f "$dir/$f"; then
6958 found_dir="$dir"
6959 found_so="$dir/$f"
6960 break
6962 done
6966 if test "X$found_dir" = "X"; then
6967 if test -f "$dir/$libname.$acl_libext"; then
6968 found_dir="$dir"
6969 found_a="$dir/$libname.$acl_libext"
6972 if test "X$found_dir" != "X"; then
6973 if test -f "$dir/$libname.la"; then
6974 found_la="$dir/$libname.la"
6978 esac
6979 if test "X$found_dir" != "X"; then
6980 break
6982 done
6984 if test "X$found_dir" != "X"; then
6985 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6986 if test "X$found_so" != "X"; then
6987 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6989 else
6990 haveit=
6991 for x in $ltrpathdirs; do
6992 if test "X$x" = "X$found_dir"; then
6993 haveit=yes
6994 break
6996 done
6997 if test -z "$haveit"; then
6998 ltrpathdirs="$ltrpathdirs $found_dir"
7000 if test "$acl_hardcode_direct" = yes; then
7001 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7002 else
7003 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7005 haveit=
7006 for x in $rpathdirs; do
7007 if test "X$x" = "X$found_dir"; then
7008 haveit=yes
7009 break
7011 done
7012 if test -z "$haveit"; then
7013 rpathdirs="$rpathdirs $found_dir"
7015 else
7016 haveit=
7017 for x in $LDFLAGS $LIBICONV; do
7019 acl_save_prefix="$prefix"
7020 prefix="$acl_final_prefix"
7021 acl_save_exec_prefix="$exec_prefix"
7022 exec_prefix="$acl_final_exec_prefix"
7023 eval x=\"$x\"
7024 exec_prefix="$acl_save_exec_prefix"
7025 prefix="$acl_save_prefix"
7027 if test "X$x" = "X-L$found_dir"; then
7028 haveit=yes
7029 break
7031 done
7032 if test -z "$haveit"; then
7033 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7035 if test "$acl_hardcode_minus_L" != no; then
7036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7037 else
7038 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7043 else
7044 if test "X$found_a" != "X"; then
7045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7046 else
7047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7050 additional_includedir=
7051 case "$found_dir" in
7052 */$acl_libdirstem | */$acl_libdirstem/)
7053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7054 LIBICONV_PREFIX="$basedir"
7055 additional_includedir="$basedir/include"
7057 esac
7058 if test "X$additional_includedir" != "X"; then
7059 if test "X$additional_includedir" != "X/usr/include"; then
7060 haveit=
7061 if test "X$additional_includedir" = "X/usr/local/include"; then
7062 if test -n "$GCC"; then
7063 case $host_os in
7064 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7065 esac
7068 if test -z "$haveit"; then
7069 for x in $CPPFLAGS $INCICONV; do
7071 acl_save_prefix="$prefix"
7072 prefix="$acl_final_prefix"
7073 acl_save_exec_prefix="$exec_prefix"
7074 exec_prefix="$acl_final_exec_prefix"
7075 eval x=\"$x\"
7076 exec_prefix="$acl_save_exec_prefix"
7077 prefix="$acl_save_prefix"
7079 if test "X$x" = "X-I$additional_includedir"; then
7080 haveit=yes
7081 break
7083 done
7084 if test -z "$haveit"; then
7085 if test -d "$additional_includedir"; then
7086 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7092 if test -n "$found_la"; then
7093 save_libdir="$libdir"
7094 case "$found_la" in
7095 */* | *\\*) . "$found_la" ;;
7096 *) . "./$found_la" ;;
7097 esac
7098 libdir="$save_libdir"
7099 for dep in $dependency_libs; do
7100 case "$dep" in
7101 -L*)
7102 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7103 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7104 haveit=
7105 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7106 if test -n "$GCC"; then
7107 case $host_os in
7108 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7109 esac
7112 if test -z "$haveit"; then
7113 haveit=
7114 for x in $LDFLAGS $LIBICONV; do
7116 acl_save_prefix="$prefix"
7117 prefix="$acl_final_prefix"
7118 acl_save_exec_prefix="$exec_prefix"
7119 exec_prefix="$acl_final_exec_prefix"
7120 eval x=\"$x\"
7121 exec_prefix="$acl_save_exec_prefix"
7122 prefix="$acl_save_prefix"
7124 if test "X$x" = "X-L$additional_libdir"; then
7125 haveit=yes
7126 break
7128 done
7129 if test -z "$haveit"; then
7130 if test -d "$additional_libdir"; then
7131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7134 haveit=
7135 for x in $LDFLAGS $LTLIBICONV; do
7137 acl_save_prefix="$prefix"
7138 prefix="$acl_final_prefix"
7139 acl_save_exec_prefix="$exec_prefix"
7140 exec_prefix="$acl_final_exec_prefix"
7141 eval x=\"$x\"
7142 exec_prefix="$acl_save_exec_prefix"
7143 prefix="$acl_save_prefix"
7145 if test "X$x" = "X-L$additional_libdir"; then
7146 haveit=yes
7147 break
7149 done
7150 if test -z "$haveit"; then
7151 if test -d "$additional_libdir"; then
7152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7158 -R*)
7159 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7160 if test "$enable_rpath" != no; then
7161 haveit=
7162 for x in $rpathdirs; do
7163 if test "X$x" = "X$dir"; then
7164 haveit=yes
7165 break
7167 done
7168 if test -z "$haveit"; then
7169 rpathdirs="$rpathdirs $dir"
7171 haveit=
7172 for x in $ltrpathdirs; do
7173 if test "X$x" = "X$dir"; then
7174 haveit=yes
7175 break
7177 done
7178 if test -z "$haveit"; then
7179 ltrpathdirs="$ltrpathdirs $dir"
7183 -l*)
7184 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7186 *.la)
7187 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7190 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7191 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7193 esac
7194 done
7196 else
7197 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7202 done
7203 done
7204 if test "X$rpathdirs" != "X"; then
7205 if test -n "$acl_hardcode_libdir_separator"; then
7206 alldirs=
7207 for found_dir in $rpathdirs; do
7208 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7209 done
7210 acl_save_libdir="$libdir"
7211 libdir="$alldirs"
7212 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7213 libdir="$acl_save_libdir"
7214 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7215 else
7216 for found_dir in $rpathdirs; do
7217 acl_save_libdir="$libdir"
7218 libdir="$found_dir"
7219 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7220 libdir="$acl_save_libdir"
7221 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7222 done
7225 if test "X$ltrpathdirs" != "X"; then
7226 for found_dir in $ltrpathdirs; do
7227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7228 done
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7239 main ()
7243 return 0;
7245 _ACEOF
7246 if ac_fn_c_try_link "$LINENO"; then :
7248 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7251 rm -f core conftest.err conftest.$ac_objext \
7252 conftest$ac_exeext conftest.$ac_ext
7254 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7255 do :
7256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7258 eval as_val=\$$as_ac_Header
7259 if test "x$as_val" = x""yes; then :
7260 cat >>confdefs.h <<_ACEOF
7261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7262 _ACEOF
7266 done
7268 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7269 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
7270 argz_next __fsetlocking
7271 do :
7272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7274 eval as_val=\$$as_ac_var
7275 if test "x$as_val" = x""yes; then :
7276 cat >>confdefs.h <<_ACEOF
7277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7278 _ACEOF
7281 done
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7286 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7287 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 #include <stdio.h>
7294 main ()
7297 #ifndef feof_unlocked
7298 char *p = (char *) feof_unlocked;
7299 #endif
7302 return 0;
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 ac_cv_have_decl_feof_unlocked=yes
7307 else
7308 ac_cv_have_decl_feof_unlocked=no
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7313 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7314 if test $ac_cv_have_decl_feof_unlocked = yes; then
7315 gt_value=1
7316 else
7317 gt_value=0
7320 cat >>confdefs.h <<_ACEOF
7321 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7322 _ACEOF
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7327 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7328 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 #include <stdio.h>
7335 main ()
7338 #ifndef fgets_unlocked
7339 char *p = (char *) fgets_unlocked;
7340 #endif
7343 return 0;
7345 _ACEOF
7346 if ac_fn_c_try_compile "$LINENO"; then :
7347 ac_cv_have_decl_fgets_unlocked=yes
7348 else
7349 ac_cv_have_decl_fgets_unlocked=no
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7354 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7355 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7356 gt_value=1
7357 else
7358 gt_value=0
7361 cat >>confdefs.h <<_ACEOF
7362 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7363 _ACEOF
7372 am_save_CPPFLAGS="$CPPFLAGS"
7374 for element in $INCICONV; do
7375 haveit=
7376 for x in $CPPFLAGS; do
7378 acl_save_prefix="$prefix"
7379 prefix="$acl_final_prefix"
7380 acl_save_exec_prefix="$exec_prefix"
7381 exec_prefix="$acl_final_exec_prefix"
7382 eval x=\"$x\"
7383 exec_prefix="$acl_save_exec_prefix"
7384 prefix="$acl_save_prefix"
7386 if test "X$x" = "X$element"; then
7387 haveit=yes
7388 break
7390 done
7391 if test -z "$haveit"; then
7392 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7394 done
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7398 $as_echo_n "checking for iconv... " >&6; }
7399 if test "${am_cv_func_iconv+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7403 am_cv_func_iconv="no, consider installing GNU libiconv"
7404 am_cv_lib_iconv=no
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7407 #include <stdlib.h>
7408 #include <iconv.h>
7410 main ()
7412 iconv_t cd = iconv_open("","");
7413 iconv(cd,NULL,NULL,NULL,NULL);
7414 iconv_close(cd);
7416 return 0;
7418 _ACEOF
7419 if ac_fn_c_try_link "$LINENO"; then :
7420 am_cv_func_iconv=yes
7422 rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 if test "$am_cv_func_iconv" != yes; then
7425 am_save_LIBS="$LIBS"
7426 LIBS="$LIBS $LIBICONV"
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 #include <stdlib.h>
7430 #include <iconv.h>
7432 main ()
7434 iconv_t cd = iconv_open("","");
7435 iconv(cd,NULL,NULL,NULL,NULL);
7436 iconv_close(cd);
7438 return 0;
7440 _ACEOF
7441 if ac_fn_c_try_link "$LINENO"; then :
7442 am_cv_lib_iconv=yes
7443 am_cv_func_iconv=yes
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LIBS="$am_save_LIBS"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7452 $as_echo "$am_cv_func_iconv" >&6; }
7453 if test "$am_cv_func_iconv" = yes; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7455 $as_echo_n "checking for working iconv... " >&6; }
7456 if test "${am_cv_func_iconv_works+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7460 am_save_LIBS="$LIBS"
7461 if test $am_cv_lib_iconv = yes; then
7462 LIBS="$LIBS $LIBICONV"
7464 if test "$cross_compiling" = yes; then :
7465 case "$host_os" in
7466 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7467 *) am_cv_func_iconv_works="guessing yes" ;;
7468 esac
7469 else
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7473 #include <iconv.h>
7474 #include <string.h>
7475 int main ()
7477 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7478 returns. */
7480 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7481 if (cd_utf8_to_88591 != (iconv_t)(-1))
7483 static const char input[] = "\342\202\254"; /* EURO SIGN */
7484 char buf[10];
7485 const char *inptr = input;
7486 size_t inbytesleft = strlen (input);
7487 char *outptr = buf;
7488 size_t outbytesleft = sizeof (buf);
7489 size_t res = iconv (cd_utf8_to_88591,
7490 (char **) &inptr, &inbytesleft,
7491 &outptr, &outbytesleft);
7492 if (res == 0)
7493 return 1;
7496 #if 0 /* This bug could be worked around by the caller. */
7497 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7499 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7500 if (cd_88591_to_utf8 != (iconv_t)(-1))
7502 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7503 char buf[50];
7504 const char *inptr = input;
7505 size_t inbytesleft = strlen (input);
7506 char *outptr = buf;
7507 size_t outbytesleft = sizeof (buf);
7508 size_t res = iconv (cd_88591_to_utf8,
7509 (char **) &inptr, &inbytesleft,
7510 &outptr, &outbytesleft);
7511 if ((int)res > 0)
7512 return 1;
7515 #endif
7516 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7517 provided. */
7518 if (/* Try standardized names. */
7519 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7520 /* Try IRIX, OSF/1 names. */
7521 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7522 /* Try AIX names. */
7523 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7524 /* Try HP-UX names. */
7525 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7526 return 1;
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_run "$LINENO"; then :
7531 am_cv_func_iconv_works=yes
7532 else
7533 am_cv_func_iconv_works=no
7535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7536 conftest.$ac_objext conftest.beam conftest.$ac_ext
7539 LIBS="$am_save_LIBS"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7543 $as_echo "$am_cv_func_iconv_works" >&6; }
7544 case "$am_cv_func_iconv_works" in
7545 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7546 *) am_func_iconv=yes ;;
7547 esac
7548 else
7549 am_func_iconv=no am_cv_lib_iconv=no
7551 if test "$am_func_iconv" = yes; then
7553 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7556 if test "$am_cv_lib_iconv" = yes; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7558 $as_echo_n "checking how to link with libiconv... " >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7560 $as_echo "$LIBICONV" >&6; }
7561 else
7562 CPPFLAGS="$am_save_CPPFLAGS"
7563 LIBICONV=
7564 LTLIBICONV=
7569 if test "$am_cv_func_iconv" = yes; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7571 $as_echo_n "checking for iconv declaration... " >&6; }
7572 if test "${am_cv_proto_iconv+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7579 #include <stdlib.h>
7580 #include <iconv.h>
7581 extern
7582 #ifdef __cplusplus
7584 #endif
7585 #if defined(__STDC__) || defined(__cplusplus)
7586 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7587 #else
7588 size_t iconv();
7589 #endif
7592 main ()
7596 return 0;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 am_cv_proto_iconv_arg1=""
7601 else
7602 am_cv_proto_iconv_arg1="const"
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 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);"
7608 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7610 }$am_cv_proto_iconv" >&5
7611 $as_echo "${ac_t:-
7612 }$am_cv_proto_iconv" >&6; }
7614 cat >>confdefs.h <<_ACEOF
7615 #define ICONV_CONST $am_cv_proto_iconv_arg1
7616 _ACEOF
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
7622 $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
7623 if test "${gt_cv_nl_locale_name+set}" = set; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <langinfo.h>
7629 #include <locale.h>
7631 main ()
7633 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
7634 return !cs;
7637 return 0;
7639 _ACEOF
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 gt_cv_nl_locale_name=yes
7642 else
7643 gt_cv_nl_locale_name=no
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
7650 $as_echo "$gt_cv_nl_locale_name" >&6; }
7651 if test $gt_cv_nl_locale_name = yes; then
7653 $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
7657 for ac_prog in bison
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$INTLBISON"; then
7667 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_prog_INTLBISON="$ac_prog"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7680 done
7681 done
7682 IFS=$as_save_IFS
7686 INTLBISON=$ac_cv_prog_INTLBISON
7687 if test -n "$INTLBISON"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7689 $as_echo "$INTLBISON" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7696 test -n "$INTLBISON" && break
7697 done
7699 if test -z "$INTLBISON"; then
7700 ac_verc_fail=yes
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7703 $as_echo_n "checking version of bison... " >&6; }
7704 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7705 case $ac_prog_version in
7706 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7707 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7708 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7709 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7710 esac
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7712 $as_echo "$ac_prog_version" >&6; }
7714 if test $ac_verc_fail = yes; then
7715 INTLBISON=:
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7720 $as_echo_n "checking for long long int... " >&6; }
7721 if test "${ac_cv_type_long_long_int+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7727 /* Test preprocessor. */
7728 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7729 error in preprocessor;
7730 #endif
7731 #if ! (18446744073709551615ULL <= -1ull)
7732 error in preprocessor;
7733 #endif
7734 /* Test literals. */
7735 long long int ll = 9223372036854775807ll;
7736 long long int nll = -9223372036854775807LL;
7737 unsigned long long int ull = 18446744073709551615ULL;
7738 /* Test constant expressions. */
7739 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7740 ? 1 : -1)];
7741 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7742 ? 1 : -1)];
7743 int i = 63;
7745 main ()
7747 /* Test availability of runtime routines for shift and division. */
7748 long long int llmax = 9223372036854775807ll;
7749 unsigned long long int ullmax = 18446744073709551615ull;
7750 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7751 | (llmax / ll) | (llmax % ll)
7752 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7753 | (ullmax / ull) | (ullmax % ull));
7755 return 0;
7758 _ACEOF
7759 if ac_fn_c_try_link "$LINENO"; then :
7760 if test "$cross_compiling" = yes; then :
7761 ac_cv_type_long_long_int=yes
7762 else
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 #include <limits.h>
7766 #ifndef LLONG_MAX
7767 # define HALF \
7768 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7769 # define LLONG_MAX (HALF - 1 + HALF)
7770 #endif
7772 main ()
7774 long long int n = 1;
7775 int i;
7776 for (i = 0; ; i++)
7778 long long int m = n << i;
7779 if (m >> i != n)
7780 return 1;
7781 if (LLONG_MAX / 2 < m)
7782 break;
7784 return 0;
7786 return 0;
7788 _ACEOF
7789 if ac_fn_c_try_run "$LINENO"; then :
7790 ac_cv_type_long_long_int=yes
7791 else
7792 ac_cv_type_long_long_int=no
7794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7795 conftest.$ac_objext conftest.beam conftest.$ac_ext
7798 else
7799 ac_cv_type_long_long_int=no
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7805 $as_echo "$ac_cv_type_long_long_int" >&6; }
7806 if test $ac_cv_type_long_long_int = yes; then
7808 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7814 $as_echo_n "checking for wchar_t... " >&6; }
7815 if test "${gt_cv_c_wchar_t+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 #include <stddef.h>
7821 wchar_t foo = (wchar_t)'\0';
7823 main ()
7827 return 0;
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 gt_cv_c_wchar_t=yes
7832 else
7833 gt_cv_c_wchar_t=no
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7838 $as_echo "$gt_cv_c_wchar_t" >&6; }
7839 if test $gt_cv_c_wchar_t = yes; then
7841 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
7847 $as_echo_n "checking for wint_t... " >&6; }
7848 if test "${gt_cv_c_wint_t+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7854 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7855 <wchar.h>.
7856 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
7857 before <wchar.h>. */
7858 #include <stddef.h>
7859 #include <stdio.h>
7860 #include <time.h>
7861 #include <wchar.h>
7862 wint_t foo = (wchar_t)'\0';
7864 main ()
7868 return 0;
7870 _ACEOF
7871 if ac_fn_c_try_compile "$LINENO"; then :
7872 gt_cv_c_wint_t=yes
7873 else
7874 gt_cv_c_wint_t=no
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
7879 $as_echo "$gt_cv_c_wint_t" >&6; }
7880 if test $gt_cv_c_wint_t = yes; then
7882 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
7890 $as_echo_n "checking for intmax_t... " >&6; }
7891 if test "${gt_cv_c_intmax_t+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7897 #include <stddef.h>
7898 #include <stdlib.h>
7899 #if HAVE_STDINT_H_WITH_UINTMAX
7900 #include <stdint.h>
7901 #endif
7902 #if HAVE_INTTYPES_H_WITH_UINTMAX
7903 #include <inttypes.h>
7904 #endif
7907 main ()
7909 intmax_t x = -1;
7910 return !x;
7912 return 0;
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 gt_cv_c_intmax_t=yes
7917 else
7918 gt_cv_c_intmax_t=no
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
7923 $as_echo "$gt_cv_c_intmax_t" >&6; }
7924 if test $gt_cv_c_intmax_t = yes; then
7926 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
7933 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
7934 if test "${gt_cv_func_printf_posix+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7938 if test "$cross_compiling" = yes; then :
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7943 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
7944 notposix
7945 #endif
7947 _ACEOF
7948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7949 $EGREP "notposix" >/dev/null 2>&1; then :
7950 gt_cv_func_printf_posix="guessing no"
7951 else
7952 gt_cv_func_printf_posix="guessing yes"
7954 rm -f conftest*
7957 else
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7961 #include <stdio.h>
7962 #include <string.h>
7963 /* The string "%2$d %1$d", with dollar characters protected from the shell's
7964 dollar expansion (possibly an autoconf bug). */
7965 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7966 static char buf[100];
7967 int main ()
7969 sprintf (buf, format, 33, 55);
7970 return (strcmp (buf, "55 33") != 0);
7972 _ACEOF
7973 if ac_fn_c_try_run "$LINENO"; then :
7974 gt_cv_func_printf_posix=yes
7975 else
7976 gt_cv_func_printf_posix=no
7978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7979 conftest.$ac_objext conftest.beam conftest.$ac_ext
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7985 $as_echo "$gt_cv_func_printf_posix" >&6; }
7986 case $gt_cv_func_printf_posix in
7987 *yes)
7989 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7992 esac
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7996 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7997 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8003 #include <features.h>
8004 #ifdef __GNU_LIBRARY__
8005 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8006 Lucky GNU user
8007 #endif
8008 #endif
8010 _ACEOF
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8013 ac_cv_gnu_library_2_1=yes
8014 else
8015 ac_cv_gnu_library_2_1=no
8017 rm -f conftest*
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8023 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8025 GLIBC21="$ac_cv_gnu_library_2_1"
8029 for ac_header in stdint.h
8030 do :
8031 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8032 if test "x$ac_cv_header_stdint_h" = x""yes; then :
8033 cat >>confdefs.h <<_ACEOF
8034 #define HAVE_STDINT_H 1
8035 _ACEOF
8039 done
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8042 $as_echo_n "checking for SIZE_MAX... " >&6; }
8043 if test "${gl_cv_size_max+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8047 gl_cv_size_max=
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8051 #include <limits.h>
8052 #if HAVE_STDINT_H
8053 #include <stdint.h>
8054 #endif
8055 #ifdef SIZE_MAX
8056 Found it
8057 #endif
8059 _ACEOF
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "Found it" >/dev/null 2>&1; then :
8062 gl_cv_size_max=yes
8064 rm -f conftest*
8066 if test -z "$gl_cv_size_max"; then
8067 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
8068 #include <limits.h>"; then :
8070 else
8071 size_t_bits_minus_1=
8074 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
8076 else
8077 fits_in_uint=
8080 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8081 if test $fits_in_uint = 1; then
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 #include <stddef.h>
8085 extern size_t foo;
8086 extern unsigned long foo;
8089 main ()
8093 return 0;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 fits_in_uint=0
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 if test $fits_in_uint = 1; then
8102 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8103 else
8104 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8106 else
8107 gl_cv_size_max='((size_t)~(size_t)0)'
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8114 $as_echo "$gl_cv_size_max" >&6; }
8115 if test "$gl_cv_size_max" != yes; then
8117 cat >>confdefs.h <<_ACEOF
8118 #define SIZE_MAX $gl_cv_size_max
8119 _ACEOF
8126 for ac_header in stdint.h
8127 do :
8128 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8129 if test "x$ac_cv_header_stdint_h" = x""yes; then :
8130 cat >>confdefs.h <<_ACEOF
8131 #define HAVE_STDINT_H 1
8132 _ACEOF
8136 done
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8141 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8142 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 gt_save_LIBS="$LIBS"
8146 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <CoreFoundation/CFPreferences.h>
8151 main ()
8153 CFPreferencesCopyAppValue(NULL, NULL)
8155 return 0;
8157 _ACEOF
8158 if ac_fn_c_try_link "$LINENO"; then :
8159 gt_cv_func_CFPreferencesCopyAppValue=yes
8160 else
8161 gt_cv_func_CFPreferencesCopyAppValue=no
8163 rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8165 LIBS="$gt_save_LIBS"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8168 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8169 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8171 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8175 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8176 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 gt_save_LIBS="$LIBS"
8180 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <CoreFoundation/CFLocale.h>
8185 main ()
8187 CFLocaleCopyCurrent();
8189 return 0;
8191 _ACEOF
8192 if ac_fn_c_try_link "$LINENO"; then :
8193 gt_cv_func_CFLocaleCopyCurrent=yes
8194 else
8195 gt_cv_func_CFLocaleCopyCurrent=no
8197 rm -f core conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 LIBS="$gt_save_LIBS"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8202 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8203 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8205 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8208 INTL_MACOSX_LIBS=
8209 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8210 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8219 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8220 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8222 else
8224 $as_echo "#define ptrdiff_t long" >>confdefs.h
8229 for ac_header in stddef.h stdlib.h string.h
8230 do :
8231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8233 eval as_val=\$$as_ac_Header
8234 if test "x$as_val" = x""yes; then :
8235 cat >>confdefs.h <<_ACEOF
8236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237 _ACEOF
8241 done
8243 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
8244 do :
8245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8247 eval as_val=\$$as_ac_var
8248 if test "x$as_val" = x""yes; then :
8249 cat >>confdefs.h <<_ACEOF
8250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8251 _ACEOF
8254 done
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8259 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8260 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 #include <stdio.h>
8267 main ()
8270 #ifndef _snprintf
8271 char *p = (char *) _snprintf;
8272 #endif
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 ac_cv_have_decl__snprintf=yes
8280 else
8281 ac_cv_have_decl__snprintf=no
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8286 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8287 if test $ac_cv_have_decl__snprintf = yes; then
8288 gt_value=1
8289 else
8290 gt_value=0
8293 cat >>confdefs.h <<_ACEOF
8294 #define HAVE_DECL__SNPRINTF $gt_value
8295 _ACEOF
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8300 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8301 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 #include <stdio.h>
8308 main ()
8311 #ifndef _snwprintf
8312 char *p = (char *) _snwprintf;
8313 #endif
8316 return 0;
8318 _ACEOF
8319 if ac_fn_c_try_compile "$LINENO"; then :
8320 ac_cv_have_decl__snwprintf=yes
8321 else
8322 ac_cv_have_decl__snwprintf=no
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8327 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8328 if test $ac_cv_have_decl__snwprintf = yes; then
8329 gt_value=1
8330 else
8331 gt_value=0
8334 cat >>confdefs.h <<_ACEOF
8335 #define HAVE_DECL__SNWPRINTF $gt_value
8336 _ACEOF
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8342 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8343 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #include <stdio.h>
8350 main ()
8353 #ifndef getc_unlocked
8354 char *p = (char *) getc_unlocked;
8355 #endif
8358 return 0;
8360 _ACEOF
8361 if ac_fn_c_try_compile "$LINENO"; then :
8362 ac_cv_have_decl_getc_unlocked=yes
8363 else
8364 ac_cv_have_decl_getc_unlocked=no
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8369 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8370 if test $ac_cv_have_decl_getc_unlocked = yes; then
8371 gt_value=1
8372 else
8373 gt_value=0
8376 cat >>confdefs.h <<_ACEOF
8377 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8378 _ACEOF
8382 case $gt_cv_func_printf_posix in
8383 *yes) HAVE_POSIX_PRINTF=1 ;;
8384 *) HAVE_POSIX_PRINTF=0 ;;
8385 esac
8387 if test "$ac_cv_func_asprintf" = yes; then
8388 HAVE_ASPRINTF=1
8389 else
8390 HAVE_ASPRINTF=0
8393 if test "$ac_cv_func_snprintf" = yes; then
8394 HAVE_SNPRINTF=1
8395 else
8396 HAVE_SNPRINTF=0
8399 if test "$ac_cv_func_wprintf" = yes; then
8400 HAVE_WPRINTF=1
8401 else
8402 HAVE_WPRINTF=0
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8408 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8409 if test "${am_cv_langinfo_codeset+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #include <langinfo.h>
8416 main ()
8418 char* cs = nl_langinfo(CODESET); return !cs;
8420 return 0;
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"; then :
8424 am_cv_langinfo_codeset=yes
8425 else
8426 am_cv_langinfo_codeset=no
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8433 $as_echo "$am_cv_langinfo_codeset" >&6; }
8434 if test $am_cv_langinfo_codeset = yes; then
8436 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8442 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8443 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 #include <locale.h>
8450 main ()
8452 return LC_MESSAGES
8454 return 0;
8456 _ACEOF
8457 if ac_fn_c_try_link "$LINENO"; then :
8458 gt_cv_val_LC_MESSAGES=yes
8459 else
8460 gt_cv_val_LC_MESSAGES=no
8462 rm -f core conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8466 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8467 if test $gt_cv_val_LC_MESSAGES = yes; then
8469 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8474 if test "$enable_shared" = yes; then
8475 case "$host_os" in
8476 mingw* | cygwin*) is_woe32dll=yes ;;
8477 *) is_woe32dll=no ;;
8478 esac
8479 else
8480 is_woe32dll=no
8482 WOE32DLL=$is_woe32dll
8485 case "$host_os" in
8486 mingw* | cygwin*) is_woe32=yes ;;
8487 *) is_woe32=no ;;
8488 esac
8489 WOE32=$is_woe32
8491 if test $WOE32 = yes; then
8492 if test -n "$ac_tool_prefix"; then
8493 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8494 set dummy ${ac_tool_prefix}windres; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$WINDRES"; then
8501 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8520 WINDRES=$ac_cv_prog_WINDRES
8521 if test -n "$WINDRES"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8523 $as_echo "$WINDRES" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 if test -z "$ac_cv_prog_WINDRES"; then
8532 ac_ct_WINDRES=$WINDRES
8533 # Extract the first word of "windres", so it can be a program name with args.
8534 set dummy windres; ac_word=$2
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 $as_echo_n "checking for $ac_word... " >&6; }
8537 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 if test -n "$ac_ct_WINDRES"; then
8541 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8542 else
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8550 ac_cv_prog_ac_ct_WINDRES="windres"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8554 done
8555 done
8556 IFS=$as_save_IFS
8560 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8561 if test -n "$ac_ct_WINDRES"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8563 $as_echo "$ac_ct_WINDRES" >&6; }
8564 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8569 if test "x$ac_ct_WINDRES" = x; then
8570 WINDRES=""
8571 else
8572 case $cross_compiling:$ac_tool_warned in
8573 yes:)
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8576 ac_tool_warned=yes ;;
8577 esac
8578 WINDRES=$ac_ct_WINDRES
8580 else
8581 WINDRES="$ac_cv_prog_WINDRES"
8586 case "$host_os" in
8587 hpux*) LTLIBC="" ;;
8588 *) LTLIBC="-lc" ;;
8589 esac
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8617 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8618 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 gt_save_LIBS="$LIBS"
8622 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <CoreFoundation/CFPreferences.h>
8627 main ()
8629 CFPreferencesCopyAppValue(NULL, NULL)
8631 return 0;
8633 _ACEOF
8634 if ac_fn_c_try_link "$LINENO"; then :
8635 gt_cv_func_CFPreferencesCopyAppValue=yes
8636 else
8637 gt_cv_func_CFPreferencesCopyAppValue=no
8639 rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 LIBS="$gt_save_LIBS"
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8644 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8645 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8647 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8651 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8652 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 gt_save_LIBS="$LIBS"
8656 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #include <CoreFoundation/CFLocale.h>
8661 main ()
8663 CFLocaleCopyCurrent();
8665 return 0;
8667 _ACEOF
8668 if ac_fn_c_try_link "$LINENO"; then :
8669 gt_cv_func_CFLocaleCopyCurrent=yes
8670 else
8671 gt_cv_func_CFLocaleCopyCurrent=no
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 LIBS="$gt_save_LIBS"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8678 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8679 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8681 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8684 INTL_MACOSX_LIBS=
8685 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8686 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8694 BUILD_INCLUDED_LIBINTL=no
8695 USE_INCLUDED_LIBINTL=no
8697 LIBINTL=
8698 LTLIBINTL=
8699 POSUB=
8701 case " $gt_needs " in
8702 *" need-formatstring-macros "*) gt_api_version=3 ;;
8703 *" need-ngettext "*) gt_api_version=2 ;;
8704 *) gt_api_version=1 ;;
8705 esac
8706 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8707 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8709 if test "$USE_NLS" = "yes"; then
8710 gt_use_preinstalled_gnugettext=no
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8713 $as_echo_n "checking whether included gettext is requested... " >&6; }
8715 # Check whether --with-included-gettext was given.
8716 if test "${with_included_gettext+set}" = set; then :
8717 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8718 else
8719 nls_cv_force_use_gnu_gettext=no
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8723 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8725 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8726 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8729 if test $gt_api_version -ge 3; then
8730 gt_revision_test_code='
8731 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8732 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8733 #endif
8734 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8736 else
8737 gt_revision_test_code=
8739 if test $gt_api_version -ge 2; then
8740 gt_expression_test_code=' + * ngettext ("", "", 0)'
8741 else
8742 gt_expression_test_code=
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8746 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8747 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <libintl.h>
8753 $gt_revision_test_code
8754 extern int _nl_msg_cat_cntr;
8755 extern int *_nl_domain_bindings;
8757 main ()
8759 bindtextdomain ("", "");
8760 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8762 return 0;
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766 eval "$gt_func_gnugettext_libc=yes"
8767 else
8768 eval "$gt_func_gnugettext_libc=no"
8770 rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8773 eval ac_res=\$$gt_func_gnugettext_libc
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8775 $as_echo "$ac_res" >&6; }
8777 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8783 use_additional=yes
8785 acl_save_prefix="$prefix"
8786 prefix="$acl_final_prefix"
8787 acl_save_exec_prefix="$exec_prefix"
8788 exec_prefix="$acl_final_exec_prefix"
8790 eval additional_includedir=\"$includedir\"
8791 eval additional_libdir=\"$libdir\"
8793 exec_prefix="$acl_save_exec_prefix"
8794 prefix="$acl_save_prefix"
8797 # Check whether --with-libintl-prefix was given.
8798 if test "${with_libintl_prefix+set}" = set; then :
8799 withval=$with_libintl_prefix;
8800 if test "X$withval" = "Xno"; then
8801 use_additional=no
8802 else
8803 if test "X$withval" = "X"; then
8805 acl_save_prefix="$prefix"
8806 prefix="$acl_final_prefix"
8807 acl_save_exec_prefix="$exec_prefix"
8808 exec_prefix="$acl_final_exec_prefix"
8810 eval additional_includedir=\"$includedir\"
8811 eval additional_libdir=\"$libdir\"
8813 exec_prefix="$acl_save_exec_prefix"
8814 prefix="$acl_save_prefix"
8816 else
8817 additional_includedir="$withval/include"
8818 additional_libdir="$withval/$acl_libdirstem"
8824 LIBINTL=
8825 LTLIBINTL=
8826 INCINTL=
8827 LIBINTL_PREFIX=
8828 rpathdirs=
8829 ltrpathdirs=
8830 names_already_handled=
8831 names_next_round='intl '
8832 while test -n "$names_next_round"; do
8833 names_this_round="$names_next_round"
8834 names_next_round=
8835 for name in $names_this_round; do
8836 already_handled=
8837 for n in $names_already_handled; do
8838 if test "$n" = "$name"; then
8839 already_handled=yes
8840 break
8842 done
8843 if test -z "$already_handled"; then
8844 names_already_handled="$names_already_handled $name"
8845 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8846 eval value=\"\$HAVE_LIB$uppername\"
8847 if test -n "$value"; then
8848 if test "$value" = yes; then
8849 eval value=\"\$LIB$uppername\"
8850 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8851 eval value=\"\$LTLIB$uppername\"
8852 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8853 else
8856 else
8857 found_dir=
8858 found_la=
8859 found_so=
8860 found_a=
8861 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8862 if test -n "$acl_shlibext"; then
8863 shrext=".$acl_shlibext" # typically: shrext=.so
8864 else
8865 shrext=
8867 if test $use_additional = yes; then
8868 dir="$additional_libdir"
8869 if test -n "$acl_shlibext"; then
8870 if test -f "$dir/$libname$shrext"; then
8871 found_dir="$dir"
8872 found_so="$dir/$libname$shrext"
8873 else
8874 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8875 ver=`(cd "$dir" && \
8876 for f in "$libname$shrext".*; do echo "$f"; done \
8877 | sed -e "s,^$libname$shrext\\\\.,," \
8878 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8879 | sed 1q ) 2>/dev/null`
8880 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8881 found_dir="$dir"
8882 found_so="$dir/$libname$shrext.$ver"
8884 else
8885 eval library_names=\"$acl_library_names_spec\"
8886 for f in $library_names; do
8887 if test -f "$dir/$f"; then
8888 found_dir="$dir"
8889 found_so="$dir/$f"
8890 break
8892 done
8896 if test "X$found_dir" = "X"; then
8897 if test -f "$dir/$libname.$acl_libext"; then
8898 found_dir="$dir"
8899 found_a="$dir/$libname.$acl_libext"
8902 if test "X$found_dir" != "X"; then
8903 if test -f "$dir/$libname.la"; then
8904 found_la="$dir/$libname.la"
8908 if test "X$found_dir" = "X"; then
8909 for x in $LDFLAGS $LTLIBINTL; do
8911 acl_save_prefix="$prefix"
8912 prefix="$acl_final_prefix"
8913 acl_save_exec_prefix="$exec_prefix"
8914 exec_prefix="$acl_final_exec_prefix"
8915 eval x=\"$x\"
8916 exec_prefix="$acl_save_exec_prefix"
8917 prefix="$acl_save_prefix"
8919 case "$x" in
8920 -L*)
8921 dir=`echo "X$x" | sed -e 's/^X-L//'`
8922 if test -n "$acl_shlibext"; then
8923 if test -f "$dir/$libname$shrext"; then
8924 found_dir="$dir"
8925 found_so="$dir/$libname$shrext"
8926 else
8927 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8928 ver=`(cd "$dir" && \
8929 for f in "$libname$shrext".*; do echo "$f"; done \
8930 | sed -e "s,^$libname$shrext\\\\.,," \
8931 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8932 | sed 1q ) 2>/dev/null`
8933 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8934 found_dir="$dir"
8935 found_so="$dir/$libname$shrext.$ver"
8937 else
8938 eval library_names=\"$acl_library_names_spec\"
8939 for f in $library_names; do
8940 if test -f "$dir/$f"; then
8941 found_dir="$dir"
8942 found_so="$dir/$f"
8943 break
8945 done
8949 if test "X$found_dir" = "X"; then
8950 if test -f "$dir/$libname.$acl_libext"; then
8951 found_dir="$dir"
8952 found_a="$dir/$libname.$acl_libext"
8955 if test "X$found_dir" != "X"; then
8956 if test -f "$dir/$libname.la"; then
8957 found_la="$dir/$libname.la"
8961 esac
8962 if test "X$found_dir" != "X"; then
8963 break
8965 done
8967 if test "X$found_dir" != "X"; then
8968 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8969 if test "X$found_so" != "X"; then
8970 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8971 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8972 else
8973 haveit=
8974 for x in $ltrpathdirs; do
8975 if test "X$x" = "X$found_dir"; then
8976 haveit=yes
8977 break
8979 done
8980 if test -z "$haveit"; then
8981 ltrpathdirs="$ltrpathdirs $found_dir"
8983 if test "$acl_hardcode_direct" = yes; then
8984 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8985 else
8986 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8987 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8988 haveit=
8989 for x in $rpathdirs; do
8990 if test "X$x" = "X$found_dir"; then
8991 haveit=yes
8992 break
8994 done
8995 if test -z "$haveit"; then
8996 rpathdirs="$rpathdirs $found_dir"
8998 else
8999 haveit=
9000 for x in $LDFLAGS $LIBINTL; do
9002 acl_save_prefix="$prefix"
9003 prefix="$acl_final_prefix"
9004 acl_save_exec_prefix="$exec_prefix"
9005 exec_prefix="$acl_final_exec_prefix"
9006 eval x=\"$x\"
9007 exec_prefix="$acl_save_exec_prefix"
9008 prefix="$acl_save_prefix"
9010 if test "X$x" = "X-L$found_dir"; then
9011 haveit=yes
9012 break
9014 done
9015 if test -z "$haveit"; then
9016 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9018 if test "$acl_hardcode_minus_L" != no; then
9019 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9020 else
9021 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9026 else
9027 if test "X$found_a" != "X"; then
9028 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9029 else
9030 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9033 additional_includedir=
9034 case "$found_dir" in
9035 */$acl_libdirstem | */$acl_libdirstem/)
9036 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9037 LIBINTL_PREFIX="$basedir"
9038 additional_includedir="$basedir/include"
9040 esac
9041 if test "X$additional_includedir" != "X"; then
9042 if test "X$additional_includedir" != "X/usr/include"; then
9043 haveit=
9044 if test "X$additional_includedir" = "X/usr/local/include"; then
9045 if test -n "$GCC"; then
9046 case $host_os in
9047 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9048 esac
9051 if test -z "$haveit"; then
9052 for x in $CPPFLAGS $INCINTL; do
9054 acl_save_prefix="$prefix"
9055 prefix="$acl_final_prefix"
9056 acl_save_exec_prefix="$exec_prefix"
9057 exec_prefix="$acl_final_exec_prefix"
9058 eval x=\"$x\"
9059 exec_prefix="$acl_save_exec_prefix"
9060 prefix="$acl_save_prefix"
9062 if test "X$x" = "X-I$additional_includedir"; then
9063 haveit=yes
9064 break
9066 done
9067 if test -z "$haveit"; then
9068 if test -d "$additional_includedir"; then
9069 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9075 if test -n "$found_la"; then
9076 save_libdir="$libdir"
9077 case "$found_la" in
9078 */* | *\\*) . "$found_la" ;;
9079 *) . "./$found_la" ;;
9080 esac
9081 libdir="$save_libdir"
9082 for dep in $dependency_libs; do
9083 case "$dep" in
9084 -L*)
9085 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9086 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9087 haveit=
9088 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9089 if test -n "$GCC"; then
9090 case $host_os in
9091 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9092 esac
9095 if test -z "$haveit"; then
9096 haveit=
9097 for x in $LDFLAGS $LIBINTL; do
9099 acl_save_prefix="$prefix"
9100 prefix="$acl_final_prefix"
9101 acl_save_exec_prefix="$exec_prefix"
9102 exec_prefix="$acl_final_exec_prefix"
9103 eval x=\"$x\"
9104 exec_prefix="$acl_save_exec_prefix"
9105 prefix="$acl_save_prefix"
9107 if test "X$x" = "X-L$additional_libdir"; then
9108 haveit=yes
9109 break
9111 done
9112 if test -z "$haveit"; then
9113 if test -d "$additional_libdir"; then
9114 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9117 haveit=
9118 for x in $LDFLAGS $LTLIBINTL; do
9120 acl_save_prefix="$prefix"
9121 prefix="$acl_final_prefix"
9122 acl_save_exec_prefix="$exec_prefix"
9123 exec_prefix="$acl_final_exec_prefix"
9124 eval x=\"$x\"
9125 exec_prefix="$acl_save_exec_prefix"
9126 prefix="$acl_save_prefix"
9128 if test "X$x" = "X-L$additional_libdir"; then
9129 haveit=yes
9130 break
9132 done
9133 if test -z "$haveit"; then
9134 if test -d "$additional_libdir"; then
9135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9141 -R*)
9142 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9143 if test "$enable_rpath" != no; then
9144 haveit=
9145 for x in $rpathdirs; do
9146 if test "X$x" = "X$dir"; then
9147 haveit=yes
9148 break
9150 done
9151 if test -z "$haveit"; then
9152 rpathdirs="$rpathdirs $dir"
9154 haveit=
9155 for x in $ltrpathdirs; do
9156 if test "X$x" = "X$dir"; then
9157 haveit=yes
9158 break
9160 done
9161 if test -z "$haveit"; then
9162 ltrpathdirs="$ltrpathdirs $dir"
9166 -l*)
9167 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9169 *.la)
9170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9173 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9174 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9176 esac
9177 done
9179 else
9180 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9185 done
9186 done
9187 if test "X$rpathdirs" != "X"; then
9188 if test -n "$acl_hardcode_libdir_separator"; then
9189 alldirs=
9190 for found_dir in $rpathdirs; do
9191 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9192 done
9193 acl_save_libdir="$libdir"
9194 libdir="$alldirs"
9195 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9196 libdir="$acl_save_libdir"
9197 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9198 else
9199 for found_dir in $rpathdirs; do
9200 acl_save_libdir="$libdir"
9201 libdir="$found_dir"
9202 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9203 libdir="$acl_save_libdir"
9204 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9205 done
9208 if test "X$ltrpathdirs" != "X"; then
9209 for found_dir in $ltrpathdirs; do
9210 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9211 done
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9215 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9216 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 gt_save_CPPFLAGS="$CPPFLAGS"
9220 CPPFLAGS="$CPPFLAGS $INCINTL"
9221 gt_save_LIBS="$LIBS"
9222 LIBS="$LIBS $LIBINTL"
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 #include <libintl.h>
9226 $gt_revision_test_code
9227 extern int _nl_msg_cat_cntr;
9228 extern
9229 #ifdef __cplusplus
9231 #endif
9232 const char *_nl_expand_alias (const char *);
9234 main ()
9236 bindtextdomain ("", "");
9237 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9239 return 0;
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"; then :
9243 eval "$gt_func_gnugettext_libintl=yes"
9244 else
9245 eval "$gt_func_gnugettext_libintl=no"
9247 rm -f core conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9250 LIBS="$LIBS $LIBICONV"
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <libintl.h>
9254 $gt_revision_test_code
9255 extern int _nl_msg_cat_cntr;
9256 extern
9257 #ifdef __cplusplus
9259 #endif
9260 const char *_nl_expand_alias (const char *);
9262 main ()
9264 bindtextdomain ("", "");
9265 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9267 return 0;
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 LIBINTL="$LIBINTL $LIBICONV"
9272 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9273 eval "$gt_func_gnugettext_libintl=yes"
9276 rm -f core conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9279 CPPFLAGS="$gt_save_CPPFLAGS"
9280 LIBS="$gt_save_LIBS"
9282 eval ac_res=\$$gt_func_gnugettext_libintl
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9284 $as_echo "$ac_res" >&6; }
9287 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9288 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9289 && test "$PACKAGE" != gettext-runtime \
9290 && test "$PACKAGE" != gettext-tools; }; then
9291 gt_use_preinstalled_gnugettext=yes
9292 else
9293 LIBINTL=
9294 LTLIBINTL=
9295 INCINTL=
9299 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9300 nls_cv_use_gnu_gettext=yes
9304 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9305 BUILD_INCLUDED_LIBINTL=yes
9306 USE_INCLUDED_LIBINTL=yes
9307 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9308 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9309 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9312 CATOBJEXT=
9313 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9314 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9315 CATOBJEXT=.gmo
9319 if test -n "$INTL_MACOSX_LIBS"; then
9320 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9321 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9322 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9323 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9327 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9328 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9330 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9332 else
9333 USE_NLS=no
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9338 $as_echo_n "checking whether to use NLS... " >&6; }
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9340 $as_echo "$USE_NLS" >&6; }
9341 if test "$USE_NLS" = "yes"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9343 $as_echo_n "checking where the gettext function comes from... " >&6; }
9344 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9345 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9346 gt_source="external libintl"
9347 else
9348 gt_source="libc"
9350 else
9351 gt_source="included intl directory"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9354 $as_echo "$gt_source" >&6; }
9357 if test "$USE_NLS" = "yes"; then
9359 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9360 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9362 $as_echo_n "checking how to link with libintl... " >&6; }
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9364 $as_echo "$LIBINTL" >&6; }
9366 for element in $INCINTL; do
9367 haveit=
9368 for x in $CPPFLAGS; do
9370 acl_save_prefix="$prefix"
9371 prefix="$acl_final_prefix"
9372 acl_save_exec_prefix="$exec_prefix"
9373 exec_prefix="$acl_final_exec_prefix"
9374 eval x=\"$x\"
9375 exec_prefix="$acl_save_exec_prefix"
9376 prefix="$acl_save_prefix"
9378 if test "X$x" = "X$element"; then
9379 haveit=yes
9380 break
9382 done
9383 if test -z "$haveit"; then
9384 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9386 done
9391 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9394 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9398 POSUB=po
9402 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9403 BUILD_INCLUDED_LIBINTL=yes
9410 nls_cv_header_intl=
9411 nls_cv_header_libgt=
9413 DATADIRNAME=share
9416 INSTOBJEXT=.mo
9419 GENCAT=gencat
9422 INTLOBJS=
9423 if test "$USE_INCLUDED_LIBINTL" = yes; then
9424 INTLOBJS="\$(GETTOBJS)"
9428 INTL_LIBTOOL_SUFFIX_PREFIX=
9432 INTLLIBS="$LIBINTL"
9444 abook_localedir="$datadir/locale"
9445 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9446 eval tmp_abook_prefix=\""$abook_localedir"\"
9447 eval echo $tmp_abook_prefix
9450 localedir="\$(datadir)/locale"
9453 # Check whether --with-localedir was given.
9454 if test "${with_localedir+set}" = set; then :
9455 withval=$with_localedir;
9458 if test "x$with_localedir" != "x"; then
9459 abook_localedir="$with_localedir"
9460 localedir="$with_localedir"
9464 cat >>confdefs.h <<_ACEOF
9465 #define LOCALEDIR "$abook_localedir"
9466 _ACEOF
9470 if test x$USE_INCLUDED_LIBINTL = xyes; then
9471 USE_INCLUDED_INTL_H_TRUE=
9472 USE_INCLUDED_INTL_H_FALSE='#'
9473 else
9474 USE_INCLUDED_INTL_H_TRUE='#'
9475 USE_INCLUDED_INTL_H_FALSE=
9480 ac_ext=c
9481 ac_cpp='$CPP $CPPFLAGS'
9482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9485 if test -n "$ac_tool_prefix"; then
9486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9487 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if test "${ac_cv_prog_CC+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 if test -n "$CC"; then
9494 ac_cv_prog_CC="$CC" # Let the user override the test.
9495 else
9496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 for as_dir in $PATH
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
9501 for ac_exec_ext in '' $ac_executable_extensions; do
9502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9503 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9505 break 2
9507 done
9508 done
9509 IFS=$as_save_IFS
9513 CC=$ac_cv_prog_CC
9514 if test -n "$CC"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9516 $as_echo "$CC" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9524 if test -z "$ac_cv_prog_CC"; then
9525 ac_ct_CC=$CC
9526 # Extract the first word of "gcc", so it can be a program name with args.
9527 set dummy gcc; ac_word=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 if test -n "$ac_ct_CC"; then
9534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543 ac_cv_prog_ac_ct_CC="gcc"
9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9547 done
9548 done
9549 IFS=$as_save_IFS
9553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9554 if test -n "$ac_ct_CC"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9556 $as_echo "$ac_ct_CC" >&6; }
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9562 if test "x$ac_ct_CC" = x; then
9563 CC=""
9564 else
9565 case $cross_compiling:$ac_tool_warned in
9566 yes:)
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9569 ac_tool_warned=yes ;;
9570 esac
9571 CC=$ac_ct_CC
9573 else
9574 CC="$ac_cv_prog_CC"
9577 if test -z "$CC"; then
9578 if test -n "$ac_tool_prefix"; then
9579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9580 set dummy ${ac_tool_prefix}cc; ac_word=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if test "${ac_cv_prog_CC+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 if test -n "$CC"; then
9587 ac_cv_prog_CC="$CC" # Let the user override the test.
9588 else
9589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590 for as_dir in $PATH
9592 IFS=$as_save_IFS
9593 test -z "$as_dir" && as_dir=.
9594 for ac_exec_ext in '' $ac_executable_extensions; do
9595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9596 ac_cv_prog_CC="${ac_tool_prefix}cc"
9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 break 2
9600 done
9601 done
9602 IFS=$as_save_IFS
9606 CC=$ac_cv_prog_CC
9607 if test -n "$CC"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9609 $as_echo "$CC" >&6; }
9610 else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9618 if test -z "$CC"; then
9619 # Extract the first word of "cc", so it can be a program name with args.
9620 set dummy cc; ac_word=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if test "${ac_cv_prog_CC+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 if test -n "$CC"; then
9627 ac_cv_prog_CC="$CC" # Let the user override the test.
9628 else
9629 ac_prog_rejected=no
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9638 ac_prog_rejected=yes
9639 continue
9641 ac_cv_prog_CC="cc"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 break 2
9645 done
9646 done
9647 IFS=$as_save_IFS
9649 if test $ac_prog_rejected = yes; then
9650 # We found a bogon in the path, so make sure we never use it.
9651 set dummy $ac_cv_prog_CC
9652 shift
9653 if test $# != 0; then
9654 # We chose a different compiler from the bogus one.
9655 # However, it has the same basename, so the bogon will be chosen
9656 # first if we set CC to just the basename; use the full file name.
9657 shift
9658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9663 CC=$ac_cv_prog_CC
9664 if test -n "$CC"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9666 $as_echo "$CC" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9674 if test -z "$CC"; then
9675 if test -n "$ac_tool_prefix"; then
9676 for ac_prog in cl.exe
9678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if test "${ac_cv_prog_CC+set}" = set; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 if test -n "$CC"; then
9686 ac_cv_prog_CC="$CC" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9699 done
9700 done
9701 IFS=$as_save_IFS
9705 CC=$ac_cv_prog_CC
9706 if test -n "$CC"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9708 $as_echo "$CC" >&6; }
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9715 test -n "$CC" && break
9716 done
9718 if test -z "$CC"; then
9719 ac_ct_CC=$CC
9720 for ac_prog in cl.exe
9722 # Extract the first word of "$ac_prog", so it can be a program name with args.
9723 set dummy $ac_prog; ac_word=$2
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9725 $as_echo_n "checking for $ac_word... " >&6; }
9726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 if test -n "$ac_ct_CC"; then
9730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9731 else
9732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733 for as_dir in $PATH
9735 IFS=$as_save_IFS
9736 test -z "$as_dir" && as_dir=.
9737 for ac_exec_ext in '' $ac_executable_extensions; do
9738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9739 ac_cv_prog_ac_ct_CC="$ac_prog"
9740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 break 2
9743 done
9744 done
9745 IFS=$as_save_IFS
9749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9750 if test -n "$ac_ct_CC"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9752 $as_echo "$ac_ct_CC" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9759 test -n "$ac_ct_CC" && break
9760 done
9762 if test "x$ac_ct_CC" = x; then
9763 CC=""
9764 else
9765 case $cross_compiling:$ac_tool_warned in
9766 yes:)
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9769 ac_tool_warned=yes ;;
9770 esac
9771 CC=$ac_ct_CC
9778 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9780 as_fn_error "no acceptable C compiler found in \$PATH
9781 See \`config.log' for more details." "$LINENO" 5; }
9783 # Provide some information about the compiler.
9784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
9785 set X $ac_compile
9786 ac_compiler=$2
9787 for ac_option in --version -v -V -qversion; do
9788 { { ac_try="$ac_compiler $ac_option >&5"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9794 $as_echo "$ac_try_echo"; } >&5
9795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9796 ac_status=$?
9797 if test -s conftest.err; then
9798 sed '10a\
9799 ... rest of stderr output deleted ...
9800 10q' conftest.err >conftest.er1
9801 cat conftest.er1 >&5
9803 rm -f conftest.er1 conftest.err
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; }
9806 done
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
9809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
9810 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9817 main ()
9819 #ifndef __GNUC__
9820 choke me
9821 #endif
9824 return 0;
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828 ac_compiler_gnu=yes
9829 else
9830 ac_compiler_gnu=no
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
9837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
9838 if test $ac_compiler_gnu = yes; then
9839 GCC=yes
9840 else
9841 GCC=
9843 ac_test_CFLAGS=${CFLAGS+set}
9844 ac_save_CFLAGS=$CFLAGS
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
9846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
9847 if test "${ac_cv_prog_cc_g+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 ac_save_c_werror_flag=$ac_c_werror_flag
9851 ac_c_werror_flag=yes
9852 ac_cv_prog_cc_g=no
9853 CFLAGS="-g"
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9858 main ()
9862 return 0;
9864 _ACEOF
9865 if ac_fn_c_try_compile "$LINENO"; then :
9866 ac_cv_prog_cc_g=yes
9867 else
9868 CFLAGS=""
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9873 main ()
9877 return 0;
9879 _ACEOF
9880 if ac_fn_c_try_compile "$LINENO"; then :
9882 else
9883 ac_c_werror_flag=$ac_save_c_werror_flag
9884 CFLAGS="-g"
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9889 main ()
9893 return 0;
9895 _ACEOF
9896 if ac_fn_c_try_compile "$LINENO"; then :
9897 ac_cv_prog_cc_g=yes
9899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9904 ac_c_werror_flag=$ac_save_c_werror_flag
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9907 $as_echo "$ac_cv_prog_cc_g" >&6; }
9908 if test "$ac_test_CFLAGS" = set; then
9909 CFLAGS=$ac_save_CFLAGS
9910 elif test $ac_cv_prog_cc_g = yes; then
9911 if test "$GCC" = yes; then
9912 CFLAGS="-g -O2"
9913 else
9914 CFLAGS="-g"
9916 else
9917 if test "$GCC" = yes; then
9918 CFLAGS="-O2"
9919 else
9920 CFLAGS=
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9925 if test "${ac_cv_prog_cc_c89+set}" = set; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 ac_cv_prog_cc_c89=no
9929 ac_save_CC=$CC
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932 #include <stdarg.h>
9933 #include <stdio.h>
9934 #include <sys/types.h>
9935 #include <sys/stat.h>
9936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9937 struct buf { int x; };
9938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9939 static char *e (p, i)
9940 char **p;
9941 int i;
9943 return p[i];
9945 static char *f (char * (*g) (char **, int), char **p, ...)
9947 char *s;
9948 va_list v;
9949 va_start (v,p);
9950 s = g (p, va_arg (v,int));
9951 va_end (v);
9952 return s;
9955 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9956 function prototypes and stuff, but not '\xHH' hex character constants.
9957 These don't provoke an error unfortunately, instead are silently treated
9958 as 'x'. The following induces an error, until -std is added to get
9959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9960 array size at least. It's necessary to write '\x00'==0 to get something
9961 that's true only with -std. */
9962 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9964 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9965 inside strings and character constants. */
9966 #define FOO(x) 'x'
9967 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9969 int test (int i, double x);
9970 struct s1 {int (*f) (int a);};
9971 struct s2 {int (*f) (double a);};
9972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9973 int argc;
9974 char **argv;
9976 main ()
9978 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9980 return 0;
9982 _ACEOF
9983 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9986 CC="$ac_save_CC $ac_arg"
9987 if ac_fn_c_try_compile "$LINENO"; then :
9988 ac_cv_prog_cc_c89=$ac_arg
9990 rm -f core conftest.err conftest.$ac_objext
9991 test "x$ac_cv_prog_cc_c89" != "xno" && break
9992 done
9993 rm -f conftest.$ac_ext
9994 CC=$ac_save_CC
9997 # AC_CACHE_VAL
9998 case "x$ac_cv_prog_cc_c89" in
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10001 $as_echo "none needed" >&6; } ;;
10002 xno)
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10004 $as_echo "unsupported" >&6; } ;;
10006 CC="$CC $ac_cv_prog_cc_c89"
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10009 esac
10010 if test "x$ac_cv_prog_cc_c89" != xno; then :
10014 ac_ext=c
10015 ac_cpp='$CPP $CPPFLAGS'
10016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10020 depcc="$CC" am_compiler_list=
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10023 $as_echo_n "checking dependency style of $depcc... " >&6; }
10024 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10028 # We make a subdir and do the tests there. Otherwise we can end up
10029 # making bogus files that we don't know about and never remove. For
10030 # instance it was reported that on HP-UX the gcc test will end up
10031 # making a dummy file named `D' -- because `-MD' means `put the output
10032 # in D'.
10033 mkdir conftest.dir
10034 # Copy depcomp to subdir because otherwise we won't find it if we're
10035 # using a relative directory.
10036 cp "$am_depcomp" conftest.dir
10037 cd conftest.dir
10038 # We will build objects and dependencies in a subdirectory because
10039 # it helps to detect inapplicable dependency modes. For instance
10040 # both Tru64's cc and ICC support -MD to output dependencies as a
10041 # side effect of compilation, but ICC will put the dependencies in
10042 # the current directory while Tru64 will put them in the object
10043 # directory.
10044 mkdir sub
10046 am_cv_CC_dependencies_compiler_type=none
10047 if test "$am_compiler_list" = ""; then
10048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10050 am__universal=false
10051 case " $depcc " in #(
10052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10053 esac
10055 for depmode in $am_compiler_list; do
10056 # Setup a source with many dependencies, because some compilers
10057 # like to wrap large dependency lists on column 80 (with \), and
10058 # we should not choose a depcomp mode which is confused by this.
10060 # We need to recreate these files for each test, as the compiler may
10061 # overwrite some of them when testing with obscure command lines.
10062 # This happens at least with the AIX C compiler.
10063 : > sub/conftest.c
10064 for i in 1 2 3 4 5 6; do
10065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10067 # Solaris 8's {/usr,}/bin/sh.
10068 touch sub/conftst$i.h
10069 done
10070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10073 # mode. It turns out that the SunPro C++ compiler does not properly
10074 # handle `-M -o', and we need to detect this. Also, some Intel
10075 # versions had trouble with output in subdirs
10076 am__obj=sub/conftest.${OBJEXT-o}
10077 am__minus_obj="-o $am__obj"
10078 case $depmode in
10079 gcc)
10080 # This depmode causes a compiler race in universal mode.
10081 test "$am__universal" = false || continue
10083 nosideeffect)
10084 # after this tag, mechanisms are not by side-effect, so they'll
10085 # only be used when explicitly requested
10086 if test "x$enable_dependency_tracking" = xyes; then
10087 continue
10088 else
10089 break
10092 msvisualcpp | msvcmsys)
10093 # This compiler won't grok `-c -o', but also, the minuso test has
10094 # not run yet. These depmodes are late enough in the game, and
10095 # so weak that their functioning should not be impacted.
10096 am__obj=conftest.${OBJEXT-o}
10097 am__minus_obj=
10099 none) break ;;
10100 esac
10101 if depmode=$depmode \
10102 source=sub/conftest.c object=$am__obj \
10103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10105 >/dev/null 2>conftest.err &&
10106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10110 # icc doesn't choke on unknown options, it will just issue warnings
10111 # or remarks (even with -Werror). So we grep stderr for any message
10112 # that says an option was ignored or not supported.
10113 # When given -MP, icc 7.0 and 7.1 complain thusly:
10114 # icc: Command line warning: ignoring option '-M'; no argument required
10115 # The diagnosis changed in icc 8.0:
10116 # icc: Command line remark: option '-MP' not supported
10117 if (grep 'ignoring option' conftest.err ||
10118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10119 am_cv_CC_dependencies_compiler_type=$depmode
10120 break
10123 done
10125 cd ..
10126 rm -rf conftest.dir
10127 else
10128 am_cv_CC_dependencies_compiler_type=none
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10137 test "x$enable_dependency_tracking" != xno \
10138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10139 am__fastdepCC_TRUE=
10140 am__fastdepCC_FALSE='#'
10141 else
10142 am__fastdepCC_TRUE='#'
10143 am__fastdepCC_FALSE=
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10148 $as_echo_n "checking for library containing strerror... " >&6; }
10149 if test "${ac_cv_search_strerror+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 ac_func_search_save_LIBS=$LIBS
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10156 /* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char strerror ();
10164 main ()
10166 return strerror ();
10168 return 0;
10170 _ACEOF
10171 for ac_lib in '' cposix; do
10172 if test -z "$ac_lib"; then
10173 ac_res="none required"
10174 else
10175 ac_res=-l$ac_lib
10176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 ac_cv_search_strerror=$ac_res
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext
10183 if test "${ac_cv_search_strerror+set}" = set; then :
10184 break
10186 done
10187 if test "${ac_cv_search_strerror+set}" = set; then :
10189 else
10190 ac_cv_search_strerror=no
10192 rm conftest.$ac_ext
10193 LIBS=$ac_func_search_save_LIBS
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10196 $as_echo "$ac_cv_search_strerror" >&6; }
10197 ac_res=$ac_cv_search_strerror
10198 if test "$ac_res" != no; then :
10199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10204 $as_echo_n "checking for function prototypes... " >&6; }
10205 if test "$ac_cv_prog_cc_c89" != no; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10207 $as_echo "yes" >&6; }
10209 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10212 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10220 if test "$ac_cv_prog_cc_stdc" != no; then
10221 U= ANSI2KNR=
10222 else
10223 U=_ ANSI2KNR=./ansi2knr
10225 # Ensure some checks needed by ansi2knr itself.
10227 for ac_header in string.h
10228 do :
10229 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10230 if test "x$ac_cv_header_string_h" = x""yes; then :
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_STRING_H 1
10233 _ACEOF
10237 done
10240 if test "x$U" != "x"; then
10241 as_fn_error "Compiler not ANSI compliant" "$LINENO" 5
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10244 $as_echo_n "checking for inline... " >&6; }
10245 if test "${ac_cv_c_inline+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_cv_c_inline=no
10249 for ac_kw in inline __inline__ __inline; do
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 #ifndef __cplusplus
10253 typedef int foo_t;
10254 static $ac_kw foo_t static_foo () {return 0; }
10255 $ac_kw foo_t foo () {return 0; }
10256 #endif
10258 _ACEOF
10259 if ac_fn_c_try_compile "$LINENO"; then :
10260 ac_cv_c_inline=$ac_kw
10262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 test "$ac_cv_c_inline" != no && break
10264 done
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10268 $as_echo "$ac_cv_c_inline" >&6; }
10270 case $ac_cv_c_inline in
10271 inline | yes) ;;
10273 case $ac_cv_c_inline in
10274 no) ac_val=;;
10275 *) ac_val=$ac_cv_c_inline;;
10276 esac
10277 cat >>confdefs.h <<_ACEOF
10278 #ifndef __cplusplus
10279 #define inline $ac_val
10280 #endif
10281 _ACEOF
10283 esac
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10287 $as_echo_n "checking for ANSI C header files... " >&6; }
10288 if test "${ac_cv_header_stdc+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <stdlib.h>
10294 #include <stdarg.h>
10295 #include <string.h>
10296 #include <float.h>
10299 main ()
10303 return 0;
10305 _ACEOF
10306 if ac_fn_c_try_compile "$LINENO"; then :
10307 ac_cv_header_stdc=yes
10308 else
10309 ac_cv_header_stdc=no
10311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 if test $ac_cv_header_stdc = yes; then
10314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 #include <string.h>
10319 _ACEOF
10320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10321 $EGREP "memchr" >/dev/null 2>&1; then :
10323 else
10324 ac_cv_header_stdc=no
10326 rm -f conftest*
10330 if test $ac_cv_header_stdc = yes; then
10331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334 #include <stdlib.h>
10336 _ACEOF
10337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10338 $EGREP "free" >/dev/null 2>&1; then :
10340 else
10341 ac_cv_header_stdc=no
10343 rm -f conftest*
10347 if test $ac_cv_header_stdc = yes; then
10348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10349 if test "$cross_compiling" = yes; then :
10351 else
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 #include <ctype.h>
10355 #include <stdlib.h>
10356 #if ((' ' & 0x0FF) == 0x020)
10357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10359 #else
10360 # define ISLOWER(c) \
10361 (('a' <= (c) && (c) <= 'i') \
10362 || ('j' <= (c) && (c) <= 'r') \
10363 || ('s' <= (c) && (c) <= 'z'))
10364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10365 #endif
10367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10369 main ()
10371 int i;
10372 for (i = 0; i < 256; i++)
10373 if (XOR (islower (i), ISLOWER (i))
10374 || toupper (i) != TOUPPER (i))
10375 return 2;
10376 return 0;
10378 _ACEOF
10379 if ac_fn_c_try_run "$LINENO"; then :
10381 else
10382 ac_cv_header_stdc=no
10384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10385 conftest.$ac_objext conftest.beam conftest.$ac_ext
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10391 $as_echo "$ac_cv_header_stdc" >&6; }
10392 if test $ac_cv_header_stdc = yes; then
10394 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10398 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10399 do :
10400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10401 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10402 eval as_val=\$$as_ac_Header
10403 if test "x$as_val" = x""yes; then :
10404 cat >>confdefs.h <<_ACEOF
10405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10406 _ACEOF
10410 done
10412 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10413 if test "x$ac_cv_header_stdarg_h" = x""yes; then :
10415 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10417 else
10418 as_fn_error "*** stdarg.h is missing on your system ***" "$LINENO" 5
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10423 $as_echo_n "checking for working strcoll... " >&6; }
10424 if test "${ac_cv_func_strcoll_works+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 if test "$cross_compiling" = yes; then :
10428 ac_cv_func_strcoll_works=no
10429 else
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 $ac_includes_default
10434 main ()
10436 return (strcoll ("abc", "def") >= 0 ||
10437 strcoll ("ABC", "DEF") >= 0 ||
10438 strcoll ("123", "456") >= 0)
10440 return 0;
10442 _ACEOF
10443 if ac_fn_c_try_run "$LINENO"; then :
10444 ac_cv_func_strcoll_works=yes
10445 else
10446 ac_cv_func_strcoll_works=no
10448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10449 conftest.$ac_objext conftest.beam conftest.$ac_ext
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10454 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10455 if test $ac_cv_func_strcoll_works = yes; then
10457 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10461 for ac_func in setlocale
10462 do :
10463 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10464 if test "x$ac_cv_func_setlocale" = x""yes; then :
10465 cat >>confdefs.h <<_ACEOF
10466 #define HAVE_SETLOCALE 1
10467 _ACEOF
10470 done
10473 ac_widec_funcs=yes
10474 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10475 if test "x$ac_cv_header_wchar_h" = x""yes; then :
10477 ac_have_wchar_h=yes
10479 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10481 else
10482 ac_have_wchar_h=no
10486 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10487 do :
10488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10490 eval as_val=\$$as_ac_var
10491 if test "x$as_val" = x""yes; then :
10492 cat >>confdefs.h <<_ACEOF
10493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10494 _ACEOF
10496 else
10497 ac_widec_funcs=no
10499 done
10501 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10502 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then :
10503 ac_have_decl=1
10504 else
10505 ac_have_decl=0
10508 cat >>confdefs.h <<_ACEOF
10509 #define HAVE_DECL_WCWIDTH $ac_have_decl
10510 _ACEOF
10512 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10513 if test "x$ac_cv_type_wchar_t" = x""yes; then :
10515 else
10516 ac_widec_funcs=no
10520 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10521 ac_widec_possible=yes
10522 else
10523 ac_widec_possible=no
10527 abook_cv_curses=/usr
10529 # Check whether --with-curses was given.
10530 if test "${with_curses+set}" = set; then :
10531 withval=$with_curses; if test $withval != yes; then
10532 abook_cv_curses=$withval
10534 if test x$abook_cv_curses != x/usr; then
10535 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10536 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10542 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10543 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-lncursesw $LIBS"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char initscr ();
10559 main ()
10561 return initscr ();
10563 return 0;
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 ac_cv_lib_ncursesw_initscr=yes
10568 else
10569 ac_cv_lib_ncursesw_initscr=no
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10576 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10577 if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then :
10578 LIBS="$LIBS -lncursesw"
10579 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10580 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10582 for ac_header in ncurses.h
10583 do :
10584 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10585 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_NCURSES_H 1
10588 _ACEOF
10592 done
10594 else
10596 ac_widec_possible=no
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10598 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10599 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 ac_check_lib_save_LIBS=$LIBS
10603 LIBS="-lncurses $LIBS"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char initscr ();
10615 main ()
10617 return initscr ();
10619 return 0;
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 ac_cv_lib_ncurses_initscr=yes
10624 else
10625 ac_cv_lib_ncurses_initscr=no
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10632 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10633 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
10634 LIBS="$LIBS -lncurses"
10635 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10636 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10638 for ac_header in ncurses.h
10639 do :
10640 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10641 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
10642 cat >>confdefs.h <<_ACEOF
10643 #define HAVE_NCURSES_H 1
10644 _ACEOF
10648 done
10650 else
10652 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10653 if test "x$ac_cv_func_initscr" = x""yes; then :
10655 else
10657 case $host_os in #(vi
10658 freebsd*) #(vi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10660 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10661 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 ac_check_lib_save_LIBS=$LIBS
10665 LIBS="-lmytinfo $LIBS"
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 char tgoto ();
10677 main ()
10679 return tgoto ();
10681 return 0;
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_lib_mytinfo_tgoto=yes
10686 else
10687 ac_cv_lib_mytinfo_tgoto=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
10694 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
10695 if test "x$ac_cv_lib_mytinfo_tgoto" = x""yes; then :
10696 LIBS="-lmytinfo $LIBS"
10700 hpux10.*|hpux11.*)
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
10702 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
10703 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lcur_colr $LIBS"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char initscr ();
10719 main ()
10721 return initscr ();
10723 return 0;
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_cur_colr_initscr=yes
10728 else
10729 ac_cv_lib_cur_colr_initscr=no
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
10736 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
10737 if test "x$ac_cv_lib_cur_colr_initscr" = x""yes; then :
10739 LIBS="-lcur_colr $LIBS"
10740 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
10741 ac_cv_func_initscr=yes
10743 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
10746 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
10747 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lHcurses $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char initscr ();
10763 main ()
10765 return initscr ();
10767 return 0;
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_lib_Hcurses_initscr=yes
10772 else
10773 ac_cv_lib_Hcurses_initscr=no
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
10780 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
10781 if test "x$ac_cv_lib_Hcurses_initscr" = x""yes; then :
10783 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
10784 LIBS="-lHcurses $LIBS"
10785 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
10786 ac_cv_func_initscr=yes
10793 linux*) # Suse Linux does not follow /usr/lib convention
10794 LIBS="$LIBS -L/lib"
10796 esac
10798 if test ".$With5lib" != ".no" ; then
10799 if test -d /usr/5lib ; then
10800 # SunOS 3.x or 4.x
10801 CPPFLAGS="$CPPFLAGS -I/usr/5include"
10802 LIBS="$LIBS -L/usr/5lib"
10806 if test ".$ac_cv_func_initscr" != .yes ; then
10807 cf_save_LIBS="$LIBS"
10808 cf_term_lib=""
10809 cf_curs_lib=""
10811 # Check for library containing tgoto. Do this before curses library
10812 # because it may be needed to link the test-case for initscr.
10813 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
10814 if test "x$ac_cv_func_tgoto" = x""yes; then :
10815 cf_term_lib=predefined
10816 else
10818 for cf_term_lib in termcap termlib unknown
10820 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
10822 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
10823 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-l$cf_term_lib $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char tgoto ();
10839 main ()
10841 return tgoto ();
10843 return 0;
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 eval "$as_ac_Lib=yes"
10848 else
10849 eval "$as_ac_Lib=no"
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10855 eval ac_res=\$$as_ac_Lib
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10857 $as_echo "$ac_res" >&6; }
10858 eval as_val=\$$as_ac_Lib
10859 if test "x$as_val" = x""yes; then :
10860 break
10863 done
10868 # Check for library containing initscr
10869 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
10870 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
10872 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
10874 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
10875 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-l$cf_curs_lib $LIBS"
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10883 /* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 char initscr ();
10891 main ()
10893 return initscr ();
10895 return 0;
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899 eval "$as_ac_Lib=yes"
10900 else
10901 eval "$as_ac_Lib=no"
10903 rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10907 eval ac_res=\$$as_ac_Lib
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10909 $as_echo "$ac_res" >&6; }
10910 eval as_val=\$$as_ac_Lib
10911 if test "x$as_val" = x""yes; then :
10912 break
10915 done
10916 test $cf_curs_lib = unknown && as_fn_error "no curses library found" "$LINENO" 5
10918 LIBS="-l$cf_curs_lib $cf_save_LIBS"
10919 if test "$cf_term_lib" = unknown ; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
10921 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <${cf_cv_ncurses_header-curses.h}>
10926 main ()
10928 initscr()
10930 return 0;
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"; then :
10934 cf_result=yes
10935 else
10936 cf_result=no
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
10941 $as_echo "$cf_result" >&6; }
10942 test $cf_result = no && as_fn_error "Cannot link curses library" "$LINENO" 5
10943 elif test "$cf_term_lib" != predefined ; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
10945 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <${cf_cv_ncurses_header-curses.h}>
10950 main ()
10952 initscr(); tgoto((char *)0, 0, 0);
10954 return 0;
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 cf_result=no
10959 else
10961 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964 #include <${cf_cv_ncurses_header-curses.h}>
10966 main ()
10968 initscr()
10970 return 0;
10972 _ACEOF
10973 if ac_fn_c_try_link "$LINENO"; then :
10974 cf_result=yes
10975 else
10976 cf_result=error
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10982 rm -f core conftest.err conftest.$ac_objext \
10983 conftest$ac_exeext conftest.$ac_ext
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
10985 $as_echo "$cf_result" >&6; }
11000 abook_cv_readline=/usr
11002 # Check whether --with-readline was given.
11003 if test "${with_readline+set}" = set; then :
11004 withval=$with_readline; if test $withval != yes; then
11005 abook_cv_readline=$withval
11007 if test x$abook_cv_readline != x/usr; then
11008 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11009 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11016 $as_echo_n "checking for a readline compatible library... " >&6; }
11017 if test "${ac_cv_lib_readline+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11021 ORIG_LIBS="$LIBS"
11022 for readline_lib in readline edit editline; do
11023 for termcap_lib in "" termcap curses ncurses; do
11024 if test -z "$termcap_lib"; then
11025 TRY_LIB="-l$readline_lib"
11026 else
11027 TRY_LIB="-l$readline_lib -l$termcap_lib"
11029 LIBS="$ORIG_LIBS $TRY_LIB"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char readline ();
11041 main ()
11043 return readline ();
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_readline="$TRY_LIB"
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 if test -n "$ac_cv_lib_readline"; then
11054 break
11056 done
11057 if test -n "$ac_cv_lib_readline"; then
11058 break
11060 done
11061 if test -z "$ac_cv_lib_readline"; then
11062 ac_cv_lib_readline="no"
11064 LIBS="$ORIG_LIBS"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11068 $as_echo "$ac_cv_lib_readline" >&6; }
11070 if test "$ac_cv_lib_readline" != "no"; then
11071 LIBS="$LIBS $ac_cv_lib_readline"
11073 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11075 for ac_header in readline.h readline/readline.h
11076 do :
11077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11078 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11079 eval as_val=\$$as_ac_Header
11080 if test "x$as_val" = x""yes; then :
11081 cat >>confdefs.h <<_ACEOF
11082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11083 _ACEOF
11087 done
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11090 $as_echo_n "checking whether readline supports history... " >&6; }
11091 if test "${ac_cv_lib_readline_history+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11095 ac_cv_lib_readline_history="no"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char add_history ();
11107 main ()
11109 return add_history ();
11111 return 0;
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 ac_cv_lib_readline_history="yes"
11117 rm -f core conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11122 $as_echo "$ac_cv_lib_readline_history" >&6; }
11123 if test "$ac_cv_lib_readline_history" = "yes"; then
11125 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11127 for ac_header in history.h readline/history.h
11128 do :
11129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11130 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11131 eval as_val=\$$as_ac_Header
11132 if test "x$as_val" = x""yes; then :
11133 cat >>confdefs.h <<_ACEOF
11134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11135 _ACEOF
11139 done
11146 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11147 as_fn_error "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11151 if test x$ac_widec_possible = xyes; then
11153 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11157 for ac_func in resizeterm
11158 do :
11159 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11160 if test "x$ac_cv_func_resizeterm" = x""yes; then :
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_RESIZETERM 1
11163 _ACEOF
11166 done
11169 for ac_func in snprintf vsnprintf
11170 do :
11171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11173 eval as_val=\$$as_ac_var
11174 if test "x$as_val" = x""yes; then :
11175 cat >>confdefs.h <<_ACEOF
11176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11177 _ACEOF
11180 done
11183 # Check whether --enable-debug was given.
11184 if test "${enable_debug+set}" = set; then :
11185 enableval=$enable_debug; case "${enableval}" in
11186 yes) debug=true ;;
11187 no) debug=false ;;
11188 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11189 esac
11190 else
11191 debug=false
11195 if test x$debug = xtrue; then
11196 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11197 CFLAGS="-g $CFLAGS"
11200 if test x$GCC = xyes; then
11201 CFLAGS="-Wall $CFLAGS"
11204 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11206 cat >confcache <<\_ACEOF
11207 # This file is a shell script that caches the results of configure
11208 # tests run on this system so they can be shared between configure
11209 # scripts and configure runs, see configure's option --config-cache.
11210 # It is not useful on other systems. If it contains results you don't
11211 # want to keep, you may remove or edit it.
11213 # config.status only pays attention to the cache file if you give it
11214 # the --recheck option to rerun configure.
11216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11218 # following values.
11220 _ACEOF
11222 # The following way of writing the cache mishandles newlines in values,
11223 # but we know of no workaround that is simple, portable, and efficient.
11224 # So, we kill variables containing newlines.
11225 # Ultrix sh set writes to stderr and can't be redirected directly,
11226 # and sets the high bit in the cache file unless we assign to the vars.
11228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11229 eval ac_val=\$$ac_var
11230 case $ac_val in #(
11231 *${as_nl}*)
11232 case $ac_var in #(
11233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11235 esac
11236 case $ac_var in #(
11237 _ | IFS | as_nl) ;; #(
11238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11239 *) { eval $ac_var=; unset $ac_var;} ;;
11240 esac ;;
11241 esac
11242 done
11244 (set) 2>&1 |
11245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11246 *${as_nl}ac_space=\ *)
11247 # `set' does not quote correctly, so add quotes: double-quote
11248 # substitution turns \\\\ into \\, and sed turns \\ into \.
11249 sed -n \
11250 "s/'/'\\\\''/g;
11251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11252 ;; #(
11254 # `set' quotes correctly as required by POSIX, so do not add quotes.
11255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11257 esac |
11258 sort
11260 sed '
11261 /^ac_cv_env_/b end
11262 t clear
11263 :clear
11264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11265 t end
11266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11267 :end' >>confcache
11268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11269 if test -w "$cache_file"; then
11270 test "x$cache_file" != "x/dev/null" &&
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11272 $as_echo "$as_me: updating cache $cache_file" >&6;}
11273 cat confcache >$cache_file
11274 else
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11276 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11279 rm -f confcache
11281 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11282 # Let make expand exec_prefix.
11283 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11285 DEFS=-DHAVE_CONFIG_H
11287 ac_libobjs=
11288 ac_ltlibobjs=
11289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11290 # 1. Remove the extension, and $U if already installed.
11291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11292 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11294 # will be set to the directory where LIBOBJS objects are built.
11295 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11296 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11297 done
11298 LIBOBJS=$ac_libobjs
11300 LTLIBOBJS=$ac_ltlibobjs
11303 if test -n "$EXEEXT"; then
11304 am__EXEEXT_TRUE=
11305 am__EXEEXT_FALSE='#'
11306 else
11307 am__EXEEXT_TRUE='#'
11308 am__EXEEXT_FALSE=
11311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11312 as_fn_error "conditional \"AMDEP\" was never defined.
11313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11315 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11316 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11319 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11320 as_fn_error "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11324 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11328 : ${CONFIG_STATUS=./config.status}
11329 ac_write_fail=0
11330 ac_clean_files_save=$ac_clean_files
11331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11333 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11334 as_write_fail=0
11335 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11336 #! $SHELL
11337 # Generated by $as_me.
11338 # Run this file to recreate the current configuration.
11339 # Compiler output produced by configure, useful for debugging
11340 # configure, is in config.log if it exists.
11342 debug=false
11343 ac_cs_recheck=false
11344 ac_cs_silent=false
11346 SHELL=\${CONFIG_SHELL-$SHELL}
11347 export SHELL
11348 _ASEOF
11349 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11350 ## -------------------- ##
11351 ## M4sh Initialization. ##
11352 ## -------------------- ##
11354 # Be more Bourne compatible
11355 DUALCASE=1; export DUALCASE # for MKS sh
11356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11357 emulate sh
11358 NULLCMD=:
11359 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11360 # is contrary to our usage. Disable this feature.
11361 alias -g '${1+"$@"}'='"$@"'
11362 setopt NO_GLOB_SUBST
11363 else
11364 case `(set -o) 2>/dev/null` in #(
11365 *posix*) :
11366 set -o posix ;; #(
11367 *) :
11369 esac
11373 as_nl='
11375 export as_nl
11376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11377 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11380 # Prefer a ksh shell builtin over an external printf program on Solaris,
11381 # but without wasting forks for bash or zsh.
11382 if test -z "$BASH_VERSION$ZSH_VERSION" \
11383 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11384 as_echo='print -r --'
11385 as_echo_n='print -rn --'
11386 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11387 as_echo='printf %s\n'
11388 as_echo_n='printf %s'
11389 else
11390 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11391 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11392 as_echo_n='/usr/ucb/echo -n'
11393 else
11394 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11395 as_echo_n_body='eval
11396 arg=$1;
11397 case $arg in #(
11398 *"$as_nl"*)
11399 expr "X$arg" : "X\\(.*\\)$as_nl";
11400 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11401 esac;
11402 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11404 export as_echo_n_body
11405 as_echo_n='sh -c $as_echo_n_body as_echo'
11407 export as_echo_body
11408 as_echo='sh -c $as_echo_body as_echo'
11411 # The user is always right.
11412 if test "${PATH_SEPARATOR+set}" != set; then
11413 PATH_SEPARATOR=:
11414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11415 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11416 PATH_SEPARATOR=';'
11421 # IFS
11422 # We need space, tab and new line, in precisely that order. Quoting is
11423 # there to prevent editors from complaining about space-tab.
11424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11425 # splitting by setting IFS to empty value.)
11426 IFS=" "" $as_nl"
11428 # Find who we are. Look in the path if we contain no directory separator.
11429 case $0 in #((
11430 *[\\/]* ) as_myself=$0 ;;
11431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11437 done
11438 IFS=$as_save_IFS
11441 esac
11442 # We did not find ourselves, most probably we were run as `sh COMMAND'
11443 # in which case we are not to be found in the path.
11444 if test "x$as_myself" = x; then
11445 as_myself=$0
11447 if test ! -f "$as_myself"; then
11448 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11449 exit 1
11452 # Unset variables that we do not need and which cause bugs (e.g. in
11453 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11454 # suppresses any "Segmentation fault" message there. '((' could
11455 # trigger a bug in pdksh 5.2.14.
11456 for as_var in BASH_ENV ENV MAIL MAILPATH
11457 do eval test x\${$as_var+set} = xset \
11458 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11459 done
11460 PS1='$ '
11461 PS2='> '
11462 PS4='+ '
11464 # NLS nuisances.
11465 LC_ALL=C
11466 export LC_ALL
11467 LANGUAGE=C
11468 export LANGUAGE
11470 # CDPATH.
11471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11474 # as_fn_error ERROR [LINENO LOG_FD]
11475 # ---------------------------------
11476 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11477 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11478 # script with status $?, using 1 if that was 0.
11479 as_fn_error ()
11481 as_status=$?; test $as_status -eq 0 && as_status=1
11482 if test "$3"; then
11483 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11484 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11486 $as_echo "$as_me: error: $1" >&2
11487 as_fn_exit $as_status
11488 } # as_fn_error
11491 # as_fn_set_status STATUS
11492 # -----------------------
11493 # Set $? to STATUS, without forking.
11494 as_fn_set_status ()
11496 return $1
11497 } # as_fn_set_status
11499 # as_fn_exit STATUS
11500 # -----------------
11501 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11502 as_fn_exit ()
11504 set +e
11505 as_fn_set_status $1
11506 exit $1
11507 } # as_fn_exit
11509 # as_fn_unset VAR
11510 # ---------------
11511 # Portably unset VAR.
11512 as_fn_unset ()
11514 { eval $1=; unset $1;}
11516 as_unset=as_fn_unset
11517 # as_fn_append VAR VALUE
11518 # ----------------------
11519 # Append the text in VALUE to the end of the definition contained in VAR. Take
11520 # advantage of any shell optimizations that allow amortized linear growth over
11521 # repeated appends, instead of the typical quadratic growth present in naive
11522 # implementations.
11523 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11524 eval 'as_fn_append ()
11526 eval $1+=\$2
11528 else
11529 as_fn_append ()
11531 eval $1=\$$1\$2
11533 fi # as_fn_append
11535 # as_fn_arith ARG...
11536 # ------------------
11537 # Perform arithmetic evaluation on the ARGs, and store the result in the
11538 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11539 # must be portable across $(()) and expr.
11540 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11541 eval 'as_fn_arith ()
11543 as_val=$(( $* ))
11545 else
11546 as_fn_arith ()
11548 as_val=`expr "$@" || test $? -eq 1`
11550 fi # as_fn_arith
11553 if expr a : '\(a\)' >/dev/null 2>&1 &&
11554 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11555 as_expr=expr
11556 else
11557 as_expr=false
11560 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11561 as_basename=basename
11562 else
11563 as_basename=false
11566 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11567 as_dirname=dirname
11568 else
11569 as_dirname=false
11572 as_me=`$as_basename -- "$0" ||
11573 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11574 X"$0" : 'X\(//\)$' \| \
11575 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11576 $as_echo X/"$0" |
11577 sed '/^.*\/\([^/][^/]*\)\/*$/{
11578 s//\1/
11581 /^X\/\(\/\/\)$/{
11582 s//\1/
11585 /^X\/\(\/\).*/{
11586 s//\1/
11589 s/.*/./; q'`
11591 # Avoid depending upon Character Ranges.
11592 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11593 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11594 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11595 as_cr_digits='0123456789'
11596 as_cr_alnum=$as_cr_Letters$as_cr_digits
11598 ECHO_C= ECHO_N= ECHO_T=
11599 case `echo -n x` in #(((((
11600 -n*)
11601 case `echo 'xy\c'` in
11602 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11603 xy) ECHO_C='\c';;
11604 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11605 ECHO_T=' ';;
11606 esac;;
11608 ECHO_N='-n';;
11609 esac
11611 rm -f conf$$ conf$$.exe conf$$.file
11612 if test -d conf$$.dir; then
11613 rm -f conf$$.dir/conf$$.file
11614 else
11615 rm -f conf$$.dir
11616 mkdir conf$$.dir 2>/dev/null
11618 if (echo >conf$$.file) 2>/dev/null; then
11619 if ln -s conf$$.file conf$$ 2>/dev/null; then
11620 as_ln_s='ln -s'
11621 # ... but there are two gotchas:
11622 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11623 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11624 # In both cases, we have to default to `cp -p'.
11625 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11626 as_ln_s='cp -p'
11627 elif ln conf$$.file conf$$ 2>/dev/null; then
11628 as_ln_s=ln
11629 else
11630 as_ln_s='cp -p'
11632 else
11633 as_ln_s='cp -p'
11635 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11636 rmdir conf$$.dir 2>/dev/null
11639 # as_fn_mkdir_p
11640 # -------------
11641 # Create "$as_dir" as a directory, including parents if necessary.
11642 as_fn_mkdir_p ()
11645 case $as_dir in #(
11646 -*) as_dir=./$as_dir;;
11647 esac
11648 test -d "$as_dir" || eval $as_mkdir_p || {
11649 as_dirs=
11650 while :; do
11651 case $as_dir in #(
11652 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11653 *) as_qdir=$as_dir;;
11654 esac
11655 as_dirs="'$as_qdir' $as_dirs"
11656 as_dir=`$as_dirname -- "$as_dir" ||
11657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11658 X"$as_dir" : 'X\(//\)[^/]' \| \
11659 X"$as_dir" : 'X\(//\)$' \| \
11660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11661 $as_echo X"$as_dir" |
11662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11663 s//\1/
11666 /^X\(\/\/\)[^/].*/{
11667 s//\1/
11670 /^X\(\/\/\)$/{
11671 s//\1/
11674 /^X\(\/\).*/{
11675 s//\1/
11678 s/.*/./; q'`
11679 test -d "$as_dir" && break
11680 done
11681 test -z "$as_dirs" || eval "mkdir $as_dirs"
11682 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11685 } # as_fn_mkdir_p
11686 if mkdir -p . 2>/dev/null; then
11687 as_mkdir_p='mkdir -p "$as_dir"'
11688 else
11689 test -d ./-p && rmdir ./-p
11690 as_mkdir_p=false
11693 if test -x / >/dev/null 2>&1; then
11694 as_test_x='test -x'
11695 else
11696 if ls -dL / >/dev/null 2>&1; then
11697 as_ls_L_option=L
11698 else
11699 as_ls_L_option=
11701 as_test_x='
11702 eval sh -c '\''
11703 if test -d "$1"; then
11704 test -d "$1/.";
11705 else
11706 case $1 in #(
11707 -*)set "./$1";;
11708 esac;
11709 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11710 ???[sx]*):;;*)false;;esac;fi
11711 '\'' sh
11714 as_executable_p=$as_test_x
11716 # Sed expression to map a string onto a valid CPP name.
11717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11719 # Sed expression to map a string onto a valid variable name.
11720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11723 exec 6>&1
11724 ## ----------------------------------- ##
11725 ## Main body of $CONFIG_STATUS script. ##
11726 ## ----------------------------------- ##
11727 _ASEOF
11728 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11731 # Save the log message, to keep $0 and so on meaningful, and to
11732 # report actual input values of CONFIG_FILES etc. instead of their
11733 # values after options handling.
11734 ac_log="
11735 This file was extended by $as_me, which was
11736 generated by GNU Autoconf 2.65. Invocation command line was
11738 CONFIG_FILES = $CONFIG_FILES
11739 CONFIG_HEADERS = $CONFIG_HEADERS
11740 CONFIG_LINKS = $CONFIG_LINKS
11741 CONFIG_COMMANDS = $CONFIG_COMMANDS
11742 $ $0 $@
11744 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11747 _ACEOF
11749 case $ac_config_files in *"
11750 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11751 esac
11753 case $ac_config_headers in *"
11754 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11755 esac
11758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11759 # Files that config.status was made for.
11760 config_files="$ac_config_files"
11761 config_headers="$ac_config_headers"
11762 config_commands="$ac_config_commands"
11764 _ACEOF
11766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11767 ac_cs_usage="\
11768 \`$as_me' instantiates files and other configuration actions
11769 from templates according to the current configuration. Unless the files
11770 and actions are specified as TAGs, all are instantiated by default.
11772 Usage: $0 [OPTION]... [TAG]...
11774 -h, --help print this help, then exit
11775 -V, --version print version number and configuration settings, then exit
11776 --config print configuration, then exit
11777 -q, --quiet, --silent
11778 do not print progress messages
11779 -d, --debug don't remove temporary files
11780 --recheck update $as_me by reconfiguring in the same conditions
11781 --file=FILE[:TEMPLATE]
11782 instantiate the configuration file FILE
11783 --header=FILE[:TEMPLATE]
11784 instantiate the configuration header FILE
11786 Configuration files:
11787 $config_files
11789 Configuration headers:
11790 $config_headers
11792 Configuration commands:
11793 $config_commands
11795 Report bugs to the package provider."
11797 _ACEOF
11798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11799 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11800 ac_cs_version="\\
11801 config.status
11802 configured by $0, generated by GNU Autoconf 2.65,
11803 with options \\"\$ac_cs_config\\"
11805 Copyright (C) 2009 Free Software Foundation, Inc.
11806 This config.status script is free software; the Free Software Foundation
11807 gives unlimited permission to copy, distribute and modify it."
11809 ac_pwd='$ac_pwd'
11810 srcdir='$srcdir'
11811 INSTALL='$INSTALL'
11812 MKDIR_P='$MKDIR_P'
11813 AWK='$AWK'
11814 test -n "\$AWK" || AWK=awk
11815 _ACEOF
11817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11818 # The default lists apply if the user does not specify any file.
11819 ac_need_defaults=:
11820 while test $# != 0
11822 case $1 in
11823 --*=*)
11824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11825 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11826 ac_shift=:
11829 ac_option=$1
11830 ac_optarg=$2
11831 ac_shift=shift
11833 esac
11835 case $ac_option in
11836 # Handling of the options.
11837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11838 ac_cs_recheck=: ;;
11839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11840 $as_echo "$ac_cs_version"; exit ;;
11841 --config | --confi | --conf | --con | --co | --c )
11842 $as_echo "$ac_cs_config"; exit ;;
11843 --debug | --debu | --deb | --de | --d | -d )
11844 debug=: ;;
11845 --file | --fil | --fi | --f )
11846 $ac_shift
11847 case $ac_optarg in
11848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11849 esac
11850 as_fn_append CONFIG_FILES " '$ac_optarg'"
11851 ac_need_defaults=false;;
11852 --header | --heade | --head | --hea )
11853 $ac_shift
11854 case $ac_optarg in
11855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11856 esac
11857 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11858 ac_need_defaults=false;;
11859 --he | --h)
11860 # Conflict between --help and --header
11861 as_fn_error "ambiguous option: \`$1'
11862 Try \`$0 --help' for more information.";;
11863 --help | --hel | -h )
11864 $as_echo "$ac_cs_usage"; exit ;;
11865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11867 ac_cs_silent=: ;;
11869 # This is an error.
11870 -*) as_fn_error "unrecognized option: \`$1'
11871 Try \`$0 --help' for more information." ;;
11873 *) as_fn_append ac_config_targets " $1"
11874 ac_need_defaults=false ;;
11876 esac
11877 shift
11878 done
11880 ac_configure_extra_args=
11882 if $ac_cs_silent; then
11883 exec 6>/dev/null
11884 ac_configure_extra_args="$ac_configure_extra_args --silent"
11887 _ACEOF
11888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11889 if \$ac_cs_recheck; then
11890 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11891 shift
11892 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11893 CONFIG_SHELL='$SHELL'
11894 export CONFIG_SHELL
11895 exec "\$@"
11898 _ACEOF
11899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11900 exec 5>>config.log
11902 echo
11903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11904 ## Running $as_me. ##
11905 _ASBOX
11906 $as_echo "$ac_log"
11907 } >&5
11909 _ACEOF
11910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11912 # INIT-COMMANDS
11914 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11915 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11916 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11917 # from automake < 1.5.
11918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11919 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11920 LINGUAS="${LINGUAS-%UNSET%}"
11923 _ACEOF
11925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11927 # Handling of arguments.
11928 for ac_config_target in $ac_config_targets
11930 case $ac_config_target in
11931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11932 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11933 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11934 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11935 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
11936 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11937 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11939 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11940 esac
11941 done
11944 # If the user did not use the arguments to specify the items to instantiate,
11945 # then the envvar interface is used. Set only those that are not.
11946 # We use the long form for the default assignment because of an extremely
11947 # bizarre bug on SunOS 4.1.3.
11948 if $ac_need_defaults; then
11949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11954 # Have a temporary directory for convenience. Make it in the build tree
11955 # simply because there is no reason against having it here, and in addition,
11956 # creating and moving files from /tmp can sometimes cause problems.
11957 # Hook for its removal unless debugging.
11958 # Note that there is a small window in which the directory will not be cleaned:
11959 # after its creation but before its name has been assigned to `$tmp'.
11960 $debug ||
11962 tmp=
11963 trap 'exit_status=$?
11964 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11966 trap 'as_fn_exit 1' 1 2 13 15
11968 # Create a (secure) tmp directory for tmp files.
11971 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11972 test -n "$tmp" && test -d "$tmp"
11973 } ||
11975 tmp=./conf$$-$RANDOM
11976 (umask 077 && mkdir "$tmp")
11977 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11979 # Set up the scripts for CONFIG_FILES section.
11980 # No need to generate them if there are no CONFIG_FILES.
11981 # This happens for instance with `./config.status config.h'.
11982 if test -n "$CONFIG_FILES"; then
11985 ac_cr=`echo X | tr X '\015'`
11986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11987 # But we know of no other shell where ac_cr would be empty at this
11988 # point, so we can use a bashism as a fallback.
11989 if test "x$ac_cr" = x; then
11990 eval ac_cr=\$\'\\r\'
11992 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11994 ac_cs_awk_cr='\r'
11995 else
11996 ac_cs_awk_cr=$ac_cr
11999 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12000 _ACEOF
12004 echo "cat >conf$$subs.awk <<_ACEOF" &&
12005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12006 echo "_ACEOF"
12007 } >conf$$subs.sh ||
12008 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12010 ac_delim='%!_!# '
12011 for ac_last_try in false false false false false :; do
12012 . ./conf$$subs.sh ||
12013 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12016 if test $ac_delim_n = $ac_delim_num; then
12017 break
12018 elif $ac_last_try; then
12019 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12020 else
12021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12023 done
12024 rm -f conf$$subs.sh
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12028 _ACEOF
12029 sed -n '
12031 s/^/S["/; s/!.*/"]=/
12034 s/^[^!]*!//
12035 :repl
12036 t repl
12037 s/'"$ac_delim"'$//
12038 t delim
12041 s/\(.\{148\}\)..*/\1/
12042 t more1
12043 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12046 b repl
12047 :more1
12048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12051 s/.\{148\}//
12052 t nl
12053 :delim
12055 s/\(.\{148\}\)..*/\1/
12056 t more2
12057 s/["\\]/\\&/g; s/^/"/; s/$/"/
12060 :more2
12061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12064 s/.\{148\}//
12065 t delim
12066 ' <conf$$subs.awk | sed '
12067 /^[^""]/{
12069 s/\n//
12071 ' >>$CONFIG_STATUS || ac_write_fail=1
12072 rm -f conf$$subs.awk
12073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12074 _ACAWK
12075 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12076 for (key in S) S_is_set[key] = 1
12077 FS = "\a"
12081 line = $ 0
12082 nfields = split(line, field, "@")
12083 substed = 0
12084 len = length(field[1])
12085 for (i = 2; i < nfields; i++) {
12086 key = field[i]
12087 keylen = length(key)
12088 if (S_is_set[key]) {
12089 value = S[key]
12090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12091 len += length(value) + length(field[++i])
12092 substed = 1
12093 } else
12094 len += 1 + keylen
12097 print line
12100 _ACAWK
12101 _ACEOF
12102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12104 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12105 else
12107 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12108 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12109 _ACEOF
12111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12113 # trailing colons and then remove the whole line if VPATH becomes empty
12114 # (actually we leave an empty line to preserve line numbers).
12115 if test "x$srcdir" = x.; then
12116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12117 s/:*\$(srcdir):*/:/
12118 s/:*\${srcdir}:*/:/
12119 s/:*@srcdir@:*/:/
12120 s/^\([^=]*=[ ]*\):*/\1/
12121 s/:*$//
12122 s/^[^=]*=[ ]*$//
12126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12127 fi # test -n "$CONFIG_FILES"
12129 # Set up the scripts for CONFIG_HEADERS section.
12130 # No need to generate them if there are no CONFIG_HEADERS.
12131 # This happens for instance with `./config.status Makefile'.
12132 if test -n "$CONFIG_HEADERS"; then
12133 cat >"$tmp/defines.awk" <<\_ACAWK ||
12134 BEGIN {
12135 _ACEOF
12137 # Transform confdefs.h into an awk script `defines.awk', embedded as
12138 # here-document in config.status, that substitutes the proper values into
12139 # config.h.in to produce config.h.
12141 # Create a delimiter string that does not exist in confdefs.h, to ease
12142 # handling of long lines.
12143 ac_delim='%!_!# '
12144 for ac_last_try in false false :; do
12145 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12146 if test -z "$ac_t"; then
12147 break
12148 elif $ac_last_try; then
12149 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12150 else
12151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12153 done
12155 # For the awk script, D is an array of macro values keyed by name,
12156 # likewise P contains macro parameters if any. Preserve backslash
12157 # newline sequences.
12159 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12160 sed -n '
12161 s/.\{148\}/&'"$ac_delim"'/g
12162 t rset
12163 :rset
12164 s/^[ ]*#[ ]*define[ ][ ]*/ /
12165 t def
12167 :def
12168 s/\\$//
12169 t bsnl
12170 s/["\\]/\\&/g
12171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12172 D["\1"]=" \3"/p
12173 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12175 :bsnl
12176 s/["\\]/\\&/g
12177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12178 D["\1"]=" \3\\\\\\n"\\/p
12179 t cont
12180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12181 t cont
12183 :cont
12185 s/.\{148\}/&'"$ac_delim"'/g
12186 t clear
12187 :clear
12188 s/\\$//
12189 t bsnlc
12190 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12192 :bsnlc
12193 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12194 b cont
12195 ' <confdefs.h | sed '
12196 s/'"$ac_delim"'/"\\\
12197 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12200 for (key in D) D_is_set[key] = 1
12201 FS = "\a"
12203 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12204 line = \$ 0
12205 split(line, arg, " ")
12206 if (arg[1] == "#") {
12207 defundef = arg[2]
12208 mac1 = arg[3]
12209 } else {
12210 defundef = substr(arg[1], 2)
12211 mac1 = arg[2]
12213 split(mac1, mac2, "(") #)
12214 macro = mac2[1]
12215 prefix = substr(line, 1, index(line, defundef) - 1)
12216 if (D_is_set[macro]) {
12217 # Preserve the white space surrounding the "#".
12218 print prefix "define", macro P[macro] D[macro]
12219 next
12220 } else {
12221 # Replace #undef with comments. This is necessary, for example,
12222 # in the case of _POSIX_SOURCE, which is predefined and required
12223 # on some systems where configure will not decide to define it.
12224 if (defundef == "undef") {
12225 print "/*", prefix defundef, macro, "*/"
12226 next
12230 { print }
12231 _ACAWK
12232 _ACEOF
12233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12234 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12235 fi # test -n "$CONFIG_HEADERS"
12238 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12239 shift
12240 for ac_tag
12242 case $ac_tag in
12243 :[FHLC]) ac_mode=$ac_tag; continue;;
12244 esac
12245 case $ac_mode$ac_tag in
12246 :[FHL]*:*);;
12247 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12248 :[FH]-) ac_tag=-:-;;
12249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12250 esac
12251 ac_save_IFS=$IFS
12252 IFS=:
12253 set x $ac_tag
12254 IFS=$ac_save_IFS
12255 shift
12256 ac_file=$1
12257 shift
12259 case $ac_mode in
12260 :L) ac_source=$1;;
12261 :[FH])
12262 ac_file_inputs=
12263 for ac_f
12265 case $ac_f in
12266 -) ac_f="$tmp/stdin";;
12267 *) # Look for the file first in the build tree, then in the source tree
12268 # (if the path is not absolute). The absolute path cannot be DOS-style,
12269 # because $ac_f cannot contain `:'.
12270 test -f "$ac_f" ||
12271 case $ac_f in
12272 [\\/$]*) false;;
12273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12274 esac ||
12275 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12276 esac
12277 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12278 as_fn_append ac_file_inputs " '$ac_f'"
12279 done
12281 # Let's still pretend it is `configure' which instantiates (i.e., don't
12282 # use $as_me), people would be surprised to read:
12283 # /* config.h. Generated by config.status. */
12284 configure_input='Generated from '`
12285 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12286 `' by configure.'
12287 if test x"$ac_file" != x-; then
12288 configure_input="$ac_file. $configure_input"
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12290 $as_echo "$as_me: creating $ac_file" >&6;}
12292 # Neutralize special characters interpreted by sed in replacement strings.
12293 case $configure_input in #(
12294 *\&* | *\|* | *\\* )
12295 ac_sed_conf_input=`$as_echo "$configure_input" |
12296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12297 *) ac_sed_conf_input=$configure_input;;
12298 esac
12300 case $ac_tag in
12301 *:-:* | *:-) cat >"$tmp/stdin" \
12302 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12303 esac
12305 esac
12307 ac_dir=`$as_dirname -- "$ac_file" ||
12308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12309 X"$ac_file" : 'X\(//\)[^/]' \| \
12310 X"$ac_file" : 'X\(//\)$' \| \
12311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12312 $as_echo X"$ac_file" |
12313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12314 s//\1/
12317 /^X\(\/\/\)[^/].*/{
12318 s//\1/
12321 /^X\(\/\/\)$/{
12322 s//\1/
12325 /^X\(\/\).*/{
12326 s//\1/
12329 s/.*/./; q'`
12330 as_dir="$ac_dir"; as_fn_mkdir_p
12331 ac_builddir=.
12333 case "$ac_dir" in
12334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12336 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12337 # A ".." for each directory in $ac_dir_suffix.
12338 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12339 case $ac_top_builddir_sub in
12340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12342 esac ;;
12343 esac
12344 ac_abs_top_builddir=$ac_pwd
12345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12346 # for backward compatibility:
12347 ac_top_builddir=$ac_top_build_prefix
12349 case $srcdir in
12350 .) # We are building in place.
12351 ac_srcdir=.
12352 ac_top_srcdir=$ac_top_builddir_sub
12353 ac_abs_top_srcdir=$ac_pwd ;;
12354 [\\/]* | ?:[\\/]* ) # Absolute name.
12355 ac_srcdir=$srcdir$ac_dir_suffix;
12356 ac_top_srcdir=$srcdir
12357 ac_abs_top_srcdir=$srcdir ;;
12358 *) # Relative name.
12359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12360 ac_top_srcdir=$ac_top_build_prefix$srcdir
12361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12362 esac
12363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12366 case $ac_mode in
12369 # CONFIG_FILE
12372 case $INSTALL in
12373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12374 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12375 esac
12376 ac_MKDIR_P=$MKDIR_P
12377 case $MKDIR_P in
12378 [\\/$]* | ?:[\\/]* ) ;;
12379 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12380 esac
12381 _ACEOF
12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12384 # If the template does not know about datarootdir, expand it.
12385 # FIXME: This hack should be removed a few years after 2.60.
12386 ac_datarootdir_hack=; ac_datarootdir_seen=
12387 ac_sed_dataroot='
12388 /datarootdir/ {
12392 /@datadir@/p
12393 /@docdir@/p
12394 /@infodir@/p
12395 /@localedir@/p
12396 /@mandir@/p'
12397 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12398 *datarootdir*) ac_datarootdir_seen=yes;;
12399 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12401 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12402 _ACEOF
12403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12404 ac_datarootdir_hack='
12405 s&@datadir@&$datadir&g
12406 s&@docdir@&$docdir&g
12407 s&@infodir@&$infodir&g
12408 s&@localedir@&$localedir&g
12409 s&@mandir@&$mandir&g
12410 s&\\\${datarootdir}&$datarootdir&g' ;;
12411 esac
12412 _ACEOF
12414 # Neutralize VPATH when `$srcdir' = `.'.
12415 # Shell code in configure.ac might set extrasub.
12416 # FIXME: do we really want to maintain this feature?
12417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12418 ac_sed_extra="$ac_vpsub
12419 $extrasub
12420 _ACEOF
12421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12424 s|@configure_input@|$ac_sed_conf_input|;t t
12425 s&@top_builddir@&$ac_top_builddir_sub&;t t
12426 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12427 s&@srcdir@&$ac_srcdir&;t t
12428 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12429 s&@top_srcdir@&$ac_top_srcdir&;t t
12430 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12431 s&@builddir@&$ac_builddir&;t t
12432 s&@abs_builddir@&$ac_abs_builddir&;t t
12433 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12434 s&@INSTALL@&$ac_INSTALL&;t t
12435 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12436 $ac_datarootdir_hack
12438 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12439 || as_fn_error "could not create $ac_file" "$LINENO" 5
12441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12442 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12445 which seems to be undefined. Please make sure it is defined." >&5
12446 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12447 which seems to be undefined. Please make sure it is defined." >&2;}
12449 rm -f "$tmp/stdin"
12450 case $ac_file in
12451 -) cat "$tmp/out" && rm -f "$tmp/out";;
12452 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12453 esac \
12454 || as_fn_error "could not create $ac_file" "$LINENO" 5
12458 # CONFIG_HEADER
12460 if test x"$ac_file" != x-; then
12462 $as_echo "/* $configure_input */" \
12463 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12464 } >"$tmp/config.h" \
12465 || as_fn_error "could not create $ac_file" "$LINENO" 5
12466 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12468 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12469 else
12470 rm -f "$ac_file"
12471 mv "$tmp/config.h" "$ac_file" \
12472 || as_fn_error "could not create $ac_file" "$LINENO" 5
12474 else
12475 $as_echo "/* $configure_input */" \
12476 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12477 || as_fn_error "could not create -" "$LINENO" 5
12479 # Compute "$ac_file"'s index in $config_headers.
12480 _am_arg="$ac_file"
12481 _am_stamp_count=1
12482 for _am_header in $config_headers :; do
12483 case $_am_header in
12484 $_am_arg | $_am_arg:* )
12485 break ;;
12487 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12488 esac
12489 done
12490 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12491 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12492 X"$_am_arg" : 'X\(//\)[^/]' \| \
12493 X"$_am_arg" : 'X\(//\)$' \| \
12494 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12495 $as_echo X"$_am_arg" |
12496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12497 s//\1/
12500 /^X\(\/\/\)[^/].*/{
12501 s//\1/
12504 /^X\(\/\/\)$/{
12505 s//\1/
12508 /^X\(\/\).*/{
12509 s//\1/
12512 s/.*/./; q'`/stamp-h$_am_stamp_count
12515 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12516 $as_echo "$as_me: executing $ac_file commands" >&6;}
12518 esac
12521 case $ac_file$ac_mode in
12522 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12523 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12524 # are listed without --file. Let's play safe and only enable the eval
12525 # if we detect the quoting.
12526 case $CONFIG_FILES in
12527 *\'*) eval set x "$CONFIG_FILES" ;;
12528 *) set x $CONFIG_FILES ;;
12529 esac
12530 shift
12531 for mf
12533 # Strip MF so we end up with the name of the file.
12534 mf=`echo "$mf" | sed -e 's/:.*$//'`
12535 # Check whether this is an Automake generated Makefile or not.
12536 # We used to match only the files named `Makefile.in', but
12537 # some people rename them; so instead we look at the file content.
12538 # Grep'ing the first line is not enough: some people post-process
12539 # each Makefile.in and add a new line on top of each file to say so.
12540 # Grep'ing the whole file is not good either: AIX grep has a line
12541 # limit of 2048, but all sed's we know have understand at least 4000.
12542 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12543 dirpart=`$as_dirname -- "$mf" ||
12544 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12545 X"$mf" : 'X\(//\)[^/]' \| \
12546 X"$mf" : 'X\(//\)$' \| \
12547 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12548 $as_echo X"$mf" |
12549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12550 s//\1/
12553 /^X\(\/\/\)[^/].*/{
12554 s//\1/
12557 /^X\(\/\/\)$/{
12558 s//\1/
12561 /^X\(\/\).*/{
12562 s//\1/
12565 s/.*/./; q'`
12566 else
12567 continue
12569 # Extract the definition of DEPDIR, am__include, and am__quote
12570 # from the Makefile without running `make'.
12571 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12572 test -z "$DEPDIR" && continue
12573 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12574 test -z "am__include" && continue
12575 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12576 # When using ansi2knr, U may be empty or an underscore; expand it
12577 U=`sed -n 's/^U = //p' < "$mf"`
12578 # Find all dependency output files, they are included files with
12579 # $(DEPDIR) in their names. We invoke sed twice because it is the
12580 # simplest approach to changing $(DEPDIR) to its actual value in the
12581 # expansion.
12582 for file in `sed -n "
12583 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12584 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12585 # Make sure the directory exists.
12586 test -f "$dirpart/$file" && continue
12587 fdir=`$as_dirname -- "$file" ||
12588 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12589 X"$file" : 'X\(//\)[^/]' \| \
12590 X"$file" : 'X\(//\)$' \| \
12591 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12592 $as_echo X"$file" |
12593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12594 s//\1/
12597 /^X\(\/\/\)[^/].*/{
12598 s//\1/
12601 /^X\(\/\/\)$/{
12602 s//\1/
12605 /^X\(\/\).*/{
12606 s//\1/
12609 s/.*/./; q'`
12610 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12611 # echo "creating $dirpart/$file"
12612 echo '# dummy' > "$dirpart/$file"
12613 done
12614 done
12617 "po-directories":C)
12618 for ac_file in $CONFIG_FILES; do
12619 # Support "outfile[:infile[:infile...]]"
12620 case "$ac_file" in
12621 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12622 esac
12623 # PO directories have a Makefile.in generated from Makefile.in.in.
12624 case "$ac_file" in */Makefile.in)
12625 # Adjust a relative srcdir.
12626 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12627 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12628 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12629 # In autoconf-2.13 it is called $ac_given_srcdir.
12630 # In autoconf-2.50 it is called $srcdir.
12631 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12632 case "$ac_given_srcdir" in
12633 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12634 /*) top_srcdir="$ac_given_srcdir" ;;
12635 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12636 esac
12637 # Treat a directory as a PO directory if and only if it has a
12638 # POTFILES.in file. This allows packages to have multiple PO
12639 # directories under different names or in different locations.
12640 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12641 rm -f "$ac_dir/POTFILES"
12642 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12643 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12644 POMAKEFILEDEPS="POTFILES.in"
12645 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12646 # on $ac_dir but don't depend on user-specified configuration
12647 # parameters.
12648 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12649 # The LINGUAS file contains the set of available languages.
12650 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12651 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12653 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12654 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12655 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12656 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12657 else
12658 # The set of available languages was given in configure.in.
12659 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12660 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12662 # Compute POFILES
12663 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12664 # Compute UPDATEPOFILES
12665 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12666 # Compute DUMMYPOFILES
12667 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12668 # Compute GMOFILES
12669 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12670 case "$ac_given_srcdir" in
12671 .) srcdirpre= ;;
12672 *) srcdirpre='$(srcdir)/' ;;
12673 esac
12674 POFILES=
12675 UPDATEPOFILES=
12676 DUMMYPOFILES=
12677 GMOFILES=
12678 for lang in $ALL_LINGUAS; do
12679 POFILES="$POFILES $srcdirpre$lang.po"
12680 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12681 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12682 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12683 done
12684 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12685 # environment variable.
12686 INST_LINGUAS=
12687 if test -n "$ALL_LINGUAS"; then
12688 for presentlang in $ALL_LINGUAS; do
12689 useit=no
12690 if test "%UNSET%" != "$LINGUAS"; then
12691 desiredlanguages="$LINGUAS"
12692 else
12693 desiredlanguages="$ALL_LINGUAS"
12695 for desiredlang in $desiredlanguages; do
12696 # Use the presentlang catalog if desiredlang is
12697 # a. equal to presentlang, or
12698 # b. a variant of presentlang (because in this case,
12699 # presentlang can be used as a fallback for messages
12700 # which are not translated in the desiredlang catalog).
12701 case "$desiredlang" in
12702 "$presentlang"*) useit=yes;;
12703 esac
12704 done
12705 if test $useit = yes; then
12706 INST_LINGUAS="$INST_LINGUAS $presentlang"
12708 done
12710 CATALOGS=
12711 if test -n "$INST_LINGUAS"; then
12712 for lang in $INST_LINGUAS; do
12713 CATALOGS="$CATALOGS $lang.gmo"
12714 done
12716 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12717 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"
12718 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12719 if test -f "$f"; then
12720 case "$f" in
12721 *.orig | *.bak | *~) ;;
12722 *) cat "$f" >> "$ac_dir/Makefile" ;;
12723 esac
12725 done
12728 esac
12729 done ;;
12731 esac
12732 done # for ac_tag
12735 as_fn_exit 0
12736 _ACEOF
12737 ac_clean_files=$ac_clean_files_save
12739 test $ac_write_fail = 0 ||
12740 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12743 # configure is writing to config.log, and then calls config.status.
12744 # config.status does its own redirection, appending to config.log.
12745 # Unfortunately, on DOS this fails, as config.log is still kept open
12746 # by configure, so config.status won't be able to write to it; its
12747 # output is simply discarded. So we exec the FD to /dev/null,
12748 # effectively closing config.log, so it can be properly (re)opened and
12749 # appended to by config.status. When coming back to configure, we
12750 # need to make the FD available again.
12751 if test "$no_create" != yes; then
12752 ac_cs_success=:
12753 ac_config_status_args=
12754 test "$silent" = yes &&
12755 ac_config_status_args="$ac_config_status_args --quiet"
12756 exec 5>/dev/null
12757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12758 exec 5>>config.log
12759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12760 # would make configure fail if this is the last instruction.
12761 $ac_cs_success || as_fn_exit $?
12763 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12765 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}