VirtualBox

source: kBuild/vendor/gnumake/3.82/configure

最後變更 在這個檔案是 2579,由 bird 提交於 13 年 前

Importing make-3.82.tar.bz2 (md5sum 1a11100f3c63fcf5753818e59d63088f) with --auto-props but no keywords.

檔案大小: 308.5 KB
 
1#! /bin/sh
2# From configure.in Id: configure.in,v 1.156 2010/07/28 05:39:50 psmith Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.65 for GNU make 3.82.
5#
6# Report bugs to <[email protected]>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11# Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order. Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" "" $as_nl"
93
94# Find who we are. Look in the path if we contain no directory separator.
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 else
234 $as_echo "$0: Please tell [email protected] and [email protected]
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239 fi
240 exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258 { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267 return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275 set +e
276 as_fn_set_status $1
277 exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 fi
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382else
383 as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388else
389 as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394else
395 as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465*)
466 ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490else
491 as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533test -n "$DJDIR" || exec 7<&0 </dev/null
534exec 6>&1
535
536# Name of the host.
537# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538# so uname gets run too.
539ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
541#
542# Initializations.
543#
544ac_default_prefix=/usr/local
545ac_clean_files=
546ac_config_libobj_dir=.
547LIBOBJS=
548cross_compiling=no
549subdirs=
550MFLAGS=
551MAKEFLAGS=
552
553# Identity of this package.
554PACKAGE_NAME='GNU make'
555PACKAGE_TARNAME='make'
556PACKAGE_VERSION='3.82'
557PACKAGE_STRING='GNU make 3.82'
558PACKAGE_BUGREPORT='[email protected]'
559PACKAGE_URL='http://www.gnu.org/software/make/'
560
561ac_unique_file="vpath.c"
562# Factoring default headers for most tests.
563ac_includes_default="\
564#include <stdio.h>
565#ifdef HAVE_SYS_TYPES_H
566# include <sys/types.h>
567#endif
568#ifdef HAVE_SYS_STAT_H
569# include <sys/stat.h>
570#endif
571#ifdef STDC_HEADERS
572# include <stdlib.h>
573# include <stddef.h>
574#else
575# ifdef HAVE_STDLIB_H
576# include <stdlib.h>
577# endif
578#endif
579#ifdef HAVE_STRING_H
580# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581# include <memory.h>
582# endif
583# include <string.h>
584#endif
585#ifdef HAVE_STRINGS_H
586# include <strings.h>
587#endif
588#ifdef HAVE_INTTYPES_H
589# include <inttypes.h>
590#endif
591#ifdef HAVE_STDINT_H
592# include <stdint.h>
593#endif
594#ifdef HAVE_UNISTD_H
595# include <unistd.h>
596#endif"
597
598ac_subst_vars='am__EXEEXT_FALSE
599am__EXEEXT_TRUE
600LTLIBOBJS
601WINDOWSENV_FALSE
602WINDOWSENV_TRUE
603MAKE_HOST
604USE_LOCAL_GLOB_FALSE
605USE_LOCAL_GLOB_TRUE
606GLOBLIB
607GLOBINC
608USE_CUSTOMS_FALSE
609USE_CUSTOMS_TRUE
610REMOTE
611GETLOADAVG_LIBS
612KMEM_GROUP
613NEED_SETGID
614LIBOBJS
615ALLOCA
616POSUB
617LTLIBINTL
618LIBINTL
619INTLLIBS
620LTLIBICONV
621LIBICONV
622MSGMERGE
623XGETTEXT
624GMSGFMT
625MSGFMT
626USE_NLS
627MKINSTALLDIRS
628EGREP
629GREP
630host_os
631host_vendor
632host_cpu
633host
634build_os
635build_vendor
636build_cpu
637build
638PERL
639AR
640CPP
641RANLIB
642am__fastdepCC_FALSE
643am__fastdepCC_TRUE
644CCDEPMODE
645AMDEPBACKSLASH
646AMDEP_FALSE
647AMDEP_TRUE
648am__quote
649am__include
650DEPDIR
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658am__untar
659am__tar
660AMTAR
661am__leading_dot
662SET_MAKE
663AWK
664mkdir_p
665MKDIR_P
666INSTALL_STRIP_PROGRAM
667STRIP
668install_sh
669MAKEINFO
670AUTOHEADER
671AUTOMAKE
672AUTOCONF
673ACLOCAL
674VERSION
675PACKAGE
676CYGPATH_W
677am__isrc
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_alias
682host_alias
683build_alias
684LIBS
685ECHO_T
686ECHO_N
687ECHO_C
688DEFS
689mandir
690localedir
691libdir
692psdir
693pdfdir
694dvidir
695htmldir
696infodir
697docdir
698oldincludedir
699includedir
700localstatedir
701sharedstatedir
702sysconfdir
703datadir
704datarootdir
705libexecdir
706sbindir
707bindir
708program_transform_name
709prefix
710exec_prefix
711PACKAGE_URL
712PACKAGE_BUGREPORT
713PACKAGE_STRING
714PACKAGE_VERSION
715PACKAGE_TARNAME
716PACKAGE_NAME
717PATH_SEPARATOR
718SHELL'
719ac_subst_files='MAINT_MAKEFILE'
720ac_user_opts='
721enable_option_checking
722enable_dependency_tracking
723enable_nls
724with_gnu_ld
725enable_rpath
726with_libiconv_prefix
727with_libintl_prefix
728enable_largefile
729with_customs
730enable_case_insensitive_file_system
731enable_job_server
732with_dmalloc
733'
734 ac_precious_vars='build_alias
735host_alias
736target_alias
737CC
738CFLAGS
739LDFLAGS
740LIBS
741CPPFLAGS
742CPP'
743
744
745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
748ac_unrecognized_opts=
749ac_unrecognized_sep=
750# The variables have the same names as the options, with
751# dashes changed to underlines.
752cache_file=/dev/null
753exec_prefix=NONE
754no_create=
755no_recursion=
756prefix=NONE
757program_prefix=NONE
758program_suffix=NONE
759program_transform_name=s,x,x,
760silent=
761site=
762srcdir=
763verbose=
764x_includes=NONE
765x_libraries=NONE
766
767# Installation directory options.
768# These are left unexpanded so users can "make install exec_prefix=/foo"
769# and all the variables that are supposed to be based on exec_prefix
770# by default will actually change.
771# Use braces instead of parens because sh, perl, etc. also accept them.
772# (The list follows the same order as the GNU Coding Standards.)
773bindir='${exec_prefix}/bin'
774sbindir='${exec_prefix}/sbin'
775libexecdir='${exec_prefix}/libexec'
776datarootdir='${prefix}/share'
777datadir='${datarootdir}'
778sysconfdir='${prefix}/etc'
779sharedstatedir='${prefix}/com'
780localstatedir='${prefix}/var'
781includedir='${prefix}/include'
782oldincludedir='/usr/include'
783docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784infodir='${datarootdir}/info'
785htmldir='${docdir}'
786dvidir='${docdir}'
787pdfdir='${docdir}'
788psdir='${docdir}'
789libdir='${exec_prefix}/lib'
790localedir='${datarootdir}/locale'
791mandir='${datarootdir}/man'
792
793ac_prev=
794ac_dashdash=
795for ac_option
796do
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
802 fi
803
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
808
809 # Accept the important Cygnus configure options, so we can diagnose typos.
810
811 case $ac_dashdash$ac_option in
812 --)
813 ac_dashdash=yes ;;
814
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
819
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
824
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
831
832 --config-cache | -C)
833 cache_file=config.cache ;;
834
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
839
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
846
847 -disable-* | --disable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
855 *"
856"enable_$ac_useropt"
857"*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=no ;;
862
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
867
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
872
873 -enable-* | --enable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
881 *"
882"enable_$ac_useropt"
883"*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=\$ac_optarg ;;
888
889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891 | --exec | --exe | --ex)
892 ac_prev=exec_prefix ;;
893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895 | --exec=* | --exe=* | --ex=*)
896 exec_prefix=$ac_optarg ;;
897
898 -gas | --gas | --ga | --g)
899 # Obsolete; use --with-gas.
900 with_gas=yes ;;
901
902 -help | --help | --hel | --he | -h)
903 ac_init_help=long ;;
904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905 ac_init_help=recursive ;;
906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907 ac_init_help=short ;;
908
909 -host | --host | --hos | --ho)
910 ac_prev=host_alias ;;
911 -host=* | --host=* | --hos=* | --ho=*)
912 host_alias=$ac_optarg ;;
913
914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915 ac_prev=htmldir ;;
916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917 | --ht=*)
918 htmldir=$ac_optarg ;;
919
920 -includedir | --includedir | --includedi | --included | --include \
921 | --includ | --inclu | --incl | --inc)
922 ac_prev=includedir ;;
923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924 | --includ=* | --inclu=* | --incl=* | --inc=*)
925 includedir=$ac_optarg ;;
926
927 -infodir | --infodir | --infodi | --infod | --info | --inf)
928 ac_prev=infodir ;;
929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930 infodir=$ac_optarg ;;
931
932 -libdir | --libdir | --libdi | --libd)
933 ac_prev=libdir ;;
934 -libdir=* | --libdir=* | --libdi=* | --libd=*)
935 libdir=$ac_optarg ;;
936
937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938 | --libexe | --libex | --libe)
939 ac_prev=libexecdir ;;
940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941 | --libexe=* | --libex=* | --libe=*)
942 libexecdir=$ac_optarg ;;
943
944 -localedir | --localedir | --localedi | --localed | --locale)
945 ac_prev=localedir ;;
946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947 localedir=$ac_optarg ;;
948
949 -localstatedir | --localstatedir | --localstatedi | --localstated \
950 | --localstate | --localstat | --localsta | --localst | --locals)
951 ac_prev=localstatedir ;;
952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954 localstatedir=$ac_optarg ;;
955
956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957 ac_prev=mandir ;;
958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959 mandir=$ac_optarg ;;
960
961 -nfp | --nfp | --nf)
962 # Obsolete; use --without-fp.
963 with_fp=no ;;
964
965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966 | --no-cr | --no-c | -n)
967 no_create=yes ;;
968
969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971 no_recursion=yes ;;
972
973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975 | --oldin | --oldi | --old | --ol | --o)
976 ac_prev=oldincludedir ;;
977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980 oldincludedir=$ac_optarg ;;
981
982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983 ac_prev=prefix ;;
984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985 prefix=$ac_optarg ;;
986
987 -program-prefix | --program-prefix | --program-prefi | --program-pref \
988 | --program-pre | --program-pr | --program-p)
989 ac_prev=program_prefix ;;
990 -program-prefix=* | --program-prefix=* | --program-prefi=* \
991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992 program_prefix=$ac_optarg ;;
993
994 -program-suffix | --program-suffix | --program-suffi | --program-suff \
995 | --program-suf | --program-su | --program-s)
996 ac_prev=program_suffix ;;
997 -program-suffix=* | --program-suffix=* | --program-suffi=* \
998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999 program_suffix=$ac_optarg ;;
1000
1001 -program-transform-name | --program-transform-name \
1002 | --program-transform-nam | --program-transform-na \
1003 | --program-transform-n | --program-transform- \
1004 | --program-transform | --program-transfor \
1005 | --program-transfo | --program-transf \
1006 | --program-trans | --program-tran \
1007 | --progr-tra | --program-tr | --program-t)
1008 ac_prev=program_transform_name ;;
1009 -program-transform-name=* | --program-transform-name=* \
1010 | --program-transform-nam=* | --program-transform-na=* \
1011 | --program-transform-n=* | --program-transform-=* \
1012 | --program-transform=* | --program-transfor=* \
1013 | --program-transfo=* | --program-transf=* \
1014 | --program-trans=* | --program-tran=* \
1015 | --progr-tra=* | --program-tr=* | --program-t=*)
1016 program_transform_name=$ac_optarg ;;
1017
1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019 ac_prev=pdfdir ;;
1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021 pdfdir=$ac_optarg ;;
1022
1023 -psdir | --psdir | --psdi | --psd | --ps)
1024 ac_prev=psdir ;;
1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026 psdir=$ac_optarg ;;
1027
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1030 silent=yes ;;
1031
1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033 ac_prev=sbindir ;;
1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035 | --sbi=* | --sb=*)
1036 sbindir=$ac_optarg ;;
1037
1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040 | --sharedst | --shareds | --shared | --share | --shar \
1041 | --sha | --sh)
1042 ac_prev=sharedstatedir ;;
1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046 | --sha=* | --sh=*)
1047 sharedstatedir=$ac_optarg ;;
1048
1049 -site | --site | --sit)
1050 ac_prev=site ;;
1051 -site=* | --site=* | --sit=*)
1052 site=$ac_optarg ;;
1053
1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055 ac_prev=srcdir ;;
1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057 srcdir=$ac_optarg ;;
1058
1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060 | --syscon | --sysco | --sysc | --sys | --sy)
1061 ac_prev=sysconfdir ;;
1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064 sysconfdir=$ac_optarg ;;
1065
1066 -target | --target | --targe | --targ | --tar | --ta | --t)
1067 ac_prev=target_alias ;;
1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069 target_alias=$ac_optarg ;;
1070
1071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072 verbose=yes ;;
1073
1074 -version | --version | --versio | --versi | --vers | -V)
1075 ac_init_version=: ;;
1076
1077 -with-* | --with-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid package name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"with_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=\$ac_optarg ;;
1092
1093 -without-* | --without-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102"with_$ac_useropt"
1103"*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=no ;;
1108
1109 --x)
1110 # Obsolete; use --with-x.
1111 with_x=yes ;;
1112
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1119
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1126
1127 -*) as_fn_error "unrecognized option: \`$ac_option'
1128Try \`$0 --help' for more information."
1129 ;;
1130
1131 *=*)
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 case $ac_envvar in #(
1135 '' | [0-9]* | *[!_$as_cr_alnum]* )
1136 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137 esac
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1140
1141 *)
1142 # FIXME: should be removed in autoconf 3.0.
1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147 ;;
1148
1149 esac
1150done
1151
1152if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 as_fn_error "missing argument to $ac_option"
1155fi
1156
1157if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1159 no) ;;
1160 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 esac
1163fi
1164
1165# Check all directory arguments for consistency.
1166for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
1170do
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1173 case $ac_val in
1174 */ )
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1177 esac
1178 # Be sure to have absolute directory names.
1179 case $ac_val in
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182 esac
1183 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184done
1185
1186# There might be people who depend on the old broken behavior: `$host'
1187# used to hold the argument of --host etc.
1188# FIXME: To remove some day.
1189build=$build_alias
1190host=$host_alias
1191target=$target_alias
1192
1193# FIXME: To remove some day.
1194if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198 If a cross compiler is detected then cross compile mode will be used." >&2
1199 elif test "x$build_alias" != "x$host_alias"; then
1200 cross_compiling=yes
1201 fi
1202fi
1203
1204ac_tool_prefix=
1205test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206
1207test "$silent" = yes && exec 6>/dev/null
1208
1209
1210ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211ac_ls_di=`ls -di .` &&
1212ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 as_fn_error "working directory cannot be determined"
1214test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 as_fn_error "pwd does not report name of working directory"
1216
1217
1218# Find the source files, if location was not specified.
1219if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$as_myself" ||
1223$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1225 X"$as_myself" : 'X\(//\)$' \| \
1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227$as_echo X"$as_myself" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\/\)[^/].*/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\).*/{
1241 s//\1/
1242 q
1243 }
1244 s/.*/./; q'`
1245 srcdir=$ac_confdir
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 srcdir=..
1248 fi
1249else
1250 ac_srcdir_defaulted=no
1251fi
1252if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255fi
1256ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257ac_abs_confdir=`(
1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259 pwd)`
1260# When building in place, set srcdir=.
1261if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 srcdir=.
1263fi
1264# Remove unnecessary trailing slashes from srcdir.
1265# Double slashes in file names in object file debugging info
1266# mess up M-x gdb in Emacs.
1267case $srcdir in
1268*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269esac
1270for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275done
1276
1277#
1278# Report the --help message.
1279#
1280if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1283 cat <<_ACEOF
1284\`configure' configures GNU make 3.82 to adapt to many kinds of systems.
1285
1286Usage: $0 [OPTION]... [VAR=VALUE]...
1287
1288To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289VAR=VALUE. See below for descriptions of some of the useful variables.
1290
1291Defaults for the options are specified in brackets.
1292
1293Configuration:
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303
1304Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 [PREFIX]
1309
1310By default, \`make install' will install all the files in
1311\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313for instance \`--prefix=\$HOME'.
1314
1315For better control, use the options below.
1316
1317Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/make]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1337_ACEOF
1338
1339 cat <<\_ACEOF
1340
1341Program names:
1342 --program-prefix=PREFIX prepend PREFIX to installed program names
1343 --program-suffix=SUFFIX append SUFFIX to installed program names
1344 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1345
1346System types:
1347 --build=BUILD configure for building on BUILD [guessed]
1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1349_ACEOF
1350fi
1351
1352if test -n "$ac_init_help"; then
1353 case $ac_init_help in
1354 short | recursive ) echo "Configuration of GNU make 3.82:";;
1355 esac
1356 cat <<\_ACEOF
1357
1358Optional Features:
1359 --disable-option-checking ignore unrecognized --enable/--with options
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --disable-dependency-tracking speeds up one-time build
1363 --enable-dependency-tracking do not reject slow dependency extractors
1364 --disable-nls do not use Native Language Support
1365 --disable-rpath do not hardcode runtime library paths
1366 --disable-largefile omit support for large files
1367 --enable-case-insensitive-file-system
1368 assume file systems are case insensitive
1369 --disable-job-server disallow recursive make communication during -jN
1370
1371Optional Packages:
1372 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1373 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1374 --with-gnu-ld assume the C compiler uses GNU ld default=no
1375 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1376 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1377 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1378 --without-libintl-prefix don't search for libintl in includedir and libdir
1379 --with-customs=DIR enable remote jobs via Customs--see README.customs
1380 --with-dmalloc use dmalloc, as in
1381 http://www.dmalloc.com/dmalloc.tar.gz
1382
1383Some influential environment variables:
1384 CC C compiler command
1385 CFLAGS C compiler flags
1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1387 nonstandard directory <lib dir>
1388 LIBS libraries to pass to the linker, e.g. -l<library>
1389 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1390 you have headers in a nonstandard directory <include dir>
1391 CPP C preprocessor
1392
1393Use these variables to override the choices made by `configure' or to help
1394it to find libraries and programs with nonstandard names/locations.
1395
1396Report bugs to <[email protected]>.
1397GNU make home page: <http://www.gnu.org/software/make/>.
1398General help using GNU software: <http://www.gnu.org/gethelp/>.
1399_ACEOF
1400ac_status=$?
1401fi
1402
1403if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 continue
1409 ac_builddir=.
1410
1411case "$ac_dir" in
1412.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413*)
1414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421esac
1422ac_abs_top_builddir=$ac_pwd
1423ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424# for backward compatibility:
1425ac_top_builddir=$ac_top_build_prefix
1426
1427case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440esac
1441ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1456fi
1457
1458test -n "$ac_init_help" && exit $ac_status
1459if $ac_init_version; then
1460 cat <<\_ACEOF
1461GNU make configure 3.82
1462generated by GNU Autoconf 2.65
1463
1464Copyright (C) 2009 Free Software Foundation, Inc.
1465This configure script is free software; the Free Software Foundation
1466gives unlimited permission to copy, distribute and modify it.
1467_ACEOF
1468 exit
1469fi
1470
1471## ------------------------ ##
1472## Autoconf initialization. ##
1473## ------------------------ ##
1474
1475# ac_fn_c_try_compile LINENO
1476# --------------------------
1477# Try to compile conftest.$ac_ext, and return whether this succeeded.
1478ac_fn_c_try_compile ()
1479{
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext
1482 if { { ac_try="$ac_compile"
1483case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486esac
1487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488$as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1495 fi
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext; then :
1501 ac_retval=0
1502else
1503 $as_echo "$as_me: failed program was:" >&5
1504sed 's/^/| /' conftest.$ac_ext >&5
1505
1506 ac_retval=1
1507fi
1508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509 as_fn_set_status $ac_retval
1510
1511} # ac_fn_c_try_compile
1512
1513# ac_fn_c_try_cpp LINENO
1514# ----------------------
1515# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1516ac_fn_c_try_cpp ()
1517{
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 if { { ac_try="$ac_cpp conftest.$ac_ext"
1520case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } >/dev/null && {
1535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 }; then :
1538 ac_retval=0
1539else
1540 $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544fi
1545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546 as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_cpp
1549
1550# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1551# -------------------------------------------------------
1552# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1553# the include files in INCLUDES and setting the cache variable VAR
1554# accordingly.
1555ac_fn_c_check_header_mongrel ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1560$as_echo_n "checking for $2... " >&6; }
1561if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1562 $as_echo_n "(cached) " >&6
1563fi
1564eval ac_res=\$$3
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566$as_echo "$ac_res" >&6; }
1567else
1568 # Is the header compilable?
1569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1570$as_echo_n "checking $2 usability... " >&6; }
1571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572/* end confdefs.h. */
1573$4
1574#include <$2>
1575_ACEOF
1576if ac_fn_c_try_compile "$LINENO"; then :
1577 ac_header_compiler=yes
1578else
1579 ac_header_compiler=no
1580fi
1581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1583$as_echo "$ac_header_compiler" >&6; }
1584
1585# Is the header present?
1586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1587$as_echo_n "checking $2 presence... " >&6; }
1588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h. */
1590#include <$2>
1591_ACEOF
1592if ac_fn_c_try_cpp "$LINENO"; then :
1593 ac_header_preproc=yes
1594else
1595 ac_header_preproc=no
1596fi
1597rm -f conftest.err conftest.$ac_ext
1598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1599$as_echo "$ac_header_preproc" >&6; }
1600
1601# So? What about this header?
1602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1603 yes:no: )
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1605$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1607$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1608 ;;
1609 no:yes:* )
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1611$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1613$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1615$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1617$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1619$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1620( cat <<\_ASBOX
1621## ------------------------------- ##
1622## Report this to [email protected] ##
1623## ------------------------------- ##
1624_ASBOX
1625 ) | sed "s/^/$as_me: WARNING: /" >&2
1626 ;;
1627esac
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629$as_echo_n "checking for $2... " >&6; }
1630if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1631 $as_echo_n "(cached) " >&6
1632else
1633 eval "$3=\$ac_header_compiler"
1634fi
1635eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638fi
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640
1641} # ac_fn_c_check_header_mongrel
1642
1643# ac_fn_c_try_run LINENO
1644# ----------------------
1645# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1646# that executables *can* be run.
1647ac_fn_c_try_run ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_link"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_link") 2>&5
1658 ac_status=$?
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1661 { { case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_try") 2>&5
1668 ac_status=$?
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; }; }; then :
1671 ac_retval=0
1672else
1673 $as_echo "$as_me: program exited with status $ac_status" >&5
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=$ac_status
1678fi
1679 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_run
1684
1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686# -------------------------------------------------------
1687# Tests whether HEADER exists and can be compiled using the include files in
1688# INCLUDES, setting the cache variable VAR accordingly.
1689ac_fn_c_check_header_compile ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695 $as_echo_n "(cached) " >&6
1696else
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h. */
1699$4
1700#include <$2>
1701_ACEOF
1702if ac_fn_c_try_compile "$LINENO"; then :
1703 eval "$3=yes"
1704else
1705 eval "$3=no"
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713
1714} # ac_fn_c_check_header_compile
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
1743 $as_test_x conftest$ac_exeext
1744 }; then :
1745 ac_retval=0
1746else
1747 $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=1
1751fi
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1763# -------------------------------------------
1764# Tests whether TYPE exists after having included INCLUDES, setting cache
1765# variable VAR accordingly.
1766ac_fn_c_check_type ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1773else
1774 eval "$3=no"
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h. */
1777$4
1778int
1779main ()
1780{
1781if (sizeof ($2))
1782 return 0;
1783 ;
1784 return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790$4
1791int
1792main ()
1793{
1794if (sizeof (($2)))
1795 return 0;
1796 ;
1797 return 0;
1798}
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801
1802else
1803 eval "$3=yes"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808fi
1809eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814} # ac_fn_c_check_type
1815
1816# ac_fn_c_check_func LINENO FUNC VAR
1817# ----------------------------------
1818# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819ac_fn_c_check_func ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831#define $2 innocuous_$2
1832
1833/* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1837
1838#ifdef __STDC__
1839# include <limits.h>
1840#else
1841# include <assert.h>
1842#endif
1843
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main ()
1862{
1863return $2 ();
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881} # ac_fn_c_check_func
1882
1883# ac_fn_c_check_decl LINENO SYMBOL VAR
1884# ------------------------------------
1885# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1886ac_fn_c_check_decl ()
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1890$as_echo_n "checking whether $2 is declared... " >&6; }
1891if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896$4
1897int
1898main ()
1899{
1900#ifndef $2
1901 (void) $2;
1902#endif
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910else
1911 eval "$3=no"
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920} # ac_fn_c_check_decl
1921
1922# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1923# ----------------------------------------------------
1924# Tries to find if the field MEMBER exists in type AGGR, after including
1925# INCLUDES, setting cache variable VAR accordingly.
1926ac_fn_c_check_member ()
1927{
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1930$as_echo_n "checking for $2.$3... " >&6; }
1931if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1933else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$5
1937int
1938main ()
1939{
1940static $2 ac_aggr;
1941if (ac_aggr.$3)
1942return 0;
1943 ;
1944 return 0;
1945}
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$4=yes"
1949else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952$5
1953int
1954main ()
1955{
1956static $2 ac_aggr;
1957if (sizeof ac_aggr.$3)
1958return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$4=yes"
1965else
1966 eval "$4=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972eval ac_res=\$$4
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977} # ac_fn_c_check_member
1978cat >config.log <<_ACEOF
1979This file contains any messages produced by compilers while
1980running configure, to aid debugging if configure makes a mistake.
1981
1982It was created by GNU make $as_me 3.82, which was
1983generated by GNU Autoconf 2.65. Invocation command line was
1984
1985 $ $0 $@
1986
1987_ACEOF
1988exec 5>>config.log
1989{
1990cat <<_ASUNAME
1991## --------- ##
1992## Platform. ##
1993## --------- ##
1994
1995hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1996uname -m = `(uname -m) 2>/dev/null || echo unknown`
1997uname -r = `(uname -r) 2>/dev/null || echo unknown`
1998uname -s = `(uname -s) 2>/dev/null || echo unknown`
1999uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000
2001/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2002/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2003
2004/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2005/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2006/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2008/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2009/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2010/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2011
2012_ASUNAME
2013
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 $as_echo "PATH: $as_dir"
2020 done
2021IFS=$as_save_IFS
2022
2023} >&5
2024
2025cat >&5 <<_ACEOF
2026
2027
2028## ----------- ##
2029## Core tests. ##
2030## ----------- ##
2031
2032_ACEOF
2033
2034
2035# Keep a trace of the command line.
2036# Strip out --no-create and --no-recursion so they do not pile up.
2037# Strip out --silent because we don't want to record it for future runs.
2038# Also quote any args containing shell meta-characters.
2039# Make two passes to allow for proper duplicate-argument suppression.
2040ac_configure_args=
2041ac_configure_args0=
2042ac_configure_args1=
2043ac_must_keep_next=false
2044for ac_pass in 1 2
2045do
2046 for ac_arg
2047 do
2048 case $ac_arg in
2049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2051 | -silent | --silent | --silen | --sile | --sil)
2052 continue ;;
2053 *\'*)
2054 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2055 esac
2056 case $ac_pass in
2057 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2058 2)
2059 as_fn_append ac_configure_args1 " '$ac_arg'"
2060 if test $ac_must_keep_next = true; then
2061 ac_must_keep_next=false # Got value, back to normal.
2062 else
2063 case $ac_arg in
2064 *=* | --config-cache | -C | -disable-* | --disable-* \
2065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2067 | -with-* | --with-* | -without-* | --without-* | --x)
2068 case "$ac_configure_args0 " in
2069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070 esac
2071 ;;
2072 -* ) ac_must_keep_next=true ;;
2073 esac
2074 fi
2075 as_fn_append ac_configure_args " '$ac_arg'"
2076 ;;
2077 esac
2078 done
2079done
2080{ ac_configure_args0=; unset ac_configure_args0;}
2081{ ac_configure_args1=; unset ac_configure_args1;}
2082
2083# When interrupted or exit'd, cleanup temporary files, and complete
2084# config.log. We remove comments because anyway the quotes in there
2085# would cause problems or look ugly.
2086# WARNING: Use '\'' to represent an apostrophe within the trap.
2087# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2088trap 'exit_status=$?
2089 # Save into config.log some information that might help in debugging.
2090 {
2091 echo
2092
2093 cat <<\_ASBOX
2094## ---------------- ##
2095## Cache variables. ##
2096## ---------------- ##
2097_ASBOX
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
2100(
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
2116 (set) 2>&1 |
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2119 sed -n \
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
2123 *)
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125 ;;
2126 esac |
2127 sort
2128)
2129 echo
2130
2131 cat <<\_ASBOX
2132## ----------------- ##
2133## Output variables. ##
2134## ----------------- ##
2135_ASBOX
2136 echo
2137 for ac_var in $ac_subst_vars
2138 do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2146
2147 if test -n "$ac_subst_files"; then
2148 cat <<\_ASBOX
2149## ------------------- ##
2150## File substitutions. ##
2151## ------------------- ##
2152_ASBOX
2153 echo
2154 for ac_var in $ac_subst_files
2155 do
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
2161 done | sort
2162 echo
2163 fi
2164
2165 if test -s confdefs.h; then
2166 cat <<\_ASBOX
2167## ----------- ##
2168## confdefs.h. ##
2169## ----------- ##
2170_ASBOX
2171 echo
2172 cat confdefs.h
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2182' 0
2183for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185done
2186ac_signal=0
2187
2188# confdefs.h avoids OS command line length limits that DEFS can exceed.
2189rm -f -r conftest* confdefs.h
2190
2191$as_echo "/* confdefs.h */" > confdefs.h
2192
2193# Predefined preprocessor variables.
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_NAME "$PACKAGE_NAME"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_VERSION "$PACKAGE_VERSION"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_STRING "$PACKAGE_STRING"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_URL "$PACKAGE_URL"
2217_ACEOF
2218
2219
2220# Let the site file select an alternate cache file if it wants to.
2221# Prefer an explicitly selected file to automatically selected ones.
2222ac_site_file1=NONE
2223ac_site_file2=NONE
2224if test -n "$CONFIG_SITE"; then
2225 ac_site_file1=$CONFIG_SITE
2226elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2229else
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2232fi
2233for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234do
2235 test "x$ac_site_file" = xNONE && continue
2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2240 . "$ac_site_file"
2241 fi
2242done
2243
2244if test -r "$cache_file"; then
2245 # Some versions of bash will fail to source /dev/null (special files
2246 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2247 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249$as_echo "$as_me: loading cache $cache_file" >&6;}
2250 case $cache_file in
2251 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252 *) . "./$cache_file";;
2253 esac
2254 fi
2255else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257$as_echo "$as_me: creating cache $cache_file" >&6;}
2258 >$cache_file
2259fi
2260
2261# Check that the precious variables saved in the cache have kept the same
2262# value.
2263ac_cache_corrupted=false
2264for ac_var in $ac_precious_vars; do
2265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266 eval ac_new_set=\$ac_env_${ac_var}_set
2267 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268 eval ac_new_val=\$ac_env_${ac_var}_value
2269 case $ac_old_set,$ac_new_set in
2270 set,)
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2273 ac_cache_corrupted=: ;;
2274 ,set)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2277 ac_cache_corrupted=: ;;
2278 ,);;
2279 *)
2280 if test "x$ac_old_val" != "x$ac_new_val"; then
2281 # differences in whitespace do not lead to failure.
2282 ac_old_val_w=`echo x $ac_old_val`
2283 ac_new_val_w=`echo x $ac_new_val`
2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287 ac_cache_corrupted=:
2288 else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291 eval $ac_var=\$ac_old_val
2292 fi
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2294$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2296$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2297 fi;;
2298 esac
2299 # Pass precious variables to config.status.
2300 if test "$ac_new_set" = set; then
2301 case $ac_new_val in
2302 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2303 *) ac_arg=$ac_var=$ac_new_val ;;
2304 esac
2305 case " $ac_configure_args " in
2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2307 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2308 esac
2309 fi
2310done
2311if $ac_cache_corrupted; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2317fi
2318## -------------------- ##
2319## Main body of script. ##
2320## -------------------- ##
2321
2322ac_ext=c
2323ac_cpp='$CPP $CPPFLAGS'
2324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
2328
2329
2330
2331
2332
2333# Autoconf setup
2334ac_aux_dir=
2335for ac_dir in config "$srcdir"/config; do
2336 for ac_t in install-sh install.sh shtool; do
2337 if test -f "$ac_dir/$ac_t"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/$ac_t -c"
2340 break 2
2341 fi
2342 done
2343done
2344if test -z "$ac_aux_dir"; then
2345 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2346fi
2347
2348# These three variables are undocumented and unsupported,
2349# and are intended to be withdrawn in a future Autoconf release.
2350# They can cause serious problems if a builder's source tree is in a directory
2351# whose full name contains unusual characters.
2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
2356
2357
2358ac_config_headers="$ac_config_headers config.h"
2359
2360
2361# Automake setup
2362am__api_version='1.11'
2363
2364# Find a good install program. We prefer a C program (faster),
2365# so one script is as good as another. But avoid the broken or
2366# incompatible versions:
2367# SysV /etc/install, /usr/sbin/install
2368# SunOS /usr/etc/install
2369# IRIX /sbin/install
2370# AIX /bin/install
2371# AmigaOS /C/install, which installs bootblocks on floppy discs
2372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375# OS/2's system install, which has a completely different semantic
2376# ./install, which can be erroneously created by make from ./install.sh.
2377# Reject install programs that cannot install multiple files.
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379$as_echo_n "checking for a BSD-compatible install... " >&6; }
2380if test -z "$INSTALL"; then
2381if test "${ac_cv_path_install+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 # Account for people who put trailing slashes in PATH elements.
2390case $as_dir/ in #((
2391 ./ | .// | /[cC]/* | \
2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394 /usr/ucb/* ) ;;
2395 *)
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2398 # by default.
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2405 :
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2409 :
2410 else
2411 rm -rf conftest.one conftest.two conftest.dir
2412 echo one > conftest.one
2413 echo two > conftest.two
2414 mkdir conftest.dir
2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416 test -s conftest.one && test -s conftest.two &&
2417 test -s conftest.dir/conftest.one &&
2418 test -s conftest.dir/conftest.two
2419 then
2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421 break 3
2422 fi
2423 fi
2424 fi
2425 done
2426 done
2427 ;;
2428esac
2429
2430 done
2431IFS=$as_save_IFS
2432
2433rm -rf conftest.one conftest.two conftest.dir
2434
2435fi
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2438 else
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 INSTALL=$ac_install_sh
2444 fi
2445fi
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447$as_echo "$INSTALL" >&6; }
2448
2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450# It thinks the first close brace ends the variable substitution.
2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454
2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458$as_echo_n "checking whether build environment is sane... " >&6; }
2459# Just in case
2460sleep 1
2461echo timestamp > conftest.file
2462# Reject unsafe characters in $srcdir or the absolute working directory
2463# name. Accept space and tab only in the latter.
2464am_lf='
2465'
2466case `pwd` in
2467 *[\\\"\#\$\&\'\`$am_lf]*)
2468 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2469esac
2470case $srcdir in
2471 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2472 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2473esac
2474
2475# Do `set' in a subshell so we don't clobber the current shell's
2476# arguments. Must try -L first in case configure is actually a
2477# symlink; some systems play weird games with the mod time of symlinks
2478# (eg FreeBSD returns the mod time of the symlink's containing
2479# directory).
2480if (
2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482 if test "$*" = "X"; then
2483 # -L didn't work.
2484 set X `ls -t "$srcdir/configure" conftest.file`
2485 fi
2486 rm -f conftest.file
2487 if test "$*" != "X $srcdir/configure conftest.file" \
2488 && test "$*" != "X conftest.file $srcdir/configure"; then
2489
2490 # If neither matched, then we have a broken ls. This can happen
2491 # if, for instance, CONFIG_SHELL is bash and it inherits a
2492 # broken ls alias from the environment. This has actually
2493 # happened. Such a system could not be considered "sane".
2494 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2495alias in your environment" "$LINENO" 5
2496 fi
2497
2498 test "$2" = conftest.file
2499 )
2500then
2501 # Ok.
2502 :
2503else
2504 as_fn_error "newly created file is older than distributed files!
2505Check your system clock" "$LINENO" 5
2506fi
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508$as_echo "yes" >&6; }
2509test "$program_prefix" != NONE &&
2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511# Use a double $ so make ignores it.
2512test "$program_suffix" != NONE &&
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514# Double any \ or $.
2515# By default was `s,x,x', remove it if useless.
2516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518
2519# expand $ac_aux_dir to an absolute path
2520am_aux_dir=`cd $ac_aux_dir && pwd`
2521
2522if test x"${MISSING+set}" != xset; then
2523 case $am_aux_dir in
2524 *\ * | *\ *)
2525 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526 *)
2527 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528 esac
2529fi
2530# Use eval to expand $SHELL
2531if eval "$MISSING --run true"; then
2532 am_missing_run="$MISSING --run "
2533else
2534 am_missing_run=
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2536$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2537fi
2538
2539if test x"${install_sh}" != xset; then
2540 case $am_aux_dir in
2541 *\ * | *\ *)
2542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543 *)
2544 install_sh="\${SHELL} $am_aux_dir/install-sh"
2545 esac
2546fi
2547
2548# Installed binaries are usually stripped using `strip' when the user
2549# run `make install-strip'. However `strip' might not be the right
2550# tool to use in cross-compilation environments, therefore Automake
2551# will honor the `STRIP' environment variable to overrule this program.
2552if test "$cross_compiling" != no; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555set dummy ${ac_tool_prefix}strip; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if test "${ac_cv_prog_STRIP+set}" = set; then :
2559 $as_echo_n "(cached) " >&6
2560else
2561 if test -n "$STRIP"; then
2562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575done
2576 done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581STRIP=$ac_cv_prog_STRIP
2582if test -n "$STRIP"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584$as_echo "$STRIP" >&6; }
2585else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591fi
2592if test -z "$ac_cv_prog_STRIP"; then
2593 ac_ct_STRIP=$STRIP
2594 # Extract the first word of "strip", so it can be a program name with args.
2595set dummy strip; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600else
2601 if test -n "$ac_ct_STRIP"; then
2602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_ac_ct_STRIP="strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615done
2616 done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622if test -n "$ac_ct_STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624$as_echo "$ac_ct_STRIP" >&6; }
2625else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630 if test "x$ac_ct_STRIP" = x; then
2631 STRIP=":"
2632 else
2633 case $cross_compiling:$ac_tool_warned in
2634yes:)
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637ac_tool_warned=yes ;;
2638esac
2639 STRIP=$ac_ct_STRIP
2640 fi
2641else
2642 STRIP="$ac_cv_prog_STRIP"
2643fi
2644
2645fi
2646INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650if test -z "$MKDIR_P"; then
2651 if test "${ac_cv_path_mkdir+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_prog in mkdir gmkdir; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663 'mkdir (GNU coreutils) '* | \
2664 'mkdir (coreutils) '* | \
2665 'mkdir (fileutils) '4.1*)
2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667 break 3;;
2668 esac
2669 done
2670 done
2671 done
2672IFS=$as_save_IFS
2673
2674fi
2675
2676 test -d ./--version && rmdir ./--version
2677 if test "${ac_cv_path_mkdir+set}" = set; then
2678 MKDIR_P="$ac_cv_path_mkdir -p"
2679 else
2680 # As a last resort, use the slow shell script. Don't cache a
2681 # value for MKDIR_P within a source directory, because that will
2682 # break other packages using the cache if that directory is
2683 # removed, or if the value is a relative name.
2684 MKDIR_P="$ac_install_sh -d"
2685 fi
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688$as_echo "$MKDIR_P" >&6; }
2689
2690mkdir_p="$MKDIR_P"
2691case $mkdir_p in
2692 [\\/$]* | ?:[\\/]*) ;;
2693 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2694esac
2695
2696for ac_prog in gawk mawk nawk awk
2697do
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699set dummy $ac_prog; ac_word=$2
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if test "${ac_cv_prog_AWK+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704else
2705 if test -n "$AWK"; then
2706 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_AWK="$ac_prog"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720 done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725AWK=$ac_cv_prog_AWK
2726if test -n "$AWK"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728$as_echo "$AWK" >&6; }
2729else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735 test -n "$AWK" && break
2736done
2737
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740set x ${MAKE-make}
2741ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744else
2745 cat >conftest.make <<\_ACEOF
2746SHELL = /bin/sh
2747all:
2748 @echo '@@@%%%=$(MAKE)=@@@%%%'
2749_ACEOF
2750# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2751case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752 *@@@%%%=?*=@@@%%%*)
2753 eval ac_cv_prog_make_${ac_make}_set=yes;;
2754 *)
2755 eval ac_cv_prog_make_${ac_make}_set=no;;
2756esac
2757rm -f conftest.make
2758fi
2759if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761$as_echo "yes" >&6; }
2762 SET_MAKE=
2763else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766 SET_MAKE="MAKE=${MAKE-make}"
2767fi
2768
2769rm -rf .tst 2>/dev/null
2770mkdir .tst 2>/dev/null
2771if test -d .tst; then
2772 am__leading_dot=.
2773else
2774 am__leading_dot=_
2775fi
2776rmdir .tst 2>/dev/null
2777
2778if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780 # is not polluted with repeated "-I."
2781 am__isrc=' -I$(srcdir)'
2782 # test to see if srcdir already configured
2783 if test -f $srcdir/config.status; then
2784 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785 fi
2786fi
2787
2788# test whether we have cygpath
2789if test -z "$CYGPATH_W"; then
2790 if (cygpath --version) >/dev/null 2>/dev/null; then
2791 CYGPATH_W='cygpath -w'
2792 else
2793 CYGPATH_W=echo
2794 fi
2795fi
2796
2797
2798# Define the identity of the package.
2799 PACKAGE='make'
2800 VERSION='3.82'
2801
2802
2803cat >>confdefs.h <<_ACEOF
2804#define PACKAGE "$PACKAGE"
2805_ACEOF
2806
2807
2808cat >>confdefs.h <<_ACEOF
2809#define VERSION "$VERSION"
2810_ACEOF
2811
2812# Some tools Automake needs.
2813
2814ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815
2816
2817AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818
2819
2820AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821
2822
2823AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824
2825
2826MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2828# We need awk for the "check" target. The system "awk" is bad on
2829# some platforms.
2830# Always define AMTAR for backward compatibility.
2831
2832AMTAR=${AMTAR-"${am_missing_run}tar"}
2833
2834am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2835
2836
2837
2838
2839
2840
2841# Checks for programs.
2842ac_ext=c
2843ac_cpp='$CPP $CPPFLAGS'
2844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869done
2870 done
2871IFS=$as_save_IFS
2872
2873fi
2874fi
2875CC=$ac_cv_prog_CC
2876if test -n "$CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878$as_echo "$CC" >&6; }
2879else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882fi
2883
2884
2885fi
2886if test -z "$ac_cv_prog_CC"; then
2887 ac_ct_CC=$CC
2888 # Extract the first word of "gcc", so it can be a program name with args.
2889set dummy gcc; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2894else
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_ac_ct_CC="gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909done
2910 done
2911IFS=$as_save_IFS
2912
2913fi
2914fi
2915ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916if test -n "$ac_ct_CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918$as_echo "$ac_ct_CC" >&6; }
2919else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924 if test "x$ac_ct_CC" = x; then
2925 CC=""
2926 else
2927 case $cross_compiling:$ac_tool_warned in
2928yes:)
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931ac_tool_warned=yes ;;
2932esac
2933 CC=$ac_ct_CC
2934 fi
2935else
2936 CC="$ac_cv_prog_CC"
2937fi
2938
2939if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}cc; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2947else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="${ac_tool_prefix}cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962done
2963 done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978 fi
2979fi
2980if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982set dummy cc; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if test "${ac_cv_prog_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990else
2991 ac_prog_rejected=no
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3001 continue
3002 fi
3003 ac_cv_prog_CC="cc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007done
3008 done
3009IFS=$as_save_IFS
3010
3011if test $ac_prog_rejected = yes; then
3012 # We found a bogon in the path, so make sure we never use it.
3013 set dummy $ac_cv_prog_CC
3014 shift
3015 if test $# != 0; then
3016 # We chose a different compiler from the bogus one.
3017 # However, it has the same basename, so the bogon will be chosen
3018 # first if we set CC to just the basename; use the full file name.
3019 shift
3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021 fi
3022fi
3023fi
3024fi
3025CC=$ac_cv_prog_CC
3026if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028$as_echo "$CC" >&6; }
3029else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034
3035fi
3036if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 for ac_prog in cl.exe
3039 do
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if test "${ac_cv_prog_CC+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3046else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061done
3062 done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077 test -n "$CC" && break
3078 done
3079fi
3080if test -z "$CC"; then
3081 ac_ct_CC=$CC
3082 for ac_prog in cl.exe
3083do
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085set dummy $ac_prog; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_ac_ct_CC="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106 done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114$as_echo "$ac_ct_CC" >&6; }
3115else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120
3121 test -n "$ac_ct_CC" && break
3122done
3123
3124 if test "x$ac_ct_CC" = x; then
3125 CC=""
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128yes:)
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131ac_tool_warned=yes ;;
3132esac
3133 CC=$ac_ct_CC
3134 fi
3135fi
3136
3137fi
3138
3139
3140test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142as_fn_error "no acceptable C compiler found in \$PATH
3143See \`config.log' for more details." "$LINENO" 5; }
3144
3145# Provide some information about the compiler.
3146$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147set X $ac_compile
3148ac_compiler=$2
3149for ac_option in --version -v -V -qversion; do
3150 { { ac_try="$ac_compiler $ac_option >&5"
3151case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156$as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3158 ac_status=$?
3159 if test -s conftest.err; then
3160 sed '10a\
3161... rest of stderr output deleted ...
3162 10q' conftest.err >conftest.er1
3163 cat conftest.er1 >&5
3164 fi
3165 rm -f conftest.er1 conftest.err
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3168done
3169
3170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181ac_clean_files_save=$ac_clean_files
3182ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183# Try to create an executable without -o first, disregard a.out.
3184# It will help us diagnose broken compilers, and finding out an intuition
3185# of exeext.
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187$as_echo_n "checking whether the C compiler works... " >&6; }
3188ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190# The possible output files:
3191ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193ac_rmfiles=
3194for ac_file in $ac_files
3195do
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199 esac
3200done
3201rm -f $ac_rmfiles
3202
3203if { { ac_try="$ac_link_default"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216# in a Makefile. We should not override ac_cv_exeext if it was cached,
3217# so that the user can short-circuit this test for compilers unknown to
3218# Autoconf.
3219for ac_file in $ac_files ''
3220do
3221 test -f "$ac_file" || continue
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224 ;;
3225 [ab].out )
3226 # We found the default executable, but exeext='' is most
3227 # certainly right.
3228 break;;
3229 *.* )
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231 then :; else
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 fi
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3238 # actually working.
3239 break;;
3240 * )
3241 break;;
3242 esac
3243done
3244test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246else
3247 ac_file=''
3248fi
3249if test -z "$ac_file"; then :
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252$as_echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257{ as_fn_set_status 77
3258as_fn_error "C compiler cannot create executables
3259See \`config.log' for more details." "$LINENO" 5; }; }
3260else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262$as_echo "yes" >&6; }
3263fi
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265$as_echo_n "checking for C compiler default output file name... " >&6; }
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; }
3268ac_exeext=$ac_cv_exeext
3269
3270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271ac_clean_files=$ac_clean_files_save
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273$as_echo_n "checking for suffix of executables... " >&6; }
3274if { { ac_try="$ac_link"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287# work properly (i.e., refer to `conftest.exe'), while it won't with
3288# `rm'.
3289for ac_file in conftest.exe conftest conftest.*; do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 break;;
3295 * ) break;;
3296 esac
3297done
3298else
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error "cannot compute suffix of executables: cannot compile and link
3302See \`config.log' for more details." "$LINENO" 5; }
3303fi
3304rm -f conftest conftest$ac_cv_exeext
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306$as_echo "$ac_cv_exeext" >&6; }
3307
3308rm -f conftest.$ac_ext
3309EXEEXT=$ac_cv_exeext
3310ac_exeext=$EXEEXT
3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h. */
3313#include <stdio.h>
3314int
3315main ()
3316{
3317FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
3319
3320 ;
3321 return 0;
3322}
3323_ACEOF
3324ac_clean_files="$ac_clean_files conftest.out"
3325# Check that the compiler produces executables we can run. If not, either
3326# the compiler is broken, or we cross compile.
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328$as_echo_n "checking whether we are cross compiling... " >&6; }
3329if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359as_fn_error "cannot run C compiled programs.
3360If you meant to cross compile, use \`--host'.
3361See \`config.log' for more details." "$LINENO" 5; }
3362 fi
3363 fi
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366$as_echo "$cross_compiling" >&6; }
3367
3368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371$as_echo_n "checking for suffix of object files... " >&6; }
3372if test "${ac_cv_objext+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3374else
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h. */
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386rm -f conftest.o conftest.obj
3387if { { ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compile") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403 break;;
3404 esac
3405done
3406else
3407 $as_echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error "cannot compute suffix of object files: cannot compile
3413See \`config.log' for more details." "$LINENO" 5; }
3414fi
3415rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418$as_echo "$ac_cv_objext" >&6; }
3419OBJEXT=$ac_cv_objext
3420ac_objext=$OBJEXT
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h. */
3428
3429int
3430main ()
3431{
3432#ifndef __GNUC__
3433 choke me
3434#endif
3435
3436 ;
3437 return 0;
3438}
3439_ACEOF
3440if ac_fn_c_try_compile "$LINENO"; then :
3441 ac_compiler_gnu=yes
3442else
3443 ac_compiler_gnu=no
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451if test $ac_compiler_gnu = yes; then
3452 GCC=yes
3453else
3454 GCC=
3455fi
3456ac_test_CFLAGS=${CFLAGS+set}
3457ac_save_CFLAGS=$CFLAGS
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459$as_echo_n "checking whether $CC accepts -g... " >&6; }
3460if test "${ac_cv_prog_cc_g+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462else
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no
3466 CFLAGS="-g"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
3478if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_g=yes
3480else
3481 CFLAGS=""
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h. */
3484
3485int
3486main ()
3487{
3488
3489 ;
3490 return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_compile "$LINENO"; then :
3494
3495else
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 CFLAGS="-g"
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h. */
3500
3501int
3502main ()
3503{
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_g=yes
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520$as_echo "$ac_cv_prog_cc_g" >&6; }
3521if test "$ac_test_CFLAGS" = set; then
3522 CFLAGS=$ac_save_CFLAGS
3523elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then
3525 CFLAGS="-g -O2"
3526 else
3527 CFLAGS="-g"
3528 fi
3529else
3530 if test "$GCC" = yes; then
3531 CFLAGS="-O2"
3532 else
3533 CFLAGS=
3534 fi
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538if test "${ac_cv_prog_cc_c89+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540else
3541 ac_cv_prog_cc_c89=no
3542ac_save_CC=$CC
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h. */
3545#include <stdarg.h>
3546#include <stdio.h>
3547#include <sys/types.h>
3548#include <sys/stat.h>
3549/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550struct buf { int x; };
3551FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552static char *e (p, i)
3553 char **p;
3554 int i;
3555{
3556 return p[i];
3557}
3558static char *f (char * (*g) (char **, int), char **p, ...)
3559{
3560 char *s;
3561 va_list v;
3562 va_start (v,p);
3563 s = g (p, va_arg (v,int));
3564 va_end (v);
3565 return s;
3566}
3567
3568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3569 function prototypes and stuff, but not '\xHH' hex character constants.
3570 These don't provoke an error unfortunately, instead are silently treated
3571 as 'x'. The following induces an error, until -std is added to get
3572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3573 array size at least. It's necessary to write '\x00'==0 to get something
3574 that's true only with -std. */
3575int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576
3577/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578 inside strings and character constants. */
3579#define FOO(x) 'x'
3580int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581
3582int test (int i, double x);
3583struct s1 {int (*f) (int a);};
3584struct s2 {int (*f) (double a);};
3585int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586int argc;
3587char **argv;
3588int
3589main ()
3590{
3591return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598do
3599 CC="$ac_save_CC $ac_arg"
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_c89=$ac_arg
3602fi
3603rm -f core conftest.err conftest.$ac_objext
3604 test "x$ac_cv_prog_cc_c89" != "xno" && break
3605done
3606rm -f conftest.$ac_ext
3607CC=$ac_save_CC
3608
3609fi
3610# AC_CACHE_VAL
3611case "x$ac_cv_prog_cc_c89" in
3612 x)
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614$as_echo "none needed" >&6; } ;;
3615 xno)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617$as_echo "unsupported" >&6; } ;;
3618 *)
3619 CC="$CC $ac_cv_prog_cc_c89"
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3621$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622esac
3623if test "x$ac_cv_prog_cc_c89" != xno; then :
3624
3625fi
3626
3627ac_ext=c
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632DEPDIR="${am__leading_dot}deps"
3633
3634ac_config_commands="$ac_config_commands depfiles"
3635
3636
3637am_make=${MAKE-make}
3638cat > confinc << 'END'
3639am__doit:
3640 @echo this is the am__doit target
3641.PHONY: am__doit
3642END
3643# If we don't find an include directive, just comment out the code.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3645$as_echo_n "checking for style of include used by $am_make... " >&6; }
3646am__include="#"
3647am__quote=
3648_am_result=none
3649# First try GNU make style include.
3650echo "include confinc" > confmf
3651# Ignore all kinds of additional output from `make'.
3652case `$am_make -s -f confmf 2> /dev/null` in #(
3653*the\ am__doit\ target*)
3654 am__include=include
3655 am__quote=
3656 _am_result=GNU
3657 ;;
3658esac
3659# Now try BSD make style include.
3660if test "$am__include" = "#"; then
3661 echo '.include "confinc"' > confmf
3662 case `$am_make -s -f confmf 2> /dev/null` in #(
3663 *the\ am__doit\ target*)
3664 am__include=.include
3665 am__quote="\""
3666 _am_result=BSD
3667 ;;
3668 esac
3669fi
3670
3671
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673$as_echo "$_am_result" >&6; }
3674rm -f confinc confmf
3675
3676# Check whether --enable-dependency-tracking was given.
3677if test "${enable_dependency_tracking+set}" = set; then :
3678 enableval=$enable_dependency_tracking;
3679fi
3680
3681if test "x$enable_dependency_tracking" != xno; then
3682 am_depcomp="$ac_aux_dir/depcomp"
3683 AMDEPBACKSLASH='\'
3684fi
3685 if test "x$enable_dependency_tracking" != xno; then
3686 AMDEP_TRUE=
3687 AMDEP_FALSE='#'
3688else
3689 AMDEP_TRUE='#'
3690 AMDEP_FALSE=
3691fi
3692
3693
3694
3695depcc="$CC" am_compiler_list=
3696
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3698$as_echo_n "checking dependency style of $depcc... " >&6; }
3699if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701else
3702 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3703 # We make a subdir and do the tests there. Otherwise we can end up
3704 # making bogus files that we don't know about and never remove. For
3705 # instance it was reported that on HP-UX the gcc test will end up
3706 # making a dummy file named `D' -- because `-MD' means `put the output
3707 # in D'.
3708 mkdir conftest.dir
3709 # Copy depcomp to subdir because otherwise we won't find it if we're
3710 # using a relative directory.
3711 cp "$am_depcomp" conftest.dir
3712 cd conftest.dir
3713 # We will build objects and dependencies in a subdirectory because
3714 # it helps to detect inapplicable dependency modes. For instance
3715 # both Tru64's cc and ICC support -MD to output dependencies as a
3716 # side effect of compilation, but ICC will put the dependencies in
3717 # the current directory while Tru64 will put them in the object
3718 # directory.
3719 mkdir sub
3720
3721 am_cv_CC_dependencies_compiler_type=none
3722 if test "$am_compiler_list" = ""; then
3723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724 fi
3725 am__universal=false
3726 case " $depcc " in #(
3727 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728 esac
3729
3730 for depmode in $am_compiler_list; do
3731 # Setup a source with many dependencies, because some compilers
3732 # like to wrap large dependency lists on column 80 (with \), and
3733 # we should not choose a depcomp mode which is confused by this.
3734 #
3735 # We need to recreate these files for each test, as the compiler may
3736 # overwrite some of them when testing with obscure command lines.
3737 # This happens at least with the AIX C compiler.
3738 : > sub/conftest.c
3739 for i in 1 2 3 4 5 6; do
3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742 # Solaris 8's {/usr,}/bin/sh.
3743 touch sub/conftst$i.h
3744 done
3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746
3747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3748 # mode. It turns out that the SunPro C++ compiler does not properly
3749 # handle `-M -o', and we need to detect this. Also, some Intel
3750 # versions had trouble with output in subdirs
3751 am__obj=sub/conftest.${OBJEXT-o}
3752 am__minus_obj="-o $am__obj"
3753 case $depmode in
3754 gcc)
3755 # This depmode causes a compiler race in universal mode.
3756 test "$am__universal" = false || continue
3757 ;;
3758 nosideeffect)
3759 # after this tag, mechanisms are not by side-effect, so they'll
3760 # only be used when explicitly requested
3761 if test "x$enable_dependency_tracking" = xyes; then
3762 continue
3763 else
3764 break
3765 fi
3766 ;;
3767 msvisualcpp | msvcmsys)
3768 # This compiler won't grok `-c -o', but also, the minuso test has
3769 # not run yet. These depmodes are late enough in the game, and
3770 # so weak that their functioning should not be impacted.
3771 am__obj=conftest.${OBJEXT-o}
3772 am__minus_obj=
3773 ;;
3774 none) break ;;
3775 esac
3776 if depmode=$depmode \
3777 source=sub/conftest.c object=$am__obj \
3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3780 >/dev/null 2>conftest.err &&
3781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785 # icc doesn't choke on unknown options, it will just issue warnings
3786 # or remarks (even with -Werror). So we grep stderr for any message
3787 # that says an option was ignored or not supported.
3788 # When given -MP, icc 7.0 and 7.1 complain thusly:
3789 # icc: Command line warning: ignoring option '-M'; no argument required
3790 # The diagnosis changed in icc 8.0:
3791 # icc: Command line remark: option '-MP' not supported
3792 if (grep 'ignoring option' conftest.err ||
3793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794 am_cv_CC_dependencies_compiler_type=$depmode
3795 break
3796 fi
3797 fi
3798 done
3799
3800 cd ..
3801 rm -rf conftest.dir
3802else
3803 am_cv_CC_dependencies_compiler_type=none
3804fi
3805
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3809CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
3811 if
3812 test "x$enable_dependency_tracking" != xno \
3813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814 am__fastdepCC_TRUE=
3815 am__fastdepCC_FALSE='#'
3816else
3817 am__fastdepCC_TRUE='#'
3818 am__fastdepCC_FALSE=
3819fi
3820
3821
3822
3823if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3825set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
3828if test "${ac_cv_prog_RANLIB+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3830else
3831 if test -n "$RANLIB"; then
3832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845done
3846 done
3847IFS=$as_save_IFS
3848
3849fi
3850fi
3851RANLIB=$ac_cv_prog_RANLIB
3852if test -n "$RANLIB"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3854$as_echo "$RANLIB" >&6; }
3855else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
3858fi
3859
3860
3861fi
3862if test -z "$ac_cv_prog_RANLIB"; then
3863 ac_ct_RANLIB=$RANLIB
3864 # Extract the first word of "ranlib", so it can be a program name with args.
3865set dummy ranlib; ac_word=$2
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867$as_echo_n "checking for $ac_word... " >&6; }
3868if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3870else
3871 if test -n "$ac_ct_RANLIB"; then
3872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_prog_ac_ct_RANLIB="ranlib"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885done
3886 done
3887IFS=$as_save_IFS
3888
3889fi
3890fi
3891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3892if test -n "$ac_ct_RANLIB"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3894$as_echo "$ac_ct_RANLIB" >&6; }
3895else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
3898fi
3899
3900 if test "x$ac_ct_RANLIB" = x; then
3901 RANLIB=":"
3902 else
3903 case $cross_compiling:$ac_tool_warned in
3904yes:)
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907ac_tool_warned=yes ;;
3908esac
3909 RANLIB=$ac_ct_RANLIB
3910 fi
3911else
3912 RANLIB="$ac_cv_prog_RANLIB"
3913fi
3914
3915ac_ext=c
3916ac_cpp='$CPP $CPPFLAGS'
3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3921$as_echo_n "checking how to run the C preprocessor... " >&6; }
3922# On Suns, sometimes $CPP names a directory.
3923if test -n "$CPP" && test -d "$CPP"; then
3924 CPP=
3925fi
3926if test -z "$CPP"; then
3927 if test "${ac_cv_prog_CPP+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
3929else
3930 # Double quotes because CPP needs to be expanded
3931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3932 do
3933 ac_preproc_ok=false
3934for ac_c_preproc_warn_flag in '' yes
3935do
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h. */
3944#ifdef __STDC__
3945# include <limits.h>
3946#else
3947# include <assert.h>
3948#endif
3949 Syntax error
3950_ACEOF
3951if ac_fn_c_try_cpp "$LINENO"; then :
3952
3953else
3954 # Broken: fails on valid input.
3955continue
3956fi
3957rm -f conftest.err conftest.$ac_ext
3958
3959 # OK, works on sane cases. Now check whether nonexistent headers
3960 # can be detected and how.
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h. */
3963#include <ac_nonexistent.h>
3964_ACEOF
3965if ac_fn_c_try_cpp "$LINENO"; then :
3966 # Broken: success on invalid input.
3967continue
3968else
3969 # Passes both tests.
3970ac_preproc_ok=:
3971break
3972fi
3973rm -f conftest.err conftest.$ac_ext
3974
3975done
3976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977rm -f conftest.err conftest.$ac_ext
3978if $ac_preproc_ok; then :
3979 break
3980fi
3981
3982 done
3983 ac_cv_prog_CPP=$CPP
3984
3985fi
3986 CPP=$ac_cv_prog_CPP
3987else
3988 ac_cv_prog_CPP=$CPP
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3991$as_echo "$CPP" >&6; }
3992ac_preproc_ok=false
3993for ac_c_preproc_warn_flag in '' yes
3994do
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h. */
4003#ifdef __STDC__
4004# include <limits.h>
4005#else
4006# include <assert.h>
4007#endif
4008 Syntax error
4009_ACEOF
4010if ac_fn_c_try_cpp "$LINENO"; then :
4011
4012else
4013 # Broken: fails on valid input.
4014continue
4015fi
4016rm -f conftest.err conftest.$ac_ext
4017
4018 # OK, works on sane cases. Now check whether nonexistent headers
4019 # can be detected and how.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h. */
4022#include <ac_nonexistent.h>
4023_ACEOF
4024if ac_fn_c_try_cpp "$LINENO"; then :
4025 # Broken: success on invalid input.
4026continue
4027else
4028 # Passes both tests.
4029ac_preproc_ok=:
4030break
4031fi
4032rm -f conftest.err conftest.$ac_ext
4033
4034done
4035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036rm -f conftest.err conftest.$ac_ext
4037if $ac_preproc_ok; then :
4038
4039else
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042as_fn_error "C preprocessor \"$CPP\" fails sanity check
4043See \`config.log' for more details." "$LINENO" 5; }
4044fi
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052# Extract the first word of "ar", so it can be a program name with args.
4053set dummy ar; ac_word=$2
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055$as_echo_n "checking for $ac_word... " >&6; }
4056if test "${ac_cv_prog_AR+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058else
4059 if test -n "$AR"; then
4060 ac_cv_prog_AR="$AR" # Let the user override the test.
4061else
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_AR="ar"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073done
4074 done
4075IFS=$as_save_IFS
4076
4077 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4078fi
4079fi
4080AR=$ac_cv_prog_AR
4081if test -n "$AR"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4083$as_echo "$AR" >&6; }
4084else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087fi
4088
4089
4090# Perl is needed for the test suite (only)
4091# Extract the first word of "perl", so it can be a program name with args.
4092set dummy perl; ac_word=$2
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094$as_echo_n "checking for $ac_word... " >&6; }
4095if test "${ac_cv_prog_PERL+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097else
4098 if test -n "$PERL"; then
4099 ac_cv_prog_PERL="$PERL" # Let the user override the test.
4100else
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_PERL="perl"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4111 fi
4112done
4113 done
4114IFS=$as_save_IFS
4115
4116 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
4117fi
4118fi
4119PERL=$ac_cv_prog_PERL
4120if test -n "$PERL"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4122$as_echo "$PERL" >&6; }
4123else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125$as_echo "no" >&6; }
4126fi
4127
4128
4129
4130# Specialized system macros
4131# Make sure we can run config.sub.
4132$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4133 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4136$as_echo_n "checking build system type... " >&6; }
4137if test "${ac_cv_build+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4139else
4140 ac_build_alias=$build_alias
4141test "x$ac_build_alias" = x &&
4142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4143test "x$ac_build_alias" = x &&
4144 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4145ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4146 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4147
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4150$as_echo "$ac_cv_build" >&6; }
4151case $ac_cv_build in
4152*-*-*) ;;
4153*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4154esac
4155build=$ac_cv_build
4156ac_save_IFS=$IFS; IFS='-'
4157set x $ac_cv_build
4158shift
4159build_cpu=$1
4160build_vendor=$2
4161shift; shift
4162# Remember, the first character of IFS is used to create $*,
4163# except with old shells:
4164build_os=$*
4165IFS=$ac_save_IFS
4166case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4167
4168
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4170$as_echo_n "checking host system type... " >&6; }
4171if test "${ac_cv_host+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173else
4174 if test "x$host_alias" = x; then
4175 ac_cv_host=$ac_cv_build
4176else
4177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4178 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4179fi
4180
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4183$as_echo "$ac_cv_host" >&6; }
4184case $ac_cv_host in
4185*-*-*) ;;
4186*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4187esac
4188host=$ac_cv_host
4189ac_save_IFS=$IFS; IFS='-'
4190set x $ac_cv_host
4191shift
4192host_cpu=$1
4193host_vendor=$2
4194shift; shift
4195# Remember, the first character of IFS is used to create $*,
4196# except with old shells:
4197host_os=$*
4198IFS=$ac_save_IFS
4199case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4200
4201
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206if test "${ac_cv_path_GREP+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4221# Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223case `"$ac_path_GREP" --version 2>&1` in
4224*GNU*)
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226*)
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 as_fn_arith $ac_count + 1 && ac_count=$as_val
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247esac
4248
4249 $ac_path_GREP_found && break 3
4250 done
4251 done
4252 done
4253IFS=$as_save_IFS
4254 if test -z "$ac_cv_path_GREP"; then
4255 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 fi
4257else
4258 ac_cv_path_GREP=$GREP
4259fi
4260
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263$as_echo "$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4265
4266
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268$as_echo_n "checking for egrep... " >&6; }
4269if test "${ac_cv_path_EGREP+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271else
4272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273 then ac_cv_path_EGREP="$GREP -E"
4274 else
4275 if test -z "$EGREP"; then
4276 ac_path_EGREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in egrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4287# Check for GNU ac_path_EGREP and select it if it is found.
4288 # Check for GNU $ac_path_EGREP
4289case `"$ac_path_EGREP" --version 2>&1` in
4290*GNU*)
4291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292*)
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'EGREP' >> "conftest.nl"
4301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_EGREP="$ac_path_EGREP"
4307 ac_path_EGREP_max=$ac_count
4308 fi
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313esac
4314
4315 $ac_path_EGREP_found && break 3
4316 done
4317 done
4318 done
4319IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_EGREP"; then
4321 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322 fi
4323else
4324 ac_cv_path_EGREP=$EGREP
4325fi
4326
4327 fi
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330$as_echo "$ac_cv_path_EGREP" >&6; }
4331 EGREP="$ac_cv_path_EGREP"
4332
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4335$as_echo_n "checking for ANSI C header files... " >&6; }
4336if test "${ac_cv_header_stdc+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h. */
4341#include <stdlib.h>
4342#include <stdarg.h>
4343#include <string.h>
4344#include <float.h>
4345
4346int
4347main ()
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_cv_header_stdc=yes
4356else
4357 ac_cv_header_stdc=no
4358fi
4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360
4361if test $ac_cv_header_stdc = yes; then
4362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h. */
4365#include <string.h>
4366
4367_ACEOF
4368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369 $EGREP "memchr" >/dev/null 2>&1; then :
4370
4371else
4372 ac_cv_header_stdc=no
4373fi
4374rm -f conftest*
4375
4376fi
4377
4378if test $ac_cv_header_stdc = yes; then
4379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h. */
4382#include <stdlib.h>
4383
4384_ACEOF
4385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386 $EGREP "free" >/dev/null 2>&1; then :
4387
4388else
4389 ac_cv_header_stdc=no
4390fi
4391rm -f conftest*
4392
4393fi
4394
4395if test $ac_cv_header_stdc = yes; then
4396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4397 if test "$cross_compiling" = yes; then :
4398 :
4399else
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h. */
4402#include <ctype.h>
4403#include <stdlib.h>
4404#if ((' ' & 0x0FF) == 0x020)
4405# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4406# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4407#else
4408# define ISLOWER(c) \
4409 (('a' <= (c) && (c) <= 'i') \
4410 || ('j' <= (c) && (c) <= 'r') \
4411 || ('s' <= (c) && (c) <= 'z'))
4412# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413#endif
4414
4415#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416int
4417main ()
4418{
4419 int i;
4420 for (i = 0; i < 256; i++)
4421 if (XOR (islower (i), ISLOWER (i))
4422 || toupper (i) != TOUPPER (i))
4423 return 2;
4424 return 0;
4425}
4426_ACEOF
4427if ac_fn_c_try_run "$LINENO"; then :
4428
4429else
4430 ac_cv_header_stdc=no
4431fi
4432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4433 conftest.$ac_objext conftest.beam conftest.$ac_ext
4434fi
4435
4436fi
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4439$as_echo "$ac_cv_header_stdc" >&6; }
4440if test $ac_cv_header_stdc = yes; then
4441
4442$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4443
4444fi
4445
4446# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4447for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448 inttypes.h stdint.h unistd.h
4449do :
4450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4452"
4453eval as_val=\$$as_ac_Header
4454 if test "x$as_val" = x""yes; then :
4455 cat >>confdefs.h <<_ACEOF
4456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4457_ACEOF
4458
4459fi
4460
4461done
4462
4463
4464
4465 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4466if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4467 MINIX=yes
4468else
4469 MINIX=
4470fi
4471
4472
4473 if test "$MINIX" = yes; then
4474
4475$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4476
4477
4478$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4479
4480
4481$as_echo "#define _MINIX 1" >>confdefs.h
4482
4483 fi
4484
4485
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4487$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4488if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490else
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h. */
4493
4494# define __EXTENSIONS__ 1
4495 $ac_includes_default
4496int
4497main ()
4498{
4499
4500 ;
4501 return 0;
4502}
4503_ACEOF
4504if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_safe_to_define___extensions__=yes
4506else
4507 ac_cv_safe_to_define___extensions__=no
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510fi
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4512$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4513 test $ac_cv_safe_to_define___extensions__ = yes &&
4514 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4515
4516 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4517
4518 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4519
4520 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4521
4522 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4523
4524
4525
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4528$as_echo_n "checking for strerror in -lcposix... " >&6; }
4529if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531else
4532 ac_check_lib_save_LIBS=$LIBS
4533LIBS="-lcposix $LIBS"
4534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536
4537/* Override any GCC internal prototype to avoid an error.
4538 Use char because int might match the return type of a GCC
4539 builtin and then its argument prototype would still apply. */
4540#ifdef __cplusplus
4541extern "C"
4542#endif
4543char strerror ();
4544int
4545main ()
4546{
4547return strerror ();
4548 ;
4549 return 0;
4550}
4551_ACEOF
4552if ac_fn_c_try_link "$LINENO"; then :
4553 ac_cv_lib_cposix_strerror=yes
4554else
4555 ac_cv_lib_cposix_strerror=no
4556fi
4557rm -f core conftest.err conftest.$ac_objext \
4558 conftest$ac_exeext conftest.$ac_ext
4559LIBS=$ac_check_lib_save_LIBS
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4562$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4563if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
4564 LIBS="$LIBS -lcposix"
4565fi
4566
4567
4568
4569
4570
4571# Enable gettext, in "external" mode.
4572
4573
4574
4575 MKINSTALLDIRS=
4576 if test -n "$ac_aux_dir"; then
4577 case "$ac_aux_dir" in
4578 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4579 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4580 esac
4581 fi
4582 if test -z "$MKINSTALLDIRS"; then
4583 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4584 fi
4585
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4589$as_echo_n "checking whether NLS is requested... " >&6; }
4590 # Check whether --enable-nls was given.
4591if test "${enable_nls+set}" = set; then :
4592 enableval=$enable_nls; USE_NLS=$enableval
4593else
4594 USE_NLS=yes
4595fi
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4598$as_echo "$USE_NLS" >&6; }
4599
4600
4601
4602
4603
4604
4605# Prepare PATH_SEPARATOR.
4606# The user is always right.
4607if test "${PATH_SEPARATOR+set}" != set; then
4608 echo "#! /bin/sh" >conf$$.sh
4609 echo "exit 0" >>conf$$.sh
4610 chmod +x conf$$.sh
4611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4612 PATH_SEPARATOR=';'
4613 else
4614 PATH_SEPARATOR=:
4615 fi
4616 rm -f conf$$.sh
4617fi
4618
4619# Find out how to test for executable files. Don't use a zero-byte file,
4620# as systems may use methods other than mode bits to determine executability.
4621cat >conf$$.file <<_ASEOF
4622#! /bin/sh
4623exit 0
4624_ASEOF
4625chmod +x conf$$.file
4626if test -x conf$$.file >/dev/null 2>&1; then
4627 ac_executable_p="test -x"
4628else
4629 ac_executable_p="test -f"
4630fi
4631rm -f conf$$.file
4632
4633# Extract the first word of "msgfmt", so it can be a program name with args.
4634set dummy msgfmt; ac_word=$2
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636$as_echo_n "checking for $ac_word... " >&6; }
4637if test "${ac_cv_path_MSGFMT+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639else
4640 case "$MSGFMT" in
4641 [\\/]* | ?:[\\/]*)
4642 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4643 ;;
4644 *)
4645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4646 for ac_dir in $PATH; do
4647 IFS="$ac_save_IFS"
4648 test -z "$ac_dir" && ac_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4651 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4652 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4653 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4654 break 2
4655 fi
4656 fi
4657 done
4658 done
4659 IFS="$ac_save_IFS"
4660 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4661 ;;
4662esac
4663fi
4664MSGFMT="$ac_cv_path_MSGFMT"
4665if test "$MSGFMT" != ":"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4667$as_echo "$MSGFMT" >&6; }
4668else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4674set dummy gmsgfmt; ac_word=$2
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676$as_echo_n "checking for $ac_word... " >&6; }
4677if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679else
4680 case $GMSGFMT in
4681 [\\/]* | ?:[\\/]*)
4682 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4683 ;;
4684 *)
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696done
4697 done
4698IFS=$as_save_IFS
4699
4700 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4701 ;;
4702esac
4703fi
4704GMSGFMT=$ac_cv_path_GMSGFMT
4705if test -n "$GMSGFMT"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4707$as_echo "$GMSGFMT" >&6; }
4708else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711fi
4712
4713
4714
4715
4716# Prepare PATH_SEPARATOR.
4717# The user is always right.
4718if test "${PATH_SEPARATOR+set}" != set; then
4719 echo "#! /bin/sh" >conf$$.sh
4720 echo "exit 0" >>conf$$.sh
4721 chmod +x conf$$.sh
4722 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4723 PATH_SEPARATOR=';'
4724 else
4725 PATH_SEPARATOR=:
4726 fi
4727 rm -f conf$$.sh
4728fi
4729
4730# Find out how to test for executable files. Don't use a zero-byte file,
4731# as systems may use methods other than mode bits to determine executability.
4732cat >conf$$.file <<_ASEOF
4733#! /bin/sh
4734exit 0
4735_ASEOF
4736chmod +x conf$$.file
4737if test -x conf$$.file >/dev/null 2>&1; then
4738 ac_executable_p="test -x"
4739else
4740 ac_executable_p="test -f"
4741fi
4742rm -f conf$$.file
4743
4744# Extract the first word of "xgettext", so it can be a program name with args.
4745set dummy xgettext; ac_word=$2
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747$as_echo_n "checking for $ac_word... " >&6; }
4748if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750else
4751 case "$XGETTEXT" in
4752 [\\/]* | ?:[\\/]*)
4753 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4754 ;;
4755 *)
4756 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4757 for ac_dir in $PATH; do
4758 IFS="$ac_save_IFS"
4759 test -z "$ac_dir" && ac_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4762 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4763 (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
4764 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4765 break 2
4766 fi
4767 fi
4768 done
4769 done
4770 IFS="$ac_save_IFS"
4771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4772 ;;
4773esac
4774fi
4775XGETTEXT="$ac_cv_path_XGETTEXT"
4776if test "$XGETTEXT" != ":"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4778$as_echo "$XGETTEXT" >&6; }
4779else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
4782fi
4783
4784 rm -f messages.po
4785
4786
4787# Prepare PATH_SEPARATOR.
4788# The user is always right.
4789if test "${PATH_SEPARATOR+set}" != set; then
4790 echo "#! /bin/sh" >conf$$.sh
4791 echo "exit 0" >>conf$$.sh
4792 chmod +x conf$$.sh
4793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4794 PATH_SEPARATOR=';'
4795 else
4796 PATH_SEPARATOR=:
4797 fi
4798 rm -f conf$$.sh
4799fi
4800
4801# Find out how to test for executable files. Don't use a zero-byte file,
4802# as systems may use methods other than mode bits to determine executability.
4803cat >conf$$.file <<_ASEOF
4804#! /bin/sh
4805exit 0
4806_ASEOF
4807chmod +x conf$$.file
4808if test -x conf$$.file >/dev/null 2>&1; then
4809 ac_executable_p="test -x"
4810else
4811 ac_executable_p="test -f"
4812fi
4813rm -f conf$$.file
4814
4815# Extract the first word of "msgmerge", so it can be a program name with args.
4816set dummy msgmerge; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821else
4822 case "$MSGMERGE" in
4823 [\\/]* | ?:[\\/]*)
4824 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4825 ;;
4826 *)
4827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4828 for ac_dir in $PATH; do
4829 IFS="$ac_save_IFS"
4830 test -z "$ac_dir" && ac_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4833 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4834 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4835 break 2
4836 fi
4837 fi
4838 done
4839 done
4840 IFS="$ac_save_IFS"
4841 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4842 ;;
4843esac
4844fi
4845MSGMERGE="$ac_cv_path_MSGMERGE"
4846if test "$MSGMERGE" != ":"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4848$as_echo "$MSGMERGE" >&6; }
4849else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852fi
4853
4854
4855 if test "$GMSGFMT" != ":"; then
4856 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4857 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4858 : ;
4859 else
4860 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4862$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4863 GMSGFMT=":"
4864 fi
4865 fi
4866
4867 if test "$XGETTEXT" != ":"; then
4868 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4869 (if $XGETTEXT --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
4870 : ;
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
4873$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
4874 XGETTEXT=":"
4875 fi
4876 rm -f messages.po
4877 fi
4878
4879 ac_config_commands="$ac_config_commands default-1"
4880
4881
4882
4883 if test "X$prefix" = "XNONE"; then
4884 acl_final_prefix="$ac_default_prefix"
4885 else
4886 acl_final_prefix="$prefix"
4887 fi
4888 if test "X$exec_prefix" = "XNONE"; then
4889 acl_final_exec_prefix='${prefix}'
4890 else
4891 acl_final_exec_prefix="$exec_prefix"
4892 fi
4893 acl_save_prefix="$prefix"
4894 prefix="$acl_final_prefix"
4895 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4896 prefix="$acl_save_prefix"
4897
4898
4899# Check whether --with-gnu-ld was given.
4900if test "${with_gnu_ld+set}" = set; then :
4901 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4902else
4903 with_gnu_ld=no
4904fi
4905
4906# Prepare PATH_SEPARATOR.
4907# The user is always right.
4908if test "${PATH_SEPARATOR+set}" != set; then
4909 echo "#! /bin/sh" >conf$$.sh
4910 echo "exit 0" >>conf$$.sh
4911 chmod +x conf$$.sh
4912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4913 PATH_SEPARATOR=';'
4914 else
4915 PATH_SEPARATOR=:
4916 fi
4917 rm -f conf$$.sh
4918fi
4919ac_prog=ld
4920if test "$GCC" = yes; then
4921 # Check if gcc -print-prog-name=ld gives a path.
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4923$as_echo_n "checking for ld used by GCC... " >&6; }
4924 case $host in
4925 *-*-mingw*)
4926 # gcc leaves a trailing carriage return which upsets mingw
4927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4928 *)
4929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4930 esac
4931 case $ac_prog in
4932 # Accept absolute paths.
4933 [\\/]* | [A-Za-z]:[\\/]*)
4934 re_direlt='/[^/][^/]*/\.\./'
4935 # Canonicalize the path of ld
4936 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4938 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4939 done
4940 test -z "$LD" && LD="$ac_prog"
4941 ;;
4942 "")
4943 # If it fails, then pretend we aren't using GCC.
4944 ac_prog=ld
4945 ;;
4946 *)
4947 # If it is relative, then search for the first ld in PATH.
4948 with_gnu_ld=unknown
4949 ;;
4950 esac
4951elif test "$with_gnu_ld" = yes; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4953$as_echo_n "checking for GNU ld... " >&6; }
4954else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4956$as_echo_n "checking for non-GNU ld... " >&6; }
4957fi
4958if test "${acl_cv_path_LD+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960else
4961 if test -z "$LD"; then
4962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4963 for ac_dir in $PATH; do
4964 test -z "$ac_dir" && ac_dir=.
4965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4966 acl_cv_path_LD="$ac_dir/$ac_prog"
4967 # Check to see if the program is GNU ld. I'd rather use --version,
4968 # but apparently some GNU ld's only accept -v.
4969 # Break only if it was the GNU/non-GNU ld that we prefer.
4970 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4971 *GNU* | *'with BFD'*)
4972 test "$with_gnu_ld" != no && break ;;
4973 *)
4974 test "$with_gnu_ld" != yes && break ;;
4975 esac
4976 fi
4977 done
4978 IFS="$ac_save_ifs"
4979else
4980 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4981fi
4982fi
4983
4984LD="$acl_cv_path_LD"
4985if test -n "$LD"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4987$as_echo "$LD" >&6; }
4988else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
4991fi
4992test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4994$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4995if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997else
4998 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4999case `$LD -v 2>&1 </dev/null` in
5000*GNU* | *'with BFD'*)
5001 acl_cv_prog_gnu_ld=yes ;;
5002*)
5003 acl_cv_prog_gnu_ld=no ;;
5004esac
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5007$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5008with_gnu_ld=$acl_cv_prog_gnu_ld
5009
5010
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5013$as_echo_n "checking for shared library run path origin... " >&6; }
5014if test "${acl_cv_rpath+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016else
5017
5018 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5019 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5020 . ./conftest.sh
5021 rm -f ./conftest.sh
5022 acl_cv_rpath=done
5023
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5026$as_echo "$acl_cv_rpath" >&6; }
5027 wl="$acl_cv_wl"
5028 libext="$acl_cv_libext"
5029 shlibext="$acl_cv_shlibext"
5030 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5031 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5032 hardcode_direct="$acl_cv_hardcode_direct"
5033 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5034 # Check whether --enable-rpath was given.
5035if test "${enable_rpath+set}" = set; then :
5036 enableval=$enable_rpath; :
5037else
5038 enable_rpath=yes
5039fi
5040
5041
5042
5043
5044
5045
5046
5047
5048 use_additional=yes
5049
5050 acl_save_prefix="$prefix"
5051 prefix="$acl_final_prefix"
5052 acl_save_exec_prefix="$exec_prefix"
5053 exec_prefix="$acl_final_exec_prefix"
5054
5055 eval additional_includedir=\"$includedir\"
5056 eval additional_libdir=\"$libdir\"
5057
5058 exec_prefix="$acl_save_exec_prefix"
5059 prefix="$acl_save_prefix"
5060
5061
5062# Check whether --with-libiconv-prefix was given.
5063if test "${with_libiconv_prefix+set}" = set; then :
5064 withval=$with_libiconv_prefix;
5065 if test "X$withval" = "Xno"; then
5066 use_additional=no
5067 else
5068 if test "X$withval" = "X"; then
5069
5070 acl_save_prefix="$prefix"
5071 prefix="$acl_final_prefix"
5072 acl_save_exec_prefix="$exec_prefix"
5073 exec_prefix="$acl_final_exec_prefix"
5074
5075 eval additional_includedir=\"$includedir\"
5076 eval additional_libdir=\"$libdir\"
5077
5078 exec_prefix="$acl_save_exec_prefix"
5079 prefix="$acl_save_prefix"
5080
5081 else
5082 additional_includedir="$withval/include"
5083 additional_libdir="$withval/lib"
5084 fi
5085 fi
5086
5087fi
5088
5089 LIBICONV=
5090 LTLIBICONV=
5091 INCICONV=
5092 rpathdirs=
5093 ltrpathdirs=
5094 names_already_handled=
5095 names_next_round='iconv '
5096 while test -n "$names_next_round"; do
5097 names_this_round="$names_next_round"
5098 names_next_round=
5099 for name in $names_this_round; do
5100 already_handled=
5101 for n in $names_already_handled; do
5102 if test "$n" = "$name"; then
5103 already_handled=yes
5104 break
5105 fi
5106 done
5107 if test -z "$already_handled"; then
5108 names_already_handled="$names_already_handled $name"
5109 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5110 eval value=\"\$HAVE_LIB$uppername\"
5111 if test -n "$value"; then
5112 if test "$value" = yes; then
5113 eval value=\"\$LIB$uppername\"
5114 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5115 eval value=\"\$LTLIB$uppername\"
5116 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5117 else
5118 :
5119 fi
5120 else
5121 found_dir=
5122 found_la=
5123 found_so=
5124 found_a=
5125 if test $use_additional = yes; then
5126 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5127 found_dir="$additional_libdir"
5128 found_so="$additional_libdir/lib$name.$shlibext"
5129 if test -f "$additional_libdir/lib$name.la"; then
5130 found_la="$additional_libdir/lib$name.la"
5131 fi
5132 else
5133 if test -f "$additional_libdir/lib$name.$libext"; then
5134 found_dir="$additional_libdir"
5135 found_a="$additional_libdir/lib$name.$libext"
5136 if test -f "$additional_libdir/lib$name.la"; then
5137 found_la="$additional_libdir/lib$name.la"
5138 fi
5139 fi
5140 fi
5141 fi
5142 if test "X$found_dir" = "X"; then
5143 for x in $LDFLAGS $LTLIBICONV; do
5144
5145 acl_save_prefix="$prefix"
5146 prefix="$acl_final_prefix"
5147 acl_save_exec_prefix="$exec_prefix"
5148 exec_prefix="$acl_final_exec_prefix"
5149 eval x=\"$x\"
5150 exec_prefix="$acl_save_exec_prefix"
5151 prefix="$acl_save_prefix"
5152
5153 case "$x" in
5154 -L*)
5155 dir=`echo "X$x" | sed -e 's/^X-L//'`
5156 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5157 found_dir="$dir"
5158 found_so="$dir/lib$name.$shlibext"
5159 if test -f "$dir/lib$name.la"; then
5160 found_la="$dir/lib$name.la"
5161 fi
5162 else
5163 if test -f "$dir/lib$name.$libext"; then
5164 found_dir="$dir"
5165 found_a="$dir/lib$name.$libext"
5166 if test -f "$dir/lib$name.la"; then
5167 found_la="$dir/lib$name.la"
5168 fi
5169 fi
5170 fi
5171 ;;
5172 esac
5173 if test "X$found_dir" != "X"; then
5174 break
5175 fi
5176 done
5177 fi
5178 if test "X$found_dir" != "X"; then
5179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5180 if test "X$found_so" != "X"; then
5181 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5182 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5183 else
5184 haveit=
5185 for x in $ltrpathdirs; do
5186 if test "X$x" = "X$found_dir"; then
5187 haveit=yes
5188 break
5189 fi
5190 done
5191 if test -z "$haveit"; then
5192 ltrpathdirs="$ltrpathdirs $found_dir"
5193 fi
5194 if test "$hardcode_direct" = yes; then
5195 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5196 else
5197 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5199 haveit=
5200 for x in $rpathdirs; do
5201 if test "X$x" = "X$found_dir"; then
5202 haveit=yes
5203 break
5204 fi
5205 done
5206 if test -z "$haveit"; then
5207 rpathdirs="$rpathdirs $found_dir"
5208 fi
5209 else
5210 haveit=
5211 for x in $LDFLAGS $LIBICONV; do
5212
5213 acl_save_prefix="$prefix"
5214 prefix="$acl_final_prefix"
5215 acl_save_exec_prefix="$exec_prefix"
5216 exec_prefix="$acl_final_exec_prefix"
5217 eval x=\"$x\"
5218 exec_prefix="$acl_save_exec_prefix"
5219 prefix="$acl_save_prefix"
5220
5221 if test "X$x" = "X-L$found_dir"; then
5222 haveit=yes
5223 break
5224 fi
5225 done
5226 if test -z "$haveit"; then
5227 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5228 fi
5229 if test "$hardcode_minus_L" != no; then
5230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5231 else
5232 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5233 fi
5234 fi
5235 fi
5236 fi
5237 else
5238 if test "X$found_a" != "X"; then
5239 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5240 else
5241 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5242 fi
5243 fi
5244 additional_includedir=
5245 case "$found_dir" in
5246 */lib | */lib/)
5247 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5248 additional_includedir="$basedir/include"
5249 ;;
5250 esac
5251 if test "X$additional_includedir" != "X"; then
5252 if test "X$additional_includedir" != "X/usr/include"; then
5253 haveit=
5254 if test "X$additional_includedir" = "X/usr/local/include"; then
5255 if test -n "$GCC"; then
5256 case $host_os in
5257 linux*) haveit=yes;;
5258 esac
5259 fi
5260 fi
5261 if test -z "$haveit"; then
5262 for x in $CPPFLAGS $INCICONV; do
5263
5264 acl_save_prefix="$prefix"
5265 prefix="$acl_final_prefix"
5266 acl_save_exec_prefix="$exec_prefix"
5267 exec_prefix="$acl_final_exec_prefix"
5268 eval x=\"$x\"
5269 exec_prefix="$acl_save_exec_prefix"
5270 prefix="$acl_save_prefix"
5271
5272 if test "X$x" = "X-I$additional_includedir"; then
5273 haveit=yes
5274 break
5275 fi
5276 done
5277 if test -z "$haveit"; then
5278 if test -d "$additional_includedir"; then
5279 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5280 fi
5281 fi
5282 fi
5283 fi
5284 fi
5285 if test -n "$found_la"; then
5286 save_libdir="$libdir"
5287 case "$found_la" in
5288 */* | *\\*) . "$found_la" ;;
5289 *) . "./$found_la" ;;
5290 esac
5291 libdir="$save_libdir"
5292 for dep in $dependency_libs; do
5293 case "$dep" in
5294 -L*)
5295 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5296 if test "X$additional_libdir" != "X/usr/lib"; then
5297 haveit=
5298 if test "X$additional_libdir" = "X/usr/local/lib"; then
5299 if test -n "$GCC"; then
5300 case $host_os in
5301 linux*) haveit=yes;;
5302 esac
5303 fi
5304 fi
5305 if test -z "$haveit"; then
5306 haveit=
5307 for x in $LDFLAGS $LIBICONV; do
5308
5309 acl_save_prefix="$prefix"
5310 prefix="$acl_final_prefix"
5311 acl_save_exec_prefix="$exec_prefix"
5312 exec_prefix="$acl_final_exec_prefix"
5313 eval x=\"$x\"
5314 exec_prefix="$acl_save_exec_prefix"
5315 prefix="$acl_save_prefix"
5316
5317 if test "X$x" = "X-L$additional_libdir"; then
5318 haveit=yes
5319 break
5320 fi
5321 done
5322 if test -z "$haveit"; then
5323 if test -d "$additional_libdir"; then
5324 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5325 fi
5326 fi
5327 haveit=
5328 for x in $LDFLAGS $LTLIBICONV; do
5329
5330 acl_save_prefix="$prefix"
5331 prefix="$acl_final_prefix"
5332 acl_save_exec_prefix="$exec_prefix"
5333 exec_prefix="$acl_final_exec_prefix"
5334 eval x=\"$x\"
5335 exec_prefix="$acl_save_exec_prefix"
5336 prefix="$acl_save_prefix"
5337
5338 if test "X$x" = "X-L$additional_libdir"; then
5339 haveit=yes
5340 break
5341 fi
5342 done
5343 if test -z "$haveit"; then
5344 if test -d "$additional_libdir"; then
5345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5346 fi
5347 fi
5348 fi
5349 fi
5350 ;;
5351 -R*)
5352 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5353 if test "$enable_rpath" != no; then
5354 haveit=
5355 for x in $rpathdirs; do
5356 if test "X$x" = "X$dir"; then
5357 haveit=yes
5358 break
5359 fi
5360 done
5361 if test -z "$haveit"; then
5362 rpathdirs="$rpathdirs $dir"
5363 fi
5364 haveit=
5365 for x in $ltrpathdirs; do
5366 if test "X$x" = "X$dir"; then
5367 haveit=yes
5368 break
5369 fi
5370 done
5371 if test -z "$haveit"; then
5372 ltrpathdirs="$ltrpathdirs $dir"
5373 fi
5374 fi
5375 ;;
5376 -l*)
5377 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5378 ;;
5379 *.la)
5380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5381 ;;
5382 *)
5383 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5384 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5385 ;;
5386 esac
5387 done
5388 fi
5389 else
5390 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5392 fi
5393 fi
5394 fi
5395 done
5396 done
5397 if test "X$rpathdirs" != "X"; then
5398 if test -n "$hardcode_libdir_separator"; then
5399 alldirs=
5400 for found_dir in $rpathdirs; do
5401 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5402 done
5403 acl_save_libdir="$libdir"
5404 libdir="$alldirs"
5405 eval flag=\"$hardcode_libdir_flag_spec\"
5406 libdir="$acl_save_libdir"
5407 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5408 else
5409 for found_dir in $rpathdirs; do
5410 acl_save_libdir="$libdir"
5411 libdir="$found_dir"
5412 eval flag=\"$hardcode_libdir_flag_spec\"
5413 libdir="$acl_save_libdir"
5414 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5415 done
5416 fi
5417 fi
5418 if test "X$ltrpathdirs" != "X"; then
5419 for found_dir in $ltrpathdirs; do
5420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5421 done
5422 fi
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5442$as_echo_n "checking whether NLS is requested... " >&6; }
5443 # Check whether --enable-nls was given.
5444if test "${enable_nls+set}" = set; then :
5445 enableval=$enable_nls; USE_NLS=$enableval
5446else
5447 USE_NLS=yes
5448fi
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5451$as_echo "$USE_NLS" >&6; }
5452
5453
5454
5455
5456 LIBINTL=
5457 LTLIBINTL=
5458 POSUB=
5459
5460 if test "$USE_NLS" = "yes"; then
5461 gt_use_preinstalled_gnugettext=no
5462
5463
5464
5465
5466
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5469$as_echo_n "checking for GNU gettext in libc... " >&6; }
5470if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472else
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h. */
5475#include <libintl.h>
5476extern int _nl_msg_cat_cntr;
5477extern int *_nl_domain_bindings;
5478int
5479main ()
5480{
5481bindtextdomain ("", "");
5482return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5483 ;
5484 return 0;
5485}
5486_ACEOF
5487if ac_fn_c_try_link "$LINENO"; then :
5488 gt_cv_func_gnugettext1_libc=yes
5489else
5490 gt_cv_func_gnugettext1_libc=no
5491fi
5492rm -f core conftest.err conftest.$ac_objext \
5493 conftest$ac_exeext conftest.$ac_ext
5494fi
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5496$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5497
5498 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5499
5500
5501
5502
5503
5504 am_save_CPPFLAGS="$CPPFLAGS"
5505
5506 for element in $INCICONV; do
5507 haveit=
5508 for x in $CPPFLAGS; do
5509
5510 acl_save_prefix="$prefix"
5511 prefix="$acl_final_prefix"
5512 acl_save_exec_prefix="$exec_prefix"
5513 exec_prefix="$acl_final_exec_prefix"
5514 eval x=\"$x\"
5515 exec_prefix="$acl_save_exec_prefix"
5516 prefix="$acl_save_prefix"
5517
5518 if test "X$x" = "X$element"; then
5519 haveit=yes
5520 break
5521 fi
5522 done
5523 if test -z "$haveit"; then
5524 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5525 fi
5526 done
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5530$as_echo_n "checking for iconv... " >&6; }
5531if test "${am_cv_func_iconv+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5533else
5534
5535 am_cv_func_iconv="no, consider installing GNU libiconv"
5536 am_cv_lib_iconv=no
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538/* end confdefs.h. */
5539#include <stdlib.h>
5540#include <iconv.h>
5541int
5542main ()
5543{
5544iconv_t cd = iconv_open("","");
5545 iconv(cd,NULL,NULL,NULL,NULL);
5546 iconv_close(cd);
5547 ;
5548 return 0;
5549}
5550_ACEOF
5551if ac_fn_c_try_link "$LINENO"; then :
5552 am_cv_func_iconv=yes
5553fi
5554rm -f core conftest.err conftest.$ac_objext \
5555 conftest$ac_exeext conftest.$ac_ext
5556 if test "$am_cv_func_iconv" != yes; then
5557 am_save_LIBS="$LIBS"
5558 LIBS="$LIBS $LIBICONV"
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h. */
5561#include <stdlib.h>
5562#include <iconv.h>
5563int
5564main ()
5565{
5566iconv_t cd = iconv_open("","");
5567 iconv(cd,NULL,NULL,NULL,NULL);
5568 iconv_close(cd);
5569 ;
5570 return 0;
5571}
5572_ACEOF
5573if ac_fn_c_try_link "$LINENO"; then :
5574 am_cv_lib_iconv=yes
5575 am_cv_func_iconv=yes
5576fi
5577rm -f core conftest.err conftest.$ac_objext \
5578 conftest$ac_exeext conftest.$ac_ext
5579 LIBS="$am_save_LIBS"
5580 fi
5581
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5584$as_echo "$am_cv_func_iconv" >&6; }
5585 if test "$am_cv_func_iconv" = yes; then
5586
5587$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5588
5589 fi
5590 if test "$am_cv_lib_iconv" = yes; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5592$as_echo_n "checking how to link with libiconv... " >&6; }
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5594$as_echo "$LIBICONV" >&6; }
5595 else
5596 CPPFLAGS="$am_save_CPPFLAGS"
5597 LIBICONV=
5598 LTLIBICONV=
5599 fi
5600
5601
5602
5603
5604
5605
5606 use_additional=yes
5607
5608 acl_save_prefix="$prefix"
5609 prefix="$acl_final_prefix"
5610 acl_save_exec_prefix="$exec_prefix"
5611 exec_prefix="$acl_final_exec_prefix"
5612
5613 eval additional_includedir=\"$includedir\"
5614 eval additional_libdir=\"$libdir\"
5615
5616 exec_prefix="$acl_save_exec_prefix"
5617 prefix="$acl_save_prefix"
5618
5619
5620# Check whether --with-libintl-prefix was given.
5621if test "${with_libintl_prefix+set}" = set; then :
5622 withval=$with_libintl_prefix;
5623 if test "X$withval" = "Xno"; then
5624 use_additional=no
5625 else
5626 if test "X$withval" = "X"; then
5627
5628 acl_save_prefix="$prefix"
5629 prefix="$acl_final_prefix"
5630 acl_save_exec_prefix="$exec_prefix"
5631 exec_prefix="$acl_final_exec_prefix"
5632
5633 eval additional_includedir=\"$includedir\"
5634 eval additional_libdir=\"$libdir\"
5635
5636 exec_prefix="$acl_save_exec_prefix"
5637 prefix="$acl_save_prefix"
5638
5639 else
5640 additional_includedir="$withval/include"
5641 additional_libdir="$withval/lib"
5642 fi
5643 fi
5644
5645fi
5646
5647 LIBINTL=
5648 LTLIBINTL=
5649 INCINTL=
5650 rpathdirs=
5651 ltrpathdirs=
5652 names_already_handled=
5653 names_next_round='intl '
5654 while test -n "$names_next_round"; do
5655 names_this_round="$names_next_round"
5656 names_next_round=
5657 for name in $names_this_round; do
5658 already_handled=
5659 for n in $names_already_handled; do
5660 if test "$n" = "$name"; then
5661 already_handled=yes
5662 break
5663 fi
5664 done
5665 if test -z "$already_handled"; then
5666 names_already_handled="$names_already_handled $name"
5667 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5668 eval value=\"\$HAVE_LIB$uppername\"
5669 if test -n "$value"; then
5670 if test "$value" = yes; then
5671 eval value=\"\$LIB$uppername\"
5672 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5673 eval value=\"\$LTLIB$uppername\"
5674 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5675 else
5676 :
5677 fi
5678 else
5679 found_dir=
5680 found_la=
5681 found_so=
5682 found_a=
5683 if test $use_additional = yes; then
5684 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5685 found_dir="$additional_libdir"
5686 found_so="$additional_libdir/lib$name.$shlibext"
5687 if test -f "$additional_libdir/lib$name.la"; then
5688 found_la="$additional_libdir/lib$name.la"
5689 fi
5690 else
5691 if test -f "$additional_libdir/lib$name.$libext"; then
5692 found_dir="$additional_libdir"
5693 found_a="$additional_libdir/lib$name.$libext"
5694 if test -f "$additional_libdir/lib$name.la"; then
5695 found_la="$additional_libdir/lib$name.la"
5696 fi
5697 fi
5698 fi
5699 fi
5700 if test "X$found_dir" = "X"; then
5701 for x in $LDFLAGS $LTLIBINTL; do
5702
5703 acl_save_prefix="$prefix"
5704 prefix="$acl_final_prefix"
5705 acl_save_exec_prefix="$exec_prefix"
5706 exec_prefix="$acl_final_exec_prefix"
5707 eval x=\"$x\"
5708 exec_prefix="$acl_save_exec_prefix"
5709 prefix="$acl_save_prefix"
5710
5711 case "$x" in
5712 -L*)
5713 dir=`echo "X$x" | sed -e 's/^X-L//'`
5714 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5715 found_dir="$dir"
5716 found_so="$dir/lib$name.$shlibext"
5717 if test -f "$dir/lib$name.la"; then
5718 found_la="$dir/lib$name.la"
5719 fi
5720 else
5721 if test -f "$dir/lib$name.$libext"; then
5722 found_dir="$dir"
5723 found_a="$dir/lib$name.$libext"
5724 if test -f "$dir/lib$name.la"; then
5725 found_la="$dir/lib$name.la"
5726 fi
5727 fi
5728 fi
5729 ;;
5730 esac
5731 if test "X$found_dir" != "X"; then
5732 break
5733 fi
5734 done
5735 fi
5736 if test "X$found_dir" != "X"; then
5737 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5738 if test "X$found_so" != "X"; then
5739 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5740 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5741 else
5742 haveit=
5743 for x in $ltrpathdirs; do
5744 if test "X$x" = "X$found_dir"; then
5745 haveit=yes
5746 break
5747 fi
5748 done
5749 if test -z "$haveit"; then
5750 ltrpathdirs="$ltrpathdirs $found_dir"
5751 fi
5752 if test "$hardcode_direct" = yes; then
5753 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5754 else
5755 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5756 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5757 haveit=
5758 for x in $rpathdirs; do
5759 if test "X$x" = "X$found_dir"; then
5760 haveit=yes
5761 break
5762 fi
5763 done
5764 if test -z "$haveit"; then
5765 rpathdirs="$rpathdirs $found_dir"
5766 fi
5767 else
5768 haveit=
5769 for x in $LDFLAGS $LIBINTL; do
5770
5771 acl_save_prefix="$prefix"
5772 prefix="$acl_final_prefix"
5773 acl_save_exec_prefix="$exec_prefix"
5774 exec_prefix="$acl_final_exec_prefix"
5775 eval x=\"$x\"
5776 exec_prefix="$acl_save_exec_prefix"
5777 prefix="$acl_save_prefix"
5778
5779 if test "X$x" = "X-L$found_dir"; then
5780 haveit=yes
5781 break
5782 fi
5783 done
5784 if test -z "$haveit"; then
5785 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5786 fi
5787 if test "$hardcode_minus_L" != no; then
5788 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5789 else
5790 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5791 fi
5792 fi
5793 fi
5794 fi
5795 else
5796 if test "X$found_a" != "X"; then
5797 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5798 else
5799 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5800 fi
5801 fi
5802 additional_includedir=
5803 case "$found_dir" in
5804 */lib | */lib/)
5805 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5806 additional_includedir="$basedir/include"
5807 ;;
5808 esac
5809 if test "X$additional_includedir" != "X"; then
5810 if test "X$additional_includedir" != "X/usr/include"; then
5811 haveit=
5812 if test "X$additional_includedir" = "X/usr/local/include"; then
5813 if test -n "$GCC"; then
5814 case $host_os in
5815 linux*) haveit=yes;;
5816 esac
5817 fi
5818 fi
5819 if test -z "$haveit"; then
5820 for x in $CPPFLAGS $INCINTL; do
5821
5822 acl_save_prefix="$prefix"
5823 prefix="$acl_final_prefix"
5824 acl_save_exec_prefix="$exec_prefix"
5825 exec_prefix="$acl_final_exec_prefix"
5826 eval x=\"$x\"
5827 exec_prefix="$acl_save_exec_prefix"
5828 prefix="$acl_save_prefix"
5829
5830 if test "X$x" = "X-I$additional_includedir"; then
5831 haveit=yes
5832 break
5833 fi
5834 done
5835 if test -z "$haveit"; then
5836 if test -d "$additional_includedir"; then
5837 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5838 fi
5839 fi
5840 fi
5841 fi
5842 fi
5843 if test -n "$found_la"; then
5844 save_libdir="$libdir"
5845 case "$found_la" in
5846 */* | *\\*) . "$found_la" ;;
5847 *) . "./$found_la" ;;
5848 esac
5849 libdir="$save_libdir"
5850 for dep in $dependency_libs; do
5851 case "$dep" in
5852 -L*)
5853 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5854 if test "X$additional_libdir" != "X/usr/lib"; then
5855 haveit=
5856 if test "X$additional_libdir" = "X/usr/local/lib"; then
5857 if test -n "$GCC"; then
5858 case $host_os in
5859 linux*) haveit=yes;;
5860 esac
5861 fi
5862 fi
5863 if test -z "$haveit"; then
5864 haveit=
5865 for x in $LDFLAGS $LIBINTL; do
5866
5867 acl_save_prefix="$prefix"
5868 prefix="$acl_final_prefix"
5869 acl_save_exec_prefix="$exec_prefix"
5870 exec_prefix="$acl_final_exec_prefix"
5871 eval x=\"$x\"
5872 exec_prefix="$acl_save_exec_prefix"
5873 prefix="$acl_save_prefix"
5874
5875 if test "X$x" = "X-L$additional_libdir"; then
5876 haveit=yes
5877 break
5878 fi
5879 done
5880 if test -z "$haveit"; then
5881 if test -d "$additional_libdir"; then
5882 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5883 fi
5884 fi
5885 haveit=
5886 for x in $LDFLAGS $LTLIBINTL; do
5887
5888 acl_save_prefix="$prefix"
5889 prefix="$acl_final_prefix"
5890 acl_save_exec_prefix="$exec_prefix"
5891 exec_prefix="$acl_final_exec_prefix"
5892 eval x=\"$x\"
5893 exec_prefix="$acl_save_exec_prefix"
5894 prefix="$acl_save_prefix"
5895
5896 if test "X$x" = "X-L$additional_libdir"; then
5897 haveit=yes
5898 break
5899 fi
5900 done
5901 if test -z "$haveit"; then
5902 if test -d "$additional_libdir"; then
5903 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5904 fi
5905 fi
5906 fi
5907 fi
5908 ;;
5909 -R*)
5910 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5911 if test "$enable_rpath" != no; then
5912 haveit=
5913 for x in $rpathdirs; do
5914 if test "X$x" = "X$dir"; then
5915 haveit=yes
5916 break
5917 fi
5918 done
5919 if test -z "$haveit"; then
5920 rpathdirs="$rpathdirs $dir"
5921 fi
5922 haveit=
5923 for x in $ltrpathdirs; do
5924 if test "X$x" = "X$dir"; then
5925 haveit=yes
5926 break
5927 fi
5928 done
5929 if test -z "$haveit"; then
5930 ltrpathdirs="$ltrpathdirs $dir"
5931 fi
5932 fi
5933 ;;
5934 -l*)
5935 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5936 ;;
5937 *.la)
5938 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5939 ;;
5940 *)
5941 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5942 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5943 ;;
5944 esac
5945 done
5946 fi
5947 else
5948 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5949 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5950 fi
5951 fi
5952 fi
5953 done
5954 done
5955 if test "X$rpathdirs" != "X"; then
5956 if test -n "$hardcode_libdir_separator"; then
5957 alldirs=
5958 for found_dir in $rpathdirs; do
5959 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5960 done
5961 acl_save_libdir="$libdir"
5962 libdir="$alldirs"
5963 eval flag=\"$hardcode_libdir_flag_spec\"
5964 libdir="$acl_save_libdir"
5965 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5966 else
5967 for found_dir in $rpathdirs; do
5968 acl_save_libdir="$libdir"
5969 libdir="$found_dir"
5970 eval flag=\"$hardcode_libdir_flag_spec\"
5971 libdir="$acl_save_libdir"
5972 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5973 done
5974 fi
5975 fi
5976 if test "X$ltrpathdirs" != "X"; then
5977 for found_dir in $ltrpathdirs; do
5978 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5979 done
5980 fi
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5983$as_echo_n "checking for GNU gettext in libintl... " >&6; }
5984if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5986else
5987 gt_save_CPPFLAGS="$CPPFLAGS"
5988 CPPFLAGS="$CPPFLAGS $INCINTL"
5989 gt_save_LIBS="$LIBS"
5990 LIBS="$LIBS $LIBINTL"
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h. */
5993#include <libintl.h>
5994extern int _nl_msg_cat_cntr;
5995extern
5996#ifdef __cplusplus
5997"C"
5998#endif
5999const char *_nl_expand_alias ();
6000int
6001main ()
6002{
6003bindtextdomain ("", "");
6004return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6005 ;
6006 return 0;
6007}
6008_ACEOF
6009if ac_fn_c_try_link "$LINENO"; then :
6010 gt_cv_func_gnugettext1_libintl=yes
6011else
6012 gt_cv_func_gnugettext1_libintl=no
6013fi
6014rm -f core conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6016 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6017 LIBS="$LIBS $LIBICONV"
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h. */
6020#include <libintl.h>
6021extern int _nl_msg_cat_cntr;
6022extern
6023#ifdef __cplusplus
6024"C"
6025#endif
6026const char *_nl_expand_alias ();
6027int
6028main ()
6029{
6030bindtextdomain ("", "");
6031return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6032 ;
6033 return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_link "$LINENO"; then :
6037 LIBINTL="$LIBINTL $LIBICONV"
6038 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6039 gt_cv_func_gnugettext1_libintl=yes
6040
6041fi
6042rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6044 fi
6045 CPPFLAGS="$gt_save_CPPFLAGS"
6046 LIBS="$gt_save_LIBS"
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
6049$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
6050 fi
6051
6052 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6053 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6054 && test "$PACKAGE" != gettext-runtime \
6055 && test "$PACKAGE" != gettext-tools; }; then
6056 gt_use_preinstalled_gnugettext=yes
6057 else
6058 LIBINTL=
6059 LTLIBINTL=
6060 INCINTL=
6061 fi
6062
6063
6064
6065 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6066 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6067
6068$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6069
6070 else
6071 USE_NLS=no
6072 fi
6073 fi
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6076$as_echo_n "checking whether to use NLS... " >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6078$as_echo "$USE_NLS" >&6; }
6079 if test "$USE_NLS" = "yes"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6081$as_echo_n "checking where the gettext function comes from... " >&6; }
6082 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6083 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6084 gt_source="external libintl"
6085 else
6086 gt_source="libc"
6087 fi
6088 else
6089 gt_source="included intl directory"
6090 fi
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6092$as_echo "$gt_source" >&6; }
6093 fi
6094
6095 if test "$USE_NLS" = "yes"; then
6096
6097 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6098 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6100$as_echo_n "checking how to link with libintl... " >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6102$as_echo "$LIBINTL" >&6; }
6103
6104 for element in $INCINTL; do
6105 haveit=
6106 for x in $CPPFLAGS; do
6107
6108 acl_save_prefix="$prefix"
6109 prefix="$acl_final_prefix"
6110 acl_save_exec_prefix="$exec_prefix"
6111 exec_prefix="$acl_final_exec_prefix"
6112 eval x=\"$x\"
6113 exec_prefix="$acl_save_exec_prefix"
6114 prefix="$acl_save_prefix"
6115
6116 if test "X$x" = "X$element"; then
6117 haveit=yes
6118 break
6119 fi
6120 done
6121 if test -z "$haveit"; then
6122 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6123 fi
6124 done
6125
6126 fi
6127
6128
6129$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6130
6131
6132$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6133
6134 fi
6135
6136 POSUB=po
6137 fi
6138
6139
6140
6141 INTLLIBS="$LIBINTL"
6142
6143
6144
6145
6146
6147
6148
6149# This test must come as early as possible after the compiler configuration
6150# tests, because the choice of the file model can (in principle) affect
6151# whether functions and headers are available, whether they work, etc.
6152# Check whether --enable-largefile was given.
6153if test "${enable_largefile+set}" = set; then :
6154 enableval=$enable_largefile;
6155fi
6156
6157if test "$enable_largefile" != no; then
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6160$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6161if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163else
6164 ac_cv_sys_largefile_CC=no
6165 if test "$GCC" != yes; then
6166 ac_save_CC=$CC
6167 while :; do
6168 # IRIX 6.2 and later do not support large files by default,
6169 # so use the C compiler's -n32 option if that helps.
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h. */
6172#include <sys/types.h>
6173 /* Check that off_t can represent 2**63 - 1 correctly.
6174 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6175 since some C++ compilers masquerading as C compilers
6176 incorrectly reject 9223372036854775807. */
6177#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6178 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6179 && LARGE_OFF_T % 2147483647 == 1)
6180 ? 1 : -1];
6181int
6182main ()
6183{
6184
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189 if ac_fn_c_try_compile "$LINENO"; then :
6190 break
6191fi
6192rm -f core conftest.err conftest.$ac_objext
6193 CC="$CC -n32"
6194 if ac_fn_c_try_compile "$LINENO"; then :
6195 ac_cv_sys_largefile_CC=' -n32'; break
6196fi
6197rm -f core conftest.err conftest.$ac_objext
6198 break
6199 done
6200 CC=$ac_save_CC
6201 rm -f conftest.$ac_ext
6202 fi
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6205$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6206 if test "$ac_cv_sys_largefile_CC" != no; then
6207 CC=$CC$ac_cv_sys_largefile_CC
6208 fi
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6211$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6212if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214else
6215 while :; do
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217/* end confdefs.h. */
6218#include <sys/types.h>
6219 /* Check that off_t can represent 2**63 - 1 correctly.
6220 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6221 since some C++ compilers masquerading as C compilers
6222 incorrectly reject 9223372036854775807. */
6223#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6225 && LARGE_OFF_T % 2147483647 == 1)
6226 ? 1 : -1];
6227int
6228main ()
6229{
6230
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"; then :
6236 ac_cv_sys_file_offset_bits=no; break
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h. */
6241#define _FILE_OFFSET_BITS 64
6242#include <sys/types.h>
6243 /* Check that off_t can represent 2**63 - 1 correctly.
6244 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6245 since some C++ compilers masquerading as C compilers
6246 incorrectly reject 9223372036854775807. */
6247#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6248 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6249 && LARGE_OFF_T % 2147483647 == 1)
6250 ? 1 : -1];
6251int
6252main ()
6253{
6254
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_sys_file_offset_bits=64; break
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 ac_cv_sys_file_offset_bits=unknown
6264 break
6265done
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6268$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6269case $ac_cv_sys_file_offset_bits in #(
6270 no | unknown) ;;
6271 *)
6272cat >>confdefs.h <<_ACEOF
6273#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6274_ACEOF
6275;;
6276esac
6277rm -rf conftest*
6278 if test $ac_cv_sys_file_offset_bits = unknown; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6280$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6281if test "${ac_cv_sys_large_files+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 while :; do
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h. */
6287#include <sys/types.h>
6288 /* Check that off_t can represent 2**63 - 1 correctly.
6289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6290 since some C++ compilers masquerading as C compilers
6291 incorrectly reject 9223372036854775807. */
6292#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6294 && LARGE_OFF_T % 2147483647 == 1)
6295 ? 1 : -1];
6296int
6297main ()
6298{
6299
6300 ;
6301 return 0;
6302}
6303_ACEOF
6304if ac_fn_c_try_compile "$LINENO"; then :
6305 ac_cv_sys_large_files=no; break
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h. */
6310#define _LARGE_FILES 1
6311#include <sys/types.h>
6312 /* Check that off_t can represent 2**63 - 1 correctly.
6313 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6314 since some C++ compilers masquerading as C compilers
6315 incorrectly reject 9223372036854775807. */
6316#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6317 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6318 && LARGE_OFF_T % 2147483647 == 1)
6319 ? 1 : -1];
6320int
6321main ()
6322{
6323
6324 ;
6325 return 0;
6326}
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"; then :
6329 ac_cv_sys_large_files=1; break
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 ac_cv_sys_large_files=unknown
6333 break
6334done
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6337$as_echo "$ac_cv_sys_large_files" >&6; }
6338case $ac_cv_sys_large_files in #(
6339 no | unknown) ;;
6340 *)
6341cat >>confdefs.h <<_ACEOF
6342#define _LARGE_FILES $ac_cv_sys_large_files
6343_ACEOF
6344;;
6345esac
6346rm -rf conftest*
6347 fi
6348fi
6349
6350
6351# Checks for libraries.
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
6353$as_echo_n "checking for library containing getpwnam... " >&6; }
6354if test "${ac_cv_search_getpwnam+set}" = set; then :
6355 $as_echo_n "(cached) " >&6
6356else
6357 ac_func_search_save_LIBS=$LIBS
6358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h. */
6360
6361/* Override any GCC internal prototype to avoid an error.
6362 Use char because int might match the return type of a GCC
6363 builtin and then its argument prototype would still apply. */
6364#ifdef __cplusplus
6365extern "C"
6366#endif
6367char getpwnam ();
6368int
6369main ()
6370{
6371return getpwnam ();
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376for ac_lib in '' sun; do
6377 if test -z "$ac_lib"; then
6378 ac_res="none required"
6379 else
6380 ac_res=-l$ac_lib
6381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6382 fi
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 ac_cv_search_getpwnam=$ac_res
6385fi
6386rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext
6388 if test "${ac_cv_search_getpwnam+set}" = set; then :
6389 break
6390fi
6391done
6392if test "${ac_cv_search_getpwnam+set}" = set; then :
6393
6394else
6395 ac_cv_search_getpwnam=no
6396fi
6397rm conftest.$ac_ext
6398LIBS=$ac_func_search_save_LIBS
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
6401$as_echo "$ac_cv_search_getpwnam" >&6; }
6402ac_res=$ac_cv_search_getpwnam
6403if test "$ac_res" != no; then :
6404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6405
6406fi
6407
6408
6409# Checks for header files.
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6411$as_echo_n "checking for ANSI C header files... " >&6; }
6412if test "${ac_cv_header_stdc+set}" = set; then :
6413 $as_echo_n "(cached) " >&6
6414else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h. */
6417#include <stdlib.h>
6418#include <stdarg.h>
6419#include <string.h>
6420#include <float.h>
6421
6422int
6423main ()
6424{
6425
6426 ;
6427 return 0;
6428}
6429_ACEOF
6430if ac_fn_c_try_compile "$LINENO"; then :
6431 ac_cv_header_stdc=yes
6432else
6433 ac_cv_header_stdc=no
6434fi
6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436
6437if test $ac_cv_header_stdc = yes; then
6438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h. */
6441#include <string.h>
6442
6443_ACEOF
6444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6445 $EGREP "memchr" >/dev/null 2>&1; then :
6446
6447else
6448 ac_cv_header_stdc=no
6449fi
6450rm -f conftest*
6451
6452fi
6453
6454if test $ac_cv_header_stdc = yes; then
6455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h. */
6458#include <stdlib.h>
6459
6460_ACEOF
6461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 $EGREP "free" >/dev/null 2>&1; then :
6463
6464else
6465 ac_cv_header_stdc=no
6466fi
6467rm -f conftest*
6468
6469fi
6470
6471if test $ac_cv_header_stdc = yes; then
6472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6473 if test "$cross_compiling" = yes; then :
6474 :
6475else
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h. */
6478#include <ctype.h>
6479#include <stdlib.h>
6480#if ((' ' & 0x0FF) == 0x020)
6481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6483#else
6484# define ISLOWER(c) \
6485 (('a' <= (c) && (c) <= 'i') \
6486 || ('j' <= (c) && (c) <= 'r') \
6487 || ('s' <= (c) && (c) <= 'z'))
6488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489#endif
6490
6491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6492int
6493main ()
6494{
6495 int i;
6496 for (i = 0; i < 256; i++)
6497 if (XOR (islower (i), ISLOWER (i))
6498 || toupper (i) != TOUPPER (i))
6499 return 2;
6500 return 0;
6501}
6502_ACEOF
6503if ac_fn_c_try_run "$LINENO"; then :
6504
6505else
6506 ac_cv_header_stdc=no
6507fi
6508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6509 conftest.$ac_objext conftest.beam conftest.$ac_ext
6510fi
6511
6512fi
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6515$as_echo "$ac_cv_header_stdc" >&6; }
6516if test $ac_cv_header_stdc = yes; then
6517
6518$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6519
6520fi
6521
6522ac_header_dirent=no
6523for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6524 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6526$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6528 $as_echo_n "(cached) " >&6
6529else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h. */
6532#include <sys/types.h>
6533#include <$ac_hdr>
6534
6535int
6536main ()
6537{
6538if ((DIR *) 0)
6539return 0;
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544if ac_fn_c_try_compile "$LINENO"; then :
6545 eval "$as_ac_Header=yes"
6546else
6547 eval "$as_ac_Header=no"
6548fi
6549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550fi
6551eval ac_res=\$$as_ac_Header
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6553$as_echo "$ac_res" >&6; }
6554eval as_val=\$$as_ac_Header
6555 if test "x$as_val" = x""yes; then :
6556 cat >>confdefs.h <<_ACEOF
6557#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6558_ACEOF
6559
6560ac_header_dirent=$ac_hdr; break
6561fi
6562
6563done
6564# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6565if test $ac_header_dirent = dirent.h; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6567$as_echo_n "checking for library containing opendir... " >&6; }
6568if test "${ac_cv_search_opendir+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570else
6571 ac_func_search_save_LIBS=$LIBS
6572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
6574
6575/* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
6578#ifdef __cplusplus
6579extern "C"
6580#endif
6581char opendir ();
6582int
6583main ()
6584{
6585return opendir ();
6586 ;
6587 return 0;
6588}
6589_ACEOF
6590for ac_lib in '' dir; do
6591 if test -z "$ac_lib"; then
6592 ac_res="none required"
6593 else
6594 ac_res=-l$ac_lib
6595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6596 fi
6597 if ac_fn_c_try_link "$LINENO"; then :
6598 ac_cv_search_opendir=$ac_res
6599fi
6600rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext
6602 if test "${ac_cv_search_opendir+set}" = set; then :
6603 break
6604fi
6605done
6606if test "${ac_cv_search_opendir+set}" = set; then :
6607
6608else
6609 ac_cv_search_opendir=no
6610fi
6611rm conftest.$ac_ext
6612LIBS=$ac_func_search_save_LIBS
6613fi
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6615$as_echo "$ac_cv_search_opendir" >&6; }
6616ac_res=$ac_cv_search_opendir
6617if test "$ac_res" != no; then :
6618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6619
6620fi
6621
6622else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6624$as_echo_n "checking for library containing opendir... " >&6; }
6625if test "${ac_cv_search_opendir+set}" = set; then :
6626 $as_echo_n "(cached) " >&6
6627else
6628 ac_func_search_save_LIBS=$LIBS
6629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h. */
6631
6632/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */
6635#ifdef __cplusplus
6636extern "C"
6637#endif
6638char opendir ();
6639int
6640main ()
6641{
6642return opendir ();
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647for ac_lib in '' x; do
6648 if test -z "$ac_lib"; then
6649 ac_res="none required"
6650 else
6651 ac_res=-l$ac_lib
6652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6653 fi
6654 if ac_fn_c_try_link "$LINENO"; then :
6655 ac_cv_search_opendir=$ac_res
6656fi
6657rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext
6659 if test "${ac_cv_search_opendir+set}" = set; then :
6660 break
6661fi
6662done
6663if test "${ac_cv_search_opendir+set}" = set; then :
6664
6665else
6666 ac_cv_search_opendir=no
6667fi
6668rm conftest.$ac_ext
6669LIBS=$ac_func_search_save_LIBS
6670fi
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6672$as_echo "$ac_cv_search_opendir" >&6; }
6673ac_res=$ac_cv_search_opendir
6674if test "$ac_res" != no; then :
6675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6676
6677fi
6678
6679fi
6680
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6682$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6683if test "${ac_cv_header_stat_broken+set}" = set; then :
6684 $as_echo_n "(cached) " >&6
6685else
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h. */
6688#include <sys/types.h>
6689#include <sys/stat.h>
6690
6691#if defined S_ISBLK && defined S_IFDIR
6692extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6693#endif
6694
6695#if defined S_ISBLK && defined S_IFCHR
6696extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6697#endif
6698
6699#if defined S_ISLNK && defined S_IFREG
6700extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6701#endif
6702
6703#if defined S_ISSOCK && defined S_IFREG
6704extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6705#endif
6706
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"; then :
6709 ac_cv_header_stat_broken=no
6710else
6711 ac_cv_header_stat_broken=yes
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6716$as_echo "$ac_cv_header_stat_broken" >&6; }
6717if test $ac_cv_header_stat_broken = yes; then
6718
6719$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6720
6721fi
6722
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6724$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6725if test "${ac_cv_header_time+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727else
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h. */
6730#include <sys/types.h>
6731#include <sys/time.h>
6732#include <time.h>
6733
6734int
6735main ()
6736{
6737if ((struct tm *) 0)
6738return 0;
6739 ;
6740 return 0;
6741}
6742_ACEOF
6743if ac_fn_c_try_compile "$LINENO"; then :
6744 ac_cv_header_time=yes
6745else
6746 ac_cv_header_time=no
6747fi
6748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749fi
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6751$as_echo "$ac_cv_header_time" >&6; }
6752if test $ac_cv_header_time = yes; then
6753
6754$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6755
6756fi
6757
6758for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
6759 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
6760do :
6761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6762ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6763eval as_val=\$$as_ac_Header
6764 if test "x$as_val" = x""yes; then :
6765 cat >>confdefs.h <<_ACEOF
6766#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6767_ACEOF
6768
6769fi
6770
6771done
6772
6773
6774# Set a flag if we have an ANSI C compiler
6775if test "$ac_cv_prog_cc_stdc" != no; then
6776
6777$as_echo "#define HAVE_ANSI_COMPILER 1" >>confdefs.h
6778
6779fi
6780
6781
6782# Determine what kind of variadic function calls we support
6783for ac_header in stdarg.h varargs.h
6784do :
6785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6786ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6787eval as_val=\$$as_ac_Header
6788 if test "x$as_val" = x""yes; then :
6789 cat >>confdefs.h <<_ACEOF
6790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791_ACEOF
6792 break
6793fi
6794
6795done
6796
6797
6798if test "x$CC" != xcc; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6800$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6801else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6803$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6804fi
6805set dummy $CC; ac_cc=`$as_echo "$2" |
6806 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6807if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6808 $as_echo_n "(cached) " >&6
6809else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h. */
6812
6813int
6814main ()
6815{
6816
6817 ;
6818 return 0;
6819}
6820_ACEOF
6821# Make sure it works both with $CC and with simple cc.
6822# We do the test twice because some compilers refuse to overwrite an
6823# existing .o file with -o, though they will create one.
6824ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6825rm -f conftest2.*
6826if { { case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6831$as_echo "$ac_try_echo"; } >&5
6832 (eval "$ac_try") 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; } &&
6836 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839esac
6840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6841$as_echo "$ac_try_echo"; } >&5
6842 (eval "$ac_try") 2>&5
6843 ac_status=$?
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; };
6846then
6847 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6848 if test "x$CC" != xcc; then
6849 # Test first that cc exists at all.
6850 if { ac_try='cc -c conftest.$ac_ext >&5'
6851 { { case "(($ac_try" in
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6854esac
6855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6856$as_echo "$ac_try_echo"; } >&5
6857 (eval "$ac_try") 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; }; then
6861 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6862 rm -f conftest2.*
6863 if { { case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866esac
6867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6868$as_echo "$ac_try_echo"; } >&5
6869 (eval "$ac_try") 2>&5
6870 ac_status=$?
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; } &&
6873 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876esac
6877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6878$as_echo "$ac_try_echo"; } >&5
6879 (eval "$ac_try") 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; };
6883 then
6884 # cc works too.
6885 :
6886 else
6887 # cc exists but doesn't like -o.
6888 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6889 fi
6890 fi
6891 fi
6892else
6893 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6894fi
6895rm -f core conftest*
6896
6897fi
6898if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900$as_echo "yes" >&6; }
6901else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904
6905$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6906
6907fi
6908
6909# FIXME: we rely on the cache variable name because
6910# there is no other way.
6911set dummy $CC
6912am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6913eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6914if test "$am_t" != yes; then
6915 # Losing compiler, so override with the script.
6916 # FIXME: It is wrong to rewrite CC.
6917 # But if we don't then we get into trouble of one sort or another.
6918 # A longer-term fix would be to have automake use am__CC in this case,
6919 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6920 CC="$am_aux_dir/compile $CC"
6921fi
6922
6923
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6925$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6926if test "${ac_cv_c_const+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928else
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h. */
6931
6932int
6933main ()
6934{
6935/* FIXME: Include the comments suggested by Paul. */
6936#ifndef __cplusplus
6937 /* Ultrix mips cc rejects this. */
6938 typedef int charset[2];
6939 const charset cs;
6940 /* SunOS 4.1.1 cc rejects this. */
6941 char const *const *pcpcc;
6942 char **ppc;
6943 /* NEC SVR4.0.2 mips cc rejects this. */
6944 struct point {int x, y;};
6945 static struct point const zero = {0,0};
6946 /* AIX XL C 1.02.0.0 rejects this.
6947 It does not let you subtract one const X* pointer from another in
6948 an arm of an if-expression whose if-part is not a constant
6949 expression */
6950 const char *g = "string";
6951 pcpcc = &g + (g ? g-g : 0);
6952 /* HPUX 7.0 cc rejects these. */
6953 ++pcpcc;
6954 ppc = (char**) pcpcc;
6955 pcpcc = (char const *const *) ppc;
6956 { /* SCO 3.2v4 cc rejects this. */
6957 char *t;
6958 char const *s = 0 ? (char *) 0 : (char const *) 0;
6959
6960 *t++ = 0;
6961 if (s) return 0;
6962 }
6963 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6964 int x[] = {25, 17};
6965 const int *foo = &x[0];
6966 ++foo;
6967 }
6968 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6969 typedef const int *iptr;
6970 iptr p = 0;
6971 ++p;
6972 }
6973 { /* AIX XL C 1.02.0.0 rejects this saying
6974 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6975 struct s { int j; const int *ap[3]; };
6976 struct s *b; b->j = 5;
6977 }
6978 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6979 const int foo = 10;
6980 if (!foo) return 0;
6981 }
6982 return !cs[0] && !zero.x;
6983#endif
6984
6985 ;
6986 return 0;
6987}
6988_ACEOF
6989if ac_fn_c_try_compile "$LINENO"; then :
6990 ac_cv_c_const=yes
6991else
6992 ac_cv_c_const=no
6993fi
6994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995fi
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6997$as_echo "$ac_cv_c_const" >&6; }
6998if test $ac_cv_c_const = no; then
6999
7000$as_echo "#define const /**/" >>confdefs.h
7001
7002fi
7003
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7005$as_echo_n "checking return type of signal handlers... " >&6; }
7006if test "${ac_cv_type_signal+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008else
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h. */
7011#include <sys/types.h>
7012#include <signal.h>
7013
7014int
7015main ()
7016{
7017return *(signal (0, 0)) (0) == 1;
7018 ;
7019 return 0;
7020}
7021_ACEOF
7022if ac_fn_c_try_compile "$LINENO"; then :
7023 ac_cv_type_signal=int
7024else
7025 ac_cv_type_signal=void
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028fi
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7030$as_echo "$ac_cv_type_signal" >&6; }
7031
7032cat >>confdefs.h <<_ACEOF
7033#define RETSIGTYPE $ac_cv_type_signal
7034_ACEOF
7035
7036
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7038$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7039if test "${ac_cv_type_uid_t+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7041else
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h. */
7044#include <sys/types.h>
7045
7046_ACEOF
7047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 $EGREP "uid_t" >/dev/null 2>&1; then :
7049 ac_cv_type_uid_t=yes
7050else
7051 ac_cv_type_uid_t=no
7052fi
7053rm -f conftest*
7054
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7057$as_echo "$ac_cv_type_uid_t" >&6; }
7058if test $ac_cv_type_uid_t = no; then
7059
7060$as_echo "#define uid_t int" >>confdefs.h
7061
7062
7063$as_echo "#define gid_t int" >>confdefs.h
7064
7065fi
7066
7067ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7068if test "x$ac_cv_type_pid_t" = x""yes; then :
7069
7070else
7071
7072cat >>confdefs.h <<_ACEOF
7073#define pid_t int
7074_ACEOF
7075
7076fi
7077
7078
7079# Find some definition for uintmax_t
7080
7081ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7082if test "x$ac_cv_type_uintmax_t" = x""yes; then :
7083
7084else
7085
7086 uintmax_t="unsigned long"
7087 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
7088if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
7089 uintmax_t="unsigned long long"
7090fi
7091
7092
7093cat >>confdefs.h <<_ACEOF
7094#define uintmax_t $uintmax_t
7095_ACEOF
7096
7097fi
7098
7099
7100# Find out whether our struct stat returns nanosecond resolution timestamps.
7101
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat.st_mtim" >&5
7103$as_echo_n "checking for nanoseconds field of struct stat.st_mtim... " >&6; }
7104if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106else
7107 ac_save_CPPFLAGS="$CPPFLAGS"
7108 ac_cv_struct_st_mtim_nsec=no
7109 # tv_nsec -- the usual case
7110 # _tv_nsec -- Solaris 2.6, if
7111 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7112 # && !defined __EXTENSIONS__)
7113 # st__tim.tv_nsec -- UnixWare 2.1.2
7114 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7115 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h. */
7118#include <sys/types.h>
7119#include <sys/stat.h>
7120
7121int
7122main ()
7123{
7124struct stat s; s.st_mtim.ST_MTIM_NSEC;
7125 ;
7126 return 0;
7127}
7128_ACEOF
7129if ac_fn_c_try_compile "$LINENO"; then :
7130 ac_cv_struct_st_mtim_nsec=$ac_val; break
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 done
7134 CPPFLAGS="$ac_save_CPPFLAGS"
7135
7136fi
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
7138$as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
7139
7140 if test $ac_cv_struct_st_mtim_nsec != no; then
7141
7142cat >>confdefs.h <<_ACEOF
7143#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7144_ACEOF
7145
7146 fi
7147
7148
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
7150$as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
7151if test "${make_cv_file_timestamp_hi_res+set}" = set; then :
7152 $as_echo_n "(cached) " >&6
7153else
7154
7155 make_cv_file_timestamp_hi_res=no
7156 if test "$ac_cv_struct_st_mtim_nsec" != no; then
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h. */
7159
7160# if HAVE_INTTYPES_H
7161# include <inttypes.h>
7162# endif
7163int
7164main ()
7165{
7166char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
7167 ;
7168 return 0;
7169}
7170_ACEOF
7171if ac_fn_c_try_compile "$LINENO"; then :
7172 make_cv_file_timestamp_hi_res=yes
7173fi
7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 fi
7176fi
7177
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
7179$as_echo "$make_cv_file_timestamp_hi_res" >&6; }
7180if test "$make_cv_file_timestamp_hi_res" = yes; then
7181 val=1
7182else
7183 val=0
7184fi
7185
7186cat >>confdefs.h <<_ACEOF
7187#define FILE_TIMESTAMP_HI_RES $val
7188_ACEOF
7189
7190
7191if test "$make_cv_file_timestamp_hi_res" = yes; then
7192 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7193 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7195$as_echo_n "checking for library containing clock_gettime... " >&6; }
7196if test "${ac_cv_search_clock_gettime+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198else
7199 ac_func_search_save_LIBS=$LIBS
7200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h. */
7202
7203/* Override any GCC internal prototype to avoid an error.
7204 Use char because int might match the return type of a GCC
7205 builtin and then its argument prototype would still apply. */
7206#ifdef __cplusplus
7207extern "C"
7208#endif
7209char clock_gettime ();
7210int
7211main ()
7212{
7213return clock_gettime ();
7214 ;
7215 return 0;
7216}
7217_ACEOF
7218for ac_lib in '' rt posix4; do
7219 if test -z "$ac_lib"; then
7220 ac_res="none required"
7221 else
7222 ac_res=-l$ac_lib
7223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7224 fi
7225 if ac_fn_c_try_link "$LINENO"; then :
7226 ac_cv_search_clock_gettime=$ac_res
7227fi
7228rm -f core conftest.err conftest.$ac_objext \
7229 conftest$ac_exeext
7230 if test "${ac_cv_search_clock_gettime+set}" = set; then :
7231 break
7232fi
7233done
7234if test "${ac_cv_search_clock_gettime+set}" = set; then :
7235
7236else
7237 ac_cv_search_clock_gettime=no
7238fi
7239rm conftest.$ac_ext
7240LIBS=$ac_func_search_save_LIBS
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7243$as_echo "$ac_cv_search_clock_gettime" >&6; }
7244ac_res=$ac_cv_search_clock_gettime
7245if test "$ac_res" != no; then :
7246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7247
7248fi
7249
7250 if test "$ac_cv_search_clock_gettime" != no; then
7251
7252$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7253
7254 fi
7255fi
7256
7257# Check for DOS-style pathnames.
7258
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
7260$as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
7261if test "${ac_cv_dos_paths+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7263else
7264
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h. */
7267
7268#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
7269neither MSDOS nor Windows nor OS2
7270#endif
7271
7272_ACEOF
7273if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_dos_paths=yes
7275else
7276 ac_cv_dos_paths=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279
7280fi
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
7282$as_echo "$ac_cv_dos_paths" >&6; }
7283
7284 if test x"$ac_cv_dos_paths" = xyes; then
7285
7286cat >>confdefs.h <<_ACEOF
7287#define HAVE_DOS_PATHS 1
7288_ACEOF
7289
7290 fi
7291
7292
7293# See if we have a standard version of gettimeofday(). Since actual
7294# implementations can differ, just make sure we have the most common
7295# one.
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
7297$as_echo_n "checking for standard gettimeofday... " >&6; }
7298if test "${ac_cv_func_gettimeofday+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 ac_cv_func_gettimeofday=no
7302 if test "$cross_compiling" = yes; then :
7303 ac_cv_func_gettimeofday="no (cross-compiling)"
7304else
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h. */
7307#include <sys/time.h>
7308 int main ()
7309 {
7310 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
7311 exit (gettimeofday (&t, 0) != 0
7312 || t.tv_sec < 0 || t.tv_usec < 0);
7313 }
7314_ACEOF
7315if ac_fn_c_try_run "$LINENO"; then :
7316 ac_cv_func_gettimeofday=yes
7317else
7318 ac_cv_func_gettimeofday=no
7319fi
7320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321 conftest.$ac_objext conftest.beam conftest.$ac_ext
7322fi
7323
7324fi
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
7326$as_echo "$ac_cv_func_gettimeofday" >&6; }
7327if test "$ac_cv_func_gettimeofday" = yes; then
7328
7329$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
7330
7331fi
7332
7333for ac_func in strdup strndup mkstemp mktemp fdopen fileno \
7334 dup2 getcwd realpath sigsetmask sigaction \
7335 getgroups seteuid setegid setlinebuf setreuid setregid \
7336 getrlimit setrlimit setvbuf pipe strerror strsignal \
7337 lstat readlink atexit
7338do :
7339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7340ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7341eval as_val=\$$as_ac_var
7342 if test "x$as_val" = x""yes; then :
7343 cat >>confdefs.h <<_ACEOF
7344#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7345_ACEOF
7346
7347fi
7348done
7349
7350
7351# We need to check declarations, not just existence, because on Tru64 this
7352# function is not declared without special flags, which themselves cause
7353# other problems. We'll just use our own.
7354ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#include <signal.h>
7355"
7356if test "x$ac_cv_have_decl_bsd_signal" = x""yes; then :
7357 ac_have_decl=1
7358else
7359 ac_have_decl=0
7360fi
7361
7362cat >>confdefs.h <<_ACEOF
7363#define HAVE_DECL_BSD_SIGNAL $ac_have_decl
7364_ACEOF
7365
7366
7367if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
7368 $as_echo_n "(cached) " >&6
7369else
7370 ac_cv_func_setvbuf_reversed=no
7371fi
7372
7373
7374
7375# Rumor has it that strcasecmp lives in -lresolv on some odd systems.
7376# It doesn't hurt much to use our own if we can't find it so I don't
7377# make the effort here.
7378for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
7379do :
7380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7381ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7382eval as_val=\$$as_ac_var
7383 if test "x$as_val" = x""yes; then :
7384 cat >>confdefs.h <<_ACEOF
7385#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7386_ACEOF
7387
7388fi
7389done
7390
7391
7392# strcoll() is used by the GNU glob library
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7394$as_echo_n "checking for working strcoll... " >&6; }
7395if test "${ac_cv_func_strcoll_works+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7397else
7398 if test "$cross_compiling" = yes; then :
7399 ac_cv_func_strcoll_works=no
7400else
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h. */
7403$ac_includes_default
7404int
7405main ()
7406{
7407return (strcoll ("abc", "def") >= 0 ||
7408 strcoll ("ABC", "DEF") >= 0 ||
7409 strcoll ("123", "456") >= 0)
7410 ;
7411 return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_run "$LINENO"; then :
7415 ac_cv_func_strcoll_works=yes
7416else
7417 ac_cv_func_strcoll_works=no
7418fi
7419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7420 conftest.$ac_objext conftest.beam conftest.$ac_ext
7421fi
7422
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7425$as_echo "$ac_cv_func_strcoll_works" >&6; }
7426if test $ac_cv_func_strcoll_works = yes; then
7427
7428$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7429
7430fi
7431
7432
7433# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7434# for constant arguments. Useless!
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7436$as_echo_n "checking for working alloca.h... " >&6; }
7437if test "${ac_cv_working_alloca_h+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7439else
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h. */
7442#include <alloca.h>
7443int
7444main ()
7445{
7446char *p = (char *) alloca (2 * sizeof (int));
7447 if (p) return 0;
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452if ac_fn_c_try_link "$LINENO"; then :
7453 ac_cv_working_alloca_h=yes
7454else
7455 ac_cv_working_alloca_h=no
7456fi
7457rm -f core conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7461$as_echo "$ac_cv_working_alloca_h" >&6; }
7462if test $ac_cv_working_alloca_h = yes; then
7463
7464$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7465
7466fi
7467
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7469$as_echo_n "checking for alloca... " >&6; }
7470if test "${ac_cv_func_alloca_works+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472else
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h. */
7475#ifdef __GNUC__
7476# define alloca __builtin_alloca
7477#else
7478# ifdef _MSC_VER
7479# include <malloc.h>
7480# define alloca _alloca
7481# else
7482# ifdef HAVE_ALLOCA_H
7483# include <alloca.h>
7484# else
7485# ifdef _AIX
7486 #pragma alloca
7487# else
7488# ifndef alloca /* predefined by HP cc +Olibcalls */
7489char *alloca ();
7490# endif
7491# endif
7492# endif
7493# endif
7494#endif
7495
7496int
7497main ()
7498{
7499char *p = (char *) alloca (1);
7500 if (p) return 0;
7501 ;
7502 return 0;
7503}
7504_ACEOF
7505if ac_fn_c_try_link "$LINENO"; then :
7506 ac_cv_func_alloca_works=yes
7507else
7508 ac_cv_func_alloca_works=no
7509fi
7510rm -f core conftest.err conftest.$ac_objext \
7511 conftest$ac_exeext conftest.$ac_ext
7512fi
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7514$as_echo "$ac_cv_func_alloca_works" >&6; }
7515
7516if test $ac_cv_func_alloca_works = yes; then
7517
7518$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7519
7520else
7521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7522# that cause trouble. Some versions do not even contain alloca or
7523# contain a buggy version. If you still want to use their alloca,
7524# use ar to extract alloca.o from them instead of compiling alloca.c.
7525
7526ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7527
7528$as_echo "#define C_ALLOCA 1" >>confdefs.h
7529
7530
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7532$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7533if test "${ac_cv_os_cray+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535else
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h. */
7538#if defined CRAY && ! defined CRAY2
7539webecray
7540#else
7541wenotbecray
7542#endif
7543
7544_ACEOF
7545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7546 $EGREP "webecray" >/dev/null 2>&1; then :
7547 ac_cv_os_cray=yes
7548else
7549 ac_cv_os_cray=no
7550fi
7551rm -f conftest*
7552
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7555$as_echo "$ac_cv_os_cray" >&6; }
7556if test $ac_cv_os_cray = yes; then
7557 for ac_func in _getb67 GETB67 getb67; do
7558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7560eval as_val=\$$as_ac_var
7561 if test "x$as_val" = x""yes; then :
7562
7563cat >>confdefs.h <<_ACEOF
7564#define CRAY_STACKSEG_END $ac_func
7565_ACEOF
7566
7567 break
7568fi
7569
7570 done
7571fi
7572
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7574$as_echo_n "checking stack direction for C alloca... " >&6; }
7575if test "${ac_cv_c_stack_direction+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577else
7578 if test "$cross_compiling" = yes; then :
7579 ac_cv_c_stack_direction=0
7580else
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582/* end confdefs.h. */
7583$ac_includes_default
7584int
7585find_stack_direction ()
7586{
7587 static char *addr = 0;
7588 auto char dummy;
7589 if (addr == 0)
7590 {
7591 addr = &dummy;
7592 return find_stack_direction ();
7593 }
7594 else
7595 return (&dummy > addr) ? 1 : -1;
7596}
7597
7598int
7599main ()
7600{
7601 return find_stack_direction () < 0;
7602}
7603_ACEOF
7604if ac_fn_c_try_run "$LINENO"; then :
7605 ac_cv_c_stack_direction=1
7606else
7607 ac_cv_c_stack_direction=-1
7608fi
7609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610 conftest.$ac_objext conftest.beam conftest.$ac_ext
7611fi
7612
7613fi
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7615$as_echo "$ac_cv_c_stack_direction" >&6; }
7616cat >>confdefs.h <<_ACEOF
7617#define STACK_DIRECTION $ac_cv_c_stack_direction
7618_ACEOF
7619
7620
7621fi
7622
7623for ac_header in vfork.h
7624do :
7625 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7626if test "x$ac_cv_header_vfork_h" = x""yes; then :
7627 cat >>confdefs.h <<_ACEOF
7628#define HAVE_VFORK_H 1
7629_ACEOF
7630
7631fi
7632
7633done
7634
7635for ac_func in fork vfork
7636do :
7637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7638ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7639eval as_val=\$$as_ac_var
7640 if test "x$as_val" = x""yes; then :
7641 cat >>confdefs.h <<_ACEOF
7642#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7643_ACEOF
7644
7645fi
7646done
7647
7648if test "x$ac_cv_func_fork" = xyes; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7650$as_echo_n "checking for working fork... " >&6; }
7651if test "${ac_cv_func_fork_works+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653else
7654 if test "$cross_compiling" = yes; then :
7655 ac_cv_func_fork_works=cross
7656else
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h. */
7659$ac_includes_default
7660int
7661main ()
7662{
7663
7664 /* By Ruediger Kuhlmann. */
7665 return fork () < 0;
7666
7667 ;
7668 return 0;
7669}
7670_ACEOF
7671if ac_fn_c_try_run "$LINENO"; then :
7672 ac_cv_func_fork_works=yes
7673else
7674 ac_cv_func_fork_works=no
7675fi
7676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7677 conftest.$ac_objext conftest.beam conftest.$ac_ext
7678fi
7679
7680fi
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7682$as_echo "$ac_cv_func_fork_works" >&6; }
7683
7684else
7685 ac_cv_func_fork_works=$ac_cv_func_fork
7686fi
7687if test "x$ac_cv_func_fork_works" = xcross; then
7688 case $host in
7689 *-*-amigaos* | *-*-msdosdjgpp*)
7690 # Override, as these systems have only a dummy fork() stub
7691 ac_cv_func_fork_works=no
7692 ;;
7693 *)
7694 ac_cv_func_fork_works=yes
7695 ;;
7696 esac
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7698$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7699fi
7700ac_cv_func_vfork_works=$ac_cv_func_vfork
7701if test "x$ac_cv_func_vfork" = xyes; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7703$as_echo_n "checking for working vfork... " >&6; }
7704if test "${ac_cv_func_vfork_works+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7706else
7707 if test "$cross_compiling" = yes; then :
7708 ac_cv_func_vfork_works=cross
7709else
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h. */
7712/* Thanks to Paul Eggert for this test. */
7713$ac_includes_default
7714#include <sys/wait.h>
7715#ifdef HAVE_VFORK_H
7716# include <vfork.h>
7717#endif
7718/* On some sparc systems, changes by the child to local and incoming
7719 argument registers are propagated back to the parent. The compiler
7720 is told about this with #include <vfork.h>, but some compilers
7721 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7722 static variable whose address is put into a register that is
7723 clobbered by the vfork. */
7724static void
7725#ifdef __cplusplus
7726sparc_address_test (int arg)
7727# else
7728sparc_address_test (arg) int arg;
7729#endif
7730{
7731 static pid_t child;
7732 if (!child) {
7733 child = vfork ();
7734 if (child < 0) {
7735 perror ("vfork");
7736 _exit(2);
7737 }
7738 if (!child) {
7739 arg = getpid();
7740 write(-1, "", 0);
7741 _exit (arg);
7742 }
7743 }
7744}
7745
7746int
7747main ()
7748{
7749 pid_t parent = getpid ();
7750 pid_t child;
7751
7752 sparc_address_test (0);
7753
7754 child = vfork ();
7755
7756 if (child == 0) {
7757 /* Here is another test for sparc vfork register problems. This
7758 test uses lots of local variables, at least as many local
7759 variables as main has allocated so far including compiler
7760 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7761 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7762 reuse the register of parent for one of the local variables,
7763 since it will think that parent can't possibly be used any more
7764 in this routine. Assigning to the local variable will thus
7765 munge parent in the parent process. */
7766 pid_t
7767 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7768 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7769 /* Convince the compiler that p..p7 are live; otherwise, it might
7770 use the same hardware register for all 8 local variables. */
7771 if (p != p1 || p != p2 || p != p3 || p != p4
7772 || p != p5 || p != p6 || p != p7)
7773 _exit(1);
7774
7775 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7776 from child file descriptors. If the child closes a descriptor
7777 before it execs or exits, this munges the parent's descriptor
7778 as well. Test for this by closing stdout in the child. */
7779 _exit(close(fileno(stdout)) != 0);
7780 } else {
7781 int status;
7782 struct stat st;
7783
7784 while (wait(&status) != child)
7785 ;
7786 return (
7787 /* Was there some problem with vforking? */
7788 child < 0
7789
7790 /* Did the child fail? (This shouldn't happen.) */
7791 || status
7792
7793 /* Did the vfork/compiler bug occur? */
7794 || parent != getpid()
7795
7796 /* Did the file descriptor bug occur? */
7797 || fstat(fileno(stdout), &st) != 0
7798 );
7799 }
7800}
7801_ACEOF
7802if ac_fn_c_try_run "$LINENO"; then :
7803 ac_cv_func_vfork_works=yes
7804else
7805 ac_cv_func_vfork_works=no
7806fi
7807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7808 conftest.$ac_objext conftest.beam conftest.$ac_ext
7809fi
7810
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7813$as_echo "$ac_cv_func_vfork_works" >&6; }
7814
7815fi;
7816if test "x$ac_cv_func_fork_works" = xcross; then
7817 ac_cv_func_vfork_works=$ac_cv_func_vfork
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7819$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7820fi
7821
7822if test "x$ac_cv_func_vfork_works" = xyes; then
7823
7824$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7825
7826else
7827
7828$as_echo "#define vfork fork" >>confdefs.h
7829
7830fi
7831if test "x$ac_cv_func_fork_works" = xyes; then
7832
7833$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7834
7835fi
7836
7837for ac_func in vprintf
7838do :
7839 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7840if test "x$ac_cv_func_vprintf" = x""yes; then :
7841 cat >>confdefs.h <<_ACEOF
7842#define HAVE_VPRINTF 1
7843_ACEOF
7844
7845ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7846if test "x$ac_cv_func__doprnt" = x""yes; then :
7847
7848$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7849
7850fi
7851
7852fi
7853done
7854
7855
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7857$as_echo_n "checking whether closedir returns void... " >&6; }
7858if test "${ac_cv_func_closedir_void+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860else
7861 if test "$cross_compiling" = yes; then :
7862 ac_cv_func_closedir_void=yes
7863else
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h. */
7866$ac_includes_default
7867#include <$ac_header_dirent>
7868#ifndef __cplusplus
7869int closedir ();
7870#endif
7871
7872int
7873main ()
7874{
7875return closedir (opendir (".")) != 0;
7876 ;
7877 return 0;
7878}
7879_ACEOF
7880if ac_fn_c_try_run "$LINENO"; then :
7881 ac_cv_func_closedir_void=no
7882else
7883 ac_cv_func_closedir_void=yes
7884fi
7885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7886 conftest.$ac_objext conftest.beam conftest.$ac_ext
7887fi
7888
7889fi
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7891$as_echo "$ac_cv_func_closedir_void" >&6; }
7892if test $ac_cv_func_closedir_void = yes; then
7893
7894$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
7895
7896fi
7897
7898
7899ac_have_func=no # yes means we've found a way to get the load average.
7900
7901# Make sure getloadavg.c is where it belongs, at configure-time.
7902test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
7903 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
7904
7905ac_save_LIBS=$LIBS
7906
7907# Check for getloadavg, but be sure not to touch the cache variable.
7908(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
7909if test "x$ac_cv_func_getloadavg" = x""yes; then :
7910 exit 0
7911else
7912 exit 1
7913fi
7914) && ac_have_func=yes
7915
7916# On HPUX9, an unprivileged user can get load averages through this function.
7917for ac_func in pstat_getdynamic
7918do :
7919 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
7920if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
7921 cat >>confdefs.h <<_ACEOF
7922#define HAVE_PSTAT_GETDYNAMIC 1
7923_ACEOF
7924
7925fi
7926done
7927
7928
7929# Solaris has libkstat which does not require root.
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
7931$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
7932if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934else
7935 ac_check_lib_save_LIBS=$LIBS
7936LIBS="-lkstat $LIBS"
7937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h. */
7939
7940/* Override any GCC internal prototype to avoid an error.
7941 Use char because int might match the return type of a GCC
7942 builtin and then its argument prototype would still apply. */
7943#ifdef __cplusplus
7944extern "C"
7945#endif
7946char kstat_open ();
7947int
7948main ()
7949{
7950return kstat_open ();
7951 ;
7952 return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_link "$LINENO"; then :
7956 ac_cv_lib_kstat_kstat_open=yes
7957else
7958 ac_cv_lib_kstat_kstat_open=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext \
7961 conftest$ac_exeext conftest.$ac_ext
7962LIBS=$ac_check_lib_save_LIBS
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
7965$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
7966if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
7967 cat >>confdefs.h <<_ACEOF
7968#define HAVE_LIBKSTAT 1
7969_ACEOF
7970
7971 LIBS="-lkstat $LIBS"
7972
7973fi
7974
7975test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
7976
7977# Some systems with -lutil have (and need) -lkvm as well, some do not.
7978# On Solaris, -lkvm requires nlist from -lelf, so check that first
7979# to get the right answer into the cache.
7980# For kstat on solaris, we need libelf to force the definition of SVR4 below.
7981if test $ac_have_func = no; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
7983$as_echo_n "checking for elf_begin in -lelf... " >&6; }
7984if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986else
7987 ac_check_lib_save_LIBS=$LIBS
7988LIBS="-lelf $LIBS"
7989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h. */
7991
7992/* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7995#ifdef __cplusplus
7996extern "C"
7997#endif
7998char elf_begin ();
7999int
8000main ()
8001{
8002return elf_begin ();
8003 ;
8004 return 0;
8005}
8006_ACEOF
8007if ac_fn_c_try_link "$LINENO"; then :
8008 ac_cv_lib_elf_elf_begin=yes
8009else
8010 ac_cv_lib_elf_elf_begin=no
8011fi
8012rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014LIBS=$ac_check_lib_save_LIBS
8015fi
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
8017$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
8018if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
8019 LIBS="-lelf $LIBS"
8020fi
8021
8022fi
8023if test $ac_have_func = no; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
8025$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
8026if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028else
8029 ac_check_lib_save_LIBS=$LIBS
8030LIBS="-lkvm $LIBS"
8031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032/* end confdefs.h. */
8033
8034/* Override any GCC internal prototype to avoid an error.
8035 Use char because int might match the return type of a GCC
8036 builtin and then its argument prototype would still apply. */
8037#ifdef __cplusplus
8038extern "C"
8039#endif
8040char kvm_open ();
8041int
8042main ()
8043{
8044return kvm_open ();
8045 ;
8046 return 0;
8047}
8048_ACEOF
8049if ac_fn_c_try_link "$LINENO"; then :
8050 ac_cv_lib_kvm_kvm_open=yes
8051else
8052 ac_cv_lib_kvm_kvm_open=no
8053fi
8054rm -f core conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056LIBS=$ac_check_lib_save_LIBS
8057fi
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
8059$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
8060if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
8061 LIBS="-lkvm $LIBS"
8062fi
8063
8064 # Check for the 4.4BSD definition of getloadavg.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
8066$as_echo_n "checking for getloadavg in -lutil... " >&6; }
8067if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069else
8070 ac_check_lib_save_LIBS=$LIBS
8071LIBS="-lutil $LIBS"
8072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h. */
8074
8075/* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
8078#ifdef __cplusplus
8079extern "C"
8080#endif
8081char getloadavg ();
8082int
8083main ()
8084{
8085return getloadavg ();
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090if ac_fn_c_try_link "$LINENO"; then :
8091 ac_cv_lib_util_getloadavg=yes
8092else
8093 ac_cv_lib_util_getloadavg=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8097LIBS=$ac_check_lib_save_LIBS
8098fi
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
8100$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
8101if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
8102 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
8103fi
8104
8105fi
8106
8107if test $ac_have_func = no; then
8108 # There is a commonly available library for RS/6000 AIX.
8109 # Since it is not a standard part of AIX, it might be installed locally.
8110 ac_getloadavg_LIBS=$LIBS
8111 LIBS="-L/usr/local/lib $LIBS"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
8113$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
8114if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116else
8117 ac_check_lib_save_LIBS=$LIBS
8118LIBS="-lgetloadavg $LIBS"
8119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h. */
8121
8122/* Override any GCC internal prototype to avoid an error.
8123 Use char because int might match the return type of a GCC
8124 builtin and then its argument prototype would still apply. */
8125#ifdef __cplusplus
8126extern "C"
8127#endif
8128char getloadavg ();
8129int
8130main ()
8131{
8132return getloadavg ();
8133 ;
8134 return 0;
8135}
8136_ACEOF
8137if ac_fn_c_try_link "$LINENO"; then :
8138 ac_cv_lib_getloadavg_getloadavg=yes
8139else
8140 ac_cv_lib_getloadavg_getloadavg=no
8141fi
8142rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144LIBS=$ac_check_lib_save_LIBS
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8147$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
8148if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
8149 LIBS="-lgetloadavg $LIBS"
8150else
8151 LIBS=$ac_getloadavg_LIBS
8152fi
8153
8154fi
8155
8156# Make sure it is really in the library, if we think we found it,
8157# otherwise set up the replacement function.
8158for ac_func in getloadavg
8159do :
8160 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8161if test "x$ac_cv_func_getloadavg" = x""yes; then :
8162 cat >>confdefs.h <<_ACEOF
8163#define HAVE_GETLOADAVG 1
8164_ACEOF
8165
8166else
8167 case " $LIBOBJS " in
8168 *" getloadavg.$ac_objext "* ) ;;
8169 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
8170 ;;
8171esac
8172
8173
8174$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
8175
8176# Figure out what our getloadavg.c needs.
8177ac_have_func=no
8178ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
8179if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
8180 ac_have_func=yes
8181
8182$as_echo "#define DGUX 1" >>confdefs.h
8183
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
8185$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
8186if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188else
8189 ac_check_lib_save_LIBS=$LIBS
8190LIBS="-ldgc $LIBS"
8191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h. */
8193
8194/* Override any GCC internal prototype to avoid an error.
8195 Use char because int might match the return type of a GCC
8196 builtin and then its argument prototype would still apply. */
8197#ifdef __cplusplus
8198extern "C"
8199#endif
8200char dg_sys_info ();
8201int
8202main ()
8203{
8204return dg_sys_info ();
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209if ac_fn_c_try_link "$LINENO"; then :
8210 ac_cv_lib_dgc_dg_sys_info=yes
8211else
8212 ac_cv_lib_dgc_dg_sys_info=no
8213fi
8214rm -f core conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8216LIBS=$ac_check_lib_save_LIBS
8217fi
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8219$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
8220if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
8221 cat >>confdefs.h <<_ACEOF
8222#define HAVE_LIBDGC 1
8223_ACEOF
8224
8225 LIBS="-ldgc $LIBS"
8226
8227fi
8228
8229fi
8230
8231
8232
8233ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8234if test "x$ac_cv_header_locale_h" = x""yes; then :
8235
8236fi
8237
8238
8239for ac_func in setlocale
8240do :
8241 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
8242if test "x$ac_cv_func_setlocale" = x""yes; then :
8243 cat >>confdefs.h <<_ACEOF
8244#define HAVE_SETLOCALE 1
8245_ACEOF
8246
8247fi
8248done
8249
8250
8251# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
8252# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
8253# Irix 4.0.5F has the header but not the library.
8254if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
8255 ac_have_func=yes
8256
8257$as_echo "#define SVR4 1" >>confdefs.h
8258
8259fi
8260
8261if test $ac_have_func = no; then
8262 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
8263if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
8264 ac_have_func=yes
8265
8266$as_echo "#define UMAX 1" >>confdefs.h
8267
8268
8269$as_echo "#define UMAX4_3 1" >>confdefs.h
8270
8271fi
8272
8273
8274fi
8275
8276if test $ac_have_func = no; then
8277 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
8278if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
8279 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
8280
8281fi
8282
8283
8284fi
8285
8286if test $ac_have_func = no; then
8287 for ac_header in mach/mach.h
8288do :
8289 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
8290if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
8291 cat >>confdefs.h <<_ACEOF
8292#define HAVE_MACH_MACH_H 1
8293_ACEOF
8294
8295fi
8296
8297done
8298
8299fi
8300
8301for ac_header in nlist.h
8302do :
8303 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
8304if test "x$ac_cv_header_nlist_h" = x""yes; then :
8305 cat >>confdefs.h <<_ACEOF
8306#define HAVE_NLIST_H 1
8307_ACEOF
8308 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
8309"
8310if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
8311
8312cat >>confdefs.h <<_ACEOF
8313#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
8314_ACEOF
8315
8316
8317$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
8318
8319fi
8320
8321
8322fi
8323
8324done
8325
8326fi
8327done
8328
8329
8330# Some definitions of getloadavg require that the program be installed setgid.
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
8332$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
8333if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
8334 $as_echo_n "(cached) " >&6
8335else
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h. */
8338#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
8339#ifdef LDAV_PRIVILEGED
8340Yowza Am I SETGID yet
8341#endif
8342_ACEOF
8343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
8345 ac_cv_func_getloadavg_setgid=yes
8346else
8347 ac_cv_func_getloadavg_setgid=no
8348fi
8349rm -f conftest*
8350
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
8353$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
8354if test $ac_cv_func_getloadavg_setgid = yes; then
8355 NEED_SETGID=true
8356
8357$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
8358
8359else
8360 NEED_SETGID=false
8361fi
8362
8363if test $ac_cv_func_getloadavg_setgid = yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
8365$as_echo_n "checking group of /dev/kmem... " >&6; }
8366if test "${ac_cv_group_kmem+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368else
8369 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
8370 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
8371 # If we got an error (system does not support symlinks), try without -L.
8372 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
8373 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
8374 | sed -ne 's/[ ][ ]*/ /g;
8375 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
8376 / /s/.* //;p;'`
8377
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
8380$as_echo "$ac_cv_group_kmem" >&6; }
8381 KMEM_GROUP=$ac_cv_group_kmem
8382fi
8383if test "x$ac_save_LIBS" = x; then
8384 GETLOADAVG_LIBS=$LIBS
8385else
8386 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
8387fi
8388LIBS=$ac_save_LIBS
8389
8390
8391
8392# AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
8393# doesn't. So, we will.
8394
8395if test "$ac_cv_header_nlist_h" = yes; then
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h. */
8398#include <nlist.h>
8399int
8400main ()
8401{
8402struct nlist nl;
8403 nl.n_name = "string";
8404 return 0;
8405 ;
8406 return 0;
8407}
8408_ACEOF
8409if ac_fn_c_try_compile "$LINENO"; then :
8410 make_cv_nlist_struct=yes
8411else
8412 make_cv_nlist_struct=no
8413fi
8414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 if test "$make_cv_nlist_struct" = yes; then
8416
8417$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
8418
8419 fi
8420fi
8421
8422ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
8423#include <signal.h>
8424/* NetBSD declares sys_siglist in unistd.h. */
8425#if HAVE_UNISTD_H
8426# include <unistd.h>
8427#endif
8428
8429"
8430if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8431 ac_have_decl=1
8432else
8433 ac_have_decl=0
8434fi
8435
8436cat >>confdefs.h <<_ACEOF
8437#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8438_ACEOF
8439ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
8440#include <signal.h>
8441/* NetBSD declares sys_siglist in unistd.h. */
8442#if HAVE_UNISTD_H
8443# include <unistd.h>
8444#endif
8445
8446"
8447if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
8448 ac_have_decl=1
8449else
8450 ac_have_decl=0
8451fi
8452
8453cat >>confdefs.h <<_ACEOF
8454#define HAVE_DECL__SYS_SIGLIST $ac_have_decl
8455_ACEOF
8456ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
8457#include <signal.h>
8458/* NetBSD declares sys_siglist in unistd.h. */
8459#if HAVE_UNISTD_H
8460# include <unistd.h>
8461#endif
8462
8463"
8464if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8465 ac_have_decl=1
8466else
8467 ac_have_decl=0
8468fi
8469
8470cat >>confdefs.h <<_ACEOF
8471#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8472_ACEOF
8473
8474
8475
8476# Check out the wait reality.
8477for ac_header in sys/wait.h
8478do :
8479 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
8480"
8481if test "x$ac_cv_header_sys_wait_h" = x""yes; then :
8482 cat >>confdefs.h <<_ACEOF
8483#define HAVE_SYS_WAIT_H 1
8484_ACEOF
8485
8486fi
8487
8488done
8489
8490for ac_func in waitpid wait3
8491do :
8492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8493ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8494eval as_val=\$$as_ac_var
8495 if test "x$as_val" = x""yes; then :
8496 cat >>confdefs.h <<_ACEOF
8497#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8498_ACEOF
8499
8500fi
8501done
8502
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
8504$as_echo_n "checking for union wait... " >&6; }
8505if test "${make_cv_union_wait+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
8507else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h. */
8510#include <sys/types.h>
8511#include <sys/wait.h>
8512int
8513main ()
8514{
8515union wait status; int pid; pid = wait (&status);
8516#ifdef WEXITSTATUS
8517/* Some POSIXoid systems have both the new-style macros and the old
8518 union wait type, and they do not work together. If union wait
8519 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
8520 if (WEXITSTATUS (status) != 0) pid = -1;
8521#ifdef WTERMSIG
8522 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
8523 -- blow chunks here --
8524#endif
8525#endif
8526#ifdef HAVE_WAITPID
8527 /* Make sure union wait works with waitpid. */
8528 pid = waitpid (-1, &status, 0);
8529#endif
8530
8531 ;
8532 return 0;
8533}
8534_ACEOF
8535if ac_fn_c_try_link "$LINENO"; then :
8536 make_cv_union_wait=yes
8537else
8538 make_cv_union_wait=no
8539fi
8540rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
8542fi
8543
8544if test "$make_cv_union_wait" = yes; then
8545
8546$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
8547
8548fi
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
8550$as_echo "$make_cv_union_wait" >&6; }
8551
8552
8553# If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
8554if test "$PATH_SEPARATOR" = ';'; then
8555
8556$as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
8557
8558fi
8559
8560
8561# See if the user wants to use pmake's "customs" distributed build capability
8562
8563 REMOTE=stub
8564use_customs=false
8565
8566# Check whether --with-customs was given.
8567if test "${with_customs+set}" = set; then :
8568 withval=$with_customs; case $withval in
8569 n|no) : ;;
8570 *) make_cppflags="$CPPFLAGS"
8571 case $withval in
8572 y|ye|yes) : ;;
8573 *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
8574 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
8575 esac
8576
8577cf_test_netlibs=no
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
8579$as_echo_n "checking for network libraries... " >&6; }
8580if test "${cf_cv_netlibs+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582else
8583
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
8585$as_echo "working..." >&6; }
8586cf_cv_netlibs=""
8587cf_test_netlibs=yes
8588for ac_func in gethostname
8589do :
8590 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
8591if test "x$ac_cv_func_gethostname" = x""yes; then :
8592 cat >>confdefs.h <<_ACEOF
8593#define HAVE_GETHOSTNAME 1
8594_ACEOF
8595
8596else
8597
8598
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
8600$as_echo_n "checking for gethostname in -lnsl... " >&6; }
8601if test "${ac_cv_lib_nsl_gethostname+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603else
8604 ac_check_lib_save_LIBS=$LIBS
8605LIBS="-lnsl $cf_cv_netlibs $LIBS"
8606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h. */
8608
8609/* Override any GCC internal prototype to avoid an error.
8610 Use char because int might match the return type of a GCC
8611 builtin and then its argument prototype would still apply. */
8612#ifdef __cplusplus
8613extern "C"
8614#endif
8615char gethostname ();
8616int
8617main ()
8618{
8619return gethostname ();
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_link "$LINENO"; then :
8625 ac_cv_lib_nsl_gethostname=yes
8626else
8627 ac_cv_lib_nsl_gethostname=no
8628fi
8629rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631LIBS=$ac_check_lib_save_LIBS
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
8634$as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
8635if test "x$ac_cv_lib_nsl_gethostname" = x""yes; then :
8636
8637
8638cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
8639
8640
8641cat >>confdefs.h <<_ACEOF
8642#define HAVE_$cf_tr_func 1
8643_ACEOF
8644
8645 ac_cv_func_gethostname=yes
8646 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
8647else
8648
8649 ac_cv_func_gethostname=unknown
8650 unset ac_cv_func_gethostname 2>/dev/null
8651
8652
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
8654$as_echo_n "checking for gethostname in -lsocket... " >&6; }
8655if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657else
8658 ac_check_lib_save_LIBS=$LIBS
8659LIBS="-lsocket $cf_cv_netlibs $LIBS"
8660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h. */
8662
8663/* Override any GCC internal prototype to avoid an error.
8664 Use char because int might match the return type of a GCC
8665 builtin and then its argument prototype would still apply. */
8666#ifdef __cplusplus
8667extern "C"
8668#endif
8669char gethostname ();
8670int
8671main ()
8672{
8673return gethostname ();
8674 ;
8675 return 0;
8676}
8677_ACEOF
8678if ac_fn_c_try_link "$LINENO"; then :
8679 ac_cv_lib_socket_gethostname=yes
8680else
8681 ac_cv_lib_socket_gethostname=no
8682fi
8683rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8685LIBS=$ac_check_lib_save_LIBS
8686fi
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
8688$as_echo "$ac_cv_lib_socket_gethostname" >&6; }
8689if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
8690
8691
8692cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
8693
8694
8695cat >>confdefs.h <<_ACEOF
8696#define HAVE_$cf_tr_func 1
8697_ACEOF
8698
8699 ac_cv_func_gethostname=yes
8700 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
8701else
8702
8703 ac_cv_func_gethostname=unknown
8704 unset ac_cv_func_gethostname 2>/dev/null
8705
8706fi
8707
8708
8709fi
8710
8711
8712fi
8713done
8714
8715#
8716# FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
8717# I don't know the entrypoints - 97/7/22 TD
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
8719$as_echo_n "checking for main in -linet... " >&6; }
8720if test "${ac_cv_lib_inet_main+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8722else
8723 ac_check_lib_save_LIBS=$LIBS
8724LIBS="-linet $LIBS"
8725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h. */
8727
8728
8729int
8730main ()
8731{
8732return main ();
8733 ;
8734 return 0;
8735}
8736_ACEOF
8737if ac_fn_c_try_link "$LINENO"; then :
8738 ac_cv_lib_inet_main=yes
8739else
8740 ac_cv_lib_inet_main=no
8741fi
8742rm -f core conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744LIBS=$ac_check_lib_save_LIBS
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
8747$as_echo "$ac_cv_lib_inet_main" >&6; }
8748if test "x$ac_cv_lib_inet_main" = x""yes; then :
8749 cf_cv_netlibs="-linet $cf_cv_netlibs"
8750fi
8751
8752#
8753if test "$ac_cv_func_lsocket" != no ; then
8754for ac_func in socket
8755do :
8756 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
8757if test "x$ac_cv_func_socket" = x""yes; then :
8758 cat >>confdefs.h <<_ACEOF
8759#define HAVE_SOCKET 1
8760_ACEOF
8761
8762else
8763
8764
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8766$as_echo_n "checking for socket in -lsocket... " >&6; }
8767if test "${ac_cv_lib_socket_socket+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769else
8770 ac_check_lib_save_LIBS=$LIBS
8771LIBS="-lsocket $cf_cv_netlibs $LIBS"
8772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773/* end confdefs.h. */
8774
8775/* Override any GCC internal prototype to avoid an error.
8776 Use char because int might match the return type of a GCC
8777 builtin and then its argument prototype would still apply. */
8778#ifdef __cplusplus
8779extern "C"
8780#endif
8781char socket ();
8782int
8783main ()
8784{
8785return socket ();
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"; then :
8791 ac_cv_lib_socket_socket=yes
8792else
8793 ac_cv_lib_socket_socket=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797LIBS=$ac_check_lib_save_LIBS
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8800$as_echo "$ac_cv_lib_socket_socket" >&6; }
8801if test "x$ac_cv_lib_socket_socket" = x""yes; then :
8802
8803
8804cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
8805
8806
8807cat >>confdefs.h <<_ACEOF
8808#define HAVE_$cf_tr_func 1
8809_ACEOF
8810
8811 ac_cv_func_socket=yes
8812 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
8813else
8814
8815 ac_cv_func_socket=unknown
8816 unset ac_cv_func_socket 2>/dev/null
8817
8818
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
8820$as_echo_n "checking for socket in -lbsd... " >&6; }
8821if test "${ac_cv_lib_bsd_socket+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8823else
8824 ac_check_lib_save_LIBS=$LIBS
8825LIBS="-lbsd $cf_cv_netlibs $LIBS"
8826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827/* end confdefs.h. */
8828
8829/* Override any GCC internal prototype to avoid an error.
8830 Use char because int might match the return type of a GCC
8831 builtin and then its argument prototype would still apply. */
8832#ifdef __cplusplus
8833extern "C"
8834#endif
8835char socket ();
8836int
8837main ()
8838{
8839return socket ();
8840 ;
8841 return 0;
8842}
8843_ACEOF
8844if ac_fn_c_try_link "$LINENO"; then :
8845 ac_cv_lib_bsd_socket=yes
8846else
8847 ac_cv_lib_bsd_socket=no
8848fi
8849rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851LIBS=$ac_check_lib_save_LIBS
8852fi
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
8854$as_echo "$ac_cv_lib_bsd_socket" >&6; }
8855if test "x$ac_cv_lib_bsd_socket" = x""yes; then :
8856
8857
8858cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
8859
8860
8861cat >>confdefs.h <<_ACEOF
8862#define HAVE_$cf_tr_func 1
8863_ACEOF
8864
8865 ac_cv_func_socket=yes
8866 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
8867else
8868
8869 ac_cv_func_socket=unknown
8870 unset ac_cv_func_socket 2>/dev/null
8871
8872fi
8873
8874
8875fi
8876
8877
8878fi
8879done
8880
8881fi
8882#
8883for ac_func in gethostbyname
8884do :
8885 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8886if test "x$ac_cv_func_gethostbyname" = x""yes; then :
8887 cat >>confdefs.h <<_ACEOF
8888#define HAVE_GETHOSTBYNAME 1
8889_ACEOF
8890
8891else
8892
8893
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8895$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8896if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8898else
8899 ac_check_lib_save_LIBS=$LIBS
8900LIBS="-lnsl $cf_cv_netlibs $LIBS"
8901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h. */
8903
8904/* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8907#ifdef __cplusplus
8908extern "C"
8909#endif
8910char gethostbyname ();
8911int
8912main ()
8913{
8914return gethostbyname ();
8915 ;
8916 return 0;
8917}
8918_ACEOF
8919if ac_fn_c_try_link "$LINENO"; then :
8920 ac_cv_lib_nsl_gethostbyname=yes
8921else
8922 ac_cv_lib_nsl_gethostbyname=no
8923fi
8924rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926LIBS=$ac_check_lib_save_LIBS
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8929$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8930if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
8931
8932
8933cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
8934
8935
8936cat >>confdefs.h <<_ACEOF
8937#define HAVE_$cf_tr_func 1
8938_ACEOF
8939
8940 ac_cv_func_gethostbyname=yes
8941 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
8942else
8943
8944 ac_cv_func_gethostbyname=unknown
8945 unset ac_cv_func_gethostbyname 2>/dev/null
8946
8947fi
8948
8949
8950fi
8951done
8952
8953
8954fi
8955
8956LIBS="$LIBS $cf_cv_netlibs"
8957test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
8958
8959 ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
8960if test "x$ac_cv_header_customs_h" = x""yes; then :
8961 use_customs=true
8962 REMOTE=cstms
8963 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
8964else
8965 with_customs=no
8966 CPPFLAGS="$make_cppflags" make_badcust=yes
8967fi
8968
8969
8970 ;;
8971 esac
8972fi
8973
8974# Tell automake about this, so it can include the right .c files.
8975 if test "$use_customs" = true; then
8976 USE_CUSTOMS_TRUE=
8977 USE_CUSTOMS_FALSE='#'
8978else
8979 USE_CUSTOMS_TRUE='#'
8980 USE_CUSTOMS_FALSE=
8981fi
8982
8983
8984# See if the user asked to handle case insensitive file systems.
8985
8986
8987# Check whether --enable-case-insensitive-file-system was given.
8988if test "${enable_case_insensitive_file_system+set}" = set; then :
8989 enableval=$enable_case_insensitive_file_system; case $enableval in
8990 yes) $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
8991 ;;
8992 esac
8993fi
8994
8995
8996# See if we can handle the job server feature, and if the user wants it.
8997
8998# Check whether --enable-job-server was given.
8999if test "${enable_job_server+set}" = set; then :
9000 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
9001else
9002 make_cv_job_server="yes"
9003fi
9004
9005
9006has_wait_nohang=yes
9007case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
9008 no/no) has_wait_nohang=no ;;
9009esac
9010
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
9012$as_echo_n "checking for SA_RESTART... " >&6; }
9013if test "${make_cv_sa_restart+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9015else
9016
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h. */
9019#include <signal.h>
9020int
9021main ()
9022{
9023return SA_RESTART;
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_compile "$LINENO"; then :
9029 make_cv_sa_restart=yes
9030else
9031 make_cv_sa_restart=no
9032fi
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034fi
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
9036$as_echo "$make_cv_sa_restart" >&6; }
9037
9038if test "$make_cv_sa_restart" != no; then
9039
9040$as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
9041
9042fi
9043
9044# enable make_cv_sa_restart for OS/2 so that the jobserver will be enabled,
9045# but do it after HAVE_SA_RESTART has been defined.
9046case "$host_os" in
9047 os2*) make_cv_sa_restart=yes ;;
9048esac
9049
9050case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
9051 yes/yes/yes/yes/yes)
9052
9053$as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
9054;;
9055esac
9056
9057# if we have both lstat() and readlink() then we can support symlink
9058# timechecks.
9059case "$ac_cv_func_lstat/$ac_cv_func_readlink" in
9060 yes/yes)
9061
9062$as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
9063;;
9064esac
9065
9066# Find the SCCS commands, so we can include them in our default rules.
9067
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
9069$as_echo_n "checking for location of SCCS get command... " >&6; }
9070if test "${make_cv_path_sccs_get+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9072else
9073
9074if test -f /usr/sccs/get; then
9075 make_cv_path_sccs_get=/usr/sccs/get
9076else
9077 make_cv_path_sccs_get=get
9078fi
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
9081$as_echo "$make_cv_path_sccs_get" >&6; }
9082
9083cat >>confdefs.h <<_ACEOF
9084#define SCCS_GET "$make_cv_path_sccs_get"
9085_ACEOF
9086
9087
9088ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
9089if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
9090 test -f s.conftest; then
9091 # We successfully created an SCCS file.
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
9093$as_echo_n "checking if SCCS get command understands -G... " >&6; }
9094if test "${make_cv_sys_get_minus_G+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9096else
9097
9098 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
9099 test -f conftoast; then
9100 make_cv_sys_get_minus_G=yes
9101 else
9102 make_cv_sys_get_minus_G=no
9103 fi
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
9106$as_echo "$make_cv_sys_get_minus_G" >&6; }
9107 case "$make_cv_sys_get_minus_G" in
9108 yes)
9109$as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
9110;;
9111 esac
9112fi
9113rm -f s.conftest conftoast
9114
9115# Check the system to see if it provides GNU glob. If not, use our
9116# local version.
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
9118$as_echo_n "checking if system libc has GNU glob... " >&6; }
9119if test "${make_cv_sys_gnu_glob+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121else
9122
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h. */
9125
9126#include <features.h>
9127#include <glob.h>
9128#include <fnmatch.h>
9129
9130#define GLOB_INTERFACE_VERSION 1
9131#if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
9132# include <gnu-versions.h>
9133# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
9134 gnu glob
9135# endif
9136#endif
9137
9138_ACEOF
9139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9140 $EGREP "gnu glob" >/dev/null 2>&1; then :
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9142$as_echo "yes" >&6; }
9143make_cv_sys_gnu_glob=yes
9144else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; using local copy" >&5
9146$as_echo "no; using local copy" >&6; }
9147make_cv_sys_gnu_glob=no
9148fi
9149rm -f conftest*
9150
9151fi
9152
9153if test "$make_cv_sys_gnu_glob" = no; then
9154 GLOBINC='-I$(srcdir)/glob'
9155 GLOBLIB=glob/libglob.a
9156fi
9157
9158
9159
9160# Tell automake about this, so it can build the right .c files.
9161 if test "$make_cv_sys_gnu_glob" = no; then
9162 USE_LOCAL_GLOB_TRUE=
9163 USE_LOCAL_GLOB_FALSE='#'
9164else
9165 USE_LOCAL_GLOB_TRUE='#'
9166 USE_LOCAL_GLOB_FALSE=
9167fi
9168
9169
9170# Let the makefile know what our build host is
9171
9172
9173cat >>confdefs.h <<_ACEOF
9174#define MAKE_HOST "$host"
9175_ACEOF
9176
9177MAKE_HOST="$host"
9178
9179
9180w32_target_env=no
9181 if false; then
9182 WINDOWSENV_TRUE=
9183 WINDOWSENV_FALSE='#'
9184else
9185 WINDOWSENV_TRUE='#'
9186 WINDOWSENV_FALSE=
9187fi
9188
9189
9190case "$host" in
9191 *-*-mingw32)
9192 if true; then
9193 WINDOWSENV_TRUE=
9194 WINDOWSENV_FALSE='#'
9195else
9196 WINDOWSENV_TRUE='#'
9197 WINDOWSENV_FALSE=
9198fi
9199
9200 w32_target_env=yes
9201
9202$as_echo "#define WINDOWS32 1" >>confdefs.h
9203
9204
9205$as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
9206
9207 ;;
9208esac
9209
9210
9211cat >>confdefs.h <<_ACEOF
9212#define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
9213_ACEOF
9214
9215
9216# Include the Maintainer's Makefile section, if it's here.
9217
9218MAINT_MAKEFILE=/dev/null
9219if test -r "$srcdir/maintMakefile"; then
9220 MAINT_MAKEFILE="$srcdir/maintMakefile"
9221fi
9222
9223
9224# Allow building with dmalloc
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
9226$as_echo_n "checking if malloc debugging is wanted... " >&6; }
9227
9228# Check whether --with-dmalloc was given.
9229if test "${with_dmalloc+set}" = set; then :
9230 withval=$with_dmalloc; if test "$withval" = yes; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9232$as_echo "yes" >&6; }
9233
9234$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
9235
9236 LIBS="$LIBS -ldmalloc"
9237 LDFLAGS="$LDFLAGS -g"
9238else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
9241fi
9242else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
9245fi
9246
9247
9248
9249# Forcibly disable SET_MAKE. If it's set it breaks things like the test
9250# scripts, etc.
9251SET_MAKE=
9252
9253# Sanity check and inform the user of what we found
9254
9255case "$make_badcust" in
9256 yes) echo
9257 echo "WARNING: --with-customs specified but no customs.h could be found;"
9258 echo " disabling Customs support."
9259 echo ;;
9260esac
9261
9262case "$with_customs" in
9263 ""|n|no|y|ye|yes) ;;
9264 *) if test -f "$with_customs/lib/libcustoms.a"; then
9265 :
9266 else
9267 echo
9268 echo "WARNING: '$with_customs/lib' does not appear to contain the"
9269 echo " Customs library. You must build and install Customs"
9270 echo " before compiling GNU make."
9271 echo
9272 fi ;;
9273esac
9274
9275case "$has_wait_nohang" in
9276 no) echo
9277 echo "WARNING: Your system has neither waitpid() nor wait3()."
9278 echo " Without one of these, signal handling is unreliable."
9279 echo " You should be aware that running GNU make with -j"
9280 echo " could result in erratic behavior."
9281 echo ;;
9282esac
9283
9284case "$make_cv_job_server/$user_job_server" in
9285 no/yes) echo
9286 echo "WARNING: Make job server requires a POSIX-ish system that"
9287 echo " supports the pipe(), sigaction(), and either"
9288 echo " waitpid() or wait3() functions. Your system doesn't"
9289 echo " appear to provide one or more of those."
9290 echo " Disabling job server support."
9291 echo ;;
9292esac
9293
9294
9295# Specify what files are to be created.
9296ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile"
9297
9298
9299# OK, do it!
9300
9301cat >confcache <<\_ACEOF
9302# This file is a shell script that caches the results of configure
9303# tests run on this system so they can be shared between configure
9304# scripts and configure runs, see configure's option --config-cache.
9305# It is not useful on other systems. If it contains results you don't
9306# want to keep, you may remove or edit it.
9307#
9308# config.status only pays attention to the cache file if you give it
9309# the --recheck option to rerun configure.
9310#
9311# `ac_cv_env_foo' variables (set or unset) will be overridden when
9312# loading this file, other *unset* `ac_cv_foo' will be assigned the
9313# following values.
9314
9315_ACEOF
9316
9317# The following way of writing the cache mishandles newlines in values,
9318# but we know of no workaround that is simple, portable, and efficient.
9319# So, we kill variables containing newlines.
9320# Ultrix sh set writes to stderr and can't be redirected directly,
9321# and sets the high bit in the cache file unless we assign to the vars.
9322(
9323 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9324 eval ac_val=\$$ac_var
9325 case $ac_val in #(
9326 *${as_nl}*)
9327 case $ac_var in #(
9328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9329$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9330 esac
9331 case $ac_var in #(
9332 _ | IFS | as_nl) ;; #(
9333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9334 *) { eval $ac_var=; unset $ac_var;} ;;
9335 esac ;;
9336 esac
9337 done
9338
9339 (set) 2>&1 |
9340 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9341 *${as_nl}ac_space=\ *)
9342 # `set' does not quote correctly, so add quotes: double-quote
9343 # substitution turns \\\\ into \\, and sed turns \\ into \.
9344 sed -n \
9345 "s/'/'\\\\''/g;
9346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9347 ;; #(
9348 *)
9349 # `set' quotes correctly as required by POSIX, so do not add quotes.
9350 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9351 ;;
9352 esac |
9353 sort
9354) |
9355 sed '
9356 /^ac_cv_env_/b end
9357 t clear
9358 :clear
9359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9360 t end
9361 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9362 :end' >>confcache
9363if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9364 if test -w "$cache_file"; then
9365 test "x$cache_file" != "x/dev/null" &&
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9367$as_echo "$as_me: updating cache $cache_file" >&6;}
9368 cat confcache >$cache_file
9369 else
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9371$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9372 fi
9373fi
9374rm -f confcache
9375
9376test "x$prefix" = xNONE && prefix=$ac_default_prefix
9377# Let make expand exec_prefix.
9378test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9379
9380DEFS=-DHAVE_CONFIG_H
9381
9382ac_libobjs=
9383ac_ltlibobjs=
9384for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9385 # 1. Remove the extension, and $U if already installed.
9386 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9387 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9388 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9389 # will be set to the directory where LIBOBJS objects are built.
9390 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9391 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9392done
9393LIBOBJS=$ac_libobjs
9394
9395LTLIBOBJS=$ac_ltlibobjs
9396
9397
9398 if test -n "$EXEEXT"; then
9399 am__EXEEXT_TRUE=
9400 am__EXEEXT_FALSE='#'
9401else
9402 am__EXEEXT_TRUE='#'
9403 am__EXEEXT_FALSE=
9404fi
9405
9406if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9407 as_fn_error "conditional \"AMDEP\" was never defined.
9408Usually this means the macro was only invoked conditionally." "$LINENO" 5
9409fi
9410if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9411 as_fn_error "conditional \"am__fastdepCC\" was never defined.
9412Usually this means the macro was only invoked conditionally." "$LINENO" 5
9413fi
9414if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
9415 as_fn_error "conditional \"USE_CUSTOMS\" was never defined.
9416Usually this means the macro was only invoked conditionally." "$LINENO" 5
9417fi
9418if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
9419 as_fn_error "conditional \"USE_LOCAL_GLOB\" was never defined.
9420Usually this means the macro was only invoked conditionally." "$LINENO" 5
9421fi
9422if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
9423 as_fn_error "conditional \"WINDOWSENV\" was never defined.
9424Usually this means the macro was only invoked conditionally." "$LINENO" 5
9425fi
9426if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
9427 as_fn_error "conditional \"WINDOWSENV\" was never defined.
9428Usually this means the macro was only invoked conditionally." "$LINENO" 5
9429fi
9430
9431: ${CONFIG_STATUS=./config.status}
9432ac_write_fail=0
9433ac_clean_files_save=$ac_clean_files
9434ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9436$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9437as_write_fail=0
9438cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9439#! $SHELL
9440# Generated by $as_me.
9441# Run this file to recreate the current configuration.
9442# Compiler output produced by configure, useful for debugging
9443# configure, is in config.log if it exists.
9444
9445debug=false
9446ac_cs_recheck=false
9447ac_cs_silent=false
9448
9449SHELL=\${CONFIG_SHELL-$SHELL}
9450export SHELL
9451_ASEOF
9452cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9453## -------------------- ##
9454## M4sh Initialization. ##
9455## -------------------- ##
9456
9457# Be more Bourne compatible
9458DUALCASE=1; export DUALCASE # for MKS sh
9459if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9460 emulate sh
9461 NULLCMD=:
9462 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9463 # is contrary to our usage. Disable this feature.
9464 alias -g '${1+"$@"}'='"$@"'
9465 setopt NO_GLOB_SUBST
9466else
9467 case `(set -o) 2>/dev/null` in #(
9468 *posix*) :
9469 set -o posix ;; #(
9470 *) :
9471 ;;
9472esac
9473fi
9474
9475
9476as_nl='
9477'
9478export as_nl
9479# Printing a long string crashes Solaris 7 /usr/bin/printf.
9480as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9482as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9483# Prefer a ksh shell builtin over an external printf program on Solaris,
9484# but without wasting forks for bash or zsh.
9485if test -z "$BASH_VERSION$ZSH_VERSION" \
9486 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9487 as_echo='print -r --'
9488 as_echo_n='print -rn --'
9489elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9490 as_echo='printf %s\n'
9491 as_echo_n='printf %s'
9492else
9493 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9494 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9495 as_echo_n='/usr/ucb/echo -n'
9496 else
9497 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9498 as_echo_n_body='eval
9499 arg=$1;
9500 case $arg in #(
9501 *"$as_nl"*)
9502 expr "X$arg" : "X\\(.*\\)$as_nl";
9503 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9504 esac;
9505 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9506 '
9507 export as_echo_n_body
9508 as_echo_n='sh -c $as_echo_n_body as_echo'
9509 fi
9510 export as_echo_body
9511 as_echo='sh -c $as_echo_body as_echo'
9512fi
9513
9514# The user is always right.
9515if test "${PATH_SEPARATOR+set}" != set; then
9516 PATH_SEPARATOR=:
9517 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9518 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9519 PATH_SEPARATOR=';'
9520 }
9521fi
9522
9523
9524# IFS
9525# We need space, tab and new line, in precisely that order. Quoting is
9526# there to prevent editors from complaining about space-tab.
9527# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9528# splitting by setting IFS to empty value.)
9529IFS=" "" $as_nl"
9530
9531# Find who we are. Look in the path if we contain no directory separator.
9532case $0 in #((
9533 *[\\/]* ) as_myself=$0 ;;
9534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535for as_dir in $PATH
9536do
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9540 done
9541IFS=$as_save_IFS
9542
9543 ;;
9544esac
9545# We did not find ourselves, most probably we were run as `sh COMMAND'
9546# in which case we are not to be found in the path.
9547if test "x$as_myself" = x; then
9548 as_myself=$0
9549fi
9550if test ! -f "$as_myself"; then
9551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9552 exit 1
9553fi
9554
9555# Unset variables that we do not need and which cause bugs (e.g. in
9556# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9557# suppresses any "Segmentation fault" message there. '((' could
9558# trigger a bug in pdksh 5.2.14.
9559for as_var in BASH_ENV ENV MAIL MAILPATH
9560do eval test x\${$as_var+set} = xset \
9561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9562done
9563PS1='$ '
9564PS2='> '
9565PS4='+ '
9566
9567# NLS nuisances.
9568LC_ALL=C
9569export LC_ALL
9570LANGUAGE=C
9571export LANGUAGE
9572
9573# CDPATH.
9574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9575
9576
9577# as_fn_error ERROR [LINENO LOG_FD]
9578# ---------------------------------
9579# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9580# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9581# script with status $?, using 1 if that was 0.
9582as_fn_error ()
9583{
9584 as_status=$?; test $as_status -eq 0 && as_status=1
9585 if test "$3"; then
9586 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9588 fi
9589 $as_echo "$as_me: error: $1" >&2
9590 as_fn_exit $as_status
9591} # as_fn_error
9592
9593
9594# as_fn_set_status STATUS
9595# -----------------------
9596# Set $? to STATUS, without forking.
9597as_fn_set_status ()
9598{
9599 return $1
9600} # as_fn_set_status
9601
9602# as_fn_exit STATUS
9603# -----------------
9604# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9605as_fn_exit ()
9606{
9607 set +e
9608 as_fn_set_status $1
9609 exit $1
9610} # as_fn_exit
9611
9612# as_fn_unset VAR
9613# ---------------
9614# Portably unset VAR.
9615as_fn_unset ()
9616{
9617 { eval $1=; unset $1;}
9618}
9619as_unset=as_fn_unset
9620# as_fn_append VAR VALUE
9621# ----------------------
9622# Append the text in VALUE to the end of the definition contained in VAR. Take
9623# advantage of any shell optimizations that allow amortized linear growth over
9624# repeated appends, instead of the typical quadratic growth present in naive
9625# implementations.
9626if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9627 eval 'as_fn_append ()
9628 {
9629 eval $1+=\$2
9630 }'
9631else
9632 as_fn_append ()
9633 {
9634 eval $1=\$$1\$2
9635 }
9636fi # as_fn_append
9637
9638# as_fn_arith ARG...
9639# ------------------
9640# Perform arithmetic evaluation on the ARGs, and store the result in the
9641# global $as_val. Take advantage of shells that can avoid forks. The arguments
9642# must be portable across $(()) and expr.
9643if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9644 eval 'as_fn_arith ()
9645 {
9646 as_val=$(( $* ))
9647 }'
9648else
9649 as_fn_arith ()
9650 {
9651 as_val=`expr "$@" || test $? -eq 1`
9652 }
9653fi # as_fn_arith
9654
9655
9656if expr a : '\(a\)' >/dev/null 2>&1 &&
9657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9658 as_expr=expr
9659else
9660 as_expr=false
9661fi
9662
9663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9664 as_basename=basename
9665else
9666 as_basename=false
9667fi
9668
9669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9670 as_dirname=dirname
9671else
9672 as_dirname=false
9673fi
9674
9675as_me=`$as_basename -- "$0" ||
9676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9677 X"$0" : 'X\(//\)$' \| \
9678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9679$as_echo X/"$0" |
9680 sed '/^.*\/\([^/][^/]*\)\/*$/{
9681 s//\1/
9682 q
9683 }
9684 /^X\/\(\/\/\)$/{
9685 s//\1/
9686 q
9687 }
9688 /^X\/\(\/\).*/{
9689 s//\1/
9690 q
9691 }
9692 s/.*/./; q'`
9693
9694# Avoid depending upon Character Ranges.
9695as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9696as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9697as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9698as_cr_digits='0123456789'
9699as_cr_alnum=$as_cr_Letters$as_cr_digits
9700
9701ECHO_C= ECHO_N= ECHO_T=
9702case `echo -n x` in #(((((
9703-n*)
9704 case `echo 'xy\c'` in
9705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9706 xy) ECHO_C='\c';;
9707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9708 ECHO_T=' ';;
9709 esac;;
9710*)
9711 ECHO_N='-n';;
9712esac
9713
9714rm -f conf$$ conf$$.exe conf$$.file
9715if test -d conf$$.dir; then
9716 rm -f conf$$.dir/conf$$.file
9717else
9718 rm -f conf$$.dir
9719 mkdir conf$$.dir 2>/dev/null
9720fi
9721if (echo >conf$$.file) 2>/dev/null; then
9722 if ln -s conf$$.file conf$$ 2>/dev/null; then
9723 as_ln_s='ln -s'
9724 # ... but there are two gotchas:
9725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9727 # In both cases, we have to default to `cp -p'.
9728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9729 as_ln_s='cp -p'
9730 elif ln conf$$.file conf$$ 2>/dev/null; then
9731 as_ln_s=ln
9732 else
9733 as_ln_s='cp -p'
9734 fi
9735else
9736 as_ln_s='cp -p'
9737fi
9738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9739rmdir conf$$.dir 2>/dev/null
9740
9741
9742# as_fn_mkdir_p
9743# -------------
9744# Create "$as_dir" as a directory, including parents if necessary.
9745as_fn_mkdir_p ()
9746{
9747
9748 case $as_dir in #(
9749 -*) as_dir=./$as_dir;;
9750 esac
9751 test -d "$as_dir" || eval $as_mkdir_p || {
9752 as_dirs=
9753 while :; do
9754 case $as_dir in #(
9755 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9756 *) as_qdir=$as_dir;;
9757 esac
9758 as_dirs="'$as_qdir' $as_dirs"
9759 as_dir=`$as_dirname -- "$as_dir" ||
9760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9761 X"$as_dir" : 'X\(//\)[^/]' \| \
9762 X"$as_dir" : 'X\(//\)$' \| \
9763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9764$as_echo X"$as_dir" |
9765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9766 s//\1/
9767 q
9768 }
9769 /^X\(\/\/\)[^/].*/{
9770 s//\1/
9771 q
9772 }
9773 /^X\(\/\/\)$/{
9774 s//\1/
9775 q
9776 }
9777 /^X\(\/\).*/{
9778 s//\1/
9779 q
9780 }
9781 s/.*/./; q'`
9782 test -d "$as_dir" && break
9783 done
9784 test -z "$as_dirs" || eval "mkdir $as_dirs"
9785 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9786
9787
9788} # as_fn_mkdir_p
9789if mkdir -p . 2>/dev/null; then
9790 as_mkdir_p='mkdir -p "$as_dir"'
9791else
9792 test -d ./-p && rmdir ./-p
9793 as_mkdir_p=false
9794fi
9795
9796if test -x / >/dev/null 2>&1; then
9797 as_test_x='test -x'
9798else
9799 if ls -dL / >/dev/null 2>&1; then
9800 as_ls_L_option=L
9801 else
9802 as_ls_L_option=
9803 fi
9804 as_test_x='
9805 eval sh -c '\''
9806 if test -d "$1"; then
9807 test -d "$1/.";
9808 else
9809 case $1 in #(
9810 -*)set "./$1";;
9811 esac;
9812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9813 ???[sx]*):;;*)false;;esac;fi
9814 '\'' sh
9815 '
9816fi
9817as_executable_p=$as_test_x
9818
9819# Sed expression to map a string onto a valid CPP name.
9820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9821
9822# Sed expression to map a string onto a valid variable name.
9823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9824
9825
9826exec 6>&1
9827## ----------------------------------- ##
9828## Main body of $CONFIG_STATUS script. ##
9829## ----------------------------------- ##
9830_ASEOF
9831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9832
9833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9834# Save the log message, to keep $0 and so on meaningful, and to
9835# report actual input values of CONFIG_FILES etc. instead of their
9836# values after options handling.
9837ac_log="
9838This file was extended by GNU make $as_me 3.82, which was
9839generated by GNU Autoconf 2.65. Invocation command line was
9840
9841 CONFIG_FILES = $CONFIG_FILES
9842 CONFIG_HEADERS = $CONFIG_HEADERS
9843 CONFIG_LINKS = $CONFIG_LINKS
9844 CONFIG_COMMANDS = $CONFIG_COMMANDS
9845 $ $0 $@
9846
9847on `(hostname || uname -n) 2>/dev/null | sed 1q`
9848"
9849
9850_ACEOF
9851
9852case $ac_config_files in *"
9853"*) set x $ac_config_files; shift; ac_config_files=$*;;
9854esac
9855
9856case $ac_config_headers in *"
9857"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9858esac
9859
9860
9861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9862# Files that config.status was made for.
9863config_files="$ac_config_files"
9864config_headers="$ac_config_headers"
9865config_commands="$ac_config_commands"
9866
9867_ACEOF
9868
9869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9870ac_cs_usage="\
9871\`$as_me' instantiates files and other configuration actions
9872from templates according to the current configuration. Unless the files
9873and actions are specified as TAGs, all are instantiated by default.
9874
9875Usage: $0 [OPTION]... [TAG]...
9876
9877 -h, --help print this help, then exit
9878 -V, --version print version number and configuration settings, then exit
9879 --config print configuration, then exit
9880 -q, --quiet, --silent
9881 do not print progress messages
9882 -d, --debug don't remove temporary files
9883 --recheck update $as_me by reconfiguring in the same conditions
9884 --file=FILE[:TEMPLATE]
9885 instantiate the configuration file FILE
9886 --header=FILE[:TEMPLATE]
9887 instantiate the configuration header FILE
9888
9889Configuration files:
9890$config_files
9891
9892Configuration headers:
9893$config_headers
9894
9895Configuration commands:
9896$config_commands
9897
9898Report bugs to <[email protected]>.
9899GNU make home page: <http://www.gnu.org/software/make/>.
9900General help using GNU software: <http://www.gnu.org/gethelp/>."
9901
9902_ACEOF
9903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9904ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9905ac_cs_version="\\
9906GNU make config.status 3.82
9907configured by $0, generated by GNU Autoconf 2.65,
9908 with options \\"\$ac_cs_config\\"
9909
9910Copyright (C) 2009 Free Software Foundation, Inc.
9911This config.status script is free software; the Free Software Foundation
9912gives unlimited permission to copy, distribute and modify it."
9913
9914ac_pwd='$ac_pwd'
9915srcdir='$srcdir'
9916INSTALL='$INSTALL'
9917MKDIR_P='$MKDIR_P'
9918AWK='$AWK'
9919test -n "\$AWK" || AWK=awk
9920_ACEOF
9921
9922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9923# The default lists apply if the user does not specify any file.
9924ac_need_defaults=:
9925while test $# != 0
9926do
9927 case $1 in
9928 --*=*)
9929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9930 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9931 ac_shift=:
9932 ;;
9933 *)
9934 ac_option=$1
9935 ac_optarg=$2
9936 ac_shift=shift
9937 ;;
9938 esac
9939
9940 case $ac_option in
9941 # Handling of the options.
9942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9943 ac_cs_recheck=: ;;
9944 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9945 $as_echo "$ac_cs_version"; exit ;;
9946 --config | --confi | --conf | --con | --co | --c )
9947 $as_echo "$ac_cs_config"; exit ;;
9948 --debug | --debu | --deb | --de | --d | -d )
9949 debug=: ;;
9950 --file | --fil | --fi | --f )
9951 $ac_shift
9952 case $ac_optarg in
9953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9954 esac
9955 as_fn_append CONFIG_FILES " '$ac_optarg'"
9956 ac_need_defaults=false;;
9957 --header | --heade | --head | --hea )
9958 $ac_shift
9959 case $ac_optarg in
9960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9961 esac
9962 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9963 ac_need_defaults=false;;
9964 --he | --h)
9965 # Conflict between --help and --header
9966 as_fn_error "ambiguous option: \`$1'
9967Try \`$0 --help' for more information.";;
9968 --help | --hel | -h )
9969 $as_echo "$ac_cs_usage"; exit ;;
9970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9972 ac_cs_silent=: ;;
9973
9974 # This is an error.
9975 -*) as_fn_error "unrecognized option: \`$1'
9976Try \`$0 --help' for more information." ;;
9977
9978 *) as_fn_append ac_config_targets " $1"
9979 ac_need_defaults=false ;;
9980
9981 esac
9982 shift
9983done
9984
9985ac_configure_extra_args=
9986
9987if $ac_cs_silent; then
9988 exec 6>/dev/null
9989 ac_configure_extra_args="$ac_configure_extra_args --silent"
9990fi
9991
9992_ACEOF
9993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9994if \$ac_cs_recheck; then
9995 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9996 shift
9997 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9998 CONFIG_SHELL='$SHELL'
9999 export CONFIG_SHELL
10000 exec "\$@"
10001fi
10002
10003_ACEOF
10004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10005exec 5>>config.log
10006{
10007 echo
10008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10009## Running $as_me. ##
10010_ASBOX
10011 $as_echo "$ac_log"
10012} >&5
10013
10014_ACEOF
10015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10016#
10017# INIT-COMMANDS
10018#
10019AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10020# Capture the value of obsolete ALL_LINGUAS because we need it to compute
10021 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10022 # from automake.
10023 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10024 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10025 LINGUAS="${LINGUAS-%UNSET%}"
10026
10027
10028_ACEOF
10029
10030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10031
10032# Handling of arguments.
10033for ac_config_target in $ac_config_targets
10034do
10035 case $ac_config_target in
10036 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10037 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10038 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10040 "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
10041 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10042 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
10043 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10044 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
10045
10046 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10047 esac
10048done
10049
10050
10051# If the user did not use the arguments to specify the items to instantiate,
10052# then the envvar interface is used. Set only those that are not.
10053# We use the long form for the default assignment because of an extremely
10054# bizarre bug on SunOS 4.1.3.
10055if $ac_need_defaults; then
10056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10059fi
10060
10061# Have a temporary directory for convenience. Make it in the build tree
10062# simply because there is no reason against having it here, and in addition,
10063# creating and moving files from /tmp can sometimes cause problems.
10064# Hook for its removal unless debugging.
10065# Note that there is a small window in which the directory will not be cleaned:
10066# after its creation but before its name has been assigned to `$tmp'.
10067$debug ||
10068{
10069 tmp=
10070 trap 'exit_status=$?
10071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10072' 0
10073 trap 'as_fn_exit 1' 1 2 13 15
10074}
10075# Create a (secure) tmp directory for tmp files.
10076
10077{
10078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10079 test -n "$tmp" && test -d "$tmp"
10080} ||
10081{
10082 tmp=./conf$$-$RANDOM
10083 (umask 077 && mkdir "$tmp")
10084} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10085
10086# Set up the scripts for CONFIG_FILES section.
10087# No need to generate them if there are no CONFIG_FILES.
10088# This happens for instance with `./config.status config.h'.
10089if test -n "$CONFIG_FILES"; then
10090
10091if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
10092 ac_cs_awk_getline=:
10093 ac_cs_awk_pipe_init=
10094 ac_cs_awk_read_file='
10095 while ((getline aline < (F[key])) > 0)
10096 print(aline)
10097 close(F[key])'
10098 ac_cs_awk_pipe_fini=
10099else
10100 ac_cs_awk_getline=false
10101 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
10102 ac_cs_awk_read_file='
10103 print "|#_!!_#|"
10104 print "cat " F[key] " &&"
10105 '$ac_cs_awk_pipe_init
10106 # The final `:' finishes the AND list.
10107 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
10108fi
10109ac_cr=`echo X | tr X '\015'`
10110# On cygwin, bash can eat \r inside `` if the user requested igncr.
10111# But we know of no other shell where ac_cr would be empty at this
10112# point, so we can use a bashism as a fallback.
10113if test "x$ac_cr" = x; then
10114 eval ac_cr=\$\'\\r\'
10115fi
10116ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10117if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10118 ac_cs_awk_cr='\r'
10119else
10120 ac_cs_awk_cr=$ac_cr
10121fi
10122
10123echo 'BEGIN {' >"$tmp/subs1.awk" &&
10124_ACEOF
10125
10126# Create commands to substitute file output variables.
10127{
10128 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
10129 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
10130 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
10131 echo "_ACAWK" &&
10132 echo "_ACEOF"
10133} >conf$$files.sh &&
10134. ./conf$$files.sh ||
10135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10136rm -f conf$$files.sh
10137
10138{
10139 echo "cat >conf$$subs.awk <<_ACEOF" &&
10140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10141 echo "_ACEOF"
10142} >conf$$subs.sh ||
10143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10144ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10145ac_delim='%!_!# '
10146for ac_last_try in false false false false false :; do
10147 . ./conf$$subs.sh ||
10148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10149
10150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10151 if test $ac_delim_n = $ac_delim_num; then
10152 break
10153 elif $ac_last_try; then
10154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10155 else
10156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10157 fi
10158done
10159rm -f conf$$subs.sh
10160
10161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10162cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10163_ACEOF
10164sed -n '
10165h
10166s/^/S["/; s/!.*/"]=/
10167p
10168g
10169s/^[^!]*!//
10170:repl
10171t repl
10172s/'"$ac_delim"'$//
10173t delim
10174:nl
10175h
10176s/\(.\{148\}\)..*/\1/
10177t more1
10178s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10179p
10180n
10181b repl
10182:more1
10183s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10184p
10185g
10186s/.\{148\}//
10187t nl
10188:delim
10189h
10190s/\(.\{148\}\)..*/\1/
10191t more2
10192s/["\\]/\\&/g; s/^/"/; s/$/"/
10193p
10194b
10195:more2
10196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10197p
10198g
10199s/.\{148\}//
10200t delim
10201' <conf$$subs.awk | sed '
10202/^[^""]/{
10203 N
10204 s/\n//
10205}
10206' >>$CONFIG_STATUS || ac_write_fail=1
10207rm -f conf$$subs.awk
10208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10209_ACAWK
10210cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10211 for (key in S) S_is_set[key] = 1
10212 FS = ""
10213 \$ac_cs_awk_pipe_init
10214}
10215{
10216 line = $ 0
10217 nfields = split(line, field, "@")
10218 substed = 0
10219 len = length(field[1])
10220 for (i = 2; i < nfields; i++) {
10221 key = field[i]
10222 keylen = length(key)
10223 if (S_is_set[key]) {
10224 value = S[key]
10225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10226 len += length(value) + length(field[++i])
10227 substed = 1
10228 } else
10229 len += 1 + keylen
10230 }
10231 if (nfields == 3 && !substed) {
10232 key = field[2]
10233 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
10234 \$ac_cs_awk_read_file
10235 next
10236 }
10237 }
10238 print line
10239}
10240\$ac_cs_awk_pipe_fini
10241_ACAWK
10242_ACEOF
10243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10244if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10246else
10247 cat
10248fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10249 || as_fn_error "could not setup config files machinery" "$LINENO" 5
10250_ACEOF
10251
10252# VPATH may cause trouble with some makes, so we remove $(srcdir),
10253# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10254# trailing colons and then remove the whole line if VPATH becomes empty
10255# (actually we leave an empty line to preserve line numbers).
10256if test "x$srcdir" = x.; then
10257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10258s/:*\$(srcdir):*/:/
10259s/:*\${srcdir}:*/:/
10260s/:*@srcdir@:*/:/
10261s/^\([^=]*=[ ]*\):*/\1/
10262s/:*$//
10263s/^[^=]*=[ ]*$//
10264}'
10265fi
10266
10267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10268fi # test -n "$CONFIG_FILES"
10269
10270# Set up the scripts for CONFIG_HEADERS section.
10271# No need to generate them if there are no CONFIG_HEADERS.
10272# This happens for instance with `./config.status Makefile'.
10273if test -n "$CONFIG_HEADERS"; then
10274cat >"$tmp/defines.awk" <<\_ACAWK ||
10275BEGIN {
10276_ACEOF
10277
10278# Transform confdefs.h into an awk script `defines.awk', embedded as
10279# here-document in config.status, that substitutes the proper values into
10280# config.h.in to produce config.h.
10281
10282# Create a delimiter string that does not exist in confdefs.h, to ease
10283# handling of long lines.
10284ac_delim='%!_!# '
10285for ac_last_try in false false :; do
10286 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10287 if test -z "$ac_t"; then
10288 break
10289 elif $ac_last_try; then
10290 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10291 else
10292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10293 fi
10294done
10295
10296# For the awk script, D is an array of macro values keyed by name,
10297# likewise P contains macro parameters if any. Preserve backslash
10298# newline sequences.
10299
10300ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10301sed -n '
10302s/.\{148\}/&'"$ac_delim"'/g
10303t rset
10304:rset
10305s/^[ ]*#[ ]*define[ ][ ]*/ /
10306t def
10307d
10308:def
10309s/\\$//
10310t bsnl
10311s/["\\]/\\&/g
10312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10313D["\1"]=" \3"/p
10314s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10315d
10316:bsnl
10317s/["\\]/\\&/g
10318s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10319D["\1"]=" \3\\\\\\n"\\/p
10320t cont
10321s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10322t cont
10323d
10324:cont
10325n
10326s/.\{148\}/&'"$ac_delim"'/g
10327t clear
10328:clear
10329s/\\$//
10330t bsnlc
10331s/["\\]/\\&/g; s/^/"/; s/$/"/p
10332d
10333:bsnlc
10334s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10335b cont
10336' <confdefs.h | sed '
10337s/'"$ac_delim"'/"\\\
10338"/g' >>$CONFIG_STATUS || ac_write_fail=1
10339
10340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10341 for (key in D) D_is_set[key] = 1
10342 FS = ""
10343}
10344/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10345 line = \$ 0
10346 split(line, arg, " ")
10347 if (arg[1] == "#") {
10348 defundef = arg[2]
10349 mac1 = arg[3]
10350 } else {
10351 defundef = substr(arg[1], 2)
10352 mac1 = arg[2]
10353 }
10354 split(mac1, mac2, "(") #)
10355 macro = mac2[1]
10356 prefix = substr(line, 1, index(line, defundef) - 1)
10357 if (D_is_set[macro]) {
10358 # Preserve the white space surrounding the "#".
10359 print prefix "define", macro P[macro] D[macro]
10360 next
10361 } else {
10362 # Replace #undef with comments. This is necessary, for example,
10363 # in the case of _POSIX_SOURCE, which is predefined and required
10364 # on some systems where configure will not decide to define it.
10365 if (defundef == "undef") {
10366 print "/*", prefix defundef, macro, "*/"
10367 next
10368 }
10369 }
10370}
10371{ print }
10372_ACAWK
10373_ACEOF
10374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10375 as_fn_error "could not setup config headers machinery" "$LINENO" 5
10376fi # test -n "$CONFIG_HEADERS"
10377
10378
10379eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10380shift
10381for ac_tag
10382do
10383 case $ac_tag in
10384 :[FHLC]) ac_mode=$ac_tag; continue;;
10385 esac
10386 case $ac_mode$ac_tag in
10387 :[FHL]*:*);;
10388 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10389 :[FH]-) ac_tag=-:-;;
10390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10391 esac
10392 ac_save_IFS=$IFS
10393 IFS=:
10394 set x $ac_tag
10395 IFS=$ac_save_IFS
10396 shift
10397 ac_file=$1
10398 shift
10399
10400 case $ac_mode in
10401 :L) ac_source=$1;;
10402 :[FH])
10403 ac_file_inputs=
10404 for ac_f
10405 do
10406 case $ac_f in
10407 -) ac_f="$tmp/stdin";;
10408 *) # Look for the file first in the build tree, then in the source tree
10409 # (if the path is not absolute). The absolute path cannot be DOS-style,
10410 # because $ac_f cannot contain `:'.
10411 test -f "$ac_f" ||
10412 case $ac_f in
10413 [\\/$]*) false;;
10414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10415 esac ||
10416 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10417 esac
10418 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10419 as_fn_append ac_file_inputs " '$ac_f'"
10420 done
10421
10422 # Let's still pretend it is `configure' which instantiates (i.e., don't
10423 # use $as_me), people would be surprised to read:
10424 # /* config.h. Generated by config.status. */
10425 configure_input='Generated from '`
10426 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10427 `' by configure.'
10428 if test x"$ac_file" != x-; then
10429 configure_input="$ac_file. $configure_input"
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10431$as_echo "$as_me: creating $ac_file" >&6;}
10432 fi
10433 # Neutralize special characters interpreted by sed in replacement strings.
10434 case $configure_input in #(
10435 *\&* | *\|* | *\\* )
10436 ac_sed_conf_input=`$as_echo "$configure_input" |
10437 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10438 *) ac_sed_conf_input=$configure_input;;
10439 esac
10440
10441 case $ac_tag in
10442 *:-:* | *:-) cat >"$tmp/stdin" \
10443 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10444 esac
10445 ;;
10446 esac
10447
10448 ac_dir=`$as_dirname -- "$ac_file" ||
10449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10450 X"$ac_file" : 'X\(//\)[^/]' \| \
10451 X"$ac_file" : 'X\(//\)$' \| \
10452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10453$as_echo X"$ac_file" |
10454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10455 s//\1/
10456 q
10457 }
10458 /^X\(\/\/\)[^/].*/{
10459 s//\1/
10460 q
10461 }
10462 /^X\(\/\/\)$/{
10463 s//\1/
10464 q
10465 }
10466 /^X\(\/\).*/{
10467 s//\1/
10468 q
10469 }
10470 s/.*/./; q'`
10471 as_dir="$ac_dir"; as_fn_mkdir_p
10472 ac_builddir=.
10473
10474case "$ac_dir" in
10475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10476*)
10477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10478 # A ".." for each directory in $ac_dir_suffix.
10479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10480 case $ac_top_builddir_sub in
10481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10483 esac ;;
10484esac
10485ac_abs_top_builddir=$ac_pwd
10486ac_abs_builddir=$ac_pwd$ac_dir_suffix
10487# for backward compatibility:
10488ac_top_builddir=$ac_top_build_prefix
10489
10490case $srcdir in
10491 .) # We are building in place.
10492 ac_srcdir=.
10493 ac_top_srcdir=$ac_top_builddir_sub
10494 ac_abs_top_srcdir=$ac_pwd ;;
10495 [\\/]* | ?:[\\/]* ) # Absolute name.
10496 ac_srcdir=$srcdir$ac_dir_suffix;
10497 ac_top_srcdir=$srcdir
10498 ac_abs_top_srcdir=$srcdir ;;
10499 *) # Relative name.
10500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10501 ac_top_srcdir=$ac_top_build_prefix$srcdir
10502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10503esac
10504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10505
10506
10507 case $ac_mode in
10508 :F)
10509 #
10510 # CONFIG_FILE
10511 #
10512
10513 case $INSTALL in
10514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10515 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10516 esac
10517 ac_MKDIR_P=$MKDIR_P
10518 case $MKDIR_P in
10519 [\\/$]* | ?:[\\/]* ) ;;
10520 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10521 esac
10522_ACEOF
10523
10524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10525# If the template does not know about datarootdir, expand it.
10526# FIXME: This hack should be removed a few years after 2.60.
10527ac_datarootdir_hack=; ac_datarootdir_seen=
10528ac_sed_dataroot='
10529/datarootdir/ {
10530 p
10531 q
10532}
10533/@datadir@/p
10534/@docdir@/p
10535/@infodir@/p
10536/@localedir@/p
10537/@mandir@/p'
10538case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10539*datarootdir*) ac_datarootdir_seen=yes;;
10540*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10542$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10543_ACEOF
10544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10545 ac_datarootdir_hack='
10546 s&@datadir@&$datadir&g
10547 s&@docdir@&$docdir&g
10548 s&@infodir@&$infodir&g
10549 s&@localedir@&$localedir&g
10550 s&@mandir@&$mandir&g
10551 s&\\\${datarootdir}&$datarootdir&g' ;;
10552esac
10553_ACEOF
10554
10555# Neutralize VPATH when `$srcdir' = `.'.
10556# Shell code in configure.ac might set extrasub.
10557# FIXME: do we really want to maintain this feature?
10558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559ac_sed_extra="$ac_vpsub
10560$extrasub
10561_ACEOF
10562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10563:t
10564/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10565s|@configure_input@|$ac_sed_conf_input|;t t
10566s&@top_builddir@&$ac_top_builddir_sub&;t t
10567s&@top_build_prefix@&$ac_top_build_prefix&;t t
10568s&@srcdir@&$ac_srcdir&;t t
10569s&@abs_srcdir@&$ac_abs_srcdir&;t t
10570s&@top_srcdir@&$ac_top_srcdir&;t t
10571s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10572s&@builddir@&$ac_builddir&;t t
10573s&@abs_builddir@&$ac_abs_builddir&;t t
10574s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10575s&@INSTALL@&$ac_INSTALL&;t t
10576s&@MKDIR_P@&$ac_MKDIR_P&;t t
10577$ac_datarootdir_hack
10578"
10579eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
10580if $ac_cs_awk_getline; then
10581 $AWK -f "$tmp/subs.awk"
10582else
10583 $AWK -f "$tmp/subs.awk" | $SHELL
10584fi >$tmp/out \
10585 || as_fn_error "could not create $ac_file" "$LINENO" 5
10586
10587test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10591which seems to be undefined. Please make sure it is defined." >&5
10592$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10593which seems to be undefined. Please make sure it is defined." >&2;}
10594
10595 rm -f "$tmp/stdin"
10596 case $ac_file in
10597 -) cat "$tmp/out" && rm -f "$tmp/out";;
10598 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10599 esac \
10600 || as_fn_error "could not create $ac_file" "$LINENO" 5
10601 ;;
10602 :H)
10603 #
10604 # CONFIG_HEADER
10605 #
10606 if test x"$ac_file" != x-; then
10607 {
10608 $as_echo "/* $configure_input */" \
10609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10610 } >"$tmp/config.h" \
10611 || as_fn_error "could not create $ac_file" "$LINENO" 5
10612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10614$as_echo "$as_me: $ac_file is unchanged" >&6;}
10615 else
10616 rm -f "$ac_file"
10617 mv "$tmp/config.h" "$ac_file" \
10618 || as_fn_error "could not create $ac_file" "$LINENO" 5
10619 fi
10620 else
10621 $as_echo "/* $configure_input */" \
10622 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10623 || as_fn_error "could not create -" "$LINENO" 5
10624 fi
10625# Compute "$ac_file"'s index in $config_headers.
10626_am_arg="$ac_file"
10627_am_stamp_count=1
10628for _am_header in $config_headers :; do
10629 case $_am_header in
10630 $_am_arg | $_am_arg:* )
10631 break ;;
10632 * )
10633 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10634 esac
10635done
10636echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10637$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10638 X"$_am_arg" : 'X\(//\)[^/]' \| \
10639 X"$_am_arg" : 'X\(//\)$' \| \
10640 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10641$as_echo X"$_am_arg" |
10642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10643 s//\1/
10644 q
10645 }
10646 /^X\(\/\/\)[^/].*/{
10647 s//\1/
10648 q
10649 }
10650 /^X\(\/\/\)$/{
10651 s//\1/
10652 q
10653 }
10654 /^X\(\/\).*/{
10655 s//\1/
10656 q
10657 }
10658 s/.*/./; q'`/stamp-h$_am_stamp_count
10659 ;;
10660
10661 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10662$as_echo "$as_me: executing $ac_file commands" >&6;}
10663 ;;
10664 esac
10665
10666
10667 case $ac_file$ac_mode in
10668 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10669 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10670 # are listed without --file. Let's play safe and only enable the eval
10671 # if we detect the quoting.
10672 case $CONFIG_FILES in
10673 *\'*) eval set x "$CONFIG_FILES" ;;
10674 *) set x $CONFIG_FILES ;;
10675 esac
10676 shift
10677 for mf
10678 do
10679 # Strip MF so we end up with the name of the file.
10680 mf=`echo "$mf" | sed -e 's/:.*$//'`
10681 # Check whether this is an Automake generated Makefile or not.
10682 # We used to match only the files named `Makefile.in', but
10683 # some people rename them; so instead we look at the file content.
10684 # Grep'ing the first line is not enough: some people post-process
10685 # each Makefile.in and add a new line on top of each file to say so.
10686 # Grep'ing the whole file is not good either: AIX grep has a line
10687 # limit of 2048, but all sed's we know have understand at least 4000.
10688 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10689 dirpart=`$as_dirname -- "$mf" ||
10690$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10691 X"$mf" : 'X\(//\)[^/]' \| \
10692 X"$mf" : 'X\(//\)$' \| \
10693 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10694$as_echo X"$mf" |
10695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10696 s//\1/
10697 q
10698 }
10699 /^X\(\/\/\)[^/].*/{
10700 s//\1/
10701 q
10702 }
10703 /^X\(\/\/\)$/{
10704 s//\1/
10705 q
10706 }
10707 /^X\(\/\).*/{
10708 s//\1/
10709 q
10710 }
10711 s/.*/./; q'`
10712 else
10713 continue
10714 fi
10715 # Extract the definition of DEPDIR, am__include, and am__quote
10716 # from the Makefile without running `make'.
10717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10718 test -z "$DEPDIR" && continue
10719 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10720 test -z "am__include" && continue
10721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10722 # When using ansi2knr, U may be empty or an underscore; expand it
10723 U=`sed -n 's/^U = //p' < "$mf"`
10724 # Find all dependency output files, they are included files with
10725 # $(DEPDIR) in their names. We invoke sed twice because it is the
10726 # simplest approach to changing $(DEPDIR) to its actual value in the
10727 # expansion.
10728 for file in `sed -n "
10729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10731 # Make sure the directory exists.
10732 test -f "$dirpart/$file" && continue
10733 fdir=`$as_dirname -- "$file" ||
10734$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10735 X"$file" : 'X\(//\)[^/]' \| \
10736 X"$file" : 'X\(//\)$' \| \
10737 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10738$as_echo X"$file" |
10739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10740 s//\1/
10741 q
10742 }
10743 /^X\(\/\/\)[^/].*/{
10744 s//\1/
10745 q
10746 }
10747 /^X\(\/\/\)$/{
10748 s//\1/
10749 q
10750 }
10751 /^X\(\/\).*/{
10752 s//\1/
10753 q
10754 }
10755 s/.*/./; q'`
10756 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10757 # echo "creating $dirpart/$file"
10758 echo '# dummy' > "$dirpart/$file"
10759 done
10760 done
10761}
10762 ;;
10763 "default-1":C)
10764 for ac_file in $CONFIG_FILES; do
10765 # Support "outfile[:infile[:infile...]]"
10766 case "$ac_file" in
10767 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10768 esac
10769 # PO directories have a Makefile.in generated from Makefile.in.in.
10770 case "$ac_file" in */Makefile.in)
10771 # Adjust a relative srcdir.
10772 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10773 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10774 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10775 # In autoconf-2.13 it is called $ac_given_srcdir.
10776 # In autoconf-2.50 it is called $srcdir.
10777 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10778 case "$ac_given_srcdir" in
10779 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10780 /*) top_srcdir="$ac_given_srcdir" ;;
10781 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10782 esac
10783 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10784 rm -f "$ac_dir/POTFILES"
10785 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10786 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10787 POMAKEFILEDEPS="POTFILES.in"
10788 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10789 # on $ac_dir but don't depend on user-specified configuration
10790 # parameters.
10791 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10792 # The LINGUAS file contains the set of available languages.
10793 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10794 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10795 fi
10796 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10797 # Hide the ALL_LINGUAS assigment from automake.
10798 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10799 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10800 else
10801 # The set of available languages was given in configure.in.
10802 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10803 fi
10804 # Compute POFILES
10805 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10806 # Compute UPDATEPOFILES
10807 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10808 # Compute DUMMYPOFILES
10809 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10810 # Compute GMOFILES
10811 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10812 case "$ac_given_srcdir" in
10813 .) srcdirpre= ;;
10814 *) srcdirpre='$(srcdir)/' ;;
10815 esac
10816 POFILES=
10817 UPDATEPOFILES=
10818 DUMMYPOFILES=
10819 GMOFILES=
10820 for lang in $ALL_LINGUAS; do
10821 POFILES="$POFILES $srcdirpre$lang.po"
10822 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10823 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10824 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10825 done
10826 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10827 # environment variable.
10828 INST_LINGUAS=
10829 if test -n "$ALL_LINGUAS"; then
10830 for presentlang in $ALL_LINGUAS; do
10831 useit=no
10832 if test "%UNSET%" != "$LINGUAS"; then
10833 desiredlanguages="$LINGUAS"
10834 else
10835 desiredlanguages="$ALL_LINGUAS"
10836 fi
10837 for desiredlang in $desiredlanguages; do
10838 # Use the presentlang catalog if desiredlang is
10839 # a. equal to presentlang, or
10840 # b. a variant of presentlang (because in this case,
10841 # presentlang can be used as a fallback for messages
10842 # which are not translated in the desiredlang catalog).
10843 case "$desiredlang" in
10844 "$presentlang"*) useit=yes;;
10845 esac
10846 done
10847 if test $useit = yes; then
10848 INST_LINGUAS="$INST_LINGUAS $presentlang"
10849 fi
10850 done
10851 fi
10852 CATALOGS=
10853 if test -n "$INST_LINGUAS"; then
10854 for lang in $INST_LINGUAS; do
10855 CATALOGS="$CATALOGS $lang.gmo"
10856 done
10857 fi
10858 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10859 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"
10860 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10861 if test -f "$f"; then
10862 case "$f" in
10863 *.orig | *.bak | *~) ;;
10864 *) cat "$f" >> "$ac_dir/Makefile" ;;
10865 esac
10866 fi
10867 done
10868 fi
10869 ;;
10870 esac
10871 done ;;
10872
10873 esac
10874done # for ac_tag
10875
10876
10877as_fn_exit 0
10878_ACEOF
10879ac_clean_files=$ac_clean_files_save
10880
10881test $ac_write_fail = 0 ||
10882 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10883
10884
10885# configure is writing to config.log, and then calls config.status.
10886# config.status does its own redirection, appending to config.log.
10887# Unfortunately, on DOS this fails, as config.log is still kept open
10888# by configure, so config.status won't be able to write to it; its
10889# output is simply discarded. So we exec the FD to /dev/null,
10890# effectively closing config.log, so it can be properly (re)opened and
10891# appended to by config.status. When coming back to configure, we
10892# need to make the FD available again.
10893if test "$no_create" != yes; then
10894 ac_cs_success=:
10895 ac_config_status_args=
10896 test "$silent" = yes &&
10897 ac_config_status_args="$ac_config_status_args --quiet"
10898 exec 5>/dev/null
10899 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10900 exec 5>>config.log
10901 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10902 # would make configure fail if this is the last instruction.
10903 $ac_cs_success || as_fn_exit $?
10904fi
10905if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10907$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10908fi
10909
10910
10911# We only generate the build.sh if we have a build.sh.in; we won't have
10912# one before we've created a distribution.
10913if test -f "$srcdir/build.sh.in"; then
10914 ./config.status --file build.sh
10915 chmod +x build.sh
10916fi
10917
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette