]> git.saurik.com Git - apt-legacy.git/blame - configure
I hate std::string: the concept is great, the implementation is shit.
[apt-legacy.git] / configure
CommitLineData
da6ee469
JF
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0e5943eb
JF
3# Generated by GNU Autoconf 2.65.
4#
da6ee469
JF
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
0e5943eb
JF
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
da6ee469
JF
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
0e5943eb
JF
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
da6ee469
JF
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
0e5943eb 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
da6ee469
JF
20 emulate sh
21 NULLCMD=:
0e5943eb 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
da6ee469
JF
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
0e5943eb
JF
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
da6ee469 32esac
da6ee469
JF
33fi
34
35
0e5943eb
JF
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
da6ee469 56 else
0e5943eb
JF
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
da6ee469 69 fi
0e5943eb
JF
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
da6ee469
JF
72fi
73
0e5943eb
JF
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
da6ee469
JF
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
da6ee469
JF
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
0e5943eb 92case $0 in #((
da6ee469
JF
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
0e5943eb
JF
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
da6ee469
JF
101IFS=$as_save_IFS
102
103 ;;
104esac
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.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
0e5943eb
JF
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
da6ee469
JF
113fi
114
0e5943eb
JF
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.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
da6ee469
JF
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
0e5943eb
JF
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if 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
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test 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
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
da6ee469 186do
0e5943eb
JF
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
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
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
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
209fi; }
210IFS=$as_save_IFS
211
212
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+"$@"}
222fi
223
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."
da6ee469 230 else
0e5943eb
JF
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."
da6ee469 235 fi
0e5943eb
JF
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
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/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
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"
320
321
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.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
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.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
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.
364as_fn_error ()
365{
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
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
da6ee469 374
da6ee469
JF
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
0e5943eb
JF
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
da6ee469 393
da6ee469
JF
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0e5943eb 398$as_echo X/"$0" |
da6ee469
JF
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
0e5943eb
JF
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
da6ee469
JF
419
420
0e5943eb
JF
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 '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
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; }
da6ee469 443
0e5943eb
JF
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
da6ee469
JF
450}
451
0e5943eb
JF
452ECHO_C= ECHO_N= ECHO_T=
453case `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;;
461*)
462 ECHO_N='-n';;
463esac
da6ee469 464
0e5943eb
JF
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (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'
485 fi
da6ee469 486else
0e5943eb 487 as_ln_s='cp -p'
da6ee469 488fi
0e5943eb
JF
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
da6ee469 491
0e5943eb
JF
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
da6ee469
JF
497fi
498
0e5943eb
JF
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
da6ee469 501else
0e5943eb
JF
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
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
518 '
da6ee469 519fi
0e5943eb 520as_executable_p=$as_test_x
da6ee469 521
0e5943eb
JF
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
da6ee469 524
0e5943eb
JF
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
da6ee469 527
da6ee469 528
0e5943eb
JF
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
da6ee469 531
0e5943eb
JF
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
da6ee469
JF
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
da6ee469
JF
548
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
0e5943eb 555PACKAGE_URL=
da6ee469
JF
556
557ac_unique_file="configure.in"
558# Factoring default headers for most tests.
559ac_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"
593
00ec24d0 594gt_needs=
0e5943eb 595ac_subst_vars='LTLIBOBJS
da6ee469 596LIBOBJS
0e5943eb
JF
597BASH
598POSUB
599LTLIBINTL
600LIBINTL
601INTLLIBS
602LTLIBICONV
603LIBICONV
604INTL_MACOSX_LIBS
605XGETTEXT_EXTRA_OPTIONS
606MSGMERGE
607XGETTEXT_015
608XGETTEXT
609GMSGFMT_015
610MSGFMT_015
611GMSGFMT
612MSGFMT
613GETTEXT_MACRO_VERSION
614USE_NLS
615mkdir_p
616MKDIR_P
617INSTALL_DATA
618INSTALL_SCRIPT
619INSTALL_PROGRAM
620SET_MAKE
621GCC3DEP
622NUM_PROCS
623PROC_MULTIPLY
624NUM_CPUS
625GETCONF
626DOTDIR
627DOT
628HAVE_DOT
629PO4A
630XSLTPROC
631DOXYGEN
632DEBIANDOC_TEXT
633DEBIANDOC_HTML
634NEED_SOCKLEN_T_DEFINE
635HAVE_C9X
636HAVE_TIMEGM
637HAVE_STATVFS
638BDBLIB
639EGREP
640GREP
641PTHREADLIB
642SOCKETLIBS
643AR
644RANLIB
645CPP
646ac_ct_CXX
647CXXFLAGS
648CXX
649OBJEXT
650EXEEXT
651ac_ct_CC
652CPPFLAGS
653LDFLAGS
654CFLAGS
655CC
656target_os
657target_vendor
658target_cpu
659target
660host_os
661host_vendor
662host_cpu
663host
664build_os
665build_vendor
666build_cpu
667build
668PACKAGE
669target_alias
670host_alias
671build_alias
672LIBS
673ECHO_T
674ECHO_N
675ECHO_C
676DEFS
677mandir
678localedir
679libdir
680psdir
681pdfdir
682dvidir
683htmldir
684infodir
685docdir
686oldincludedir
687includedir
688localstatedir
689sharedstatedir
690sysconfdir
691datadir
692datarootdir
693libexecdir
694sbindir
695bindir
696program_transform_name
697prefix
698exec_prefix
699PACKAGE_URL
700PACKAGE_BUGREPORT
701PACKAGE_STRING
702PACKAGE_VERSION
703PACKAGE_TARNAME
704PACKAGE_NAME
705PATH_SEPARATOR
706SHELL'
da6ee469 707ac_subst_files=''
0e5943eb
JF
708ac_user_opts='
709enable_option_checking
710with_cpus
711with_getconf
712with_proc_multiply
713with_procs
714enable_nls
715with_gnu_ld
716enable_rpath
717with_libiconv_prefix
718with_libintl_prefix
719'
da6ee469
JF
720 ac_precious_vars='build_alias
721host_alias
722target_alias
723CC
724CFLAGS
725LDFLAGS
726LIBS
727CPPFLAGS
728CXX
729CXXFLAGS
730CCC
731CPP'
732
733
734# Initialize some variables set by options.
735ac_init_help=
736ac_init_version=false
0e5943eb
JF
737ac_unrecognized_opts=
738ac_unrecognized_sep=
da6ee469
JF
739# The variables have the same names as the options, with
740# dashes changed to underlines.
741cache_file=/dev/null
742exec_prefix=NONE
743no_create=
744no_recursion=
745prefix=NONE
746program_prefix=NONE
747program_suffix=NONE
748program_transform_name=s,x,x,
749silent=
750site=
751srcdir=
752verbose=
753x_includes=NONE
754x_libraries=NONE
755
756# Installation directory options.
757# These are left unexpanded so users can "make install exec_prefix=/foo"
758# and all the variables that are supposed to be based on exec_prefix
759# by default will actually change.
760# Use braces instead of parens because sh, perl, etc. also accept them.
761# (The list follows the same order as the GNU Coding Standards.)
762bindir='${exec_prefix}/bin'
763sbindir='${exec_prefix}/sbin'
764libexecdir='${exec_prefix}/libexec'
765datarootdir='${prefix}/share'
766datadir='${datarootdir}'
767sysconfdir='${prefix}/etc'
768sharedstatedir='${prefix}/com'
769localstatedir='${prefix}/var'
770includedir='${prefix}/include'
771oldincludedir='/usr/include'
772docdir='${datarootdir}/doc/${PACKAGE}'
773infodir='${datarootdir}/info'
774htmldir='${docdir}'
775dvidir='${docdir}'
776pdfdir='${docdir}'
777psdir='${docdir}'
778libdir='${exec_prefix}/lib'
779localedir='${datarootdir}/locale'
780mandir='${datarootdir}/man'
781
782ac_prev=
783ac_dashdash=
784for ac_option
785do
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
791 fi
792
793 case $ac_option in
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *) ac_optarg=yes ;;
796 esac
797
798 # Accept the important Cygnus configure options, so we can diagnose typos.
799
800 case $ac_dashdash$ac_option in
801 --)
802 ac_dashdash=yes ;;
803
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
808
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
813
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
820
821 --config-cache | -C)
822 cache_file=config.cache ;;
823
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
828
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
835
836 -disable-* | --disable-*)
0e5943eb 837 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
da6ee469 838 # Reject names that are not valid shell variable names.
0e5943eb
JF
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 as_fn_error "invalid feature name: $ac_useropt"
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
844 *"
845"enable_$ac_useropt"
846"*) ;;
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
849 esac
850 eval enable_$ac_useropt=no ;;
da6ee469
JF
851
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
856
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
861
862 -enable-* | --enable-*)
0e5943eb 863 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
da6ee469 864 # Reject names that are not valid shell variable names.
0e5943eb
JF
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871"enable_$ac_useropt"
872"*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=\$ac_optarg ;;
da6ee469
JF
877
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
886
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
890
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
897
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
902
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
908
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
915
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
920
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
925
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
932
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
937
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
944
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
949
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
953
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
957
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
961
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
970
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
975
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
982
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
989
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1006
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1011
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1016
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1020
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1026
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1037
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1042
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1047
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1054
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1059
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1062
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1065
1066 -with-* | --with-*)
0e5943eb 1067 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
da6ee469 1068 # Reject names that are not valid shell variable names.
0e5943eb
JF
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error "invalid package name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075"with_$ac_useropt"
1076"*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval with_$ac_useropt=\$ac_optarg ;;
da6ee469
JF
1081
1082 -without-* | --without-*)
0e5943eb 1083 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
da6ee469 1084 # Reject names that are not valid shell variable names.
0e5943eb
JF
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091"with_$ac_useropt"
1092"*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=no ;;
da6ee469
JF
1097
1098 --x)
1099 # Obsolete; use --with-x.
1100 with_x=yes ;;
1101
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1108
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1115
0e5943eb
JF
1116 -*) as_fn_error "unrecognized option: \`$ac_option'
1117Try \`$0 --help' for more information."
da6ee469
JF
1118 ;;
1119
1120 *=*)
1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122 # Reject names that are not valid shell variable names.
0e5943eb
JF
1123 case $ac_envvar in #(
1124 '' | [0-9]* | *[!_$as_cr_alnum]* )
1125 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1126 esac
da6ee469
JF
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1129
1130 *)
1131 # FIXME: should be removed in autoconf 3.0.
0e5943eb 1132 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
da6ee469 1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
0e5943eb 1134 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
da6ee469
JF
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 ;;
1137
1138 esac
1139done
1140
1141if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
0e5943eb 1143 as_fn_error "missing argument to $ac_option"
da6ee469
JF
1144fi
1145
0e5943eb
JF
1146if test -n "$ac_unrecognized_opts"; then
1147 case $enable_option_checking in
1148 no) ;;
1149 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1150 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151 esac
1152fi
1153
1154# Check all directory arguments for consistency.
da6ee469
JF
1155for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1156 datadir sysconfdir sharedstatedir localstatedir includedir \
1157 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1158 libdir localedir mandir
1159do
1160 eval ac_val=\$$ac_var
0e5943eb
JF
1161 # Remove trailing slashes.
1162 case $ac_val in
1163 */ )
1164 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1165 eval $ac_var=\$ac_val;;
1166 esac
1167 # Be sure to have absolute directory names.
da6ee469
JF
1168 case $ac_val in
1169 [\\/$]* | ?:[\\/]* ) continue;;
1170 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171 esac
0e5943eb 1172 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
da6ee469
JF
1173done
1174
1175# There might be people who depend on the old broken behavior: `$host'
1176# used to hold the argument of --host etc.
1177# FIXME: To remove some day.
1178build=$build_alias
1179host=$host_alias
1180target=$target_alias
1181
1182# FIXME: To remove some day.
1183if test "x$host_alias" != x; then
1184 if test "x$build_alias" = x; then
1185 cross_compiling=maybe
0e5943eb 1186 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
da6ee469
JF
1187 If a cross compiler is detected then cross compile mode will be used." >&2
1188 elif test "x$build_alias" != "x$host_alias"; then
1189 cross_compiling=yes
1190 fi
1191fi
1192
1193ac_tool_prefix=
1194test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195
1196test "$silent" = yes && exec 6>/dev/null
1197
1198
1199ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200ac_ls_di=`ls -di .` &&
1201ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
0e5943eb 1202 as_fn_error "working directory cannot be determined"
da6ee469 1203test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
0e5943eb 1204 as_fn_error "pwd does not report name of working directory"
da6ee469
JF
1205
1206
1207# Find the source files, if location was not specified.
1208if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
1210 # Try the directory containing this script, then the parent directory.
0e5943eb
JF
1211 ac_confdir=`$as_dirname -- "$as_myself" ||
1212$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216$as_echo X"$as_myself" |
da6ee469
JF
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\/\)[^/].*/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)$/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\).*/{
1230 s//\1/
1231 q
1232 }
1233 s/.*/./; q'`
1234 srcdir=$ac_confdir
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 srcdir=..
1237 fi
1238else
1239 ac_srcdir_defaulted=no
1240fi
1241if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
0e5943eb 1243 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
da6ee469
JF
1244fi
1245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246ac_abs_confdir=`(
0e5943eb 1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
da6ee469
JF
1248 pwd)`
1249# When building in place, set srcdir=.
1250if test "$ac_abs_confdir" = "$ac_pwd"; then
1251 srcdir=.
1252fi
1253# Remove unnecessary trailing slashes from srcdir.
1254# Double slashes in file names in object file debugging info
1255# mess up M-x gdb in Emacs.
1256case $srcdir in
1257*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258esac
1259for ac_var in $ac_precious_vars; do
1260 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_${ac_var}_value=\$${ac_var}
1262 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264done
1265
1266#
1267# Report the --help message.
1268#
1269if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1272 cat <<_ACEOF
1273\`configure' configures this package to adapt to many kinds of systems.
1274
1275Usage: $0 [OPTION]... [VAR=VALUE]...
1276
1277To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278VAR=VALUE. See below for descriptions of some of the useful variables.
1279
1280Defaults for the options are specified in brackets.
1281
1282Configuration:
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1292
1293Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
0e5943eb 1295 [$ac_default_prefix]
da6ee469 1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0e5943eb 1297 [PREFIX]
da6ee469
JF
1298
1299By default, \`make install' will install all the files in
1300\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302for instance \`--prefix=\$HOME'.
1303
1304For better control, use the options below.
1305
1306Fine tuning of the installation directories:
0e5943eb
JF
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --libdir=DIR object code libraries [EPREFIX/lib]
1314 --includedir=DIR C header files [PREFIX/include]
1315 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1316 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1317 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1318 --infodir=DIR info documentation [DATAROOTDIR/info]
1319 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1320 --mandir=DIR man documentation [DATAROOTDIR/man]
1321 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1322 --htmldir=DIR html documentation [DOCDIR]
1323 --dvidir=DIR dvi documentation [DOCDIR]
1324 --pdfdir=DIR pdf documentation [DOCDIR]
1325 --psdir=DIR ps documentation [DOCDIR]
da6ee469
JF
1326_ACEOF
1327
1328 cat <<\_ACEOF
1329
1330System types:
1331 --build=BUILD configure for building on BUILD [guessed]
1332 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1333 --target=TARGET configure for building compilers for TARGET [HOST]
1334_ACEOF
1335fi
1336
1337if test -n "$ac_init_help"; then
1338
1339 cat <<\_ACEOF
1340
1341Optional Features:
0e5943eb 1342 --disable-option-checking ignore unrecognized --enable/--with options
da6ee469
JF
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --disable-nls do not use Native Language Support
1346 --disable-rpath do not hardcode runtime library paths
1347
1348Optional Packages:
1349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1351 --with-cpus The number of cpus to be used for building(see --with-procs, default 1)
1352 --with-getconf Enable automagical buildtime configuration
1353 --with-proc-multiply Multiply this * number of cpus for parallel making(default 2).
1354 --with-procs The number of processes to run in parallel during make(num_cpus * multiplier).
1355 --with-gnu-ld assume the C compiler uses GNU ld default=no
1356 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1357 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1358 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1359 --without-libintl-prefix don't search for libintl in includedir and libdir
1360
1361Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
0e5943eb 1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
da6ee469
JF
1368 you have headers in a nonstandard directory <include dir>
1369 CXX C++ compiler command
1370 CXXFLAGS C++ compiler flags
1371 CPP C preprocessor
1372
1373Use these variables to override the choices made by `configure' or to help
1374it to find libraries and programs with nonstandard names/locations.
1375
0e5943eb 1376Report bugs to the package provider.
da6ee469
JF
1377_ACEOF
1378ac_status=$?
1379fi
1380
1381if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0e5943eb
JF
1384 test -d "$ac_dir" ||
1385 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1386 continue
da6ee469
JF
1387 ac_builddir=.
1388
1389case "$ac_dir" in
1390.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391*)
0e5943eb 1392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
da6ee469 1393 # A ".." for each directory in $ac_dir_suffix.
0e5943eb 1394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
da6ee469
JF
1395 case $ac_top_builddir_sub in
1396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 esac ;;
1399esac
1400ac_abs_top_builddir=$ac_pwd
1401ac_abs_builddir=$ac_pwd$ac_dir_suffix
1402# for backward compatibility:
1403ac_top_builddir=$ac_top_build_prefix
1404
1405case $srcdir in
1406 .) # We are building in place.
1407 ac_srcdir=.
1408 ac_top_srcdir=$ac_top_builddir_sub
1409 ac_abs_top_srcdir=$ac_pwd ;;
1410 [\\/]* | ?:[\\/]* ) # Absolute name.
1411 ac_srcdir=$srcdir$ac_dir_suffix;
1412 ac_top_srcdir=$srcdir
1413 ac_abs_top_srcdir=$srcdir ;;
1414 *) # Relative name.
1415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1416 ac_top_srcdir=$ac_top_build_prefix$srcdir
1417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418esac
1419ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420
1421 cd "$ac_dir" || { ac_status=$?; continue; }
1422 # Check for guested configure.
1423 if test -f "$ac_srcdir/configure.gnu"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1426 elif test -f "$ac_srcdir/configure"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure" --help=recursive
1429 else
0e5943eb 1430 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
da6ee469
JF
1431 fi || ac_status=$?
1432 cd "$ac_pwd" || { ac_status=$?; break; }
1433 done
1434fi
1435
1436test -n "$ac_init_help" && exit $ac_status
1437if $ac_init_version; then
1438 cat <<\_ACEOF
1439configure
0e5943eb 1440generated by GNU Autoconf 2.65
da6ee469 1441
0e5943eb 1442Copyright (C) 2009 Free Software Foundation, Inc.
da6ee469
JF
1443This configure script is free software; the Free Software Foundation
1444gives unlimited permission to copy, distribute and modify it.
1445_ACEOF
1446 exit
1447fi
da6ee469 1448
0e5943eb
JF
1449## ------------------------ ##
1450## Autoconf initialization. ##
1451## ------------------------ ##
da6ee469 1452
0e5943eb
JF
1453# ac_fn_c_try_compile LINENO
1454# --------------------------
1455# Try to compile conftest.$ac_ext, and return whether this succeeded.
1456ac_fn_c_try_compile ()
da6ee469 1457{
0e5943eb
JF
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 rm -f conftest.$ac_objext
1460 if { { ac_try="$ac_compile"
1461case "(($ac_try" in
1462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463 *) ac_try_echo=$ac_try;;
1464esac
1465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466$as_echo "$ac_try_echo"; } >&5
1467 (eval "$ac_compile") 2>conftest.err
1468 ac_status=$?
1469 if test -s conftest.err; then
1470 grep -v '^ *+' conftest.err >conftest.er1
1471 cat conftest.er1 >&5
1472 mv -f conftest.er1 conftest.err
1473 fi
1474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && {
1476 test -z "$ac_c_werror_flag" ||
1477 test ! -s conftest.err
1478 } && test -s conftest.$ac_objext; then :
1479 ac_retval=0
1480else
1481 $as_echo "$as_me: failed program was:" >&5
1482sed 's/^/| /' conftest.$ac_ext >&5
da6ee469 1483
0e5943eb
JF
1484 ac_retval=1
1485fi
1486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1487 as_fn_set_status $ac_retval
da6ee469 1488
0e5943eb 1489} # ac_fn_c_try_compile
da6ee469 1490
0e5943eb
JF
1491# ac_fn_c_try_link LINENO
1492# -----------------------
1493# Try to link conftest.$ac_ext, and return whether this succeeded.
1494ac_fn_c_try_link ()
1495{
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext conftest$ac_exeext
1498 if { { ac_try="$ac_link"
1499case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502esac
1503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504$as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_link") 2>conftest.err
1506 ac_status=$?
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1511 fi
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest$ac_exeext && {
1517 test "$cross_compiling" = yes ||
1518 $as_test_x conftest$ac_exeext
1519 }; then :
1520 ac_retval=0
1521else
1522 $as_echo "$as_me: failed program was:" >&5
1523sed 's/^/| /' conftest.$ac_ext >&5
da6ee469 1524
0e5943eb
JF
1525 ac_retval=1
1526fi
1527 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1528 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1529 # interfere with the next link command; also delete a directory that is
1530 # left behind by Apple's compiler. We do this before executing the actions.
1531 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 as_fn_set_status $ac_retval
da6ee469 1534
0e5943eb 1535} # ac_fn_c_try_link
da6ee469 1536
0e5943eb
JF
1537# ac_fn_cxx_try_compile LINENO
1538# ----------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_cxx_try_compile ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_cxx_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
da6ee469 1567
0e5943eb
JF
1568 ac_retval=1
1569fi
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 as_fn_set_status $ac_retval
da6ee469 1572
0e5943eb 1573} # ac_fn_cxx_try_compile
da6ee469 1574
0e5943eb
JF
1575# ac_fn_c_try_cpp LINENO
1576# ----------------------
1577# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_cpp ()
1579{
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } >/dev/null && {
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
da6ee469 1604
0e5943eb
JF
1605 ac_retval=1
1606fi
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 as_fn_set_status $ac_retval
da6ee469 1609
0e5943eb 1610} # ac_fn_c_try_cpp
da6ee469 1611
0e5943eb
JF
1612# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1615# the include files in INCLUDES and setting the cache variable VAR
1616# accordingly.
1617ac_fn_c_check_header_mongrel ()
1618{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; }
1623if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625fi
1626eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629else
1630 # Is the header compilable?
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1632$as_echo_n "checking $2 usability... " >&6; }
1633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634/* end confdefs.h. */
1635$4
1636#include <$2>
1637_ACEOF
1638if ac_fn_c_try_compile "$LINENO"; then :
1639 ac_header_compiler=yes
1640else
1641 ac_header_compiler=no
1642fi
1643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1645$as_echo "$ac_header_compiler" >&6; }
da6ee469 1646
0e5943eb
JF
1647# Is the header present?
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1649$as_echo_n "checking $2 presence... " >&6; }
1650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h. */
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_cpp "$LINENO"; then :
1655 ac_header_preproc=yes
1656else
1657 ac_header_preproc=no
1658fi
1659rm -f conftest.err conftest.$ac_ext
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1661$as_echo "$ac_header_preproc" >&6; }
da6ee469 1662
0e5943eb
JF
1663# So? What about this header?
1664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1665 yes:no: )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1667$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ;;
1671 no:yes:* )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1673$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1675$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1677$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1679$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1681$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 ;;
1683esac
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1688else
1689 eval "$3=\$ac_header_compiler"
1690fi
1691eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693$as_echo "$ac_res" >&6; }
1694fi
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
da6ee469 1696
0e5943eb 1697} # ac_fn_c_check_header_mongrel
da6ee469 1698
0e5943eb
JF
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
da6ee469 1732
0e5943eb
JF
1733 ac_retval=$ac_status
1734fi
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 as_fn_set_status $ac_retval
da6ee469 1738
0e5943eb 1739} # ac_fn_c_try_run
da6ee469 1740
0e5943eb
JF
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1752else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
da6ee469 1757_ACEOF
0e5943eb
JF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760else
1761 eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
da6ee469 1769
0e5943eb 1770} # ac_fn_c_check_header_compile
da6ee469 1771
0e5943eb
JF
1772# ac_fn_c_check_func LINENO FUNC VAR
1773# ----------------------------------
1774# Tests whether FUNC exists, setting the cache variable VAR accordingly
1775ac_fn_c_check_func ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
1780if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787#define $2 innocuous_$2
da6ee469 1788
0e5943eb
JF
1789/* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
da6ee469 1793
0e5943eb
JF
1794#ifdef __STDC__
1795# include <limits.h>
1796#else
1797# include <assert.h>
1798#endif
da6ee469 1799
0e5943eb 1800#undef $2
da6ee469 1801
0e5943eb
JF
1802/* Override any GCC internal prototype to avoid an error.
1803 Use char because int might match the return type of a GCC
1804 builtin and then its argument prototype would still apply. */
1805#ifdef __cplusplus
1806extern "C"
1807#endif
1808char $2 ();
1809/* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812#if defined __stub_$2 || defined __stub___$2
1813choke me
1814#endif
da6ee469 1815
0e5943eb
JF
1816int
1817main ()
1818{
1819return $2 ();
1820 ;
1821 return 0;
1822}
da6ee469 1823_ACEOF
0e5943eb
JF
1824if ac_fn_c_try_link "$LINENO"; then :
1825 eval "$3=yes"
da6ee469 1826else
0e5943eb 1827 eval "$3=no"
da6ee469 1828fi
0e5943eb
JF
1829rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1831fi
1832eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
da6ee469 1836
0e5943eb
JF
1837} # ac_fn_c_check_func
1838
1839# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1840# ----------------------------------------------------
1841# Tries to find if the field MEMBER exists in type AGGR, after including
1842# INCLUDES, setting cache variable VAR accordingly.
1843ac_fn_c_check_member ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1847$as_echo_n "checking for $2.$3... " >&6; }
1848if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1849 $as_echo_n "(cached) " >&6
da6ee469 1850else
0e5943eb
JF
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853$5
1854int
1855main ()
1856{
1857static $2 ac_aggr;
1858if (ac_aggr.$3)
1859return 0;
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865 eval "$4=yes"
1866else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$5
1870int
1871main ()
1872{
1873static $2 ac_aggr;
1874if (sizeof ac_aggr.$3)
1875return 0;
1876 ;
1877 return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$4=yes"
1882else
1883 eval "$4=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
da6ee469 1886fi
0e5943eb
JF
1887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888fi
1889eval ac_res=\$$4
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
da6ee469 1893
0e5943eb 1894} # ac_fn_c_check_member
da6ee469 1895
0e5943eb
JF
1896# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1897# --------------------------------------------
1898# Tries to find the compile-time value of EXPR in a program that includes
1899# INCLUDES, setting VAR accordingly. Returns whether the value could be
1900# computed
1901ac_fn_c_compute_int ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if test "$cross_compiling" = yes; then
1905 # Depending upon the size, compute the lo and hi bounds.
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h. */
1908$4
1909int
1910main ()
1911{
1912static int test_array [1 - 2 * !(($2) >= 0)];
1913test_array [0] = 0
da6ee469 1914
0e5943eb
JF
1915 ;
1916 return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_lo=0 ac_mid=0
1921 while :; do
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h. */
1924$4
1925int
1926main ()
1927{
1928static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1929test_array [0] = 0
da6ee469 1930
0e5943eb
JF
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_hi=$ac_mid; break
1937else
1938 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1939 if test $ac_lo -le $ac_mid; then
1940 ac_lo= ac_hi=
1941 break
1942 fi
1943 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 done
1947else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950$4
1951int
1952main ()
1953{
1954static int test_array [1 - 2 * !(($2) < 0)];
1955test_array [0] = 0
da6ee469 1956
0e5943eb
JF
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_hi=-1 ac_mid=-1
1963 while :; do
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1971test_array [0] = 0
da6ee469 1972
0e5943eb
JF
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_lo=$ac_mid; break
1979else
1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1982 ac_lo= ac_hi=
1983 break
1984 fi
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 done
1989else
1990 ac_lo= ac_hi=
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995# Binary search between lo and hi bounds.
1996while test "x$ac_lo" != "x$ac_hi"; do
1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h. */
2000$4
2001int
2002main ()
2003{
2004static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005test_array [0] = 0
da6ee469 2006
0e5943eb
JF
2007 ;
2008 return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_hi=$ac_mid
2013else
2014 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2015fi
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017done
2018case $ac_lo in #((
2019?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2020'') ac_retval=1 ;;
2021esac
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$4
2026static long int longval () { return $2; }
2027static unsigned long int ulongval () { return $2; }
2028#include <stdio.h>
2029#include <stdlib.h>
2030int
2031main ()
2032{
da6ee469 2033
0e5943eb
JF
2034 FILE *f = fopen ("conftest.val", "w");
2035 if (! f)
2036 return 1;
2037 if (($2) < 0)
2038 {
2039 long int i = longval ();
2040 if (i != ($2))
2041 return 1;
2042 fprintf (f, "%ld", i);
2043 }
2044 else
2045 {
2046 unsigned long int i = ulongval ();
2047 if (i != ($2))
2048 return 1;
2049 fprintf (f, "%lu", i);
2050 }
2051 /* Do not output a trailing newline, as this causes \r\n confusion
2052 on some platforms. */
2053 return ferror (f) || fclose (f) != 0;
da6ee469 2054
0e5943eb
JF
2055 ;
2056 return 0;
2057}
2058_ACEOF
2059if ac_fn_c_try_run "$LINENO"; then :
2060 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2061else
2062 ac_retval=1
2063fi
2064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2065 conftest.$ac_objext conftest.beam conftest.$ac_ext
2066rm -f conftest.val
da6ee469 2067
0e5943eb
JF
2068 fi
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 as_fn_set_status $ac_retval
da6ee469 2071
0e5943eb
JF
2072} # ac_fn_c_compute_int
2073cat >config.log <<_ACEOF
2074This file contains any messages produced by compilers while
2075running configure, to aid debugging if configure makes a mistake.
da6ee469 2076
0e5943eb
JF
2077It was created by $as_me, which was
2078generated by GNU Autoconf 2.65. Invocation command line was
da6ee469 2079
0e5943eb 2080 $ $0 $@
da6ee469 2081
0e5943eb
JF
2082_ACEOF
2083exec 5>>config.log
2084{
2085cat <<_ASUNAME
2086## --------- ##
2087## Platform. ##
2088## --------- ##
da6ee469 2089
0e5943eb
JF
2090hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2091uname -m = `(uname -m) 2>/dev/null || echo unknown`
2092uname -r = `(uname -r) 2>/dev/null || echo unknown`
2093uname -s = `(uname -s) 2>/dev/null || echo unknown`
2094uname -v = `(uname -v) 2>/dev/null || echo unknown`
da6ee469 2095
0e5943eb
JF
2096/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2097/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
da6ee469 2098
0e5943eb
JF
2099/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2100/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2101/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2102/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2103/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2104/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2105/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
da6ee469 2106
0e5943eb 2107_ASUNAME
da6ee469 2108
0e5943eb
JF
2109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110for as_dir in $PATH
2111do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 $as_echo "PATH: $as_dir"
2115 done
2116IFS=$as_save_IFS
da6ee469 2117
0e5943eb 2118} >&5
da6ee469 2119
0e5943eb 2120cat >&5 <<_ACEOF
da6ee469
JF
2121
2122
0e5943eb
JF
2123## ----------- ##
2124## Core tests. ##
2125## ----------- ##
da6ee469 2126
da6ee469
JF
2127_ACEOF
2128
2129
0e5943eb
JF
2130# Keep a trace of the command line.
2131# Strip out --no-create and --no-recursion so they do not pile up.
2132# Strip out --silent because we don't want to record it for future runs.
2133# Also quote any args containing shell meta-characters.
2134# Make two passes to allow for proper duplicate-argument suppression.
2135ac_configure_args=
2136ac_configure_args0=
2137ac_configure_args1=
2138ac_must_keep_next=false
2139for ac_pass in 1 2
2140do
2141 for ac_arg
2142 do
2143 case $ac_arg in
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2147 continue ;;
2148 *\'*)
2149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 esac
2151 case $ac_pass in
2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2153 2)
2154 as_fn_append ac_configure_args1 " '$ac_arg'"
2155 if test $ac_must_keep_next = true; then
2156 ac_must_keep_next=false # Got value, back to normal.
2157 else
2158 case $ac_arg in
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165 esac
2166 ;;
2167 -* ) ac_must_keep_next=true ;;
2168 esac
2169 fi
2170 as_fn_append ac_configure_args " '$ac_arg'"
2171 ;;
2172 esac
2173 done
2174done
2175{ ac_configure_args0=; unset ac_configure_args0;}
2176{ ac_configure_args1=; unset ac_configure_args1;}
da6ee469 2177
0e5943eb
JF
2178# When interrupted or exit'd, cleanup temporary files, and complete
2179# config.log. We remove comments because anyway the quotes in there
2180# would cause problems or look ugly.
2181# WARNING: Use '\'' to represent an apostrophe within the trap.
2182# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
2185 {
2186 echo
da6ee469 2187
0e5943eb
JF
2188 cat <<\_ASBOX
2189## ---------------- ##
2190## Cache variables. ##
2191## ---------------- ##
2192_ASBOX
2193 echo
2194 # The following way of writing the cache mishandles newlines in values,
2195(
2196 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in #(
2199 *${as_nl}*)
2200 case $ac_var in #(
2201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 esac
2204 case $ac_var in #(
2205 _ | IFS | as_nl) ;; #(
2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207 *) { eval $ac_var=; unset $ac_var;} ;;
2208 esac ;;
2209 esac
2210 done
2211 (set) 2>&1 |
2212 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2213 *${as_nl}ac_space=\ *)
2214 sed -n \
2215 "s/'\''/'\''\\\\'\'''\''/g;
2216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 ;; #(
2218 *)
2219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2220 ;;
2221 esac |
2222 sort
2223)
2224 echo
da6ee469 2225
0e5943eb
JF
2226 cat <<\_ASBOX
2227## ----------------- ##
2228## Output variables. ##
2229## ----------------- ##
2230_ASBOX
2231 echo
2232 for ac_var in $ac_subst_vars
da6ee469 2233 do
0e5943eb
JF
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
da6ee469 2241
0e5943eb
JF
2242 if test -n "$ac_subst_files"; then
2243 cat <<\_ASBOX
2244## ------------------- ##
2245## File substitutions. ##
2246## ------------------- ##
2247_ASBOX
2248 echo
2249 for ac_var in $ac_subst_files
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258 fi
da6ee469 2259
0e5943eb
JF
2260 if test -s confdefs.h; then
2261 cat <<\_ASBOX
2262## ----------- ##
2263## confdefs.h. ##
2264## ----------- ##
2265_ASBOX
2266 echo
2267 cat confdefs.h
2268 echo
2269 fi
2270 test "$ac_signal" != 0 &&
2271 $as_echo "$as_me: caught signal $ac_signal"
2272 $as_echo "$as_me: exit $exit_status"
2273 } >&5
2274 rm -f core *.core core.conftest.* &&
2275 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2276 exit $exit_status
2277' 0
2278for ac_signal in 1 2 13 15; do
2279 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
da6ee469 2280done
0e5943eb 2281ac_signal=0
da6ee469 2282
0e5943eb
JF
2283# confdefs.h avoids OS command line length limits that DEFS can exceed.
2284rm -f -r conftest* confdefs.h
da6ee469 2285
0e5943eb 2286$as_echo "/* confdefs.h */" > confdefs.h
da6ee469 2287
0e5943eb 2288# Predefined preprocessor variables.
da6ee469 2289
0e5943eb
JF
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_NAME "$PACKAGE_NAME"
da6ee469 2292_ACEOF
0e5943eb
JF
2293
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
da6ee469 2296_ACEOF
da6ee469 2297
0e5943eb
JF
2298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE_VERSION "$PACKAGE_VERSION"
2300_ACEOF
da6ee469 2301
0e5943eb
JF
2302cat >>confdefs.h <<_ACEOF
2303#define PACKAGE_STRING "$PACKAGE_STRING"
2304_ACEOF
da6ee469 2305
0e5943eb
JF
2306cat >>confdefs.h <<_ACEOF
2307#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2308_ACEOF
da6ee469 2309
0e5943eb
JF
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_URL "$PACKAGE_URL"
2312_ACEOF
da6ee469 2313
da6ee469 2314
0e5943eb
JF
2315# Let the site file select an alternate cache file if it wants to.
2316# Prefer an explicitly selected file to automatically selected ones.
2317ac_site_file1=NONE
2318ac_site_file2=NONE
2319if test -n "$CONFIG_SITE"; then
2320 ac_site_file1=$CONFIG_SITE
2321elif test "x$prefix" != xNONE; then
2322 ac_site_file1=$prefix/share/config.site
2323 ac_site_file2=$prefix/etc/config.site
da6ee469 2324else
0e5943eb
JF
2325 ac_site_file1=$ac_default_prefix/share/config.site
2326 ac_site_file2=$ac_default_prefix/etc/config.site
da6ee469 2327fi
0e5943eb 2328for ac_site_file in "$ac_site_file1" "$ac_site_file2"
da6ee469 2329do
0e5943eb
JF
2330 test "x$ac_site_file" = xNONE && continue
2331 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2333$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2334 sed 's/^/| /' "$ac_site_file" >&5
2335 . "$ac_site_file"
da6ee469
JF
2336 fi
2337done
da6ee469 2338
0e5943eb
JF
2339if test -r "$cache_file"; then
2340 # Some versions of bash will fail to source /dev/null (special files
2341 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2344$as_echo "$as_me: loading cache $cache_file" >&6;}
2345 case $cache_file in
2346 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2347 *) . "./$cache_file";;
2348 esac
da6ee469
JF
2349 fi
2350else
0e5943eb
JF
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2352$as_echo "$as_me: creating cache $cache_file" >&6;}
2353 >$cache_file
da6ee469
JF
2354fi
2355
0e5943eb
JF
2356gt_needs="$gt_needs "
2357# Check that the precious variables saved in the cache have kept the same
2358# value.
2359ac_cache_corrupted=false
2360for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2366 set,)
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2370 ,set)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2374 ,);;
2375 *)
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2393 fi;;
2394 esac
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2397 case $ac_new_val in
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2400 esac
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404 esac
da6ee469
JF
2405 fi
2406done
0e5943eb
JF
2407if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
da6ee469 2413fi
0e5943eb
JF
2414## -------------------- ##
2415## Main body of script. ##
2416## -------------------- ##
da6ee469 2417
0e5943eb
JF
2418ac_ext=c
2419ac_cpp='$CPP $CPPFLAGS'
2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
da6ee469 2423
da6ee469 2424
0e5943eb
JF
2425ac_aux_dir=
2426for ac_dir in buildlib "$srcdir"/buildlib; do
2427 for ac_t in install-sh install.sh shtool; do
2428 if test -f "$ac_dir/$ac_t"; then
2429 ac_aux_dir=$ac_dir
2430 ac_install_sh="$ac_aux_dir/$ac_t -c"
2431 break 2
2432 fi
2433 done
2434done
2435if test -z "$ac_aux_dir"; then
2436 as_fn_error "cannot find install-sh, install.sh, or shtool in buildlib \"$srcdir\"/buildlib" "$LINENO" 5
da6ee469
JF
2437fi
2438
0e5943eb
JF
2439# These three variables are undocumented and unsupported,
2440# and are intended to be withdrawn in a future Autoconf release.
2441# They can cause serious problems if a builder's source tree is in a directory
2442# whose full name contains unusual characters.
2443ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2444ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2445ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
da6ee469
JF
2446
2447
0e5943eb 2448ac_config_headers="$ac_config_headers include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in"
da6ee469 2449
0e5943eb
JF
2450
2451cat >>confdefs.h <<_ACEOF
2452#define VERSION "0.7.25.3"
da6ee469 2453_ACEOF
da6ee469 2454
0e5943eb
JF
2455PACKAGE="apt"
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE "$PACKAGE"
2458_ACEOF
da6ee469 2459
da6ee469 2460
da6ee469 2461
0e5943eb
JF
2462# Make sure we can run config.sub.
2463$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2464 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
da6ee469 2465
0e5943eb
JF
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2467$as_echo_n "checking build system type... " >&6; }
2468if test "${ac_cv_build+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
da6ee469 2470else
0e5943eb
JF
2471 ac_build_alias=$build_alias
2472test "x$ac_build_alias" = x &&
2473 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2474test "x$ac_build_alias" = x &&
2475 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2476ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2477 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
da6ee469 2478
0e5943eb
JF
2479fi
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2481$as_echo "$ac_cv_build" >&6; }
2482case $ac_cv_build in
2483*-*-*) ;;
2484*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
da6ee469 2485esac
0e5943eb
JF
2486build=$ac_cv_build
2487ac_save_IFS=$IFS; IFS='-'
2488set x $ac_cv_build
2489shift
2490build_cpu=$1
2491build_vendor=$2
2492shift; shift
2493# Remember, the first character of IFS is used to create $*,
2494# except with old shells:
2495build_os=$*
2496IFS=$ac_save_IFS
2497case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
da6ee469
JF
2498
2499
0e5943eb
JF
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2501$as_echo_n "checking host system type... " >&6; }
2502if test "${ac_cv_host+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2504else
2505 if test "x$host_alias" = x; then
2506 ac_cv_host=$ac_cv_build
2507else
2508 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2509 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
da6ee469
JF
2510fi
2511
da6ee469 2512fi
0e5943eb
JF
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2514$as_echo "$ac_cv_host" >&6; }
2515case $ac_cv_host in
2516*-*-*) ;;
2517*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2518esac
2519host=$ac_cv_host
2520ac_save_IFS=$IFS; IFS='-'
2521set x $ac_cv_host
2522shift
2523host_cpu=$1
2524host_vendor=$2
2525shift; shift
2526# Remember, the first character of IFS is used to create $*,
2527# except with old shells:
2528host_os=$*
2529IFS=$ac_save_IFS
2530case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2531
2532
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2534$as_echo_n "checking target system type... " >&6; }
2535if test "${ac_cv_target+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
da6ee469 2537else
0e5943eb
JF
2538 if test "x$target_alias" = x; then
2539 ac_cv_target=$ac_cv_host
2540else
2541 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2542 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
da6ee469 2543fi
da6ee469
JF
2544
2545fi
0e5943eb
JF
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2547$as_echo "$ac_cv_target" >&6; }
2548case $ac_cv_target in
2549*-*-*) ;;
2550*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2551esac
2552target=$ac_cv_target
2553ac_save_IFS=$IFS; IFS='-'
2554set x $ac_cv_target
2555shift
2556target_cpu=$1
2557target_vendor=$2
2558shift; shift
2559# Remember, the first character of IFS is used to create $*,
2560# except with old shells:
2561target_os=$*
2562IFS=$ac_save_IFS
2563case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
da6ee469
JF
2564
2565
0e5943eb
JF
2566# The aliases save the names the user supplied, while $host etc.
2567# will get canonicalized.
2568test -n "$target_alias" &&
2569 test "$program_prefix$program_suffix$program_transform_name" = \
2570 NONENONEs,x,x, &&
2571 program_prefix=${target_alias}-
da6ee469 2572
da6ee469
JF
2573
2574
0e5943eb
JF
2575ac_ext=c
2576ac_cpp='$CPP $CPPFLAGS'
2577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2582set dummy ${ac_tool_prefix}gcc; ac_word=$2
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584$as_echo_n "checking for $ac_word... " >&6; }
2585if test "${ac_cv_prog_CC+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
da6ee469 2587else
0e5943eb
JF
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
da6ee469 2590else
da6ee469 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0e5943eb 2592for as_dir in $PATH
da6ee469
JF
2593do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
0e5943eb
JF
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2601 fi
da6ee469 2602done
0e5943eb 2603 done
da6ee469
JF
2604IFS=$as_save_IFS
2605
da6ee469 2606fi
da6ee469 2607fi
0e5943eb
JF
2608CC=$ac_cv_prog_CC
2609if test -n "$CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611$as_echo "$CC" >&6; }
da6ee469 2612else
0e5943eb
JF
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614$as_echo "no" >&6; }
da6ee469 2615fi
da6ee469
JF
2616
2617
0e5943eb
JF
2618fi
2619if test -z "$ac_cv_prog_CC"; then
2620 ac_ct_CC=$CC
2621 # Extract the first word of "gcc", so it can be a program name with args.
2622set dummy gcc; ac_word=$2
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
da6ee469 2627else
0e5943eb
JF
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
da6ee469 2630else
da6ee469 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0e5943eb 2632for as_dir in $PATH
da6ee469
JF
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
0e5943eb
JF
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_CC="gcc"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
da6ee469 2642done
0e5943eb 2643 done
da6ee469
JF
2644IFS=$as_save_IFS
2645
da6ee469 2646fi
da6ee469 2647fi
0e5943eb
JF
2648ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649if test -n "$ac_ct_CC"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2651$as_echo "$ac_ct_CC" >&6; }
da6ee469 2652else
0e5943eb
JF
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
da6ee469 2655fi
da6ee469 2656
0e5943eb
JF
2657 if test "x$ac_ct_CC" = x; then
2658 CC=""
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661yes:)
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664ac_tool_warned=yes ;;
da6ee469 2665esac
0e5943eb
JF
2666 CC=$ac_ct_CC
2667 fi
da6ee469 2668else
0e5943eb 2669 CC="$ac_cv_prog_CC"
da6ee469
JF
2670fi
2671
0e5943eb
JF
2672if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2675set dummy ${ac_tool_prefix}cc; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_CC+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
da6ee469 2680else
0e5943eb
JF
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_CC="${ac_tool_prefix}cc"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696 done
2697IFS=$as_save_IFS
da6ee469
JF
2698
2699fi
0e5943eb
JF
2700fi
2701CC=$ac_cv_prog_CC
2702if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704$as_echo "$CC" >&6; }
da6ee469 2705else
0e5943eb
JF
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
da6ee469 2708fi
da6ee469 2709
da6ee469 2710
0e5943eb
JF
2711 fi
2712fi
2713if test -z "$CC"; then
2714 # Extract the first word of "cc", so it can be a program name with args.
2715set dummy cc; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if test "${ac_cv_prog_CC+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
da6ee469 2720else
0e5943eb
JF
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
da6ee469 2723else
0e5943eb
JF
2724 ac_prog_rejected=no
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2733 ac_prog_rejected=yes
2734 continue
2735 fi
2736 ac_cv_prog_CC="cc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740done
2741 done
2742IFS=$as_save_IFS
da6ee469 2743
0e5943eb
JF
2744if test $ac_prog_rejected = yes; then
2745 # We found a bogon in the path, so make sure we never use it.
2746 set dummy $ac_cv_prog_CC
2747 shift
2748 if test $# != 0; then
2749 # We chose a different compiler from the bogus one.
2750 # However, it has the same basename, so the bogon will be chosen
2751 # first if we set CC to just the basename; use the full file name.
2752 shift
2753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2754 fi
da6ee469 2755fi
da6ee469 2756fi
da6ee469 2757fi
0e5943eb
JF
2758CC=$ac_cv_prog_CC
2759if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761$as_echo "$CC" >&6; }
2762else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
da6ee469 2765fi
da6ee469 2766
da6ee469
JF
2767
2768fi
0e5943eb
JF
2769if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 for ac_prog in cl.exe
2772 do
2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if test "${ac_cv_prog_CC+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
da6ee469 2779else
0e5943eb
JF
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795 done
2796IFS=$as_save_IFS
da6ee469 2797
da6ee469 2798fi
da6ee469 2799fi
0e5943eb
JF
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
da6ee469
JF
2807fi
2808
da6ee469 2809
0e5943eb
JF
2810 test -n "$CC" && break
2811 done
da6ee469 2812fi
0e5943eb
JF
2813if test -z "$CC"; then
2814 ac_ct_CC=$CC
2815 for ac_prog in cl.exe
2816do
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818set dummy $ac_prog; ac_word=$2
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
da6ee469 2823else
0e5943eb
JF
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
da6ee469 2826else
0e5943eb
JF
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_ac_ct_CC="$ac_prog"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839 done
2840IFS=$as_save_IFS
da6ee469 2841
da6ee469 2842fi
0e5943eb
JF
2843fi
2844ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845if test -n "$ac_ct_CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847$as_echo "$ac_ct_CC" >&6; }
da6ee469 2848else
0e5943eb
JF
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
da6ee469
JF
2851fi
2852
da6ee469 2853
0e5943eb
JF
2854 test -n "$ac_ct_CC" && break
2855done
da6ee469 2856
0e5943eb
JF
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861yes:)
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864ac_tool_warned=yes ;;
da6ee469 2865esac
0e5943eb
JF
2866 CC=$ac_ct_CC
2867 fi
da6ee469 2868fi
da6ee469
JF
2869
2870fi
da6ee469 2871
0e5943eb
JF
2872
2873test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875as_fn_error "no acceptable C compiler found in \$PATH
2876See \`config.log' for more details." "$LINENO" 5; }
2877
2878# Provide some information about the compiler.
2879$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2880set X $ac_compile
2881ac_compiler=$2
2882for ac_option in --version -v -V -qversion; do
2883 { { ac_try="$ac_compiler $ac_option >&5"
da6ee469
JF
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
0e5943eb
JF
2888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2889$as_echo "$ac_try_echo"; } >&5
2890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
da6ee469 2891 ac_status=$?
0e5943eb
JF
2892 if test -s conftest.err; then
2893 sed '10a\
2894... rest of stderr output deleted ...
2895 10q' conftest.err >conftest.er1
2896 cat conftest.er1 >&5
2897 fi
2898 rm -f conftest.er1 conftest.err
2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900 test $ac_status = 0; }
2901done
da6ee469 2902
0e5943eb 2903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00ec24d0
JF
2904/* end confdefs.h. */
2905
00ec24d0
JF
2906int
2907main ()
2908{
0e5943eb 2909
00ec24d0
JF
2910 ;
2911 return 0;
2912}
2913_ACEOF
0e5943eb
JF
2914ac_clean_files_save=$ac_clean_files
2915ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2916# Try to create an executable without -o first, disregard a.out.
2917# It will help us diagnose broken compilers, and finding out an intuition
2918# of exeext.
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2920$as_echo_n "checking whether the C compiler works... " >&6; }
2921ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
00ec24d0 2922
0e5943eb
JF
2923# The possible output files:
2924ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
00ec24d0 2925
0e5943eb
JF
2926ac_rmfiles=
2927for ac_file in $ac_files
2928do
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 esac
2933done
2934rm -f $ac_rmfiles
00ec24d0 2935
0e5943eb 2936if { { ac_try="$ac_link_default"
00ec24d0
JF
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
0e5943eb
JF
2941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942$as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_link_default") 2>&5
00ec24d0 2944 ac_status=$?
0e5943eb
JF
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }; then :
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949# in a Makefile. We should not override ac_cv_exeext if it was cached,
2950# so that the user can short-circuit this test for compilers unknown to
2951# Autoconf.
2952for ac_file in $ac_files ''
2953do
2954 test -f "$ac_file" || continue
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2957 ;;
2958 [ab].out )
2959 # We found the default executable, but exeext='' is most
2960 # certainly right.
2961 break;;
2962 *.* )
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2964 then :; else
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 fi
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2971 # actually working.
2972 break;;
2973 * )
2974 break;;
2975 esac
2976done
2977test "$ac_cv_exeext" = no && ac_cv_exeext=
00ec24d0
JF
2978
2979else
0e5943eb 2980 ac_file=''
00ec24d0 2981fi
0e5943eb
JF
2982if test -z "$ac_file"; then :
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985$as_echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
00ec24d0 2987
0e5943eb
JF
2988{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990{ as_fn_set_status 77
2991as_fn_error "C compiler cannot create executables
2992See \`config.log' for more details." "$LINENO" 5; }; }
2993else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995$as_echo "yes" >&6; }
da6ee469 2996fi
0e5943eb
JF
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2998$as_echo_n "checking for C compiler default output file name... " >&6; }
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3000$as_echo "$ac_file" >&6; }
3001ac_exeext=$ac_cv_exeext
da6ee469 3002
0e5943eb
JF
3003rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3004ac_clean_files=$ac_clean_files_save
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3006$as_echo_n "checking for suffix of executables... " >&6; }
3007if { { ac_try="$ac_link"
3008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013$as_echo "$ac_try_echo"; } >&5
3014 (eval "$ac_link") 2>&5
3015 ac_status=$?
3016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017 test $ac_status = 0; }; then :
3018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3020# work properly (i.e., refer to `conftest.exe'), while it won't with
3021# `rm'.
3022for ac_file in conftest.exe conftest conftest.*; do
3023 test -f "$ac_file" || continue
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027 break;;
3028 * ) break;;
3029 esac
3030done
da6ee469 3031else
0e5943eb
JF
3032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034as_fn_error "cannot compute suffix of executables: cannot compile and link
3035See \`config.log' for more details." "$LINENO" 5; }
3036fi
3037rm -f conftest conftest$ac_cv_exeext
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3039$as_echo "$ac_cv_exeext" >&6; }
da6ee469 3040
0e5943eb
JF
3041rm -f conftest.$ac_ext
3042EXEEXT=$ac_cv_exeext
3043ac_exeext=$EXEEXT
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3045/* end confdefs.h. */
0e5943eb 3046#include <stdio.h>
da6ee469
JF
3047int
3048main ()
3049{
0e5943eb
JF
3050FILE *f = fopen ("conftest.out", "w");
3051 return ferror (f) || fclose (f) != 0;
3052
da6ee469
JF
3053 ;
3054 return 0;
3055}
3056_ACEOF
0e5943eb
JF
3057ac_clean_files="$ac_clean_files conftest.out"
3058# Check that the compiler produces executables we can run. If not, either
3059# the compiler is broken, or we cross compile.
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3061$as_echo_n "checking whether we are cross compiling... " >&6; }
3062if test "$cross_compiling" != yes; then
3063 { { ac_try="$ac_link"
da6ee469
JF
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
0e5943eb
JF
3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }
3074 if { ac_try='./conftest$ac_cv_exeext'
3075 { { case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080$as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_try") 2>&5
da6ee469 3082 ac_status=$?
0e5943eb
JF
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; }; then
3085 cross_compiling=no
3086 else
3087 if test "$cross_compiling" = maybe; then
3088 cross_compiling=yes
3089 else
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092as_fn_error "cannot run C compiled programs.
3093If you meant to cross compile, use \`--host'.
3094See \`config.log' for more details." "$LINENO" 5; }
3095 fi
3096 fi
da6ee469 3097fi
0e5943eb
JF
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3099$as_echo "$cross_compiling" >&6; }
da6ee469 3100
0e5943eb
JF
3101rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3102ac_clean_files=$ac_clean_files_save
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3104$as_echo_n "checking for suffix of object files... " >&6; }
3105if test "${ac_cv_objext+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
da6ee469 3107else
0e5943eb 3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3109/* end confdefs.h. */
da6ee469
JF
3110
3111int
3112main ()
3113{
0e5943eb 3114
da6ee469
JF
3115 ;
3116 return 0;
3117}
3118_ACEOF
0e5943eb
JF
3119rm -f conftest.o conftest.obj
3120if { { ac_try="$ac_compile"
da6ee469
JF
3121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
0e5943eb
JF
3125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126$as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_compile") 2>&5
da6ee469 3128 ac_status=$?
0e5943eb
JF
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; then :
3131 for ac_file in conftest.o conftest.obj conftest.*; do
3132 test -f "$ac_file" || continue;
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3136 break;;
3137 esac
3138done
da6ee469 3139else
0e5943eb 3140 $as_echo "$as_me: failed program was:" >&5
da6ee469
JF
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
0e5943eb
JF
3143{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error "cannot compute suffix of object files: cannot compile
3146See \`config.log' for more details." "$LINENO" 5; }
da6ee469 3147fi
0e5943eb 3148rm -f conftest.$ac_cv_objext conftest.$ac_ext
da6ee469 3149fi
0e5943eb
JF
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3151$as_echo "$ac_cv_objext" >&6; }
3152OBJEXT=$ac_cv_objext
3153ac_objext=$OBJEXT
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3155$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3156if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158else
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165#ifndef __GNUC__
3166 choke me
3167#endif
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173if ac_fn_c_try_compile "$LINENO"; then :
3174 ac_compiler_gnu=yes
3175else
3176 ac_compiler_gnu=no
da6ee469 3177fi
0e5943eb
JF
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179ac_cv_c_compiler_gnu=$ac_compiler_gnu
da6ee469 3180
0e5943eb
JF
3181fi
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3183$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3184if test $ac_compiler_gnu = yes; then
3185 GCC=yes
3186else
3187 GCC=
3188fi
3189ac_test_CFLAGS=${CFLAGS+set}
3190ac_save_CFLAGS=$CFLAGS
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3192$as_echo_n "checking whether $CC accepts -g... " >&6; }
3193if test "${ac_cv_prog_cc_g+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195else
3196 ac_save_c_werror_flag=$ac_c_werror_flag
3197 ac_c_werror_flag=yes
3198 ac_cv_prog_cc_g=no
3199 CFLAGS="-g"
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h. */
da6ee469 3202
0e5943eb
JF
3203int
3204main ()
3205{
da6ee469 3206
0e5943eb
JF
3207 ;
3208 return 0;
3209}
da6ee469 3210_ACEOF
0e5943eb
JF
3211if ac_fn_c_try_compile "$LINENO"; then :
3212 ac_cv_prog_cc_g=yes
3213else
3214 CFLAGS=""
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3216/* end confdefs.h. */
da6ee469 3217
0e5943eb
JF
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
da6ee469 3225_ACEOF
0e5943eb 3226if ac_fn_c_try_compile "$LINENO"; then :
da6ee469
JF
3227
3228else
0e5943eb
JF
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230 CFLAGS="-g"
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h. */
3233
3234int
3235main ()
3236{
da6ee469 3237
0e5943eb
JF
3238 ;
3239 return 0;
3240}
da6ee469 3241_ACEOF
0e5943eb
JF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_g=yes
3244fi
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246fi
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248fi
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251fi
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3253$as_echo "$ac_cv_prog_cc_g" >&6; }
3254if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3270$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3271if test "${ac_cv_prog_cc_c89+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273else
3274 ac_cv_prog_cc_c89=no
3275ac_save_CC=$CC
3276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3277/* end confdefs.h. */
0e5943eb
JF
3278#include <stdarg.h>
3279#include <stdio.h>
3280#include <sys/types.h>
3281#include <sys/stat.h>
3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283struct buf { int x; };
3284FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285static char *e (p, i)
3286 char **p;
3287 int i;
3288{
3289 return p[i];
3290}
3291static char *f (char * (*g) (char **, int), char **p, ...)
3292{
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299}
da6ee469 3300
0e5943eb
JF
3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312#define FOO(x) 'x'
3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315int test (int i, double x);
3316struct s1 {int (*f) (int a);};
3317struct s2 {int (*f) (double a);};
3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319int argc;
3320char **argv;
3321int
3322main ()
3323{
3324return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327}
da6ee469 3328_ACEOF
0e5943eb
JF
3329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331do
3332 CC="$ac_save_CC $ac_arg"
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_prog_cc_c89=$ac_arg
3335fi
3336rm -f core conftest.err conftest.$ac_objext
3337 test "x$ac_cv_prog_cc_c89" != "xno" && break
3338done
3339rm -f conftest.$ac_ext
3340CC=$ac_save_CC
da6ee469 3341
da6ee469 3342fi
0e5943eb
JF
3343# AC_CACHE_VAL
3344case "x$ac_cv_prog_cc_c89" in
3345 x)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3347$as_echo "none needed" >&6; } ;;
3348 xno)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3350$as_echo "unsupported" >&6; } ;;
3351 *)
3352 CC="$CC $ac_cv_prog_cc_c89"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3354$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3355esac
3356if test "x$ac_cv_prog_cc_c89" != xno; then :
da6ee469
JF
3357
3358fi
da6ee469 3359
0e5943eb
JF
3360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
da6ee469 3365
0e5943eb
JF
3366
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3368$as_echo_n "checking for library containing strerror... " >&6; }
3369if test "${ac_cv_search_strerror+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
da6ee469 3371else
0e5943eb
JF
3372 ac_func_search_save_LIBS=$LIBS
3373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3374/* end confdefs.h. */
da6ee469
JF
3375
3376/* Override any GCC internal prototype to avoid an error.
3377 Use char because int might match the return type of a GCC
3378 builtin and then its argument prototype would still apply. */
3379#ifdef __cplusplus
3380extern "C"
3381#endif
0e5943eb 3382char strerror ();
da6ee469
JF
3383int
3384main ()
3385{
0e5943eb 3386return strerror ();
da6ee469
JF
3387 ;
3388 return 0;
3389}
3390_ACEOF
0e5943eb
JF
3391for ac_lib in '' cposix; do
3392 if test -z "$ac_lib"; then
3393 ac_res="none required"
3394 else
3395 ac_res=-l$ac_lib
3396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3397 fi
3398 if ac_fn_c_try_link "$LINENO"; then :
3399 ac_cv_search_strerror=$ac_res
da6ee469 3400fi
0e5943eb
JF
3401rm -f core conftest.err conftest.$ac_objext \
3402 conftest$ac_exeext
3403 if test "${ac_cv_search_strerror+set}" = set; then :
3404 break
da6ee469 3405fi
0e5943eb
JF
3406done
3407if test "${ac_cv_search_strerror+set}" = set; then :
da6ee469 3408
0e5943eb
JF
3409else
3410 ac_cv_search_strerror=no
da6ee469 3411fi
0e5943eb
JF
3412rm conftest.$ac_ext
3413LIBS=$ac_func_search_save_LIBS
da6ee469 3414fi
0e5943eb
JF
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3416$as_echo "$ac_cv_search_strerror" >&6; }
3417ac_res=$ac_cv_search_strerror
3418if test "$ac_res" != no; then :
3419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
da6ee469 3420
0e5943eb 3421fi
da6ee469 3422
da6ee469 3423
0e5943eb
JF
3424ac_ext=cpp
3425ac_cpp='$CXXCPP $CPPFLAGS'
3426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3429if test -z "$CXX"; then
3430 if test -n "$CCC"; then
3431 CXX=$CCC
3432 else
3433 if test -n "$ac_tool_prefix"; then
3434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3435 do
3436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3437set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if test "${ac_cv_prog_CXX+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
da6ee469 3442else
0e5943eb
JF
3443 if test -n "$CXX"; then
3444 ac_cv_prog_CXX="$CXX" # Let the user override the test.
da6ee469 3445else
0e5943eb
JF
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457done
3458 done
3459IFS=$as_save_IFS
da6ee469 3460
da6ee469 3461fi
da6ee469 3462fi
0e5943eb
JF
3463CXX=$ac_cv_prog_CXX
3464if test -n "$CXX"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3466$as_echo "$CXX" >&6; }
da6ee469 3467else
0e5943eb
JF
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470fi
da6ee469
JF
3471
3472
0e5943eb
JF
3473 test -n "$CXX" && break
3474 done
da6ee469 3475fi
0e5943eb
JF
3476if test -z "$CXX"; then
3477 ac_ct_CXX=$CXX
3478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3479do
3480 # Extract the first word of "$ac_prog", so it can be a program name with args.
3481set dummy $ac_prog; ac_word=$2
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483$as_echo_n "checking for $ac_word... " >&6; }
3484if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
da6ee469 3486else
0e5943eb
JF
3487 if test -n "$ac_ct_CXX"; then
3488 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
da6ee469 3489else
0e5943eb
JF
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_CXX="$ac_prog"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501done
3502 done
3503IFS=$as_save_IFS
da6ee469 3504
da6ee469 3505fi
0e5943eb
JF
3506fi
3507ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3508if test -n "$ac_ct_CXX"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3510$as_echo "$ac_ct_CXX" >&6; }
3511else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513$as_echo "no" >&6; }
da6ee469
JF
3514fi
3515
3516
0e5943eb
JF
3517 test -n "$ac_ct_CXX" && break
3518done
da6ee469 3519
0e5943eb
JF
3520 if test "x$ac_ct_CXX" = x; then
3521 CXX="g++"
3522 else
3523 case $cross_compiling:$ac_tool_warned in
3524yes:)
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527ac_tool_warned=yes ;;
3528esac
3529 CXX=$ac_ct_CXX
3530 fi
da6ee469 3531fi
da6ee469 3532
0e5943eb
JF
3533 fi
3534fi
3535# Provide some information about the compiler.
3536$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3537set X $ac_compile
3538ac_compiler=$2
3539for ac_option in --version -v -V -qversion; do
3540 { { ac_try="$ac_compiler $ac_option >&5"
3541case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
da6ee469 3544esac
0e5943eb
JF
3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546$as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3548 ac_status=$?
3549 if test -s conftest.err; then
3550 sed '10a\
3551... rest of stderr output deleted ...
3552 10q' conftest.err >conftest.er1
3553 cat conftest.er1 >&5
3554 fi
3555 rm -f conftest.er1 conftest.err
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3558done
da6ee469 3559
0e5943eb
JF
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3561$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3562if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564else
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3566/* end confdefs.h. */
0e5943eb 3567
da6ee469
JF
3568int
3569main ()
3570{
0e5943eb
JF
3571#ifndef __GNUC__
3572 choke me
3573#endif
3574
da6ee469
JF
3575 ;
3576 return 0;
3577}
3578_ACEOF
0e5943eb
JF
3579if ac_fn_cxx_try_compile "$LINENO"; then :
3580 ac_compiler_gnu=yes
da6ee469 3581else
0e5943eb 3582 ac_compiler_gnu=no
da6ee469 3583fi
da6ee469 3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0e5943eb 3585ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
da6ee469 3586
0e5943eb
JF
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3589$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3590if test $ac_compiler_gnu = yes; then
3591 GXX=yes
da6ee469 3592else
0e5943eb
JF
3593 GXX=
3594fi
3595ac_test_CXXFLAGS=${CXXFLAGS+set}
3596ac_save_CXXFLAGS=$CXXFLAGS
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3598$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3599if test "${ac_cv_prog_cxx_g+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601else
3602 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3603 ac_cxx_werror_flag=yes
3604 ac_cv_prog_cxx_g=no
3605 CXXFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3607/* end confdefs.h. */
0e5943eb 3608
da6ee469
JF
3609int
3610main ()
3611{
da6ee469
JF
3612
3613 ;
3614 return 0;
3615}
3616_ACEOF
0e5943eb
JF
3617if ac_fn_cxx_try_compile "$LINENO"; then :
3618 ac_cv_prog_cxx_g=yes
3619else
3620 CXXFLAGS=""
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3622/* end confdefs.h. */
0e5943eb 3623
da6ee469
JF
3624int
3625main ()
3626{
da6ee469
JF
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
0e5943eb 3632if ac_fn_cxx_try_compile "$LINENO"; then :
da6ee469 3633
da6ee469 3634else
0e5943eb
JF
3635 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3636 CXXFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 3638/* end confdefs.h. */
da6ee469 3639
da6ee469
JF
3640int
3641main ()
3642{
da6ee469
JF
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
0e5943eb
JF
3648if ac_fn_cxx_try_compile "$LINENO"; then :
3649 ac_cv_prog_cxx_g=yes
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654fi
3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3659$as_echo "$ac_cv_prog_cxx_g" >&6; }
3660if test "$ac_test_CXXFLAGS" = set; then
3661 CXXFLAGS=$ac_save_CXXFLAGS
3662elif test $ac_cv_prog_cxx_g = yes; then
3663 if test "$GXX" = yes; then
3664 CXXFLAGS="-g -O2"
3665 else
3666 CXXFLAGS="-g"
3667 fi
da6ee469 3668else
0e5943eb
JF
3669 if test "$GXX" = yes; then
3670 CXXFLAGS="-O2"
3671 else
3672 CXXFLAGS=
3673 fi
3674fi
3675ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
da6ee469 3680
0e5943eb
JF
3681ac_ext=c
3682ac_cpp='$CPP $CPPFLAGS'
3683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3687$as_echo_n "checking how to run the C preprocessor... " >&6; }
3688# On Suns, sometimes $CPP names a directory.
3689if test -n "$CPP" && test -d "$CPP"; then
3690 CPP=
da6ee469 3691fi
0e5943eb
JF
3692if test -z "$CPP"; then
3693 if test "${ac_cv_prog_CPP+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695else
3696 # Double quotes because CPP needs to be expanded
3697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3698 do
3699 ac_preproc_ok=false
3700for ac_c_preproc_warn_flag in '' yes
3701do
3702 # Use a header file that comes with gcc, so configuring glibc
3703 # with a fresh cross-compiler works.
3704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 # <limits.h> exists even on freestanding compilers.
3706 # On the NeXT, cc -E runs the code through the compiler's parser,
3707 # not just through cpp. "Syntax error" is here to catch this case.
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h. */
3710#ifdef __STDC__
3711# include <limits.h>
3712#else
3713# include <assert.h>
3714#endif
3715 Syntax error
3716_ACEOF
3717if ac_fn_c_try_cpp "$LINENO"; then :
da6ee469 3718
da6ee469 3719else
0e5943eb
JF
3720 # Broken: fails on valid input.
3721continue
3722fi
3723rm -f conftest.err conftest.$ac_ext
da6ee469 3724
0e5943eb
JF
3725 # OK, works on sane cases. Now check whether nonexistent headers
3726 # can be detected and how.
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h. */
3729#include <ac_nonexistent.h>
3730_ACEOF
3731if ac_fn_c_try_cpp "$LINENO"; then :
3732 # Broken: success on invalid input.
3733continue
3734else
3735 # Passes both tests.
3736ac_preproc_ok=:
3737break
da6ee469 3738fi
0e5943eb 3739rm -f conftest.err conftest.$ac_ext
da6ee469 3740
0e5943eb
JF
3741done
3742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743rm -f conftest.err conftest.$ac_ext
3744if $ac_preproc_ok; then :
3745 break
da6ee469
JF
3746fi
3747
0e5943eb
JF
3748 done
3749 ac_cv_prog_CPP=$CPP
da6ee469 3750
0e5943eb
JF
3751fi
3752 CPP=$ac_cv_prog_CPP
3753else
3754 ac_cv_prog_CPP=$CPP
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3757$as_echo "$CPP" >&6; }
3758ac_preproc_ok=false
3759for ac_c_preproc_warn_flag in '' yes
3760do
3761 # Use a header file that comes with gcc, so configuring glibc
3762 # with a fresh cross-compiler works.
3763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3764 # <limits.h> exists even on freestanding compilers.
3765 # On the NeXT, cc -E runs the code through the compiler's parser,
3766 # not just through cpp. "Syntax error" is here to catch this case.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h. */
3769#ifdef __STDC__
3770# include <limits.h>
3771#else
3772# include <assert.h>
3773#endif
3774 Syntax error
da6ee469 3775_ACEOF
0e5943eb
JF
3776if ac_fn_c_try_cpp "$LINENO"; then :
3777
da6ee469 3778else
0e5943eb
JF
3779 # Broken: fails on valid input.
3780continue
3781fi
3782rm -f conftest.err conftest.$ac_ext
da6ee469 3783
0e5943eb
JF
3784 # OK, works on sane cases. Now check whether nonexistent headers
3785 # can be detected and how.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h. */
3788#include <ac_nonexistent.h>
3789_ACEOF
3790if ac_fn_c_try_cpp "$LINENO"; then :
3791 # Broken: success on invalid input.
3792continue
3793else
3794 # Passes both tests.
3795ac_preproc_ok=:
3796break
da6ee469 3797fi
0e5943eb 3798rm -f conftest.err conftest.$ac_ext
da6ee469 3799
da6ee469 3800done
0e5943eb
JF
3801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802rm -f conftest.err conftest.$ac_ext
3803if $ac_preproc_ok; then :
3804
da6ee469 3805else
0e5943eb
JF
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808as_fn_error "C preprocessor \"$CPP\" fails sanity check
3809See \`config.log' for more details." "$LINENO" 5; }
3810fi
da6ee469 3811
0e5943eb
JF
3812ac_ext=c
3813ac_cpp='$CPP $CPPFLAGS'
3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816ac_compiler_gnu=$ac_cv_c_compiler_gnu
da6ee469 3817
0e5943eb
JF
3818if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822$as_echo_n "checking for $ac_word... " >&6; }
3823if test "${ac_cv_prog_RANLIB+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
da6ee469 3825else
0e5943eb
JF
3826 if test -n "$RANLIB"; then
3827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840done
3841 done
3842IFS=$as_save_IFS
da6ee469 3843
da6ee469 3844fi
da6ee469 3845fi
0e5943eb
JF
3846RANLIB=$ac_cv_prog_RANLIB
3847if test -n "$RANLIB"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3849$as_echo "$RANLIB" >&6; }
3850else
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
da6ee469 3853fi
da6ee469
JF
3854
3855
0e5943eb
JF
3856fi
3857if test -z "$ac_cv_prog_RANLIB"; then
3858 ac_ct_RANLIB=$RANLIB
3859 # Extract the first word of "ranlib", so it can be a program name with args.
3860set dummy ranlib; ac_word=$2
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3865else
3866 if test -n "$ac_ct_RANLIB"; then
3867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3868else
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_ac_ct_RANLIB="ranlib"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880done
3881 done
3882IFS=$as_save_IFS
da6ee469 3883
0e5943eb
JF
3884fi
3885fi
3886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3887if test -n "$ac_ct_RANLIB"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3889$as_echo "$ac_ct_RANLIB" >&6; }
3890else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892$as_echo "no" >&6; }
3893fi
da6ee469 3894
0e5943eb
JF
3895 if test "x$ac_ct_RANLIB" = x; then
3896 RANLIB=":"
3897 else
3898 case $cross_compiling:$ac_tool_warned in
3899yes:)
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3902ac_tool_warned=yes ;;
3903esac
3904 RANLIB=$ac_ct_RANLIB
3905 fi
3906else
3907 RANLIB="$ac_cv_prog_RANLIB"
3908fi
da6ee469 3909
0e5943eb
JF
3910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}ar; ac_word=$2
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if test "${ac_cv_prog_AR+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
da6ee469 3917else
0e5943eb
JF
3918 if test -n "$AR"; then
3919 ac_cv_prog_AR="$AR" # Let the user override the test.
da6ee469 3920else
0e5943eb
JF
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_AR="${ac_tool_prefix}ar"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932done
3933 done
3934IFS=$as_save_IFS
da6ee469 3935
da6ee469 3936fi
da6ee469 3937fi
0e5943eb
JF
3938AR=$ac_cv_prog_AR
3939if test -n "$AR"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3941$as_echo "$AR" >&6; }
da6ee469 3942else
0e5943eb
JF
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
3945fi
da6ee469 3946
da6ee469 3947
0e5943eb
JF
3948fi
3949if test -z "$ac_cv_prog_AR"; then
3950 ac_ct_AR=$AR
3951 # Extract the first word of "ar", so it can be a program name with args.
3952set dummy ar; ac_word=$2
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
3955if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
da6ee469 3957else
0e5943eb
JF
3958 if test -n "$ac_ct_AR"; then
3959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_ac_ct_AR="ar"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972done
3973 done
3974IFS=$as_save_IFS
da6ee469 3975
0e5943eb
JF
3976fi
3977fi
3978ac_ct_AR=$ac_cv_prog_ac_ct_AR
3979if test -n "$ac_ct_AR"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3981$as_echo "$ac_ct_AR" >&6; }
3982else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985fi
3986
3987 if test "x$ac_ct_AR" = x; then
3988 AR=""ar""
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991yes:)
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994ac_tool_warned=yes ;;
3995esac
3996 AR=$ac_ct_AR
3997 fi
3998else
3999 AR="$ac_cv_prog_AR"
da6ee469
JF
4000fi
4001
da6ee469 4002
0e5943eb
JF
4003SAVE_LIBS="$LIBS"
4004LIBS=""
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4006$as_echo_n "checking for library containing gethostbyname... " >&6; }
4007if test "${ac_cv_search_gethostbyname+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 ac_func_search_save_LIBS=$LIBS
4011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4012/* end confdefs.h. */
da6ee469 4013
0e5943eb
JF
4014/* Override any GCC internal prototype to avoid an error.
4015 Use char because int might match the return type of a GCC
4016 builtin and then its argument prototype would still apply. */
4017#ifdef __cplusplus
4018extern "C"
4019#endif
4020char gethostbyname ();
da6ee469
JF
4021int
4022main ()
4023{
0e5943eb 4024return gethostbyname ();
da6ee469
JF
4025 ;
4026 return 0;
4027}
4028_ACEOF
0e5943eb
JF
4029for ac_lib in '' nsl; do
4030 if test -z "$ac_lib"; then
4031 ac_res="none required"
4032 else
4033 ac_res=-l$ac_lib
4034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4035 fi
4036 if ac_fn_c_try_link "$LINENO"; then :
4037 ac_cv_search_gethostbyname=$ac_res
da6ee469 4038fi
0e5943eb
JF
4039rm -f core conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext
4041 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4042 break
4043fi
4044done
4045if test "${ac_cv_search_gethostbyname+set}" = set; then :
da6ee469 4046
da6ee469 4047else
0e5943eb 4048 ac_cv_search_gethostbyname=no
da6ee469 4049fi
0e5943eb
JF
4050rm conftest.$ac_ext
4051LIBS=$ac_func_search_save_LIBS
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4054$as_echo "$ac_cv_search_gethostbyname" >&6; }
4055ac_res=$ac_cv_search_gethostbyname
4056if test "$ac_res" != no; then :
4057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
da6ee469 4058
da6ee469
JF
4059fi
4060
0e5943eb
JF
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
4062$as_echo_n "checking for library containing connect... " >&6; }
4063if test "${ac_cv_search_connect+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065else
4066 ac_func_search_save_LIBS=$LIBS
4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4068/* end confdefs.h. */
0e5943eb
JF
4069
4070/* Override any GCC internal prototype to avoid an error.
4071 Use char because int might match the return type of a GCC
4072 builtin and then its argument prototype would still apply. */
4073#ifdef __cplusplus
4074extern "C"
4075#endif
4076char connect ();
da6ee469
JF
4077int
4078main ()
4079{
0e5943eb 4080return connect ();
da6ee469
JF
4081 ;
4082 return 0;
4083}
4084_ACEOF
0e5943eb
JF
4085for ac_lib in '' socket; do
4086 if test -z "$ac_lib"; then
4087 ac_res="none required"
4088 else
4089 ac_res=-l$ac_lib
4090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4091 fi
4092 if ac_fn_c_try_link "$LINENO"; then :
4093 ac_cv_search_connect=$ac_res
4094fi
4095rm -f core conftest.err conftest.$ac_objext \
4096 conftest$ac_exeext
4097 if test "${ac_cv_search_connect+set}" = set; then :
4098 break
4099fi
4100done
4101if test "${ac_cv_search_connect+set}" = set; then :
4102
da6ee469 4103else
0e5943eb
JF
4104 ac_cv_search_connect=no
4105fi
4106rm conftest.$ac_ext
4107LIBS=$ac_func_search_save_LIBS
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
4110$as_echo "$ac_cv_search_connect" >&6; }
4111ac_res=$ac_cv_search_connect
4112if test "$ac_res" != no; then :
4113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
da6ee469 4114
da6ee469
JF
4115fi
4116
0e5943eb
JF
4117SOCKETLIBS="$LIBS"
4118
4119LIBS="$SAVE_LIBS"
4120
4121
4122
4123saveLIBS="$LIBS"
4124LIBS="$LIBS -ldb"
4125
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4128$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4129if test "${ac_cv_path_GREP+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131else
4132 if test -z "$GREP"; then
4133 ac_path_GREP_found=false
4134 # Loop through the user's path and test for each of PROGNAME-LIST
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_prog in grep ggrep; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4143 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4144# Check for GNU ac_path_GREP and select it if it is found.
4145 # Check for GNU $ac_path_GREP
4146case `"$ac_path_GREP" --version 2>&1` in
4147*GNU*)
4148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149*)
4150 ac_count=0
4151 $as_echo_n 0123456789 >"conftest.in"
4152 while :
4153 do
4154 cat "conftest.in" "conftest.in" >"conftest.tmp"
4155 mv "conftest.tmp" "conftest.in"
4156 cp "conftest.in" "conftest.nl"
4157 $as_echo 'GREP' >> "conftest.nl"
4158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160 as_fn_arith $ac_count + 1 && ac_count=$as_val
4161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4162 # Best one so far, save it but keep looking for a better one
4163 ac_cv_path_GREP="$ac_path_GREP"
4164 ac_path_GREP_max=$ac_count
4165 fi
4166 # 10*(2^10) chars as input seems more than enough
4167 test $ac_count -gt 10 && break
4168 done
4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
da6ee469 4170esac
0e5943eb
JF
4171
4172 $ac_path_GREP_found && break 3
4173 done
4174 done
4175 done
4176IFS=$as_save_IFS
4177 if test -z "$ac_cv_path_GREP"; then
4178 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179 fi
da6ee469 4180else
0e5943eb
JF
4181 ac_cv_path_GREP=$GREP
4182fi
da6ee469 4183
0e5943eb
JF
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4186$as_echo "$ac_cv_path_GREP" >&6; }
4187 GREP="$ac_cv_path_GREP"
da6ee469 4188
0e5943eb
JF
4189
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4191$as_echo_n "checking for egrep... " >&6; }
4192if test "${ac_cv_path_EGREP+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194else
4195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4196 then ac_cv_path_EGREP="$GREP -E"
4197 else
4198 if test -z "$EGREP"; then
4199 ac_path_EGREP_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in egrep; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4209 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4210# Check for GNU ac_path_EGREP and select it if it is found.
4211 # Check for GNU $ac_path_EGREP
4212case `"$ac_path_EGREP" --version 2>&1` in
4213*GNU*)
4214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4215*)
4216 ac_count=0
4217 $as_echo_n 0123456789 >"conftest.in"
4218 while :
4219 do
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 $as_echo 'EGREP' >> "conftest.nl"
4224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 as_fn_arith $ac_count + 1 && ac_count=$as_val
4227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_EGREP="$ac_path_EGREP"
4230 ac_path_EGREP_max=$ac_count
4231 fi
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4234 done
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
da6ee469 4236esac
0e5943eb
JF
4237
4238 $ac_path_EGREP_found && break 3
4239 done
4240 done
4241 done
4242IFS=$as_save_IFS
4243 if test -z "$ac_cv_path_EGREP"; then
4244 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245 fi
da6ee469 4246else
0e5943eb
JF
4247 ac_cv_path_EGREP=$EGREP
4248fi
da6ee469 4249
da6ee469
JF
4250 fi
4251fi
0e5943eb
JF
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4253$as_echo "$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
da6ee469
JF
4255
4256
0e5943eb
JF
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4258$as_echo_n "checking for ANSI C header files... " >&6; }
4259if test "${ac_cv_header_stdc+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
da6ee469 4261else
0e5943eb 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4263/* end confdefs.h. */
0e5943eb
JF
4264#include <stdlib.h>
4265#include <stdarg.h>
4266#include <string.h>
4267#include <float.h>
4268
da6ee469
JF
4269int
4270main ()
4271{
0e5943eb 4272
da6ee469
JF
4273 ;
4274 return 0;
4275}
4276_ACEOF
0e5943eb
JF
4277if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_cv_header_stdc=yes
da6ee469 4279else
0e5943eb 4280 ac_cv_header_stdc=no
da6ee469 4281fi
da6ee469 4282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
da6ee469 4283
0e5943eb
JF
4284if test $ac_cv_header_stdc = yes; then
4285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4287/* end confdefs.h. */
0e5943eb 4288#include <string.h>
da6ee469 4289
da6ee469 4290_ACEOF
0e5943eb
JF
4291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 $EGREP "memchr" >/dev/null 2>&1; then :
4293
4294else
4295 ac_cv_header_stdc=no
4296fi
4297rm -f conftest*
4298
4299fi
4300
4301if test $ac_cv_header_stdc = yes; then
4302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4304/* end confdefs.h. */
0e5943eb 4305#include <stdlib.h>
da6ee469 4306
da6ee469 4307_ACEOF
0e5943eb
JF
4308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4309 $EGREP "free" >/dev/null 2>&1; then :
4310
da6ee469 4311else
0e5943eb
JF
4312 ac_cv_header_stdc=no
4313fi
4314rm -f conftest*
da6ee469 4315
da6ee469
JF
4316fi
4317
0e5943eb
JF
4318if test $ac_cv_header_stdc = yes; then
4319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4320 if test "$cross_compiling" = yes; then :
4321 :
da6ee469 4322else
0e5943eb 4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4324/* end confdefs.h. */
0e5943eb
JF
4325#include <ctype.h>
4326#include <stdlib.h>
4327#if ((' ' & 0x0FF) == 0x020)
4328# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4329# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4330#else
4331# define ISLOWER(c) \
4332 (('a' <= (c) && (c) <= 'i') \
4333 || ('j' <= (c) && (c) <= 'r') \
4334 || ('s' <= (c) && (c) <= 'z'))
4335# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4336#endif
4337
4338#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
da6ee469
JF
4339int
4340main ()
4341{
0e5943eb
JF
4342 int i;
4343 for (i = 0; i < 256; i++)
4344 if (XOR (islower (i), ISLOWER (i))
4345 || toupper (i) != TOUPPER (i))
4346 return 2;
da6ee469
JF
4347 return 0;
4348}
4349_ACEOF
0e5943eb
JF
4350if ac_fn_c_try_run "$LINENO"; then :
4351
4352else
4353 ac_cv_header_stdc=no
4354fi
4355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4356 conftest.$ac_objext conftest.beam conftest.$ac_ext
4357fi
4358
4359fi
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4362$as_echo "$ac_cv_header_stdc" >&6; }
4363if test $ac_cv_header_stdc = yes; then
4364
4365$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4366
4367fi
4368
4369# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4370for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4371 inttypes.h stdint.h unistd.h
4372do :
4373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4374ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4375"
4376eval as_val=\$$as_ac_Header
4377 if test "x$as_val" = x""yes; then :
4378 cat >>confdefs.h <<_ACEOF
4379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
da6ee469 4380_ACEOF
0e5943eb
JF
4381
4382fi
4383
4384done
4385
4386
4387ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
4388if test "x$ac_cv_header_db_h" = x""yes; then :
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link against BerkeleyDB" >&5
4390$as_echo_n "checking if we can link against BerkeleyDB... " >&6; }
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4392/* end confdefs.h. */
0e5943eb 4393#include <db.h>
da6ee469
JF
4394int
4395main ()
4396{
0e5943eb 4397int r, s, t; db_version(&r, &s, &t);
da6ee469
JF
4398
4399 ;
4400 return 0;
4401}
4402_ACEOF
0e5943eb
JF
4403if ac_fn_c_try_link "$LINENO"; then :
4404 $as_echo "#define HAVE_BDB 1" >>confdefs.h
da6ee469 4405
0e5943eb
JF
4406 BDBLIB="-ldb"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4408$as_echo "yes" >&6; }
da6ee469 4409else
0e5943eb
JF
4410 BDBLIB=""
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
da6ee469 4413
da6ee469 4414fi
0e5943eb
JF
4415rm -f core conftest.err conftest.$ac_objext \
4416 conftest$ac_exeext conftest.$ac_ext
da6ee469 4417
da6ee469
JF
4418fi
4419
0e5943eb
JF
4420
4421
4422LIBS="$saveLIBS"
4423
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
4425$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
4426if test "${ac_cv_lib_curl_curl_easy_init+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428else
4429 ac_check_lib_save_LIBS=$LIBS
4430LIBS="-lcurl $LIBS"
4431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4432/* end confdefs.h. */
0e5943eb
JF
4433
4434/* Override any GCC internal prototype to avoid an error.
4435 Use char because int might match the return type of a GCC
4436 builtin and then its argument prototype would still apply. */
4437#ifdef __cplusplus
4438extern "C"
4439#endif
4440char curl_easy_init ();
da6ee469
JF
4441int
4442main ()
4443{
0e5943eb 4444return curl_easy_init ();
da6ee469
JF
4445 ;
4446 return 0;
4447}
4448_ACEOF
0e5943eb
JF
4449if ac_fn_c_try_link "$LINENO"; then :
4450 ac_cv_lib_curl_curl_easy_init=yes
da6ee469 4451else
0e5943eb
JF
4452 ac_cv_lib_curl_curl_easy_init=no
4453fi
4454rm -f core conftest.err conftest.$ac_objext \
4455 conftest$ac_exeext conftest.$ac_ext
4456LIBS=$ac_check_lib_save_LIBS
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
4459$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
4460if test "x$ac_cv_lib_curl_curl_easy_init" = x""yes; then :
4461 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
4462if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
4463 curl_ok=yes
4464else
4465 curl_ok=no
da6ee469
JF
4466fi
4467
0e5943eb 4468
da6ee469 4469else
0e5943eb
JF
4470 as_fn_error "failed: I need CURL due https support" "$LINENO" 5
4471fi
4472
4473
4474
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking debian architecture" >&5
4477$as_echo_n "checking debian architecture... " >&6; }
4478archset="`dpkg-architecture -qDEB_HOST_ARCH`"
4479if test "x$archset" = "x"; then
4480 as_fn_error "failed: use --host= or output from dpkg-architecture" "$LINENO" 5
4481fi
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archset" >&5
4483$as_echo "$archset" >&6; }
4484cat >>confdefs.h <<_ACEOF
4485#define COMMON_ARCH "$archset"
da6ee469 4486_ACEOF
0e5943eb
JF
4487
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 integer types" >&5
4490$as_echo_n "checking for C99 integer types... " >&6; }
4491if test "${apt_cv_c9x_ints+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493else
4494
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496/* end confdefs.h. */
4497#include <inttypes.h>
da6ee469
JF
4498int
4499main ()
4500{
0e5943eb 4501uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;
da6ee469
JF
4502 ;
4503 return 0;
4504}
4505_ACEOF
0e5943eb
JF
4506if ac_fn_c_try_compile "$LINENO"; then :
4507 apt_cv_c9x_ints=yes
da6ee469 4508else
0e5943eb
JF
4509 apt_cv_c9x_ints=no
4510fi
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apt_cv_c9x_ints" >&5
4514$as_echo "$apt_cv_c9x_ints" >&6; }
da6ee469 4515
0e5943eb
JF
4516ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
4517if test "x$ac_cv_func_statvfs" = x""yes; then :
4518 HAVE_STATVFS=yes
da6ee469 4519fi
0e5943eb
JF
4520
4521
4522
4523if test x"$HAVE_STATVFS" != x"yes"; then
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h. */
4526#include <sys/vfs.h>
4527
4528_ACEOF
4529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 $EGREP "statfs" >/dev/null 2>&1; then :
4531 $as_echo "#define HAVE_VFS_H 1" >>confdefs.h
4532
4533else
4534
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h. */
4537#include <sys/mount.h>
4538
4539_ACEOF
4540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 $EGREP "statfs" >/dev/null 2>&1; then :
4542 $as_echo "#define HAVE_MOUNT_H 1" >>confdefs.h
4543
4544else
4545 as_fn_error "failed: Need statvfs" "$LINENO" 5
da6ee469 4546fi
0e5943eb
JF
4547rm -f conftest*
4548
4549
da6ee469 4550fi
0e5943eb 4551rm -f conftest*
da6ee469 4552
0e5943eb 4553fi
da6ee469 4554
0e5943eb
JF
4555ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" "$ac_includes_default
4556 #include <sys/vfs.h>
4557"
4558if test "x$ac_cv_member_struct_statfs_f_type" = x""yes; then :
da6ee469
JF
4559
4560cat >>confdefs.h <<_ACEOF
0e5943eb 4561#define HAVE_STRUCT_STATFS_F_TYPE 1
da6ee469
JF
4562_ACEOF
4563
4564
0e5943eb
JF
4565fi
4566
4567
4568ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
4569if test "x$ac_cv_func_timegm" = x""yes; then :
4570 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
4571
4572fi
4573
4574
4575
4576
4577archline="`awk \" ! /^#|^\\\$/ {if (match(\\\"$archset\\\",\\\$1)) {print; exit}}\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`"
4578if test "x$archline" != "x"; then
4579
4580 set $archline
4581 if test "$1" = "little"; then
4582 ac_cv_c_bigendian=no
4583 else
4584 ac_cv_c_bigendian=yes
4585 fi
4586 size_char=$2
4587 size_int=$3
4588 size_short=$4
4589 size_long=$5
4590fi
4591
4592if test "$cross_compiling" = "yes" -a "x$archline" = "x"; then
4593 { as_fn_set_status architecture must be present in sizetable
4594as_fn_error "When cross compiling" "$LINENO" 5; }
4595fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4597$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4598if test "${ac_cv_c_bigendian+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
da6ee469 4600else
0e5943eb
JF
4601 ac_cv_c_bigendian=unknown
4602 # See if we're dealing with a universal compiler.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4604/* end confdefs.h. */
0e5943eb
JF
4605#ifndef __APPLE_CC__
4606 not a universal capable compiler
4607 #endif
4608 typedef int dummy;
4609
4610_ACEOF
4611if ac_fn_c_try_compile "$LINENO"; then :
4612
4613 # Check for potential -arch flags. It is not universal unless
4614 # there are at least two -arch flags with different values.
4615 ac_arch=
4616 ac_prev=
4617 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4618 if test -n "$ac_prev"; then
4619 case $ac_word in
4620 i?86 | x86_64 | ppc | ppc64)
4621 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4622 ac_arch=$ac_word
4623 else
4624 ac_cv_c_bigendian=universal
4625 break
4626 fi
4627 ;;
4628 esac
4629 ac_prev=
4630 elif test "x$ac_word" = "x-arch"; then
4631 ac_prev=arch
4632 fi
4633 done
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 if test $ac_cv_c_bigendian = unknown; then
4637 # See if sys/param.h defines the BYTE_ORDER macro.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639/* end confdefs.h. */
4640#include <sys/types.h>
4641 #include <sys/param.h>
4642
da6ee469
JF
4643int
4644main ()
4645{
0e5943eb
JF
4646#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4647 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4648 && LITTLE_ENDIAN)
4649 bogus endian macros
4650 #endif
4651
4652 ;
da6ee469 4653 return 0;
0e5943eb
JF
4654}
4655_ACEOF
4656if ac_fn_c_try_compile "$LINENO"; then :
4657 # It does; now see whether it defined to BIG_ENDIAN or not.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h. */
4660#include <sys/types.h>
4661 #include <sys/param.h>
4662
4663int
4664main ()
4665{
4666#if BYTE_ORDER != BIG_ENDIAN
4667 not big endian
4668 #endif
4669
da6ee469
JF
4670 ;
4671 return 0;
4672}
4673_ACEOF
0e5943eb
JF
4674if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_c_bigendian=yes
da6ee469 4676else
0e5943eb 4677 ac_cv_c_bigendian=no
da6ee469 4678fi
da6ee469
JF
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680fi
0e5943eb
JF
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 if test $ac_cv_c_bigendian = unknown; then
4684 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4686/* end confdefs.h. */
0e5943eb
JF
4687#include <limits.h>
4688
da6ee469
JF
4689int
4690main ()
4691{
0e5943eb
JF
4692#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4693 bogus endian macros
4694 #endif
da6ee469
JF
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
0e5943eb
JF
4700if ac_fn_c_try_compile "$LINENO"; then :
4701 # It does; now see whether it defined to _BIG_ENDIAN or not.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4703/* end confdefs.h. */
0e5943eb
JF
4704#include <limits.h>
4705
da6ee469
JF
4706int
4707main ()
4708{
0e5943eb
JF
4709#ifndef _BIG_ENDIAN
4710 not big endian
4711 #endif
da6ee469
JF
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
0e5943eb
JF
4717if ac_fn_c_try_compile "$LINENO"; then :
4718 ac_cv_c_bigendian=yes
da6ee469 4719else
0e5943eb 4720 ac_cv_c_bigendian=no
da6ee469 4721fi
da6ee469 4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0e5943eb
JF
4723fi
4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 fi
4726 if test $ac_cv_c_bigendian = unknown; then
4727 # Compile a test program.
4728 if test "$cross_compiling" = yes; then :
4729 # Try to guess by grepping values from an object file.
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469 4731/* end confdefs.h. */
0e5943eb
JF
4732short int ascii_mm[] =
4733 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4734 short int ascii_ii[] =
4735 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4736 int use_ascii (int i) {
4737 return ascii_mm[i] + ascii_ii[i];
4738 }
4739 short int ebcdic_ii[] =
4740 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4741 short int ebcdic_mm[] =
4742 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4743 int use_ebcdic (int i) {
4744 return ebcdic_mm[i] + ebcdic_ii[i];
4745 }
4746 extern int foo;
4747
da6ee469
JF
4748int
4749main ()
4750{
0e5943eb 4751return use_ascii (foo) == use_ebcdic (foo);
da6ee469
JF
4752 ;
4753 return 0;
4754}
4755_ACEOF
0e5943eb
JF
4756if ac_fn_c_try_compile "$LINENO"; then :
4757 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4758 ac_cv_c_bigendian=yes
4759 fi
4760 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4761 if test "$ac_cv_c_bigendian" = unknown; then
4762 ac_cv_c_bigendian=no
4763 else
4764 # finding both strings is unlikely to happen, but who knows?
4765 ac_cv_c_bigendian=unknown
4766 fi
4767 fi
4768fi
4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
4772/* end confdefs.h. */
4773$ac_includes_default
da6ee469
JF
4774int
4775main ()
4776{
0e5943eb
JF
4777
4778 /* Are we little or big endian? From Harbison&Steele. */
4779 union
4780 {
4781 long int l;
4782 char c[sizeof (long int)];
4783 } u;
4784 u.l = 1;
4785 return u.c[sizeof (long int) - 1] == 1;
da6ee469
JF
4786
4787 ;
4788 return 0;
4789}
4790_ACEOF
0e5943eb
JF
4791if ac_fn_c_try_run "$LINENO"; then :
4792 ac_cv_c_bigendian=no
da6ee469 4793else
0e5943eb
JF
4794 ac_cv_c_bigendian=yes
4795fi
4796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4797 conftest.$ac_objext conftest.beam conftest.$ac_ext
4798fi
da6ee469 4799
0e5943eb 4800 fi
da6ee469 4801fi
0e5943eb
JF
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4803$as_echo "$ac_cv_c_bigendian" >&6; }
4804 case $ac_cv_c_bigendian in #(
4805 yes)
4806 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4807;; #(
4808 no)
4809 ;; #(
4810 universal)
da6ee469 4811
0e5943eb
JF
4812$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4813
4814 ;; #(
4815 *)
4816 as_fn_error "unknown endianness
4817 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4818 esac
4819
4820
4821HAVE_C9X=yes
4822if test x"$apt_cv_c9x_ints" = x"no"; then
4823 # The cast to long int works around a bug in the HP C Compiler
4824# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4825# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4826# This bug is HP SR number 8606223364.
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4828$as_echo_n "checking size of char... " >&6; }
4829if test "${ac_cv_sizeof_char+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
da6ee469 4831else
0e5943eb 4832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
da6ee469 4833
0e5943eb
JF
4834else
4835 if test "$ac_cv_type_char" = yes; then
4836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838{ as_fn_set_status 77
4839as_fn_error "cannot compute sizeof (char)
4840See \`config.log' for more details." "$LINENO" 5; }; }
4841 else
4842 ac_cv_sizeof_char=0
4843 fi
da6ee469
JF
4844fi
4845
da6ee469 4846fi
0e5943eb
JF
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4848$as_echo "$ac_cv_sizeof_char" >&6; }
da6ee469 4849
0e5943eb
JF
4850
4851
4852cat >>confdefs.h <<_ACEOF
4853#define SIZEOF_CHAR $ac_cv_sizeof_char
da6ee469 4854_ACEOF
da6ee469 4855
0e5943eb
JF
4856
4857 # The cast to long int works around a bug in the HP C Compiler
4858# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4859# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4860# This bug is HP SR number 8606223364.
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4862$as_echo_n "checking size of int... " >&6; }
4863if test "${ac_cv_sizeof_int+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865else
4866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4867
4868else
4869 if test "$ac_cv_type_int" = yes; then
4870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4872{ as_fn_set_status 77
4873as_fn_error "cannot compute sizeof (int)
4874See \`config.log' for more details." "$LINENO" 5; }; }
4875 else
4876 ac_cv_sizeof_int=0
4877 fi
4878fi
4879
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4882$as_echo "$ac_cv_sizeof_int" >&6; }
4883
4884
4885
4886cat >>confdefs.h <<_ACEOF
4887#define SIZEOF_INT $ac_cv_sizeof_int
da6ee469 4888_ACEOF
0e5943eb
JF
4889
4890
4891 # The cast to long int works around a bug in the HP C Compiler
4892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4894# This bug is HP SR number 8606223364.
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4896$as_echo_n "checking size of short... " >&6; }
4897if test "${ac_cv_sizeof_short+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
da6ee469 4899else
0e5943eb 4900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
da6ee469 4901
0e5943eb
JF
4902else
4903 if test "$ac_cv_type_short" = yes; then
4904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906{ as_fn_set_status 77
4907as_fn_error "cannot compute sizeof (short)
4908See \`config.log' for more details." "$LINENO" 5; }; }
4909 else
4910 ac_cv_sizeof_short=0
4911 fi
da6ee469
JF
4912fi
4913
0e5943eb
JF
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4916$as_echo "$ac_cv_sizeof_short" >&6; }
da6ee469 4917
da6ee469 4918
0e5943eb
JF
4919
4920cat >>confdefs.h <<_ACEOF
4921#define SIZEOF_SHORT $ac_cv_sizeof_short
da6ee469 4922_ACEOF
0e5943eb
JF
4923
4924
4925 # The cast to long int works around a bug in the HP C Compiler
4926# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4927# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4928# This bug is HP SR number 8606223364.
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4930$as_echo_n "checking size of long... " >&6; }
4931if test "${ac_cv_sizeof_long+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
da6ee469 4933else
0e5943eb 4934 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
da6ee469 4935
0e5943eb
JF
4936else
4937 if test "$ac_cv_type_long" = yes; then
4938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4940{ as_fn_set_status 77
4941as_fn_error "cannot compute sizeof (long)
4942See \`config.log' for more details." "$LINENO" 5; }; }
da6ee469
JF
4943 else
4944 ac_cv_sizeof_long=0
4945 fi
4946fi
0e5943eb 4947
da6ee469 4948fi
0e5943eb
JF
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4950$as_echo "$ac_cv_sizeof_long" >&6; }
da6ee469
JF
4951
4952
4953
4954cat >>confdefs.h <<_ACEOF
4955#define SIZEOF_LONG $ac_cv_sizeof_long
4956_ACEOF
4957
4958
4959
4960 HAVE_C9X=
4961
4962fi
4963
0e5943eb
JF
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing socklen_t" >&5
4965$as_echo_n "checking for missing socklen_t... " >&6; }
4966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
4967/* end confdefs.h. */
4968#include <sys/socket.h>
4969
4970_ACEOF
4971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0e5943eb
JF
4972 $EGREP "socklen_t" >/dev/null 2>&1; then :
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
da6ee469
JF
4975else
4976
0e5943eb 4977 $as_echo "#define NEED_SOCKLEN_T_DEFINE 1" >>confdefs.h
da6ee469
JF
4978
4979 NEED_SOCKLEN_T_DEFINE=yes
0e5943eb
JF
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing." >&5
4981$as_echo "missing." >&6; }
da6ee469
JF
4982fi
4983rm -f conftest*
4984
4985
4986
0e5943eb
JF
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
4988$as_echo_n "checking for h_errno... " >&6; }
4989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
4990/* end confdefs.h. */
4991#include <netdb.h>
4992
4993_ACEOF
4994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0e5943eb
JF
4995 $EGREP "h_errno" >/dev/null 2>&1; then :
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: normal" >&5
4997$as_echo "normal" >&6; }
da6ee469
JF
4998else
4999 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
0e5943eb 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
5001/* end confdefs.h. */
5002#include <netdb.h>
5003
5004_ACEOF
5005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0e5943eb
JF
5006 $EGREP "h_errno" >/dev/null 2>&1; then :
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needs _XOPEN_SOURCE_EXTENDED" >&5
5008$as_echo "needs _XOPEN_SOURCE_EXTENDED" >&6; }
da6ee469 5009else
0e5943eb 5010 as_fn_error "\"not found.\"" "$LINENO" 5
da6ee469
JF
5011fi
5012rm -f conftest*
5013
5014
5015fi
5016rm -f conftest*
5017
5018
5019# Extract the first word of "debiandoc2html", so it can be a program name with args.
5020set dummy debiandoc2html; ac_word=$2
0e5943eb
JF
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022$as_echo_n "checking for $ac_word... " >&6; }
5023if test "${ac_cv_path_DEBIANDOC_HTML+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
da6ee469
JF
5025else
5026 case $DEBIANDOC_HTML in
5027 [\\/]* | ?:[\\/]*)
5028 ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a path.
5029 ;;
5030 *)
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
0e5943eb 5036 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469
JF
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_DEBIANDOC_HTML="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
5040 break 2
5041 fi
5042done
0e5943eb 5043 done
da6ee469
JF
5044IFS=$as_save_IFS
5045
5046 ;;
5047esac
5048fi
5049DEBIANDOC_HTML=$ac_cv_path_DEBIANDOC_HTML
5050if test -n "$DEBIANDOC_HTML"; then
0e5943eb
JF
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBIANDOC_HTML" >&5
5052$as_echo "$DEBIANDOC_HTML" >&6; }
da6ee469 5053else
0e5943eb
JF
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055$as_echo "no" >&6; }
da6ee469
JF
5056fi
5057
5058
5059# Extract the first word of "debiandoc2text", so it can be a program name with args.
5060set dummy debiandoc2text; ac_word=$2
0e5943eb
JF
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062$as_echo_n "checking for $ac_word... " >&6; }
5063if test "${ac_cv_path_DEBIANDOC_TEXT+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
da6ee469
JF
5065else
5066 case $DEBIANDOC_TEXT in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
0e5943eb 5076 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469
JF
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_DEBIANDOC_TEXT="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
5080 break 2
5081 fi
5082done
0e5943eb 5083 done
da6ee469
JF
5084IFS=$as_save_IFS
5085
5086 ;;
5087esac
5088fi
5089DEBIANDOC_TEXT=$ac_cv_path_DEBIANDOC_TEXT
5090if test -n "$DEBIANDOC_TEXT"; then
0e5943eb
JF
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBIANDOC_TEXT" >&5
5092$as_echo "$DEBIANDOC_TEXT" >&6; }
da6ee469 5093else
0e5943eb
JF
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095$as_echo "no" >&6; }
da6ee469
JF
5096fi
5097
5098
5099
00ec24d0
JF
5100# Extract the first word of "doxygen", so it can be a program name with args.
5101set dummy doxygen; ac_word=$2
0e5943eb
JF
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103$as_echo_n "checking for $ac_word... " >&6; }
5104if test "${ac_cv_path_DOXYGEN+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
00ec24d0
JF
5106else
5107 case $DOXYGEN in
5108 [\\/]* | ?:[\\/]*)
5109 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5110 ;;
5111 *)
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
0e5943eb 5117 for ac_exec_ext in '' $ac_executable_extensions; do
00ec24d0
JF
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00ec24d0
JF
5121 break 2
5122 fi
5123done
0e5943eb 5124 done
00ec24d0
JF
5125IFS=$as_save_IFS
5126
5127 ;;
5128esac
5129fi
5130DOXYGEN=$ac_cv_path_DOXYGEN
5131if test -n "$DOXYGEN"; then
0e5943eb
JF
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
5133$as_echo "$DOXYGEN" >&6; }
00ec24d0 5134else
0e5943eb
JF
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136$as_echo "no" >&6; }
00ec24d0
JF
5137fi
5138
5139
5140
0e5943eb
JF
5141# Extract the first word of "xsltproc", so it can be a program name with args.
5142set dummy xsltproc; ac_word=$2
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
5145if test "${ac_cv_path_XSLTPROC+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
da6ee469 5147else
0e5943eb 5148 case $XSLTPROC in
da6ee469 5149 [\\/]* | ?:[\\/]*)
0e5943eb 5150 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
da6ee469
JF
5151 ;;
5152 *)
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
0e5943eb 5158 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469 5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0e5943eb
JF
5160 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
5162 break 2
5163 fi
5164done
0e5943eb 5165 done
da6ee469
JF
5166IFS=$as_save_IFS
5167
5168 ;;
5169esac
5170fi
0e5943eb
JF
5171XSLTPROC=$ac_cv_path_XSLTPROC
5172if test -n "$XSLTPROC"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
5174$as_echo "$XSLTPROC" >&6; }
da6ee469 5175else
0e5943eb
JF
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177$as_echo "no" >&6; }
da6ee469
JF
5178fi
5179
5180
5181
0e5943eb
JF
5182# Extract the first word of "po4a", so it can be a program name with args.
5183set dummy po4a; ac_word=$2
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
5186if test "${ac_cv_path_PO4A+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
da6ee469 5188else
0e5943eb 5189 case $PO4A in
da6ee469 5190 [\\/]* | ?:[\\/]*)
0e5943eb 5191 ac_cv_path_PO4A="$PO4A" # Let the user override the test with a path.
da6ee469
JF
5192 ;;
5193 *)
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
0e5943eb 5199 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469 5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0e5943eb
JF
5201 ac_cv_path_PO4A="$as_dir/$ac_word$ac_exec_ext"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
5203 break 2
5204 fi
5205done
0e5943eb 5206 done
da6ee469
JF
5207IFS=$as_save_IFS
5208
5209 ;;
5210esac
5211fi
0e5943eb
JF
5212PO4A=$ac_cv_path_PO4A
5213if test -n "$PO4A"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
5215$as_echo "$PO4A" >&6; }
da6ee469 5216else
0e5943eb
JF
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
da6ee469
JF
5219fi
5220
5221
5222
00ec24d0
JF
5223# Extract the first word of "dot", so it can be a program name with args.
5224set dummy dot; ac_word=$2
0e5943eb
JF
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226$as_echo_n "checking for $ac_word... " >&6; }
5227if test "${ac_cv_prog_HAVE_DOT+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
00ec24d0
JF
5229else
5230 if test -n "$HAVE_DOT"; then
5231 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
0e5943eb 5238 for ac_exec_ext in '' $ac_executable_extensions; do
00ec24d0
JF
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_HAVE_DOT="YES"
0e5943eb 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00ec24d0
JF
5242 break 2
5243 fi
5244done
0e5943eb 5245 done
00ec24d0
JF
5246IFS=$as_save_IFS
5247
5248 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
5249fi
5250fi
5251HAVE_DOT=$ac_cv_prog_HAVE_DOT
5252if test -n "$HAVE_DOT"; then
0e5943eb
JF
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
5254$as_echo "$HAVE_DOT" >&6; }
00ec24d0 5255else
0e5943eb
JF
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
00ec24d0
JF
5258fi
5259
5260
5261# Extract the first word of "dot", so it can be a program name with args.
5262set dummy dot; ac_word=$2
0e5943eb
JF
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264$as_echo_n "checking for $ac_word... " >&6; }
5265if test "${ac_cv_path_DOT+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
00ec24d0
JF
5267else
5268 case $DOT in
5269 [\\/]* | ?:[\\/]*)
5270 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5271 ;;
5272 *)
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
0e5943eb 5278 for ac_exec_ext in '' $ac_executable_extensions; do
00ec24d0
JF
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00ec24d0
JF
5282 break 2
5283 fi
5284done
0e5943eb 5285 done
00ec24d0
JF
5286IFS=$as_save_IFS
5287
5288 ;;
5289esac
5290fi
5291DOT=$ac_cv_path_DOT
5292if test -n "$DOT"; then
0e5943eb
JF
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
5294$as_echo "$DOT" >&6; }
00ec24d0 5295else
0e5943eb
JF
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
00ec24d0
JF
5298fi
5299
5300
5301DOTDIR=$(dirname $DOT)
5302
5303
da6ee469 5304
da6ee469 5305# Check whether --with-getconf was given.
0e5943eb 5306if test "${with_getconf+set}" = set; then :
da6ee469
JF
5307 withval=$with_getconf; if test "$withval" = "yes"; then
5308 # Extract the first word of "getconf", so it can be a program name with args.
5309set dummy getconf; ac_word=$2
0e5943eb
JF
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311$as_echo_n "checking for $ac_word... " >&6; }
5312if test "${ac_cv_path_GETCONF+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
da6ee469
JF
5314else
5315 case $GETCONF in
5316 [\\/]* | ?:[\\/]*)
5317 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
5318 ;;
5319 *)
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
0e5943eb 5325 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469
JF
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
5329 break 2
5330 fi
5331done
0e5943eb 5332 done
da6ee469
JF
5333IFS=$as_save_IFS
5334
5335 ;;
5336esac
5337fi
5338GETCONF=$ac_cv_path_GETCONF
5339if test -n "$GETCONF"; then
0e5943eb
JF
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
5341$as_echo "$GETCONF" >&6; }
da6ee469 5342else
0e5943eb
JF
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
da6ee469
JF
5345fi
5346
5347
5348 elif test ! "$withval" = "no";then
0e5943eb
JF
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getconf" >&5
5350$as_echo_n "checking getconf... " >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5352$as_echo "$withval" >&6; }
da6ee469
JF
5353 GETCONF=$withval
5354 fi
5355else
5356 # Extract the first word of "getconf", so it can be a program name with args.
5357set dummy getconf; ac_word=$2
0e5943eb
JF
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
5360if test "${ac_cv_path_GETCONF+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
da6ee469
JF
5362else
5363 case $GETCONF in
5364 [\\/]* | ?:[\\/]*)
5365 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
5366 ;;
5367 *)
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
0e5943eb 5373 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469
JF
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
5377 break 2
5378 fi
5379done
0e5943eb 5380 done
da6ee469
JF
5381IFS=$as_save_IFS
5382
5383 ;;
5384esac
5385fi
5386GETCONF=$ac_cv_path_GETCONF
5387if test -n "$GETCONF"; then
0e5943eb
JF
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
5389$as_echo "$GETCONF" >&6; }
da6ee469 5390else
0e5943eb
JF
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392$as_echo "no" >&6; }
da6ee469
JF
5393fi
5394
5395
5396
5397fi
5398
5399
5400
0e5943eb
JF
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of cpus" >&5
5402$as_echo_n "checking number of cpus... " >&6; }
da6ee469
JF
5403
5404# Check whether --with-cpus was given.
0e5943eb 5405if test "${with_cpus+set}" = set; then :
da6ee469
JF
5406 withval=$with_cpus;
5407 if test "$withval" = "yes"; then
5408
5409 if test ! -z "$GETCONF";then
5410 old_args="$@"
5411 set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
5412 while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
5413 eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
5414 shift
5415 done
5416 fi
5417 if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
5418 eval NUM_CPUS="1"
5419 fi
5420
5421 elif test ! "$withval" = "no";then
5422 NUM_CPUS=$withval
5423 elif test "$withval" = "no";then
5424 NUM_CPUS=1
5425 fi
5426else
5427
5428 if test ! -z "$GETCONF";then
5429 old_args="$@"
5430 set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
5431 while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
5432 eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
5433 shift
5434 done
5435 fi
5436 if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
5437 eval NUM_CPUS="1"
5438 fi
5439
5440
5441fi
5442
5443 ah_NUM_CPUS_msg="$NUM_CPUS"
5444 if test "$NUM_CPUS" = "0"; then
5445 # broken getconf, time to bitch.
5446 ah_NUM_CPUS_msg="found 0 cpus. Has someone done a lobotomy?"
5447 NUM_CPUS=1
5448 fi
5449 if test $NUM_CPUS = 1 ;then
5450 default_PROC_MULTIPLY=1
5451 else
5452 default_PROC_MULTIPLY=2
5453 fi
0e5943eb
JF
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ah_NUM_CPUS_msg" >&5
5455$as_echo "$ah_NUM_CPUS_msg" >&6; }
da6ee469
JF
5456
5457
5458
0e5943eb
JF
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor multiplier" >&5
5460$as_echo_n "checking processor multiplier... " >&6; }
da6ee469
JF
5461
5462# Check whether --with-proc-multiply was given.
0e5943eb 5463if test "${with_proc_multiply+set}" = set; then :
da6ee469
JF
5464 withval=$with_proc_multiply; if test "$withval" = "yes"; then
5465 PROC_MULTIPLY=$default_PROC_MULTIPLY
5466 elif test ! "$withval" = "no";then
5467 PROC_MULTIPLY=$withval
5468 fi
5469else
5470 PROC_MULTIPLY=$default_PROC_MULTIPLY
5471
5472fi
5473
0e5943eb
JF
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROC_MULTIPLY" >&5
5475$as_echo "$PROC_MULTIPLY" >&6; }
da6ee469
JF
5476
5477
5478
5479
0e5943eb
JF
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of processes to run during make" >&5
5481$as_echo_n "checking number of processes to run during make... " >&6; }
da6ee469
JF
5482
5483# Check whether --with-procs was given.
0e5943eb 5484if test "${with_procs+set}" = set; then :
da6ee469
JF
5485 withval=$with_procs; if test "$withval" = "yes"; then
5486 NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
5487 elif test ! "$withval" = "no";then
5488 NUM_PROCS=$withval
5489 fi
5490else
5491 NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
5492
5493fi
5494
0e5943eb
JF
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_PROCS" >&5
5496$as_echo "$NUM_PROCS" >&6; }
da6ee469
JF
5497
5498
5499
0e5943eb
JF
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX -MD works" >&5
5501$as_echo_n "checking if $CXX -MD works... " >&6; }
da6ee469
JF
5502 touch gcc3dep.cc
5503 ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc
5504 rm -f gcc3dep.cc gcc3dep_test.o
5505 if test -e gcc3dep.d; then
5506 rm -f gcc3dep.d
5507 GCC_MD=input
5508 GCC3DEP=
5509 elif test -e gcc3dep_test.d; then
5510 rm -f gcc3dep_test.d
5511 GCC_MD=output
5512 GCC3DEP=yes
5513 else
0e5943eb 5514 as_fn_error "no" "$LINENO" 5
da6ee469 5515 fi
0e5943eb
JF
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, for $GCC_MD" >&5
5517$as_echo "yes, for $GCC_MD" >&6; }
da6ee469
JF
5518
5519
5520
00ec24d0 5521ALL_LINGUAS="bg bs ca cs cy da de dz el en_GB es eu fi fr gl hu it ja ko ku nb nl nn pl pt_BR pt ro ru sk sl sv th tl uk vi zn_CN zh_TW"
0e5943eb
JF
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5523$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5524set x ${MAKE-make}
5525ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5526if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5527 $as_echo_n "(cached) " >&6
da6ee469
JF
5528else
5529 cat >conftest.make <<\_ACEOF
5530SHELL = /bin/sh
5531all:
5532 @echo '@@@%%%=$(MAKE)=@@@%%%'
5533_ACEOF
5534# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5535case `${MAKE-make} -f conftest.make 2>/dev/null` in
5536 *@@@%%%=?*=@@@%%%*)
5537 eval ac_cv_prog_make_${ac_make}_set=yes;;
5538 *)
5539 eval ac_cv_prog_make_${ac_make}_set=no;;
5540esac
5541rm -f conftest.make
5542fi
5543if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
0e5943eb
JF
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5545$as_echo "yes" >&6; }
da6ee469
JF
5546 SET_MAKE=
5547else
0e5943eb
JF
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549$as_echo "no" >&6; }
da6ee469
JF
5550 SET_MAKE="MAKE=${MAKE-make}"
5551fi
5552
5553# Find a good install program. We prefer a C program (faster),
5554# so one script is as good as another. But avoid the broken or
5555# incompatible versions:
5556# SysV /etc/install, /usr/sbin/install
5557# SunOS /usr/etc/install
5558# IRIX /sbin/install
5559# AIX /bin/install
5560# AmigaOS /C/install, which installs bootblocks on floppy discs
5561# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5562# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5563# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5564# OS/2's system install, which has a completely different semantic
5565# ./install, which can be erroneously created by make from ./install.sh.
0e5943eb
JF
5566# Reject install programs that cannot install multiple files.
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5568$as_echo_n "checking for a BSD-compatible install... " >&6; }
da6ee469 5569if test -z "$INSTALL"; then
0e5943eb
JF
5570if test "${ac_cv_path_install+set}" = set; then :
5571 $as_echo_n "(cached) " >&6
da6ee469
JF
5572else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
0e5943eb
JF
5578 # Account for people who put trailing slashes in PATH elements.
5579case $as_dir/ in #((
5580 ./ | .// | /[cC]/* | \
da6ee469 5581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
0e5943eb 5582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
da6ee469
JF
5583 /usr/ucb/* ) ;;
5584 *)
5585 # OSF1 and SCO ODT 3.0 have their own names for install.
5586 # Don't use installbsd from OSF since it installs stuff as root
5587 # by default.
5588 for ac_prog in ginstall scoinst install; do
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5591 if test $ac_prog = install &&
5592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5593 # AIX install. It has an incompatible calling convention.
5594 :
5595 elif test $ac_prog = install &&
5596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5597 # program-specific install script used by HP pwplus--don't use.
5598 :
5599 else
0e5943eb
JF
5600 rm -rf conftest.one conftest.two conftest.dir
5601 echo one > conftest.one
5602 echo two > conftest.two
5603 mkdir conftest.dir
5604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5605 test -s conftest.one && test -s conftest.two &&
5606 test -s conftest.dir/conftest.one &&
5607 test -s conftest.dir/conftest.two
5608 then
5609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5610 break 3
5611 fi
da6ee469
JF
5612 fi
5613 fi
5614 done
5615 done
5616 ;;
5617esac
0e5943eb
JF
5618
5619 done
da6ee469
JF
5620IFS=$as_save_IFS
5621
0e5943eb 5622rm -rf conftest.one conftest.two conftest.dir
da6ee469
JF
5623
5624fi
5625 if test "${ac_cv_path_install+set}" = set; then
5626 INSTALL=$ac_cv_path_install
5627 else
5628 # As a last resort, use the slow shell script. Don't cache a
5629 # value for INSTALL within a source directory, because that will
5630 # break other packages using the cache if that directory is
5631 # removed, or if the value is a relative name.
5632 INSTALL=$ac_install_sh
5633 fi
5634fi
0e5943eb
JF
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5636$as_echo "$INSTALL" >&6; }
da6ee469
JF
5637
5638# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5639# It thinks the first close brace ends the variable substitution.
5640test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5641
5642test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5643
5644test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5645
0e5943eb
JF
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5647$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
00ec24d0 5648if test -z "$MKDIR_P"; then
0e5943eb
JF
5649 if test "${ac_cv_path_mkdir+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
00ec24d0
JF
5651else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
0e5943eb 5657 for ac_prog in mkdir gmkdir; do
00ec24d0
JF
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5660 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5661 'mkdir (GNU coreutils) '* | \
5662 'mkdir (coreutils) '* | \
5663 'mkdir (fileutils) '4.1*)
5664 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5665 break 3;;
5666 esac
5667 done
5668 done
0e5943eb 5669 done
00ec24d0
JF
5670IFS=$as_save_IFS
5671
5672fi
5673
0e5943eb 5674 test -d ./--version && rmdir ./--version
00ec24d0
JF
5675 if test "${ac_cv_path_mkdir+set}" = set; then
5676 MKDIR_P="$ac_cv_path_mkdir -p"
da6ee469 5677 else
00ec24d0
JF
5678 # As a last resort, use the slow shell script. Don't cache a
5679 # value for MKDIR_P within a source directory, because that will
5680 # break other packages using the cache if that directory is
5681 # removed, or if the value is a relative name.
00ec24d0 5682 MKDIR_P="$ac_install_sh -d"
da6ee469
JF
5683 fi
5684fi
0e5943eb
JF
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5686$as_echo "$MKDIR_P" >&6; }
00ec24d0
JF
5687
5688mkdir_p="$MKDIR_P"
5689case $mkdir_p in
5690 [\\/$]* | ?:[\\/]*) ;;
5691 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5692esac
da6ee469
JF
5693
5694
0e5943eb
JF
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5696$as_echo_n "checking whether NLS is requested... " >&6; }
da6ee469 5697 # Check whether --enable-nls was given.
0e5943eb 5698if test "${enable_nls+set}" = set; then :
da6ee469
JF
5699 enableval=$enable_nls; USE_NLS=$enableval
5700else
5701 USE_NLS=yes
5702fi
5703
0e5943eb
JF
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5705$as_echo "$USE_NLS" >&6; }
da6ee469
JF
5706
5707
5708
5709
00ec24d0
JF
5710 GETTEXT_MACRO_VERSION=0.17
5711
5712
da6ee469
JF
5713
5714
5715# Prepare PATH_SEPARATOR.
5716# The user is always right.
5717if test "${PATH_SEPARATOR+set}" != set; then
5718 echo "#! /bin/sh" >conf$$.sh
5719 echo "exit 0" >>conf$$.sh
5720 chmod +x conf$$.sh
5721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5722 PATH_SEPARATOR=';'
5723 else
5724 PATH_SEPARATOR=:
5725 fi
5726 rm -f conf$$.sh
5727fi
5728
5729# Find out how to test for executable files. Don't use a zero-byte file,
5730# as systems may use methods other than mode bits to determine executability.
5731cat >conf$$.file <<_ASEOF
5732#! /bin/sh
5733exit 0
5734_ASEOF
5735chmod +x conf$$.file
5736if test -x conf$$.file >/dev/null 2>&1; then
5737 ac_executable_p="test -x"
5738else
5739 ac_executable_p="test -f"
5740fi
5741rm -f conf$$.file
5742
5743# Extract the first word of "msgfmt", so it can be a program name with args.
5744set dummy msgfmt; ac_word=$2
0e5943eb
JF
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746$as_echo_n "checking for $ac_word... " >&6; }
5747if test "${ac_cv_path_MSGFMT+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
da6ee469
JF
5749else
5750 case "$MSGFMT" in
5751 [\\/]* | ?:[\\/]*)
5752 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5753 ;;
5754 *)
5755 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5756 for ac_dir in $PATH; do
5757 IFS="$ac_save_IFS"
5758 test -z "$ac_dir" && ac_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5761 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5762 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5763 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5764 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5765 break 2
5766 fi
5767 fi
5768 done
5769 done
5770 IFS="$ac_save_IFS"
5771 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5772 ;;
5773esac
5774fi
5775MSGFMT="$ac_cv_path_MSGFMT"
5776if test "$MSGFMT" != ":"; then
0e5943eb
JF
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5778$as_echo "$MSGFMT" >&6; }
da6ee469 5779else
0e5943eb
JF
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
da6ee469
JF
5782fi
5783
5784 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5785set dummy gmsgfmt; ac_word=$2
0e5943eb
JF
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
5788if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
da6ee469
JF
5790else
5791 case $GMSGFMT in
5792 [\\/]* | ?:[\\/]*)
5793 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5794 ;;
5795 *)
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
0e5943eb 5801 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469
JF
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
5805 break 2
5806 fi
5807done
0e5943eb 5808 done
da6ee469
JF
5809IFS=$as_save_IFS
5810
5811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5812 ;;
5813esac
5814fi
5815GMSGFMT=$ac_cv_path_GMSGFMT
5816if test -n "$GMSGFMT"; then
0e5943eb
JF
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5818$as_echo "$GMSGFMT" >&6; }
da6ee469 5819else
0e5943eb
JF
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821$as_echo "no" >&6; }
da6ee469
JF
5822fi
5823
5824
5825
5826 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5827 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5828 *) MSGFMT_015=$MSGFMT ;;
5829 esac
5830
5831 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5832 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5833 *) GMSGFMT_015=$GMSGFMT ;;
5834 esac
5835
5836
5837
5838# Prepare PATH_SEPARATOR.
5839# The user is always right.
5840if test "${PATH_SEPARATOR+set}" != set; then
5841 echo "#! /bin/sh" >conf$$.sh
5842 echo "exit 0" >>conf$$.sh
5843 chmod +x conf$$.sh
5844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5845 PATH_SEPARATOR=';'
5846 else
5847 PATH_SEPARATOR=:
5848 fi
5849 rm -f conf$$.sh
5850fi
5851
5852# Find out how to test for executable files. Don't use a zero-byte file,
5853# as systems may use methods other than mode bits to determine executability.
5854cat >conf$$.file <<_ASEOF
5855#! /bin/sh
5856exit 0
5857_ASEOF
5858chmod +x conf$$.file
5859if test -x conf$$.file >/dev/null 2>&1; then
5860 ac_executable_p="test -x"
5861else
5862 ac_executable_p="test -f"
5863fi
5864rm -f conf$$.file
5865
5866# Extract the first word of "xgettext", so it can be a program name with args.
5867set dummy xgettext; ac_word=$2
0e5943eb
JF
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
5870if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
da6ee469
JF
5872else
5873 case "$XGETTEXT" in
5874 [\\/]* | ?:[\\/]*)
5875 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5876 ;;
5877 *)
5878 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5879 for ac_dir in $PATH; do
5880 IFS="$ac_save_IFS"
5881 test -z "$ac_dir" && ac_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5884 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5885 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5886 (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
5887 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5888 break 2
5889 fi
5890 fi
5891 done
5892 done
5893 IFS="$ac_save_IFS"
5894 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5895 ;;
5896esac
5897fi
5898XGETTEXT="$ac_cv_path_XGETTEXT"
5899if test "$XGETTEXT" != ":"; then
0e5943eb
JF
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5901$as_echo "$XGETTEXT" >&6; }
da6ee469 5902else
0e5943eb
JF
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
da6ee469
JF
5905fi
5906
5907 rm -f messages.po
5908
5909 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5910 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5911 *) XGETTEXT_015=$XGETTEXT ;;
5912 esac
5913
5914
5915
5916# Prepare PATH_SEPARATOR.
5917# The user is always right.
5918if test "${PATH_SEPARATOR+set}" != set; then
5919 echo "#! /bin/sh" >conf$$.sh
5920 echo "exit 0" >>conf$$.sh
5921 chmod +x conf$$.sh
5922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5923 PATH_SEPARATOR=';'
5924 else
5925 PATH_SEPARATOR=:
5926 fi
5927 rm -f conf$$.sh
5928fi
5929
5930# Find out how to test for executable files. Don't use a zero-byte file,
5931# as systems may use methods other than mode bits to determine executability.
5932cat >conf$$.file <<_ASEOF
5933#! /bin/sh
5934exit 0
5935_ASEOF
5936chmod +x conf$$.file
5937if test -x conf$$.file >/dev/null 2>&1; then
5938 ac_executable_p="test -x"
5939else
5940 ac_executable_p="test -f"
5941fi
5942rm -f conf$$.file
5943
5944# Extract the first word of "msgmerge", so it can be a program name with args.
5945set dummy msgmerge; ac_word=$2
0e5943eb
JF
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
da6ee469
JF
5950else
5951 case "$MSGMERGE" in
5952 [\\/]* | ?:[\\/]*)
5953 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5954 ;;
5955 *)
5956 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5957 for ac_dir in $PATH; do
5958 IFS="$ac_save_IFS"
5959 test -z "$ac_dir" && ac_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5962 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5963 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5964 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5965 break 2
5966 fi
5967 fi
5968 done
5969 done
5970 IFS="$ac_save_IFS"
5971 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5972 ;;
5973esac
5974fi
5975MSGMERGE="$ac_cv_path_MSGMERGE"
5976if test "$MSGMERGE" != ":"; then
0e5943eb
JF
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5978$as_echo "$MSGMERGE" >&6; }
da6ee469 5979else
0e5943eb
JF
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981$as_echo "no" >&6; }
da6ee469
JF
5982fi
5983
5984
5985 test -n "$localedir" || localedir='${datadir}/locale'
5986
5987
00ec24d0
JF
5988 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5989
5990
da6ee469
JF
5991 ac_config_commands="$ac_config_commands po-directories"
5992
5993
5994
5995 if test "X$prefix" = "XNONE"; then
5996 acl_final_prefix="$ac_default_prefix"
5997 else
5998 acl_final_prefix="$prefix"
5999 fi
6000 if test "X$exec_prefix" = "XNONE"; then
6001 acl_final_exec_prefix='${prefix}'
6002 else
6003 acl_final_exec_prefix="$exec_prefix"
6004 fi
6005 acl_save_prefix="$prefix"
6006 prefix="$acl_final_prefix"
6007 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6008 prefix="$acl_save_prefix"
6009
6010
6011# Check whether --with-gnu-ld was given.
0e5943eb 6012if test "${with_gnu_ld+set}" = set; then :
da6ee469
JF
6013 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6014else
6015 with_gnu_ld=no
6016fi
6017
6018# Prepare PATH_SEPARATOR.
6019# The user is always right.
6020if test "${PATH_SEPARATOR+set}" != set; then
6021 echo "#! /bin/sh" >conf$$.sh
6022 echo "exit 0" >>conf$$.sh
6023 chmod +x conf$$.sh
6024 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6025 PATH_SEPARATOR=';'
6026 else
6027 PATH_SEPARATOR=:
6028 fi
6029 rm -f conf$$.sh
6030fi
6031ac_prog=ld
6032if test "$GCC" = yes; then
6033 # Check if gcc -print-prog-name=ld gives a path.
0e5943eb
JF
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6035$as_echo_n "checking for ld used by GCC... " >&6; }
da6ee469
JF
6036 case $host in
6037 *-*-mingw*)
6038 # gcc leaves a trailing carriage return which upsets mingw
6039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6040 *)
6041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6042 esac
6043 case $ac_prog in
6044 # Accept absolute paths.
6045 [\\/]* | [A-Za-z]:[\\/]*)
6046 re_direlt='/[^/][^/]*/\.\./'
6047 # Canonicalize the path of ld
6048 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6049 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6050 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6051 done
6052 test -z "$LD" && LD="$ac_prog"
6053 ;;
6054 "")
6055 # If it fails, then pretend we aren't using GCC.
6056 ac_prog=ld
6057 ;;
6058 *)
6059 # If it is relative, then search for the first ld in PATH.
6060 with_gnu_ld=unknown
6061 ;;
6062 esac
6063elif test "$with_gnu_ld" = yes; then
0e5943eb
JF
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6065$as_echo_n "checking for GNU ld... " >&6; }
da6ee469 6066else
0e5943eb
JF
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6068$as_echo_n "checking for non-GNU ld... " >&6; }
da6ee469 6069fi
0e5943eb
JF
6070if test "${acl_cv_path_LD+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
da6ee469
JF
6072else
6073 if test -z "$LD"; then
6074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6075 for ac_dir in $PATH; do
6076 test -z "$ac_dir" && ac_dir=.
6077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6078 acl_cv_path_LD="$ac_dir/$ac_prog"
6079 # Check to see if the program is GNU ld. I'd rather use --version,
6080 # but apparently some GNU ld's only accept -v.
6081 # Break only if it was the GNU/non-GNU ld that we prefer.
6082 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6083 *GNU* | *'with BFD'*)
6084 test "$with_gnu_ld" != no && break ;;
6085 *)
6086 test "$with_gnu_ld" != yes && break ;;
6087 esac
6088 fi
6089 done
6090 IFS="$ac_save_ifs"
6091else
6092 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6093fi
6094fi
6095
6096LD="$acl_cv_path_LD"
6097if test -n "$LD"; then
0e5943eb
JF
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6099$as_echo "$LD" >&6; }
da6ee469 6100else
0e5943eb
JF
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
da6ee469 6103fi
0e5943eb
JF
6104test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6106$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6107if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
da6ee469
JF
6109else
6110 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6111case `$LD -v 2>&1 </dev/null` in
6112*GNU* | *'with BFD'*)
6113 acl_cv_prog_gnu_ld=yes ;;
6114*)
6115 acl_cv_prog_gnu_ld=no ;;
6116esac
6117fi
0e5943eb
JF
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6119$as_echo "$acl_cv_prog_gnu_ld" >&6; }
da6ee469
JF
6120with_gnu_ld=$acl_cv_prog_gnu_ld
6121
6122
6123
6124
0e5943eb
JF
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6126$as_echo_n "checking for shared library run path origin... " >&6; }
6127if test "${acl_cv_rpath+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
da6ee469
JF
6129else
6130
6131 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6132 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6133 . ./conftest.sh
6134 rm -f ./conftest.sh
6135 acl_cv_rpath=done
6136
6137fi
0e5943eb
JF
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6139$as_echo "$acl_cv_rpath" >&6; }
da6ee469 6140 wl="$acl_cv_wl"
00ec24d0
JF
6141 acl_libext="$acl_cv_libext"
6142 acl_shlibext="$acl_cv_shlibext"
6143 acl_libname_spec="$acl_cv_libname_spec"
6144 acl_library_names_spec="$acl_cv_library_names_spec"
6145 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6146 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6147 acl_hardcode_direct="$acl_cv_hardcode_direct"
6148 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
da6ee469 6149 # Check whether --enable-rpath was given.
0e5943eb 6150if test "${enable_rpath+set}" = set; then :
da6ee469
JF
6151 enableval=$enable_rpath; :
6152else
6153 enable_rpath=yes
6154fi
6155
6156
6157
6158 acl_libdirstem=lib
6159 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6160 if test -n "$searchpath"; then
6161 acl_save_IFS="${IFS= }"; IFS=":"
6162 for searchdir in $searchpath; do
6163 if test -d "$searchdir"; then
6164 case "$searchdir" in
6165 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6166 *) searchdir=`cd "$searchdir" && pwd`
6167 case "$searchdir" in
6168 */lib64 ) acl_libdirstem=lib64 ;;
6169 esac ;;
6170 esac
6171 fi
6172 done
6173 IFS="$acl_save_IFS"
6174 fi
6175
6176
6177
6178
6179
6180
6181
6182
00ec24d0 6183
da6ee469
JF
6184 use_additional=yes
6185
6186 acl_save_prefix="$prefix"
6187 prefix="$acl_final_prefix"
6188 acl_save_exec_prefix="$exec_prefix"
6189 exec_prefix="$acl_final_exec_prefix"
6190
6191 eval additional_includedir=\"$includedir\"
6192 eval additional_libdir=\"$libdir\"
6193
6194 exec_prefix="$acl_save_exec_prefix"
6195 prefix="$acl_save_prefix"
6196
6197
6198# Check whether --with-libiconv-prefix was given.
0e5943eb 6199if test "${with_libiconv_prefix+set}" = set; then :
da6ee469
JF
6200 withval=$with_libiconv_prefix;
6201 if test "X$withval" = "Xno"; then
6202 use_additional=no
6203 else
6204 if test "X$withval" = "X"; then
6205
6206 acl_save_prefix="$prefix"
6207 prefix="$acl_final_prefix"
6208 acl_save_exec_prefix="$exec_prefix"
6209 exec_prefix="$acl_final_exec_prefix"
6210
6211 eval additional_includedir=\"$includedir\"
6212 eval additional_libdir=\"$libdir\"
6213
6214 exec_prefix="$acl_save_exec_prefix"
6215 prefix="$acl_save_prefix"
6216
6217 else
6218 additional_includedir="$withval/include"
6219 additional_libdir="$withval/$acl_libdirstem"
6220 fi
6221 fi
6222
6223fi
6224
6225 LIBICONV=
6226 LTLIBICONV=
6227 INCICONV=
00ec24d0 6228 LIBICONV_PREFIX=
da6ee469
JF
6229 rpathdirs=
6230 ltrpathdirs=
6231 names_already_handled=
6232 names_next_round='iconv '
6233 while test -n "$names_next_round"; do
6234 names_this_round="$names_next_round"
6235 names_next_round=
6236 for name in $names_this_round; do
6237 already_handled=
6238 for n in $names_already_handled; do
6239 if test "$n" = "$name"; then
6240 already_handled=yes
6241 break
6242 fi
6243 done
6244 if test -z "$already_handled"; then
6245 names_already_handled="$names_already_handled $name"
6246 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6247 eval value=\"\$HAVE_LIB$uppername\"
6248 if test -n "$value"; then
6249 if test "$value" = yes; then
6250 eval value=\"\$LIB$uppername\"
6251 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6252 eval value=\"\$LTLIB$uppername\"
6253 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6254 else
6255 :
6256 fi
6257 else
6258 found_dir=
6259 found_la=
6260 found_so=
6261 found_a=
00ec24d0
JF
6262 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6263 if test -n "$acl_shlibext"; then
6264 shrext=".$acl_shlibext" # typically: shrext=.so
6265 else
6266 shrext=
6267 fi
da6ee469 6268 if test $use_additional = yes; then
00ec24d0
JF
6269 dir="$additional_libdir"
6270 if test -n "$acl_shlibext"; then
6271 if test -f "$dir/$libname$shrext"; then
6272 found_dir="$dir"
6273 found_so="$dir/$libname$shrext"
6274 else
6275 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6276 ver=`(cd "$dir" && \
6277 for f in "$libname$shrext".*; do echo "$f"; done \
6278 | sed -e "s,^$libname$shrext\\\\.,," \
6279 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6280 | sed 1q ) 2>/dev/null`
6281 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6282 found_dir="$dir"
6283 found_so="$dir/$libname$shrext.$ver"
6284 fi
6285 else
6286 eval library_names=\"$acl_library_names_spec\"
6287 for f in $library_names; do
6288 if test -f "$dir/$f"; then
6289 found_dir="$dir"
6290 found_so="$dir/$f"
6291 break
6292 fi
6293 done
da6ee469
JF
6294 fi
6295 fi
00ec24d0
JF
6296 fi
6297 if test "X$found_dir" = "X"; then
6298 if test -f "$dir/$libname.$acl_libext"; then
6299 found_dir="$dir"
6300 found_a="$dir/$libname.$acl_libext"
6301 fi
6302 fi
6303 if test "X$found_dir" != "X"; then
6304 if test -f "$dir/$libname.la"; then
6305 found_la="$dir/$libname.la"
6306 fi
da6ee469
JF
6307 fi
6308 fi
6309 if test "X$found_dir" = "X"; then
6310 for x in $LDFLAGS $LTLIBICONV; do
6311
6312 acl_save_prefix="$prefix"
6313 prefix="$acl_final_prefix"
6314 acl_save_exec_prefix="$exec_prefix"
6315 exec_prefix="$acl_final_exec_prefix"
6316 eval x=\"$x\"
6317 exec_prefix="$acl_save_exec_prefix"
6318 prefix="$acl_save_prefix"
6319
6320 case "$x" in
6321 -L*)
6322 dir=`echo "X$x" | sed -e 's/^X-L//'`
00ec24d0
JF
6323 if test -n "$acl_shlibext"; then
6324 if test -f "$dir/$libname$shrext"; then
da6ee469 6325 found_dir="$dir"
00ec24d0
JF
6326 found_so="$dir/$libname$shrext"
6327 else
6328 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6329 ver=`(cd "$dir" && \
6330 for f in "$libname$shrext".*; do echo "$f"; done \
6331 | sed -e "s,^$libname$shrext\\\\.,," \
6332 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6333 | sed 1q ) 2>/dev/null`
6334 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6335 found_dir="$dir"
6336 found_so="$dir/$libname$shrext.$ver"
6337 fi
6338 else
6339 eval library_names=\"$acl_library_names_spec\"
6340 for f in $library_names; do
6341 if test -f "$dir/$f"; then
6342 found_dir="$dir"
6343 found_so="$dir/$f"
6344 break
6345 fi
6346 done
da6ee469
JF
6347 fi
6348 fi
00ec24d0
JF
6349 fi
6350 if test "X$found_dir" = "X"; then
6351 if test -f "$dir/$libname.$acl_libext"; then
6352 found_dir="$dir"
6353 found_a="$dir/$libname.$acl_libext"
6354 fi
6355 fi
6356 if test "X$found_dir" != "X"; then
6357 if test -f "$dir/$libname.la"; then
6358 found_la="$dir/$libname.la"
6359 fi
da6ee469
JF
6360 fi
6361 ;;
6362 esac
6363 if test "X$found_dir" != "X"; then
6364 break
6365 fi
6366 done
6367 fi
6368 if test "X$found_dir" != "X"; then
6369 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6370 if test "X$found_so" != "X"; then
6371 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6373 else
6374 haveit=
6375 for x in $ltrpathdirs; do
6376 if test "X$x" = "X$found_dir"; then
6377 haveit=yes
6378 break
6379 fi
6380 done
6381 if test -z "$haveit"; then
6382 ltrpathdirs="$ltrpathdirs $found_dir"
6383 fi
00ec24d0 6384 if test "$acl_hardcode_direct" = yes; then
da6ee469
JF
6385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6386 else
00ec24d0 6387 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
da6ee469
JF
6388 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6389 haveit=
6390 for x in $rpathdirs; do
6391 if test "X$x" = "X$found_dir"; then
6392 haveit=yes
6393 break
6394 fi
6395 done
6396 if test -z "$haveit"; then
6397 rpathdirs="$rpathdirs $found_dir"
6398 fi
6399 else
6400 haveit=
6401 for x in $LDFLAGS $LIBICONV; do
6402
6403 acl_save_prefix="$prefix"
6404 prefix="$acl_final_prefix"
6405 acl_save_exec_prefix="$exec_prefix"
6406 exec_prefix="$acl_final_exec_prefix"
6407 eval x=\"$x\"
6408 exec_prefix="$acl_save_exec_prefix"
6409 prefix="$acl_save_prefix"
6410
6411 if test "X$x" = "X-L$found_dir"; then
6412 haveit=yes
6413 break
6414 fi
6415 done
6416 if test -z "$haveit"; then
6417 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6418 fi
00ec24d0 6419 if test "$acl_hardcode_minus_L" != no; then
da6ee469
JF
6420 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6421 else
6422 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6423 fi
6424 fi
6425 fi
6426 fi
6427 else
6428 if test "X$found_a" != "X"; then
6429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6430 else
6431 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6432 fi
6433 fi
6434 additional_includedir=
6435 case "$found_dir" in
6436 */$acl_libdirstem | */$acl_libdirstem/)
6437 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
00ec24d0 6438 LIBICONV_PREFIX="$basedir"
da6ee469
JF
6439 additional_includedir="$basedir/include"
6440 ;;
6441 esac
6442 if test "X$additional_includedir" != "X"; then
6443 if test "X$additional_includedir" != "X/usr/include"; then
6444 haveit=
6445 if test "X$additional_includedir" = "X/usr/local/include"; then
6446 if test -n "$GCC"; then
6447 case $host_os in
6448 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6449 esac
6450 fi
6451 fi
6452 if test -z "$haveit"; then
6453 for x in $CPPFLAGS $INCICONV; do
6454
6455 acl_save_prefix="$prefix"
6456 prefix="$acl_final_prefix"
6457 acl_save_exec_prefix="$exec_prefix"
6458 exec_prefix="$acl_final_exec_prefix"
6459 eval x=\"$x\"
6460 exec_prefix="$acl_save_exec_prefix"
6461 prefix="$acl_save_prefix"
6462
6463 if test "X$x" = "X-I$additional_includedir"; then
6464 haveit=yes
6465 break
6466 fi
6467 done
6468 if test -z "$haveit"; then
6469 if test -d "$additional_includedir"; then
6470 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6471 fi
6472 fi
6473 fi
6474 fi
6475 fi
6476 if test -n "$found_la"; then
6477 save_libdir="$libdir"
6478 case "$found_la" in
6479 */* | *\\*) . "$found_la" ;;
6480 *) . "./$found_la" ;;
6481 esac
6482 libdir="$save_libdir"
6483 for dep in $dependency_libs; do
6484 case "$dep" in
6485 -L*)
6486 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6487 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6488 haveit=
6489 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6490 if test -n "$GCC"; then
6491 case $host_os in
6492 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6493 esac
6494 fi
6495 fi
6496 if test -z "$haveit"; then
6497 haveit=
6498 for x in $LDFLAGS $LIBICONV; do
6499
6500 acl_save_prefix="$prefix"
6501 prefix="$acl_final_prefix"
6502 acl_save_exec_prefix="$exec_prefix"
6503 exec_prefix="$acl_final_exec_prefix"
6504 eval x=\"$x\"
6505 exec_prefix="$acl_save_exec_prefix"
6506 prefix="$acl_save_prefix"
6507
6508 if test "X$x" = "X-L$additional_libdir"; then
6509 haveit=yes
6510 break
6511 fi
6512 done
6513 if test -z "$haveit"; then
6514 if test -d "$additional_libdir"; then
6515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6516 fi
6517 fi
6518 haveit=
6519 for x in $LDFLAGS $LTLIBICONV; do
6520
6521 acl_save_prefix="$prefix"
6522 prefix="$acl_final_prefix"
6523 acl_save_exec_prefix="$exec_prefix"
6524 exec_prefix="$acl_final_exec_prefix"
6525 eval x=\"$x\"
6526 exec_prefix="$acl_save_exec_prefix"
6527 prefix="$acl_save_prefix"
6528
6529 if test "X$x" = "X-L$additional_libdir"; then
6530 haveit=yes
6531 break
6532 fi
6533 done
6534 if test -z "$haveit"; then
6535 if test -d "$additional_libdir"; then
6536 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6537 fi
6538 fi
6539 fi
6540 fi
6541 ;;
6542 -R*)
6543 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6544 if test "$enable_rpath" != no; then
6545 haveit=
6546 for x in $rpathdirs; do
6547 if test "X$x" = "X$dir"; then
6548 haveit=yes
6549 break
6550 fi
6551 done
6552 if test -z "$haveit"; then
6553 rpathdirs="$rpathdirs $dir"
6554 fi
6555 haveit=
6556 for x in $ltrpathdirs; do
6557 if test "X$x" = "X$dir"; then
6558 haveit=yes
6559 break
6560 fi
6561 done
6562 if test -z "$haveit"; then
6563 ltrpathdirs="$ltrpathdirs $dir"
6564 fi
6565 fi
6566 ;;
6567 -l*)
6568 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6569 ;;
6570 *.la)
6571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6572 ;;
6573 *)
6574 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6576 ;;
6577 esac
6578 done
6579 fi
6580 else
6581 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6583 fi
6584 fi
6585 fi
6586 done
6587 done
6588 if test "X$rpathdirs" != "X"; then
00ec24d0 6589 if test -n "$acl_hardcode_libdir_separator"; then
da6ee469
JF
6590 alldirs=
6591 for found_dir in $rpathdirs; do
00ec24d0 6592 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
da6ee469
JF
6593 done
6594 acl_save_libdir="$libdir"
6595 libdir="$alldirs"
00ec24d0 6596 eval flag=\"$acl_hardcode_libdir_flag_spec\"
da6ee469
JF
6597 libdir="$acl_save_libdir"
6598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6599 else
6600 for found_dir in $rpathdirs; do
6601 acl_save_libdir="$libdir"
6602 libdir="$found_dir"
00ec24d0 6603 eval flag=\"$acl_hardcode_libdir_flag_spec\"
da6ee469
JF
6604 libdir="$acl_save_libdir"
6605 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6606 done
6607 fi
6608 fi
6609 if test "X$ltrpathdirs" != "X"; then
6610 for found_dir in $ltrpathdirs; do
6611 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6612 done
6613 fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
00ec24d0
JF
6627
6628
6629
6630
6631
6632
6633
da6ee469
JF
6634
6635
6636
6637
6638
0e5943eb
JF
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6640$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6641if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
da6ee469
JF
6643else
6644 gt_save_LIBS="$LIBS"
6645 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
0e5943eb 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
6647/* end confdefs.h. */
6648#include <CoreFoundation/CFPreferences.h>
6649int
6650main ()
6651{
6652CFPreferencesCopyAppValue(NULL, NULL)
6653 ;
6654 return 0;
6655}
6656_ACEOF
0e5943eb 6657if ac_fn_c_try_link "$LINENO"; then :
da6ee469
JF
6658 gt_cv_func_CFPreferencesCopyAppValue=yes
6659else
0e5943eb 6660 gt_cv_func_CFPreferencesCopyAppValue=no
da6ee469 6661fi
0e5943eb
JF
6662rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
da6ee469
JF
6664 LIBS="$gt_save_LIBS"
6665fi
0e5943eb
JF
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6667$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
da6ee469
JF
6668 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6669
0e5943eb 6670$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
da6ee469
JF
6671
6672 fi
0e5943eb
JF
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6674$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6675if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
da6ee469
JF
6677else
6678 gt_save_LIBS="$LIBS"
6679 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
0e5943eb 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
6681/* end confdefs.h. */
6682#include <CoreFoundation/CFLocale.h>
6683int
6684main ()
6685{
6686CFLocaleCopyCurrent();
6687 ;
6688 return 0;
6689}
6690_ACEOF
0e5943eb 6691if ac_fn_c_try_link "$LINENO"; then :
da6ee469
JF
6692 gt_cv_func_CFLocaleCopyCurrent=yes
6693else
0e5943eb 6694 gt_cv_func_CFLocaleCopyCurrent=no
da6ee469 6695fi
0e5943eb
JF
6696rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
da6ee469
JF
6698 LIBS="$gt_save_LIBS"
6699fi
0e5943eb
JF
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6701$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
da6ee469
JF
6702 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6703
0e5943eb 6704$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
da6ee469
JF
6705
6706 fi
6707 INTL_MACOSX_LIBS=
6708 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6709 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6710 fi
6711
6712
6713
6714
6715
6716
6717 LIBINTL=
6718 LTLIBINTL=
6719 POSUB=
6720
00ec24d0
JF
6721 case " $gt_needs " in
6722 *" need-formatstring-macros "*) gt_api_version=3 ;;
6723 *" need-ngettext "*) gt_api_version=2 ;;
6724 *) gt_api_version=1 ;;
6725 esac
6726 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6727 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6728
da6ee469
JF
6729 if test "$USE_NLS" = "yes"; then
6730 gt_use_preinstalled_gnugettext=no
6731
6732
00ec24d0
JF
6733 if test $gt_api_version -ge 3; then
6734 gt_revision_test_code='
6735#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6736#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6737#endif
6738typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6739'
6740 else
6741 gt_revision_test_code=
6742 fi
6743 if test $gt_api_version -ge 2; then
6744 gt_expression_test_code=' + * ngettext ("", "", 0)'
6745 else
6746 gt_expression_test_code=
6747 fi
da6ee469 6748
0e5943eb
JF
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6750$as_echo_n "checking for GNU gettext in libc... " >&6; }
6751if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
6752 $as_echo_n "(cached) " >&6
da6ee469 6753else
0e5943eb 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
6755/* end confdefs.h. */
6756#include <libintl.h>
00ec24d0 6757$gt_revision_test_code
da6ee469
JF
6758extern int _nl_msg_cat_cntr;
6759extern int *_nl_domain_bindings;
6760int
6761main ()
6762{
6763bindtextdomain ("", "");
00ec24d0 6764return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
da6ee469
JF
6765 ;
6766 return 0;
6767}
6768_ACEOF
0e5943eb 6769if ac_fn_c_try_link "$LINENO"; then :
00ec24d0 6770 eval "$gt_func_gnugettext_libc=yes"
da6ee469 6771else
0e5943eb 6772 eval "$gt_func_gnugettext_libc=no"
da6ee469 6773fi
0e5943eb
JF
6774rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
da6ee469 6776fi
0e5943eb
JF
6777eval ac_res=\$$gt_func_gnugettext_libc
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779$as_echo "$ac_res" >&6; }
da6ee469 6780
00ec24d0 6781 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
da6ee469
JF
6782
6783
6784
6785
6786
6787 am_save_CPPFLAGS="$CPPFLAGS"
6788
6789 for element in $INCICONV; do
6790 haveit=
6791 for x in $CPPFLAGS; do
6792
6793 acl_save_prefix="$prefix"
6794 prefix="$acl_final_prefix"
6795 acl_save_exec_prefix="$exec_prefix"
6796 exec_prefix="$acl_final_exec_prefix"
6797 eval x=\"$x\"
6798 exec_prefix="$acl_save_exec_prefix"
6799 prefix="$acl_save_prefix"
6800
6801 if test "X$x" = "X$element"; then
6802 haveit=yes
6803 break
6804 fi
6805 done
6806 if test -z "$haveit"; then
6807 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6808 fi
6809 done
6810
6811
0e5943eb
JF
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6813$as_echo_n "checking for iconv... " >&6; }
6814if test "${am_cv_func_iconv+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
da6ee469
JF
6816else
6817
6818 am_cv_func_iconv="no, consider installing GNU libiconv"
6819 am_cv_lib_iconv=no
0e5943eb 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
6821/* end confdefs.h. */
6822#include <stdlib.h>
6823#include <iconv.h>
6824int
6825main ()
6826{
6827iconv_t cd = iconv_open("","");
6828 iconv(cd,NULL,NULL,NULL,NULL);
6829 iconv_close(cd);
6830 ;
6831 return 0;
6832}
6833_ACEOF
0e5943eb 6834if ac_fn_c_try_link "$LINENO"; then :
da6ee469 6835 am_cv_func_iconv=yes
da6ee469 6836fi
0e5943eb
JF
6837rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
da6ee469
JF
6839 if test "$am_cv_func_iconv" != yes; then
6840 am_save_LIBS="$LIBS"
6841 LIBS="$LIBS $LIBICONV"
0e5943eb 6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
6843/* end confdefs.h. */
6844#include <stdlib.h>
6845#include <iconv.h>
6846int
6847main ()
6848{
6849iconv_t cd = iconv_open("","");
6850 iconv(cd,NULL,NULL,NULL,NULL);
6851 iconv_close(cd);
6852 ;
6853 return 0;
6854}
6855_ACEOF
0e5943eb 6856if ac_fn_c_try_link "$LINENO"; then :
da6ee469
JF
6857 am_cv_lib_iconv=yes
6858 am_cv_func_iconv=yes
da6ee469 6859fi
0e5943eb
JF
6860rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
da6ee469
JF
6862 LIBS="$am_save_LIBS"
6863 fi
6864
6865fi
0e5943eb
JF
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6867$as_echo "$am_cv_func_iconv" >&6; }
da6ee469 6868 if test "$am_cv_func_iconv" = yes; then
0e5943eb
JF
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6870$as_echo_n "checking for working iconv... " >&6; }
6871if test "${am_cv_func_iconv_works+set}" = set; then :
6872 $as_echo_n "(cached) " >&6
00ec24d0
JF
6873else
6874
6875 am_save_LIBS="$LIBS"
6876 if test $am_cv_lib_iconv = yes; then
6877 LIBS="$LIBS $LIBICONV"
6878 fi
0e5943eb 6879 if test "$cross_compiling" = yes; then :
00ec24d0
JF
6880 case "$host_os" in
6881 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6882 *) am_cv_func_iconv_works="guessing yes" ;;
6883 esac
6884else
0e5943eb 6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00ec24d0
JF
6886/* end confdefs.h. */
6887
6888#include <iconv.h>
6889#include <string.h>
6890int main ()
6891{
6892 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6893 returns. */
6894 {
6895 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6896 if (cd_utf8_to_88591 != (iconv_t)(-1))
6897 {
6898 static const char input[] = "\342\202\254"; /* EURO SIGN */
6899 char buf[10];
6900 const char *inptr = input;
6901 size_t inbytesleft = strlen (input);
6902 char *outptr = buf;
6903 size_t outbytesleft = sizeof (buf);
6904 size_t res = iconv (cd_utf8_to_88591,
6905 (char **) &inptr, &inbytesleft,
6906 &outptr, &outbytesleft);
6907 if (res == 0)
6908 return 1;
6909 }
6910 }
6911#if 0 /* This bug could be worked around by the caller. */
6912 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6913 {
6914 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6915 if (cd_88591_to_utf8 != (iconv_t)(-1))
6916 {
6917 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6918 char buf[50];
6919 const char *inptr = input;
6920 size_t inbytesleft = strlen (input);
6921 char *outptr = buf;
6922 size_t outbytesleft = sizeof (buf);
6923 size_t res = iconv (cd_88591_to_utf8,
6924 (char **) &inptr, &inbytesleft,
6925 &outptr, &outbytesleft);
6926 if ((int)res > 0)
6927 return 1;
6928 }
6929 }
6930#endif
6931 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6932 provided. */
6933 if (/* Try standardized names. */
6934 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6935 /* Try IRIX, OSF/1 names. */
6936 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6937 /* Try AIX names. */
6938 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6939 /* Try HP-UX names. */
6940 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6941 return 1;
6942 return 0;
6943}
6944_ACEOF
0e5943eb 6945if ac_fn_c_try_run "$LINENO"; then :
00ec24d0
JF
6946 am_cv_func_iconv_works=yes
6947else
0e5943eb 6948 am_cv_func_iconv_works=no
00ec24d0 6949fi
0e5943eb
JF
6950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6951 conftest.$ac_objext conftest.beam conftest.$ac_ext
00ec24d0
JF
6952fi
6953
00ec24d0
JF
6954 LIBS="$am_save_LIBS"
6955
6956fi
0e5943eb
JF
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6958$as_echo "$am_cv_func_iconv_works" >&6; }
00ec24d0
JF
6959 case "$am_cv_func_iconv_works" in
6960 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6961 *) am_func_iconv=yes ;;
6962 esac
6963 else
6964 am_func_iconv=no am_cv_lib_iconv=no
6965 fi
6966 if test "$am_func_iconv" = yes; then
da6ee469 6967
0e5943eb 6968$as_echo "#define HAVE_ICONV 1" >>confdefs.h
da6ee469
JF
6969
6970 fi
6971 if test "$am_cv_lib_iconv" = yes; then
0e5943eb
JF
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6973$as_echo_n "checking how to link with libiconv... " >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6975$as_echo "$LIBICONV" >&6; }
da6ee469
JF
6976 else
6977 CPPFLAGS="$am_save_CPPFLAGS"
6978 LIBICONV=
6979 LTLIBICONV=
6980 fi
6981
6982
6983
6984
6985
6986
6987
00ec24d0 6988
da6ee469
JF
6989 use_additional=yes
6990
6991 acl_save_prefix="$prefix"
6992 prefix="$acl_final_prefix"
6993 acl_save_exec_prefix="$exec_prefix"
6994 exec_prefix="$acl_final_exec_prefix"
6995
6996 eval additional_includedir=\"$includedir\"
6997 eval additional_libdir=\"$libdir\"
6998
6999 exec_prefix="$acl_save_exec_prefix"
7000 prefix="$acl_save_prefix"
7001
7002
7003# Check whether --with-libintl-prefix was given.
0e5943eb 7004if test "${with_libintl_prefix+set}" = set; then :
da6ee469
JF
7005 withval=$with_libintl_prefix;
7006 if test "X$withval" = "Xno"; then
7007 use_additional=no
7008 else
7009 if test "X$withval" = "X"; then
7010
7011 acl_save_prefix="$prefix"
7012 prefix="$acl_final_prefix"
7013 acl_save_exec_prefix="$exec_prefix"
7014 exec_prefix="$acl_final_exec_prefix"
7015
7016 eval additional_includedir=\"$includedir\"
7017 eval additional_libdir=\"$libdir\"
7018
7019 exec_prefix="$acl_save_exec_prefix"
7020 prefix="$acl_save_prefix"
7021
7022 else
7023 additional_includedir="$withval/include"
7024 additional_libdir="$withval/$acl_libdirstem"
7025 fi
7026 fi
7027
7028fi
7029
7030 LIBINTL=
7031 LTLIBINTL=
7032 INCINTL=
00ec24d0 7033 LIBINTL_PREFIX=
da6ee469
JF
7034 rpathdirs=
7035 ltrpathdirs=
7036 names_already_handled=
7037 names_next_round='intl '
7038 while test -n "$names_next_round"; do
7039 names_this_round="$names_next_round"
7040 names_next_round=
7041 for name in $names_this_round; do
7042 already_handled=
7043 for n in $names_already_handled; do
7044 if test "$n" = "$name"; then
7045 already_handled=yes
7046 break
7047 fi
7048 done
7049 if test -z "$already_handled"; then
7050 names_already_handled="$names_already_handled $name"
7051 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7052 eval value=\"\$HAVE_LIB$uppername\"
7053 if test -n "$value"; then
7054 if test "$value" = yes; then
7055 eval value=\"\$LIB$uppername\"
7056 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7057 eval value=\"\$LTLIB$uppername\"
7058 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7059 else
7060 :
7061 fi
7062 else
7063 found_dir=
7064 found_la=
7065 found_so=
7066 found_a=
00ec24d0
JF
7067 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7068 if test -n "$acl_shlibext"; then
7069 shrext=".$acl_shlibext" # typically: shrext=.so
7070 else
7071 shrext=
7072 fi
da6ee469 7073 if test $use_additional = yes; then
00ec24d0
JF
7074 dir="$additional_libdir"
7075 if test -n "$acl_shlibext"; then
7076 if test -f "$dir/$libname$shrext"; then
7077 found_dir="$dir"
7078 found_so="$dir/$libname$shrext"
7079 else
7080 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7081 ver=`(cd "$dir" && \
7082 for f in "$libname$shrext".*; do echo "$f"; done \
7083 | sed -e "s,^$libname$shrext\\\\.,," \
7084 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7085 | sed 1q ) 2>/dev/null`
7086 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7087 found_dir="$dir"
7088 found_so="$dir/$libname$shrext.$ver"
7089 fi
7090 else
7091 eval library_names=\"$acl_library_names_spec\"
7092 for f in $library_names; do
7093 if test -f "$dir/$f"; then
7094 found_dir="$dir"
7095 found_so="$dir/$f"
7096 break
7097 fi
7098 done
da6ee469
JF
7099 fi
7100 fi
00ec24d0
JF
7101 fi
7102 if test "X$found_dir" = "X"; then
7103 if test -f "$dir/$libname.$acl_libext"; then
7104 found_dir="$dir"
7105 found_a="$dir/$libname.$acl_libext"
7106 fi
7107 fi
7108 if test "X$found_dir" != "X"; then
7109 if test -f "$dir/$libname.la"; then
7110 found_la="$dir/$libname.la"
7111 fi
da6ee469
JF
7112 fi
7113 fi
7114 if test "X$found_dir" = "X"; then
7115 for x in $LDFLAGS $LTLIBINTL; do
7116
7117 acl_save_prefix="$prefix"
7118 prefix="$acl_final_prefix"
7119 acl_save_exec_prefix="$exec_prefix"
7120 exec_prefix="$acl_final_exec_prefix"
7121 eval x=\"$x\"
7122 exec_prefix="$acl_save_exec_prefix"
7123 prefix="$acl_save_prefix"
7124
7125 case "$x" in
7126 -L*)
7127 dir=`echo "X$x" | sed -e 's/^X-L//'`
00ec24d0
JF
7128 if test -n "$acl_shlibext"; then
7129 if test -f "$dir/$libname$shrext"; then
da6ee469 7130 found_dir="$dir"
00ec24d0
JF
7131 found_so="$dir/$libname$shrext"
7132 else
7133 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7134 ver=`(cd "$dir" && \
7135 for f in "$libname$shrext".*; do echo "$f"; done \
7136 | sed -e "s,^$libname$shrext\\\\.,," \
7137 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7138 | sed 1q ) 2>/dev/null`
7139 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7140 found_dir="$dir"
7141 found_so="$dir/$libname$shrext.$ver"
7142 fi
7143 else
7144 eval library_names=\"$acl_library_names_spec\"
7145 for f in $library_names; do
7146 if test -f "$dir/$f"; then
7147 found_dir="$dir"
7148 found_so="$dir/$f"
7149 break
7150 fi
7151 done
da6ee469
JF
7152 fi
7153 fi
00ec24d0
JF
7154 fi
7155 if test "X$found_dir" = "X"; then
7156 if test -f "$dir/$libname.$acl_libext"; then
7157 found_dir="$dir"
7158 found_a="$dir/$libname.$acl_libext"
7159 fi
7160 fi
7161 if test "X$found_dir" != "X"; then
7162 if test -f "$dir/$libname.la"; then
7163 found_la="$dir/$libname.la"
7164 fi
da6ee469
JF
7165 fi
7166 ;;
7167 esac
7168 if test "X$found_dir" != "X"; then
7169 break
7170 fi
7171 done
7172 fi
7173 if test "X$found_dir" != "X"; then
7174 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7175 if test "X$found_so" != "X"; then
7176 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7178 else
7179 haveit=
7180 for x in $ltrpathdirs; do
7181 if test "X$x" = "X$found_dir"; then
7182 haveit=yes
7183 break
7184 fi
7185 done
7186 if test -z "$haveit"; then
7187 ltrpathdirs="$ltrpathdirs $found_dir"
7188 fi
00ec24d0 7189 if test "$acl_hardcode_direct" = yes; then
da6ee469
JF
7190 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7191 else
00ec24d0 7192 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
da6ee469
JF
7193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7194 haveit=
7195 for x in $rpathdirs; do
7196 if test "X$x" = "X$found_dir"; then
7197 haveit=yes
7198 break
7199 fi
7200 done
7201 if test -z "$haveit"; then
7202 rpathdirs="$rpathdirs $found_dir"
7203 fi
7204 else
7205 haveit=
7206 for x in $LDFLAGS $LIBINTL; do
7207
7208 acl_save_prefix="$prefix"
7209 prefix="$acl_final_prefix"
7210 acl_save_exec_prefix="$exec_prefix"
7211 exec_prefix="$acl_final_exec_prefix"
7212 eval x=\"$x\"
7213 exec_prefix="$acl_save_exec_prefix"
7214 prefix="$acl_save_prefix"
7215
7216 if test "X$x" = "X-L$found_dir"; then
7217 haveit=yes
7218 break
7219 fi
7220 done
7221 if test -z "$haveit"; then
7222 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7223 fi
00ec24d0 7224 if test "$acl_hardcode_minus_L" != no; then
da6ee469
JF
7225 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7226 else
7227 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7228 fi
7229 fi
7230 fi
7231 fi
7232 else
7233 if test "X$found_a" != "X"; then
7234 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7235 else
7236 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7237 fi
7238 fi
7239 additional_includedir=
7240 case "$found_dir" in
7241 */$acl_libdirstem | */$acl_libdirstem/)
7242 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
00ec24d0 7243 LIBINTL_PREFIX="$basedir"
da6ee469
JF
7244 additional_includedir="$basedir/include"
7245 ;;
7246 esac
7247 if test "X$additional_includedir" != "X"; then
7248 if test "X$additional_includedir" != "X/usr/include"; then
7249 haveit=
7250 if test "X$additional_includedir" = "X/usr/local/include"; then
7251 if test -n "$GCC"; then
7252 case $host_os in
7253 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7254 esac
7255 fi
7256 fi
7257 if test -z "$haveit"; then
7258 for x in $CPPFLAGS $INCINTL; do
7259
7260 acl_save_prefix="$prefix"
7261 prefix="$acl_final_prefix"
7262 acl_save_exec_prefix="$exec_prefix"
7263 exec_prefix="$acl_final_exec_prefix"
7264 eval x=\"$x\"
7265 exec_prefix="$acl_save_exec_prefix"
7266 prefix="$acl_save_prefix"
7267
7268 if test "X$x" = "X-I$additional_includedir"; then
7269 haveit=yes
7270 break
7271 fi
7272 done
7273 if test -z "$haveit"; then
7274 if test -d "$additional_includedir"; then
7275 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7276 fi
7277 fi
7278 fi
7279 fi
7280 fi
7281 if test -n "$found_la"; then
7282 save_libdir="$libdir"
7283 case "$found_la" in
7284 */* | *\\*) . "$found_la" ;;
7285 *) . "./$found_la" ;;
7286 esac
7287 libdir="$save_libdir"
7288 for dep in $dependency_libs; do
7289 case "$dep" in
7290 -L*)
7291 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7292 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7293 haveit=
7294 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7295 if test -n "$GCC"; then
7296 case $host_os in
7297 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7298 esac
7299 fi
7300 fi
7301 if test -z "$haveit"; then
7302 haveit=
7303 for x in $LDFLAGS $LIBINTL; do
7304
7305 acl_save_prefix="$prefix"
7306 prefix="$acl_final_prefix"
7307 acl_save_exec_prefix="$exec_prefix"
7308 exec_prefix="$acl_final_exec_prefix"
7309 eval x=\"$x\"
7310 exec_prefix="$acl_save_exec_prefix"
7311 prefix="$acl_save_prefix"
7312
7313 if test "X$x" = "X-L$additional_libdir"; then
7314 haveit=yes
7315 break
7316 fi
7317 done
7318 if test -z "$haveit"; then
7319 if test -d "$additional_libdir"; then
7320 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7321 fi
7322 fi
7323 haveit=
7324 for x in $LDFLAGS $LTLIBINTL; do
7325
7326 acl_save_prefix="$prefix"
7327 prefix="$acl_final_prefix"
7328 acl_save_exec_prefix="$exec_prefix"
7329 exec_prefix="$acl_final_exec_prefix"
7330 eval x=\"$x\"
7331 exec_prefix="$acl_save_exec_prefix"
7332 prefix="$acl_save_prefix"
7333
7334 if test "X$x" = "X-L$additional_libdir"; then
7335 haveit=yes
7336 break
7337 fi
7338 done
7339 if test -z "$haveit"; then
7340 if test -d "$additional_libdir"; then
7341 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7342 fi
7343 fi
7344 fi
7345 fi
7346 ;;
7347 -R*)
7348 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7349 if test "$enable_rpath" != no; then
7350 haveit=
7351 for x in $rpathdirs; do
7352 if test "X$x" = "X$dir"; then
7353 haveit=yes
7354 break
7355 fi
7356 done
7357 if test -z "$haveit"; then
7358 rpathdirs="$rpathdirs $dir"
7359 fi
7360 haveit=
7361 for x in $ltrpathdirs; do
7362 if test "X$x" = "X$dir"; then
7363 haveit=yes
7364 break
7365 fi
7366 done
7367 if test -z "$haveit"; then
7368 ltrpathdirs="$ltrpathdirs $dir"
7369 fi
7370 fi
7371 ;;
7372 -l*)
7373 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7374 ;;
7375 *.la)
7376 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7377 ;;
7378 *)
7379 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7380 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7381 ;;
7382 esac
7383 done
7384 fi
7385 else
7386 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7387 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7388 fi
7389 fi
7390 fi
7391 done
7392 done
7393 if test "X$rpathdirs" != "X"; then
00ec24d0 7394 if test -n "$acl_hardcode_libdir_separator"; then
da6ee469
JF
7395 alldirs=
7396 for found_dir in $rpathdirs; do
00ec24d0 7397 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
da6ee469
JF
7398 done
7399 acl_save_libdir="$libdir"
7400 libdir="$alldirs"
00ec24d0 7401 eval flag=\"$acl_hardcode_libdir_flag_spec\"
da6ee469
JF
7402 libdir="$acl_save_libdir"
7403 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7404 else
7405 for found_dir in $rpathdirs; do
7406 acl_save_libdir="$libdir"
7407 libdir="$found_dir"
00ec24d0 7408 eval flag=\"$acl_hardcode_libdir_flag_spec\"
da6ee469
JF
7409 libdir="$acl_save_libdir"
7410 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7411 done
7412 fi
7413 fi
7414 if test "X$ltrpathdirs" != "X"; then
7415 for found_dir in $ltrpathdirs; do
7416 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7417 done
7418 fi
7419
0e5943eb
JF
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7421$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7422if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
7423 $as_echo_n "(cached) " >&6
da6ee469
JF
7424else
7425 gt_save_CPPFLAGS="$CPPFLAGS"
7426 CPPFLAGS="$CPPFLAGS $INCINTL"
7427 gt_save_LIBS="$LIBS"
7428 LIBS="$LIBS $LIBINTL"
0e5943eb 7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
7430/* end confdefs.h. */
7431#include <libintl.h>
00ec24d0 7432$gt_revision_test_code
da6ee469
JF
7433extern int _nl_msg_cat_cntr;
7434extern
7435#ifdef __cplusplus
7436"C"
7437#endif
7438const char *_nl_expand_alias (const char *);
7439int
7440main ()
7441{
7442bindtextdomain ("", "");
00ec24d0 7443return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
da6ee469
JF
7444 ;
7445 return 0;
7446}
7447_ACEOF
0e5943eb 7448if ac_fn_c_try_link "$LINENO"; then :
00ec24d0 7449 eval "$gt_func_gnugettext_libintl=yes"
da6ee469 7450else
0e5943eb 7451 eval "$gt_func_gnugettext_libintl=no"
da6ee469 7452fi
0e5943eb
JF
7453rm -f core conftest.err conftest.$ac_objext \
7454 conftest$ac_exeext conftest.$ac_ext
00ec24d0 7455 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
da6ee469 7456 LIBS="$LIBS $LIBICONV"
0e5943eb 7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da6ee469
JF
7458/* end confdefs.h. */
7459#include <libintl.h>
00ec24d0 7460$gt_revision_test_code
da6ee469
JF
7461extern int _nl_msg_cat_cntr;
7462extern
7463#ifdef __cplusplus
7464"C"
7465#endif
7466const char *_nl_expand_alias (const char *);
7467int
7468main ()
7469{
7470bindtextdomain ("", "");
00ec24d0 7471return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
da6ee469
JF
7472 ;
7473 return 0;
7474}
7475_ACEOF
0e5943eb 7476if ac_fn_c_try_link "$LINENO"; then :
da6ee469
JF
7477 LIBINTL="$LIBINTL $LIBICONV"
7478 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
00ec24d0 7479 eval "$gt_func_gnugettext_libintl=yes"
da6ee469 7480
da6ee469 7481fi
0e5943eb
JF
7482rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
da6ee469
JF
7484 fi
7485 CPPFLAGS="$gt_save_CPPFLAGS"
7486 LIBS="$gt_save_LIBS"
7487fi
0e5943eb
JF
7488eval ac_res=\$$gt_func_gnugettext_libintl
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7490$as_echo "$ac_res" >&6; }
da6ee469
JF
7491 fi
7492
00ec24d0
JF
7493 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7494 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
da6ee469
JF
7495 && test "$PACKAGE" != gettext-runtime \
7496 && test "$PACKAGE" != gettext-tools; }; then
7497 gt_use_preinstalled_gnugettext=yes
7498 else
7499 LIBINTL=
7500 LTLIBINTL=
7501 INCINTL=
7502 fi
7503
7504
7505
7506 if test -n "$INTL_MACOSX_LIBS"; then
7507 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7508 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7509 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7510 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7511 fi
7512 fi
7513
7514 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7515 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7516
0e5943eb 7517$as_echo "#define ENABLE_NLS 1" >>confdefs.h
da6ee469
JF
7518
7519 else
7520 USE_NLS=no
7521 fi
7522 fi
7523
0e5943eb
JF
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7525$as_echo_n "checking whether to use NLS... " >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7527$as_echo "$USE_NLS" >&6; }
da6ee469 7528 if test "$USE_NLS" = "yes"; then
0e5943eb
JF
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7530$as_echo_n "checking where the gettext function comes from... " >&6; }
da6ee469 7531 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
00ec24d0 7532 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
da6ee469
JF
7533 gt_source="external libintl"
7534 else
7535 gt_source="libc"
7536 fi
7537 else
7538 gt_source="included intl directory"
7539 fi
0e5943eb
JF
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7541$as_echo "$gt_source" >&6; }
da6ee469
JF
7542 fi
7543
7544 if test "$USE_NLS" = "yes"; then
7545
7546 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
00ec24d0 7547 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
0e5943eb
JF
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7549$as_echo_n "checking how to link with libintl... " >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7551$as_echo "$LIBINTL" >&6; }
da6ee469
JF
7552
7553 for element in $INCINTL; do
7554 haveit=
7555 for x in $CPPFLAGS; do
7556
7557 acl_save_prefix="$prefix"
7558 prefix="$acl_final_prefix"
7559 acl_save_exec_prefix="$exec_prefix"
7560 exec_prefix="$acl_final_exec_prefix"
7561 eval x=\"$x\"
7562 exec_prefix="$acl_save_exec_prefix"
7563 prefix="$acl_save_prefix"
7564
7565 if test "X$x" = "X$element"; then
7566 haveit=yes
7567 break
7568 fi
7569 done
7570 if test -z "$haveit"; then
7571 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7572 fi
7573 done
7574
7575 fi
7576
7577
0e5943eb 7578$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
da6ee469
JF
7579
7580
0e5943eb 7581$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
da6ee469
JF
7582
7583 fi
7584
7585 POSUB=po
7586 fi
7587
7588
7589
7590 INTLLIBS="$LIBINTL"
7591
7592
7593
7594
7595
7596
7597if test x"$USE_NLS" = "xyes"; then
0e5943eb 7598 $as_echo "#define USE_NLS 1" >>confdefs.h
da6ee469
JF
7599
7600fi
7601
7602# Extract the first word of "bash", so it can be a program name with args.
7603set dummy bash; ac_word=$2
0e5943eb
JF
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if test "${ac_cv_path_BASH+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
da6ee469
JF
7608else
7609 case $BASH in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
7612 ;;
7613 *)
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
0e5943eb 7619 for ac_exec_ext in '' $ac_executable_extensions; do
da6ee469
JF
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
0e5943eb 7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
da6ee469
JF
7623 break 2
7624 fi
7625done
0e5943eb 7626 done
da6ee469
JF
7627IFS=$as_save_IFS
7628
7629 ;;
7630esac
7631fi
7632BASH=$ac_cv_path_BASH
7633if test -n "$BASH"; then
0e5943eb
JF
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
7635$as_echo "$BASH" >&6; }
da6ee469 7636else
0e5943eb
JF
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
da6ee469
JF
7639fi
7640
7641
7642
00ec24d0 7643ac_config_files="$ac_config_files environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in doc/Doxyfile"
da6ee469
JF
7644
7645ac_config_commands="$ac_config_commands default"
7646
7647cat >confcache <<\_ACEOF
7648# This file is a shell script that caches the results of configure
7649# tests run on this system so they can be shared between configure
7650# scripts and configure runs, see configure's option --config-cache.
7651# It is not useful on other systems. If it contains results you don't
7652# want to keep, you may remove or edit it.
7653#
7654# config.status only pays attention to the cache file if you give it
7655# the --recheck option to rerun configure.
7656#
7657# `ac_cv_env_foo' variables (set or unset) will be overridden when
7658# loading this file, other *unset* `ac_cv_foo' will be assigned the
7659# following values.
7660
7661_ACEOF
7662
7663# The following way of writing the cache mishandles newlines in values,
7664# but we know of no workaround that is simple, portable, and efficient.
7665# So, we kill variables containing newlines.
7666# Ultrix sh set writes to stderr and can't be redirected directly,
7667# and sets the high bit in the cache file unless we assign to the vars.
7668(
7669 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7670 eval ac_val=\$$ac_var
7671 case $ac_val in #(
7672 *${as_nl}*)
7673 case $ac_var in #(
0e5943eb
JF
7674 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7675$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
da6ee469
JF
7676 esac
7677 case $ac_var in #(
7678 _ | IFS | as_nl) ;; #(
0e5943eb
JF
7679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7680 *) { eval $ac_var=; unset $ac_var;} ;;
da6ee469
JF
7681 esac ;;
7682 esac
7683 done
7684
7685 (set) 2>&1 |
7686 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7687 *${as_nl}ac_space=\ *)
0e5943eb
JF
7688 # `set' does not quote correctly, so add quotes: double-quote
7689 # substitution turns \\\\ into \\, and sed turns \\ into \.
da6ee469
JF
7690 sed -n \
7691 "s/'/'\\\\''/g;
7692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7693 ;; #(
7694 *)
7695 # `set' quotes correctly as required by POSIX, so do not add quotes.
7696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7697 ;;
7698 esac |
7699 sort
7700) |
7701 sed '
7702 /^ac_cv_env_/b end
7703 t clear
7704 :clear
7705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7706 t end
7707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7708 :end' >>confcache
7709if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7710 if test -w "$cache_file"; then
7711 test "x$cache_file" != "x/dev/null" &&
0e5943eb
JF
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7713$as_echo "$as_me: updating cache $cache_file" >&6;}
da6ee469
JF
7714 cat confcache >$cache_file
7715 else
0e5943eb
JF
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7717$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
da6ee469
JF
7718 fi
7719fi
7720rm -f confcache
7721
7722test "x$prefix" = xNONE && prefix=$ac_default_prefix
7723# Let make expand exec_prefix.
7724test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7725
7726DEFS=-DHAVE_CONFIG_H
7727
7728ac_libobjs=
7729ac_ltlibobjs=
7730for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7731 # 1. Remove the extension, and $U if already installed.
7732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
0e5943eb 7733 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
da6ee469
JF
7734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7735 # will be set to the directory where LIBOBJS objects are built.
0e5943eb
JF
7736 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7737 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
da6ee469
JF
7738done
7739LIBOBJS=$ac_libobjs
7740
7741LTLIBOBJS=$ac_ltlibobjs
7742
7743
7744
0e5943eb 7745
da6ee469 7746: ${CONFIG_STATUS=./config.status}
0e5943eb 7747ac_write_fail=0
da6ee469
JF
7748ac_clean_files_save=$ac_clean_files
7749ac_clean_files="$ac_clean_files $CONFIG_STATUS"
0e5943eb
JF
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7751$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7752as_write_fail=0
7753cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
da6ee469
JF
7754#! $SHELL
7755# Generated by $as_me.
7756# Run this file to recreate the current configuration.
7757# Compiler output produced by configure, useful for debugging
7758# configure, is in config.log if it exists.
7759
7760debug=false
7761ac_cs_recheck=false
7762ac_cs_silent=false
da6ee469 7763
0e5943eb
JF
7764SHELL=\${CONFIG_SHELL-$SHELL}
7765export SHELL
7766_ASEOF
7767cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7768## -------------------- ##
7769## M4sh Initialization. ##
7770## -------------------- ##
da6ee469
JF
7771
7772# Be more Bourne compatible
7773DUALCASE=1; export DUALCASE # for MKS sh
0e5943eb 7774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
da6ee469
JF
7775 emulate sh
7776 NULLCMD=:
0e5943eb 7777 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
da6ee469
JF
7778 # is contrary to our usage. Disable this feature.
7779 alias -g '${1+"$@"}'='"$@"'
7780 setopt NO_GLOB_SUBST
7781else
0e5943eb
JF
7782 case `(set -o) 2>/dev/null` in #(
7783 *posix*) :
7784 set -o posix ;; #(
7785 *) :
7786 ;;
da6ee469 7787esac
da6ee469
JF
7788fi
7789
0e5943eb
JF
7790
7791as_nl='
7792'
7793export as_nl
7794# Printing a long string crashes Solaris 7 /usr/bin/printf.
7795as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7796as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7797as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7798# Prefer a ksh shell builtin over an external printf program on Solaris,
7799# but without wasting forks for bash or zsh.
7800if test -z "$BASH_VERSION$ZSH_VERSION" \
7801 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7802 as_echo='print -r --'
7803 as_echo_n='print -rn --'
7804elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7805 as_echo='printf %s\n'
7806 as_echo_n='printf %s'
7807else
7808 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7809 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7810 as_echo_n='/usr/ucb/echo -n'
da6ee469 7811 else
0e5943eb
JF
7812 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7813 as_echo_n_body='eval
7814 arg=$1;
7815 case $arg in #(
7816 *"$as_nl"*)
7817 expr "X$arg" : "X\\(.*\\)$as_nl";
7818 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7819 esac;
7820 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7821 '
7822 export as_echo_n_body
7823 as_echo_n='sh -c $as_echo_n_body as_echo'
da6ee469 7824 fi
0e5943eb
JF
7825 export as_echo_body
7826 as_echo='sh -c $as_echo_body as_echo'
da6ee469
JF
7827fi
7828
0e5943eb
JF
7829# The user is always right.
7830if test "${PATH_SEPARATOR+set}" != set; then
7831 PATH_SEPARATOR=:
7832 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7833 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7834 PATH_SEPARATOR=';'
7835 }
da6ee469
JF
7836fi
7837
7838
7839# IFS
7840# We need space, tab and new line, in precisely that order. Quoting is
7841# there to prevent editors from complaining about space-tab.
7842# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7843# splitting by setting IFS to empty value.)
da6ee469
JF
7844IFS=" "" $as_nl"
7845
7846# Find who we are. Look in the path if we contain no directory separator.
0e5943eb 7847case $0 in #((
da6ee469
JF
7848 *[\\/]* ) as_myself=$0 ;;
7849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
0e5943eb
JF
7854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7855 done
da6ee469
JF
7856IFS=$as_save_IFS
7857
7858 ;;
7859esac
7860# We did not find ourselves, most probably we were run as `sh COMMAND'
7861# in which case we are not to be found in the path.
7862if test "x$as_myself" = x; then
7863 as_myself=$0
7864fi
7865if test ! -f "$as_myself"; then
0e5943eb
JF
7866 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7867 exit 1
da6ee469
JF
7868fi
7869
0e5943eb
JF
7870# Unset variables that we do not need and which cause bugs (e.g. in
7871# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7872# suppresses any "Segmentation fault" message there. '((' could
7873# trigger a bug in pdksh 5.2.14.
7874for as_var in BASH_ENV ENV MAIL MAILPATH
7875do eval test x\${$as_var+set} = xset \
7876 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
da6ee469
JF
7877done
7878PS1='$ '
7879PS2='> '
7880PS4='+ '
7881
7882# NLS nuisances.
0e5943eb
JF
7883LC_ALL=C
7884export LC_ALL
7885LANGUAGE=C
7886export LANGUAGE
7887
7888# CDPATH.
7889(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7890
7891
7892# as_fn_error ERROR [LINENO LOG_FD]
7893# ---------------------------------
7894# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7895# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7896# script with status $?, using 1 if that was 0.
7897as_fn_error ()
7898{
7899 as_status=$?; test $as_status -eq 0 && as_status=1
7900 if test "$3"; then
7901 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7902 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
da6ee469 7903 fi
0e5943eb
JF
7904 $as_echo "$as_me: error: $1" >&2
7905 as_fn_exit $as_status
7906} # as_fn_error
7907
7908
7909# as_fn_set_status STATUS
7910# -----------------------
7911# Set $? to STATUS, without forking.
7912as_fn_set_status ()
7913{
7914 return $1
7915} # as_fn_set_status
7916
7917# as_fn_exit STATUS
7918# -----------------
7919# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7920as_fn_exit ()
7921{
7922 set +e
7923 as_fn_set_status $1
7924 exit $1
7925} # as_fn_exit
7926
7927# as_fn_unset VAR
7928# ---------------
7929# Portably unset VAR.
7930as_fn_unset ()
7931{
7932 { eval $1=; unset $1;}
7933}
7934as_unset=as_fn_unset
7935# as_fn_append VAR VALUE
7936# ----------------------
7937# Append the text in VALUE to the end of the definition contained in VAR. Take
7938# advantage of any shell optimizations that allow amortized linear growth over
7939# repeated appends, instead of the typical quadratic growth present in naive
7940# implementations.
7941if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7942 eval 'as_fn_append ()
7943 {
7944 eval $1+=\$2
7945 }'
7946else
7947 as_fn_append ()
7948 {
7949 eval $1=\$$1\$2
7950 }
7951fi # as_fn_append
7952
7953# as_fn_arith ARG...
7954# ------------------
7955# Perform arithmetic evaluation on the ARGs, and store the result in the
7956# global $as_val. Take advantage of shells that can avoid forks. The arguments
7957# must be portable across $(()) and expr.
7958if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7959 eval 'as_fn_arith ()
7960 {
7961 as_val=$(( $* ))
7962 }'
7963else
7964 as_fn_arith ()
7965 {
7966 as_val=`expr "$@" || test $? -eq 1`
7967 }
7968fi # as_fn_arith
7969
da6ee469 7970
da6ee469
JF
7971if expr a : '\(a\)' >/dev/null 2>&1 &&
7972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7973 as_expr=expr
7974else
7975 as_expr=false
7976fi
7977
7978if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7979 as_basename=basename
7980else
7981 as_basename=false
7982fi
7983
0e5943eb
JF
7984if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7985 as_dirname=dirname
7986else
7987 as_dirname=false
7988fi
da6ee469 7989
da6ee469
JF
7990as_me=`$as_basename -- "$0" ||
7991$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7992 X"$0" : 'X\(//\)$' \| \
7993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0e5943eb 7994$as_echo X/"$0" |
da6ee469
JF
7995 sed '/^.*\/\([^/][^/]*\)\/*$/{
7996 s//\1/
7997 q
7998 }
7999 /^X\/\(\/\/\)$/{
8000 s//\1/
8001 q
8002 }
8003 /^X\/\(\/\).*/{
8004 s//\1/
8005 q
8006 }
8007 s/.*/./; q'`
8008
0e5943eb
JF
8009# Avoid depending upon Character Ranges.
8010as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8012as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8013as_cr_digits='0123456789'
8014as_cr_alnum=$as_cr_Letters$as_cr_digits
da6ee469
JF
8015
8016ECHO_C= ECHO_N= ECHO_T=
0e5943eb 8017case `echo -n x` in #(((((
da6ee469 8018-n*)
0e5943eb 8019 case `echo 'xy\c'` in
da6ee469 8020 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
0e5943eb
JF
8021 xy) ECHO_C='\c';;
8022 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8023 ECHO_T=' ';;
da6ee469
JF
8024 esac;;
8025*)
8026 ECHO_N='-n';;
8027esac
8028
da6ee469
JF
8029rm -f conf$$ conf$$.exe conf$$.file
8030if test -d conf$$.dir; then
8031 rm -f conf$$.dir/conf$$.file
8032else
8033 rm -f conf$$.dir
0e5943eb
JF
8034 mkdir conf$$.dir 2>/dev/null
8035fi
8036if (echo >conf$$.file) 2>/dev/null; then
8037 if ln -s conf$$.file conf$$ 2>/dev/null; then
8038 as_ln_s='ln -s'
8039 # ... but there are two gotchas:
8040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8042 # In both cases, we have to default to `cp -p'.
8043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8044 as_ln_s='cp -p'
8045 elif ln conf$$.file conf$$ 2>/dev/null; then
8046 as_ln_s=ln
8047 else
da6ee469 8048 as_ln_s='cp -p'
0e5943eb 8049 fi
da6ee469
JF
8050else
8051 as_ln_s='cp -p'
8052fi
8053rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8054rmdir conf$$.dir 2>/dev/null
8055
0e5943eb
JF
8056
8057# as_fn_mkdir_p
8058# -------------
8059# Create "$as_dir" as a directory, including parents if necessary.
8060as_fn_mkdir_p ()
8061{
8062
8063 case $as_dir in #(
8064 -*) as_dir=./$as_dir;;
8065 esac
8066 test -d "$as_dir" || eval $as_mkdir_p || {
8067 as_dirs=
8068 while :; do
8069 case $as_dir in #(
8070 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8071 *) as_qdir=$as_dir;;
8072 esac
8073 as_dirs="'$as_qdir' $as_dirs"
8074 as_dir=`$as_dirname -- "$as_dir" ||
8075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8076 X"$as_dir" : 'X\(//\)[^/]' \| \
8077 X"$as_dir" : 'X\(//\)$' \| \
8078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8079$as_echo X"$as_dir" |
8080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8081 s//\1/
8082 q
8083 }
8084 /^X\(\/\/\)[^/].*/{
8085 s//\1/
8086 q
8087 }
8088 /^X\(\/\/\)$/{
8089 s//\1/
8090 q
8091 }
8092 /^X\(\/\).*/{
8093 s//\1/
8094 q
8095 }
8096 s/.*/./; q'`
8097 test -d "$as_dir" && break
8098 done
8099 test -z "$as_dirs" || eval "mkdir $as_dirs"
8100 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8101
8102
8103} # as_fn_mkdir_p
da6ee469 8104if mkdir -p . 2>/dev/null; then
0e5943eb 8105 as_mkdir_p='mkdir -p "$as_dir"'
da6ee469
JF
8106else
8107 test -d ./-p && rmdir ./-p
8108 as_mkdir_p=false
8109fi
8110
8111if test -x / >/dev/null 2>&1; then
8112 as_test_x='test -x'
8113else
8114 if ls -dL / >/dev/null 2>&1; then
8115 as_ls_L_option=L
8116 else
8117 as_ls_L_option=
8118 fi
8119 as_test_x='
8120 eval sh -c '\''
8121 if test -d "$1"; then
0e5943eb 8122 test -d "$1/.";
da6ee469 8123 else
0e5943eb
JF
8124 case $1 in #(
8125 -*)set "./$1";;
da6ee469 8126 esac;
0e5943eb 8127 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
da6ee469
JF
8128 ???[sx]*):;;*)false;;esac;fi
8129 '\'' sh
8130 '
8131fi
8132as_executable_p=$as_test_x
8133
8134# Sed expression to map a string onto a valid CPP name.
8135as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8136
8137# Sed expression to map a string onto a valid variable name.
8138as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8139
8140
8141exec 6>&1
0e5943eb
JF
8142## ----------------------------------- ##
8143## Main body of $CONFIG_STATUS script. ##
8144## ----------------------------------- ##
8145_ASEOF
8146test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
da6ee469 8147
0e5943eb
JF
8148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8149# Save the log message, to keep $0 and so on meaningful, and to
da6ee469
JF
8150# report actual input values of CONFIG_FILES etc. instead of their
8151# values after options handling.
8152ac_log="
8153This file was extended by $as_me, which was
0e5943eb 8154generated by GNU Autoconf 2.65. Invocation command line was
da6ee469
JF
8155
8156 CONFIG_FILES = $CONFIG_FILES
8157 CONFIG_HEADERS = $CONFIG_HEADERS
8158 CONFIG_LINKS = $CONFIG_LINKS
8159 CONFIG_COMMANDS = $CONFIG_COMMANDS
8160 $ $0 $@
8161
8162on `(hostname || uname -n) 2>/dev/null | sed 1q`
8163"
8164
8165_ACEOF
8166
0e5943eb
JF
8167case $ac_config_files in *"
8168"*) set x $ac_config_files; shift; ac_config_files=$*;;
8169esac
8170
8171case $ac_config_headers in *"
8172"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8173esac
8174
8175
8176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
da6ee469
JF
8177# Files that config.status was made for.
8178config_files="$ac_config_files"
8179config_headers="$ac_config_headers"
8180config_commands="$ac_config_commands"
8181
8182_ACEOF
8183
0e5943eb 8184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
da6ee469 8185ac_cs_usage="\
0e5943eb
JF
8186\`$as_me' instantiates files and other configuration actions
8187from templates according to the current configuration. Unless the files
8188and actions are specified as TAGs, all are instantiated by default.
da6ee469 8189
0e5943eb 8190Usage: $0 [OPTION]... [TAG]...
da6ee469
JF
8191
8192 -h, --help print this help, then exit
8193 -V, --version print version number and configuration settings, then exit
0e5943eb
JF
8194 --config print configuration, then exit
8195 -q, --quiet, --silent
8196 do not print progress messages
da6ee469
JF
8197 -d, --debug don't remove temporary files
8198 --recheck update $as_me by reconfiguring in the same conditions
0e5943eb
JF
8199 --file=FILE[:TEMPLATE]
8200 instantiate the configuration file FILE
8201 --header=FILE[:TEMPLATE]
8202 instantiate the configuration header FILE
da6ee469
JF
8203
8204Configuration files:
8205$config_files
8206
8207Configuration headers:
8208$config_headers
8209
8210Configuration commands:
8211$config_commands
8212
0e5943eb 8213Report bugs to the package provider."
da6ee469
JF
8214
8215_ACEOF
0e5943eb
JF
8216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8217ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
da6ee469
JF
8218ac_cs_version="\\
8219config.status
0e5943eb
JF
8220configured by $0, generated by GNU Autoconf 2.65,
8221 with options \\"\$ac_cs_config\\"
da6ee469 8222
0e5943eb 8223Copyright (C) 2009 Free Software Foundation, Inc.
da6ee469
JF
8224This config.status script is free software; the Free Software Foundation
8225gives unlimited permission to copy, distribute and modify it."
8226
8227ac_pwd='$ac_pwd'
8228srcdir='$srcdir'
8229INSTALL='$INSTALL'
00ec24d0 8230MKDIR_P='$MKDIR_P'
0e5943eb 8231test -n "\$AWK" || AWK=awk
da6ee469
JF
8232_ACEOF
8233
0e5943eb
JF
8234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8235# The default lists apply if the user does not specify any file.
da6ee469
JF
8236ac_need_defaults=:
8237while test $# != 0
8238do
8239 case $1 in
8240 --*=*)
8241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8242 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8243 ac_shift=:
8244 ;;
8245 *)
8246 ac_option=$1
8247 ac_optarg=$2
8248 ac_shift=shift
8249 ;;
8250 esac
8251
8252 case $ac_option in
8253 # Handling of the options.
8254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8255 ac_cs_recheck=: ;;
8256 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
0e5943eb
JF
8257 $as_echo "$ac_cs_version"; exit ;;
8258 --config | --confi | --conf | --con | --co | --c )
8259 $as_echo "$ac_cs_config"; exit ;;
da6ee469
JF
8260 --debug | --debu | --deb | --de | --d | -d )
8261 debug=: ;;
8262 --file | --fil | --fi | --f )
8263 $ac_shift
0e5943eb
JF
8264 case $ac_optarg in
8265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8266 esac
8267 as_fn_append CONFIG_FILES " '$ac_optarg'"
da6ee469
JF
8268 ac_need_defaults=false;;
8269 --header | --heade | --head | --hea )
8270 $ac_shift
0e5943eb
JF
8271 case $ac_optarg in
8272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8273 esac
8274 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
da6ee469
JF
8275 ac_need_defaults=false;;
8276 --he | --h)
8277 # Conflict between --help and --header
0e5943eb
JF
8278 as_fn_error "ambiguous option: \`$1'
8279Try \`$0 --help' for more information.";;
da6ee469 8280 --help | --hel | -h )
0e5943eb 8281 $as_echo "$ac_cs_usage"; exit ;;
da6ee469
JF
8282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8284 ac_cs_silent=: ;;
8285
8286 # This is an error.
0e5943eb
JF
8287 -*) as_fn_error "unrecognized option: \`$1'
8288Try \`$0 --help' for more information." ;;
da6ee469 8289
0e5943eb 8290 *) as_fn_append ac_config_targets " $1"
da6ee469
JF
8291 ac_need_defaults=false ;;
8292
8293 esac
8294 shift
8295done
8296
8297ac_configure_extra_args=
8298
8299if $ac_cs_silent; then
8300 exec 6>/dev/null
8301 ac_configure_extra_args="$ac_configure_extra_args --silent"
8302fi
8303
8304_ACEOF
0e5943eb 8305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
da6ee469 8306if \$ac_cs_recheck; then
0e5943eb
JF
8307 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8308 shift
8309 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8310 CONFIG_SHELL='$SHELL'
da6ee469 8311 export CONFIG_SHELL
0e5943eb 8312 exec "\$@"
da6ee469
JF
8313fi
8314
8315_ACEOF
0e5943eb 8316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
da6ee469
JF
8317exec 5>>config.log
8318{
8319 echo
8320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8321## Running $as_me. ##
8322_ASBOX
0e5943eb 8323 $as_echo "$ac_log"
da6ee469
JF
8324} >&5
8325
8326_ACEOF
0e5943eb 8327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
da6ee469
JF
8328#
8329# INIT-COMMANDS
8330#
8331# Capture the value of obsolete ALL_LINGUAS because we need it to compute
8332 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8333 # from automake < 1.5.
8334 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8335 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8336 LINGUAS="${LINGUAS-%UNSET%}"
8337
8338
8339_ACEOF
8340
0e5943eb 8341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
da6ee469
JF
8342
8343# Handling of arguments.
8344for ac_config_target in $ac_config_targets
8345do
8346 case $ac_config_target in
8347 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:buildlib/config.h.in" ;;
8348 "include/apti18n.h") CONFIG_HEADERS="$CONFIG_HEADERS include/apti18n.h:buildlib/apti18n.h.in" ;;
8349 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8350 "environment.mak") CONFIG_FILES="$CONFIG_FILES environment.mak:buildlib/environment.mak.in" ;;
8351 "makefile") CONFIG_FILES="$CONFIG_FILES makefile:buildlib/makefile.in" ;;
00ec24d0 8352 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
da6ee469
JF
8353 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8354
0e5943eb 8355 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
da6ee469
JF
8356 esac
8357done
8358
8359
8360# If the user did not use the arguments to specify the items to instantiate,
8361# then the envvar interface is used. Set only those that are not.
8362# We use the long form for the default assignment because of an extremely
8363# bizarre bug on SunOS 4.1.3.
8364if $ac_need_defaults; then
8365 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8366 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8368fi
8369
8370# Have a temporary directory for convenience. Make it in the build tree
8371# simply because there is no reason against having it here, and in addition,
8372# creating and moving files from /tmp can sometimes cause problems.
8373# Hook for its removal unless debugging.
8374# Note that there is a small window in which the directory will not be cleaned:
8375# after its creation but before its name has been assigned to `$tmp'.
8376$debug ||
8377{
8378 tmp=
8379 trap 'exit_status=$?
8380 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8381' 0
0e5943eb 8382 trap 'as_fn_exit 1' 1 2 13 15
da6ee469
JF
8383}
8384# Create a (secure) tmp directory for tmp files.
8385
8386{
8387 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8388 test -n "$tmp" && test -d "$tmp"
8389} ||
8390{
8391 tmp=./conf$$-$RANDOM
8392 (umask 077 && mkdir "$tmp")
0e5943eb 8393} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
da6ee469 8394
0e5943eb
JF
8395# Set up the scripts for CONFIG_FILES section.
8396# No need to generate them if there are no CONFIG_FILES.
8397# This happens for instance with `./config.status config.h'.
da6ee469
JF
8398if test -n "$CONFIG_FILES"; then
8399
da6ee469 8400
0e5943eb
JF
8401ac_cr=`echo X | tr X '\015'`
8402# On cygwin, bash can eat \r inside `` if the user requested igncr.
8403# But we know of no other shell where ac_cr would be empty at this
8404# point, so we can use a bashism as a fallback.
8405if test "x$ac_cr" = x; then
8406 eval ac_cr=\$\'\\r\'
8407fi
8408ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8409if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8410 ac_cs_awk_cr='\r'
8411else
8412 ac_cs_awk_cr=$ac_cr
da6ee469
JF
8413fi
8414
0e5943eb 8415echo 'BEGIN {' >"$tmp/subs1.awk" &&
da6ee469
JF
8416_ACEOF
8417
8418
0e5943eb
JF
8419{
8420 echo "cat >conf$$subs.awk <<_ACEOF" &&
8421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8422 echo "_ACEOF"
8423} >conf$$subs.sh ||
8424 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8425ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
da6ee469
JF
8426ac_delim='%!_!# '
8427for ac_last_try in false false false false false :; do
0e5943eb
JF
8428 . ./conf$$subs.sh ||
8429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
da6ee469 8430
0e5943eb
JF
8431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8432 if test $ac_delim_n = $ac_delim_num; then
da6ee469
JF
8433 break
8434 elif $ac_last_try; then
0e5943eb 8435 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
da6ee469
JF
8436 else
8437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8438 fi
8439done
0e5943eb
JF
8440rm -f conf$$subs.sh
8441
8442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8443cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8444_ACEOF
8445sed -n '
8446h
8447s/^/S["/; s/!.*/"]=/
8448p
8449g
8450s/^[^!]*!//
8451:repl
8452t repl
8453s/'"$ac_delim"'$//
8454t delim
8455:nl
8456h
8457s/\(.\{148\}\)..*/\1/
8458t more1
8459s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8460p
8461n
8462b repl
8463:more1
8464s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8465p
8466g
8467s/.\{148\}//
8468t nl
8469:delim
8470h
8471s/\(.\{148\}\)..*/\1/
8472t more2
8473s/["\\]/\\&/g; s/^/"/; s/$/"/
8474p
8475b
8476:more2
8477s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8478p
8479g
8480s/.\{148\}//
8481t delim
8482' <conf$$subs.awk | sed '
8483/^[^""]/{
8484 N
8485 s/\n//
8486}
8487' >>$CONFIG_STATUS || ac_write_fail=1
8488rm -f conf$$subs.awk
8489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8490_ACAWK
8491cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8492 for (key in S) S_is_set[key] = 1
8493 FS = "\a"
da6ee469 8494
0e5943eb
JF
8495}
8496{
8497 line = $ 0
8498 nfields = split(line, field, "@")
8499 substed = 0
8500 len = length(field[1])
8501 for (i = 2; i < nfields; i++) {
8502 key = field[i]
8503 keylen = length(key)
8504 if (S_is_set[key]) {
8505 value = S[key]
8506 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8507 len += length(value) + length(field[++i])
8508 substed = 1
8509 } else
8510 len += 1 + keylen
8511 }
8512
8513 print line
8514}
da6ee469 8515
0e5943eb 8516_ACAWK
da6ee469 8517_ACEOF
0e5943eb
JF
8518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8519if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8521else
8522 cat
8523fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8524 || as_fn_error "could not setup config files machinery" "$LINENO" 5
da6ee469
JF
8525_ACEOF
8526
da6ee469
JF
8527# VPATH may cause trouble with some makes, so we remove $(srcdir),
8528# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8529# trailing colons and then remove the whole line if VPATH becomes empty
8530# (actually we leave an empty line to preserve line numbers).
8531if test "x$srcdir" = x.; then
8532 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8533s/:*\$(srcdir):*/:/
8534s/:*\${srcdir}:*/:/
8535s/:*@srcdir@:*/:/
8536s/^\([^=]*=[ ]*\):*/\1/
8537s/:*$//
8538s/^[^=]*=[ ]*$//
8539}'
8540fi
8541
0e5943eb 8542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
da6ee469
JF
8543fi # test -n "$CONFIG_FILES"
8544
0e5943eb
JF
8545# Set up the scripts for CONFIG_HEADERS section.
8546# No need to generate them if there are no CONFIG_HEADERS.
8547# This happens for instance with `./config.status Makefile'.
8548if test -n "$CONFIG_HEADERS"; then
8549cat >"$tmp/defines.awk" <<\_ACAWK ||
8550BEGIN {
8551_ACEOF
8552
8553# Transform confdefs.h into an awk script `defines.awk', embedded as
8554# here-document in config.status, that substitutes the proper values into
8555# config.h.in to produce config.h.
8556
8557# Create a delimiter string that does not exist in confdefs.h, to ease
8558# handling of long lines.
8559ac_delim='%!_!# '
8560for ac_last_try in false false :; do
8561 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8562 if test -z "$ac_t"; then
8563 break
8564 elif $ac_last_try; then
8565 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8566 else
8567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8568 fi
8569done
8570
8571# For the awk script, D is an array of macro values keyed by name,
8572# likewise P contains macro parameters if any. Preserve backslash
8573# newline sequences.
8574
8575ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8576sed -n '
8577s/.\{148\}/&'"$ac_delim"'/g
8578t rset
8579:rset
8580s/^[ ]*#[ ]*define[ ][ ]*/ /
8581t def
8582d
8583:def
8584s/\\$//
8585t bsnl
8586s/["\\]/\\&/g
8587s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8588D["\1"]=" \3"/p
8589s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8590d
8591:bsnl
8592s/["\\]/\\&/g
8593s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8594D["\1"]=" \3\\\\\\n"\\/p
8595t cont
8596s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8597t cont
8598d
8599:cont
8600n
8601s/.\{148\}/&'"$ac_delim"'/g
8602t clear
8603:clear
8604s/\\$//
8605t bsnlc
8606s/["\\]/\\&/g; s/^/"/; s/$/"/p
8607d
8608:bsnlc
8609s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8610b cont
8611' <confdefs.h | sed '
8612s/'"$ac_delim"'/"\\\
8613"/g' >>$CONFIG_STATUS || ac_write_fail=1
8614
8615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8616 for (key in D) D_is_set[key] = 1
8617 FS = "\a"
8618}
8619/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8620 line = \$ 0
8621 split(line, arg, " ")
8622 if (arg[1] == "#") {
8623 defundef = arg[2]
8624 mac1 = arg[3]
8625 } else {
8626 defundef = substr(arg[1], 2)
8627 mac1 = arg[2]
8628 }
8629 split(mac1, mac2, "(") #)
8630 macro = mac2[1]
8631 prefix = substr(line, 1, index(line, defundef) - 1)
8632 if (D_is_set[macro]) {
8633 # Preserve the white space surrounding the "#".
8634 print prefix "define", macro P[macro] D[macro]
8635 next
8636 } else {
8637 # Replace #undef with comments. This is necessary, for example,
8638 # in the case of _POSIX_SOURCE, which is predefined and required
8639 # on some systems where configure will not decide to define it.
8640 if (defundef == "undef") {
8641 print "/*", prefix defundef, macro, "*/"
8642 next
8643 }
8644 }
8645}
8646{ print }
8647_ACAWK
8648_ACEOF
8649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8650 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8651fi # test -n "$CONFIG_HEADERS"
8652
da6ee469 8653
0e5943eb
JF
8654eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8655shift
8656for ac_tag
da6ee469
JF
8657do
8658 case $ac_tag in
8659 :[FHLC]) ac_mode=$ac_tag; continue;;
8660 esac
8661 case $ac_mode$ac_tag in
8662 :[FHL]*:*);;
0e5943eb 8663 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
da6ee469
JF
8664 :[FH]-) ac_tag=-:-;;
8665 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8666 esac
8667 ac_save_IFS=$IFS
8668 IFS=:
8669 set x $ac_tag
8670 IFS=$ac_save_IFS
8671 shift
8672 ac_file=$1
8673 shift
8674
8675 case $ac_mode in
8676 :L) ac_source=$1;;
8677 :[FH])
8678 ac_file_inputs=
8679 for ac_f
8680 do
8681 case $ac_f in
8682 -) ac_f="$tmp/stdin";;
8683 *) # Look for the file first in the build tree, then in the source tree
8684 # (if the path is not absolute). The absolute path cannot be DOS-style,
8685 # because $ac_f cannot contain `:'.
8686 test -f "$ac_f" ||
8687 case $ac_f in
8688 [\\/$]*) false;;
8689 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8690 esac ||
0e5943eb 8691 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
da6ee469 8692 esac
0e5943eb
JF
8693 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8694 as_fn_append ac_file_inputs " '$ac_f'"
da6ee469
JF
8695 done
8696
8697 # Let's still pretend it is `configure' which instantiates (i.e., don't
8698 # use $as_me), people would be surprised to read:
8699 # /* config.h. Generated by config.status. */
0e5943eb
JF
8700 configure_input='Generated from '`
8701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8702 `' by configure.'
da6ee469
JF
8703 if test x"$ac_file" != x-; then
8704 configure_input="$ac_file. $configure_input"
0e5943eb
JF
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8706$as_echo "$as_me: creating $ac_file" >&6;}
da6ee469 8707 fi
0e5943eb
JF
8708 # Neutralize special characters interpreted by sed in replacement strings.
8709 case $configure_input in #(
8710 *\&* | *\|* | *\\* )
8711 ac_sed_conf_input=`$as_echo "$configure_input" |
8712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8713 *) ac_sed_conf_input=$configure_input;;
8714 esac
da6ee469
JF
8715
8716 case $ac_tag in
0e5943eb
JF
8717 *:-:* | *:-) cat >"$tmp/stdin" \
8718 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
da6ee469
JF
8719 esac
8720 ;;
8721 esac
8722
8723 ac_dir=`$as_dirname -- "$ac_file" ||
8724$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8725 X"$ac_file" : 'X\(//\)[^/]' \| \
8726 X"$ac_file" : 'X\(//\)$' \| \
8727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
0e5943eb 8728$as_echo X"$ac_file" |
da6ee469
JF
8729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8730 s//\1/
8731 q
8732 }
8733 /^X\(\/\/\)[^/].*/{
8734 s//\1/
8735 q
8736 }
8737 /^X\(\/\/\)$/{
8738 s//\1/
8739 q
8740 }
8741 /^X\(\/\).*/{
8742 s//\1/
8743 q
8744 }
8745 s/.*/./; q'`
0e5943eb 8746 as_dir="$ac_dir"; as_fn_mkdir_p
da6ee469
JF
8747 ac_builddir=.
8748
8749case "$ac_dir" in
8750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8751*)
0e5943eb 8752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
da6ee469 8753 # A ".." for each directory in $ac_dir_suffix.
0e5943eb 8754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
da6ee469
JF
8755 case $ac_top_builddir_sub in
8756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8758 esac ;;
8759esac
8760ac_abs_top_builddir=$ac_pwd
8761ac_abs_builddir=$ac_pwd$ac_dir_suffix
8762# for backward compatibility:
8763ac_top_builddir=$ac_top_build_prefix
8764
8765case $srcdir in
8766 .) # We are building in place.
8767 ac_srcdir=.
8768 ac_top_srcdir=$ac_top_builddir_sub
8769 ac_abs_top_srcdir=$ac_pwd ;;
8770 [\\/]* | ?:[\\/]* ) # Absolute name.
8771 ac_srcdir=$srcdir$ac_dir_suffix;
8772 ac_top_srcdir=$srcdir
8773 ac_abs_top_srcdir=$srcdir ;;
8774 *) # Relative name.
8775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8776 ac_top_srcdir=$ac_top_build_prefix$srcdir
8777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8778esac
8779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8780
8781
8782 case $ac_mode in
8783 :F)
8784 #
8785 # CONFIG_FILE
8786 #
8787
8788 case $INSTALL in
8789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8790 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8791 esac
00ec24d0
JF
8792 ac_MKDIR_P=$MKDIR_P
8793 case $MKDIR_P in
8794 [\\/$]* | ?:[\\/]* ) ;;
8795 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8796 esac
da6ee469
JF
8797_ACEOF
8798
0e5943eb 8799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
da6ee469
JF
8800# If the template does not know about datarootdir, expand it.
8801# FIXME: This hack should be removed a few years after 2.60.
8802ac_datarootdir_hack=; ac_datarootdir_seen=
0e5943eb
JF
8803ac_sed_dataroot='
8804/datarootdir/ {
da6ee469
JF
8805 p
8806 q
8807}
8808/@datadir@/p
8809/@docdir@/p
8810/@infodir@/p
8811/@localedir@/p
0e5943eb
JF
8812/@mandir@/p'
8813case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
da6ee469
JF
8814*datarootdir*) ac_datarootdir_seen=yes;;
8815*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
0e5943eb
JF
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8817$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
da6ee469 8818_ACEOF
0e5943eb 8819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
da6ee469
JF
8820 ac_datarootdir_hack='
8821 s&@datadir@&$datadir&g
8822 s&@docdir@&$docdir&g
8823 s&@infodir@&$infodir&g
8824 s&@localedir@&$localedir&g
8825 s&@mandir@&$mandir&g
0e5943eb 8826 s&\\\${datarootdir}&$datarootdir&g' ;;
da6ee469
JF
8827esac
8828_ACEOF
8829
8830# Neutralize VPATH when `$srcdir' = `.'.
8831# Shell code in configure.ac might set extrasub.
8832# FIXME: do we really want to maintain this feature?
0e5943eb
JF
8833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8834ac_sed_extra="$ac_vpsub
da6ee469
JF
8835$extrasub
8836_ACEOF
0e5943eb 8837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
da6ee469
JF
8838:t
8839/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
0e5943eb 8840s|@configure_input@|$ac_sed_conf_input|;t t
da6ee469 8841s&@top_builddir@&$ac_top_builddir_sub&;t t
0e5943eb 8842s&@top_build_prefix@&$ac_top_build_prefix&;t t
da6ee469
JF
8843s&@srcdir@&$ac_srcdir&;t t
8844s&@abs_srcdir@&$ac_abs_srcdir&;t t
8845s&@top_srcdir@&$ac_top_srcdir&;t t
8846s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8847s&@builddir@&$ac_builddir&;t t
8848s&@abs_builddir@&$ac_abs_builddir&;t t
8849s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8850s&@INSTALL@&$ac_INSTALL&;t t
00ec24d0 8851s&@MKDIR_P@&$ac_MKDIR_P&;t t
da6ee469 8852$ac_datarootdir_hack
0e5943eb
JF
8853"
8854eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8855 || as_fn_error "could not create $ac_file" "$LINENO" 5
da6ee469
JF
8856
8857test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8858 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8859 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
0e5943eb 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
da6ee469 8861which seems to be undefined. Please make sure it is defined." >&5
0e5943eb 8862$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
da6ee469
JF
8863which seems to be undefined. Please make sure it is defined." >&2;}
8864
8865 rm -f "$tmp/stdin"
8866 case $ac_file in
0e5943eb
JF
8867 -) cat "$tmp/out" && rm -f "$tmp/out";;
8868 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8869 esac \
8870 || as_fn_error "could not create $ac_file" "$LINENO" 5
da6ee469
JF
8871 ;;
8872 :H)
8873 #
8874 # CONFIG_HEADER
8875 #
da6ee469 8876 if test x"$ac_file" != x-; then
0e5943eb
JF
8877 {
8878 $as_echo "/* $configure_input */" \
8879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8880 } >"$tmp/config.h" \
8881 || as_fn_error "could not create $ac_file" "$LINENO" 5
8882 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8884$as_echo "$as_me: $ac_file is unchanged" >&6;}
da6ee469 8885 else
0e5943eb
JF
8886 rm -f "$ac_file"
8887 mv "$tmp/config.h" "$ac_file" \
8888 || as_fn_error "could not create $ac_file" "$LINENO" 5
da6ee469
JF
8889 fi
8890 else
0e5943eb
JF
8891 $as_echo "/* $configure_input */" \
8892 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8893 || as_fn_error "could not create -" "$LINENO" 5
da6ee469 8894 fi
da6ee469
JF
8895 ;;
8896
0e5943eb
JF
8897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8898$as_echo "$as_me: executing $ac_file commands" >&6;}
da6ee469
JF
8899 ;;
8900 esac
8901
8902
8903 case $ac_file$ac_mode in
8904 "po-directories":C)
8905 for ac_file in $CONFIG_FILES; do
8906 # Support "outfile[:infile[:infile...]]"
8907 case "$ac_file" in
8908 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8909 esac
8910 # PO directories have a Makefile.in generated from Makefile.in.in.
8911 case "$ac_file" in */Makefile.in)
8912 # Adjust a relative srcdir.
8913 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8914 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8915 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8916 # In autoconf-2.13 it is called $ac_given_srcdir.
8917 # In autoconf-2.50 it is called $srcdir.
8918 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8919 case "$ac_given_srcdir" in
8920 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8921 /*) top_srcdir="$ac_given_srcdir" ;;
8922 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8923 esac
8924 # Treat a directory as a PO directory if and only if it has a
8925 # POTFILES.in file. This allows packages to have multiple PO
8926 # directories under different names or in different locations.
8927 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8928 rm -f "$ac_dir/POTFILES"
8929 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8930 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8931 POMAKEFILEDEPS="POTFILES.in"
8932 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8933 # on $ac_dir but don't depend on user-specified configuration
8934 # parameters.
8935 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8936 # The LINGUAS file contains the set of available languages.
8937 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8938 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8939 fi
8940 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8941 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8942 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8943 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8944 else
8945 # The set of available languages was given in configure.in.
8946 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8947 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8948 fi
8949 # Compute POFILES
8950 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8951 # Compute UPDATEPOFILES
8952 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8953 # Compute DUMMYPOFILES
8954 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8955 # Compute GMOFILES
8956 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8957 case "$ac_given_srcdir" in
8958 .) srcdirpre= ;;
8959 *) srcdirpre='$(srcdir)/' ;;
8960 esac
8961 POFILES=
8962 UPDATEPOFILES=
8963 DUMMYPOFILES=
8964 GMOFILES=
8965 for lang in $ALL_LINGUAS; do
8966 POFILES="$POFILES $srcdirpre$lang.po"
8967 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8968 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8969 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8970 done
8971 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8972 # environment variable.
8973 INST_LINGUAS=
8974 if test -n "$ALL_LINGUAS"; then
8975 for presentlang in $ALL_LINGUAS; do
8976 useit=no
8977 if test "%UNSET%" != "$LINGUAS"; then
8978 desiredlanguages="$LINGUAS"
8979 else
8980 desiredlanguages="$ALL_LINGUAS"
8981 fi
8982 for desiredlang in $desiredlanguages; do
8983 # Use the presentlang catalog if desiredlang is
8984 # a. equal to presentlang, or
8985 # b. a variant of presentlang (because in this case,
8986 # presentlang can be used as a fallback for messages
8987 # which are not translated in the desiredlang catalog).
8988 case "$desiredlang" in
8989 "$presentlang"*) useit=yes;;
8990 esac
8991 done
8992 if test $useit = yes; then
8993 INST_LINGUAS="$INST_LINGUAS $presentlang"
8994 fi
8995 done
8996 fi
8997 CATALOGS=
8998 if test -n "$INST_LINGUAS"; then
8999 for lang in $INST_LINGUAS; do
9000 CATALOGS="$CATALOGS $lang.gmo"
9001 done
9002 fi
9003 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9004 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"
9005 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9006 if test -f "$f"; then
9007 case "$f" in
9008 *.orig | *.bak | *~) ;;
9009 *) cat "$f" >> "$ac_dir/Makefile" ;;
9010 esac
9011 fi
9012 done
9013 fi
9014 ;;
9015 esac
9016 done ;;
9017 "default":C) make -s dirs ;;
9018
9019 esac
9020done # for ac_tag
9021
9022
0e5943eb 9023as_fn_exit 0
da6ee469 9024_ACEOF
da6ee469
JF
9025ac_clean_files=$ac_clean_files_save
9026
0e5943eb
JF
9027test $ac_write_fail = 0 ||
9028 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9029
da6ee469
JF
9030
9031# configure is writing to config.log, and then calls config.status.
9032# config.status does its own redirection, appending to config.log.
9033# Unfortunately, on DOS this fails, as config.log is still kept open
9034# by configure, so config.status won't be able to write to it; its
9035# output is simply discarded. So we exec the FD to /dev/null,
9036# effectively closing config.log, so it can be properly (re)opened and
9037# appended to by config.status. When coming back to configure, we
9038# need to make the FD available again.
9039if test "$no_create" != yes; then
9040 ac_cs_success=:
9041 ac_config_status_args=
9042 test "$silent" = yes &&
9043 ac_config_status_args="$ac_config_status_args --quiet"
9044 exec 5>/dev/null
9045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9046 exec 5>>config.log
9047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9048 # would make configure fail if this is the last instruction.
0e5943eb
JF
9049 $ac_cs_success || as_fn_exit $?
9050fi
9051if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9053$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
da6ee469
JF
9054fi
9055