1 | #! /bin/sh
|
---|
2 | # From configure.in Id: configure.in,v 1.125 2004/03/06 08:05:19 psmith Exp .
|
---|
3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
4 | # Generated by GNU Autoconf 2.59 for GNU make 3.81beta1.
|
---|
5 | #
|
---|
6 | # Report bugs to <[email protected]>.
|
---|
7 | #
|
---|
8 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
9 | # This configure script is free software; the Free Software Foundation
|
---|
10 | # gives unlimited permission to copy, distribute and modify it.
|
---|
11 | ## --------------------- ##
|
---|
12 | ## M4sh Initialization. ##
|
---|
13 | ## --------------------- ##
|
---|
14 |
|
---|
15 | # Be Bourne compatible
|
---|
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
17 | emulate sh
|
---|
18 | NULLCMD=:
|
---|
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
20 | # is contrary to our usage. Disable this feature.
|
---|
21 | alias -g '${1+"$@"}'='"$@"'
|
---|
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
23 | set -o posix
|
---|
24 | fi
|
---|
25 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
26 |
|
---|
27 | # Support unset when possible.
|
---|
28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
29 | as_unset=unset
|
---|
30 | else
|
---|
31 | as_unset=false
|
---|
32 | fi
|
---|
33 |
|
---|
34 |
|
---|
35 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
36 | $as_unset ENV MAIL MAILPATH
|
---|
37 | PS1='$ '
|
---|
38 | PS2='> '
|
---|
39 | PS4='+ '
|
---|
40 |
|
---|
41 | # NLS nuisances.
|
---|
42 | for as_var in \
|
---|
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
45 | LC_TELEPHONE LC_TIME
|
---|
46 | do
|
---|
47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
48 | eval $as_var=C; export $as_var
|
---|
49 | else
|
---|
50 | $as_unset $as_var
|
---|
51 | fi
|
---|
52 | done
|
---|
53 |
|
---|
54 | # Required to use basename.
|
---|
55 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
56 | as_expr=expr
|
---|
57 | else
|
---|
58 | as_expr=false
|
---|
59 | fi
|
---|
60 |
|
---|
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
62 | as_basename=basename
|
---|
63 | else
|
---|
64 | as_basename=false
|
---|
65 | fi
|
---|
66 |
|
---|
67 |
|
---|
68 | # Name of the executable.
|
---|
69 | as_me=`$as_basename "$0" ||
|
---|
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
71 | X"$0" : 'X\(//\)$' \| \
|
---|
72 | X"$0" : 'X\(/\)$' \| \
|
---|
73 | . : '\(.\)' 2>/dev/null ||
|
---|
74 | echo X/"$0" |
|
---|
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
76 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
77 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
78 | s/.*/./; q'`
|
---|
79 |
|
---|
80 |
|
---|
81 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
82 | # Avoid depending upon Character Ranges.
|
---|
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
86 | as_cr_digits='0123456789'
|
---|
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
88 |
|
---|
89 | # The user is always right.
|
---|
90 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
91 | echo "#! /bin/sh" >conf$$.sh
|
---|
92 | echo "exit 0" >>conf$$.sh
|
---|
93 | chmod +x conf$$.sh
|
---|
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
95 | PATH_SEPARATOR=';'
|
---|
96 | else
|
---|
97 | PATH_SEPARATOR=:
|
---|
98 | fi
|
---|
99 | rm -f conf$$.sh
|
---|
100 | fi
|
---|
101 |
|
---|
102 |
|
---|
103 | as_lineno_1=$LINENO
|
---|
104 | as_lineno_2=$LINENO
|
---|
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
106 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
107 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
108 | # Find who we are. Look in the path if we contain no path at all
|
---|
109 | # relative or not.
|
---|
110 | case $0 in
|
---|
111 | *[\\/]* ) as_myself=$0 ;;
|
---|
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
113 | for as_dir in $PATH
|
---|
114 | do
|
---|
115 | IFS=$as_save_IFS
|
---|
116 | test -z "$as_dir" && as_dir=.
|
---|
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
118 | done
|
---|
119 |
|
---|
120 | ;;
|
---|
121 | esac
|
---|
122 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
123 | # in which case we are not to be found in the path.
|
---|
124 | if test "x$as_myself" = x; then
|
---|
125 | as_myself=$0
|
---|
126 | fi
|
---|
127 | if test ! -f "$as_myself"; then
|
---|
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
129 | { (exit 1); exit 1; }; }
|
---|
130 | fi
|
---|
131 | case $CONFIG_SHELL in
|
---|
132 | '')
|
---|
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
135 | do
|
---|
136 | IFS=$as_save_IFS
|
---|
137 | test -z "$as_dir" && as_dir=.
|
---|
138 | for as_base in sh bash ksh sh5; do
|
---|
139 | case $as_dir in
|
---|
140 | /*)
|
---|
141 | if ("$as_dir/$as_base" -c '
|
---|
142 | as_lineno_1=$LINENO
|
---|
143 | as_lineno_2=$LINENO
|
---|
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
145 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
149 | CONFIG_SHELL=$as_dir/$as_base
|
---|
150 | export CONFIG_SHELL
|
---|
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
152 | fi;;
|
---|
153 | esac
|
---|
154 | done
|
---|
155 | done
|
---|
156 | ;;
|
---|
157 | esac
|
---|
158 |
|
---|
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
160 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
161 | # line-number line before each line; the second 'sed' does the real
|
---|
162 | # work. The second script uses 'N' to pair each line-number line
|
---|
163 | # with the numbered line, and appends trailing '-' during
|
---|
164 | # substitution so that $LINENO is not a special case at line end.
|
---|
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
167 | sed '=' <$as_myself |
|
---|
168 | sed '
|
---|
169 | N
|
---|
170 | s,$,-,
|
---|
171 | : loop
|
---|
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
173 | t loop
|
---|
174 | s,-$,,
|
---|
175 | s,^['$as_cr_digits']*\n,,
|
---|
176 | ' >$as_me.lineno &&
|
---|
177 | chmod +x $as_me.lineno ||
|
---|
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
179 | { (exit 1); exit 1; }; }
|
---|
180 |
|
---|
181 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
182 | # (the dirname of $[0] is not the place where we might find the
|
---|
183 | # original and so on. Autoconf is especially sensible to this).
|
---|
184 | . ./$as_me.lineno
|
---|
185 | # Exit status is that of the last command.
|
---|
186 | exit
|
---|
187 | }
|
---|
188 |
|
---|
189 |
|
---|
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
191 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
192 | ' ECHO_T=' ' ;;
|
---|
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
195 | esac
|
---|
196 |
|
---|
197 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
198 | as_expr=expr
|
---|
199 | else
|
---|
200 | as_expr=false
|
---|
201 | fi
|
---|
202 |
|
---|
203 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
204 | echo >conf$$.file
|
---|
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
206 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
208 | if test -f conf$$.exe; then
|
---|
209 | # Don't use ln at all; we don't have any links
|
---|
210 | as_ln_s='cp -p'
|
---|
211 | else
|
---|
212 | as_ln_s='ln -s'
|
---|
213 | fi
|
---|
214 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
215 | as_ln_s=ln
|
---|
216 | else
|
---|
217 | as_ln_s='cp -p'
|
---|
218 | fi
|
---|
219 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
220 |
|
---|
221 | if mkdir -p . 2>/dev/null; then
|
---|
222 | as_mkdir_p=:
|
---|
223 | else
|
---|
224 | test -d ./-p && rmdir ./-p
|
---|
225 | as_mkdir_p=false
|
---|
226 | fi
|
---|
227 |
|
---|
228 | as_executable_p="test -f"
|
---|
229 |
|
---|
230 | # Sed expression to map a string onto a valid CPP name.
|
---|
231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
232 |
|
---|
233 | # Sed expression to map a string onto a valid variable name.
|
---|
234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
235 |
|
---|
236 |
|
---|
237 | # IFS
|
---|
238 | # We need space, tab and new line, in precisely that order.
|
---|
239 | as_nl='
|
---|
240 | '
|
---|
241 | IFS=" $as_nl"
|
---|
242 |
|
---|
243 | # CDPATH.
|
---|
244 | $as_unset CDPATH
|
---|
245 |
|
---|
246 |
|
---|
247 | # Name of the host.
|
---|
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
249 | # so uname gets run too.
|
---|
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
251 |
|
---|
252 | exec 6>&1
|
---|
253 |
|
---|
254 | #
|
---|
255 | # Initializations.
|
---|
256 | #
|
---|
257 | ac_default_prefix=/usr/local
|
---|
258 | ac_config_libobj_dir=.
|
---|
259 | cross_compiling=no
|
---|
260 | subdirs=
|
---|
261 | MFLAGS=
|
---|
262 | MAKEFLAGS=
|
---|
263 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
264 |
|
---|
265 | # Maximum number of lines to put in a shell here document.
|
---|
266 | # This variable seems obsolete. It should probably be removed, and
|
---|
267 | # only ac_max_sed_lines should be used.
|
---|
268 | : ${ac_max_here_lines=38}
|
---|
269 |
|
---|
270 | # Identity of this package.
|
---|
271 | PACKAGE_NAME='GNU make'
|
---|
272 | PACKAGE_TARNAME='make'
|
---|
273 | PACKAGE_VERSION='3.81beta1'
|
---|
274 | PACKAGE_STRING='GNU make 3.81beta1'
|
---|
275 | PACKAGE_BUGREPORT='[email protected]'
|
---|
276 |
|
---|
277 | ac_unique_file="vpath.c"
|
---|
278 | # Factoring default headers for most tests.
|
---|
279 | ac_includes_default="\
|
---|
280 | #include <stdio.h>
|
---|
281 | #if HAVE_SYS_TYPES_H
|
---|
282 | # include <sys/types.h>
|
---|
283 | #endif
|
---|
284 | #if HAVE_SYS_STAT_H
|
---|
285 | # include <sys/stat.h>
|
---|
286 | #endif
|
---|
287 | #if STDC_HEADERS
|
---|
288 | # include <stdlib.h>
|
---|
289 | # include <stddef.h>
|
---|
290 | #else
|
---|
291 | # if HAVE_STDLIB_H
|
---|
292 | # include <stdlib.h>
|
---|
293 | # endif
|
---|
294 | #endif
|
---|
295 | #if HAVE_STRING_H
|
---|
296 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
297 | # include <memory.h>
|
---|
298 | # endif
|
---|
299 | # include <string.h>
|
---|
300 | #endif
|
---|
301 | #if HAVE_STRINGS_H
|
---|
302 | # include <strings.h>
|
---|
303 | #endif
|
---|
304 | #if HAVE_INTTYPES_H
|
---|
305 | # include <inttypes.h>
|
---|
306 | #else
|
---|
307 | # if HAVE_STDINT_H
|
---|
308 | # include <stdint.h>
|
---|
309 | # endif
|
---|
310 | #endif
|
---|
311 | #if HAVE_UNISTD_H
|
---|
312 | # include <unistd.h>
|
---|
313 | #endif"
|
---|
314 |
|
---|
315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP AR PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS REMOTE USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST LTLIBOBJS'
|
---|
316 | ac_subst_files='MAINT_MAKEFILE'
|
---|
317 |
|
---|
318 | # Initialize some variables set by options.
|
---|
319 | ac_init_help=
|
---|
320 | ac_init_version=false
|
---|
321 | # The variables have the same names as the options, with
|
---|
322 | # dashes changed to underlines.
|
---|
323 | cache_file=/dev/null
|
---|
324 | exec_prefix=NONE
|
---|
325 | no_create=
|
---|
326 | no_recursion=
|
---|
327 | prefix=NONE
|
---|
328 | program_prefix=NONE
|
---|
329 | program_suffix=NONE
|
---|
330 | program_transform_name=s,x,x,
|
---|
331 | silent=
|
---|
332 | site=
|
---|
333 | srcdir=
|
---|
334 | verbose=
|
---|
335 | x_includes=NONE
|
---|
336 | x_libraries=NONE
|
---|
337 |
|
---|
338 | # Installation directory options.
|
---|
339 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
340 | # and all the variables that are supposed to be based on exec_prefix
|
---|
341 | # by default will actually change.
|
---|
342 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
343 | bindir='${exec_prefix}/bin'
|
---|
344 | sbindir='${exec_prefix}/sbin'
|
---|
345 | libexecdir='${exec_prefix}/libexec'
|
---|
346 | datadir='${prefix}/share'
|
---|
347 | sysconfdir='${prefix}/etc'
|
---|
348 | sharedstatedir='${prefix}/com'
|
---|
349 | localstatedir='${prefix}/var'
|
---|
350 | libdir='${exec_prefix}/lib'
|
---|
351 | includedir='${prefix}/include'
|
---|
352 | oldincludedir='/usr/include'
|
---|
353 | infodir='${prefix}/info'
|
---|
354 | mandir='${prefix}/man'
|
---|
355 |
|
---|
356 | ac_prev=
|
---|
357 | for ac_option
|
---|
358 | do
|
---|
359 | # If the previous option needs an argument, assign it.
|
---|
360 | if test -n "$ac_prev"; then
|
---|
361 | eval "$ac_prev=\$ac_option"
|
---|
362 | ac_prev=
|
---|
363 | continue
|
---|
364 | fi
|
---|
365 |
|
---|
366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
367 |
|
---|
368 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
369 |
|
---|
370 | case $ac_option in
|
---|
371 |
|
---|
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
373 | ac_prev=bindir ;;
|
---|
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
375 | bindir=$ac_optarg ;;
|
---|
376 |
|
---|
377 | -build | --build | --buil | --bui | --bu)
|
---|
378 | ac_prev=build_alias ;;
|
---|
379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
380 | build_alias=$ac_optarg ;;
|
---|
381 |
|
---|
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
384 | ac_prev=cache_file ;;
|
---|
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
387 | cache_file=$ac_optarg ;;
|
---|
388 |
|
---|
389 | --config-cache | -C)
|
---|
390 | cache_file=config.cache ;;
|
---|
391 |
|
---|
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
393 | ac_prev=datadir ;;
|
---|
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
395 | | --da=*)
|
---|
396 | datadir=$ac_optarg ;;
|
---|
397 |
|
---|
398 | -disable-* | --disable-*)
|
---|
399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
400 | # Reject names that are not valid shell variable names.
|
---|
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
403 | { (exit 1); exit 1; }; }
|
---|
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
405 | eval "enable_$ac_feature=no" ;;
|
---|
406 |
|
---|
407 | -enable-* | --enable-*)
|
---|
408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
409 | # Reject names that are not valid shell variable names.
|
---|
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
412 | { (exit 1); exit 1; }; }
|
---|
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
414 | case $ac_option in
|
---|
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
416 | *) ac_optarg=yes ;;
|
---|
417 | esac
|
---|
418 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
419 |
|
---|
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
422 | | --exec | --exe | --ex)
|
---|
423 | ac_prev=exec_prefix ;;
|
---|
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
426 | | --exec=* | --exe=* | --ex=*)
|
---|
427 | exec_prefix=$ac_optarg ;;
|
---|
428 |
|
---|
429 | -gas | --gas | --ga | --g)
|
---|
430 | # Obsolete; use --with-gas.
|
---|
431 | with_gas=yes ;;
|
---|
432 |
|
---|
433 | -help | --help | --hel | --he | -h)
|
---|
434 | ac_init_help=long ;;
|
---|
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
436 | ac_init_help=recursive ;;
|
---|
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
438 | ac_init_help=short ;;
|
---|
439 |
|
---|
440 | -host | --host | --hos | --ho)
|
---|
441 | ac_prev=host_alias ;;
|
---|
442 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
443 | host_alias=$ac_optarg ;;
|
---|
444 |
|
---|
445 | -includedir | --includedir | --includedi | --included | --include \
|
---|
446 | | --includ | --inclu | --incl | --inc)
|
---|
447 | ac_prev=includedir ;;
|
---|
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
449 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
450 | includedir=$ac_optarg ;;
|
---|
451 |
|
---|
452 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
453 | ac_prev=infodir ;;
|
---|
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
455 | infodir=$ac_optarg ;;
|
---|
456 |
|
---|
457 | -libdir | --libdir | --libdi | --libd)
|
---|
458 | ac_prev=libdir ;;
|
---|
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
460 | libdir=$ac_optarg ;;
|
---|
461 |
|
---|
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
463 | | --libexe | --libex | --libe)
|
---|
464 | ac_prev=libexecdir ;;
|
---|
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
466 | | --libexe=* | --libex=* | --libe=*)
|
---|
467 | libexecdir=$ac_optarg ;;
|
---|
468 |
|
---|
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
470 | | --localstate | --localstat | --localsta | --localst \
|
---|
471 | | --locals | --local | --loca | --loc | --lo)
|
---|
472 | ac_prev=localstatedir ;;
|
---|
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
476 | localstatedir=$ac_optarg ;;
|
---|
477 |
|
---|
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
479 | ac_prev=mandir ;;
|
---|
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
481 | mandir=$ac_optarg ;;
|
---|
482 |
|
---|
483 | -nfp | --nfp | --nf)
|
---|
484 | # Obsolete; use --without-fp.
|
---|
485 | with_fp=no ;;
|
---|
486 |
|
---|
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
488 | | --no-cr | --no-c | -n)
|
---|
489 | no_create=yes ;;
|
---|
490 |
|
---|
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
493 | no_recursion=yes ;;
|
---|
494 |
|
---|
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
497 | | --oldin | --oldi | --old | --ol | --o)
|
---|
498 | ac_prev=oldincludedir ;;
|
---|
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
502 | oldincludedir=$ac_optarg ;;
|
---|
503 |
|
---|
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
505 | ac_prev=prefix ;;
|
---|
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
507 | prefix=$ac_optarg ;;
|
---|
508 |
|
---|
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
510 | | --program-pre | --program-pr | --program-p)
|
---|
511 | ac_prev=program_prefix ;;
|
---|
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
514 | program_prefix=$ac_optarg ;;
|
---|
515 |
|
---|
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
517 | | --program-suf | --program-su | --program-s)
|
---|
518 | ac_prev=program_suffix ;;
|
---|
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
521 | program_suffix=$ac_optarg ;;
|
---|
522 |
|
---|
523 | -program-transform-name | --program-transform-name \
|
---|
524 | | --program-transform-nam | --program-transform-na \
|
---|
525 | | --program-transform-n | --program-transform- \
|
---|
526 | | --program-transform | --program-transfor \
|
---|
527 | | --program-transfo | --program-transf \
|
---|
528 | | --program-trans | --program-tran \
|
---|
529 | | --progr-tra | --program-tr | --program-t)
|
---|
530 | ac_prev=program_transform_name ;;
|
---|
531 | -program-transform-name=* | --program-transform-name=* \
|
---|
532 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
533 | | --program-transform-n=* | --program-transform-=* \
|
---|
534 | | --program-transform=* | --program-transfor=* \
|
---|
535 | | --program-transfo=* | --program-transf=* \
|
---|
536 | | --program-trans=* | --program-tran=* \
|
---|
537 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
538 | program_transform_name=$ac_optarg ;;
|
---|
539 |
|
---|
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
541 | | -silent | --silent | --silen | --sile | --sil)
|
---|
542 | silent=yes ;;
|
---|
543 |
|
---|
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
545 | ac_prev=sbindir ;;
|
---|
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
547 | | --sbi=* | --sb=*)
|
---|
548 | sbindir=$ac_optarg ;;
|
---|
549 |
|
---|
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
552 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
553 | | --sha | --sh)
|
---|
554 | ac_prev=sharedstatedir ;;
|
---|
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
558 | | --sha=* | --sh=*)
|
---|
559 | sharedstatedir=$ac_optarg ;;
|
---|
560 |
|
---|
561 | -site | --site | --sit)
|
---|
562 | ac_prev=site ;;
|
---|
563 | -site=* | --site=* | --sit=*)
|
---|
564 | site=$ac_optarg ;;
|
---|
565 |
|
---|
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
567 | ac_prev=srcdir ;;
|
---|
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
569 | srcdir=$ac_optarg ;;
|
---|
570 |
|
---|
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
572 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
573 | ac_prev=sysconfdir ;;
|
---|
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
576 | sysconfdir=$ac_optarg ;;
|
---|
577 |
|
---|
578 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
579 | ac_prev=target_alias ;;
|
---|
580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
581 | target_alias=$ac_optarg ;;
|
---|
582 |
|
---|
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
584 | verbose=yes ;;
|
---|
585 |
|
---|
586 | -version | --version | --versio | --versi | --vers | -V)
|
---|
587 | ac_init_version=: ;;
|
---|
588 |
|
---|
589 | -with-* | --with-*)
|
---|
590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
591 | # Reject names that are not valid shell variable names.
|
---|
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
594 | { (exit 1); exit 1; }; }
|
---|
595 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
596 | case $ac_option in
|
---|
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
598 | *) ac_optarg=yes ;;
|
---|
599 | esac
|
---|
600 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
601 |
|
---|
602 | -without-* | --without-*)
|
---|
603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
604 | # Reject names that are not valid shell variable names.
|
---|
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
607 | { (exit 1); exit 1; }; }
|
---|
608 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
609 | eval "with_$ac_package=no" ;;
|
---|
610 |
|
---|
611 | --x)
|
---|
612 | # Obsolete; use --with-x.
|
---|
613 | with_x=yes ;;
|
---|
614 |
|
---|
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
616 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
617 | ac_prev=x_includes ;;
|
---|
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
620 | x_includes=$ac_optarg ;;
|
---|
621 |
|
---|
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
624 | ac_prev=x_libraries ;;
|
---|
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
627 | x_libraries=$ac_optarg ;;
|
---|
628 |
|
---|
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
630 | Try \`$0 --help' for more information." >&2
|
---|
631 | { (exit 1); exit 1; }; }
|
---|
632 | ;;
|
---|
633 |
|
---|
634 | *=*)
|
---|
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
636 | # Reject names that are not valid shell variable names.
|
---|
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
639 | { (exit 1); exit 1; }; }
|
---|
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
641 | eval "$ac_envvar='$ac_optarg'"
|
---|
642 | export $ac_envvar ;;
|
---|
643 |
|
---|
644 | *)
|
---|
645 | # FIXME: should be removed in autoconf 3.0.
|
---|
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
650 | ;;
|
---|
651 |
|
---|
652 | esac
|
---|
653 | done
|
---|
654 |
|
---|
655 | if test -n "$ac_prev"; then
|
---|
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
657 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
658 | { (exit 1); exit 1; }; }
|
---|
659 | fi
|
---|
660 |
|
---|
661 | # Be sure to have absolute paths.
|
---|
662 | for ac_var in exec_prefix prefix
|
---|
663 | do
|
---|
664 | eval ac_val=$`echo $ac_var`
|
---|
665 | case $ac_val in
|
---|
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
668 | { (exit 1); exit 1; }; };;
|
---|
669 | esac
|
---|
670 | done
|
---|
671 |
|
---|
672 | # Be sure to have absolute paths.
|
---|
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
674 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
675 | do
|
---|
676 | eval ac_val=$`echo $ac_var`
|
---|
677 | case $ac_val in
|
---|
678 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
680 | { (exit 1); exit 1; }; };;
|
---|
681 | esac
|
---|
682 | done
|
---|
683 |
|
---|
684 | # There might be people who depend on the old broken behavior: `$host'
|
---|
685 | # used to hold the argument of --host etc.
|
---|
686 | # FIXME: To remove some day.
|
---|
687 | build=$build_alias
|
---|
688 | host=$host_alias
|
---|
689 | target=$target_alias
|
---|
690 |
|
---|
691 | # FIXME: To remove some day.
|
---|
692 | if test "x$host_alias" != x; then
|
---|
693 | if test "x$build_alias" = x; then
|
---|
694 | cross_compiling=maybe
|
---|
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
696 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
697 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
698 | cross_compiling=yes
|
---|
699 | fi
|
---|
700 | fi
|
---|
701 |
|
---|
702 | ac_tool_prefix=
|
---|
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
704 |
|
---|
705 | test "$silent" = yes && exec 6>/dev/null
|
---|
706 |
|
---|
707 |
|
---|
708 | # Find the source files, if location was not specified.
|
---|
709 | if test -z "$srcdir"; then
|
---|
710 | ac_srcdir_defaulted=yes
|
---|
711 | # Try the directory containing this script, then its parent.
|
---|
712 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
714 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
715 | X"$0" : 'X\(//\)$' \| \
|
---|
716 | X"$0" : 'X\(/\)' \| \
|
---|
717 | . : '\(.\)' 2>/dev/null ||
|
---|
718 | echo X"$0" |
|
---|
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
721 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
722 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
723 | s/.*/./; q'`
|
---|
724 | srcdir=$ac_confdir
|
---|
725 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
726 | srcdir=..
|
---|
727 | fi
|
---|
728 | else
|
---|
729 | ac_srcdir_defaulted=no
|
---|
730 | fi
|
---|
731 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
732 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
734 | { (exit 1); exit 1; }; }
|
---|
735 | else
|
---|
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
737 | { (exit 1); exit 1; }; }
|
---|
738 | fi
|
---|
739 | fi
|
---|
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
742 | { (exit 1); exit 1; }; }
|
---|
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
744 | ac_env_build_alias_set=${build_alias+set}
|
---|
745 | ac_env_build_alias_value=$build_alias
|
---|
746 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
747 | ac_cv_env_build_alias_value=$build_alias
|
---|
748 | ac_env_host_alias_set=${host_alias+set}
|
---|
749 | ac_env_host_alias_value=$host_alias
|
---|
750 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
751 | ac_cv_env_host_alias_value=$host_alias
|
---|
752 | ac_env_target_alias_set=${target_alias+set}
|
---|
753 | ac_env_target_alias_value=$target_alias
|
---|
754 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
755 | ac_cv_env_target_alias_value=$target_alias
|
---|
756 | ac_env_CC_set=${CC+set}
|
---|
757 | ac_env_CC_value=$CC
|
---|
758 | ac_cv_env_CC_set=${CC+set}
|
---|
759 | ac_cv_env_CC_value=$CC
|
---|
760 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
761 | ac_env_CFLAGS_value=$CFLAGS
|
---|
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
763 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
764 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
765 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
769 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
772 | ac_env_CPP_set=${CPP+set}
|
---|
773 | ac_env_CPP_value=$CPP
|
---|
774 | ac_cv_env_CPP_set=${CPP+set}
|
---|
775 | ac_cv_env_CPP_value=$CPP
|
---|
776 |
|
---|
777 | #
|
---|
778 | # Report the --help message.
|
---|
779 | #
|
---|
780 | if test "$ac_init_help" = "long"; then
|
---|
781 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
782 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
783 | cat <<_ACEOF
|
---|
784 | \`configure' configures GNU make 3.81beta1 to adapt to many kinds of systems.
|
---|
785 |
|
---|
786 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
787 |
|
---|
788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
789 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
790 |
|
---|
791 | Defaults for the options are specified in brackets.
|
---|
792 |
|
---|
793 | Configuration:
|
---|
794 | -h, --help display this help and exit
|
---|
795 | --help=short display options specific to this package
|
---|
796 | --help=recursive display the short help of all the included packages
|
---|
797 | -V, --version display version information and exit
|
---|
798 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
799 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
800 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
801 | -n, --no-create do not create output files
|
---|
802 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
803 |
|
---|
804 | _ACEOF
|
---|
805 |
|
---|
806 | cat <<_ACEOF
|
---|
807 | Installation directories:
|
---|
808 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
809 | [$ac_default_prefix]
|
---|
810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
811 | [PREFIX]
|
---|
812 |
|
---|
813 | By default, \`make install' will install all the files in
|
---|
814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
816 | for instance \`--prefix=\$HOME'.
|
---|
817 |
|
---|
818 | For better control, use the options below.
|
---|
819 |
|
---|
820 | Fine tuning of the installation directories:
|
---|
821 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
822 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
823 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
824 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
828 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
829 | --includedir=DIR C header files [PREFIX/include]
|
---|
830 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
831 | --infodir=DIR info documentation [PREFIX/info]
|
---|
832 | --mandir=DIR man documentation [PREFIX/man]
|
---|
833 | _ACEOF
|
---|
834 |
|
---|
835 | cat <<\_ACEOF
|
---|
836 |
|
---|
837 | Program names:
|
---|
838 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
839 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
840 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
841 |
|
---|
842 | System types:
|
---|
843 | --build=BUILD configure for building on BUILD [guessed]
|
---|
844 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
845 | _ACEOF
|
---|
846 | fi
|
---|
847 |
|
---|
848 | if test -n "$ac_init_help"; then
|
---|
849 | case $ac_init_help in
|
---|
850 | short | recursive ) echo "Configuration of GNU make 3.81beta1:";;
|
---|
851 | esac
|
---|
852 | cat <<\_ACEOF
|
---|
853 |
|
---|
854 | Optional Features:
|
---|
855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
857 | --disable-dependency-tracking speeds up one-time build
|
---|
858 | --enable-dependency-tracking do not reject slow dependency extractors
|
---|
859 | --disable-nls do not use Native Language Support
|
---|
860 | --disable-rpath do not hardcode runtime library paths
|
---|
861 | --disable-largefile omit support for large files
|
---|
862 | --disable-job-server disallow recursive make communication during -jN
|
---|
863 |
|
---|
864 | Optional Packages:
|
---|
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
867 | --with-gnu-ld assume the C compiler uses GNU ld default=no
|
---|
868 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
|
---|
869 | --without-libiconv-prefix don't search for libiconv in includedir and libdir
|
---|
870 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
|
---|
871 | --without-libintl-prefix don't search for libintl in includedir and libdir
|
---|
872 | --with-customs=DIR enable remote jobs via Customs--see README.customs
|
---|
873 | --with-dmalloc use dmalloc, as in
|
---|
874 | http://www.dmalloc.com/dmalloc.tar.gz
|
---|
875 |
|
---|
876 | Some influential environment variables:
|
---|
877 | CC C compiler command
|
---|
878 | CFLAGS C compiler flags
|
---|
879 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
880 | nonstandard directory <lib dir>
|
---|
881 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
882 | headers in a nonstandard directory <include dir>
|
---|
883 | CPP C preprocessor
|
---|
884 |
|
---|
885 | Use these variables to override the choices made by `configure' or to help
|
---|
886 | it to find libraries and programs with nonstandard names/locations.
|
---|
887 |
|
---|
888 | Report bugs to <[email protected]>.
|
---|
889 | _ACEOF
|
---|
890 | fi
|
---|
891 |
|
---|
892 | if test "$ac_init_help" = "recursive"; then
|
---|
893 | # If there are subdirs, report their specific --help.
|
---|
894 | ac_popdir=`pwd`
|
---|
895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
896 | test -d $ac_dir || continue
|
---|
897 | ac_builddir=.
|
---|
898 |
|
---|
899 | if test "$ac_dir" != .; then
|
---|
900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
901 | # A "../" for each directory in $ac_dir_suffix.
|
---|
902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
903 | else
|
---|
904 | ac_dir_suffix= ac_top_builddir=
|
---|
905 | fi
|
---|
906 |
|
---|
907 | case $srcdir in
|
---|
908 | .) # No --srcdir option. We are building in place.
|
---|
909 | ac_srcdir=.
|
---|
910 | if test -z "$ac_top_builddir"; then
|
---|
911 | ac_top_srcdir=.
|
---|
912 | else
|
---|
913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
914 | fi ;;
|
---|
915 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
916 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
917 | ac_top_srcdir=$srcdir ;;
|
---|
918 | *) # Relative path.
|
---|
919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
920 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
921 | esac
|
---|
922 |
|
---|
923 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
924 | # the directories may not exist.
|
---|
925 | case `pwd` in
|
---|
926 | .) ac_abs_builddir="$ac_dir";;
|
---|
927 | *)
|
---|
928 | case "$ac_dir" in
|
---|
929 | .) ac_abs_builddir=`pwd`;;
|
---|
930 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
931 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
932 | esac;;
|
---|
933 | esac
|
---|
934 | case $ac_abs_builddir in
|
---|
935 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
936 | *)
|
---|
937 | case ${ac_top_builddir}. in
|
---|
938 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
939 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
940 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
941 | esac;;
|
---|
942 | esac
|
---|
943 | case $ac_abs_builddir in
|
---|
944 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
945 | *)
|
---|
946 | case $ac_srcdir in
|
---|
947 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
948 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
949 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
950 | esac;;
|
---|
951 | esac
|
---|
952 | case $ac_abs_builddir in
|
---|
953 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
954 | *)
|
---|
955 | case $ac_top_srcdir in
|
---|
956 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
957 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
958 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
959 | esac;;
|
---|
960 | esac
|
---|
961 |
|
---|
962 | cd $ac_dir
|
---|
963 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
964 | if test -f $ac_srcdir/configure.gnu; then
|
---|
965 | echo
|
---|
966 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
967 | elif test -f $ac_srcdir/configure; then
|
---|
968 | echo
|
---|
969 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
970 | elif test -f $ac_srcdir/configure.ac ||
|
---|
971 | test -f $ac_srcdir/configure.in; then
|
---|
972 | echo
|
---|
973 | $ac_configure --help
|
---|
974 | else
|
---|
975 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
976 | fi
|
---|
977 | cd $ac_popdir
|
---|
978 | done
|
---|
979 | fi
|
---|
980 |
|
---|
981 | test -n "$ac_init_help" && exit 0
|
---|
982 | if $ac_init_version; then
|
---|
983 | cat <<\_ACEOF
|
---|
984 | GNU make configure 3.81beta1
|
---|
985 | generated by GNU Autoconf 2.59
|
---|
986 |
|
---|
987 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
988 | This configure script is free software; the Free Software Foundation
|
---|
989 | gives unlimited permission to copy, distribute and modify it.
|
---|
990 | _ACEOF
|
---|
991 | exit 0
|
---|
992 | fi
|
---|
993 | exec 5>config.log
|
---|
994 | cat >&5 <<_ACEOF
|
---|
995 | This file contains any messages produced by compilers while
|
---|
996 | running configure, to aid debugging if configure makes a mistake.
|
---|
997 |
|
---|
998 | It was created by GNU make $as_me 3.81beta1, which was
|
---|
999 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
1000 |
|
---|
1001 | $ $0 $@
|
---|
1002 |
|
---|
1003 | _ACEOF
|
---|
1004 | {
|
---|
1005 | cat <<_ASUNAME
|
---|
1006 | ## --------- ##
|
---|
1007 | ## Platform. ##
|
---|
1008 | ## --------- ##
|
---|
1009 |
|
---|
1010 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1011 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1012 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1013 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1014 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1015 |
|
---|
1016 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1017 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1018 |
|
---|
1019 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1020 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1021 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1022 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1023 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1024 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1025 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1026 |
|
---|
1027 | _ASUNAME
|
---|
1028 |
|
---|
1029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1030 | for as_dir in $PATH
|
---|
1031 | do
|
---|
1032 | IFS=$as_save_IFS
|
---|
1033 | test -z "$as_dir" && as_dir=.
|
---|
1034 | echo "PATH: $as_dir"
|
---|
1035 | done
|
---|
1036 |
|
---|
1037 | } >&5
|
---|
1038 |
|
---|
1039 | cat >&5 <<_ACEOF
|
---|
1040 |
|
---|
1041 |
|
---|
1042 | ## ----------- ##
|
---|
1043 | ## Core tests. ##
|
---|
1044 | ## ----------- ##
|
---|
1045 |
|
---|
1046 | _ACEOF
|
---|
1047 |
|
---|
1048 |
|
---|
1049 | # Keep a trace of the command line.
|
---|
1050 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1051 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1052 | # Also quote any args containing shell meta-characters.
|
---|
1053 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1054 | ac_configure_args=
|
---|
1055 | ac_configure_args0=
|
---|
1056 | ac_configure_args1=
|
---|
1057 | ac_sep=
|
---|
1058 | ac_must_keep_next=false
|
---|
1059 | for ac_pass in 1 2
|
---|
1060 | do
|
---|
1061 | for ac_arg
|
---|
1062 | do
|
---|
1063 | case $ac_arg in
|
---|
1064 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1066 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1067 | continue ;;
|
---|
1068 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1069 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1070 | esac
|
---|
1071 | case $ac_pass in
|
---|
1072 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1073 | 2)
|
---|
1074 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1075 | if test $ac_must_keep_next = true; then
|
---|
1076 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1077 | else
|
---|
1078 | case $ac_arg in
|
---|
1079 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1080 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1081 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1082 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1083 | case "$ac_configure_args0 " in
|
---|
1084 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1085 | esac
|
---|
1086 | ;;
|
---|
1087 | -* ) ac_must_keep_next=true ;;
|
---|
1088 | esac
|
---|
1089 | fi
|
---|
1090 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1091 | # Get rid of the leading space.
|
---|
1092 | ac_sep=" "
|
---|
1093 | ;;
|
---|
1094 | esac
|
---|
1095 | done
|
---|
1096 | done
|
---|
1097 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1098 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1099 |
|
---|
1100 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1101 | # config.log. We remove comments because anyway the quotes in there
|
---|
1102 | # would cause problems or look ugly.
|
---|
1103 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1104 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1105 | trap 'exit_status=$?
|
---|
1106 | # Save into config.log some information that might help in debugging.
|
---|
1107 | {
|
---|
1108 | echo
|
---|
1109 |
|
---|
1110 | cat <<\_ASBOX
|
---|
1111 | ## ---------------- ##
|
---|
1112 | ## Cache variables. ##
|
---|
1113 | ## ---------------- ##
|
---|
1114 | _ASBOX
|
---|
1115 | echo
|
---|
1116 | # The following way of writing the cache mishandles newlines in values,
|
---|
1117 | {
|
---|
1118 | (set) 2>&1 |
|
---|
1119 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1120 | *ac_space=\ *)
|
---|
1121 | sed -n \
|
---|
1122 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1123 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1124 | ;;
|
---|
1125 | *)
|
---|
1126 | sed -n \
|
---|
1127 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1128 | ;;
|
---|
1129 | esac;
|
---|
1130 | }
|
---|
1131 | echo
|
---|
1132 |
|
---|
1133 | cat <<\_ASBOX
|
---|
1134 | ## ----------------- ##
|
---|
1135 | ## Output variables. ##
|
---|
1136 | ## ----------------- ##
|
---|
1137 | _ASBOX
|
---|
1138 | echo
|
---|
1139 | for ac_var in $ac_subst_vars
|
---|
1140 | do
|
---|
1141 | eval ac_val=$`echo $ac_var`
|
---|
1142 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1143 | done | sort
|
---|
1144 | echo
|
---|
1145 |
|
---|
1146 | if test -n "$ac_subst_files"; then
|
---|
1147 | cat <<\_ASBOX
|
---|
1148 | ## ------------- ##
|
---|
1149 | ## Output files. ##
|
---|
1150 | ## ------------- ##
|
---|
1151 | _ASBOX
|
---|
1152 | echo
|
---|
1153 | for ac_var in $ac_subst_files
|
---|
1154 | do
|
---|
1155 | eval ac_val=$`echo $ac_var`
|
---|
1156 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1157 | done | sort
|
---|
1158 | echo
|
---|
1159 | fi
|
---|
1160 |
|
---|
1161 | if test -s confdefs.h; then
|
---|
1162 | cat <<\_ASBOX
|
---|
1163 | ## ----------- ##
|
---|
1164 | ## confdefs.h. ##
|
---|
1165 | ## ----------- ##
|
---|
1166 | _ASBOX
|
---|
1167 | echo
|
---|
1168 | sed "/^$/d" confdefs.h | sort
|
---|
1169 | echo
|
---|
1170 | fi
|
---|
1171 | test "$ac_signal" != 0 &&
|
---|
1172 | echo "$as_me: caught signal $ac_signal"
|
---|
1173 | echo "$as_me: exit $exit_status"
|
---|
1174 | } >&5
|
---|
1175 | rm -f core *.core &&
|
---|
1176 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1177 | exit $exit_status
|
---|
1178 | ' 0
|
---|
1179 | for ac_signal in 1 2 13 15; do
|
---|
1180 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1181 | done
|
---|
1182 | ac_signal=0
|
---|
1183 |
|
---|
1184 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1185 | rm -rf conftest* confdefs.h
|
---|
1186 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1187 | echo >confdefs.h
|
---|
1188 |
|
---|
1189 | # Predefined preprocessor variables.
|
---|
1190 |
|
---|
1191 | cat >>confdefs.h <<_ACEOF
|
---|
1192 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1193 | _ACEOF
|
---|
1194 |
|
---|
1195 |
|
---|
1196 | cat >>confdefs.h <<_ACEOF
|
---|
1197 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1198 | _ACEOF
|
---|
1199 |
|
---|
1200 |
|
---|
1201 | cat >>confdefs.h <<_ACEOF
|
---|
1202 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1203 | _ACEOF
|
---|
1204 |
|
---|
1205 |
|
---|
1206 | cat >>confdefs.h <<_ACEOF
|
---|
1207 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1208 | _ACEOF
|
---|
1209 |
|
---|
1210 |
|
---|
1211 | cat >>confdefs.h <<_ACEOF
|
---|
1212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1213 | _ACEOF
|
---|
1214 |
|
---|
1215 |
|
---|
1216 | # Let the site file select an alternate cache file if it wants to.
|
---|
1217 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1218 | if test -z "$CONFIG_SITE"; then
|
---|
1219 | if test "x$prefix" != xNONE; then
|
---|
1220 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1221 | else
|
---|
1222 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1223 | fi
|
---|
1224 | fi
|
---|
1225 | for ac_site_file in $CONFIG_SITE; do
|
---|
1226 | if test -r "$ac_site_file"; then
|
---|
1227 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1228 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1229 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1230 | . "$ac_site_file"
|
---|
1231 | fi
|
---|
1232 | done
|
---|
1233 |
|
---|
1234 | if test -r "$cache_file"; then
|
---|
1235 | # Some versions of bash will fail to source /dev/null (special
|
---|
1236 | # files actually), so we avoid doing that.
|
---|
1237 | if test -f "$cache_file"; then
|
---|
1238 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1239 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1240 | case $cache_file in
|
---|
1241 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1242 | *) . ./$cache_file;;
|
---|
1243 | esac
|
---|
1244 | fi
|
---|
1245 | else
|
---|
1246 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1247 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1248 | >$cache_file
|
---|
1249 | fi
|
---|
1250 |
|
---|
1251 | # Check that the precious variables saved in the cache have kept the same
|
---|
1252 | # value.
|
---|
1253 | ac_cache_corrupted=false
|
---|
1254 | for ac_var in `(set) 2>&1 |
|
---|
1255 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1256 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1257 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1258 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1259 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1260 | case $ac_old_set,$ac_new_set in
|
---|
1261 | set,)
|
---|
1262 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1263 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1264 | ac_cache_corrupted=: ;;
|
---|
1265 | ,set)
|
---|
1266 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1267 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1268 | ac_cache_corrupted=: ;;
|
---|
1269 | ,);;
|
---|
1270 | *)
|
---|
1271 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1272 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1273 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1274 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1275 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1276 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1277 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1278 | ac_cache_corrupted=:
|
---|
1279 | fi;;
|
---|
1280 | esac
|
---|
1281 | # Pass precious variables to config.status.
|
---|
1282 | if test "$ac_new_set" = set; then
|
---|
1283 | case $ac_new_val in
|
---|
1284 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1285 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1286 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1287 | esac
|
---|
1288 | case " $ac_configure_args " in
|
---|
1289 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1290 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1291 | esac
|
---|
1292 | fi
|
---|
1293 | done
|
---|
1294 | if $ac_cache_corrupted; then
|
---|
1295 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1296 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1297 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1298 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1299 | { (exit 1); exit 1; }; }
|
---|
1300 | fi
|
---|
1301 |
|
---|
1302 | ac_ext=c
|
---|
1303 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1307 |
|
---|
1308 |
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 |
|
---|
1313 |
|
---|
1314 |
|
---|
1315 |
|
---|
1316 |
|
---|
1317 |
|
---|
1318 |
|
---|
1319 |
|
---|
1320 |
|
---|
1321 |
|
---|
1322 |
|
---|
1323 |
|
---|
1324 |
|
---|
1325 |
|
---|
1326 |
|
---|
1327 |
|
---|
1328 |
|
---|
1329 |
|
---|
1330 |
|
---|
1331 |
|
---|
1332 |
|
---|
1333 |
|
---|
1334 |
|
---|
1335 |
|
---|
1336 |
|
---|
1337 |
|
---|
1338 | # Autoconf setup
|
---|
1339 | ac_aux_dir=
|
---|
1340 | for ac_dir in config $srcdir/config; do
|
---|
1341 | if test -f $ac_dir/install-sh; then
|
---|
1342 | ac_aux_dir=$ac_dir
|
---|
1343 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
1344 | break
|
---|
1345 | elif test -f $ac_dir/install.sh; then
|
---|
1346 | ac_aux_dir=$ac_dir
|
---|
1347 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
1348 | break
|
---|
1349 | elif test -f $ac_dir/shtool; then
|
---|
1350 | ac_aux_dir=$ac_dir
|
---|
1351 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
1352 | break
|
---|
1353 | fi
|
---|
1354 | done
|
---|
1355 | if test -z "$ac_aux_dir"; then
|
---|
1356 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
|
---|
1357 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
|
---|
1358 | { (exit 1); exit 1; }; }
|
---|
1359 | fi
|
---|
1360 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
1361 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
1362 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
1363 |
|
---|
1364 |
|
---|
1365 | ac_config_headers="$ac_config_headers config.h"
|
---|
1366 |
|
---|
1367 |
|
---|
1368 | # Automake setup
|
---|
1369 | am__api_version="1.8"
|
---|
1370 | # Find a good install program. We prefer a C program (faster),
|
---|
1371 | # so one script is as good as another. But avoid the broken or
|
---|
1372 | # incompatible versions:
|
---|
1373 | # SysV /etc/install, /usr/sbin/install
|
---|
1374 | # SunOS /usr/etc/install
|
---|
1375 | # IRIX /sbin/install
|
---|
1376 | # AIX /bin/install
|
---|
1377 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
1378 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1379 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1380 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1381 | # OS/2's system install, which has a completely different semantic
|
---|
1382 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1383 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
1384 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
1385 | if test -z "$INSTALL"; then
|
---|
1386 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1387 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1388 | else
|
---|
1389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1390 | for as_dir in $PATH
|
---|
1391 | do
|
---|
1392 | IFS=$as_save_IFS
|
---|
1393 | test -z "$as_dir" && as_dir=.
|
---|
1394 | # Account for people who put trailing slashes in PATH elements.
|
---|
1395 | case $as_dir/ in
|
---|
1396 | ./ | .// | /cC/* | \
|
---|
1397 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
1398 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
1399 | /usr/ucb/* ) ;;
|
---|
1400 | *)
|
---|
1401 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1402 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1403 | # by default.
|
---|
1404 | for ac_prog in ginstall scoinst install; do
|
---|
1405 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1406 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
1407 | if test $ac_prog = install &&
|
---|
1408 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
1409 | # AIX install. It has an incompatible calling convention.
|
---|
1410 | :
|
---|
1411 | elif test $ac_prog = install &&
|
---|
1412 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
1413 | # program-specific install script used by HP pwplus--don't use.
|
---|
1414 | :
|
---|
1415 | else
|
---|
1416 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
1417 | break 3
|
---|
1418 | fi
|
---|
1419 | fi
|
---|
1420 | done
|
---|
1421 | done
|
---|
1422 | ;;
|
---|
1423 | esac
|
---|
1424 | done
|
---|
1425 |
|
---|
1426 |
|
---|
1427 | fi
|
---|
1428 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1429 | INSTALL=$ac_cv_path_install
|
---|
1430 | else
|
---|
1431 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1432 | # path for INSTALL within a source directory, because that will
|
---|
1433 | # break other packages using the cache if that directory is
|
---|
1434 | # removed, or if the path is relative.
|
---|
1435 | INSTALL=$ac_install_sh
|
---|
1436 | fi
|
---|
1437 | fi
|
---|
1438 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
1439 | echo "${ECHO_T}$INSTALL" >&6
|
---|
1440 |
|
---|
1441 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1442 | # It thinks the first close brace ends the variable substitution.
|
---|
1443 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1444 |
|
---|
1445 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
1446 |
|
---|
1447 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1448 |
|
---|
1449 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
---|
1450 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
|
---|
1451 | # Just in case
|
---|
1452 | sleep 1
|
---|
1453 | echo timestamp > conftest.file
|
---|
1454 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1455 | # arguments. Must try -L first in case configure is actually a
|
---|
1456 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1457 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1458 | # directory).
|
---|
1459 | if (
|
---|
1460 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
---|
1461 | if test "$*" = "X"; then
|
---|
1462 | # -L didn't work.
|
---|
1463 | set X `ls -t $srcdir/configure conftest.file`
|
---|
1464 | fi
|
---|
1465 | rm -f conftest.file
|
---|
1466 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
1467 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
1468 |
|
---|
1469 | # If neither matched, then we have a broken ls. This can happen
|
---|
1470 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1471 | # broken ls alias from the environment. This has actually
|
---|
1472 | # happened. Such a system could not be considered "sane".
|
---|
1473 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1474 | alias in your environment" >&5
|
---|
1475 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1476 | alias in your environment" >&2;}
|
---|
1477 | { (exit 1); exit 1; }; }
|
---|
1478 | fi
|
---|
1479 |
|
---|
1480 | test "$2" = conftest.file
|
---|
1481 | )
|
---|
1482 | then
|
---|
1483 | # Ok.
|
---|
1484 | :
|
---|
1485 | else
|
---|
1486 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
---|
1487 | Check your system clock" >&5
|
---|
1488 | echo "$as_me: error: newly created file is older than distributed files!
|
---|
1489 | Check your system clock" >&2;}
|
---|
1490 | { (exit 1); exit 1; }; }
|
---|
1491 | fi
|
---|
1492 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1493 | echo "${ECHO_T}yes" >&6
|
---|
1494 | test "$program_prefix" != NONE &&
|
---|
1495 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
1496 | # Use a double $ so make ignores it.
|
---|
1497 | test "$program_suffix" != NONE &&
|
---|
1498 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
1499 | # Double any \ or $. echo might interpret backslashes.
|
---|
1500 | # By default was `s,x,x', remove it if useless.
|
---|
1501 | cat <<\_ACEOF >conftest.sed
|
---|
1502 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
1503 | _ACEOF
|
---|
1504 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
1505 | rm conftest.sed
|
---|
1506 |
|
---|
1507 | # expand $ac_aux_dir to an absolute path
|
---|
1508 | am_aux_dir=`cd $ac_aux_dir && pwd`
|
---|
1509 |
|
---|
1510 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
---|
1511 | # Use eval to expand $SHELL
|
---|
1512 | if eval "$MISSING --run true"; then
|
---|
1513 | am_missing_run="$MISSING --run "
|
---|
1514 | else
|
---|
1515 | am_missing_run=
|
---|
1516 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
---|
1517 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
---|
1518 | fi
|
---|
1519 |
|
---|
1520 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
---|
1521 | # Keeping the `.' argument allows $(mkdir_p) to be used without
|
---|
1522 | # argument. Indeed, we sometimes output rules like
|
---|
1523 | # $(mkdir_p) $(somedir)
|
---|
1524 | # where $(somedir) is conditionally defined.
|
---|
1525 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
|
---|
1526 | # expensive solution, as it forces Make to start a sub-shell.)
|
---|
1527 | mkdir_p='mkdir -p -- .'
|
---|
1528 | else
|
---|
1529 | # On NextStep and OpenStep, the `mkdir' command does not
|
---|
1530 | # recognize any option. It will interpret all options as
|
---|
1531 | # directories to create, and then abort because `.' already
|
---|
1532 | # exists.
|
---|
1533 | for d in ./-p ./--version;
|
---|
1534 | do
|
---|
1535 | test -d $d && rmdir $d
|
---|
1536 | done
|
---|
1537 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
---|
1538 | if test -f "$ac_aux_dir/mkinstalldirs"; then
|
---|
1539 | mkdir_p='$(mkinstalldirs)'
|
---|
1540 | else
|
---|
1541 | mkdir_p='$(install_sh) -d'
|
---|
1542 | fi
|
---|
1543 | fi
|
---|
1544 |
|
---|
1545 | for ac_prog in gawk mawk nawk awk
|
---|
1546 | do
|
---|
1547 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1548 | set dummy $ac_prog; ac_word=$2
|
---|
1549 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1551 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
1552 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1553 | else
|
---|
1554 | if test -n "$AWK"; then
|
---|
1555 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
1556 | else
|
---|
1557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1558 | for as_dir in $PATH
|
---|
1559 | do
|
---|
1560 | IFS=$as_save_IFS
|
---|
1561 | test -z "$as_dir" && as_dir=.
|
---|
1562 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1564 | ac_cv_prog_AWK="$ac_prog"
|
---|
1565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1566 | break 2
|
---|
1567 | fi
|
---|
1568 | done
|
---|
1569 | done
|
---|
1570 |
|
---|
1571 | fi
|
---|
1572 | fi
|
---|
1573 | AWK=$ac_cv_prog_AWK
|
---|
1574 | if test -n "$AWK"; then
|
---|
1575 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
1576 | echo "${ECHO_T}$AWK" >&6
|
---|
1577 | else
|
---|
1578 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1579 | echo "${ECHO_T}no" >&6
|
---|
1580 | fi
|
---|
1581 |
|
---|
1582 | test -n "$AWK" && break
|
---|
1583 | done
|
---|
1584 |
|
---|
1585 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
1586 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
1587 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
1588 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
1589 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1590 | else
|
---|
1591 | cat >conftest.make <<\_ACEOF
|
---|
1592 | all:
|
---|
1593 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
1594 | _ACEOF
|
---|
1595 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1596 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
1597 | if test -n "$ac_maketemp"; then
|
---|
1598 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1599 | else
|
---|
1600 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1601 | fi
|
---|
1602 | rm -f conftest.make
|
---|
1603 | fi
|
---|
1604 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1605 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1606 | echo "${ECHO_T}yes" >&6
|
---|
1607 | SET_MAKE=
|
---|
1608 | else
|
---|
1609 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1610 | echo "${ECHO_T}no" >&6
|
---|
1611 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1612 | fi
|
---|
1613 |
|
---|
1614 | rm -rf .tst 2>/dev/null
|
---|
1615 | mkdir .tst 2>/dev/null
|
---|
1616 | if test -d .tst; then
|
---|
1617 | am__leading_dot=.
|
---|
1618 | else
|
---|
1619 | am__leading_dot=_
|
---|
1620 | fi
|
---|
1621 | rmdir .tst 2>/dev/null
|
---|
1622 |
|
---|
1623 | # test to see if srcdir already configured
|
---|
1624 | if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
---|
1625 | test -f $srcdir/config.status; then
|
---|
1626 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
---|
1627 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
---|
1628 | { (exit 1); exit 1; }; }
|
---|
1629 | fi
|
---|
1630 |
|
---|
1631 | # test whether we have cygpath
|
---|
1632 | if test -z "$CYGPATH_W"; then
|
---|
1633 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
1634 | CYGPATH_W='cygpath -w'
|
---|
1635 | else
|
---|
1636 | CYGPATH_W=echo
|
---|
1637 | fi
|
---|
1638 | fi
|
---|
1639 |
|
---|
1640 |
|
---|
1641 | # Define the identity of the package.
|
---|
1642 | PACKAGE='make'
|
---|
1643 | VERSION='3.81beta1'
|
---|
1644 |
|
---|
1645 |
|
---|
1646 | cat >>confdefs.h <<_ACEOF
|
---|
1647 | #define PACKAGE "$PACKAGE"
|
---|
1648 | _ACEOF
|
---|
1649 |
|
---|
1650 |
|
---|
1651 | cat >>confdefs.h <<_ACEOF
|
---|
1652 | #define VERSION "$VERSION"
|
---|
1653 | _ACEOF
|
---|
1654 |
|
---|
1655 | # Some tools Automake needs.
|
---|
1656 |
|
---|
1657 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
1658 |
|
---|
1659 |
|
---|
1660 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
1661 |
|
---|
1662 |
|
---|
1663 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
1664 |
|
---|
1665 |
|
---|
1666 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
1667 |
|
---|
1668 |
|
---|
1669 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
1670 |
|
---|
1671 |
|
---|
1672 | AMTAR=${AMTAR-"${am_missing_run}tar"}
|
---|
1673 |
|
---|
1674 | install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
---|
1675 |
|
---|
1676 | # Installed binaries are usually stripped using `strip' when the user
|
---|
1677 | # run `make install-strip'. However `strip' might not be the right
|
---|
1678 | # tool to use in cross-compilation environments, therefore Automake
|
---|
1679 | # will honor the `STRIP' environment variable to overrule this program.
|
---|
1680 | if test "$cross_compiling" != no; then
|
---|
1681 | if test -n "$ac_tool_prefix"; then
|
---|
1682 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
1683 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
1684 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1686 | if test "${ac_cv_prog_STRIP+set}" = set; then
|
---|
1687 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1688 | else
|
---|
1689 | if test -n "$STRIP"; then
|
---|
1690 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1691 | else
|
---|
1692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1693 | for as_dir in $PATH
|
---|
1694 | do
|
---|
1695 | IFS=$as_save_IFS
|
---|
1696 | test -z "$as_dir" && as_dir=.
|
---|
1697 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1698 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1699 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
1700 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1701 | break 2
|
---|
1702 | fi
|
---|
1703 | done
|
---|
1704 | done
|
---|
1705 |
|
---|
1706 | fi
|
---|
1707 | fi
|
---|
1708 | STRIP=$ac_cv_prog_STRIP
|
---|
1709 | if test -n "$STRIP"; then
|
---|
1710 | echo "$as_me:$LINENO: result: $STRIP" >&5
|
---|
1711 | echo "${ECHO_T}$STRIP" >&6
|
---|
1712 | else
|
---|
1713 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1714 | echo "${ECHO_T}no" >&6
|
---|
1715 | fi
|
---|
1716 |
|
---|
1717 | fi
|
---|
1718 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
1719 | ac_ct_STRIP=$STRIP
|
---|
1720 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
1721 | set dummy strip; ac_word=$2
|
---|
1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1724 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
---|
1725 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1726 | else
|
---|
1727 | if test -n "$ac_ct_STRIP"; then
|
---|
1728 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
1729 | else
|
---|
1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1731 | for as_dir in $PATH
|
---|
1732 | do
|
---|
1733 | IFS=$as_save_IFS
|
---|
1734 | test -z "$as_dir" && as_dir=.
|
---|
1735 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1737 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1739 | break 2
|
---|
1740 | fi
|
---|
1741 | done
|
---|
1742 | done
|
---|
1743 |
|
---|
1744 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
---|
1745 | fi
|
---|
1746 | fi
|
---|
1747 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
1748 | if test -n "$ac_ct_STRIP"; then
|
---|
1749 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
---|
1750 | echo "${ECHO_T}$ac_ct_STRIP" >&6
|
---|
1751 | else
|
---|
1752 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1753 | echo "${ECHO_T}no" >&6
|
---|
1754 | fi
|
---|
1755 |
|
---|
1756 | STRIP=$ac_ct_STRIP
|
---|
1757 | else
|
---|
1758 | STRIP="$ac_cv_prog_STRIP"
|
---|
1759 | fi
|
---|
1760 |
|
---|
1761 | fi
|
---|
1762 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
---|
1763 |
|
---|
1764 | # We need awk for the "check" target. The system "awk" is bad on
|
---|
1765 | # some platforms.
|
---|
1766 |
|
---|
1767 |
|
---|
1768 |
|
---|
1769 |
|
---|
1770 | # Checks for programs.
|
---|
1771 | ac_ext=c
|
---|
1772 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1776 | if test -n "$ac_tool_prefix"; then
|
---|
1777 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1778 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1779 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1781 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1782 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1783 | else
|
---|
1784 | if test -n "$CC"; then
|
---|
1785 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1786 | else
|
---|
1787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1788 | for as_dir in $PATH
|
---|
1789 | do
|
---|
1790 | IFS=$as_save_IFS
|
---|
1791 | test -z "$as_dir" && as_dir=.
|
---|
1792 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1794 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1796 | break 2
|
---|
1797 | fi
|
---|
1798 | done
|
---|
1799 | done
|
---|
1800 |
|
---|
1801 | fi
|
---|
1802 | fi
|
---|
1803 | CC=$ac_cv_prog_CC
|
---|
1804 | if test -n "$CC"; then
|
---|
1805 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1806 | echo "${ECHO_T}$CC" >&6
|
---|
1807 | else
|
---|
1808 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1809 | echo "${ECHO_T}no" >&6
|
---|
1810 | fi
|
---|
1811 |
|
---|
1812 | fi
|
---|
1813 | if test -z "$ac_cv_prog_CC"; then
|
---|
1814 | ac_ct_CC=$CC
|
---|
1815 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1816 | set dummy gcc; ac_word=$2
|
---|
1817 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1819 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1820 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1821 | else
|
---|
1822 | if test -n "$ac_ct_CC"; then
|
---|
1823 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1824 | else
|
---|
1825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1826 | for as_dir in $PATH
|
---|
1827 | do
|
---|
1828 | IFS=$as_save_IFS
|
---|
1829 | test -z "$as_dir" && as_dir=.
|
---|
1830 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1832 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1834 | break 2
|
---|
1835 | fi
|
---|
1836 | done
|
---|
1837 | done
|
---|
1838 |
|
---|
1839 | fi
|
---|
1840 | fi
|
---|
1841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1842 | if test -n "$ac_ct_CC"; then
|
---|
1843 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1844 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1845 | else
|
---|
1846 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1847 | echo "${ECHO_T}no" >&6
|
---|
1848 | fi
|
---|
1849 |
|
---|
1850 | CC=$ac_ct_CC
|
---|
1851 | else
|
---|
1852 | CC="$ac_cv_prog_CC"
|
---|
1853 | fi
|
---|
1854 |
|
---|
1855 | if test -z "$CC"; then
|
---|
1856 | if test -n "$ac_tool_prefix"; then
|
---|
1857 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1858 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1859 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1861 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1862 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1863 | else
|
---|
1864 | if test -n "$CC"; then
|
---|
1865 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1866 | else
|
---|
1867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1868 | for as_dir in $PATH
|
---|
1869 | do
|
---|
1870 | IFS=$as_save_IFS
|
---|
1871 | test -z "$as_dir" && as_dir=.
|
---|
1872 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1874 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1876 | break 2
|
---|
1877 | fi
|
---|
1878 | done
|
---|
1879 | done
|
---|
1880 |
|
---|
1881 | fi
|
---|
1882 | fi
|
---|
1883 | CC=$ac_cv_prog_CC
|
---|
1884 | if test -n "$CC"; then
|
---|
1885 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1886 | echo "${ECHO_T}$CC" >&6
|
---|
1887 | else
|
---|
1888 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1889 | echo "${ECHO_T}no" >&6
|
---|
1890 | fi
|
---|
1891 |
|
---|
1892 | fi
|
---|
1893 | if test -z "$ac_cv_prog_CC"; then
|
---|
1894 | ac_ct_CC=$CC
|
---|
1895 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1896 | set dummy cc; ac_word=$2
|
---|
1897 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1899 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1901 | else
|
---|
1902 | if test -n "$ac_ct_CC"; then
|
---|
1903 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1904 | else
|
---|
1905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1906 | for as_dir in $PATH
|
---|
1907 | do
|
---|
1908 | IFS=$as_save_IFS
|
---|
1909 | test -z "$as_dir" && as_dir=.
|
---|
1910 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1912 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1914 | break 2
|
---|
1915 | fi
|
---|
1916 | done
|
---|
1917 | done
|
---|
1918 |
|
---|
1919 | fi
|
---|
1920 | fi
|
---|
1921 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1922 | if test -n "$ac_ct_CC"; then
|
---|
1923 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1924 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1925 | else
|
---|
1926 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1927 | echo "${ECHO_T}no" >&6
|
---|
1928 | fi
|
---|
1929 |
|
---|
1930 | CC=$ac_ct_CC
|
---|
1931 | else
|
---|
1932 | CC="$ac_cv_prog_CC"
|
---|
1933 | fi
|
---|
1934 |
|
---|
1935 | fi
|
---|
1936 | if test -z "$CC"; then
|
---|
1937 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1938 | set dummy cc; ac_word=$2
|
---|
1939 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1941 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1942 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1943 | else
|
---|
1944 | if test -n "$CC"; then
|
---|
1945 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1946 | else
|
---|
1947 | ac_prog_rejected=no
|
---|
1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1949 | for as_dir in $PATH
|
---|
1950 | do
|
---|
1951 | IFS=$as_save_IFS
|
---|
1952 | test -z "$as_dir" && as_dir=.
|
---|
1953 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1955 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1956 | ac_prog_rejected=yes
|
---|
1957 | continue
|
---|
1958 | fi
|
---|
1959 | ac_cv_prog_CC="cc"
|
---|
1960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1961 | break 2
|
---|
1962 | fi
|
---|
1963 | done
|
---|
1964 | done
|
---|
1965 |
|
---|
1966 | if test $ac_prog_rejected = yes; then
|
---|
1967 | # We found a bogon in the path, so make sure we never use it.
|
---|
1968 | set dummy $ac_cv_prog_CC
|
---|
1969 | shift
|
---|
1970 | if test $# != 0; then
|
---|
1971 | # We chose a different compiler from the bogus one.
|
---|
1972 | # However, it has the same basename, so the bogon will be chosen
|
---|
1973 | # first if we set CC to just the basename; use the full file name.
|
---|
1974 | shift
|
---|
1975 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1976 | fi
|
---|
1977 | fi
|
---|
1978 | fi
|
---|
1979 | fi
|
---|
1980 | CC=$ac_cv_prog_CC
|
---|
1981 | if test -n "$CC"; then
|
---|
1982 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1983 | echo "${ECHO_T}$CC" >&6
|
---|
1984 | else
|
---|
1985 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1986 | echo "${ECHO_T}no" >&6
|
---|
1987 | fi
|
---|
1988 |
|
---|
1989 | fi
|
---|
1990 | if test -z "$CC"; then
|
---|
1991 | if test -n "$ac_tool_prefix"; then
|
---|
1992 | for ac_prog in cl
|
---|
1993 | do
|
---|
1994 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1995 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1996 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1998 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1999 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2000 | else
|
---|
2001 | if test -n "$CC"; then
|
---|
2002 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2003 | else
|
---|
2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2005 | for as_dir in $PATH
|
---|
2006 | do
|
---|
2007 | IFS=$as_save_IFS
|
---|
2008 | test -z "$as_dir" && as_dir=.
|
---|
2009 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2011 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2013 | break 2
|
---|
2014 | fi
|
---|
2015 | done
|
---|
2016 | done
|
---|
2017 |
|
---|
2018 | fi
|
---|
2019 | fi
|
---|
2020 | CC=$ac_cv_prog_CC
|
---|
2021 | if test -n "$CC"; then
|
---|
2022 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2023 | echo "${ECHO_T}$CC" >&6
|
---|
2024 | else
|
---|
2025 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2026 | echo "${ECHO_T}no" >&6
|
---|
2027 | fi
|
---|
2028 |
|
---|
2029 | test -n "$CC" && break
|
---|
2030 | done
|
---|
2031 | fi
|
---|
2032 | if test -z "$CC"; then
|
---|
2033 | ac_ct_CC=$CC
|
---|
2034 | for ac_prog in cl
|
---|
2035 | do
|
---|
2036 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2037 | set dummy $ac_prog; ac_word=$2
|
---|
2038 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2041 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2042 | else
|
---|
2043 | if test -n "$ac_ct_CC"; then
|
---|
2044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2045 | else
|
---|
2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2047 | for as_dir in $PATH
|
---|
2048 | do
|
---|
2049 | IFS=$as_save_IFS
|
---|
2050 | test -z "$as_dir" && as_dir=.
|
---|
2051 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2053 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2055 | break 2
|
---|
2056 | fi
|
---|
2057 | done
|
---|
2058 | done
|
---|
2059 |
|
---|
2060 | fi
|
---|
2061 | fi
|
---|
2062 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2063 | if test -n "$ac_ct_CC"; then
|
---|
2064 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2065 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
2066 | else
|
---|
2067 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2068 | echo "${ECHO_T}no" >&6
|
---|
2069 | fi
|
---|
2070 |
|
---|
2071 | test -n "$ac_ct_CC" && break
|
---|
2072 | done
|
---|
2073 |
|
---|
2074 | CC=$ac_ct_CC
|
---|
2075 | fi
|
---|
2076 |
|
---|
2077 | fi
|
---|
2078 |
|
---|
2079 |
|
---|
2080 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
2081 | See \`config.log' for more details." >&5
|
---|
2082 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
2083 | See \`config.log' for more details." >&2;}
|
---|
2084 | { (exit 1); exit 1; }; }
|
---|
2085 |
|
---|
2086 | # Provide some information about the compiler.
|
---|
2087 | echo "$as_me:$LINENO:" \
|
---|
2088 | "checking for C compiler version" >&5
|
---|
2089 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2090 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2091 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2092 | ac_status=$?
|
---|
2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2094 | (exit $ac_status); }
|
---|
2095 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2096 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2097 | ac_status=$?
|
---|
2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2099 | (exit $ac_status); }
|
---|
2100 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2101 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2102 | ac_status=$?
|
---|
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2104 | (exit $ac_status); }
|
---|
2105 |
|
---|
2106 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2107 | /* confdefs.h. */
|
---|
2108 | _ACEOF
|
---|
2109 | cat confdefs.h >>conftest.$ac_ext
|
---|
2110 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2111 | /* end confdefs.h. */
|
---|
2112 |
|
---|
2113 | int
|
---|
2114 | main ()
|
---|
2115 | {
|
---|
2116 |
|
---|
2117 | ;
|
---|
2118 | return 0;
|
---|
2119 | }
|
---|
2120 | _ACEOF
|
---|
2121 | ac_clean_files_save=$ac_clean_files
|
---|
2122 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
2123 | # Try to create an executable without -o first, disregard a.out.
|
---|
2124 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2125 | # of exeext.
|
---|
2126 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
2127 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
2128 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2129 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
2130 | (eval $ac_link_default) 2>&5
|
---|
2131 | ac_status=$?
|
---|
2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2133 | (exit $ac_status); }; then
|
---|
2134 | # Find the output, starting from the most likely. This scheme is
|
---|
2135 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
2136 | # resort.
|
---|
2137 |
|
---|
2138 | # Be careful to initialize this variable, since it used to be cached.
|
---|
2139 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
2140 | ac_cv_exeext=
|
---|
2141 | # b.out is created by i960 compilers.
|
---|
2142 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
2143 | do
|
---|
2144 | test -f "$ac_file" || continue
|
---|
2145 | case $ac_file in
|
---|
2146 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
2147 | ;;
|
---|
2148 | conftest.$ac_ext )
|
---|
2149 | # This is the source file.
|
---|
2150 | ;;
|
---|
2151 | [ab].out )
|
---|
2152 | # We found the default executable, but exeext='' is most
|
---|
2153 | # certainly right.
|
---|
2154 | break;;
|
---|
2155 | *.* )
|
---|
2156 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2157 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
2158 | # but it would be cool to find out if it's true. Does anybody
|
---|
2159 | # maintain Libtool? --akim.
|
---|
2160 | export ac_cv_exeext
|
---|
2161 | break;;
|
---|
2162 | * )
|
---|
2163 | break;;
|
---|
2164 | esac
|
---|
2165 | done
|
---|
2166 | else
|
---|
2167 | echo "$as_me: failed program was:" >&5
|
---|
2168 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2169 |
|
---|
2170 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
2171 | See \`config.log' for more details." >&5
|
---|
2172 | echo "$as_me: error: C compiler cannot create executables
|
---|
2173 | See \`config.log' for more details." >&2;}
|
---|
2174 | { (exit 77); exit 77; }; }
|
---|
2175 | fi
|
---|
2176 |
|
---|
2177 | ac_exeext=$ac_cv_exeext
|
---|
2178 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
2179 | echo "${ECHO_T}$ac_file" >&6
|
---|
2180 |
|
---|
2181 | # Check the compiler produces executables we can run. If not, either
|
---|
2182 | # the compiler is broken, or we cross compile.
|
---|
2183 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
2184 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
2185 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
2186 | # If not cross compiling, check that we can run a simple program.
|
---|
2187 | if test "$cross_compiling" != yes; then
|
---|
2188 | if { ac_try='./$ac_file'
|
---|
2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2190 | (eval $ac_try) 2>&5
|
---|
2191 | ac_status=$?
|
---|
2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2193 | (exit $ac_status); }; }; then
|
---|
2194 | cross_compiling=no
|
---|
2195 | else
|
---|
2196 | if test "$cross_compiling" = maybe; then
|
---|
2197 | cross_compiling=yes
|
---|
2198 | else
|
---|
2199 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
2200 | If you meant to cross compile, use \`--host'.
|
---|
2201 | See \`config.log' for more details." >&5
|
---|
2202 | echo "$as_me: error: cannot run C compiled programs.
|
---|
2203 | If you meant to cross compile, use \`--host'.
|
---|
2204 | See \`config.log' for more details." >&2;}
|
---|
2205 | { (exit 1); exit 1; }; }
|
---|
2206 | fi
|
---|
2207 | fi
|
---|
2208 | fi
|
---|
2209 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
2210 | echo "${ECHO_T}yes" >&6
|
---|
2211 |
|
---|
2212 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
2213 | ac_clean_files=$ac_clean_files_save
|
---|
2214 | # Check the compiler produces executables we can run. If not, either
|
---|
2215 | # the compiler is broken, or we cross compile.
|
---|
2216 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2217 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
2218 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2219 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
2220 |
|
---|
2221 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2222 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
2223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
2224 | (eval $ac_link) 2>&5
|
---|
2225 | ac_status=$?
|
---|
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2227 | (exit $ac_status); }; then
|
---|
2228 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2229 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2230 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2231 | # `rm'.
|
---|
2232 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2233 | test -f "$ac_file" || continue
|
---|
2234 | case $ac_file in
|
---|
2235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
2236 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2237 | export ac_cv_exeext
|
---|
2238 | break;;
|
---|
2239 | * ) break;;
|
---|
2240 | esac
|
---|
2241 | done
|
---|
2242 | else
|
---|
2243 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2244 | See \`config.log' for more details." >&5
|
---|
2245 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2246 | See \`config.log' for more details." >&2;}
|
---|
2247 | { (exit 1); exit 1; }; }
|
---|
2248 | fi
|
---|
2249 |
|
---|
2250 | rm -f conftest$ac_cv_exeext
|
---|
2251 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2252 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
2253 |
|
---|
2254 | rm -f conftest.$ac_ext
|
---|
2255 | EXEEXT=$ac_cv_exeext
|
---|
2256 | ac_exeext=$EXEEXT
|
---|
2257 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2258 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
2259 | if test "${ac_cv_objext+set}" = set; then
|
---|
2260 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2261 | else
|
---|
2262 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2263 | /* confdefs.h. */
|
---|
2264 | _ACEOF
|
---|
2265 | cat confdefs.h >>conftest.$ac_ext
|
---|
2266 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2267 | /* end confdefs.h. */
|
---|
2268 |
|
---|
2269 | int
|
---|
2270 | main ()
|
---|
2271 | {
|
---|
2272 |
|
---|
2273 | ;
|
---|
2274 | return 0;
|
---|
2275 | }
|
---|
2276 | _ACEOF
|
---|
2277 | rm -f conftest.o conftest.obj
|
---|
2278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2279 | (eval $ac_compile) 2>&5
|
---|
2280 | ac_status=$?
|
---|
2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2282 | (exit $ac_status); }; then
|
---|
2283 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
2284 | case $ac_file in
|
---|
2285 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
2286 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2287 | break;;
|
---|
2288 | esac
|
---|
2289 | done
|
---|
2290 | else
|
---|
2291 | echo "$as_me: failed program was:" >&5
|
---|
2292 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2293 |
|
---|
2294 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2295 | See \`config.log' for more details." >&5
|
---|
2296 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2297 | See \`config.log' for more details." >&2;}
|
---|
2298 | { (exit 1); exit 1; }; }
|
---|
2299 | fi
|
---|
2300 |
|
---|
2301 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2302 | fi
|
---|
2303 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2304 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
2305 | OBJEXT=$ac_cv_objext
|
---|
2306 | ac_objext=$OBJEXT
|
---|
2307 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2308 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
2309 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2310 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2311 | else
|
---|
2312 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2313 | /* confdefs.h. */
|
---|
2314 | _ACEOF
|
---|
2315 | cat confdefs.h >>conftest.$ac_ext
|
---|
2316 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2317 | /* end confdefs.h. */
|
---|
2318 |
|
---|
2319 | int
|
---|
2320 | main ()
|
---|
2321 | {
|
---|
2322 | #ifndef __GNUC__
|
---|
2323 | choke me
|
---|
2324 | #endif
|
---|
2325 |
|
---|
2326 | ;
|
---|
2327 | return 0;
|
---|
2328 | }
|
---|
2329 | _ACEOF
|
---|
2330 | rm -f conftest.$ac_objext
|
---|
2331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2332 | (eval $ac_compile) 2>conftest.er1
|
---|
2333 | ac_status=$?
|
---|
2334 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2335 | rm -f conftest.er1
|
---|
2336 | cat conftest.err >&5
|
---|
2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2338 | (exit $ac_status); } &&
|
---|
2339 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2340 | || test ! -s conftest.err'
|
---|
2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2342 | (eval $ac_try) 2>&5
|
---|
2343 | ac_status=$?
|
---|
2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2345 | (exit $ac_status); }; } &&
|
---|
2346 | { ac_try='test -s conftest.$ac_objext'
|
---|
2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2348 | (eval $ac_try) 2>&5
|
---|
2349 | ac_status=$?
|
---|
2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2351 | (exit $ac_status); }; }; then
|
---|
2352 | ac_compiler_gnu=yes
|
---|
2353 | else
|
---|
2354 | echo "$as_me: failed program was:" >&5
|
---|
2355 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2356 |
|
---|
2357 | ac_compiler_gnu=no
|
---|
2358 | fi
|
---|
2359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2360 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2361 |
|
---|
2362 | fi
|
---|
2363 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2364 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2365 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2366 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2367 | ac_save_CFLAGS=$CFLAGS
|
---|
2368 | CFLAGS="-g"
|
---|
2369 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2370 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2371 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2372 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2373 | else
|
---|
2374 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2375 | /* confdefs.h. */
|
---|
2376 | _ACEOF
|
---|
2377 | cat confdefs.h >>conftest.$ac_ext
|
---|
2378 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2379 | /* end confdefs.h. */
|
---|
2380 |
|
---|
2381 | int
|
---|
2382 | main ()
|
---|
2383 | {
|
---|
2384 |
|
---|
2385 | ;
|
---|
2386 | return 0;
|
---|
2387 | }
|
---|
2388 | _ACEOF
|
---|
2389 | rm -f conftest.$ac_objext
|
---|
2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2391 | (eval $ac_compile) 2>conftest.er1
|
---|
2392 | ac_status=$?
|
---|
2393 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2394 | rm -f conftest.er1
|
---|
2395 | cat conftest.err >&5
|
---|
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2397 | (exit $ac_status); } &&
|
---|
2398 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2399 | || test ! -s conftest.err'
|
---|
2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2401 | (eval $ac_try) 2>&5
|
---|
2402 | ac_status=$?
|
---|
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2404 | (exit $ac_status); }; } &&
|
---|
2405 | { ac_try='test -s conftest.$ac_objext'
|
---|
2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2407 | (eval $ac_try) 2>&5
|
---|
2408 | ac_status=$?
|
---|
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2410 | (exit $ac_status); }; }; then
|
---|
2411 | ac_cv_prog_cc_g=yes
|
---|
2412 | else
|
---|
2413 | echo "$as_me: failed program was:" >&5
|
---|
2414 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2415 |
|
---|
2416 | ac_cv_prog_cc_g=no
|
---|
2417 | fi
|
---|
2418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2419 | fi
|
---|
2420 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2421 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2422 | if test "$ac_test_CFLAGS" = set; then
|
---|
2423 | CFLAGS=$ac_save_CFLAGS
|
---|
2424 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2425 | if test "$GCC" = yes; then
|
---|
2426 | CFLAGS="-g -O2"
|
---|
2427 | else
|
---|
2428 | CFLAGS="-g"
|
---|
2429 | fi
|
---|
2430 | else
|
---|
2431 | if test "$GCC" = yes; then
|
---|
2432 | CFLAGS="-O2"
|
---|
2433 | else
|
---|
2434 | CFLAGS=
|
---|
2435 | fi
|
---|
2436 | fi
|
---|
2437 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2438 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2439 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2440 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2441 | else
|
---|
2442 | ac_cv_prog_cc_stdc=no
|
---|
2443 | ac_save_CC=$CC
|
---|
2444 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2445 | /* confdefs.h. */
|
---|
2446 | _ACEOF
|
---|
2447 | cat confdefs.h >>conftest.$ac_ext
|
---|
2448 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2449 | /* end confdefs.h. */
|
---|
2450 | #include <stdarg.h>
|
---|
2451 | #include <stdio.h>
|
---|
2452 | #include <sys/types.h>
|
---|
2453 | #include <sys/stat.h>
|
---|
2454 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2455 | struct buf { int x; };
|
---|
2456 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2457 | static char *e (p, i)
|
---|
2458 | char **p;
|
---|
2459 | int i;
|
---|
2460 | {
|
---|
2461 | return p[i];
|
---|
2462 | }
|
---|
2463 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2464 | {
|
---|
2465 | char *s;
|
---|
2466 | va_list v;
|
---|
2467 | va_start (v,p);
|
---|
2468 | s = g (p, va_arg (v,int));
|
---|
2469 | va_end (v);
|
---|
2470 | return s;
|
---|
2471 | }
|
---|
2472 |
|
---|
2473 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2474 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2475 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2476 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2477 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2478 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2479 | that's true only with -std1. */
|
---|
2480 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2481 |
|
---|
2482 | int test (int i, double x);
|
---|
2483 | struct s1 {int (*f) (int a);};
|
---|
2484 | struct s2 {int (*f) (double a);};
|
---|
2485 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2486 | int argc;
|
---|
2487 | char **argv;
|
---|
2488 | int
|
---|
2489 | main ()
|
---|
2490 | {
|
---|
2491 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2492 | ;
|
---|
2493 | return 0;
|
---|
2494 | }
|
---|
2495 | _ACEOF
|
---|
2496 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2497 | # breaks some systems' header files.
|
---|
2498 | # AIX -qlanglvl=ansi
|
---|
2499 | # Ultrix and OSF/1 -std1
|
---|
2500 | # HP-UX 10.20 and later -Ae
|
---|
2501 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2502 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2503 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2504 | do
|
---|
2505 | CC="$ac_save_CC $ac_arg"
|
---|
2506 | rm -f conftest.$ac_objext
|
---|
2507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2508 | (eval $ac_compile) 2>conftest.er1
|
---|
2509 | ac_status=$?
|
---|
2510 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2511 | rm -f conftest.er1
|
---|
2512 | cat conftest.err >&5
|
---|
2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2514 | (exit $ac_status); } &&
|
---|
2515 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2516 | || test ! -s conftest.err'
|
---|
2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2518 | (eval $ac_try) 2>&5
|
---|
2519 | ac_status=$?
|
---|
2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2521 | (exit $ac_status); }; } &&
|
---|
2522 | { ac_try='test -s conftest.$ac_objext'
|
---|
2523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2524 | (eval $ac_try) 2>&5
|
---|
2525 | ac_status=$?
|
---|
2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2527 | (exit $ac_status); }; }; then
|
---|
2528 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2529 | break
|
---|
2530 | else
|
---|
2531 | echo "$as_me: failed program was:" >&5
|
---|
2532 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2533 |
|
---|
2534 | fi
|
---|
2535 | rm -f conftest.err conftest.$ac_objext
|
---|
2536 | done
|
---|
2537 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2538 | CC=$ac_save_CC
|
---|
2539 |
|
---|
2540 | fi
|
---|
2541 |
|
---|
2542 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2543 | x|xno)
|
---|
2544 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2545 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2546 | *)
|
---|
2547 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2548 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2549 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2550 | esac
|
---|
2551 |
|
---|
2552 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2553 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2554 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2555 | # the declaration of exit, since it's the most demanding environment.
|
---|
2556 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2557 | #ifndef __cplusplus
|
---|
2558 | choke me
|
---|
2559 | #endif
|
---|
2560 | _ACEOF
|
---|
2561 | rm -f conftest.$ac_objext
|
---|
2562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2563 | (eval $ac_compile) 2>conftest.er1
|
---|
2564 | ac_status=$?
|
---|
2565 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2566 | rm -f conftest.er1
|
---|
2567 | cat conftest.err >&5
|
---|
2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2569 | (exit $ac_status); } &&
|
---|
2570 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2571 | || test ! -s conftest.err'
|
---|
2572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2573 | (eval $ac_try) 2>&5
|
---|
2574 | ac_status=$?
|
---|
2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2576 | (exit $ac_status); }; } &&
|
---|
2577 | { ac_try='test -s conftest.$ac_objext'
|
---|
2578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2579 | (eval $ac_try) 2>&5
|
---|
2580 | ac_status=$?
|
---|
2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2582 | (exit $ac_status); }; }; then
|
---|
2583 | for ac_declaration in \
|
---|
2584 | '' \
|
---|
2585 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2586 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2587 | 'extern "C" void exit (int) throw ();' \
|
---|
2588 | 'extern "C" void exit (int);' \
|
---|
2589 | 'void exit (int);'
|
---|
2590 | do
|
---|
2591 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2592 | /* confdefs.h. */
|
---|
2593 | _ACEOF
|
---|
2594 | cat confdefs.h >>conftest.$ac_ext
|
---|
2595 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2596 | /* end confdefs.h. */
|
---|
2597 | $ac_declaration
|
---|
2598 | #include <stdlib.h>
|
---|
2599 | int
|
---|
2600 | main ()
|
---|
2601 | {
|
---|
2602 | exit (42);
|
---|
2603 | ;
|
---|
2604 | return 0;
|
---|
2605 | }
|
---|
2606 | _ACEOF
|
---|
2607 | rm -f conftest.$ac_objext
|
---|
2608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2609 | (eval $ac_compile) 2>conftest.er1
|
---|
2610 | ac_status=$?
|
---|
2611 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2612 | rm -f conftest.er1
|
---|
2613 | cat conftest.err >&5
|
---|
2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2615 | (exit $ac_status); } &&
|
---|
2616 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2617 | || test ! -s conftest.err'
|
---|
2618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2619 | (eval $ac_try) 2>&5
|
---|
2620 | ac_status=$?
|
---|
2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2622 | (exit $ac_status); }; } &&
|
---|
2623 | { ac_try='test -s conftest.$ac_objext'
|
---|
2624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2625 | (eval $ac_try) 2>&5
|
---|
2626 | ac_status=$?
|
---|
2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2628 | (exit $ac_status); }; }; then
|
---|
2629 | :
|
---|
2630 | else
|
---|
2631 | echo "$as_me: failed program was:" >&5
|
---|
2632 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2633 |
|
---|
2634 | continue
|
---|
2635 | fi
|
---|
2636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2637 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2638 | /* confdefs.h. */
|
---|
2639 | _ACEOF
|
---|
2640 | cat confdefs.h >>conftest.$ac_ext
|
---|
2641 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2642 | /* end confdefs.h. */
|
---|
2643 | $ac_declaration
|
---|
2644 | int
|
---|
2645 | main ()
|
---|
2646 | {
|
---|
2647 | exit (42);
|
---|
2648 | ;
|
---|
2649 | return 0;
|
---|
2650 | }
|
---|
2651 | _ACEOF
|
---|
2652 | rm -f conftest.$ac_objext
|
---|
2653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2654 | (eval $ac_compile) 2>conftest.er1
|
---|
2655 | ac_status=$?
|
---|
2656 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2657 | rm -f conftest.er1
|
---|
2658 | cat conftest.err >&5
|
---|
2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2660 | (exit $ac_status); } &&
|
---|
2661 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2662 | || test ! -s conftest.err'
|
---|
2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2664 | (eval $ac_try) 2>&5
|
---|
2665 | ac_status=$?
|
---|
2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2667 | (exit $ac_status); }; } &&
|
---|
2668 | { ac_try='test -s conftest.$ac_objext'
|
---|
2669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2670 | (eval $ac_try) 2>&5
|
---|
2671 | ac_status=$?
|
---|
2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2673 | (exit $ac_status); }; }; then
|
---|
2674 | break
|
---|
2675 | else
|
---|
2676 | echo "$as_me: failed program was:" >&5
|
---|
2677 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2678 |
|
---|
2679 | fi
|
---|
2680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2681 | done
|
---|
2682 | rm -f conftest*
|
---|
2683 | if test -n "$ac_declaration"; then
|
---|
2684 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2685 | echo $ac_declaration >>confdefs.h
|
---|
2686 | echo '#endif' >>confdefs.h
|
---|
2687 | fi
|
---|
2688 |
|
---|
2689 | else
|
---|
2690 | echo "$as_me: failed program was:" >&5
|
---|
2691 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2692 |
|
---|
2693 | fi
|
---|
2694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2695 | ac_ext=c
|
---|
2696 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2700 | DEPDIR="${am__leading_dot}deps"
|
---|
2701 |
|
---|
2702 | ac_config_commands="$ac_config_commands depfiles"
|
---|
2703 |
|
---|
2704 |
|
---|
2705 | am_make=${MAKE-make}
|
---|
2706 | cat > confinc << 'END'
|
---|
2707 | am__doit:
|
---|
2708 | @echo done
|
---|
2709 | .PHONY: am__doit
|
---|
2710 | END
|
---|
2711 | # If we don't find an include directive, just comment out the code.
|
---|
2712 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
---|
2713 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
|
---|
2714 | am__include="#"
|
---|
2715 | am__quote=
|
---|
2716 | _am_result=none
|
---|
2717 | # First try GNU make style include.
|
---|
2718 | echo "include confinc" > confmf
|
---|
2719 | # We grep out `Entering directory' and `Leaving directory'
|
---|
2720 | # messages which can occur if `w' ends up in MAKEFLAGS.
|
---|
2721 | # In particular we don't look at `^make:' because GNU make might
|
---|
2722 | # be invoked under some other name (usually "gmake"), in which
|
---|
2723 | # case it prints its new name instead of `make'.
|
---|
2724 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
---|
2725 | am__include=include
|
---|
2726 | am__quote=
|
---|
2727 | _am_result=GNU
|
---|
2728 | fi
|
---|
2729 | # Now try BSD make style include.
|
---|
2730 | if test "$am__include" = "#"; then
|
---|
2731 | echo '.include "confinc"' > confmf
|
---|
2732 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
---|
2733 | am__include=.include
|
---|
2734 | am__quote="\""
|
---|
2735 | _am_result=BSD
|
---|
2736 | fi
|
---|
2737 | fi
|
---|
2738 |
|
---|
2739 |
|
---|
2740 | echo "$as_me:$LINENO: result: $_am_result" >&5
|
---|
2741 | echo "${ECHO_T}$_am_result" >&6
|
---|
2742 | rm -f confinc confmf
|
---|
2743 |
|
---|
2744 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
|
---|
2745 | if test "${enable_dependency_tracking+set}" = set; then
|
---|
2746 | enableval="$enable_dependency_tracking"
|
---|
2747 |
|
---|
2748 | fi;
|
---|
2749 | if test "x$enable_dependency_tracking" != xno; then
|
---|
2750 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
2751 | AMDEPBACKSLASH='\'
|
---|
2752 | fi
|
---|
2753 |
|
---|
2754 |
|
---|
2755 | if test "x$enable_dependency_tracking" != xno; then
|
---|
2756 | AMDEP_TRUE=
|
---|
2757 | AMDEP_FALSE='#'
|
---|
2758 | else
|
---|
2759 | AMDEP_TRUE='#'
|
---|
2760 | AMDEP_FALSE=
|
---|
2761 | fi
|
---|
2762 |
|
---|
2763 |
|
---|
2764 |
|
---|
2765 |
|
---|
2766 | depcc="$CC" am_compiler_list=
|
---|
2767 |
|
---|
2768 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
---|
2769 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
---|
2770 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
---|
2771 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2772 | else
|
---|
2773 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
2774 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
2775 | # making bogus files that we don't know about and never remove. For
|
---|
2776 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
2777 | # making a dummy file named `D' -- because `-MD' means `put the output
|
---|
2778 | # in D'.
|
---|
2779 | mkdir conftest.dir
|
---|
2780 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
2781 | # using a relative directory.
|
---|
2782 | cp "$am_depcomp" conftest.dir
|
---|
2783 | cd conftest.dir
|
---|
2784 | # We will build objects and dependencies in a subdirectory because
|
---|
2785 | # it helps to detect inapplicable dependency modes. For instance
|
---|
2786 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
2787 | # side effect of compilation, but ICC will put the dependencies in
|
---|
2788 | # the current directory while Tru64 will put them in the object
|
---|
2789 | # directory.
|
---|
2790 | mkdir sub
|
---|
2791 |
|
---|
2792 | am_cv_CC_dependencies_compiler_type=none
|
---|
2793 | if test "$am_compiler_list" = ""; then
|
---|
2794 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
2795 | fi
|
---|
2796 | for depmode in $am_compiler_list; do
|
---|
2797 | # Setup a source with many dependencies, because some compilers
|
---|
2798 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
2799 | # we should not choose a depcomp mode which is confused by this.
|
---|
2800 | #
|
---|
2801 | # We need to recreate these files for each test, as the compiler may
|
---|
2802 | # overwrite some of them when testing with obscure command lines.
|
---|
2803 | # This happens at least with the AIX C compiler.
|
---|
2804 | : > sub/conftest.c
|
---|
2805 | for i in 1 2 3 4 5 6; do
|
---|
2806 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
2807 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
---|
2808 | # Solaris 8's {/usr,}/bin/sh.
|
---|
2809 | touch sub/conftst$i.h
|
---|
2810 | done
|
---|
2811 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
2812 |
|
---|
2813 | case $depmode in
|
---|
2814 | nosideeffect)
|
---|
2815 | # after this tag, mechanisms are not by side-effect, so they'll
|
---|
2816 | # only be used when explicitly requested
|
---|
2817 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
2818 | continue
|
---|
2819 | else
|
---|
2820 | break
|
---|
2821 | fi
|
---|
2822 | ;;
|
---|
2823 | none) break ;;
|
---|
2824 | esac
|
---|
2825 | # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
---|
2826 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
2827 | # handle `-M -o', and we need to detect this.
|
---|
2828 | if depmode=$depmode \
|
---|
2829 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
---|
2830 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
2831 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
---|
2832 | >/dev/null 2>conftest.err &&
|
---|
2833 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
2834 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
---|
2835 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
2836 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
2837 | # (even with -Werror). So we grep stderr for any message
|
---|
2838 | # that says an option was ignored.
|
---|
2839 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
|
---|
2840 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
2841 | break
|
---|
2842 | fi
|
---|
2843 | fi
|
---|
2844 | done
|
---|
2845 |
|
---|
2846 | cd ..
|
---|
2847 | rm -rf conftest.dir
|
---|
2848 | else
|
---|
2849 | am_cv_CC_dependencies_compiler_type=none
|
---|
2850 | fi
|
---|
2851 |
|
---|
2852 | fi
|
---|
2853 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
2854 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
|
---|
2855 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
2856 |
|
---|
2857 |
|
---|
2858 |
|
---|
2859 | if
|
---|
2860 | test "x$enable_dependency_tracking" != xno \
|
---|
2861 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
2862 | am__fastdepCC_TRUE=
|
---|
2863 | am__fastdepCC_FALSE='#'
|
---|
2864 | else
|
---|
2865 | am__fastdepCC_TRUE='#'
|
---|
2866 | am__fastdepCC_FALSE=
|
---|
2867 | fi
|
---|
2868 |
|
---|
2869 |
|
---|
2870 | # Find a good install program. We prefer a C program (faster),
|
---|
2871 | # so one script is as good as another. But avoid the broken or
|
---|
2872 | # incompatible versions:
|
---|
2873 | # SysV /etc/install, /usr/sbin/install
|
---|
2874 | # SunOS /usr/etc/install
|
---|
2875 | # IRIX /sbin/install
|
---|
2876 | # AIX /bin/install
|
---|
2877 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2878 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2879 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2880 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2881 | # OS/2's system install, which has a completely different semantic
|
---|
2882 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2883 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2884 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
2885 | if test -z "$INSTALL"; then
|
---|
2886 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2887 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2888 | else
|
---|
2889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2890 | for as_dir in $PATH
|
---|
2891 | do
|
---|
2892 | IFS=$as_save_IFS
|
---|
2893 | test -z "$as_dir" && as_dir=.
|
---|
2894 | # Account for people who put trailing slashes in PATH elements.
|
---|
2895 | case $as_dir/ in
|
---|
2896 | ./ | .// | /cC/* | \
|
---|
2897 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2898 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2899 | /usr/ucb/* ) ;;
|
---|
2900 | *)
|
---|
2901 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2902 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2903 | # by default.
|
---|
2904 | for ac_prog in ginstall scoinst install; do
|
---|
2905 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2906 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2907 | if test $ac_prog = install &&
|
---|
2908 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2909 | # AIX install. It has an incompatible calling convention.
|
---|
2910 | :
|
---|
2911 | elif test $ac_prog = install &&
|
---|
2912 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2913 | # program-specific install script used by HP pwplus--don't use.
|
---|
2914 | :
|
---|
2915 | else
|
---|
2916 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2917 | break 3
|
---|
2918 | fi
|
---|
2919 | fi
|
---|
2920 | done
|
---|
2921 | done
|
---|
2922 | ;;
|
---|
2923 | esac
|
---|
2924 | done
|
---|
2925 |
|
---|
2926 |
|
---|
2927 | fi
|
---|
2928 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2929 | INSTALL=$ac_cv_path_install
|
---|
2930 | else
|
---|
2931 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2932 | # path for INSTALL within a source directory, because that will
|
---|
2933 | # break other packages using the cache if that directory is
|
---|
2934 | # removed, or if the path is relative.
|
---|
2935 | INSTALL=$ac_install_sh
|
---|
2936 | fi
|
---|
2937 | fi
|
---|
2938 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
2939 | echo "${ECHO_T}$INSTALL" >&6
|
---|
2940 |
|
---|
2941 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2942 | # It thinks the first close brace ends the variable substitution.
|
---|
2943 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2944 |
|
---|
2945 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2946 |
|
---|
2947 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2948 |
|
---|
2949 | if test -n "$ac_tool_prefix"; then
|
---|
2950 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
2951 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
2952 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2954 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
2955 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2956 | else
|
---|
2957 | if test -n "$RANLIB"; then
|
---|
2958 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2959 | else
|
---|
2960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2961 | for as_dir in $PATH
|
---|
2962 | do
|
---|
2963 | IFS=$as_save_IFS
|
---|
2964 | test -z "$as_dir" && as_dir=.
|
---|
2965 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2967 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2969 | break 2
|
---|
2970 | fi
|
---|
2971 | done
|
---|
2972 | done
|
---|
2973 |
|
---|
2974 | fi
|
---|
2975 | fi
|
---|
2976 | RANLIB=$ac_cv_prog_RANLIB
|
---|
2977 | if test -n "$RANLIB"; then
|
---|
2978 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
2979 | echo "${ECHO_T}$RANLIB" >&6
|
---|
2980 | else
|
---|
2981 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2982 | echo "${ECHO_T}no" >&6
|
---|
2983 | fi
|
---|
2984 |
|
---|
2985 | fi
|
---|
2986 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2987 | ac_ct_RANLIB=$RANLIB
|
---|
2988 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2989 | set dummy ranlib; ac_word=$2
|
---|
2990 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2992 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
2993 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2994 | else
|
---|
2995 | if test -n "$ac_ct_RANLIB"; then
|
---|
2996 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
2997 | else
|
---|
2998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2999 | for as_dir in $PATH
|
---|
3000 | do
|
---|
3001 | IFS=$as_save_IFS
|
---|
3002 | test -z "$as_dir" && as_dir=.
|
---|
3003 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3004 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3005 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3007 | break 2
|
---|
3008 | fi
|
---|
3009 | done
|
---|
3010 | done
|
---|
3011 |
|
---|
3012 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
3013 | fi
|
---|
3014 | fi
|
---|
3015 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3016 | if test -n "$ac_ct_RANLIB"; then
|
---|
3017 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3018 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
3019 | else
|
---|
3020 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3021 | echo "${ECHO_T}no" >&6
|
---|
3022 | fi
|
---|
3023 |
|
---|
3024 | RANLIB=$ac_ct_RANLIB
|
---|
3025 | else
|
---|
3026 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3027 | fi
|
---|
3028 |
|
---|
3029 | ac_ext=c
|
---|
3030 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3034 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3035 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
3036 | # On Suns, sometimes $CPP names a directory.
|
---|
3037 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3038 | CPP=
|
---|
3039 | fi
|
---|
3040 | if test -z "$CPP"; then
|
---|
3041 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3042 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3043 | else
|
---|
3044 | # Double quotes because CPP needs to be expanded
|
---|
3045 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3046 | do
|
---|
3047 | ac_preproc_ok=false
|
---|
3048 | for ac_c_preproc_warn_flag in '' yes
|
---|
3049 | do
|
---|
3050 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3051 | # with a fresh cross-compiler works.
|
---|
3052 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3053 | # <limits.h> exists even on freestanding compilers.
|
---|
3054 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3055 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3056 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3057 | /* confdefs.h. */
|
---|
3058 | _ACEOF
|
---|
3059 | cat confdefs.h >>conftest.$ac_ext
|
---|
3060 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3061 | /* end confdefs.h. */
|
---|
3062 | #ifdef __STDC__
|
---|
3063 | # include <limits.h>
|
---|
3064 | #else
|
---|
3065 | # include <assert.h>
|
---|
3066 | #endif
|
---|
3067 | Syntax error
|
---|
3068 | _ACEOF
|
---|
3069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3071 | ac_status=$?
|
---|
3072 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3073 | rm -f conftest.er1
|
---|
3074 | cat conftest.err >&5
|
---|
3075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3076 | (exit $ac_status); } >/dev/null; then
|
---|
3077 | if test -s conftest.err; then
|
---|
3078 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3080 | else
|
---|
3081 | ac_cpp_err=
|
---|
3082 | fi
|
---|
3083 | else
|
---|
3084 | ac_cpp_err=yes
|
---|
3085 | fi
|
---|
3086 | if test -z "$ac_cpp_err"; then
|
---|
3087 | :
|
---|
3088 | else
|
---|
3089 | echo "$as_me: failed program was:" >&5
|
---|
3090 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3091 |
|
---|
3092 | # Broken: fails on valid input.
|
---|
3093 | continue
|
---|
3094 | fi
|
---|
3095 | rm -f conftest.err conftest.$ac_ext
|
---|
3096 |
|
---|
3097 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3098 | # can be detected and how.
|
---|
3099 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3100 | /* confdefs.h. */
|
---|
3101 | _ACEOF
|
---|
3102 | cat confdefs.h >>conftest.$ac_ext
|
---|
3103 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3104 | /* end confdefs.h. */
|
---|
3105 | #include <ac_nonexistent.h>
|
---|
3106 | _ACEOF
|
---|
3107 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3108 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3109 | ac_status=$?
|
---|
3110 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3111 | rm -f conftest.er1
|
---|
3112 | cat conftest.err >&5
|
---|
3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3114 | (exit $ac_status); } >/dev/null; then
|
---|
3115 | if test -s conftest.err; then
|
---|
3116 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3117 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3118 | else
|
---|
3119 | ac_cpp_err=
|
---|
3120 | fi
|
---|
3121 | else
|
---|
3122 | ac_cpp_err=yes
|
---|
3123 | fi
|
---|
3124 | if test -z "$ac_cpp_err"; then
|
---|
3125 | # Broken: success on invalid input.
|
---|
3126 | continue
|
---|
3127 | else
|
---|
3128 | echo "$as_me: failed program was:" >&5
|
---|
3129 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3130 |
|
---|
3131 | # Passes both tests.
|
---|
3132 | ac_preproc_ok=:
|
---|
3133 | break
|
---|
3134 | fi
|
---|
3135 | rm -f conftest.err conftest.$ac_ext
|
---|
3136 |
|
---|
3137 | done
|
---|
3138 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3139 | rm -f conftest.err conftest.$ac_ext
|
---|
3140 | if $ac_preproc_ok; then
|
---|
3141 | break
|
---|
3142 | fi
|
---|
3143 |
|
---|
3144 | done
|
---|
3145 | ac_cv_prog_CPP=$CPP
|
---|
3146 |
|
---|
3147 | fi
|
---|
3148 | CPP=$ac_cv_prog_CPP
|
---|
3149 | else
|
---|
3150 | ac_cv_prog_CPP=$CPP
|
---|
3151 | fi
|
---|
3152 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
3153 | echo "${ECHO_T}$CPP" >&6
|
---|
3154 | ac_preproc_ok=false
|
---|
3155 | for ac_c_preproc_warn_flag in '' yes
|
---|
3156 | do
|
---|
3157 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3158 | # with a fresh cross-compiler works.
|
---|
3159 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3160 | # <limits.h> exists even on freestanding compilers.
|
---|
3161 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3162 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3163 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3164 | /* confdefs.h. */
|
---|
3165 | _ACEOF
|
---|
3166 | cat confdefs.h >>conftest.$ac_ext
|
---|
3167 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3168 | /* end confdefs.h. */
|
---|
3169 | #ifdef __STDC__
|
---|
3170 | # include <limits.h>
|
---|
3171 | #else
|
---|
3172 | # include <assert.h>
|
---|
3173 | #endif
|
---|
3174 | Syntax error
|
---|
3175 | _ACEOF
|
---|
3176 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3177 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3178 | ac_status=$?
|
---|
3179 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3180 | rm -f conftest.er1
|
---|
3181 | cat conftest.err >&5
|
---|
3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3183 | (exit $ac_status); } >/dev/null; then
|
---|
3184 | if test -s conftest.err; then
|
---|
3185 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3186 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3187 | else
|
---|
3188 | ac_cpp_err=
|
---|
3189 | fi
|
---|
3190 | else
|
---|
3191 | ac_cpp_err=yes
|
---|
3192 | fi
|
---|
3193 | if test -z "$ac_cpp_err"; then
|
---|
3194 | :
|
---|
3195 | else
|
---|
3196 | echo "$as_me: failed program was:" >&5
|
---|
3197 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3198 |
|
---|
3199 | # Broken: fails on valid input.
|
---|
3200 | continue
|
---|
3201 | fi
|
---|
3202 | rm -f conftest.err conftest.$ac_ext
|
---|
3203 |
|
---|
3204 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3205 | # can be detected and how.
|
---|
3206 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3207 | /* confdefs.h. */
|
---|
3208 | _ACEOF
|
---|
3209 | cat confdefs.h >>conftest.$ac_ext
|
---|
3210 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3211 | /* end confdefs.h. */
|
---|
3212 | #include <ac_nonexistent.h>
|
---|
3213 | _ACEOF
|
---|
3214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3216 | ac_status=$?
|
---|
3217 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3218 | rm -f conftest.er1
|
---|
3219 | cat conftest.err >&5
|
---|
3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3221 | (exit $ac_status); } >/dev/null; then
|
---|
3222 | if test -s conftest.err; then
|
---|
3223 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3225 | else
|
---|
3226 | ac_cpp_err=
|
---|
3227 | fi
|
---|
3228 | else
|
---|
3229 | ac_cpp_err=yes
|
---|
3230 | fi
|
---|
3231 | if test -z "$ac_cpp_err"; then
|
---|
3232 | # Broken: success on invalid input.
|
---|
3233 | continue
|
---|
3234 | else
|
---|
3235 | echo "$as_me: failed program was:" >&5
|
---|
3236 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3237 |
|
---|
3238 | # Passes both tests.
|
---|
3239 | ac_preproc_ok=:
|
---|
3240 | break
|
---|
3241 | fi
|
---|
3242 | rm -f conftest.err conftest.$ac_ext
|
---|
3243 |
|
---|
3244 | done
|
---|
3245 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3246 | rm -f conftest.err conftest.$ac_ext
|
---|
3247 | if $ac_preproc_ok; then
|
---|
3248 | :
|
---|
3249 | else
|
---|
3250 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3251 | See \`config.log' for more details." >&5
|
---|
3252 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3253 | See \`config.log' for more details." >&2;}
|
---|
3254 | { (exit 1); exit 1; }; }
|
---|
3255 | fi
|
---|
3256 |
|
---|
3257 | ac_ext=c
|
---|
3258 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3262 |
|
---|
3263 | # Extract the first word of "ar", so it can be a program name with args.
|
---|
3264 | set dummy ar; ac_word=$2
|
---|
3265 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3267 | if test "${ac_cv_prog_AR+set}" = set; then
|
---|
3268 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3269 | else
|
---|
3270 | if test -n "$AR"; then
|
---|
3271 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
3272 | else
|
---|
3273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3274 | for as_dir in $PATH
|
---|
3275 | do
|
---|
3276 | IFS=$as_save_IFS
|
---|
3277 | test -z "$as_dir" && as_dir=.
|
---|
3278 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3280 | ac_cv_prog_AR="ar"
|
---|
3281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3282 | break 2
|
---|
3283 | fi
|
---|
3284 | done
|
---|
3285 | done
|
---|
3286 |
|
---|
3287 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
---|
3288 | fi
|
---|
3289 | fi
|
---|
3290 | AR=$ac_cv_prog_AR
|
---|
3291 | if test -n "$AR"; then
|
---|
3292 | echo "$as_me:$LINENO: result: $AR" >&5
|
---|
3293 | echo "${ECHO_T}$AR" >&6
|
---|
3294 | else
|
---|
3295 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3296 | echo "${ECHO_T}no" >&6
|
---|
3297 | fi
|
---|
3298 |
|
---|
3299 | # Perl is needed for the test suite (only)
|
---|
3300 | # Extract the first word of "perl", so it can be a program name with args.
|
---|
3301 | set dummy perl; ac_word=$2
|
---|
3302 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3304 | if test "${ac_cv_prog_PERL+set}" = set; then
|
---|
3305 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3306 | else
|
---|
3307 | if test -n "$PERL"; then
|
---|
3308 | ac_cv_prog_PERL="$PERL" # Let the user override the test.
|
---|
3309 | else
|
---|
3310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3311 | for as_dir in $PATH
|
---|
3312 | do
|
---|
3313 | IFS=$as_save_IFS
|
---|
3314 | test -z "$as_dir" && as_dir=.
|
---|
3315 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3317 | ac_cv_prog_PERL="perl"
|
---|
3318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3319 | break 2
|
---|
3320 | fi
|
---|
3321 | done
|
---|
3322 | done
|
---|
3323 |
|
---|
3324 | test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
|
---|
3325 | fi
|
---|
3326 | fi
|
---|
3327 | PERL=$ac_cv_prog_PERL
|
---|
3328 | if test -n "$PERL"; then
|
---|
3329 | echo "$as_me:$LINENO: result: $PERL" >&5
|
---|
3330 | echo "${ECHO_T}$PERL" >&6
|
---|
3331 | else
|
---|
3332 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3333 | echo "${ECHO_T}no" >&6
|
---|
3334 | fi
|
---|
3335 |
|
---|
3336 |
|
---|
3337 | # Specialized system macros
|
---|
3338 | # Make sure we can run config.sub.
|
---|
3339 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
3340 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
3341 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
3342 | { (exit 1); exit 1; }; }
|
---|
3343 |
|
---|
3344 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
3345 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
3346 | if test "${ac_cv_build+set}" = set; then
|
---|
3347 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3348 | else
|
---|
3349 | ac_cv_build_alias=$build_alias
|
---|
3350 | test -z "$ac_cv_build_alias" &&
|
---|
3351 | ac_cv_build_alias=`$ac_config_guess`
|
---|
3352 | test -z "$ac_cv_build_alias" &&
|
---|
3353 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
3354 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
3355 | { (exit 1); exit 1; }; }
|
---|
3356 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
3357 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
3358 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
3359 | { (exit 1); exit 1; }; }
|
---|
3360 |
|
---|
3361 | fi
|
---|
3362 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
3363 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
3364 | build=$ac_cv_build
|
---|
3365 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
3366 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
3367 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
3368 |
|
---|
3369 |
|
---|
3370 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
3371 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
3372 | if test "${ac_cv_host+set}" = set; then
|
---|
3373 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3374 | else
|
---|
3375 | ac_cv_host_alias=$host_alias
|
---|
3376 | test -z "$ac_cv_host_alias" &&
|
---|
3377 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
3378 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
3379 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
3380 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
3381 | { (exit 1); exit 1; }; }
|
---|
3382 |
|
---|
3383 | fi
|
---|
3384 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
3385 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
3386 | host=$ac_cv_host
|
---|
3387 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
3388 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
3389 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
3390 |
|
---|
3391 |
|
---|
3392 |
|
---|
3393 |
|
---|
3394 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3395 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
3396 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
3397 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3398 | else
|
---|
3399 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
3400 | then ac_cv_prog_egrep='grep -E'
|
---|
3401 | else ac_cv_prog_egrep='egrep'
|
---|
3402 | fi
|
---|
3403 | fi
|
---|
3404 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
3405 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
3406 | EGREP=$ac_cv_prog_egrep
|
---|
3407 |
|
---|
3408 |
|
---|
3409 |
|
---|
3410 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
3411 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
3412 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3413 | /* confdefs.h. */
|
---|
3414 | _ACEOF
|
---|
3415 | cat confdefs.h >>conftest.$ac_ext
|
---|
3416 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3417 | /* end confdefs.h. */
|
---|
3418 | #ifdef _AIX
|
---|
3419 | yes
|
---|
3420 | #endif
|
---|
3421 |
|
---|
3422 | _ACEOF
|
---|
3423 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3424 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
3425 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3426 | echo "${ECHO_T}yes" >&6
|
---|
3427 | cat >>confdefs.h <<\_ACEOF
|
---|
3428 | #define _ALL_SOURCE 1
|
---|
3429 | _ACEOF
|
---|
3430 |
|
---|
3431 | else
|
---|
3432 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3433 | echo "${ECHO_T}no" >&6
|
---|
3434 | fi
|
---|
3435 | rm -f conftest*
|
---|
3436 |
|
---|
3437 |
|
---|
3438 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
3439 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
3440 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
3441 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3442 | else
|
---|
3443 | ac_func_search_save_LIBS=$LIBS
|
---|
3444 | ac_cv_search_strerror=no
|
---|
3445 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3446 | /* confdefs.h. */
|
---|
3447 | _ACEOF
|
---|
3448 | cat confdefs.h >>conftest.$ac_ext
|
---|
3449 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3450 | /* end confdefs.h. */
|
---|
3451 |
|
---|
3452 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3453 | #ifdef __cplusplus
|
---|
3454 | extern "C"
|
---|
3455 | #endif
|
---|
3456 | /* We use char because int might match the return type of a gcc2
|
---|
3457 | builtin and then its argument prototype would still apply. */
|
---|
3458 | char strerror ();
|
---|
3459 | int
|
---|
3460 | main ()
|
---|
3461 | {
|
---|
3462 | strerror ();
|
---|
3463 | ;
|
---|
3464 | return 0;
|
---|
3465 | }
|
---|
3466 | _ACEOF
|
---|
3467 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3469 | (eval $ac_link) 2>conftest.er1
|
---|
3470 | ac_status=$?
|
---|
3471 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3472 | rm -f conftest.er1
|
---|
3473 | cat conftest.err >&5
|
---|
3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3475 | (exit $ac_status); } &&
|
---|
3476 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3477 | || test ! -s conftest.err'
|
---|
3478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3479 | (eval $ac_try) 2>&5
|
---|
3480 | ac_status=$?
|
---|
3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3482 | (exit $ac_status); }; } &&
|
---|
3483 | { ac_try='test -s conftest$ac_exeext'
|
---|
3484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3485 | (eval $ac_try) 2>&5
|
---|
3486 | ac_status=$?
|
---|
3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3488 | (exit $ac_status); }; }; then
|
---|
3489 | ac_cv_search_strerror="none required"
|
---|
3490 | else
|
---|
3491 | echo "$as_me: failed program was:" >&5
|
---|
3492 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3493 |
|
---|
3494 | fi
|
---|
3495 | rm -f conftest.err conftest.$ac_objext \
|
---|
3496 | conftest$ac_exeext conftest.$ac_ext
|
---|
3497 | if test "$ac_cv_search_strerror" = no; then
|
---|
3498 | for ac_lib in cposix; do
|
---|
3499 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
3500 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3501 | /* confdefs.h. */
|
---|
3502 | _ACEOF
|
---|
3503 | cat confdefs.h >>conftest.$ac_ext
|
---|
3504 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3505 | /* end confdefs.h. */
|
---|
3506 |
|
---|
3507 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3508 | #ifdef __cplusplus
|
---|
3509 | extern "C"
|
---|
3510 | #endif
|
---|
3511 | /* We use char because int might match the return type of a gcc2
|
---|
3512 | builtin and then its argument prototype would still apply. */
|
---|
3513 | char strerror ();
|
---|
3514 | int
|
---|
3515 | main ()
|
---|
3516 | {
|
---|
3517 | strerror ();
|
---|
3518 | ;
|
---|
3519 | return 0;
|
---|
3520 | }
|
---|
3521 | _ACEOF
|
---|
3522 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3524 | (eval $ac_link) 2>conftest.er1
|
---|
3525 | ac_status=$?
|
---|
3526 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3527 | rm -f conftest.er1
|
---|
3528 | cat conftest.err >&5
|
---|
3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3530 | (exit $ac_status); } &&
|
---|
3531 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3532 | || test ! -s conftest.err'
|
---|
3533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3534 | (eval $ac_try) 2>&5
|
---|
3535 | ac_status=$?
|
---|
3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3537 | (exit $ac_status); }; } &&
|
---|
3538 | { ac_try='test -s conftest$ac_exeext'
|
---|
3539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3540 | (eval $ac_try) 2>&5
|
---|
3541 | ac_status=$?
|
---|
3542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3543 | (exit $ac_status); }; }; then
|
---|
3544 | ac_cv_search_strerror="-l$ac_lib"
|
---|
3545 | break
|
---|
3546 | else
|
---|
3547 | echo "$as_me: failed program was:" >&5
|
---|
3548 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3549 |
|
---|
3550 | fi
|
---|
3551 | rm -f conftest.err conftest.$ac_objext \
|
---|
3552 | conftest$ac_exeext conftest.$ac_ext
|
---|
3553 | done
|
---|
3554 | fi
|
---|
3555 | LIBS=$ac_func_search_save_LIBS
|
---|
3556 | fi
|
---|
3557 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
3558 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
3559 | if test "$ac_cv_search_strerror" != no; then
|
---|
3560 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
3561 |
|
---|
3562 | fi
|
---|
3563 |
|
---|
3564 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3565 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3566 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3567 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3568 | else
|
---|
3569 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3570 | /* confdefs.h. */
|
---|
3571 | _ACEOF
|
---|
3572 | cat confdefs.h >>conftest.$ac_ext
|
---|
3573 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3574 | /* end confdefs.h. */
|
---|
3575 | #include <stdlib.h>
|
---|
3576 | #include <stdarg.h>
|
---|
3577 | #include <string.h>
|
---|
3578 | #include <float.h>
|
---|
3579 |
|
---|
3580 | int
|
---|
3581 | main ()
|
---|
3582 | {
|
---|
3583 |
|
---|
3584 | ;
|
---|
3585 | return 0;
|
---|
3586 | }
|
---|
3587 | _ACEOF
|
---|
3588 | rm -f conftest.$ac_objext
|
---|
3589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3590 | (eval $ac_compile) 2>conftest.er1
|
---|
3591 | ac_status=$?
|
---|
3592 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3593 | rm -f conftest.er1
|
---|
3594 | cat conftest.err >&5
|
---|
3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3596 | (exit $ac_status); } &&
|
---|
3597 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3598 | || test ! -s conftest.err'
|
---|
3599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3600 | (eval $ac_try) 2>&5
|
---|
3601 | ac_status=$?
|
---|
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3603 | (exit $ac_status); }; } &&
|
---|
3604 | { ac_try='test -s conftest.$ac_objext'
|
---|
3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3606 | (eval $ac_try) 2>&5
|
---|
3607 | ac_status=$?
|
---|
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3609 | (exit $ac_status); }; }; then
|
---|
3610 | ac_cv_header_stdc=yes
|
---|
3611 | else
|
---|
3612 | echo "$as_me: failed program was:" >&5
|
---|
3613 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3614 |
|
---|
3615 | ac_cv_header_stdc=no
|
---|
3616 | fi
|
---|
3617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3618 |
|
---|
3619 | if test $ac_cv_header_stdc = yes; then
|
---|
3620 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3621 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3622 | /* confdefs.h. */
|
---|
3623 | _ACEOF
|
---|
3624 | cat confdefs.h >>conftest.$ac_ext
|
---|
3625 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3626 | /* end confdefs.h. */
|
---|
3627 | #include <string.h>
|
---|
3628 |
|
---|
3629 | _ACEOF
|
---|
3630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3631 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3632 | :
|
---|
3633 | else
|
---|
3634 | ac_cv_header_stdc=no
|
---|
3635 | fi
|
---|
3636 | rm -f conftest*
|
---|
3637 |
|
---|
3638 | fi
|
---|
3639 |
|
---|
3640 | if test $ac_cv_header_stdc = yes; then
|
---|
3641 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3642 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3643 | /* confdefs.h. */
|
---|
3644 | _ACEOF
|
---|
3645 | cat confdefs.h >>conftest.$ac_ext
|
---|
3646 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3647 | /* end confdefs.h. */
|
---|
3648 | #include <stdlib.h>
|
---|
3649 |
|
---|
3650 | _ACEOF
|
---|
3651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3652 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3653 | :
|
---|
3654 | else
|
---|
3655 | ac_cv_header_stdc=no
|
---|
3656 | fi
|
---|
3657 | rm -f conftest*
|
---|
3658 |
|
---|
3659 | fi
|
---|
3660 |
|
---|
3661 | if test $ac_cv_header_stdc = yes; then
|
---|
3662 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3663 | if test "$cross_compiling" = yes; then
|
---|
3664 | :
|
---|
3665 | else
|
---|
3666 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3667 | /* confdefs.h. */
|
---|
3668 | _ACEOF
|
---|
3669 | cat confdefs.h >>conftest.$ac_ext
|
---|
3670 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3671 | /* end confdefs.h. */
|
---|
3672 | #include <ctype.h>
|
---|
3673 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3674 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3675 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3676 | #else
|
---|
3677 | # define ISLOWER(c) \
|
---|
3678 | (('a' <= (c) && (c) <= 'i') \
|
---|
3679 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3680 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3681 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3682 | #endif
|
---|
3683 |
|
---|
3684 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3685 | int
|
---|
3686 | main ()
|
---|
3687 | {
|
---|
3688 | int i;
|
---|
3689 | for (i = 0; i < 256; i++)
|
---|
3690 | if (XOR (islower (i), ISLOWER (i))
|
---|
3691 | || toupper (i) != TOUPPER (i))
|
---|
3692 | exit(2);
|
---|
3693 | exit (0);
|
---|
3694 | }
|
---|
3695 | _ACEOF
|
---|
3696 | rm -f conftest$ac_exeext
|
---|
3697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3698 | (eval $ac_link) 2>&5
|
---|
3699 | ac_status=$?
|
---|
3700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3703 | (eval $ac_try) 2>&5
|
---|
3704 | ac_status=$?
|
---|
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3706 | (exit $ac_status); }; }; then
|
---|
3707 | :
|
---|
3708 | else
|
---|
3709 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3710 | echo "$as_me: failed program was:" >&5
|
---|
3711 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3712 |
|
---|
3713 | ( exit $ac_status )
|
---|
3714 | ac_cv_header_stdc=no
|
---|
3715 | fi
|
---|
3716 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3717 | fi
|
---|
3718 | fi
|
---|
3719 | fi
|
---|
3720 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3721 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3722 | if test $ac_cv_header_stdc = yes; then
|
---|
3723 |
|
---|
3724 | cat >>confdefs.h <<\_ACEOF
|
---|
3725 | #define STDC_HEADERS 1
|
---|
3726 | _ACEOF
|
---|
3727 |
|
---|
3728 | fi
|
---|
3729 |
|
---|
3730 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3731 |
|
---|
3732 |
|
---|
3733 |
|
---|
3734 |
|
---|
3735 |
|
---|
3736 |
|
---|
3737 |
|
---|
3738 |
|
---|
3739 |
|
---|
3740 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3741 | inttypes.h stdint.h unistd.h
|
---|
3742 | do
|
---|
3743 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3744 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3745 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3747 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3748 | else
|
---|
3749 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3750 | /* confdefs.h. */
|
---|
3751 | _ACEOF
|
---|
3752 | cat confdefs.h >>conftest.$ac_ext
|
---|
3753 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3754 | /* end confdefs.h. */
|
---|
3755 | $ac_includes_default
|
---|
3756 |
|
---|
3757 | #include <$ac_header>
|
---|
3758 | _ACEOF
|
---|
3759 | rm -f conftest.$ac_objext
|
---|
3760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3761 | (eval $ac_compile) 2>conftest.er1
|
---|
3762 | ac_status=$?
|
---|
3763 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3764 | rm -f conftest.er1
|
---|
3765 | cat conftest.err >&5
|
---|
3766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3767 | (exit $ac_status); } &&
|
---|
3768 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3769 | || test ! -s conftest.err'
|
---|
3770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3771 | (eval $ac_try) 2>&5
|
---|
3772 | ac_status=$?
|
---|
3773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3774 | (exit $ac_status); }; } &&
|
---|
3775 | { ac_try='test -s conftest.$ac_objext'
|
---|
3776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3777 | (eval $ac_try) 2>&5
|
---|
3778 | ac_status=$?
|
---|
3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3780 | (exit $ac_status); }; }; then
|
---|
3781 | eval "$as_ac_Header=yes"
|
---|
3782 | else
|
---|
3783 | echo "$as_me: failed program was:" >&5
|
---|
3784 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3785 |
|
---|
3786 | eval "$as_ac_Header=no"
|
---|
3787 | fi
|
---|
3788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3789 | fi
|
---|
3790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3793 | cat >>confdefs.h <<_ACEOF
|
---|
3794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3795 | _ACEOF
|
---|
3796 |
|
---|
3797 | fi
|
---|
3798 |
|
---|
3799 | done
|
---|
3800 |
|
---|
3801 |
|
---|
3802 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3803 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3804 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3805 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3806 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3807 | fi
|
---|
3808 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3809 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3810 | else
|
---|
3811 | # Is the header compilable?
|
---|
3812 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
3813 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
3814 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3815 | /* confdefs.h. */
|
---|
3816 | _ACEOF
|
---|
3817 | cat confdefs.h >>conftest.$ac_ext
|
---|
3818 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3819 | /* end confdefs.h. */
|
---|
3820 | $ac_includes_default
|
---|
3821 | #include <minix/config.h>
|
---|
3822 | _ACEOF
|
---|
3823 | rm -f conftest.$ac_objext
|
---|
3824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3825 | (eval $ac_compile) 2>conftest.er1
|
---|
3826 | ac_status=$?
|
---|
3827 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3828 | rm -f conftest.er1
|
---|
3829 | cat conftest.err >&5
|
---|
3830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3831 | (exit $ac_status); } &&
|
---|
3832 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3833 | || test ! -s conftest.err'
|
---|
3834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3835 | (eval $ac_try) 2>&5
|
---|
3836 | ac_status=$?
|
---|
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3838 | (exit $ac_status); }; } &&
|
---|
3839 | { ac_try='test -s conftest.$ac_objext'
|
---|
3840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3841 | (eval $ac_try) 2>&5
|
---|
3842 | ac_status=$?
|
---|
3843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3844 | (exit $ac_status); }; }; then
|
---|
3845 | ac_header_compiler=yes
|
---|
3846 | else
|
---|
3847 | echo "$as_me: failed program was:" >&5
|
---|
3848 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3849 |
|
---|
3850 | ac_header_compiler=no
|
---|
3851 | fi
|
---|
3852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
3854 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
3855 |
|
---|
3856 | # Is the header present?
|
---|
3857 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
3858 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
3859 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3860 | /* confdefs.h. */
|
---|
3861 | _ACEOF
|
---|
3862 | cat confdefs.h >>conftest.$ac_ext
|
---|
3863 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3864 | /* end confdefs.h. */
|
---|
3865 | #include <minix/config.h>
|
---|
3866 | _ACEOF
|
---|
3867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3869 | ac_status=$?
|
---|
3870 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3871 | rm -f conftest.er1
|
---|
3872 | cat conftest.err >&5
|
---|
3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3874 | (exit $ac_status); } >/dev/null; then
|
---|
3875 | if test -s conftest.err; then
|
---|
3876 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3878 | else
|
---|
3879 | ac_cpp_err=
|
---|
3880 | fi
|
---|
3881 | else
|
---|
3882 | ac_cpp_err=yes
|
---|
3883 | fi
|
---|
3884 | if test -z "$ac_cpp_err"; then
|
---|
3885 | ac_header_preproc=yes
|
---|
3886 | else
|
---|
3887 | echo "$as_me: failed program was:" >&5
|
---|
3888 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3889 |
|
---|
3890 | ac_header_preproc=no
|
---|
3891 | fi
|
---|
3892 | rm -f conftest.err conftest.$ac_ext
|
---|
3893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
3894 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
3895 |
|
---|
3896 | # So? What about this header?
|
---|
3897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
3898 | yes:no: )
|
---|
3899 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
3900 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
3901 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
3902 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
3903 | ac_header_preproc=yes
|
---|
3904 | ;;
|
---|
3905 | no:yes:* )
|
---|
3906 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
3907 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
3908 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
3909 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
3910 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
3911 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
3912 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
3913 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
3914 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
3915 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
3916 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
3917 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
3918 | (
|
---|
3919 | cat <<\_ASBOX
|
---|
3920 | ## ------------------------------- ##
|
---|
3921 | ## Report this to [email protected] ##
|
---|
3922 | ## ------------------------------- ##
|
---|
3923 | _ASBOX
|
---|
3924 | ) |
|
---|
3925 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
3926 | ;;
|
---|
3927 | esac
|
---|
3928 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3929 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3930 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3931 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3932 | else
|
---|
3933 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
3934 | fi
|
---|
3935 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3936 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3937 |
|
---|
3938 | fi
|
---|
3939 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
3940 | MINIX=yes
|
---|
3941 | else
|
---|
3942 | MINIX=
|
---|
3943 | fi
|
---|
3944 |
|
---|
3945 |
|
---|
3946 | if test "$MINIX" = yes; then
|
---|
3947 |
|
---|
3948 | cat >>confdefs.h <<\_ACEOF
|
---|
3949 | #define _POSIX_SOURCE 1
|
---|
3950 | _ACEOF
|
---|
3951 |
|
---|
3952 |
|
---|
3953 | cat >>confdefs.h <<\_ACEOF
|
---|
3954 | #define _POSIX_1_SOURCE 2
|
---|
3955 | _ACEOF
|
---|
3956 |
|
---|
3957 |
|
---|
3958 | cat >>confdefs.h <<\_ACEOF
|
---|
3959 | #define _MINIX 1
|
---|
3960 | _ACEOF
|
---|
3961 |
|
---|
3962 | fi
|
---|
3963 |
|
---|
3964 |
|
---|
3965 | # Needed for ansi2knr
|
---|
3966 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
3967 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
3968 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
3969 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3970 | echo "${ECHO_T}yes" >&6
|
---|
3971 |
|
---|
3972 | cat >>confdefs.h <<\_ACEOF
|
---|
3973 | #define PROTOTYPES 1
|
---|
3974 | _ACEOF
|
---|
3975 |
|
---|
3976 |
|
---|
3977 | cat >>confdefs.h <<\_ACEOF
|
---|
3978 | #define __PROTOTYPES 1
|
---|
3979 | _ACEOF
|
---|
3980 |
|
---|
3981 | else
|
---|
3982 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3983 | echo "${ECHO_T}no" >&6
|
---|
3984 | fi
|
---|
3985 |
|
---|
3986 |
|
---|
3987 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
3988 | U= ANSI2KNR=
|
---|
3989 | else
|
---|
3990 | U=_ ANSI2KNR=./ansi2knr
|
---|
3991 | fi
|
---|
3992 | # Ensure some checks needed by ansi2knr itself.
|
---|
3993 |
|
---|
3994 |
|
---|
3995 | for ac_header in string.h
|
---|
3996 | do
|
---|
3997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3999 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
4001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4002 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4003 | fi
|
---|
4004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4006 | else
|
---|
4007 | # Is the header compilable?
|
---|
4008 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
4009 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
4010 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4011 | /* confdefs.h. */
|
---|
4012 | _ACEOF
|
---|
4013 | cat confdefs.h >>conftest.$ac_ext
|
---|
4014 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4015 | /* end confdefs.h. */
|
---|
4016 | $ac_includes_default
|
---|
4017 | #include <$ac_header>
|
---|
4018 | _ACEOF
|
---|
4019 | rm -f conftest.$ac_objext
|
---|
4020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4021 | (eval $ac_compile) 2>conftest.er1
|
---|
4022 | ac_status=$?
|
---|
4023 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4024 | rm -f conftest.er1
|
---|
4025 | cat conftest.err >&5
|
---|
4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4027 | (exit $ac_status); } &&
|
---|
4028 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4029 | || test ! -s conftest.err'
|
---|
4030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4031 | (eval $ac_try) 2>&5
|
---|
4032 | ac_status=$?
|
---|
4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4034 | (exit $ac_status); }; } &&
|
---|
4035 | { ac_try='test -s conftest.$ac_objext'
|
---|
4036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4037 | (eval $ac_try) 2>&5
|
---|
4038 | ac_status=$?
|
---|
4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4040 | (exit $ac_status); }; }; then
|
---|
4041 | ac_header_compiler=yes
|
---|
4042 | else
|
---|
4043 | echo "$as_me: failed program was:" >&5
|
---|
4044 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4045 |
|
---|
4046 | ac_header_compiler=no
|
---|
4047 | fi
|
---|
4048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4049 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
4050 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
4051 |
|
---|
4052 | # Is the header present?
|
---|
4053 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
4054 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
4055 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4056 | /* confdefs.h. */
|
---|
4057 | _ACEOF
|
---|
4058 | cat confdefs.h >>conftest.$ac_ext
|
---|
4059 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4060 | /* end confdefs.h. */
|
---|
4061 | #include <$ac_header>
|
---|
4062 | _ACEOF
|
---|
4063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4065 | ac_status=$?
|
---|
4066 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4067 | rm -f conftest.er1
|
---|
4068 | cat conftest.err >&5
|
---|
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4070 | (exit $ac_status); } >/dev/null; then
|
---|
4071 | if test -s conftest.err; then
|
---|
4072 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4073 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4074 | else
|
---|
4075 | ac_cpp_err=
|
---|
4076 | fi
|
---|
4077 | else
|
---|
4078 | ac_cpp_err=yes
|
---|
4079 | fi
|
---|
4080 | if test -z "$ac_cpp_err"; then
|
---|
4081 | ac_header_preproc=yes
|
---|
4082 | else
|
---|
4083 | echo "$as_me: failed program was:" >&5
|
---|
4084 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4085 |
|
---|
4086 | ac_header_preproc=no
|
---|
4087 | fi
|
---|
4088 | rm -f conftest.err conftest.$ac_ext
|
---|
4089 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4090 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
4091 |
|
---|
4092 | # So? What about this header?
|
---|
4093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
4094 | yes:no: )
|
---|
4095 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4096 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
4098 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
4099 | ac_header_preproc=yes
|
---|
4100 | ;;
|
---|
4101 | no:yes:* )
|
---|
4102 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
4103 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
4104 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
4105 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
4106 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
4107 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
4108 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
4109 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
4110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
4111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
4112 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
4113 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
4114 | (
|
---|
4115 | cat <<\_ASBOX
|
---|
4116 | ## ------------------------------- ##
|
---|
4117 | ## Report this to [email protected] ##
|
---|
4118 | ## ------------------------------- ##
|
---|
4119 | _ASBOX
|
---|
4120 | ) |
|
---|
4121 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
4122 | ;;
|
---|
4123 | esac
|
---|
4124 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
4126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4127 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4128 | else
|
---|
4129 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
4130 | fi
|
---|
4131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4132 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4133 |
|
---|
4134 | fi
|
---|
4135 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4136 | cat >>confdefs.h <<_ACEOF
|
---|
4137 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4138 | _ACEOF
|
---|
4139 |
|
---|
4140 | fi
|
---|
4141 |
|
---|
4142 | done
|
---|
4143 |
|
---|
4144 |
|
---|
4145 |
|
---|
4146 | # Enable gettext, in "external" mode.
|
---|
4147 |
|
---|
4148 |
|
---|
4149 |
|
---|
4150 | MKINSTALLDIRS=
|
---|
4151 | if test -n "$ac_aux_dir"; then
|
---|
4152 | case "$ac_aux_dir" in
|
---|
4153 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
|
---|
4154 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
|
---|
4155 | esac
|
---|
4156 | fi
|
---|
4157 | if test -z "$MKINSTALLDIRS"; then
|
---|
4158 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
|
---|
4159 | fi
|
---|
4160 |
|
---|
4161 |
|
---|
4162 |
|
---|
4163 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5
|
---|
4164 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
|
---|
4165 | # Check whether --enable-nls or --disable-nls was given.
|
---|
4166 | if test "${enable_nls+set}" = set; then
|
---|
4167 | enableval="$enable_nls"
|
---|
4168 | USE_NLS=$enableval
|
---|
4169 | else
|
---|
4170 | USE_NLS=yes
|
---|
4171 | fi;
|
---|
4172 | echo "$as_me:$LINENO: result: $USE_NLS" >&5
|
---|
4173 | echo "${ECHO_T}$USE_NLS" >&6
|
---|
4174 |
|
---|
4175 |
|
---|
4176 |
|
---|
4177 |
|
---|
4178 |
|
---|
4179 |
|
---|
4180 | # Prepare PATH_SEPARATOR.
|
---|
4181 | # The user is always right.
|
---|
4182 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
4183 | echo "#! /bin/sh" >conf$$.sh
|
---|
4184 | echo "exit 0" >>conf$$.sh
|
---|
4185 | chmod +x conf$$.sh
|
---|
4186 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
4187 | PATH_SEPARATOR=';'
|
---|
4188 | else
|
---|
4189 | PATH_SEPARATOR=:
|
---|
4190 | fi
|
---|
4191 | rm -f conf$$.sh
|
---|
4192 | fi
|
---|
4193 |
|
---|
4194 | # Find out how to test for executable files. Don't use a zero-byte file,
|
---|
4195 | # as systems may use methods other than mode bits to determine executability.
|
---|
4196 | cat >conf$$.file <<_ASEOF
|
---|
4197 | #! /bin/sh
|
---|
4198 | exit 0
|
---|
4199 | _ASEOF
|
---|
4200 | chmod +x conf$$.file
|
---|
4201 | if test -x conf$$.file >/dev/null 2>&1; then
|
---|
4202 | ac_executable_p="test -x"
|
---|
4203 | else
|
---|
4204 | ac_executable_p="test -f"
|
---|
4205 | fi
|
---|
4206 | rm -f conf$$.file
|
---|
4207 |
|
---|
4208 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4209 | set dummy msgfmt; ac_word=$2
|
---|
4210 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
4211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
4212 | if test "${ac_cv_path_MSGFMT+set}" = set; then
|
---|
4213 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4214 | else
|
---|
4215 | case "$MSGFMT" in
|
---|
4216 | [\\/]* | ?:[\\/]*)
|
---|
4217 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4218 | ;;
|
---|
4219 | *)
|
---|
4220 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
|
---|
4221 | for ac_dir in $PATH; do
|
---|
4222 | IFS="$ac_save_IFS"
|
---|
4223 | test -z "$ac_dir" && ac_dir=.
|
---|
4224 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4225 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
|
---|
4226 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
|
---|
4227 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
|
---|
4228 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
|
---|
4229 | break 2
|
---|
4230 | fi
|
---|
4231 | fi
|
---|
4232 | done
|
---|
4233 | done
|
---|
4234 | IFS="$ac_save_IFS"
|
---|
4235 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
|
---|
4236 | ;;
|
---|
4237 | esac
|
---|
4238 | fi
|
---|
4239 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4240 | if test "$MSGFMT" != ":"; then
|
---|
4241 | echo "$as_me:$LINENO: result: $MSGFMT" >&5
|
---|
4242 | echo "${ECHO_T}$MSGFMT" >&6
|
---|
4243 | else
|
---|
4244 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4245 | echo "${ECHO_T}no" >&6
|
---|
4246 | fi
|
---|
4247 |
|
---|
4248 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4249 | set dummy gmsgfmt; ac_word=$2
|
---|
4250 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
4251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
4252 | if test "${ac_cv_path_GMSGFMT+set}" = set; then
|
---|
4253 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4254 | else
|
---|
4255 | case $GMSGFMT in
|
---|
4256 | [\\/]* | ?:[\\/]*)
|
---|
4257 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4258 | ;;
|
---|
4259 | *)
|
---|
4260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4261 | for as_dir in $PATH
|
---|
4262 | do
|
---|
4263 | IFS=$as_save_IFS
|
---|
4264 | test -z "$as_dir" && as_dir=.
|
---|
4265 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4267 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
|
---|
4268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4269 | break 2
|
---|
4270 | fi
|
---|
4271 | done
|
---|
4272 | done
|
---|
4273 |
|
---|
4274 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4275 | ;;
|
---|
4276 | esac
|
---|
4277 | fi
|
---|
4278 | GMSGFMT=$ac_cv_path_GMSGFMT
|
---|
4279 |
|
---|
4280 | if test -n "$GMSGFMT"; then
|
---|
4281 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5
|
---|
4282 | echo "${ECHO_T}$GMSGFMT" >&6
|
---|
4283 | else
|
---|
4284 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4285 | echo "${ECHO_T}no" >&6
|
---|
4286 | fi
|
---|
4287 |
|
---|
4288 |
|
---|
4289 |
|
---|
4290 | # Prepare PATH_SEPARATOR.
|
---|
4291 | # The user is always right.
|
---|
4292 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
4293 | echo "#! /bin/sh" >conf$$.sh
|
---|
4294 | echo "exit 0" >>conf$$.sh
|
---|
4295 | chmod +x conf$$.sh
|
---|
4296 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
4297 | PATH_SEPARATOR=';'
|
---|
4298 | else
|
---|
4299 | PATH_SEPARATOR=:
|
---|
4300 | fi
|
---|
4301 | rm -f conf$$.sh
|
---|
4302 | fi
|
---|
4303 |
|
---|
4304 | # Find out how to test for executable files. Don't use a zero-byte file,
|
---|
4305 | # as systems may use methods other than mode bits to determine executability.
|
---|
4306 | cat >conf$$.file <<_ASEOF
|
---|
4307 | #! /bin/sh
|
---|
4308 | exit 0
|
---|
4309 | _ASEOF
|
---|
4310 | chmod +x conf$$.file
|
---|
4311 | if test -x conf$$.file >/dev/null 2>&1; then
|
---|
4312 | ac_executable_p="test -x"
|
---|
4313 | else
|
---|
4314 | ac_executable_p="test -f"
|
---|
4315 | fi
|
---|
4316 | rm -f conf$$.file
|
---|
4317 |
|
---|
4318 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4319 | set dummy xgettext; ac_word=$2
|
---|
4320 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
4321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
4322 | if test "${ac_cv_path_XGETTEXT+set}" = set; then
|
---|
4323 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4324 | else
|
---|
4325 | case "$XGETTEXT" in
|
---|
4326 | [\\/]* | ?:[\\/]*)
|
---|
4327 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4328 | ;;
|
---|
4329 | *)
|
---|
4330 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
|
---|
4331 | for ac_dir in $PATH; do
|
---|
4332 | IFS="$ac_save_IFS"
|
---|
4333 | test -z "$ac_dir" && ac_dir=.
|
---|
4334 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4335 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
|
---|
4336 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
|
---|
4337 | (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
|
---|
4338 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
|
---|
4339 | break 2
|
---|
4340 | fi
|
---|
4341 | fi
|
---|
4342 | done
|
---|
4343 | done
|
---|
4344 | IFS="$ac_save_IFS"
|
---|
4345 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4346 | ;;
|
---|
4347 | esac
|
---|
4348 | fi
|
---|
4349 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4350 | if test "$XGETTEXT" != ":"; then
|
---|
4351 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5
|
---|
4352 | echo "${ECHO_T}$XGETTEXT" >&6
|
---|
4353 | else
|
---|
4354 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4355 | echo "${ECHO_T}no" >&6
|
---|
4356 | fi
|
---|
4357 |
|
---|
4358 | rm -f messages.po
|
---|
4359 |
|
---|
4360 |
|
---|
4361 | # Prepare PATH_SEPARATOR.
|
---|
4362 | # The user is always right.
|
---|
4363 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
4364 | echo "#! /bin/sh" >conf$$.sh
|
---|
4365 | echo "exit 0" >>conf$$.sh
|
---|
4366 | chmod +x conf$$.sh
|
---|
4367 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
4368 | PATH_SEPARATOR=';'
|
---|
4369 | else
|
---|
4370 | PATH_SEPARATOR=:
|
---|
4371 | fi
|
---|
4372 | rm -f conf$$.sh
|
---|
4373 | fi
|
---|
4374 |
|
---|
4375 | # Find out how to test for executable files. Don't use a zero-byte file,
|
---|
4376 | # as systems may use methods other than mode bits to determine executability.
|
---|
4377 | cat >conf$$.file <<_ASEOF
|
---|
4378 | #! /bin/sh
|
---|
4379 | exit 0
|
---|
4380 | _ASEOF
|
---|
4381 | chmod +x conf$$.file
|
---|
4382 | if test -x conf$$.file >/dev/null 2>&1; then
|
---|
4383 | ac_executable_p="test -x"
|
---|
4384 | else
|
---|
4385 | ac_executable_p="test -f"
|
---|
4386 | fi
|
---|
4387 | rm -f conf$$.file
|
---|
4388 |
|
---|
4389 | # Extract the first word of "msgmerge", so it can be a program name with args.
|
---|
4390 | set dummy msgmerge; ac_word=$2
|
---|
4391 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
4392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
4393 | if test "${ac_cv_path_MSGMERGE+set}" = set; then
|
---|
4394 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4395 | else
|
---|
4396 | case "$MSGMERGE" in
|
---|
4397 | [\\/]* | ?:[\\/]*)
|
---|
4398 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
|
---|
4399 | ;;
|
---|
4400 | *)
|
---|
4401 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
|
---|
4402 | for ac_dir in $PATH; do
|
---|
4403 | IFS="$ac_save_IFS"
|
---|
4404 | test -z "$ac_dir" && ac_dir=.
|
---|
4405 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4406 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
|
---|
4407 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
|
---|
4408 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
|
---|
4409 | break 2
|
---|
4410 | fi
|
---|
4411 | fi
|
---|
4412 | done
|
---|
4413 | done
|
---|
4414 | IFS="$ac_save_IFS"
|
---|
4415 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
|
---|
4416 | ;;
|
---|
4417 | esac
|
---|
4418 | fi
|
---|
4419 | MSGMERGE="$ac_cv_path_MSGMERGE"
|
---|
4420 | if test "$MSGMERGE" != ":"; then
|
---|
4421 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5
|
---|
4422 | echo "${ECHO_T}$MSGMERGE" >&6
|
---|
4423 | else
|
---|
4424 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4425 | echo "${ECHO_T}no" >&6
|
---|
4426 | fi
|
---|
4427 |
|
---|
4428 |
|
---|
4429 | if test "$GMSGFMT" != ":"; then
|
---|
4430 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
|
---|
4431 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
|
---|
4432 | : ;
|
---|
4433 | else
|
---|
4434 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
|
---|
4435 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
|
---|
4436 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
|
---|
4437 | GMSGFMT=":"
|
---|
4438 | fi
|
---|
4439 | fi
|
---|
4440 |
|
---|
4441 | if test "$XGETTEXT" != ":"; then
|
---|
4442 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
|
---|
4443 | (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
|
---|
4444 | : ;
|
---|
4445 | else
|
---|
4446 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
|
---|
4447 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
|
---|
4448 | XGETTEXT=":"
|
---|
4449 | fi
|
---|
4450 | rm -f messages.po
|
---|
4451 | fi
|
---|
4452 |
|
---|
4453 | ac_config_commands="$ac_config_commands default-1"
|
---|
4454 |
|
---|
4455 |
|
---|
4456 |
|
---|
4457 | if test "X$prefix" = "XNONE"; then
|
---|
4458 | acl_final_prefix="$ac_default_prefix"
|
---|
4459 | else
|
---|
4460 | acl_final_prefix="$prefix"
|
---|
4461 | fi
|
---|
4462 | if test "X$exec_prefix" = "XNONE"; then
|
---|
4463 | acl_final_exec_prefix='${prefix}'
|
---|
4464 | else
|
---|
4465 | acl_final_exec_prefix="$exec_prefix"
|
---|
4466 | fi
|
---|
4467 | acl_save_prefix="$prefix"
|
---|
4468 | prefix="$acl_final_prefix"
|
---|
4469 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
|
---|
4470 | prefix="$acl_save_prefix"
|
---|
4471 |
|
---|
4472 |
|
---|
4473 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
4474 | if test "${with_gnu_ld+set}" = set; then
|
---|
4475 | withval="$with_gnu_ld"
|
---|
4476 | test "$withval" = no || with_gnu_ld=yes
|
---|
4477 | else
|
---|
4478 | with_gnu_ld=no
|
---|
4479 | fi;
|
---|
4480 | # Prepare PATH_SEPARATOR.
|
---|
4481 | # The user is always right.
|
---|
4482 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
4483 | echo "#! /bin/sh" >conf$$.sh
|
---|
4484 | echo "exit 0" >>conf$$.sh
|
---|
4485 | chmod +x conf$$.sh
|
---|
4486 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
4487 | PATH_SEPARATOR=';'
|
---|
4488 | else
|
---|
4489 | PATH_SEPARATOR=:
|
---|
4490 | fi
|
---|
4491 | rm -f conf$$.sh
|
---|
4492 | fi
|
---|
4493 | ac_prog=ld
|
---|
4494 | if test "$GCC" = yes; then
|
---|
4495 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
4496 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5
|
---|
4497 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
|
---|
4498 | case $host in
|
---|
4499 | *-*-mingw*)
|
---|
4500 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
4501 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
4502 | *)
|
---|
4503 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
4504 | esac
|
---|
4505 | case $ac_prog in
|
---|
4506 | # Accept absolute paths.
|
---|
4507 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
4508 | re_direlt='/[^/][^/]*/\.\./'
|
---|
4509 | # Canonicalize the path of ld
|
---|
4510 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
4511 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
4512 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
4513 | done
|
---|
4514 | test -z "$LD" && LD="$ac_prog"
|
---|
4515 | ;;
|
---|
4516 | "")
|
---|
4517 | # If it fails, then pretend we aren't using GCC.
|
---|
4518 | ac_prog=ld
|
---|
4519 | ;;
|
---|
4520 | *)
|
---|
4521 | # If it is relative, then search for the first ld in PATH.
|
---|
4522 | with_gnu_ld=unknown
|
---|
4523 | ;;
|
---|
4524 | esac
|
---|
4525 | elif test "$with_gnu_ld" = yes; then
|
---|
4526 | echo "$as_me:$LINENO: checking for GNU ld" >&5
|
---|
4527 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
|
---|
4528 | else
|
---|
4529 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
---|
4530 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
|
---|
4531 | fi
|
---|
4532 | if test "${acl_cv_path_LD+set}" = set; then
|
---|
4533 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4534 | else
|
---|
4535 | if test -z "$LD"; then
|
---|
4536 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
4537 | for ac_dir in $PATH; do
|
---|
4538 | test -z "$ac_dir" && ac_dir=.
|
---|
4539 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
4540 | acl_cv_path_LD="$ac_dir/$ac_prog"
|
---|
4541 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
4542 | # but apparently some GNU ld's only accept -v.
|
---|
4543 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
4544 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
4545 | test "$with_gnu_ld" != no && break
|
---|
4546 | else
|
---|
4547 | test "$with_gnu_ld" != yes && break
|
---|
4548 | fi
|
---|
4549 | fi
|
---|
4550 | done
|
---|
4551 | IFS="$ac_save_ifs"
|
---|
4552 | else
|
---|
4553 | acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
4554 | fi
|
---|
4555 | fi
|
---|
4556 |
|
---|
4557 | LD="$acl_cv_path_LD"
|
---|
4558 | if test -n "$LD"; then
|
---|
4559 | echo "$as_me:$LINENO: result: $LD" >&5
|
---|
4560 | echo "${ECHO_T}$LD" >&6
|
---|
4561 | else
|
---|
4562 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4563 | echo "${ECHO_T}no" >&6
|
---|
4564 | fi
|
---|
4565 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
---|
4566 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
---|
4567 | { (exit 1); exit 1; }; }
|
---|
4568 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
---|
4569 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
|
---|
4570 | if test "${acl_cv_prog_gnu_ld+set}" = set; then
|
---|
4571 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4572 | else
|
---|
4573 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
4574 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
4575 | acl_cv_prog_gnu_ld=yes
|
---|
4576 | else
|
---|
4577 | acl_cv_prog_gnu_ld=no
|
---|
4578 | fi
|
---|
4579 | fi
|
---|
4580 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
|
---|
4581 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
|
---|
4582 | with_gnu_ld=$acl_cv_prog_gnu_ld
|
---|
4583 |
|
---|
4584 |
|
---|
4585 |
|
---|
4586 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5
|
---|
4587 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
|
---|
4588 | if test "${acl_cv_rpath+set}" = set; then
|
---|
4589 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4590 | else
|
---|
4591 |
|
---|
4592 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
|
---|
4593 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
|
---|
4594 | . ./conftest.sh
|
---|
4595 | rm -f ./conftest.sh
|
---|
4596 | acl_cv_rpath=done
|
---|
4597 |
|
---|
4598 | fi
|
---|
4599 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
|
---|
4600 | echo "${ECHO_T}$acl_cv_rpath" >&6
|
---|
4601 | wl="$acl_cv_wl"
|
---|
4602 | libext="$acl_cv_libext"
|
---|
4603 | shlibext="$acl_cv_shlibext"
|
---|
4604 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
|
---|
4605 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
|
---|
4606 | hardcode_direct="$acl_cv_hardcode_direct"
|
---|
4607 | hardcode_minus_L="$acl_cv_hardcode_minus_L"
|
---|
4608 | # Check whether --enable-rpath or --disable-rpath was given.
|
---|
4609 | if test "${enable_rpath+set}" = set; then
|
---|
4610 | enableval="$enable_rpath"
|
---|
4611 | :
|
---|
4612 | else
|
---|
4613 | enable_rpath=yes
|
---|
4614 | fi;
|
---|
4615 |
|
---|
4616 |
|
---|
4617 |
|
---|
4618 |
|
---|
4619 |
|
---|
4620 |
|
---|
4621 |
|
---|
4622 | use_additional=yes
|
---|
4623 |
|
---|
4624 | acl_save_prefix="$prefix"
|
---|
4625 | prefix="$acl_final_prefix"
|
---|
4626 | acl_save_exec_prefix="$exec_prefix"
|
---|
4627 | exec_prefix="$acl_final_exec_prefix"
|
---|
4628 |
|
---|
4629 | eval additional_includedir=\"$includedir\"
|
---|
4630 | eval additional_libdir=\"$libdir\"
|
---|
4631 |
|
---|
4632 | exec_prefix="$acl_save_exec_prefix"
|
---|
4633 | prefix="$acl_save_prefix"
|
---|
4634 |
|
---|
4635 |
|
---|
4636 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
---|
4637 | if test "${with_libiconv_prefix+set}" = set; then
|
---|
4638 | withval="$with_libiconv_prefix"
|
---|
4639 |
|
---|
4640 | if test "X$withval" = "Xno"; then
|
---|
4641 | use_additional=no
|
---|
4642 | else
|
---|
4643 | if test "X$withval" = "X"; then
|
---|
4644 |
|
---|
4645 | acl_save_prefix="$prefix"
|
---|
4646 | prefix="$acl_final_prefix"
|
---|
4647 | acl_save_exec_prefix="$exec_prefix"
|
---|
4648 | exec_prefix="$acl_final_exec_prefix"
|
---|
4649 |
|
---|
4650 | eval additional_includedir=\"$includedir\"
|
---|
4651 | eval additional_libdir=\"$libdir\"
|
---|
4652 |
|
---|
4653 | exec_prefix="$acl_save_exec_prefix"
|
---|
4654 | prefix="$acl_save_prefix"
|
---|
4655 |
|
---|
4656 | else
|
---|
4657 | additional_includedir="$withval/include"
|
---|
4658 | additional_libdir="$withval/lib"
|
---|
4659 | fi
|
---|
4660 | fi
|
---|
4661 |
|
---|
4662 | fi;
|
---|
4663 | LIBICONV=
|
---|
4664 | LTLIBICONV=
|
---|
4665 | INCICONV=
|
---|
4666 | rpathdirs=
|
---|
4667 | ltrpathdirs=
|
---|
4668 | names_already_handled=
|
---|
4669 | names_next_round='iconv '
|
---|
4670 | while test -n "$names_next_round"; do
|
---|
4671 | names_this_round="$names_next_round"
|
---|
4672 | names_next_round=
|
---|
4673 | for name in $names_this_round; do
|
---|
4674 | already_handled=
|
---|
4675 | for n in $names_already_handled; do
|
---|
4676 | if test "$n" = "$name"; then
|
---|
4677 | already_handled=yes
|
---|
4678 | break
|
---|
4679 | fi
|
---|
4680 | done
|
---|
4681 | if test -z "$already_handled"; then
|
---|
4682 | names_already_handled="$names_already_handled $name"
|
---|
4683 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
|
---|
4684 | eval value=\"\$HAVE_LIB$uppername\"
|
---|
4685 | if test -n "$value"; then
|
---|
4686 | if test "$value" = yes; then
|
---|
4687 | eval value=\"\$LIB$uppername\"
|
---|
4688 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
|
---|
4689 | eval value=\"\$LTLIB$uppername\"
|
---|
4690 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
|
---|
4691 | else
|
---|
4692 | :
|
---|
4693 | fi
|
---|
4694 | else
|
---|
4695 | found_dir=
|
---|
4696 | found_la=
|
---|
4697 | found_so=
|
---|
4698 | found_a=
|
---|
4699 | if test $use_additional = yes; then
|
---|
4700 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
|
---|
4701 | found_dir="$additional_libdir"
|
---|
4702 | found_so="$additional_libdir/lib$name.$shlibext"
|
---|
4703 | if test -f "$additional_libdir/lib$name.la"; then
|
---|
4704 | found_la="$additional_libdir/lib$name.la"
|
---|
4705 | fi
|
---|
4706 | else
|
---|
4707 | if test -f "$additional_libdir/lib$name.$libext"; then
|
---|
4708 | found_dir="$additional_libdir"
|
---|
4709 | found_a="$additional_libdir/lib$name.$libext"
|
---|
4710 | if test -f "$additional_libdir/lib$name.la"; then
|
---|
4711 | found_la="$additional_libdir/lib$name.la"
|
---|
4712 | fi
|
---|
4713 | fi
|
---|
4714 | fi
|
---|
4715 | fi
|
---|
4716 | if test "X$found_dir" = "X"; then
|
---|
4717 | for x in $LDFLAGS $LTLIBICONV; do
|
---|
4718 |
|
---|
4719 | acl_save_prefix="$prefix"
|
---|
4720 | prefix="$acl_final_prefix"
|
---|
4721 | acl_save_exec_prefix="$exec_prefix"
|
---|
4722 | exec_prefix="$acl_final_exec_prefix"
|
---|
4723 | eval x=\"$x\"
|
---|
4724 | exec_prefix="$acl_save_exec_prefix"
|
---|
4725 | prefix="$acl_save_prefix"
|
---|
4726 |
|
---|
4727 | case "$x" in
|
---|
4728 | -L*)
|
---|
4729 | dir=`echo "X$x" | sed -e 's/^X-L//'`
|
---|
4730 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
|
---|
4731 | found_dir="$dir"
|
---|
4732 | found_so="$dir/lib$name.$shlibext"
|
---|
4733 | if test -f "$dir/lib$name.la"; then
|
---|
4734 | found_la="$dir/lib$name.la"
|
---|
4735 | fi
|
---|
4736 | else
|
---|
4737 | if test -f "$dir/lib$name.$libext"; then
|
---|
4738 | found_dir="$dir"
|
---|
4739 | found_a="$dir/lib$name.$libext"
|
---|
4740 | if test -f "$dir/lib$name.la"; then
|
---|
4741 | found_la="$dir/lib$name.la"
|
---|
4742 | fi
|
---|
4743 | fi
|
---|
4744 | fi
|
---|
4745 | ;;
|
---|
4746 | esac
|
---|
4747 | if test "X$found_dir" != "X"; then
|
---|
4748 | break
|
---|
4749 | fi
|
---|
4750 | done
|
---|
4751 | fi
|
---|
4752 | if test "X$found_dir" != "X"; then
|
---|
4753 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
|
---|
4754 | if test "X$found_so" != "X"; then
|
---|
4755 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
|
---|
4756 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
---|
4757 | else
|
---|
4758 | haveit=
|
---|
4759 | for x in $ltrpathdirs; do
|
---|
4760 | if test "X$x" = "X$found_dir"; then
|
---|
4761 | haveit=yes
|
---|
4762 | break
|
---|
4763 | fi
|
---|
4764 | done
|
---|
4765 | if test -z "$haveit"; then
|
---|
4766 | ltrpathdirs="$ltrpathdirs $found_dir"
|
---|
4767 | fi
|
---|
4768 | if test "$hardcode_direct" = yes; then
|
---|
4769 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
---|
4770 | else
|
---|
4771 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
|
---|
4772 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
---|
4773 | haveit=
|
---|
4774 | for x in $rpathdirs; do
|
---|
4775 | if test "X$x" = "X$found_dir"; then
|
---|
4776 | haveit=yes
|
---|
4777 | break
|
---|
4778 | fi
|
---|
4779 | done
|
---|
4780 | if test -z "$haveit"; then
|
---|
4781 | rpathdirs="$rpathdirs $found_dir"
|
---|
4782 | fi
|
---|
4783 | else
|
---|
4784 | haveit=
|
---|
4785 | for x in $LDFLAGS $LIBICONV; do
|
---|
4786 |
|
---|
4787 | acl_save_prefix="$prefix"
|
---|
4788 | prefix="$acl_final_prefix"
|
---|
4789 | acl_save_exec_prefix="$exec_prefix"
|
---|
4790 | exec_prefix="$acl_final_exec_prefix"
|
---|
4791 | eval x=\"$x\"
|
---|
4792 | exec_prefix="$acl_save_exec_prefix"
|
---|
4793 | prefix="$acl_save_prefix"
|
---|
4794 |
|
---|
4795 | if test "X$x" = "X-L$found_dir"; then
|
---|
4796 | haveit=yes
|
---|
4797 | break
|
---|
4798 | fi
|
---|
4799 | done
|
---|
4800 | if test -z "$haveit"; then
|
---|
4801 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
|
---|
4802 | fi
|
---|
4803 | if test "$hardcode_minus_L" != no; then
|
---|
4804 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
---|
4805 | else
|
---|
4806 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
|
---|
4807 | fi
|
---|
4808 | fi
|
---|
4809 | fi
|
---|
4810 | fi
|
---|
4811 | else
|
---|
4812 | if test "X$found_a" != "X"; then
|
---|
4813 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
|
---|
4814 | else
|
---|
4815 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
|
---|
4816 | fi
|
---|
4817 | fi
|
---|
4818 | additional_includedir=
|
---|
4819 | case "$found_dir" in
|
---|
4820 | */lib | */lib/)
|
---|
4821 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
|
---|
4822 | additional_includedir="$basedir/include"
|
---|
4823 | ;;
|
---|
4824 | esac
|
---|
4825 | if test "X$additional_includedir" != "X"; then
|
---|
4826 | if test "X$additional_includedir" != "X/usr/include"; then
|
---|
4827 | haveit=
|
---|
4828 | if test "X$additional_includedir" = "X/usr/local/include"; then
|
---|
4829 | if test -n "$GCC"; then
|
---|
4830 | case $host_os in
|
---|
4831 | linux*) haveit=yes;;
|
---|
4832 | esac
|
---|
4833 | fi
|
---|
4834 | fi
|
---|
4835 | if test -z "$haveit"; then
|
---|
4836 | for x in $CPPFLAGS $INCICONV; do
|
---|
4837 |
|
---|
4838 | acl_save_prefix="$prefix"
|
---|
4839 | prefix="$acl_final_prefix"
|
---|
4840 | acl_save_exec_prefix="$exec_prefix"
|
---|
4841 | exec_prefix="$acl_final_exec_prefix"
|
---|
4842 | eval x=\"$x\"
|
---|
4843 | exec_prefix="$acl_save_exec_prefix"
|
---|
4844 | prefix="$acl_save_prefix"
|
---|
4845 |
|
---|
4846 | if test "X$x" = "X-I$additional_includedir"; then
|
---|
4847 | haveit=yes
|
---|
4848 | break
|
---|
4849 | fi
|
---|
4850 | done
|
---|
4851 | if test -z "$haveit"; then
|
---|
4852 | if test -d "$additional_includedir"; then
|
---|
4853 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
|
---|
4854 | fi
|
---|
4855 | fi
|
---|
4856 | fi
|
---|
4857 | fi
|
---|
4858 | fi
|
---|
4859 | if test -n "$found_la"; then
|
---|
4860 | save_libdir="$libdir"
|
---|
4861 | case "$found_la" in
|
---|
4862 | */* | *\\*) . "$found_la" ;;
|
---|
4863 | *) . "./$found_la" ;;
|
---|
4864 | esac
|
---|
4865 | libdir="$save_libdir"
|
---|
4866 | for dep in $dependency_libs; do
|
---|
4867 | case "$dep" in
|
---|
4868 | -L*)
|
---|
4869 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
---|
4870 | if test "X$additional_libdir" != "X/usr/lib"; then
|
---|
4871 | haveit=
|
---|
4872 | if test "X$additional_libdir" = "X/usr/local/lib"; then
|
---|
4873 | if test -n "$GCC"; then
|
---|
4874 | case $host_os in
|
---|
4875 | linux*) haveit=yes;;
|
---|
4876 | esac
|
---|
4877 | fi
|
---|
4878 | fi
|
---|
4879 | if test -z "$haveit"; then
|
---|
4880 | haveit=
|
---|
4881 | for x in $LDFLAGS $LIBICONV; do
|
---|
4882 |
|
---|
4883 | acl_save_prefix="$prefix"
|
---|
4884 | prefix="$acl_final_prefix"
|
---|
4885 | acl_save_exec_prefix="$exec_prefix"
|
---|
4886 | exec_prefix="$acl_final_exec_prefix"
|
---|
4887 | eval x=\"$x\"
|
---|
4888 | exec_prefix="$acl_save_exec_prefix"
|
---|
4889 | prefix="$acl_save_prefix"
|
---|
4890 |
|
---|
4891 | if test "X$x" = "X-L$additional_libdir"; then
|
---|
4892 | haveit=yes
|
---|
4893 | break
|
---|
4894 | fi
|
---|
4895 | done
|
---|
4896 | if test -z "$haveit"; then
|
---|
4897 | if test -d "$additional_libdir"; then
|
---|
4898 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
|
---|
4899 | fi
|
---|
4900 | fi
|
---|
4901 | haveit=
|
---|
4902 | for x in $LDFLAGS $LTLIBICONV; do
|
---|
4903 |
|
---|
4904 | acl_save_prefix="$prefix"
|
---|
4905 | prefix="$acl_final_prefix"
|
---|
4906 | acl_save_exec_prefix="$exec_prefix"
|
---|
4907 | exec_prefix="$acl_final_exec_prefix"
|
---|
4908 | eval x=\"$x\"
|
---|
4909 | exec_prefix="$acl_save_exec_prefix"
|
---|
4910 | prefix="$acl_save_prefix"
|
---|
4911 |
|
---|
4912 | if test "X$x" = "X-L$additional_libdir"; then
|
---|
4913 | haveit=yes
|
---|
4914 | break
|
---|
4915 | fi
|
---|
4916 | done
|
---|
4917 | if test -z "$haveit"; then
|
---|
4918 | if test -d "$additional_libdir"; then
|
---|
4919 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
|
---|
4920 | fi
|
---|
4921 | fi
|
---|
4922 | fi
|
---|
4923 | fi
|
---|
4924 | ;;
|
---|
4925 | -R*)
|
---|
4926 | dir=`echo "X$dep" | sed -e 's/^X-R//'`
|
---|
4927 | if test "$enable_rpath" != no; then
|
---|
4928 | haveit=
|
---|
4929 | for x in $rpathdirs; do
|
---|
4930 | if test "X$x" = "X$dir"; then
|
---|
4931 | haveit=yes
|
---|
4932 | break
|
---|
4933 | fi
|
---|
4934 | done
|
---|
4935 | if test -z "$haveit"; then
|
---|
4936 | rpathdirs="$rpathdirs $dir"
|
---|
4937 | fi
|
---|
4938 | haveit=
|
---|
4939 | for x in $ltrpathdirs; do
|
---|
4940 | if test "X$x" = "X$dir"; then
|
---|
4941 | haveit=yes
|
---|
4942 | break
|
---|
4943 | fi
|
---|
4944 | done
|
---|
4945 | if test -z "$haveit"; then
|
---|
4946 | ltrpathdirs="$ltrpathdirs $dir"
|
---|
4947 | fi
|
---|
4948 | fi
|
---|
4949 | ;;
|
---|
4950 | -l*)
|
---|
4951 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
|
---|
4952 | ;;
|
---|
4953 | *.la)
|
---|
4954 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
|
---|
4955 | ;;
|
---|
4956 | *)
|
---|
4957 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
|
---|
4958 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
|
---|
4959 | ;;
|
---|
4960 | esac
|
---|
4961 | done
|
---|
4962 | fi
|
---|
4963 | else
|
---|
4964 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
|
---|
4965 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
|
---|
4966 | fi
|
---|
4967 | fi
|
---|
4968 | fi
|
---|
4969 | done
|
---|
4970 | done
|
---|
4971 | if test "X$rpathdirs" != "X"; then
|
---|
4972 | if test -n "$hardcode_libdir_separator"; then
|
---|
4973 | alldirs=
|
---|
4974 | for found_dir in $rpathdirs; do
|
---|
4975 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
|
---|
4976 | done
|
---|
4977 | acl_save_libdir="$libdir"
|
---|
4978 | libdir="$alldirs"
|
---|
4979 | eval flag=\"$hardcode_libdir_flag_spec\"
|
---|
4980 | libdir="$acl_save_libdir"
|
---|
4981 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
|
---|
4982 | else
|
---|
4983 | for found_dir in $rpathdirs; do
|
---|
4984 | acl_save_libdir="$libdir"
|
---|
4985 | libdir="$found_dir"
|
---|
4986 | eval flag=\"$hardcode_libdir_flag_spec\"
|
---|
4987 | libdir="$acl_save_libdir"
|
---|
4988 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
|
---|
4989 | done
|
---|
4990 | fi
|
---|
4991 | fi
|
---|
4992 | if test "X$ltrpathdirs" != "X"; then
|
---|
4993 | for found_dir in $ltrpathdirs; do
|
---|
4994 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
|
---|
4995 | done
|
---|
4996 | fi
|
---|
4997 |
|
---|
4998 |
|
---|
4999 |
|
---|
5000 |
|
---|
5001 |
|
---|
5002 |
|
---|
5003 |
|
---|
5004 |
|
---|
5005 |
|
---|
5006 |
|
---|
5007 |
|
---|
5008 |
|
---|
5009 |
|
---|
5010 |
|
---|
5011 |
|
---|
5012 |
|
---|
5013 |
|
---|
5014 |
|
---|
5015 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5
|
---|
5016 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
|
---|
5017 | # Check whether --enable-nls or --disable-nls was given.
|
---|
5018 | if test "${enable_nls+set}" = set; then
|
---|
5019 | enableval="$enable_nls"
|
---|
5020 | USE_NLS=$enableval
|
---|
5021 | else
|
---|
5022 | USE_NLS=yes
|
---|
5023 | fi;
|
---|
5024 | echo "$as_me:$LINENO: result: $USE_NLS" >&5
|
---|
5025 | echo "${ECHO_T}$USE_NLS" >&6
|
---|
5026 |
|
---|
5027 |
|
---|
5028 |
|
---|
5029 |
|
---|
5030 | LIBINTL=
|
---|
5031 | LTLIBINTL=
|
---|
5032 | POSUB=
|
---|
5033 |
|
---|
5034 | if test "$USE_NLS" = "yes"; then
|
---|
5035 | gt_use_preinstalled_gnugettext=no
|
---|
5036 |
|
---|
5037 |
|
---|
5038 |
|
---|
5039 |
|
---|
5040 |
|
---|
5041 |
|
---|
5042 | echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
|
---|
5043 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
|
---|
5044 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
|
---|
5045 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5046 | else
|
---|
5047 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5048 | /* confdefs.h. */
|
---|
5049 | _ACEOF
|
---|
5050 | cat confdefs.h >>conftest.$ac_ext
|
---|
5051 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5052 | /* end confdefs.h. */
|
---|
5053 | #include <libintl.h>
|
---|
5054 | extern int _nl_msg_cat_cntr;
|
---|
5055 | extern int *_nl_domain_bindings;
|
---|
5056 | int
|
---|
5057 | main ()
|
---|
5058 | {
|
---|
5059 | bindtextdomain ("", "");
|
---|
5060 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
|
---|
5061 | ;
|
---|
5062 | return 0;
|
---|
5063 | }
|
---|
5064 | _ACEOF
|
---|
5065 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5067 | (eval $ac_link) 2>conftest.er1
|
---|
5068 | ac_status=$?
|
---|
5069 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5070 | rm -f conftest.er1
|
---|
5071 | cat conftest.err >&5
|
---|
5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5073 | (exit $ac_status); } &&
|
---|
5074 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5075 | || test ! -s conftest.err'
|
---|
5076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5077 | (eval $ac_try) 2>&5
|
---|
5078 | ac_status=$?
|
---|
5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5080 | (exit $ac_status); }; } &&
|
---|
5081 | { ac_try='test -s conftest$ac_exeext'
|
---|
5082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5083 | (eval $ac_try) 2>&5
|
---|
5084 | ac_status=$?
|
---|
5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5086 | (exit $ac_status); }; }; then
|
---|
5087 | gt_cv_func_gnugettext1_libc=yes
|
---|
5088 | else
|
---|
5089 | echo "$as_me: failed program was:" >&5
|
---|
5090 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5091 |
|
---|
5092 | gt_cv_func_gnugettext1_libc=no
|
---|
5093 | fi
|
---|
5094 | rm -f conftest.err conftest.$ac_objext \
|
---|
5095 | conftest$ac_exeext conftest.$ac_ext
|
---|
5096 | fi
|
---|
5097 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
|
---|
5098 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
|
---|
5099 |
|
---|
5100 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
|
---|
5101 |
|
---|
5102 |
|
---|
5103 |
|
---|
5104 |
|
---|
5105 |
|
---|
5106 | am_save_CPPFLAGS="$CPPFLAGS"
|
---|
5107 |
|
---|
5108 | for element in $INCICONV; do
|
---|
5109 | haveit=
|
---|
5110 | for x in $CPPFLAGS; do
|
---|
5111 |
|
---|
5112 | acl_save_prefix="$prefix"
|
---|
5113 | prefix="$acl_final_prefix"
|
---|
5114 | acl_save_exec_prefix="$exec_prefix"
|
---|
5115 | exec_prefix="$acl_final_exec_prefix"
|
---|
5116 | eval x=\"$x\"
|
---|
5117 | exec_prefix="$acl_save_exec_prefix"
|
---|
5118 | prefix="$acl_save_prefix"
|
---|
5119 |
|
---|
5120 | if test "X$x" = "X$element"; then
|
---|
5121 | haveit=yes
|
---|
5122 | break
|
---|
5123 | fi
|
---|
5124 | done
|
---|
5125 | if test -z "$haveit"; then
|
---|
5126 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
|
---|
5127 | fi
|
---|
5128 | done
|
---|
5129 |
|
---|
5130 |
|
---|
5131 | echo "$as_me:$LINENO: checking for iconv" >&5
|
---|
5132 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6
|
---|
5133 | if test "${am_cv_func_iconv+set}" = set; then
|
---|
5134 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5135 | else
|
---|
5136 |
|
---|
5137 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
5138 | am_cv_lib_iconv=no
|
---|
5139 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5140 | /* confdefs.h. */
|
---|
5141 | _ACEOF
|
---|
5142 | cat confdefs.h >>conftest.$ac_ext
|
---|
5143 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5144 | /* end confdefs.h. */
|
---|
5145 | #include <stdlib.h>
|
---|
5146 | #include <iconv.h>
|
---|
5147 | int
|
---|
5148 | main ()
|
---|
5149 | {
|
---|
5150 | iconv_t cd = iconv_open("","");
|
---|
5151 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
5152 | iconv_close(cd);
|
---|
5153 | ;
|
---|
5154 | return 0;
|
---|
5155 | }
|
---|
5156 | _ACEOF
|
---|
5157 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5159 | (eval $ac_link) 2>conftest.er1
|
---|
5160 | ac_status=$?
|
---|
5161 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5162 | rm -f conftest.er1
|
---|
5163 | cat conftest.err >&5
|
---|
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5165 | (exit $ac_status); } &&
|
---|
5166 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5167 | || test ! -s conftest.err'
|
---|
5168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5169 | (eval $ac_try) 2>&5
|
---|
5170 | ac_status=$?
|
---|
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5172 | (exit $ac_status); }; } &&
|
---|
5173 | { ac_try='test -s conftest$ac_exeext'
|
---|
5174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5175 | (eval $ac_try) 2>&5
|
---|
5176 | ac_status=$?
|
---|
5177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5178 | (exit $ac_status); }; }; then
|
---|
5179 | am_cv_func_iconv=yes
|
---|
5180 | else
|
---|
5181 | echo "$as_me: failed program was:" >&5
|
---|
5182 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5183 |
|
---|
5184 | fi
|
---|
5185 | rm -f conftest.err conftest.$ac_objext \
|
---|
5186 | conftest$ac_exeext conftest.$ac_ext
|
---|
5187 | if test "$am_cv_func_iconv" != yes; then
|
---|
5188 | am_save_LIBS="$LIBS"
|
---|
5189 | LIBS="$LIBS $LIBICONV"
|
---|
5190 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5191 | /* confdefs.h. */
|
---|
5192 | _ACEOF
|
---|
5193 | cat confdefs.h >>conftest.$ac_ext
|
---|
5194 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5195 | /* end confdefs.h. */
|
---|
5196 | #include <stdlib.h>
|
---|
5197 | #include <iconv.h>
|
---|
5198 | int
|
---|
5199 | main ()
|
---|
5200 | {
|
---|
5201 | iconv_t cd = iconv_open("","");
|
---|
5202 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
5203 | iconv_close(cd);
|
---|
5204 | ;
|
---|
5205 | return 0;
|
---|
5206 | }
|
---|
5207 | _ACEOF
|
---|
5208 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5210 | (eval $ac_link) 2>conftest.er1
|
---|
5211 | ac_status=$?
|
---|
5212 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5213 | rm -f conftest.er1
|
---|
5214 | cat conftest.err >&5
|
---|
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5216 | (exit $ac_status); } &&
|
---|
5217 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5218 | || test ! -s conftest.err'
|
---|
5219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5220 | (eval $ac_try) 2>&5
|
---|
5221 | ac_status=$?
|
---|
5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5223 | (exit $ac_status); }; } &&
|
---|
5224 | { ac_try='test -s conftest$ac_exeext'
|
---|
5225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5226 | (eval $ac_try) 2>&5
|
---|
5227 | ac_status=$?
|
---|
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5229 | (exit $ac_status); }; }; then
|
---|
5230 | am_cv_lib_iconv=yes
|
---|
5231 | am_cv_func_iconv=yes
|
---|
5232 | else
|
---|
5233 | echo "$as_me: failed program was:" >&5
|
---|
5234 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5235 |
|
---|
5236 | fi
|
---|
5237 | rm -f conftest.err conftest.$ac_objext \
|
---|
5238 | conftest$ac_exeext conftest.$ac_ext
|
---|
5239 | LIBS="$am_save_LIBS"
|
---|
5240 | fi
|
---|
5241 |
|
---|
5242 | fi
|
---|
5243 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
|
---|
5244 | echo "${ECHO_T}$am_cv_func_iconv" >&6
|
---|
5245 | if test "$am_cv_func_iconv" = yes; then
|
---|
5246 |
|
---|
5247 | cat >>confdefs.h <<\_ACEOF
|
---|
5248 | #define HAVE_ICONV 1
|
---|
5249 | _ACEOF
|
---|
5250 |
|
---|
5251 | fi
|
---|
5252 | if test "$am_cv_lib_iconv" = yes; then
|
---|
5253 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5
|
---|
5254 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
|
---|
5255 | echo "$as_me:$LINENO: result: $LIBICONV" >&5
|
---|
5256 | echo "${ECHO_T}$LIBICONV" >&6
|
---|
5257 | else
|
---|
5258 | CPPFLAGS="$am_save_CPPFLAGS"
|
---|
5259 | LIBICONV=
|
---|
5260 | LTLIBICONV=
|
---|
5261 | fi
|
---|
5262 |
|
---|
5263 |
|
---|
5264 |
|
---|
5265 |
|
---|
5266 |
|
---|
5267 |
|
---|
5268 | use_additional=yes
|
---|
5269 |
|
---|
5270 | acl_save_prefix="$prefix"
|
---|
5271 | prefix="$acl_final_prefix"
|
---|
5272 | acl_save_exec_prefix="$exec_prefix"
|
---|
5273 | exec_prefix="$acl_final_exec_prefix"
|
---|
5274 |
|
---|
5275 | eval additional_includedir=\"$includedir\"
|
---|
5276 | eval additional_libdir=\"$libdir\"
|
---|
5277 |
|
---|
5278 | exec_prefix="$acl_save_exec_prefix"
|
---|
5279 | prefix="$acl_save_prefix"
|
---|
5280 |
|
---|
5281 |
|
---|
5282 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
|
---|
5283 | if test "${with_libintl_prefix+set}" = set; then
|
---|
5284 | withval="$with_libintl_prefix"
|
---|
5285 |
|
---|
5286 | if test "X$withval" = "Xno"; then
|
---|
5287 | use_additional=no
|
---|
5288 | else
|
---|
5289 | if test "X$withval" = "X"; then
|
---|
5290 |
|
---|
5291 | acl_save_prefix="$prefix"
|
---|
5292 | prefix="$acl_final_prefix"
|
---|
5293 | acl_save_exec_prefix="$exec_prefix"
|
---|
5294 | exec_prefix="$acl_final_exec_prefix"
|
---|
5295 |
|
---|
5296 | eval additional_includedir=\"$includedir\"
|
---|
5297 | eval additional_libdir=\"$libdir\"
|
---|
5298 |
|
---|
5299 | exec_prefix="$acl_save_exec_prefix"
|
---|
5300 | prefix="$acl_save_prefix"
|
---|
5301 |
|
---|
5302 | else
|
---|
5303 | additional_includedir="$withval/include"
|
---|
5304 | additional_libdir="$withval/lib"
|
---|
5305 | fi
|
---|
5306 | fi
|
---|
5307 |
|
---|
5308 | fi;
|
---|
5309 | LIBINTL=
|
---|
5310 | LTLIBINTL=
|
---|
5311 | INCINTL=
|
---|
5312 | rpathdirs=
|
---|
5313 | ltrpathdirs=
|
---|
5314 | names_already_handled=
|
---|
5315 | names_next_round='intl '
|
---|
5316 | while test -n "$names_next_round"; do
|
---|
5317 | names_this_round="$names_next_round"
|
---|
5318 | names_next_round=
|
---|
5319 | for name in $names_this_round; do
|
---|
5320 | already_handled=
|
---|
5321 | for n in $names_already_handled; do
|
---|
5322 | if test "$n" = "$name"; then
|
---|
5323 | already_handled=yes
|
---|
5324 | break
|
---|
5325 | fi
|
---|
5326 | done
|
---|
5327 | if test -z "$already_handled"; then
|
---|
5328 | names_already_handled="$names_already_handled $name"
|
---|
5329 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
|
---|
5330 | eval value=\"\$HAVE_LIB$uppername\"
|
---|
5331 | if test -n "$value"; then
|
---|
5332 | if test "$value" = yes; then
|
---|
5333 | eval value=\"\$LIB$uppername\"
|
---|
5334 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
|
---|
5335 | eval value=\"\$LTLIB$uppername\"
|
---|
5336 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
|
---|
5337 | else
|
---|
5338 | :
|
---|
5339 | fi
|
---|
5340 | else
|
---|
5341 | found_dir=
|
---|
5342 | found_la=
|
---|
5343 | found_so=
|
---|
5344 | found_a=
|
---|
5345 | if test $use_additional = yes; then
|
---|
5346 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
|
---|
5347 | found_dir="$additional_libdir"
|
---|
5348 | found_so="$additional_libdir/lib$name.$shlibext"
|
---|
5349 | if test -f "$additional_libdir/lib$name.la"; then
|
---|
5350 | found_la="$additional_libdir/lib$name.la"
|
---|
5351 | fi
|
---|
5352 | else
|
---|
5353 | if test -f "$additional_libdir/lib$name.$libext"; then
|
---|
5354 | found_dir="$additional_libdir"
|
---|
5355 | found_a="$additional_libdir/lib$name.$libext"
|
---|
5356 | if test -f "$additional_libdir/lib$name.la"; then
|
---|
5357 | found_la="$additional_libdir/lib$name.la"
|
---|
5358 | fi
|
---|
5359 | fi
|
---|
5360 | fi
|
---|
5361 | fi
|
---|
5362 | if test "X$found_dir" = "X"; then
|
---|
5363 | for x in $LDFLAGS $LTLIBINTL; do
|
---|
5364 |
|
---|
5365 | acl_save_prefix="$prefix"
|
---|
5366 | prefix="$acl_final_prefix"
|
---|
5367 | acl_save_exec_prefix="$exec_prefix"
|
---|
5368 | exec_prefix="$acl_final_exec_prefix"
|
---|
5369 | eval x=\"$x\"
|
---|
5370 | exec_prefix="$acl_save_exec_prefix"
|
---|
5371 | prefix="$acl_save_prefix"
|
---|
5372 |
|
---|
5373 | case "$x" in
|
---|
5374 | -L*)
|
---|
5375 | dir=`echo "X$x" | sed -e 's/^X-L//'`
|
---|
5376 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
|
---|
5377 | found_dir="$dir"
|
---|
5378 | found_so="$dir/lib$name.$shlibext"
|
---|
5379 | if test -f "$dir/lib$name.la"; then
|
---|
5380 | found_la="$dir/lib$name.la"
|
---|
5381 | fi
|
---|
5382 | else
|
---|
5383 | if test -f "$dir/lib$name.$libext"; then
|
---|
5384 | found_dir="$dir"
|
---|
5385 | found_a="$dir/lib$name.$libext"
|
---|
5386 | if test -f "$dir/lib$name.la"; then
|
---|
5387 | found_la="$dir/lib$name.la"
|
---|
5388 | fi
|
---|
5389 | fi
|
---|
5390 | fi
|
---|
5391 | ;;
|
---|
5392 | esac
|
---|
5393 | if test "X$found_dir" != "X"; then
|
---|
5394 | break
|
---|
5395 | fi
|
---|
5396 | done
|
---|
5397 | fi
|
---|
5398 | if test "X$found_dir" != "X"; then
|
---|
5399 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
|
---|
5400 | if test "X$found_so" != "X"; then
|
---|
5401 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
|
---|
5402 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
|
---|
5403 | else
|
---|
5404 | haveit=
|
---|
5405 | for x in $ltrpathdirs; do
|
---|
5406 | if test "X$x" = "X$found_dir"; then
|
---|
5407 | haveit=yes
|
---|
5408 | break
|
---|
5409 | fi
|
---|
5410 | done
|
---|
5411 | if test -z "$haveit"; then
|
---|
5412 | ltrpathdirs="$ltrpathdirs $found_dir"
|
---|
5413 | fi
|
---|
5414 | if test "$hardcode_direct" = yes; then
|
---|
5415 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
|
---|
5416 | else
|
---|
5417 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
|
---|
5418 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
|
---|
5419 | haveit=
|
---|
5420 | for x in $rpathdirs; do
|
---|
5421 | if test "X$x" = "X$found_dir"; then
|
---|
5422 | haveit=yes
|
---|
5423 | break
|
---|
5424 | fi
|
---|
5425 | done
|
---|
5426 | if test -z "$haveit"; then
|
---|
5427 | rpathdirs="$rpathdirs $found_dir"
|
---|
5428 | fi
|
---|
5429 | else
|
---|
5430 | haveit=
|
---|
5431 | for x in $LDFLAGS $LIBINTL; do
|
---|
5432 |
|
---|
5433 | acl_save_prefix="$prefix"
|
---|
5434 | prefix="$acl_final_prefix"
|
---|
5435 | acl_save_exec_prefix="$exec_prefix"
|
---|
5436 | exec_prefix="$acl_final_exec_prefix"
|
---|
5437 | eval x=\"$x\"
|
---|
5438 | exec_prefix="$acl_save_exec_prefix"
|
---|
5439 | prefix="$acl_save_prefix"
|
---|
5440 |
|
---|
5441 | if test "X$x" = "X-L$found_dir"; then
|
---|
5442 | haveit=yes
|
---|
5443 | break
|
---|
5444 | fi
|
---|
5445 | done
|
---|
5446 | if test -z "$haveit"; then
|
---|
5447 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
|
---|
5448 | fi
|
---|
5449 | if test "$hardcode_minus_L" != no; then
|
---|
5450 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
|
---|
5451 | else
|
---|
5452 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
|
---|
5453 | fi
|
---|
5454 | fi
|
---|
5455 | fi
|
---|
5456 | fi
|
---|
5457 | else
|
---|
5458 | if test "X$found_a" != "X"; then
|
---|
5459 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
|
---|
5460 | else
|
---|
5461 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
|
---|
5462 | fi
|
---|
5463 | fi
|
---|
5464 | additional_includedir=
|
---|
5465 | case "$found_dir" in
|
---|
5466 | */lib | */lib/)
|
---|
5467 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
|
---|
5468 | additional_includedir="$basedir/include"
|
---|
5469 | ;;
|
---|
5470 | esac
|
---|
5471 | if test "X$additional_includedir" != "X"; then
|
---|
5472 | if test "X$additional_includedir" != "X/usr/include"; then
|
---|
5473 | haveit=
|
---|
5474 | if test "X$additional_includedir" = "X/usr/local/include"; then
|
---|
5475 | if test -n "$GCC"; then
|
---|
5476 | case $host_os in
|
---|
5477 | linux*) haveit=yes;;
|
---|
5478 | esac
|
---|
5479 | fi
|
---|
5480 | fi
|
---|
5481 | if test -z "$haveit"; then
|
---|
5482 | for x in $CPPFLAGS $INCINTL; do
|
---|
5483 |
|
---|
5484 | acl_save_prefix="$prefix"
|
---|
5485 | prefix="$acl_final_prefix"
|
---|
5486 | acl_save_exec_prefix="$exec_prefix"
|
---|
5487 | exec_prefix="$acl_final_exec_prefix"
|
---|
5488 | eval x=\"$x\"
|
---|
5489 | exec_prefix="$acl_save_exec_prefix"
|
---|
5490 | prefix="$acl_save_prefix"
|
---|
5491 |
|
---|
5492 | if test "X$x" = "X-I$additional_includedir"; then
|
---|
5493 | haveit=yes
|
---|
5494 | break
|
---|
5495 | fi
|
---|
5496 | done
|
---|
5497 | if test -z "$haveit"; then
|
---|
5498 | if test -d "$additional_includedir"; then
|
---|
5499 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
|
---|
5500 | fi
|
---|
5501 | fi
|
---|
5502 | fi
|
---|
5503 | fi
|
---|
5504 | fi
|
---|
5505 | if test -n "$found_la"; then
|
---|
5506 | save_libdir="$libdir"
|
---|
5507 | case "$found_la" in
|
---|
5508 | */* | *\\*) . "$found_la" ;;
|
---|
5509 | *) . "./$found_la" ;;
|
---|
5510 | esac
|
---|
5511 | libdir="$save_libdir"
|
---|
5512 | for dep in $dependency_libs; do
|
---|
5513 | case "$dep" in
|
---|
5514 | -L*)
|
---|
5515 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
---|
5516 | if test "X$additional_libdir" != "X/usr/lib"; then
|
---|
5517 | haveit=
|
---|
5518 | if test "X$additional_libdir" = "X/usr/local/lib"; then
|
---|
5519 | if test -n "$GCC"; then
|
---|
5520 | case $host_os in
|
---|
5521 | linux*) haveit=yes;;
|
---|
5522 | esac
|
---|
5523 | fi
|
---|
5524 | fi
|
---|
5525 | if test -z "$haveit"; then
|
---|
5526 | haveit=
|
---|
5527 | for x in $LDFLAGS $LIBINTL; do
|
---|
5528 |
|
---|
5529 | acl_save_prefix="$prefix"
|
---|
5530 | prefix="$acl_final_prefix"
|
---|
5531 | acl_save_exec_prefix="$exec_prefix"
|
---|
5532 | exec_prefix="$acl_final_exec_prefix"
|
---|
5533 | eval x=\"$x\"
|
---|
5534 | exec_prefix="$acl_save_exec_prefix"
|
---|
5535 | prefix="$acl_save_prefix"
|
---|
5536 |
|
---|
5537 | if test "X$x" = "X-L$additional_libdir"; then
|
---|
5538 | haveit=yes
|
---|
5539 | break
|
---|
5540 | fi
|
---|
5541 | done
|
---|
5542 | if test -z "$haveit"; then
|
---|
5543 | if test -d "$additional_libdir"; then
|
---|
5544 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
|
---|
5545 | fi
|
---|
5546 | fi
|
---|
5547 | haveit=
|
---|
5548 | for x in $LDFLAGS $LTLIBINTL; do
|
---|
5549 |
|
---|
5550 | acl_save_prefix="$prefix"
|
---|
5551 | prefix="$acl_final_prefix"
|
---|
5552 | acl_save_exec_prefix="$exec_prefix"
|
---|
5553 | exec_prefix="$acl_final_exec_prefix"
|
---|
5554 | eval x=\"$x\"
|
---|
5555 | exec_prefix="$acl_save_exec_prefix"
|
---|
5556 | prefix="$acl_save_prefix"
|
---|
5557 |
|
---|
5558 | if test "X$x" = "X-L$additional_libdir"; then
|
---|
5559 | haveit=yes
|
---|
5560 | break
|
---|
5561 | fi
|
---|
5562 | done
|
---|
5563 | if test -z "$haveit"; then
|
---|
5564 | if test -d "$additional_libdir"; then
|
---|
5565 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
|
---|
5566 | fi
|
---|
5567 | fi
|
---|
5568 | fi
|
---|
5569 | fi
|
---|
5570 | ;;
|
---|
5571 | -R*)
|
---|
5572 | dir=`echo "X$dep" | sed -e 's/^X-R//'`
|
---|
5573 | if test "$enable_rpath" != no; then
|
---|
5574 | haveit=
|
---|
5575 | for x in $rpathdirs; do
|
---|
5576 | if test "X$x" = "X$dir"; then
|
---|
5577 | haveit=yes
|
---|
5578 | break
|
---|
5579 | fi
|
---|
5580 | done
|
---|
5581 | if test -z "$haveit"; then
|
---|
5582 | rpathdirs="$rpathdirs $dir"
|
---|
5583 | fi
|
---|
5584 | haveit=
|
---|
5585 | for x in $ltrpathdirs; do
|
---|
5586 | if test "X$x" = "X$dir"; then
|
---|
5587 | haveit=yes
|
---|
5588 | break
|
---|
5589 | fi
|
---|
5590 | done
|
---|
5591 | if test -z "$haveit"; then
|
---|
5592 | ltrpathdirs="$ltrpathdirs $dir"
|
---|
5593 | fi
|
---|
5594 | fi
|
---|
5595 | ;;
|
---|
5596 | -l*)
|
---|
5597 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
|
---|
5598 | ;;
|
---|
5599 | *.la)
|
---|
5600 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
|
---|
5601 | ;;
|
---|
5602 | *)
|
---|
5603 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
|
---|
5604 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
|
---|
5605 | ;;
|
---|
5606 | esac
|
---|
5607 | done
|
---|
5608 | fi
|
---|
5609 | else
|
---|
5610 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
|
---|
5611 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
|
---|
5612 | fi
|
---|
5613 | fi
|
---|
5614 | fi
|
---|
5615 | done
|
---|
5616 | done
|
---|
5617 | if test "X$rpathdirs" != "X"; then
|
---|
5618 | if test -n "$hardcode_libdir_separator"; then
|
---|
5619 | alldirs=
|
---|
5620 | for found_dir in $rpathdirs; do
|
---|
5621 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
|
---|
5622 | done
|
---|
5623 | acl_save_libdir="$libdir"
|
---|
5624 | libdir="$alldirs"
|
---|
5625 | eval flag=\"$hardcode_libdir_flag_spec\"
|
---|
5626 | libdir="$acl_save_libdir"
|
---|
5627 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
|
---|
5628 | else
|
---|
5629 | for found_dir in $rpathdirs; do
|
---|
5630 | acl_save_libdir="$libdir"
|
---|
5631 | libdir="$found_dir"
|
---|
5632 | eval flag=\"$hardcode_libdir_flag_spec\"
|
---|
5633 | libdir="$acl_save_libdir"
|
---|
5634 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
|
---|
5635 | done
|
---|
5636 | fi
|
---|
5637 | fi
|
---|
5638 | if test "X$ltrpathdirs" != "X"; then
|
---|
5639 | for found_dir in $ltrpathdirs; do
|
---|
5640 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
|
---|
5641 | done
|
---|
5642 | fi
|
---|
5643 |
|
---|
5644 | echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
|
---|
5645 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
|
---|
5646 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
|
---|
5647 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5648 | else
|
---|
5649 | gt_save_CPPFLAGS="$CPPFLAGS"
|
---|
5650 | CPPFLAGS="$CPPFLAGS $INCINTL"
|
---|
5651 | gt_save_LIBS="$LIBS"
|
---|
5652 | LIBS="$LIBS $LIBINTL"
|
---|
5653 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5654 | /* confdefs.h. */
|
---|
5655 | _ACEOF
|
---|
5656 | cat confdefs.h >>conftest.$ac_ext
|
---|
5657 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5658 | /* end confdefs.h. */
|
---|
5659 | #include <libintl.h>
|
---|
5660 | extern int _nl_msg_cat_cntr;
|
---|
5661 | extern
|
---|
5662 | #ifdef __cplusplus
|
---|
5663 | "C"
|
---|
5664 | #endif
|
---|
5665 | const char *_nl_expand_alias ();
|
---|
5666 | int
|
---|
5667 | main ()
|
---|
5668 | {
|
---|
5669 | bindtextdomain ("", "");
|
---|
5670 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
|
---|
5671 | ;
|
---|
5672 | return 0;
|
---|
5673 | }
|
---|
5674 | _ACEOF
|
---|
5675 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5677 | (eval $ac_link) 2>conftest.er1
|
---|
5678 | ac_status=$?
|
---|
5679 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5680 | rm -f conftest.er1
|
---|
5681 | cat conftest.err >&5
|
---|
5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5683 | (exit $ac_status); } &&
|
---|
5684 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5685 | || test ! -s conftest.err'
|
---|
5686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5687 | (eval $ac_try) 2>&5
|
---|
5688 | ac_status=$?
|
---|
5689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5690 | (exit $ac_status); }; } &&
|
---|
5691 | { ac_try='test -s conftest$ac_exeext'
|
---|
5692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5693 | (eval $ac_try) 2>&5
|
---|
5694 | ac_status=$?
|
---|
5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5696 | (exit $ac_status); }; }; then
|
---|
5697 | gt_cv_func_gnugettext1_libintl=yes
|
---|
5698 | else
|
---|
5699 | echo "$as_me: failed program was:" >&5
|
---|
5700 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5701 |
|
---|
5702 | gt_cv_func_gnugettext1_libintl=no
|
---|
5703 | fi
|
---|
5704 | rm -f conftest.err conftest.$ac_objext \
|
---|
5705 | conftest$ac_exeext conftest.$ac_ext
|
---|
5706 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
|
---|
5707 | LIBS="$LIBS $LIBICONV"
|
---|
5708 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5709 | /* confdefs.h. */
|
---|
5710 | _ACEOF
|
---|
5711 | cat confdefs.h >>conftest.$ac_ext
|
---|
5712 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5713 | /* end confdefs.h. */
|
---|
5714 | #include <libintl.h>
|
---|
5715 | extern int _nl_msg_cat_cntr;
|
---|
5716 | extern
|
---|
5717 | #ifdef __cplusplus
|
---|
5718 | "C"
|
---|
5719 | #endif
|
---|
5720 | const char *_nl_expand_alias ();
|
---|
5721 | int
|
---|
5722 | main ()
|
---|
5723 | {
|
---|
5724 | bindtextdomain ("", "");
|
---|
5725 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
|
---|
5726 | ;
|
---|
5727 | return 0;
|
---|
5728 | }
|
---|
5729 | _ACEOF
|
---|
5730 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5732 | (eval $ac_link) 2>conftest.er1
|
---|
5733 | ac_status=$?
|
---|
5734 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5735 | rm -f conftest.er1
|
---|
5736 | cat conftest.err >&5
|
---|
5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5738 | (exit $ac_status); } &&
|
---|
5739 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5740 | || test ! -s conftest.err'
|
---|
5741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5742 | (eval $ac_try) 2>&5
|
---|
5743 | ac_status=$?
|
---|
5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5745 | (exit $ac_status); }; } &&
|
---|
5746 | { ac_try='test -s conftest$ac_exeext'
|
---|
5747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5748 | (eval $ac_try) 2>&5
|
---|
5749 | ac_status=$?
|
---|
5750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5751 | (exit $ac_status); }; }; then
|
---|
5752 | LIBINTL="$LIBINTL $LIBICONV"
|
---|
5753 | LTLIBINTL="$LTLIBINTL $LTLIBICONV"
|
---|
5754 | gt_cv_func_gnugettext1_libintl=yes
|
---|
5755 |
|
---|
5756 | else
|
---|
5757 | echo "$as_me: failed program was:" >&5
|
---|
5758 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5759 |
|
---|
5760 | fi
|
---|
5761 | rm -f conftest.err conftest.$ac_objext \
|
---|
5762 | conftest$ac_exeext conftest.$ac_ext
|
---|
5763 | fi
|
---|
5764 | CPPFLAGS="$gt_save_CPPFLAGS"
|
---|
5765 | LIBS="$gt_save_LIBS"
|
---|
5766 | fi
|
---|
5767 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
|
---|
5768 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
|
---|
5769 | fi
|
---|
5770 |
|
---|
5771 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \
|
---|
5772 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
|
---|
5773 | && test "$PACKAGE" != gettext-runtime \
|
---|
5774 | && test "$PACKAGE" != gettext-tools; }; then
|
---|
5775 | gt_use_preinstalled_gnugettext=yes
|
---|
5776 | else
|
---|
5777 | LIBINTL=
|
---|
5778 | LTLIBINTL=
|
---|
5779 | INCINTL=
|
---|
5780 | fi
|
---|
5781 |
|
---|
5782 |
|
---|
5783 |
|
---|
5784 | if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
---|
5785 | || test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
5786 |
|
---|
5787 | cat >>confdefs.h <<\_ACEOF
|
---|
5788 | #define ENABLE_NLS 1
|
---|
5789 | _ACEOF
|
---|
5790 |
|
---|
5791 | else
|
---|
5792 | USE_NLS=no
|
---|
5793 | fi
|
---|
5794 | fi
|
---|
5795 |
|
---|
5796 | echo "$as_me:$LINENO: checking whether to use NLS" >&5
|
---|
5797 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
|
---|
5798 | echo "$as_me:$LINENO: result: $USE_NLS" >&5
|
---|
5799 | echo "${ECHO_T}$USE_NLS" >&6
|
---|
5800 | if test "$USE_NLS" = "yes"; then
|
---|
5801 | echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
|
---|
5802 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
|
---|
5803 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then
|
---|
5804 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
|
---|
5805 | gt_source="external libintl"
|
---|
5806 | else
|
---|
5807 | gt_source="libc"
|
---|
5808 | fi
|
---|
5809 | else
|
---|
5810 | gt_source="included intl directory"
|
---|
5811 | fi
|
---|
5812 | echo "$as_me:$LINENO: result: $gt_source" >&5
|
---|
5813 | echo "${ECHO_T}$gt_source" >&6
|
---|
5814 | fi
|
---|
5815 |
|
---|
5816 | if test "$USE_NLS" = "yes"; then
|
---|
5817 |
|
---|
5818 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then
|
---|
5819 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
|
---|
5820 | echo "$as_me:$LINENO: checking how to link with libintl" >&5
|
---|
5821 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
|
---|
5822 | echo "$as_me:$LINENO: result: $LIBINTL" >&5
|
---|
5823 | echo "${ECHO_T}$LIBINTL" >&6
|
---|
5824 |
|
---|
5825 | for element in $INCINTL; do
|
---|
5826 | haveit=
|
---|
5827 | for x in $CPPFLAGS; do
|
---|
5828 |
|
---|
5829 | acl_save_prefix="$prefix"
|
---|
5830 | prefix="$acl_final_prefix"
|
---|
5831 | acl_save_exec_prefix="$exec_prefix"
|
---|
5832 | exec_prefix="$acl_final_exec_prefix"
|
---|
5833 | eval x=\"$x\"
|
---|
5834 | exec_prefix="$acl_save_exec_prefix"
|
---|
5835 | prefix="$acl_save_prefix"
|
---|
5836 |
|
---|
5837 | if test "X$x" = "X$element"; then
|
---|
5838 | haveit=yes
|
---|
5839 | break
|
---|
5840 | fi
|
---|
5841 | done
|
---|
5842 | if test -z "$haveit"; then
|
---|
5843 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
|
---|
5844 | fi
|
---|
5845 | done
|
---|
5846 |
|
---|
5847 | fi
|
---|
5848 |
|
---|
5849 |
|
---|
5850 | cat >>confdefs.h <<\_ACEOF
|
---|
5851 | #define HAVE_GETTEXT 1
|
---|
5852 | _ACEOF
|
---|
5853 |
|
---|
5854 |
|
---|
5855 | cat >>confdefs.h <<\_ACEOF
|
---|
5856 | #define HAVE_DCGETTEXT 1
|
---|
5857 | _ACEOF
|
---|
5858 |
|
---|
5859 | fi
|
---|
5860 |
|
---|
5861 | POSUB=po
|
---|
5862 | fi
|
---|
5863 |
|
---|
5864 |
|
---|
5865 |
|
---|
5866 | INTLLIBS="$LIBINTL"
|
---|
5867 |
|
---|
5868 |
|
---|
5869 |
|
---|
5870 |
|
---|
5871 |
|
---|
5872 |
|
---|
5873 |
|
---|
5874 | # This test must come as early as possible after the compiler configuration
|
---|
5875 | # tests, because the choice of the file model can (in principle) affect
|
---|
5876 | # whether functions and headers are available, whether they work, etc.
|
---|
5877 | # Check whether --enable-largefile or --disable-largefile was given.
|
---|
5878 | if test "${enable_largefile+set}" = set; then
|
---|
5879 | enableval="$enable_largefile"
|
---|
5880 |
|
---|
5881 | fi;
|
---|
5882 | if test "$enable_largefile" != no; then
|
---|
5883 |
|
---|
5884 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
|
---|
5885 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
|
---|
5886 | if test "${ac_cv_sys_largefile_CC+set}" = set; then
|
---|
5887 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5888 | else
|
---|
5889 | ac_cv_sys_largefile_CC=no
|
---|
5890 | if test "$GCC" != yes; then
|
---|
5891 | ac_save_CC=$CC
|
---|
5892 | while :; do
|
---|
5893 | # IRIX 6.2 and later do not support large files by default,
|
---|
5894 | # so use the C compiler's -n32 option if that helps.
|
---|
5895 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5896 | /* confdefs.h. */
|
---|
5897 | _ACEOF
|
---|
5898 | cat confdefs.h >>conftest.$ac_ext
|
---|
5899 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5900 | /* end confdefs.h. */
|
---|
5901 | #include <sys/types.h>
|
---|
5902 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
5903 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
5904 | since some C++ compilers masquerading as C compilers
|
---|
5905 | incorrectly reject 9223372036854775807. */
|
---|
5906 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
5907 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
5908 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
5909 | ? 1 : -1];
|
---|
5910 | int
|
---|
5911 | main ()
|
---|
5912 | {
|
---|
5913 |
|
---|
5914 | ;
|
---|
5915 | return 0;
|
---|
5916 | }
|
---|
5917 | _ACEOF
|
---|
5918 | rm -f conftest.$ac_objext
|
---|
5919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5920 | (eval $ac_compile) 2>conftest.er1
|
---|
5921 | ac_status=$?
|
---|
5922 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5923 | rm -f conftest.er1
|
---|
5924 | cat conftest.err >&5
|
---|
5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5926 | (exit $ac_status); } &&
|
---|
5927 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5928 | || test ! -s conftest.err'
|
---|
5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5930 | (eval $ac_try) 2>&5
|
---|
5931 | ac_status=$?
|
---|
5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5933 | (exit $ac_status); }; } &&
|
---|
5934 | { ac_try='test -s conftest.$ac_objext'
|
---|
5935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5936 | (eval $ac_try) 2>&5
|
---|
5937 | ac_status=$?
|
---|
5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5939 | (exit $ac_status); }; }; then
|
---|
5940 | break
|
---|
5941 | else
|
---|
5942 | echo "$as_me: failed program was:" >&5
|
---|
5943 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5944 |
|
---|
5945 | fi
|
---|
5946 | rm -f conftest.err conftest.$ac_objext
|
---|
5947 | CC="$CC -n32"
|
---|
5948 | rm -f conftest.$ac_objext
|
---|
5949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5950 | (eval $ac_compile) 2>conftest.er1
|
---|
5951 | ac_status=$?
|
---|
5952 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5953 | rm -f conftest.er1
|
---|
5954 | cat conftest.err >&5
|
---|
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5956 | (exit $ac_status); } &&
|
---|
5957 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5958 | || test ! -s conftest.err'
|
---|
5959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5960 | (eval $ac_try) 2>&5
|
---|
5961 | ac_status=$?
|
---|
5962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5963 | (exit $ac_status); }; } &&
|
---|
5964 | { ac_try='test -s conftest.$ac_objext'
|
---|
5965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5966 | (eval $ac_try) 2>&5
|
---|
5967 | ac_status=$?
|
---|
5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5969 | (exit $ac_status); }; }; then
|
---|
5970 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
5971 | else
|
---|
5972 | echo "$as_me: failed program was:" >&5
|
---|
5973 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5974 |
|
---|
5975 | fi
|
---|
5976 | rm -f conftest.err conftest.$ac_objext
|
---|
5977 | break
|
---|
5978 | done
|
---|
5979 | CC=$ac_save_CC
|
---|
5980 | rm -f conftest.$ac_ext
|
---|
5981 | fi
|
---|
5982 | fi
|
---|
5983 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
|
---|
5984 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
|
---|
5985 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
5986 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
5987 | fi
|
---|
5988 |
|
---|
5989 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
5990 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
|
---|
5991 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then
|
---|
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5993 | else
|
---|
5994 | while :; do
|
---|
5995 | ac_cv_sys_file_offset_bits=no
|
---|
5996 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5997 | /* confdefs.h. */
|
---|
5998 | _ACEOF
|
---|
5999 | cat confdefs.h >>conftest.$ac_ext
|
---|
6000 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6001 | /* end confdefs.h. */
|
---|
6002 | #include <sys/types.h>
|
---|
6003 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6004 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6005 | since some C++ compilers masquerading as C compilers
|
---|
6006 | incorrectly reject 9223372036854775807. */
|
---|
6007 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6008 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6009 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6010 | ? 1 : -1];
|
---|
6011 | int
|
---|
6012 | main ()
|
---|
6013 | {
|
---|
6014 |
|
---|
6015 | ;
|
---|
6016 | return 0;
|
---|
6017 | }
|
---|
6018 | _ACEOF
|
---|
6019 | rm -f conftest.$ac_objext
|
---|
6020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6021 | (eval $ac_compile) 2>conftest.er1
|
---|
6022 | ac_status=$?
|
---|
6023 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6024 | rm -f conftest.er1
|
---|
6025 | cat conftest.err >&5
|
---|
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6027 | (exit $ac_status); } &&
|
---|
6028 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6029 | || test ! -s conftest.err'
|
---|
6030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6031 | (eval $ac_try) 2>&5
|
---|
6032 | ac_status=$?
|
---|
6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6034 | (exit $ac_status); }; } &&
|
---|
6035 | { ac_try='test -s conftest.$ac_objext'
|
---|
6036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6037 | (eval $ac_try) 2>&5
|
---|
6038 | ac_status=$?
|
---|
6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6040 | (exit $ac_status); }; }; then
|
---|
6041 | break
|
---|
6042 | else
|
---|
6043 | echo "$as_me: failed program was:" >&5
|
---|
6044 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6045 |
|
---|
6046 | fi
|
---|
6047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6048 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6049 | /* confdefs.h. */
|
---|
6050 | _ACEOF
|
---|
6051 | cat confdefs.h >>conftest.$ac_ext
|
---|
6052 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6053 | /* end confdefs.h. */
|
---|
6054 | #define _FILE_OFFSET_BITS 64
|
---|
6055 | #include <sys/types.h>
|
---|
6056 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6057 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6058 | since some C++ compilers masquerading as C compilers
|
---|
6059 | incorrectly reject 9223372036854775807. */
|
---|
6060 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6061 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6062 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6063 | ? 1 : -1];
|
---|
6064 | int
|
---|
6065 | main ()
|
---|
6066 | {
|
---|
6067 |
|
---|
6068 | ;
|
---|
6069 | return 0;
|
---|
6070 | }
|
---|
6071 | _ACEOF
|
---|
6072 | rm -f conftest.$ac_objext
|
---|
6073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6074 | (eval $ac_compile) 2>conftest.er1
|
---|
6075 | ac_status=$?
|
---|
6076 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6077 | rm -f conftest.er1
|
---|
6078 | cat conftest.err >&5
|
---|
6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6080 | (exit $ac_status); } &&
|
---|
6081 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6082 | || test ! -s conftest.err'
|
---|
6083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6084 | (eval $ac_try) 2>&5
|
---|
6085 | ac_status=$?
|
---|
6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6087 | (exit $ac_status); }; } &&
|
---|
6088 | { ac_try='test -s conftest.$ac_objext'
|
---|
6089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6090 | (eval $ac_try) 2>&5
|
---|
6091 | ac_status=$?
|
---|
6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6093 | (exit $ac_status); }; }; then
|
---|
6094 | ac_cv_sys_file_offset_bits=64; break
|
---|
6095 | else
|
---|
6096 | echo "$as_me: failed program was:" >&5
|
---|
6097 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6098 |
|
---|
6099 | fi
|
---|
6100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6101 | break
|
---|
6102 | done
|
---|
6103 | fi
|
---|
6104 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
6105 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
|
---|
6106 | if test "$ac_cv_sys_file_offset_bits" != no; then
|
---|
6107 |
|
---|
6108 | cat >>confdefs.h <<_ACEOF
|
---|
6109 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
6110 | _ACEOF
|
---|
6111 |
|
---|
6112 | fi
|
---|
6113 | rm -f conftest*
|
---|
6114 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
|
---|
6115 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
|
---|
6116 | if test "${ac_cv_sys_large_files+set}" = set; then
|
---|
6117 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6118 | else
|
---|
6119 | while :; do
|
---|
6120 | ac_cv_sys_large_files=no
|
---|
6121 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6122 | /* confdefs.h. */
|
---|
6123 | _ACEOF
|
---|
6124 | cat confdefs.h >>conftest.$ac_ext
|
---|
6125 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6126 | /* end confdefs.h. */
|
---|
6127 | #include <sys/types.h>
|
---|
6128 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6129 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6130 | since some C++ compilers masquerading as C compilers
|
---|
6131 | incorrectly reject 9223372036854775807. */
|
---|
6132 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6133 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6134 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6135 | ? 1 : -1];
|
---|
6136 | int
|
---|
6137 | main ()
|
---|
6138 | {
|
---|
6139 |
|
---|
6140 | ;
|
---|
6141 | return 0;
|
---|
6142 | }
|
---|
6143 | _ACEOF
|
---|
6144 | rm -f conftest.$ac_objext
|
---|
6145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6146 | (eval $ac_compile) 2>conftest.er1
|
---|
6147 | ac_status=$?
|
---|
6148 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6149 | rm -f conftest.er1
|
---|
6150 | cat conftest.err >&5
|
---|
6151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6152 | (exit $ac_status); } &&
|
---|
6153 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6154 | || test ! -s conftest.err'
|
---|
6155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6156 | (eval $ac_try) 2>&5
|
---|
6157 | ac_status=$?
|
---|
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6159 | (exit $ac_status); }; } &&
|
---|
6160 | { ac_try='test -s conftest.$ac_objext'
|
---|
6161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6162 | (eval $ac_try) 2>&5
|
---|
6163 | ac_status=$?
|
---|
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6165 | (exit $ac_status); }; }; then
|
---|
6166 | break
|
---|
6167 | else
|
---|
6168 | echo "$as_me: failed program was:" >&5
|
---|
6169 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6170 |
|
---|
6171 | fi
|
---|
6172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6173 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6174 | /* confdefs.h. */
|
---|
6175 | _ACEOF
|
---|
6176 | cat confdefs.h >>conftest.$ac_ext
|
---|
6177 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6178 | /* end confdefs.h. */
|
---|
6179 | #define _LARGE_FILES 1
|
---|
6180 | #include <sys/types.h>
|
---|
6181 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6182 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6183 | since some C++ compilers masquerading as C compilers
|
---|
6184 | incorrectly reject 9223372036854775807. */
|
---|
6185 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6186 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6187 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6188 | ? 1 : -1];
|
---|
6189 | int
|
---|
6190 | main ()
|
---|
6191 | {
|
---|
6192 |
|
---|
6193 | ;
|
---|
6194 | return 0;
|
---|
6195 | }
|
---|
6196 | _ACEOF
|
---|
6197 | rm -f conftest.$ac_objext
|
---|
6198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6199 | (eval $ac_compile) 2>conftest.er1
|
---|
6200 | ac_status=$?
|
---|
6201 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6202 | rm -f conftest.er1
|
---|
6203 | cat conftest.err >&5
|
---|
6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6205 | (exit $ac_status); } &&
|
---|
6206 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6207 | || test ! -s conftest.err'
|
---|
6208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6209 | (eval $ac_try) 2>&5
|
---|
6210 | ac_status=$?
|
---|
6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6212 | (exit $ac_status); }; } &&
|
---|
6213 | { ac_try='test -s conftest.$ac_objext'
|
---|
6214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6215 | (eval $ac_try) 2>&5
|
---|
6216 | ac_status=$?
|
---|
6217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6218 | (exit $ac_status); }; }; then
|
---|
6219 | ac_cv_sys_large_files=1; break
|
---|
6220 | else
|
---|
6221 | echo "$as_me: failed program was:" >&5
|
---|
6222 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6223 |
|
---|
6224 | fi
|
---|
6225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6226 | break
|
---|
6227 | done
|
---|
6228 | fi
|
---|
6229 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
|
---|
6230 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6
|
---|
6231 | if test "$ac_cv_sys_large_files" != no; then
|
---|
6232 |
|
---|
6233 | cat >>confdefs.h <<_ACEOF
|
---|
6234 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
6235 | _ACEOF
|
---|
6236 |
|
---|
6237 | fi
|
---|
6238 | rm -f conftest*
|
---|
6239 | fi
|
---|
6240 |
|
---|
6241 |
|
---|
6242 | # Checks for libraries.
|
---|
6243 | echo "$as_me:$LINENO: checking for library containing getpwnam" >&5
|
---|
6244 | echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6
|
---|
6245 | if test "${ac_cv_search_getpwnam+set}" = set; then
|
---|
6246 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6247 | else
|
---|
6248 | ac_func_search_save_LIBS=$LIBS
|
---|
6249 | ac_cv_search_getpwnam=no
|
---|
6250 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6251 | /* confdefs.h. */
|
---|
6252 | _ACEOF
|
---|
6253 | cat confdefs.h >>conftest.$ac_ext
|
---|
6254 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6255 | /* end confdefs.h. */
|
---|
6256 |
|
---|
6257 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6258 | #ifdef __cplusplus
|
---|
6259 | extern "C"
|
---|
6260 | #endif
|
---|
6261 | /* We use char because int might match the return type of a gcc2
|
---|
6262 | builtin and then its argument prototype would still apply. */
|
---|
6263 | char getpwnam ();
|
---|
6264 | int
|
---|
6265 | main ()
|
---|
6266 | {
|
---|
6267 | getpwnam ();
|
---|
6268 | ;
|
---|
6269 | return 0;
|
---|
6270 | }
|
---|
6271 | _ACEOF
|
---|
6272 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6274 | (eval $ac_link) 2>conftest.er1
|
---|
6275 | ac_status=$?
|
---|
6276 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6277 | rm -f conftest.er1
|
---|
6278 | cat conftest.err >&5
|
---|
6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6280 | (exit $ac_status); } &&
|
---|
6281 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6282 | || test ! -s conftest.err'
|
---|
6283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6284 | (eval $ac_try) 2>&5
|
---|
6285 | ac_status=$?
|
---|
6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6287 | (exit $ac_status); }; } &&
|
---|
6288 | { ac_try='test -s conftest$ac_exeext'
|
---|
6289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6290 | (eval $ac_try) 2>&5
|
---|
6291 | ac_status=$?
|
---|
6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6293 | (exit $ac_status); }; }; then
|
---|
6294 | ac_cv_search_getpwnam="none required"
|
---|
6295 | else
|
---|
6296 | echo "$as_me: failed program was:" >&5
|
---|
6297 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6298 |
|
---|
6299 | fi
|
---|
6300 | rm -f conftest.err conftest.$ac_objext \
|
---|
6301 | conftest$ac_exeext conftest.$ac_ext
|
---|
6302 | if test "$ac_cv_search_getpwnam" = no; then
|
---|
6303 | for ac_lib in sun; do
|
---|
6304 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6305 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6306 | /* confdefs.h. */
|
---|
6307 | _ACEOF
|
---|
6308 | cat confdefs.h >>conftest.$ac_ext
|
---|
6309 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6310 | /* end confdefs.h. */
|
---|
6311 |
|
---|
6312 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6313 | #ifdef __cplusplus
|
---|
6314 | extern "C"
|
---|
6315 | #endif
|
---|
6316 | /* We use char because int might match the return type of a gcc2
|
---|
6317 | builtin and then its argument prototype would still apply. */
|
---|
6318 | char getpwnam ();
|
---|
6319 | int
|
---|
6320 | main ()
|
---|
6321 | {
|
---|
6322 | getpwnam ();
|
---|
6323 | ;
|
---|
6324 | return 0;
|
---|
6325 | }
|
---|
6326 | _ACEOF
|
---|
6327 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6329 | (eval $ac_link) 2>conftest.er1
|
---|
6330 | ac_status=$?
|
---|
6331 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6332 | rm -f conftest.er1
|
---|
6333 | cat conftest.err >&5
|
---|
6334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6335 | (exit $ac_status); } &&
|
---|
6336 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6337 | || test ! -s conftest.err'
|
---|
6338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6339 | (eval $ac_try) 2>&5
|
---|
6340 | ac_status=$?
|
---|
6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6342 | (exit $ac_status); }; } &&
|
---|
6343 | { ac_try='test -s conftest$ac_exeext'
|
---|
6344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6345 | (eval $ac_try) 2>&5
|
---|
6346 | ac_status=$?
|
---|
6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6348 | (exit $ac_status); }; }; then
|
---|
6349 | ac_cv_search_getpwnam="-l$ac_lib"
|
---|
6350 | break
|
---|
6351 | else
|
---|
6352 | echo "$as_me: failed program was:" >&5
|
---|
6353 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6354 |
|
---|
6355 | fi
|
---|
6356 | rm -f conftest.err conftest.$ac_objext \
|
---|
6357 | conftest$ac_exeext conftest.$ac_ext
|
---|
6358 | done
|
---|
6359 | fi
|
---|
6360 | LIBS=$ac_func_search_save_LIBS
|
---|
6361 | fi
|
---|
6362 | echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5
|
---|
6363 | echo "${ECHO_T}$ac_cv_search_getpwnam" >&6
|
---|
6364 | if test "$ac_cv_search_getpwnam" != no; then
|
---|
6365 | test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS"
|
---|
6366 |
|
---|
6367 | fi
|
---|
6368 |
|
---|
6369 |
|
---|
6370 | # Checks for header files.
|
---|
6371 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
6372 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
6373 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
6374 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6375 | else
|
---|
6376 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6377 | /* confdefs.h. */
|
---|
6378 | _ACEOF
|
---|
6379 | cat confdefs.h >>conftest.$ac_ext
|
---|
6380 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6381 | /* end confdefs.h. */
|
---|
6382 | #include <stdlib.h>
|
---|
6383 | #include <stdarg.h>
|
---|
6384 | #include <string.h>
|
---|
6385 | #include <float.h>
|
---|
6386 |
|
---|
6387 | int
|
---|
6388 | main ()
|
---|
6389 | {
|
---|
6390 |
|
---|
6391 | ;
|
---|
6392 | return 0;
|
---|
6393 | }
|
---|
6394 | _ACEOF
|
---|
6395 | rm -f conftest.$ac_objext
|
---|
6396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6397 | (eval $ac_compile) 2>conftest.er1
|
---|
6398 | ac_status=$?
|
---|
6399 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6400 | rm -f conftest.er1
|
---|
6401 | cat conftest.err >&5
|
---|
6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6403 | (exit $ac_status); } &&
|
---|
6404 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6405 | || test ! -s conftest.err'
|
---|
6406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6407 | (eval $ac_try) 2>&5
|
---|
6408 | ac_status=$?
|
---|
6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6410 | (exit $ac_status); }; } &&
|
---|
6411 | { ac_try='test -s conftest.$ac_objext'
|
---|
6412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6413 | (eval $ac_try) 2>&5
|
---|
6414 | ac_status=$?
|
---|
6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6416 | (exit $ac_status); }; }; then
|
---|
6417 | ac_cv_header_stdc=yes
|
---|
6418 | else
|
---|
6419 | echo "$as_me: failed program was:" >&5
|
---|
6420 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6421 |
|
---|
6422 | ac_cv_header_stdc=no
|
---|
6423 | fi
|
---|
6424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6425 |
|
---|
6426 | if test $ac_cv_header_stdc = yes; then
|
---|
6427 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
6428 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6429 | /* confdefs.h. */
|
---|
6430 | _ACEOF
|
---|
6431 | cat confdefs.h >>conftest.$ac_ext
|
---|
6432 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6433 | /* end confdefs.h. */
|
---|
6434 | #include <string.h>
|
---|
6435 |
|
---|
6436 | _ACEOF
|
---|
6437 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6438 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
6439 | :
|
---|
6440 | else
|
---|
6441 | ac_cv_header_stdc=no
|
---|
6442 | fi
|
---|
6443 | rm -f conftest*
|
---|
6444 |
|
---|
6445 | fi
|
---|
6446 |
|
---|
6447 | if test $ac_cv_header_stdc = yes; then
|
---|
6448 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
6449 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6450 | /* confdefs.h. */
|
---|
6451 | _ACEOF
|
---|
6452 | cat confdefs.h >>conftest.$ac_ext
|
---|
6453 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6454 | /* end confdefs.h. */
|
---|
6455 | #include <stdlib.h>
|
---|
6456 |
|
---|
6457 | _ACEOF
|
---|
6458 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6459 | $EGREP "free" >/dev/null 2>&1; then
|
---|
6460 | :
|
---|
6461 | else
|
---|
6462 | ac_cv_header_stdc=no
|
---|
6463 | fi
|
---|
6464 | rm -f conftest*
|
---|
6465 |
|
---|
6466 | fi
|
---|
6467 |
|
---|
6468 | if test $ac_cv_header_stdc = yes; then
|
---|
6469 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
6470 | if test "$cross_compiling" = yes; then
|
---|
6471 | :
|
---|
6472 | else
|
---|
6473 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6474 | /* confdefs.h. */
|
---|
6475 | _ACEOF
|
---|
6476 | cat confdefs.h >>conftest.$ac_ext
|
---|
6477 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6478 | /* end confdefs.h. */
|
---|
6479 | #include <ctype.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)))
|
---|
6492 | int
|
---|
6493 | main ()
|
---|
6494 | {
|
---|
6495 | int i;
|
---|
6496 | for (i = 0; i < 256; i++)
|
---|
6497 | if (XOR (islower (i), ISLOWER (i))
|
---|
6498 | || toupper (i) != TOUPPER (i))
|
---|
6499 | exit(2);
|
---|
6500 | exit (0);
|
---|
6501 | }
|
---|
6502 | _ACEOF
|
---|
6503 | rm -f conftest$ac_exeext
|
---|
6504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6505 | (eval $ac_link) 2>&5
|
---|
6506 | ac_status=$?
|
---|
6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6510 | (eval $ac_try) 2>&5
|
---|
6511 | ac_status=$?
|
---|
6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6513 | (exit $ac_status); }; }; then
|
---|
6514 | :
|
---|
6515 | else
|
---|
6516 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
6517 | echo "$as_me: failed program was:" >&5
|
---|
6518 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6519 |
|
---|
6520 | ( exit $ac_status )
|
---|
6521 | ac_cv_header_stdc=no
|
---|
6522 | fi
|
---|
6523 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
6524 | fi
|
---|
6525 | fi
|
---|
6526 | fi
|
---|
6527 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
6528 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
6529 | if test $ac_cv_header_stdc = yes; then
|
---|
6530 |
|
---|
6531 | cat >>confdefs.h <<\_ACEOF
|
---|
6532 | #define STDC_HEADERS 1
|
---|
6533 | _ACEOF
|
---|
6534 |
|
---|
6535 | fi
|
---|
6536 |
|
---|
6537 |
|
---|
6538 |
|
---|
6539 |
|
---|
6540 |
|
---|
6541 |
|
---|
6542 | ac_header_dirent=no
|
---|
6543 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
6544 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
6545 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
6546 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
6547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
6548 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6549 | else
|
---|
6550 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6551 | /* confdefs.h. */
|
---|
6552 | _ACEOF
|
---|
6553 | cat confdefs.h >>conftest.$ac_ext
|
---|
6554 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6555 | /* end confdefs.h. */
|
---|
6556 | #include <sys/types.h>
|
---|
6557 | #include <$ac_hdr>
|
---|
6558 |
|
---|
6559 | int
|
---|
6560 | main ()
|
---|
6561 | {
|
---|
6562 | if ((DIR *) 0)
|
---|
6563 | return 0;
|
---|
6564 | ;
|
---|
6565 | return 0;
|
---|
6566 | }
|
---|
6567 | _ACEOF
|
---|
6568 | rm -f conftest.$ac_objext
|
---|
6569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6570 | (eval $ac_compile) 2>conftest.er1
|
---|
6571 | ac_status=$?
|
---|
6572 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6573 | rm -f conftest.er1
|
---|
6574 | cat conftest.err >&5
|
---|
6575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6576 | (exit $ac_status); } &&
|
---|
6577 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6578 | || test ! -s conftest.err'
|
---|
6579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6580 | (eval $ac_try) 2>&5
|
---|
6581 | ac_status=$?
|
---|
6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6583 | (exit $ac_status); }; } &&
|
---|
6584 | { ac_try='test -s conftest.$ac_objext'
|
---|
6585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6586 | (eval $ac_try) 2>&5
|
---|
6587 | ac_status=$?
|
---|
6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6589 | (exit $ac_status); }; }; then
|
---|
6590 | eval "$as_ac_Header=yes"
|
---|
6591 | else
|
---|
6592 | echo "$as_me: failed program was:" >&5
|
---|
6593 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6594 |
|
---|
6595 | eval "$as_ac_Header=no"
|
---|
6596 | fi
|
---|
6597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6598 | fi
|
---|
6599 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
6600 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
6601 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
6602 | cat >>confdefs.h <<_ACEOF
|
---|
6603 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
6604 | _ACEOF
|
---|
6605 |
|
---|
6606 | ac_header_dirent=$ac_hdr; break
|
---|
6607 | fi
|
---|
6608 |
|
---|
6609 | done
|
---|
6610 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
6611 | if test $ac_header_dirent = dirent.h; then
|
---|
6612 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
6613 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
6614 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
6615 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6616 | else
|
---|
6617 | ac_func_search_save_LIBS=$LIBS
|
---|
6618 | ac_cv_search_opendir=no
|
---|
6619 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6620 | /* confdefs.h. */
|
---|
6621 | _ACEOF
|
---|
6622 | cat confdefs.h >>conftest.$ac_ext
|
---|
6623 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6624 | /* end confdefs.h. */
|
---|
6625 |
|
---|
6626 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6627 | #ifdef __cplusplus
|
---|
6628 | extern "C"
|
---|
6629 | #endif
|
---|
6630 | /* We use char because int might match the return type of a gcc2
|
---|
6631 | builtin and then its argument prototype would still apply. */
|
---|
6632 | char opendir ();
|
---|
6633 | int
|
---|
6634 | main ()
|
---|
6635 | {
|
---|
6636 | opendir ();
|
---|
6637 | ;
|
---|
6638 | return 0;
|
---|
6639 | }
|
---|
6640 | _ACEOF
|
---|
6641 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6643 | (eval $ac_link) 2>conftest.er1
|
---|
6644 | ac_status=$?
|
---|
6645 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6646 | rm -f conftest.er1
|
---|
6647 | cat conftest.err >&5
|
---|
6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6649 | (exit $ac_status); } &&
|
---|
6650 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6651 | || test ! -s conftest.err'
|
---|
6652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6653 | (eval $ac_try) 2>&5
|
---|
6654 | ac_status=$?
|
---|
6655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6656 | (exit $ac_status); }; } &&
|
---|
6657 | { ac_try='test -s conftest$ac_exeext'
|
---|
6658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6659 | (eval $ac_try) 2>&5
|
---|
6660 | ac_status=$?
|
---|
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6662 | (exit $ac_status); }; }; then
|
---|
6663 | ac_cv_search_opendir="none required"
|
---|
6664 | else
|
---|
6665 | echo "$as_me: failed program was:" >&5
|
---|
6666 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6667 |
|
---|
6668 | fi
|
---|
6669 | rm -f conftest.err conftest.$ac_objext \
|
---|
6670 | conftest$ac_exeext conftest.$ac_ext
|
---|
6671 | if test "$ac_cv_search_opendir" = no; then
|
---|
6672 | for ac_lib in dir; do
|
---|
6673 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6674 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6675 | /* confdefs.h. */
|
---|
6676 | _ACEOF
|
---|
6677 | cat confdefs.h >>conftest.$ac_ext
|
---|
6678 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6679 | /* end confdefs.h. */
|
---|
6680 |
|
---|
6681 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6682 | #ifdef __cplusplus
|
---|
6683 | extern "C"
|
---|
6684 | #endif
|
---|
6685 | /* We use char because int might match the return type of a gcc2
|
---|
6686 | builtin and then its argument prototype would still apply. */
|
---|
6687 | char opendir ();
|
---|
6688 | int
|
---|
6689 | main ()
|
---|
6690 | {
|
---|
6691 | opendir ();
|
---|
6692 | ;
|
---|
6693 | return 0;
|
---|
6694 | }
|
---|
6695 | _ACEOF
|
---|
6696 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6698 | (eval $ac_link) 2>conftest.er1
|
---|
6699 | ac_status=$?
|
---|
6700 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6701 | rm -f conftest.er1
|
---|
6702 | cat conftest.err >&5
|
---|
6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6704 | (exit $ac_status); } &&
|
---|
6705 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6706 | || test ! -s conftest.err'
|
---|
6707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6708 | (eval $ac_try) 2>&5
|
---|
6709 | ac_status=$?
|
---|
6710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6711 | (exit $ac_status); }; } &&
|
---|
6712 | { ac_try='test -s conftest$ac_exeext'
|
---|
6713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6714 | (eval $ac_try) 2>&5
|
---|
6715 | ac_status=$?
|
---|
6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6717 | (exit $ac_status); }; }; then
|
---|
6718 | ac_cv_search_opendir="-l$ac_lib"
|
---|
6719 | break
|
---|
6720 | else
|
---|
6721 | echo "$as_me: failed program was:" >&5
|
---|
6722 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6723 |
|
---|
6724 | fi
|
---|
6725 | rm -f conftest.err conftest.$ac_objext \
|
---|
6726 | conftest$ac_exeext conftest.$ac_ext
|
---|
6727 | done
|
---|
6728 | fi
|
---|
6729 | LIBS=$ac_func_search_save_LIBS
|
---|
6730 | fi
|
---|
6731 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
6732 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
6733 | if test "$ac_cv_search_opendir" != no; then
|
---|
6734 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
6735 |
|
---|
6736 | fi
|
---|
6737 |
|
---|
6738 | else
|
---|
6739 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
6740 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
6741 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
6742 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6743 | else
|
---|
6744 | ac_func_search_save_LIBS=$LIBS
|
---|
6745 | ac_cv_search_opendir=no
|
---|
6746 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6747 | /* confdefs.h. */
|
---|
6748 | _ACEOF
|
---|
6749 | cat confdefs.h >>conftest.$ac_ext
|
---|
6750 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6751 | /* end confdefs.h. */
|
---|
6752 |
|
---|
6753 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6754 | #ifdef __cplusplus
|
---|
6755 | extern "C"
|
---|
6756 | #endif
|
---|
6757 | /* We use char because int might match the return type of a gcc2
|
---|
6758 | builtin and then its argument prototype would still apply. */
|
---|
6759 | char opendir ();
|
---|
6760 | int
|
---|
6761 | main ()
|
---|
6762 | {
|
---|
6763 | opendir ();
|
---|
6764 | ;
|
---|
6765 | return 0;
|
---|
6766 | }
|
---|
6767 | _ACEOF
|
---|
6768 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6770 | (eval $ac_link) 2>conftest.er1
|
---|
6771 | ac_status=$?
|
---|
6772 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6773 | rm -f conftest.er1
|
---|
6774 | cat conftest.err >&5
|
---|
6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6776 | (exit $ac_status); } &&
|
---|
6777 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6778 | || test ! -s conftest.err'
|
---|
6779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6780 | (eval $ac_try) 2>&5
|
---|
6781 | ac_status=$?
|
---|
6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6783 | (exit $ac_status); }; } &&
|
---|
6784 | { ac_try='test -s conftest$ac_exeext'
|
---|
6785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6786 | (eval $ac_try) 2>&5
|
---|
6787 | ac_status=$?
|
---|
6788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6789 | (exit $ac_status); }; }; then
|
---|
6790 | ac_cv_search_opendir="none required"
|
---|
6791 | else
|
---|
6792 | echo "$as_me: failed program was:" >&5
|
---|
6793 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6794 |
|
---|
6795 | fi
|
---|
6796 | rm -f conftest.err conftest.$ac_objext \
|
---|
6797 | conftest$ac_exeext conftest.$ac_ext
|
---|
6798 | if test "$ac_cv_search_opendir" = no; then
|
---|
6799 | for ac_lib in x; do
|
---|
6800 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6801 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6802 | /* confdefs.h. */
|
---|
6803 | _ACEOF
|
---|
6804 | cat confdefs.h >>conftest.$ac_ext
|
---|
6805 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6806 | /* end confdefs.h. */
|
---|
6807 |
|
---|
6808 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6809 | #ifdef __cplusplus
|
---|
6810 | extern "C"
|
---|
6811 | #endif
|
---|
6812 | /* We use char because int might match the return type of a gcc2
|
---|
6813 | builtin and then its argument prototype would still apply. */
|
---|
6814 | char opendir ();
|
---|
6815 | int
|
---|
6816 | main ()
|
---|
6817 | {
|
---|
6818 | opendir ();
|
---|
6819 | ;
|
---|
6820 | return 0;
|
---|
6821 | }
|
---|
6822 | _ACEOF
|
---|
6823 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6825 | (eval $ac_link) 2>conftest.er1
|
---|
6826 | ac_status=$?
|
---|
6827 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6828 | rm -f conftest.er1
|
---|
6829 | cat conftest.err >&5
|
---|
6830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6831 | (exit $ac_status); } &&
|
---|
6832 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6833 | || test ! -s conftest.err'
|
---|
6834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6835 | (eval $ac_try) 2>&5
|
---|
6836 | ac_status=$?
|
---|
6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6838 | (exit $ac_status); }; } &&
|
---|
6839 | { ac_try='test -s conftest$ac_exeext'
|
---|
6840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6841 | (eval $ac_try) 2>&5
|
---|
6842 | ac_status=$?
|
---|
6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6844 | (exit $ac_status); }; }; then
|
---|
6845 | ac_cv_search_opendir="-l$ac_lib"
|
---|
6846 | break
|
---|
6847 | else
|
---|
6848 | echo "$as_me: failed program was:" >&5
|
---|
6849 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6850 |
|
---|
6851 | fi
|
---|
6852 | rm -f conftest.err conftest.$ac_objext \
|
---|
6853 | conftest$ac_exeext conftest.$ac_ext
|
---|
6854 | done
|
---|
6855 | fi
|
---|
6856 | LIBS=$ac_func_search_save_LIBS
|
---|
6857 | fi
|
---|
6858 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
6859 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
6860 | if test "$ac_cv_search_opendir" != no; then
|
---|
6861 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
6862 |
|
---|
6863 | fi
|
---|
6864 |
|
---|
6865 | fi
|
---|
6866 |
|
---|
6867 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
|
---|
6868 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
|
---|
6869 | if test "${ac_cv_header_stat_broken+set}" = set; then
|
---|
6870 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6871 | else
|
---|
6872 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6873 | /* confdefs.h. */
|
---|
6874 | _ACEOF
|
---|
6875 | cat confdefs.h >>conftest.$ac_ext
|
---|
6876 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6877 | /* end confdefs.h. */
|
---|
6878 | #include <sys/types.h>
|
---|
6879 | #include <sys/stat.h>
|
---|
6880 |
|
---|
6881 | #if defined(S_ISBLK) && defined(S_IFDIR)
|
---|
6882 | # if S_ISBLK (S_IFDIR)
|
---|
6883 | You lose.
|
---|
6884 | # endif
|
---|
6885 | #endif
|
---|
6886 |
|
---|
6887 | #if defined(S_ISBLK) && defined(S_IFCHR)
|
---|
6888 | # if S_ISBLK (S_IFCHR)
|
---|
6889 | You lose.
|
---|
6890 | # endif
|
---|
6891 | #endif
|
---|
6892 |
|
---|
6893 | #if defined(S_ISLNK) && defined(S_IFREG)
|
---|
6894 | # if S_ISLNK (S_IFREG)
|
---|
6895 | You lose.
|
---|
6896 | # endif
|
---|
6897 | #endif
|
---|
6898 |
|
---|
6899 | #if defined(S_ISSOCK) && defined(S_IFREG)
|
---|
6900 | # if S_ISSOCK (S_IFREG)
|
---|
6901 | You lose.
|
---|
6902 | # endif
|
---|
6903 | #endif
|
---|
6904 |
|
---|
6905 | _ACEOF
|
---|
6906 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6907 | $EGREP "You lose" >/dev/null 2>&1; then
|
---|
6908 | ac_cv_header_stat_broken=yes
|
---|
6909 | else
|
---|
6910 | ac_cv_header_stat_broken=no
|
---|
6911 | fi
|
---|
6912 | rm -f conftest*
|
---|
6913 |
|
---|
6914 | fi
|
---|
6915 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
|
---|
6916 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
|
---|
6917 | if test $ac_cv_header_stat_broken = yes; then
|
---|
6918 |
|
---|
6919 | cat >>confdefs.h <<\_ACEOF
|
---|
6920 | #define STAT_MACROS_BROKEN 1
|
---|
6921 | _ACEOF
|
---|
6922 |
|
---|
6923 | fi
|
---|
6924 |
|
---|
6925 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
6926 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
6927 | if test "${ac_cv_header_time+set}" = set; then
|
---|
6928 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6929 | else
|
---|
6930 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6931 | /* confdefs.h. */
|
---|
6932 | _ACEOF
|
---|
6933 | cat confdefs.h >>conftest.$ac_ext
|
---|
6934 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6935 | /* end confdefs.h. */
|
---|
6936 | #include <sys/types.h>
|
---|
6937 | #include <sys/time.h>
|
---|
6938 | #include <time.h>
|
---|
6939 |
|
---|
6940 | int
|
---|
6941 | main ()
|
---|
6942 | {
|
---|
6943 | if ((struct tm *) 0)
|
---|
6944 | return 0;
|
---|
6945 | ;
|
---|
6946 | return 0;
|
---|
6947 | }
|
---|
6948 | _ACEOF
|
---|
6949 | rm -f conftest.$ac_objext
|
---|
6950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6951 | (eval $ac_compile) 2>conftest.er1
|
---|
6952 | ac_status=$?
|
---|
6953 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6954 | rm -f conftest.er1
|
---|
6955 | cat conftest.err >&5
|
---|
6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6957 | (exit $ac_status); } &&
|
---|
6958 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6959 | || test ! -s conftest.err'
|
---|
6960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6961 | (eval $ac_try) 2>&5
|
---|
6962 | ac_status=$?
|
---|
6963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6964 | (exit $ac_status); }; } &&
|
---|
6965 | { ac_try='test -s conftest.$ac_objext'
|
---|
6966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6967 | (eval $ac_try) 2>&5
|
---|
6968 | ac_status=$?
|
---|
6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6970 | (exit $ac_status); }; }; then
|
---|
6971 | ac_cv_header_time=yes
|
---|
6972 | else
|
---|
6973 | echo "$as_me: failed program was:" >&5
|
---|
6974 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6975 |
|
---|
6976 | ac_cv_header_time=no
|
---|
6977 | fi
|
---|
6978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6979 | fi
|
---|
6980 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
6981 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
6982 | if test $ac_cv_header_time = yes; then
|
---|
6983 |
|
---|
6984 | cat >>confdefs.h <<\_ACEOF
|
---|
6985 | #define TIME_WITH_SYS_TIME 1
|
---|
6986 | _ACEOF
|
---|
6987 |
|
---|
6988 | fi
|
---|
6989 |
|
---|
6990 |
|
---|
6991 |
|
---|
6992 |
|
---|
6993 |
|
---|
6994 |
|
---|
6995 |
|
---|
6996 |
|
---|
6997 |
|
---|
6998 |
|
---|
6999 |
|
---|
7000 | for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
|
---|
7001 | memory.h sys/param.h sys/time.h sys/timeb.h
|
---|
7002 | do
|
---|
7003 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
7004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7005 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
7006 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
7007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7008 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7009 | fi
|
---|
7010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
7011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
7012 | else
|
---|
7013 | # Is the header compilable?
|
---|
7014 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
7015 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
7016 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7017 | /* confdefs.h. */
|
---|
7018 | _ACEOF
|
---|
7019 | cat confdefs.h >>conftest.$ac_ext
|
---|
7020 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7021 | /* end confdefs.h. */
|
---|
7022 | $ac_includes_default
|
---|
7023 | #include <$ac_header>
|
---|
7024 | _ACEOF
|
---|
7025 | rm -f conftest.$ac_objext
|
---|
7026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7027 | (eval $ac_compile) 2>conftest.er1
|
---|
7028 | ac_status=$?
|
---|
7029 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7030 | rm -f conftest.er1
|
---|
7031 | cat conftest.err >&5
|
---|
7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7033 | (exit $ac_status); } &&
|
---|
7034 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7035 | || test ! -s conftest.err'
|
---|
7036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7037 | (eval $ac_try) 2>&5
|
---|
7038 | ac_status=$?
|
---|
7039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7040 | (exit $ac_status); }; } &&
|
---|
7041 | { ac_try='test -s conftest.$ac_objext'
|
---|
7042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7043 | (eval $ac_try) 2>&5
|
---|
7044 | ac_status=$?
|
---|
7045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7046 | (exit $ac_status); }; }; then
|
---|
7047 | ac_header_compiler=yes
|
---|
7048 | else
|
---|
7049 | echo "$as_me: failed program was:" >&5
|
---|
7050 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7051 |
|
---|
7052 | ac_header_compiler=no
|
---|
7053 | fi
|
---|
7054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7055 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
7056 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
7057 |
|
---|
7058 | # Is the header present?
|
---|
7059 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
7060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
7061 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7062 | /* confdefs.h. */
|
---|
7063 | _ACEOF
|
---|
7064 | cat confdefs.h >>conftest.$ac_ext
|
---|
7065 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7066 | /* end confdefs.h. */
|
---|
7067 | #include <$ac_header>
|
---|
7068 | _ACEOF
|
---|
7069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
7070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
7071 | ac_status=$?
|
---|
7072 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7073 | rm -f conftest.er1
|
---|
7074 | cat conftest.err >&5
|
---|
7075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7076 | (exit $ac_status); } >/dev/null; then
|
---|
7077 | if test -s conftest.err; then
|
---|
7078 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
7079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
7080 | else
|
---|
7081 | ac_cpp_err=
|
---|
7082 | fi
|
---|
7083 | else
|
---|
7084 | ac_cpp_err=yes
|
---|
7085 | fi
|
---|
7086 | if test -z "$ac_cpp_err"; then
|
---|
7087 | ac_header_preproc=yes
|
---|
7088 | else
|
---|
7089 | echo "$as_me: failed program was:" >&5
|
---|
7090 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7091 |
|
---|
7092 | ac_header_preproc=no
|
---|
7093 | fi
|
---|
7094 | rm -f conftest.err conftest.$ac_ext
|
---|
7095 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
7096 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
7097 |
|
---|
7098 | # So? What about this header?
|
---|
7099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
7100 | yes:no: )
|
---|
7101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
7102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
7103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
7104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
7105 | ac_header_preproc=yes
|
---|
7106 | ;;
|
---|
7107 | no:yes:* )
|
---|
7108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
7109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
7110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
7111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
7112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
7113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
7114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
7115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
7116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
7117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
7118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
7119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
7120 | (
|
---|
7121 | cat <<\_ASBOX
|
---|
7122 | ## ------------------------------- ##
|
---|
7123 | ## Report this to [email protected] ##
|
---|
7124 | ## ------------------------------- ##
|
---|
7125 | _ASBOX
|
---|
7126 | ) |
|
---|
7127 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
7128 | ;;
|
---|
7129 | esac
|
---|
7130 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
7131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
7132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7133 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7134 | else
|
---|
7135 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
7136 | fi
|
---|
7137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
7138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
7139 |
|
---|
7140 | fi
|
---|
7141 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
7142 | cat >>confdefs.h <<_ACEOF
|
---|
7143 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
7144 | _ACEOF
|
---|
7145 |
|
---|
7146 | fi
|
---|
7147 |
|
---|
7148 | done
|
---|
7149 |
|
---|
7150 |
|
---|
7151 | # Set a flag if we have an ANSI C compiler
|
---|
7152 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
7153 |
|
---|
7154 | cat >>confdefs.h <<\_ACEOF
|
---|
7155 | #define HAVE_ANSI_COMPILER 1
|
---|
7156 | _ACEOF
|
---|
7157 |
|
---|
7158 | fi
|
---|
7159 |
|
---|
7160 |
|
---|
7161 | # Determine what kind of variadic function calls we support
|
---|
7162 |
|
---|
7163 |
|
---|
7164 | for ac_header in stdarg.h varargs.h
|
---|
7165 | do
|
---|
7166 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
7167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7168 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
7169 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
7170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7171 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7172 | fi
|
---|
7173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
7174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
7175 | else
|
---|
7176 | # Is the header compilable?
|
---|
7177 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
7178 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
7179 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7180 | /* confdefs.h. */
|
---|
7181 | _ACEOF
|
---|
7182 | cat confdefs.h >>conftest.$ac_ext
|
---|
7183 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7184 | /* end confdefs.h. */
|
---|
7185 | $ac_includes_default
|
---|
7186 | #include <$ac_header>
|
---|
7187 | _ACEOF
|
---|
7188 | rm -f conftest.$ac_objext
|
---|
7189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7190 | (eval $ac_compile) 2>conftest.er1
|
---|
7191 | ac_status=$?
|
---|
7192 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7193 | rm -f conftest.er1
|
---|
7194 | cat conftest.err >&5
|
---|
7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7196 | (exit $ac_status); } &&
|
---|
7197 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7198 | || test ! -s conftest.err'
|
---|
7199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7200 | (eval $ac_try) 2>&5
|
---|
7201 | ac_status=$?
|
---|
7202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7203 | (exit $ac_status); }; } &&
|
---|
7204 | { ac_try='test -s conftest.$ac_objext'
|
---|
7205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7206 | (eval $ac_try) 2>&5
|
---|
7207 | ac_status=$?
|
---|
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7209 | (exit $ac_status); }; }; then
|
---|
7210 | ac_header_compiler=yes
|
---|
7211 | else
|
---|
7212 | echo "$as_me: failed program was:" >&5
|
---|
7213 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7214 |
|
---|
7215 | ac_header_compiler=no
|
---|
7216 | fi
|
---|
7217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7218 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
7219 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
7220 |
|
---|
7221 | # Is the header present?
|
---|
7222 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
7223 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
7224 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7225 | /* confdefs.h. */
|
---|
7226 | _ACEOF
|
---|
7227 | cat confdefs.h >>conftest.$ac_ext
|
---|
7228 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7229 | /* end confdefs.h. */
|
---|
7230 | #include <$ac_header>
|
---|
7231 | _ACEOF
|
---|
7232 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
7233 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
7234 | ac_status=$?
|
---|
7235 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7236 | rm -f conftest.er1
|
---|
7237 | cat conftest.err >&5
|
---|
7238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7239 | (exit $ac_status); } >/dev/null; then
|
---|
7240 | if test -s conftest.err; then
|
---|
7241 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
7242 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
7243 | else
|
---|
7244 | ac_cpp_err=
|
---|
7245 | fi
|
---|
7246 | else
|
---|
7247 | ac_cpp_err=yes
|
---|
7248 | fi
|
---|
7249 | if test -z "$ac_cpp_err"; then
|
---|
7250 | ac_header_preproc=yes
|
---|
7251 | else
|
---|
7252 | echo "$as_me: failed program was:" >&5
|
---|
7253 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7254 |
|
---|
7255 | ac_header_preproc=no
|
---|
7256 | fi
|
---|
7257 | rm -f conftest.err conftest.$ac_ext
|
---|
7258 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
7259 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
7260 |
|
---|
7261 | # So? What about this header?
|
---|
7262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
7263 | yes:no: )
|
---|
7264 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
7265 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
7266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
7267 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
7268 | ac_header_preproc=yes
|
---|
7269 | ;;
|
---|
7270 | no:yes:* )
|
---|
7271 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
7272 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
7273 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
7274 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
7275 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
7276 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
7277 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
7278 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
7279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
7280 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
7281 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
7282 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
7283 | (
|
---|
7284 | cat <<\_ASBOX
|
---|
7285 | ## ------------------------------- ##
|
---|
7286 | ## Report this to [email protected] ##
|
---|
7287 | ## ------------------------------- ##
|
---|
7288 | _ASBOX
|
---|
7289 | ) |
|
---|
7290 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
7291 | ;;
|
---|
7292 | esac
|
---|
7293 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
7294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
7295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7296 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7297 | else
|
---|
7298 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
7299 | fi
|
---|
7300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
7301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
7302 |
|
---|
7303 | fi
|
---|
7304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
7305 | cat >>confdefs.h <<_ACEOF
|
---|
7306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
7307 | _ACEOF
|
---|
7308 | break
|
---|
7309 | fi
|
---|
7310 |
|
---|
7311 | done
|
---|
7312 |
|
---|
7313 |
|
---|
7314 | if test "x$CC" != xcc; then
|
---|
7315 | echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
|
---|
7316 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
|
---|
7317 | else
|
---|
7318 | echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
|
---|
7319 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
|
---|
7320 | fi
|
---|
7321 | set dummy $CC; ac_cc=`echo $2 |
|
---|
7322 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
---|
7323 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
|
---|
7324 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7325 | else
|
---|
7326 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7327 | /* confdefs.h. */
|
---|
7328 | _ACEOF
|
---|
7329 | cat confdefs.h >>conftest.$ac_ext
|
---|
7330 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7331 | /* end confdefs.h. */
|
---|
7332 |
|
---|
7333 | int
|
---|
7334 | main ()
|
---|
7335 | {
|
---|
7336 |
|
---|
7337 | ;
|
---|
7338 | return 0;
|
---|
7339 | }
|
---|
7340 | _ACEOF
|
---|
7341 | # Make sure it works both with $CC and with simple cc.
|
---|
7342 | # We do the test twice because some compilers refuse to overwrite an
|
---|
7343 | # existing .o file with -o, though they will create one.
|
---|
7344 | ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
|
---|
7345 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7346 | (eval $ac_try) 2>&5
|
---|
7347 | ac_status=$?
|
---|
7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7349 | (exit $ac_status); } &&
|
---|
7350 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7351 | (eval $ac_try) 2>&5
|
---|
7352 | ac_status=$?
|
---|
7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7354 | (exit $ac_status); };
|
---|
7355 | then
|
---|
7356 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes
|
---|
7357 | if test "x$CC" != xcc; then
|
---|
7358 | # Test first that cc exists at all.
|
---|
7359 | if { ac_try='cc -c conftest.$ac_ext >&5'
|
---|
7360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7361 | (eval $ac_try) 2>&5
|
---|
7362 | ac_status=$?
|
---|
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7364 | (exit $ac_status); }; }; then
|
---|
7365 | ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
|
---|
7366 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7367 | (eval $ac_try) 2>&5
|
---|
7368 | ac_status=$?
|
---|
7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7370 | (exit $ac_status); } &&
|
---|
7371 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7372 | (eval $ac_try) 2>&5
|
---|
7373 | ac_status=$?
|
---|
7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7375 | (exit $ac_status); };
|
---|
7376 | then
|
---|
7377 | # cc works too.
|
---|
7378 | :
|
---|
7379 | else
|
---|
7380 | # cc exists but doesn't like -o.
|
---|
7381 | eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
---|
7382 | fi
|
---|
7383 | fi
|
---|
7384 | fi
|
---|
7385 | else
|
---|
7386 | eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
---|
7387 | fi
|
---|
7388 | rm -f conftest*
|
---|
7389 |
|
---|
7390 | fi
|
---|
7391 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
|
---|
7392 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
7393 | echo "${ECHO_T}yes" >&6
|
---|
7394 | else
|
---|
7395 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7396 | echo "${ECHO_T}no" >&6
|
---|
7397 |
|
---|
7398 | cat >>confdefs.h <<\_ACEOF
|
---|
7399 | #define NO_MINUS_C_MINUS_O 1
|
---|
7400 | _ACEOF
|
---|
7401 |
|
---|
7402 | fi
|
---|
7403 |
|
---|
7404 | # FIXME: we rely on the cache variable name because
|
---|
7405 | # there is no other way.
|
---|
7406 | set dummy $CC
|
---|
7407 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
---|
7408 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
|
---|
7409 | # Losing compiler, so override with the script.
|
---|
7410 | # FIXME: It is wrong to rewrite CC.
|
---|
7411 | # But if we don't then we get into trouble of one sort or another.
|
---|
7412 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
7413 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
7414 | CC="$am_aux_dir/compile $CC"
|
---|
7415 | fi
|
---|
7416 |
|
---|
7417 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
7418 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
7419 | if test "${ac_cv_c_const+set}" = set; then
|
---|
7420 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7421 | else
|
---|
7422 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7423 | /* confdefs.h. */
|
---|
7424 | _ACEOF
|
---|
7425 | cat confdefs.h >>conftest.$ac_ext
|
---|
7426 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7427 | /* end confdefs.h. */
|
---|
7428 |
|
---|
7429 | int
|
---|
7430 | main ()
|
---|
7431 | {
|
---|
7432 | /* FIXME: Include the comments suggested by Paul. */
|
---|
7433 | #ifndef __cplusplus
|
---|
7434 | /* Ultrix mips cc rejects this. */
|
---|
7435 | typedef int charset[2];
|
---|
7436 | const charset x;
|
---|
7437 | /* SunOS 4.1.1 cc rejects this. */
|
---|
7438 | char const *const *ccp;
|
---|
7439 | char **p;
|
---|
7440 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
7441 | struct point {int x, y;};
|
---|
7442 | static struct point const zero = {0,0};
|
---|
7443 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
7444 | It does not let you subtract one const X* pointer from another in
|
---|
7445 | an arm of an if-expression whose if-part is not a constant
|
---|
7446 | expression */
|
---|
7447 | const char *g = "string";
|
---|
7448 | ccp = &g + (g ? g-g : 0);
|
---|
7449 | /* HPUX 7.0 cc rejects these. */
|
---|
7450 | ++ccp;
|
---|
7451 | p = (char**) ccp;
|
---|
7452 | ccp = (char const *const *) p;
|
---|
7453 | { /* SCO 3.2v4 cc rejects this. */
|
---|
7454 | char *t;
|
---|
7455 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
7456 |
|
---|
7457 | *t++ = 0;
|
---|
7458 | }
|
---|
7459 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
7460 | int x[] = {25, 17};
|
---|
7461 | const int *foo = &x[0];
|
---|
7462 | ++foo;
|
---|
7463 | }
|
---|
7464 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
7465 | typedef const int *iptr;
|
---|
7466 | iptr p = 0;
|
---|
7467 | ++p;
|
---|
7468 | }
|
---|
7469 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
7470 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
7471 | struct s { int j; const int *ap[3]; };
|
---|
7472 | struct s *b; b->j = 5;
|
---|
7473 | }
|
---|
7474 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
7475 | const int foo = 10;
|
---|
7476 | }
|
---|
7477 | #endif
|
---|
7478 |
|
---|
7479 | ;
|
---|
7480 | return 0;
|
---|
7481 | }
|
---|
7482 | _ACEOF
|
---|
7483 | rm -f conftest.$ac_objext
|
---|
7484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7485 | (eval $ac_compile) 2>conftest.er1
|
---|
7486 | ac_status=$?
|
---|
7487 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7488 | rm -f conftest.er1
|
---|
7489 | cat conftest.err >&5
|
---|
7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7491 | (exit $ac_status); } &&
|
---|
7492 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7493 | || test ! -s conftest.err'
|
---|
7494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7495 | (eval $ac_try) 2>&5
|
---|
7496 | ac_status=$?
|
---|
7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7498 | (exit $ac_status); }; } &&
|
---|
7499 | { ac_try='test -s conftest.$ac_objext'
|
---|
7500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7501 | (eval $ac_try) 2>&5
|
---|
7502 | ac_status=$?
|
---|
7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7504 | (exit $ac_status); }; }; then
|
---|
7505 | ac_cv_c_const=yes
|
---|
7506 | else
|
---|
7507 | echo "$as_me: failed program was:" >&5
|
---|
7508 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7509 |
|
---|
7510 | ac_cv_c_const=no
|
---|
7511 | fi
|
---|
7512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7513 | fi
|
---|
7514 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
7515 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
7516 | if test $ac_cv_c_const = no; then
|
---|
7517 |
|
---|
7518 | cat >>confdefs.h <<\_ACEOF
|
---|
7519 | #define const
|
---|
7520 | _ACEOF
|
---|
7521 |
|
---|
7522 | fi
|
---|
7523 |
|
---|
7524 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
7525 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
7526 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
7527 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7528 | else
|
---|
7529 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7530 | /* confdefs.h. */
|
---|
7531 | _ACEOF
|
---|
7532 | cat confdefs.h >>conftest.$ac_ext
|
---|
7533 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7534 | /* end confdefs.h. */
|
---|
7535 | #include <sys/types.h>
|
---|
7536 | #include <signal.h>
|
---|
7537 | #ifdef signal
|
---|
7538 | # undef signal
|
---|
7539 | #endif
|
---|
7540 | #ifdef __cplusplus
|
---|
7541 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
7542 | #else
|
---|
7543 | void (*signal ()) ();
|
---|
7544 | #endif
|
---|
7545 |
|
---|
7546 | int
|
---|
7547 | main ()
|
---|
7548 | {
|
---|
7549 | int i;
|
---|
7550 | ;
|
---|
7551 | return 0;
|
---|
7552 | }
|
---|
7553 | _ACEOF
|
---|
7554 | rm -f conftest.$ac_objext
|
---|
7555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7556 | (eval $ac_compile) 2>conftest.er1
|
---|
7557 | ac_status=$?
|
---|
7558 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7559 | rm -f conftest.er1
|
---|
7560 | cat conftest.err >&5
|
---|
7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7562 | (exit $ac_status); } &&
|
---|
7563 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7564 | || test ! -s conftest.err'
|
---|
7565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7566 | (eval $ac_try) 2>&5
|
---|
7567 | ac_status=$?
|
---|
7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7569 | (exit $ac_status); }; } &&
|
---|
7570 | { ac_try='test -s conftest.$ac_objext'
|
---|
7571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7572 | (eval $ac_try) 2>&5
|
---|
7573 | ac_status=$?
|
---|
7574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7575 | (exit $ac_status); }; }; then
|
---|
7576 | ac_cv_type_signal=void
|
---|
7577 | else
|
---|
7578 | echo "$as_me: failed program was:" >&5
|
---|
7579 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7580 |
|
---|
7581 | ac_cv_type_signal=int
|
---|
7582 | fi
|
---|
7583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7584 | fi
|
---|
7585 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
7586 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
7587 |
|
---|
7588 | cat >>confdefs.h <<_ACEOF
|
---|
7589 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
7590 | _ACEOF
|
---|
7591 |
|
---|
7592 |
|
---|
7593 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
|
---|
7594 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
|
---|
7595 | if test "${ac_cv_type_uid_t+set}" = set; then
|
---|
7596 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7597 | else
|
---|
7598 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7599 | /* confdefs.h. */
|
---|
7600 | _ACEOF
|
---|
7601 | cat confdefs.h >>conftest.$ac_ext
|
---|
7602 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7603 | /* end confdefs.h. */
|
---|
7604 | #include <sys/types.h>
|
---|
7605 |
|
---|
7606 | _ACEOF
|
---|
7607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
7608 | $EGREP "uid_t" >/dev/null 2>&1; then
|
---|
7609 | ac_cv_type_uid_t=yes
|
---|
7610 | else
|
---|
7611 | ac_cv_type_uid_t=no
|
---|
7612 | fi
|
---|
7613 | rm -f conftest*
|
---|
7614 |
|
---|
7615 | fi
|
---|
7616 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
---|
7617 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6
|
---|
7618 | if test $ac_cv_type_uid_t = no; then
|
---|
7619 |
|
---|
7620 | cat >>confdefs.h <<\_ACEOF
|
---|
7621 | #define uid_t int
|
---|
7622 | _ACEOF
|
---|
7623 |
|
---|
7624 |
|
---|
7625 | cat >>confdefs.h <<\_ACEOF
|
---|
7626 | #define gid_t int
|
---|
7627 | _ACEOF
|
---|
7628 |
|
---|
7629 | fi
|
---|
7630 |
|
---|
7631 | echo "$as_me:$LINENO: checking for pid_t" >&5
|
---|
7632 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
|
---|
7633 | if test "${ac_cv_type_pid_t+set}" = set; then
|
---|
7634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7635 | else
|
---|
7636 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7637 | /* confdefs.h. */
|
---|
7638 | _ACEOF
|
---|
7639 | cat confdefs.h >>conftest.$ac_ext
|
---|
7640 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7641 | /* end confdefs.h. */
|
---|
7642 | $ac_includes_default
|
---|
7643 | int
|
---|
7644 | main ()
|
---|
7645 | {
|
---|
7646 | if ((pid_t *) 0)
|
---|
7647 | return 0;
|
---|
7648 | if (sizeof (pid_t))
|
---|
7649 | return 0;
|
---|
7650 | ;
|
---|
7651 | return 0;
|
---|
7652 | }
|
---|
7653 | _ACEOF
|
---|
7654 | rm -f conftest.$ac_objext
|
---|
7655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7656 | (eval $ac_compile) 2>conftest.er1
|
---|
7657 | ac_status=$?
|
---|
7658 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7659 | rm -f conftest.er1
|
---|
7660 | cat conftest.err >&5
|
---|
7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7662 | (exit $ac_status); } &&
|
---|
7663 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7664 | || test ! -s conftest.err'
|
---|
7665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7666 | (eval $ac_try) 2>&5
|
---|
7667 | ac_status=$?
|
---|
7668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7669 | (exit $ac_status); }; } &&
|
---|
7670 | { ac_try='test -s conftest.$ac_objext'
|
---|
7671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7672 | (eval $ac_try) 2>&5
|
---|
7673 | ac_status=$?
|
---|
7674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7675 | (exit $ac_status); }; }; then
|
---|
7676 | ac_cv_type_pid_t=yes
|
---|
7677 | else
|
---|
7678 | echo "$as_me: failed program was:" >&5
|
---|
7679 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7680 |
|
---|
7681 | ac_cv_type_pid_t=no
|
---|
7682 | fi
|
---|
7683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7684 | fi
|
---|
7685 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
|
---|
7686 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6
|
---|
7687 | if test $ac_cv_type_pid_t = yes; then
|
---|
7688 | :
|
---|
7689 | else
|
---|
7690 |
|
---|
7691 | cat >>confdefs.h <<_ACEOF
|
---|
7692 | #define pid_t int
|
---|
7693 | _ACEOF
|
---|
7694 |
|
---|
7695 | fi
|
---|
7696 |
|
---|
7697 |
|
---|
7698 | # Find some definition for uintmax_t
|
---|
7699 |
|
---|
7700 | echo "$as_me:$LINENO: checking for uintmax_t" >&5
|
---|
7701 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
|
---|
7702 | if test "${ac_cv_type_uintmax_t+set}" = set; then
|
---|
7703 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7704 | else
|
---|
7705 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7706 | /* confdefs.h. */
|
---|
7707 | _ACEOF
|
---|
7708 | cat confdefs.h >>conftest.$ac_ext
|
---|
7709 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7710 | /* end confdefs.h. */
|
---|
7711 | $ac_includes_default
|
---|
7712 | int
|
---|
7713 | main ()
|
---|
7714 | {
|
---|
7715 | if ((uintmax_t *) 0)
|
---|
7716 | return 0;
|
---|
7717 | if (sizeof (uintmax_t))
|
---|
7718 | return 0;
|
---|
7719 | ;
|
---|
7720 | return 0;
|
---|
7721 | }
|
---|
7722 | _ACEOF
|
---|
7723 | rm -f conftest.$ac_objext
|
---|
7724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7725 | (eval $ac_compile) 2>conftest.er1
|
---|
7726 | ac_status=$?
|
---|
7727 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7728 | rm -f conftest.er1
|
---|
7729 | cat conftest.err >&5
|
---|
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7731 | (exit $ac_status); } &&
|
---|
7732 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7733 | || test ! -s conftest.err'
|
---|
7734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7735 | (eval $ac_try) 2>&5
|
---|
7736 | ac_status=$?
|
---|
7737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7738 | (exit $ac_status); }; } &&
|
---|
7739 | { ac_try='test -s conftest.$ac_objext'
|
---|
7740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7741 | (eval $ac_try) 2>&5
|
---|
7742 | ac_status=$?
|
---|
7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7744 | (exit $ac_status); }; }; then
|
---|
7745 | ac_cv_type_uintmax_t=yes
|
---|
7746 | else
|
---|
7747 | echo "$as_me: failed program was:" >&5
|
---|
7748 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7749 |
|
---|
7750 | ac_cv_type_uintmax_t=no
|
---|
7751 | fi
|
---|
7752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7753 | fi
|
---|
7754 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
|
---|
7755 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
|
---|
7756 | if test $ac_cv_type_uintmax_t = yes; then
|
---|
7757 | :
|
---|
7758 | else
|
---|
7759 |
|
---|
7760 | uintmax_t="unsigned long"
|
---|
7761 | echo "$as_me:$LINENO: checking for unsigned long long" >&5
|
---|
7762 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
|
---|
7763 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then
|
---|
7764 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7765 | else
|
---|
7766 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7767 | /* confdefs.h. */
|
---|
7768 | _ACEOF
|
---|
7769 | cat confdefs.h >>conftest.$ac_ext
|
---|
7770 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7771 | /* end confdefs.h. */
|
---|
7772 | $ac_includes_default
|
---|
7773 | int
|
---|
7774 | main ()
|
---|
7775 | {
|
---|
7776 | if ((unsigned long long *) 0)
|
---|
7777 | return 0;
|
---|
7778 | if (sizeof (unsigned long long))
|
---|
7779 | return 0;
|
---|
7780 | ;
|
---|
7781 | return 0;
|
---|
7782 | }
|
---|
7783 | _ACEOF
|
---|
7784 | rm -f conftest.$ac_objext
|
---|
7785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7786 | (eval $ac_compile) 2>conftest.er1
|
---|
7787 | ac_status=$?
|
---|
7788 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7789 | rm -f conftest.er1
|
---|
7790 | cat conftest.err >&5
|
---|
7791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7792 | (exit $ac_status); } &&
|
---|
7793 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7794 | || test ! -s conftest.err'
|
---|
7795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7796 | (eval $ac_try) 2>&5
|
---|
7797 | ac_status=$?
|
---|
7798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7799 | (exit $ac_status); }; } &&
|
---|
7800 | { ac_try='test -s conftest.$ac_objext'
|
---|
7801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7802 | (eval $ac_try) 2>&5
|
---|
7803 | ac_status=$?
|
---|
7804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7805 | (exit $ac_status); }; }; then
|
---|
7806 | ac_cv_type_unsigned_long_long=yes
|
---|
7807 | else
|
---|
7808 | echo "$as_me: failed program was:" >&5
|
---|
7809 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7810 |
|
---|
7811 | ac_cv_type_unsigned_long_long=no
|
---|
7812 | fi
|
---|
7813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7814 | fi
|
---|
7815 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
|
---|
7816 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
|
---|
7817 | if test $ac_cv_type_unsigned_long_long = yes; then
|
---|
7818 | uintmax_t="unsigned long long"
|
---|
7819 | fi
|
---|
7820 |
|
---|
7821 |
|
---|
7822 | cat >>confdefs.h <<_ACEOF
|
---|
7823 | #define uintmax_t $uintmax_t
|
---|
7824 | _ACEOF
|
---|
7825 |
|
---|
7826 | fi
|
---|
7827 |
|
---|
7828 |
|
---|
7829 | # Find out whether our struct stat returns nanosecond resolution timestamps.
|
---|
7830 |
|
---|
7831 | echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
|
---|
7832 | echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6
|
---|
7833 | if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
|
---|
7834 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7835 | else
|
---|
7836 | ac_save_CPPFLAGS="$CPPFLAGS"
|
---|
7837 | ac_cv_struct_st_mtim_nsec=no
|
---|
7838 | # tv_nsec -- the usual case
|
---|
7839 | # _tv_nsec -- Solaris 2.6, if
|
---|
7840 | # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
|
---|
7841 | # && !defined __EXTENSIONS__)
|
---|
7842 | # st__tim.tv_nsec -- UnixWare 2.1.2
|
---|
7843 | for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
|
---|
7844 | CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
|
---|
7845 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7846 | /* confdefs.h. */
|
---|
7847 | _ACEOF
|
---|
7848 | cat confdefs.h >>conftest.$ac_ext
|
---|
7849 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7850 | /* end confdefs.h. */
|
---|
7851 | #include <sys/types.h>
|
---|
7852 | #include <sys/stat.h>
|
---|
7853 |
|
---|
7854 | int
|
---|
7855 | main ()
|
---|
7856 | {
|
---|
7857 | struct stat s; s.st_mtim.ST_MTIM_NSEC;
|
---|
7858 | ;
|
---|
7859 | return 0;
|
---|
7860 | }
|
---|
7861 | _ACEOF
|
---|
7862 | rm -f conftest.$ac_objext
|
---|
7863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7864 | (eval $ac_compile) 2>conftest.er1
|
---|
7865 | ac_status=$?
|
---|
7866 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7867 | rm -f conftest.er1
|
---|
7868 | cat conftest.err >&5
|
---|
7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7870 | (exit $ac_status); } &&
|
---|
7871 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7872 | || test ! -s conftest.err'
|
---|
7873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7874 | (eval $ac_try) 2>&5
|
---|
7875 | ac_status=$?
|
---|
7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7877 | (exit $ac_status); }; } &&
|
---|
7878 | { ac_try='test -s conftest.$ac_objext'
|
---|
7879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7880 | (eval $ac_try) 2>&5
|
---|
7881 | ac_status=$?
|
---|
7882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7883 | (exit $ac_status); }; }; then
|
---|
7884 | ac_cv_struct_st_mtim_nsec=$ac_val; break
|
---|
7885 | else
|
---|
7886 | echo "$as_me: failed program was:" >&5
|
---|
7887 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7888 |
|
---|
7889 | fi
|
---|
7890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7891 | done
|
---|
7892 | CPPFLAGS="$ac_save_CPPFLAGS"
|
---|
7893 |
|
---|
7894 | fi
|
---|
7895 | echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
|
---|
7896 | echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
|
---|
7897 |
|
---|
7898 | if test $ac_cv_struct_st_mtim_nsec != no; then
|
---|
7899 |
|
---|
7900 | cat >>confdefs.h <<_ACEOF
|
---|
7901 | #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
|
---|
7902 | _ACEOF
|
---|
7903 |
|
---|
7904 | fi
|
---|
7905 |
|
---|
7906 |
|
---|
7907 | echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5
|
---|
7908 | echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6
|
---|
7909 | if test "${make_cv_file_timestamp_hi_res+set}" = set; then
|
---|
7910 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7911 | else
|
---|
7912 |
|
---|
7913 | make_cv_file_timestamp_hi_res=no
|
---|
7914 | if test "$ac_cv_struct_st_mtim_nsec" != no; then
|
---|
7915 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7916 | /* confdefs.h. */
|
---|
7917 | _ACEOF
|
---|
7918 | cat confdefs.h >>conftest.$ac_ext
|
---|
7919 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7920 | /* end confdefs.h. */
|
---|
7921 |
|
---|
7922 | # if HAVE_INTTYPES_H
|
---|
7923 | # include <inttypes.h>
|
---|
7924 | # endif
|
---|
7925 | int
|
---|
7926 | main ()
|
---|
7927 | {
|
---|
7928 | char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
|
---|
7929 | ;
|
---|
7930 | return 0;
|
---|
7931 | }
|
---|
7932 | _ACEOF
|
---|
7933 | rm -f conftest.$ac_objext
|
---|
7934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7935 | (eval $ac_compile) 2>conftest.er1
|
---|
7936 | ac_status=$?
|
---|
7937 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7938 | rm -f conftest.er1
|
---|
7939 | cat conftest.err >&5
|
---|
7940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7941 | (exit $ac_status); } &&
|
---|
7942 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7943 | || test ! -s conftest.err'
|
---|
7944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7945 | (eval $ac_try) 2>&5
|
---|
7946 | ac_status=$?
|
---|
7947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7948 | (exit $ac_status); }; } &&
|
---|
7949 | { ac_try='test -s conftest.$ac_objext'
|
---|
7950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7951 | (eval $ac_try) 2>&5
|
---|
7952 | ac_status=$?
|
---|
7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7954 | (exit $ac_status); }; }; then
|
---|
7955 | make_cv_file_timestamp_hi_res=yes
|
---|
7956 | else
|
---|
7957 | echo "$as_me: failed program was:" >&5
|
---|
7958 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7959 |
|
---|
7960 | fi
|
---|
7961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7962 | fi
|
---|
7963 | fi
|
---|
7964 |
|
---|
7965 | echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5
|
---|
7966 | echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6
|
---|
7967 | if test "$make_cv_file_timestamp_hi_res" = yes; then
|
---|
7968 | val=1
|
---|
7969 | else
|
---|
7970 | val=0
|
---|
7971 | fi
|
---|
7972 |
|
---|
7973 | cat >>confdefs.h <<_ACEOF
|
---|
7974 | #define FILE_TIMESTAMP_HI_RES $val
|
---|
7975 | _ACEOF
|
---|
7976 |
|
---|
7977 |
|
---|
7978 | if test "$make_cv_file_timestamp_hi_res" = yes; then
|
---|
7979 | # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
|
---|
7980 | # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
|
---|
7981 | echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
|
---|
7982 | echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
|
---|
7983 | if test "${ac_cv_search_clock_gettime+set}" = set; then
|
---|
7984 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7985 | else
|
---|
7986 | ac_func_search_save_LIBS=$LIBS
|
---|
7987 | ac_cv_search_clock_gettime=no
|
---|
7988 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7989 | /* confdefs.h. */
|
---|
7990 | _ACEOF
|
---|
7991 | cat confdefs.h >>conftest.$ac_ext
|
---|
7992 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7993 | /* end confdefs.h. */
|
---|
7994 |
|
---|
7995 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7996 | #ifdef __cplusplus
|
---|
7997 | extern "C"
|
---|
7998 | #endif
|
---|
7999 | /* We use char because int might match the return type of a gcc2
|
---|
8000 | builtin and then its argument prototype would still apply. */
|
---|
8001 | char clock_gettime ();
|
---|
8002 | int
|
---|
8003 | main ()
|
---|
8004 | {
|
---|
8005 | clock_gettime ();
|
---|
8006 | ;
|
---|
8007 | return 0;
|
---|
8008 | }
|
---|
8009 | _ACEOF
|
---|
8010 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8012 | (eval $ac_link) 2>conftest.er1
|
---|
8013 | ac_status=$?
|
---|
8014 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8015 | rm -f conftest.er1
|
---|
8016 | cat conftest.err >&5
|
---|
8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8018 | (exit $ac_status); } &&
|
---|
8019 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8020 | || test ! -s conftest.err'
|
---|
8021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8022 | (eval $ac_try) 2>&5
|
---|
8023 | ac_status=$?
|
---|
8024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8025 | (exit $ac_status); }; } &&
|
---|
8026 | { ac_try='test -s conftest$ac_exeext'
|
---|
8027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8028 | (eval $ac_try) 2>&5
|
---|
8029 | ac_status=$?
|
---|
8030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8031 | (exit $ac_status); }; }; then
|
---|
8032 | ac_cv_search_clock_gettime="none required"
|
---|
8033 | else
|
---|
8034 | echo "$as_me: failed program was:" >&5
|
---|
8035 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8036 |
|
---|
8037 | fi
|
---|
8038 | rm -f conftest.err conftest.$ac_objext \
|
---|
8039 | conftest$ac_exeext conftest.$ac_ext
|
---|
8040 | if test "$ac_cv_search_clock_gettime" = no; then
|
---|
8041 | for ac_lib in rt posix4; do
|
---|
8042 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
8043 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8044 | /* confdefs.h. */
|
---|
8045 | _ACEOF
|
---|
8046 | cat confdefs.h >>conftest.$ac_ext
|
---|
8047 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8048 | /* end confdefs.h. */
|
---|
8049 |
|
---|
8050 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
8051 | #ifdef __cplusplus
|
---|
8052 | extern "C"
|
---|
8053 | #endif
|
---|
8054 | /* We use char because int might match the return type of a gcc2
|
---|
8055 | builtin and then its argument prototype would still apply. */
|
---|
8056 | char clock_gettime ();
|
---|
8057 | int
|
---|
8058 | main ()
|
---|
8059 | {
|
---|
8060 | clock_gettime ();
|
---|
8061 | ;
|
---|
8062 | return 0;
|
---|
8063 | }
|
---|
8064 | _ACEOF
|
---|
8065 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8067 | (eval $ac_link) 2>conftest.er1
|
---|
8068 | ac_status=$?
|
---|
8069 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8070 | rm -f conftest.er1
|
---|
8071 | cat conftest.err >&5
|
---|
8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8073 | (exit $ac_status); } &&
|
---|
8074 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8075 | || test ! -s conftest.err'
|
---|
8076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8077 | (eval $ac_try) 2>&5
|
---|
8078 | ac_status=$?
|
---|
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8080 | (exit $ac_status); }; } &&
|
---|
8081 | { ac_try='test -s conftest$ac_exeext'
|
---|
8082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8083 | (eval $ac_try) 2>&5
|
---|
8084 | ac_status=$?
|
---|
8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8086 | (exit $ac_status); }; }; then
|
---|
8087 | ac_cv_search_clock_gettime="-l$ac_lib"
|
---|
8088 | break
|
---|
8089 | else
|
---|
8090 | echo "$as_me: failed program was:" >&5
|
---|
8091 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8092 |
|
---|
8093 | fi
|
---|
8094 | rm -f conftest.err conftest.$ac_objext \
|
---|
8095 | conftest$ac_exeext conftest.$ac_ext
|
---|
8096 | done
|
---|
8097 | fi
|
---|
8098 | LIBS=$ac_func_search_save_LIBS
|
---|
8099 | fi
|
---|
8100 | echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
|
---|
8101 | echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
|
---|
8102 | if test "$ac_cv_search_clock_gettime" != no; then
|
---|
8103 | test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
|
---|
8104 |
|
---|
8105 | fi
|
---|
8106 |
|
---|
8107 | if test "$ac_cv_search_clock_gettime" != no; then
|
---|
8108 |
|
---|
8109 | cat >>confdefs.h <<\_ACEOF
|
---|
8110 | #define HAVE_CLOCK_GETTIME 1
|
---|
8111 | _ACEOF
|
---|
8112 |
|
---|
8113 | fi
|
---|
8114 | fi
|
---|
8115 |
|
---|
8116 | # Check for DOS-style pathnames.
|
---|
8117 | pds_AC_DOS_PATHS
|
---|
8118 |
|
---|
8119 | # See if we have a standard version of gettimeofday(). Since actual
|
---|
8120 | # implementations can differ, just make sure we have the most common
|
---|
8121 | # one.
|
---|
8122 | echo "$as_me:$LINENO: checking for standard gettimeofday" >&5
|
---|
8123 | echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6
|
---|
8124 | if test "${ac_cv_func_gettimeofday+set}" = set; then
|
---|
8125 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8126 | else
|
---|
8127 | ac_cv_func_gettimeofday=no
|
---|
8128 | if test "$cross_compiling" = yes; then
|
---|
8129 | ac_cv_func_gettimeofday="no (cross-compiling)"
|
---|
8130 | else
|
---|
8131 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8132 | /* confdefs.h. */
|
---|
8133 | _ACEOF
|
---|
8134 | cat confdefs.h >>conftest.$ac_ext
|
---|
8135 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8136 | /* end confdefs.h. */
|
---|
8137 | #include <sys/time.h>
|
---|
8138 | int main ()
|
---|
8139 | {
|
---|
8140 | struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
|
---|
8141 | exit (gettimeofday (&t, 0) != 0
|
---|
8142 | || t.tv_sec < 0 || t.tv_usec < 0);
|
---|
8143 | }
|
---|
8144 | _ACEOF
|
---|
8145 | rm -f conftest$ac_exeext
|
---|
8146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8147 | (eval $ac_link) 2>&5
|
---|
8148 | ac_status=$?
|
---|
8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8152 | (eval $ac_try) 2>&5
|
---|
8153 | ac_status=$?
|
---|
8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8155 | (exit $ac_status); }; }; then
|
---|
8156 | ac_cv_func_gettimeofday=yes
|
---|
8157 | else
|
---|
8158 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8159 | echo "$as_me: failed program was:" >&5
|
---|
8160 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8161 |
|
---|
8162 | ( exit $ac_status )
|
---|
8163 | ac_cv_func_gettimeofday=no
|
---|
8164 | fi
|
---|
8165 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8166 | fi
|
---|
8167 | fi
|
---|
8168 | echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
|
---|
8169 | echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
|
---|
8170 | if test "$ac_cv_func_gettimeofday" = yes; then
|
---|
8171 |
|
---|
8172 | cat >>confdefs.h <<\_ACEOF
|
---|
8173 | #define HAVE_GETTIMEOFDAY 1
|
---|
8174 | _ACEOF
|
---|
8175 |
|
---|
8176 | fi
|
---|
8177 |
|
---|
8178 |
|
---|
8179 |
|
---|
8180 |
|
---|
8181 |
|
---|
8182 |
|
---|
8183 |
|
---|
8184 |
|
---|
8185 |
|
---|
8186 |
|
---|
8187 |
|
---|
8188 |
|
---|
8189 |
|
---|
8190 |
|
---|
8191 |
|
---|
8192 |
|
---|
8193 |
|
---|
8194 |
|
---|
8195 |
|
---|
8196 |
|
---|
8197 |
|
---|
8198 |
|
---|
8199 |
|
---|
8200 | for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \
|
---|
8201 | bsd_signal dup2 getcwd sigsetmask sigaction getgroups \
|
---|
8202 | seteuid setegid setlinebuf setreuid setregid setvbuf pipe \
|
---|
8203 | strerror strsignal
|
---|
8204 | do
|
---|
8205 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
8206 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
8207 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
8208 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
8209 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8210 | else
|
---|
8211 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8212 | /* confdefs.h. */
|
---|
8213 | _ACEOF
|
---|
8214 | cat confdefs.h >>conftest.$ac_ext
|
---|
8215 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8216 | /* end confdefs.h. */
|
---|
8217 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
8218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
8219 | #define $ac_func innocuous_$ac_func
|
---|
8220 |
|
---|
8221 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
8222 | which can conflict with char $ac_func (); below.
|
---|
8223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
8224 | <limits.h> exists even on freestanding compilers. */
|
---|
8225 |
|
---|
8226 | #ifdef __STDC__
|
---|
8227 | # include <limits.h>
|
---|
8228 | #else
|
---|
8229 | # include <assert.h>
|
---|
8230 | #endif
|
---|
8231 |
|
---|
8232 | #undef $ac_func
|
---|
8233 |
|
---|
8234 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
8235 | #ifdef __cplusplus
|
---|
8236 | extern "C"
|
---|
8237 | {
|
---|
8238 | #endif
|
---|
8239 | /* We use char because int might match the return type of a gcc2
|
---|
8240 | builtin and then its argument prototype would still apply. */
|
---|
8241 | char $ac_func ();
|
---|
8242 | /* The GNU C library defines this for functions which it implements
|
---|
8243 | to always fail with ENOSYS. Some functions are actually named
|
---|
8244 | something starting with __ and the normal name is an alias. */
|
---|
8245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
8246 | choke me
|
---|
8247 | #else
|
---|
8248 | char (*f) () = $ac_func;
|
---|
8249 | #endif
|
---|
8250 | #ifdef __cplusplus
|
---|
8251 | }
|
---|
8252 | #endif
|
---|
8253 |
|
---|
8254 | int
|
---|
8255 | main ()
|
---|
8256 | {
|
---|
8257 | return f != $ac_func;
|
---|
8258 | ;
|
---|
8259 | return 0;
|
---|
8260 | }
|
---|
8261 | _ACEOF
|
---|
8262 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8264 | (eval $ac_link) 2>conftest.er1
|
---|
8265 | ac_status=$?
|
---|
8266 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8267 | rm -f conftest.er1
|
---|
8268 | cat conftest.err >&5
|
---|
8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8270 | (exit $ac_status); } &&
|
---|
8271 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8272 | || test ! -s conftest.err'
|
---|
8273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8274 | (eval $ac_try) 2>&5
|
---|
8275 | ac_status=$?
|
---|
8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8277 | (exit $ac_status); }; } &&
|
---|
8278 | { ac_try='test -s conftest$ac_exeext'
|
---|
8279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8280 | (eval $ac_try) 2>&5
|
---|
8281 | ac_status=$?
|
---|
8282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8283 | (exit $ac_status); }; }; then
|
---|
8284 | eval "$as_ac_var=yes"
|
---|
8285 | else
|
---|
8286 | echo "$as_me: failed program was:" >&5
|
---|
8287 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8288 |
|
---|
8289 | eval "$as_ac_var=no"
|
---|
8290 | fi
|
---|
8291 | rm -f conftest.err conftest.$ac_objext \
|
---|
8292 | conftest$ac_exeext conftest.$ac_ext
|
---|
8293 | fi
|
---|
8294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
8295 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
8296 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
8297 | cat >>confdefs.h <<_ACEOF
|
---|
8298 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
8299 | _ACEOF
|
---|
8300 |
|
---|
8301 | fi
|
---|
8302 | done
|
---|
8303 |
|
---|
8304 |
|
---|
8305 | echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
|
---|
8306 | echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
|
---|
8307 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
|
---|
8308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8309 | else
|
---|
8310 | ac_cv_func_setvbuf_reversed=no
|
---|
8311 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8312 | /* confdefs.h. */
|
---|
8313 | _ACEOF
|
---|
8314 | cat confdefs.h >>conftest.$ac_ext
|
---|
8315 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8316 | /* end confdefs.h. */
|
---|
8317 | #include <stdio.h>
|
---|
8318 | # if PROTOTYPES
|
---|
8319 | int (setvbuf) (FILE *, int, char *, size_t);
|
---|
8320 | # endif
|
---|
8321 | int
|
---|
8322 | main ()
|
---|
8323 | {
|
---|
8324 | char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
|
---|
8325 | ;
|
---|
8326 | return 0;
|
---|
8327 | }
|
---|
8328 | _ACEOF
|
---|
8329 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8331 | (eval $ac_link) 2>conftest.er1
|
---|
8332 | ac_status=$?
|
---|
8333 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8334 | rm -f conftest.er1
|
---|
8335 | cat conftest.err >&5
|
---|
8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8337 | (exit $ac_status); } &&
|
---|
8338 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8339 | || test ! -s conftest.err'
|
---|
8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8341 | (eval $ac_try) 2>&5
|
---|
8342 | ac_status=$?
|
---|
8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8344 | (exit $ac_status); }; } &&
|
---|
8345 | { ac_try='test -s conftest$ac_exeext'
|
---|
8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8347 | (eval $ac_try) 2>&5
|
---|
8348 | ac_status=$?
|
---|
8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8350 | (exit $ac_status); }; }; then
|
---|
8351 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8352 | /* confdefs.h. */
|
---|
8353 | _ACEOF
|
---|
8354 | cat confdefs.h >>conftest.$ac_ext
|
---|
8355 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8356 | /* end confdefs.h. */
|
---|
8357 | #include <stdio.h>
|
---|
8358 | # if PROTOTYPES
|
---|
8359 | int (setvbuf) (FILE *, int, char *, size_t);
|
---|
8360 | # endif
|
---|
8361 | int
|
---|
8362 | main ()
|
---|
8363 | {
|
---|
8364 | char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
|
---|
8365 | ;
|
---|
8366 | return 0;
|
---|
8367 | }
|
---|
8368 | _ACEOF
|
---|
8369 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8371 | (eval $ac_link) 2>conftest.er1
|
---|
8372 | ac_status=$?
|
---|
8373 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8374 | rm -f conftest.er1
|
---|
8375 | cat conftest.err >&5
|
---|
8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8377 | (exit $ac_status); } &&
|
---|
8378 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8379 | || test ! -s conftest.err'
|
---|
8380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8381 | (eval $ac_try) 2>&5
|
---|
8382 | ac_status=$?
|
---|
8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8384 | (exit $ac_status); }; } &&
|
---|
8385 | { ac_try='test -s conftest$ac_exeext'
|
---|
8386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8387 | (eval $ac_try) 2>&5
|
---|
8388 | ac_status=$?
|
---|
8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8390 | (exit $ac_status); }; }; then
|
---|
8391 | # It compiles and links either way, so it must not be declared
|
---|
8392 | # with a prototype and most likely this is a K&R C compiler.
|
---|
8393 | # Try running it.
|
---|
8394 | if test "$cross_compiling" = yes; then
|
---|
8395 | : # Assume setvbuf is not reversed when cross-compiling.
|
---|
8396 | else
|
---|
8397 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8398 | /* confdefs.h. */
|
---|
8399 | _ACEOF
|
---|
8400 | cat confdefs.h >>conftest.$ac_ext
|
---|
8401 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8402 | /* end confdefs.h. */
|
---|
8403 | #include <stdio.h>
|
---|
8404 | int
|
---|
8405 | main ()
|
---|
8406 | {
|
---|
8407 | /* This call has the arguments reversed.
|
---|
8408 | A reversed system may check and see that the address of buf
|
---|
8409 | is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
|
---|
8410 | char buf;
|
---|
8411 | if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
|
---|
8412 | exit (1);
|
---|
8413 | putchar ('\r');
|
---|
8414 | exit (0); /* Non-reversed systems SEGV here. */
|
---|
8415 | ;
|
---|
8416 | return 0;
|
---|
8417 | }
|
---|
8418 | _ACEOF
|
---|
8419 | rm -f conftest$ac_exeext
|
---|
8420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8421 | (eval $ac_link) 2>&5
|
---|
8422 | ac_status=$?
|
---|
8423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8424 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8426 | (eval $ac_try) 2>&5
|
---|
8427 | ac_status=$?
|
---|
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8429 | (exit $ac_status); }; }; then
|
---|
8430 | ac_cv_func_setvbuf_reversed=yes
|
---|
8431 | else
|
---|
8432 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8433 | echo "$as_me: failed program was:" >&5
|
---|
8434 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8435 |
|
---|
8436 | ( exit $ac_status )
|
---|
8437 | rm -f core *.core
|
---|
8438 | fi
|
---|
8439 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8440 | fi
|
---|
8441 | ac_cv_func_setvbuf_reversed=yes
|
---|
8442 | else
|
---|
8443 | echo "$as_me: failed program was:" >&5
|
---|
8444 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8445 |
|
---|
8446 | fi
|
---|
8447 | rm -f conftest.err conftest.$ac_objext \
|
---|
8448 | conftest$ac_exeext conftest.$ac_ext
|
---|
8449 | else
|
---|
8450 | echo "$as_me: failed program was:" >&5
|
---|
8451 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8452 |
|
---|
8453 | fi
|
---|
8454 | rm -f conftest.err conftest.$ac_objext \
|
---|
8455 | conftest$ac_exeext conftest.$ac_ext
|
---|
8456 | fi
|
---|
8457 | echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
|
---|
8458 | echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
|
---|
8459 | if test $ac_cv_func_setvbuf_reversed = yes; then
|
---|
8460 |
|
---|
8461 | cat >>confdefs.h <<\_ACEOF
|
---|
8462 | #define SETVBUF_REVERSED 1
|
---|
8463 | _ACEOF
|
---|
8464 |
|
---|
8465 | fi
|
---|
8466 |
|
---|
8467 |
|
---|
8468 | # strcoll() is used by the GNU glob library
|
---|
8469 | echo "$as_me:$LINENO: checking for working strcoll" >&5
|
---|
8470 | echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
|
---|
8471 | if test "${ac_cv_func_strcoll_works+set}" = set; then
|
---|
8472 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8473 | else
|
---|
8474 | if test "$cross_compiling" = yes; then
|
---|
8475 | ac_cv_func_strcoll_works=no
|
---|
8476 | else
|
---|
8477 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8478 | /* confdefs.h. */
|
---|
8479 | _ACEOF
|
---|
8480 | cat confdefs.h >>conftest.$ac_ext
|
---|
8481 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8482 | /* end confdefs.h. */
|
---|
8483 | $ac_includes_default
|
---|
8484 | int
|
---|
8485 | main ()
|
---|
8486 | {
|
---|
8487 | exit (strcoll ("abc", "def") >= 0 ||
|
---|
8488 | strcoll ("ABC", "DEF") >= 0 ||
|
---|
8489 | strcoll ("123", "456") >= 0)
|
---|
8490 | ;
|
---|
8491 | return 0;
|
---|
8492 | }
|
---|
8493 | _ACEOF
|
---|
8494 | rm -f conftest$ac_exeext
|
---|
8495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8496 | (eval $ac_link) 2>&5
|
---|
8497 | ac_status=$?
|
---|
8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8501 | (eval $ac_try) 2>&5
|
---|
8502 | ac_status=$?
|
---|
8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8504 | (exit $ac_status); }; }; then
|
---|
8505 | ac_cv_func_strcoll_works=yes
|
---|
8506 | else
|
---|
8507 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8508 | echo "$as_me: failed program was:" >&5
|
---|
8509 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8510 |
|
---|
8511 | ( exit $ac_status )
|
---|
8512 | ac_cv_func_strcoll_works=no
|
---|
8513 | fi
|
---|
8514 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8515 | fi
|
---|
8516 | fi
|
---|
8517 | echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
|
---|
8518 | echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
|
---|
8519 | if test $ac_cv_func_strcoll_works = yes; then
|
---|
8520 |
|
---|
8521 | cat >>confdefs.h <<\_ACEOF
|
---|
8522 | #define HAVE_STRCOLL 1
|
---|
8523 | _ACEOF
|
---|
8524 |
|
---|
8525 | fi
|
---|
8526 |
|
---|
8527 |
|
---|
8528 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
8529 | # for constant arguments. Useless!
|
---|
8530 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
8531 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
8532 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
8533 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8534 | else
|
---|
8535 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8536 | /* confdefs.h. */
|
---|
8537 | _ACEOF
|
---|
8538 | cat confdefs.h >>conftest.$ac_ext
|
---|
8539 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8540 | /* end confdefs.h. */
|
---|
8541 | #include <alloca.h>
|
---|
8542 | int
|
---|
8543 | main ()
|
---|
8544 | {
|
---|
8545 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
8546 | ;
|
---|
8547 | return 0;
|
---|
8548 | }
|
---|
8549 | _ACEOF
|
---|
8550 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8552 | (eval $ac_link) 2>conftest.er1
|
---|
8553 | ac_status=$?
|
---|
8554 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8555 | rm -f conftest.er1
|
---|
8556 | cat conftest.err >&5
|
---|
8557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8558 | (exit $ac_status); } &&
|
---|
8559 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8560 | || test ! -s conftest.err'
|
---|
8561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8562 | (eval $ac_try) 2>&5
|
---|
8563 | ac_status=$?
|
---|
8564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8565 | (exit $ac_status); }; } &&
|
---|
8566 | { ac_try='test -s conftest$ac_exeext'
|
---|
8567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8568 | (eval $ac_try) 2>&5
|
---|
8569 | ac_status=$?
|
---|
8570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8571 | (exit $ac_status); }; }; then
|
---|
8572 | ac_cv_working_alloca_h=yes
|
---|
8573 | else
|
---|
8574 | echo "$as_me: failed program was:" >&5
|
---|
8575 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8576 |
|
---|
8577 | ac_cv_working_alloca_h=no
|
---|
8578 | fi
|
---|
8579 | rm -f conftest.err conftest.$ac_objext \
|
---|
8580 | conftest$ac_exeext conftest.$ac_ext
|
---|
8581 | fi
|
---|
8582 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
8583 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
8584 | if test $ac_cv_working_alloca_h = yes; then
|
---|
8585 |
|
---|
8586 | cat >>confdefs.h <<\_ACEOF
|
---|
8587 | #define HAVE_ALLOCA_H 1
|
---|
8588 | _ACEOF
|
---|
8589 |
|
---|
8590 | fi
|
---|
8591 |
|
---|
8592 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
8593 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
8594 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
8595 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8596 | else
|
---|
8597 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8598 | /* confdefs.h. */
|
---|
8599 | _ACEOF
|
---|
8600 | cat confdefs.h >>conftest.$ac_ext
|
---|
8601 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8602 | /* end confdefs.h. */
|
---|
8603 | #ifdef __GNUC__
|
---|
8604 | # define alloca __builtin_alloca
|
---|
8605 | #else
|
---|
8606 | # ifdef _MSC_VER
|
---|
8607 | # include <malloc.h>
|
---|
8608 | # define alloca _alloca
|
---|
8609 | # else
|
---|
8610 | # if HAVE_ALLOCA_H
|
---|
8611 | # include <alloca.h>
|
---|
8612 | # else
|
---|
8613 | # ifdef _AIX
|
---|
8614 | #pragma alloca
|
---|
8615 | # else
|
---|
8616 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
8617 | char *alloca ();
|
---|
8618 | # endif
|
---|
8619 | # endif
|
---|
8620 | # endif
|
---|
8621 | # endif
|
---|
8622 | #endif
|
---|
8623 |
|
---|
8624 | int
|
---|
8625 | main ()
|
---|
8626 | {
|
---|
8627 | char *p = (char *) alloca (1);
|
---|
8628 | ;
|
---|
8629 | return 0;
|
---|
8630 | }
|
---|
8631 | _ACEOF
|
---|
8632 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8634 | (eval $ac_link) 2>conftest.er1
|
---|
8635 | ac_status=$?
|
---|
8636 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8637 | rm -f conftest.er1
|
---|
8638 | cat conftest.err >&5
|
---|
8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8640 | (exit $ac_status); } &&
|
---|
8641 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8642 | || test ! -s conftest.err'
|
---|
8643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8644 | (eval $ac_try) 2>&5
|
---|
8645 | ac_status=$?
|
---|
8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8647 | (exit $ac_status); }; } &&
|
---|
8648 | { ac_try='test -s conftest$ac_exeext'
|
---|
8649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8650 | (eval $ac_try) 2>&5
|
---|
8651 | ac_status=$?
|
---|
8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8653 | (exit $ac_status); }; }; then
|
---|
8654 | ac_cv_func_alloca_works=yes
|
---|
8655 | else
|
---|
8656 | echo "$as_me: failed program was:" >&5
|
---|
8657 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8658 |
|
---|
8659 | ac_cv_func_alloca_works=no
|
---|
8660 | fi
|
---|
8661 | rm -f conftest.err conftest.$ac_objext \
|
---|
8662 | conftest$ac_exeext conftest.$ac_ext
|
---|
8663 | fi
|
---|
8664 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
8665 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
8666 |
|
---|
8667 | if test $ac_cv_func_alloca_works = yes; then
|
---|
8668 |
|
---|
8669 | cat >>confdefs.h <<\_ACEOF
|
---|
8670 | #define HAVE_ALLOCA 1
|
---|
8671 | _ACEOF
|
---|
8672 |
|
---|
8673 | else
|
---|
8674 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
8675 | # that cause trouble. Some versions do not even contain alloca or
|
---|
8676 | # contain a buggy version. If you still want to use their alloca,
|
---|
8677 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
8678 |
|
---|
8679 | ALLOCA=alloca.$ac_objext
|
---|
8680 |
|
---|
8681 | cat >>confdefs.h <<\_ACEOF
|
---|
8682 | #define C_ALLOCA 1
|
---|
8683 | _ACEOF
|
---|
8684 |
|
---|
8685 |
|
---|
8686 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
8687 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
8688 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
8689 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8690 | else
|
---|
8691 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8692 | /* confdefs.h. */
|
---|
8693 | _ACEOF
|
---|
8694 | cat confdefs.h >>conftest.$ac_ext
|
---|
8695 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8696 | /* end confdefs.h. */
|
---|
8697 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
8698 | webecray
|
---|
8699 | #else
|
---|
8700 | wenotbecray
|
---|
8701 | #endif
|
---|
8702 |
|
---|
8703 | _ACEOF
|
---|
8704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
8705 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
8706 | ac_cv_os_cray=yes
|
---|
8707 | else
|
---|
8708 | ac_cv_os_cray=no
|
---|
8709 | fi
|
---|
8710 | rm -f conftest*
|
---|
8711 |
|
---|
8712 | fi
|
---|
8713 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
8714 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
8715 | if test $ac_cv_os_cray = yes; then
|
---|
8716 | for ac_func in _getb67 GETB67 getb67; do
|
---|
8717 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
8718 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
8719 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
8720 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
8721 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8722 | else
|
---|
8723 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8724 | /* confdefs.h. */
|
---|
8725 | _ACEOF
|
---|
8726 | cat confdefs.h >>conftest.$ac_ext
|
---|
8727 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8728 | /* end confdefs.h. */
|
---|
8729 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
8730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
8731 | #define $ac_func innocuous_$ac_func
|
---|
8732 |
|
---|
8733 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
8734 | which can conflict with char $ac_func (); below.
|
---|
8735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
8736 | <limits.h> exists even on freestanding compilers. */
|
---|
8737 |
|
---|
8738 | #ifdef __STDC__
|
---|
8739 | # include <limits.h>
|
---|
8740 | #else
|
---|
8741 | # include <assert.h>
|
---|
8742 | #endif
|
---|
8743 |
|
---|
8744 | #undef $ac_func
|
---|
8745 |
|
---|
8746 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
8747 | #ifdef __cplusplus
|
---|
8748 | extern "C"
|
---|
8749 | {
|
---|
8750 | #endif
|
---|
8751 | /* We use char because int might match the return type of a gcc2
|
---|
8752 | builtin and then its argument prototype would still apply. */
|
---|
8753 | char $ac_func ();
|
---|
8754 | /* The GNU C library defines this for functions which it implements
|
---|
8755 | to always fail with ENOSYS. Some functions are actually named
|
---|
8756 | something starting with __ and the normal name is an alias. */
|
---|
8757 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
8758 | choke me
|
---|
8759 | #else
|
---|
8760 | char (*f) () = $ac_func;
|
---|
8761 | #endif
|
---|
8762 | #ifdef __cplusplus
|
---|
8763 | }
|
---|
8764 | #endif
|
---|
8765 |
|
---|
8766 | int
|
---|
8767 | main ()
|
---|
8768 | {
|
---|
8769 | return f != $ac_func;
|
---|
8770 | ;
|
---|
8771 | return 0;
|
---|
8772 | }
|
---|
8773 | _ACEOF
|
---|
8774 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8776 | (eval $ac_link) 2>conftest.er1
|
---|
8777 | ac_status=$?
|
---|
8778 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8779 | rm -f conftest.er1
|
---|
8780 | cat conftest.err >&5
|
---|
8781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8782 | (exit $ac_status); } &&
|
---|
8783 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8784 | || test ! -s conftest.err'
|
---|
8785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8786 | (eval $ac_try) 2>&5
|
---|
8787 | ac_status=$?
|
---|
8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8789 | (exit $ac_status); }; } &&
|
---|
8790 | { ac_try='test -s conftest$ac_exeext'
|
---|
8791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8792 | (eval $ac_try) 2>&5
|
---|
8793 | ac_status=$?
|
---|
8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8795 | (exit $ac_status); }; }; then
|
---|
8796 | eval "$as_ac_var=yes"
|
---|
8797 | else
|
---|
8798 | echo "$as_me: failed program was:" >&5
|
---|
8799 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8800 |
|
---|
8801 | eval "$as_ac_var=no"
|
---|
8802 | fi
|
---|
8803 | rm -f conftest.err conftest.$ac_objext \
|
---|
8804 | conftest$ac_exeext conftest.$ac_ext
|
---|
8805 | fi
|
---|
8806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
8807 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
8808 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
8809 |
|
---|
8810 | cat >>confdefs.h <<_ACEOF
|
---|
8811 | #define CRAY_STACKSEG_END $ac_func
|
---|
8812 | _ACEOF
|
---|
8813 |
|
---|
8814 | break
|
---|
8815 | fi
|
---|
8816 |
|
---|
8817 | done
|
---|
8818 | fi
|
---|
8819 |
|
---|
8820 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
8821 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
8822 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
8823 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8824 | else
|
---|
8825 | if test "$cross_compiling" = yes; then
|
---|
8826 | ac_cv_c_stack_direction=0
|
---|
8827 | else
|
---|
8828 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8829 | /* confdefs.h. */
|
---|
8830 | _ACEOF
|
---|
8831 | cat confdefs.h >>conftest.$ac_ext
|
---|
8832 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8833 | /* end confdefs.h. */
|
---|
8834 | int
|
---|
8835 | find_stack_direction ()
|
---|
8836 | {
|
---|
8837 | static char *addr = 0;
|
---|
8838 | auto char dummy;
|
---|
8839 | if (addr == 0)
|
---|
8840 | {
|
---|
8841 | addr = &dummy;
|
---|
8842 | return find_stack_direction ();
|
---|
8843 | }
|
---|
8844 | else
|
---|
8845 | return (&dummy > addr) ? 1 : -1;
|
---|
8846 | }
|
---|
8847 |
|
---|
8848 | int
|
---|
8849 | main ()
|
---|
8850 | {
|
---|
8851 | exit (find_stack_direction () < 0);
|
---|
8852 | }
|
---|
8853 | _ACEOF
|
---|
8854 | rm -f conftest$ac_exeext
|
---|
8855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8856 | (eval $ac_link) 2>&5
|
---|
8857 | ac_status=$?
|
---|
8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8861 | (eval $ac_try) 2>&5
|
---|
8862 | ac_status=$?
|
---|
8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8864 | (exit $ac_status); }; }; then
|
---|
8865 | ac_cv_c_stack_direction=1
|
---|
8866 | else
|
---|
8867 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8868 | echo "$as_me: failed program was:" >&5
|
---|
8869 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8870 |
|
---|
8871 | ( exit $ac_status )
|
---|
8872 | ac_cv_c_stack_direction=-1
|
---|
8873 | fi
|
---|
8874 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8875 | fi
|
---|
8876 | fi
|
---|
8877 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
8878 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
8879 |
|
---|
8880 | cat >>confdefs.h <<_ACEOF
|
---|
8881 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
8882 | _ACEOF
|
---|
8883 |
|
---|
8884 |
|
---|
8885 | fi
|
---|
8886 |
|
---|
8887 |
|
---|
8888 |
|
---|
8889 | for ac_header in unistd.h vfork.h
|
---|
8890 | do
|
---|
8891 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
8892 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8893 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8894 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
8895 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8896 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8897 | fi
|
---|
8898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8899 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8900 | else
|
---|
8901 | # Is the header compilable?
|
---|
8902 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
8903 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
8904 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8905 | /* confdefs.h. */
|
---|
8906 | _ACEOF
|
---|
8907 | cat confdefs.h >>conftest.$ac_ext
|
---|
8908 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8909 | /* end confdefs.h. */
|
---|
8910 | $ac_includes_default
|
---|
8911 | #include <$ac_header>
|
---|
8912 | _ACEOF
|
---|
8913 | rm -f conftest.$ac_objext
|
---|
8914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
8915 | (eval $ac_compile) 2>conftest.er1
|
---|
8916 | ac_status=$?
|
---|
8917 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8918 | rm -f conftest.er1
|
---|
8919 | cat conftest.err >&5
|
---|
8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8921 | (exit $ac_status); } &&
|
---|
8922 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8923 | || test ! -s conftest.err'
|
---|
8924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8925 | (eval $ac_try) 2>&5
|
---|
8926 | ac_status=$?
|
---|
8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8928 | (exit $ac_status); }; } &&
|
---|
8929 | { ac_try='test -s conftest.$ac_objext'
|
---|
8930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8931 | (eval $ac_try) 2>&5
|
---|
8932 | ac_status=$?
|
---|
8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8934 | (exit $ac_status); }; }; then
|
---|
8935 | ac_header_compiler=yes
|
---|
8936 | else
|
---|
8937 | echo "$as_me: failed program was:" >&5
|
---|
8938 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8939 |
|
---|
8940 | ac_header_compiler=no
|
---|
8941 | fi
|
---|
8942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8943 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
8944 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
8945 |
|
---|
8946 | # Is the header present?
|
---|
8947 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
8948 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
8949 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8950 | /* confdefs.h. */
|
---|
8951 | _ACEOF
|
---|
8952 | cat confdefs.h >>conftest.$ac_ext
|
---|
8953 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8954 | /* end confdefs.h. */
|
---|
8955 | #include <$ac_header>
|
---|
8956 | _ACEOF
|
---|
8957 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
8958 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
8959 | ac_status=$?
|
---|
8960 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8961 | rm -f conftest.er1
|
---|
8962 | cat conftest.err >&5
|
---|
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8964 | (exit $ac_status); } >/dev/null; then
|
---|
8965 | if test -s conftest.err; then
|
---|
8966 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
8967 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
8968 | else
|
---|
8969 | ac_cpp_err=
|
---|
8970 | fi
|
---|
8971 | else
|
---|
8972 | ac_cpp_err=yes
|
---|
8973 | fi
|
---|
8974 | if test -z "$ac_cpp_err"; then
|
---|
8975 | ac_header_preproc=yes
|
---|
8976 | else
|
---|
8977 | echo "$as_me: failed program was:" >&5
|
---|
8978 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8979 |
|
---|
8980 | ac_header_preproc=no
|
---|
8981 | fi
|
---|
8982 | rm -f conftest.err conftest.$ac_ext
|
---|
8983 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
8984 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
8985 |
|
---|
8986 | # So? What about this header?
|
---|
8987 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
8988 | yes:no: )
|
---|
8989 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
8990 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
8991 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
8992 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
8993 | ac_header_preproc=yes
|
---|
8994 | ;;
|
---|
8995 | no:yes:* )
|
---|
8996 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
8997 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
8998 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
8999 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
9000 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
9001 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
9002 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
9003 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
9004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
9005 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
9006 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
9007 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
9008 | (
|
---|
9009 | cat <<\_ASBOX
|
---|
9010 | ## ------------------------------- ##
|
---|
9011 | ## Report this to [email protected] ##
|
---|
9012 | ## ------------------------------- ##
|
---|
9013 | _ASBOX
|
---|
9014 | ) |
|
---|
9015 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
9016 | ;;
|
---|
9017 | esac
|
---|
9018 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
9019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
9020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
9021 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9022 | else
|
---|
9023 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
9024 | fi
|
---|
9025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
9026 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
9027 |
|
---|
9028 | fi
|
---|
9029 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
9030 | cat >>confdefs.h <<_ACEOF
|
---|
9031 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
9032 | _ACEOF
|
---|
9033 |
|
---|
9034 | fi
|
---|
9035 |
|
---|
9036 | done
|
---|
9037 |
|
---|
9038 |
|
---|
9039 |
|
---|
9040 | for ac_func in fork vfork
|
---|
9041 | do
|
---|
9042 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
9043 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
9044 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
9045 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
9046 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9047 | else
|
---|
9048 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9049 | /* confdefs.h. */
|
---|
9050 | _ACEOF
|
---|
9051 | cat confdefs.h >>conftest.$ac_ext
|
---|
9052 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9053 | /* end confdefs.h. */
|
---|
9054 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
9055 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9056 | #define $ac_func innocuous_$ac_func
|
---|
9057 |
|
---|
9058 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9059 | which can conflict with char $ac_func (); below.
|
---|
9060 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9061 | <limits.h> exists even on freestanding compilers. */
|
---|
9062 |
|
---|
9063 | #ifdef __STDC__
|
---|
9064 | # include <limits.h>
|
---|
9065 | #else
|
---|
9066 | # include <assert.h>
|
---|
9067 | #endif
|
---|
9068 |
|
---|
9069 | #undef $ac_func
|
---|
9070 |
|
---|
9071 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9072 | #ifdef __cplusplus
|
---|
9073 | extern "C"
|
---|
9074 | {
|
---|
9075 | #endif
|
---|
9076 | /* We use char because int might match the return type of a gcc2
|
---|
9077 | builtin and then its argument prototype would still apply. */
|
---|
9078 | char $ac_func ();
|
---|
9079 | /* The GNU C library defines this for functions which it implements
|
---|
9080 | to always fail with ENOSYS. Some functions are actually named
|
---|
9081 | something starting with __ and the normal name is an alias. */
|
---|
9082 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
9083 | choke me
|
---|
9084 | #else
|
---|
9085 | char (*f) () = $ac_func;
|
---|
9086 | #endif
|
---|
9087 | #ifdef __cplusplus
|
---|
9088 | }
|
---|
9089 | #endif
|
---|
9090 |
|
---|
9091 | int
|
---|
9092 | main ()
|
---|
9093 | {
|
---|
9094 | return f != $ac_func;
|
---|
9095 | ;
|
---|
9096 | return 0;
|
---|
9097 | }
|
---|
9098 | _ACEOF
|
---|
9099 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9101 | (eval $ac_link) 2>conftest.er1
|
---|
9102 | ac_status=$?
|
---|
9103 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9104 | rm -f conftest.er1
|
---|
9105 | cat conftest.err >&5
|
---|
9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9107 | (exit $ac_status); } &&
|
---|
9108 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9109 | || test ! -s conftest.err'
|
---|
9110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9111 | (eval $ac_try) 2>&5
|
---|
9112 | ac_status=$?
|
---|
9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9114 | (exit $ac_status); }; } &&
|
---|
9115 | { ac_try='test -s conftest$ac_exeext'
|
---|
9116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9117 | (eval $ac_try) 2>&5
|
---|
9118 | ac_status=$?
|
---|
9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9120 | (exit $ac_status); }; }; then
|
---|
9121 | eval "$as_ac_var=yes"
|
---|
9122 | else
|
---|
9123 | echo "$as_me: failed program was:" >&5
|
---|
9124 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9125 |
|
---|
9126 | eval "$as_ac_var=no"
|
---|
9127 | fi
|
---|
9128 | rm -f conftest.err conftest.$ac_objext \
|
---|
9129 | conftest$ac_exeext conftest.$ac_ext
|
---|
9130 | fi
|
---|
9131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
9132 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
9133 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
9134 | cat >>confdefs.h <<_ACEOF
|
---|
9135 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
9136 | _ACEOF
|
---|
9137 |
|
---|
9138 | fi
|
---|
9139 | done
|
---|
9140 |
|
---|
9141 | if test "x$ac_cv_func_fork" = xyes; then
|
---|
9142 | echo "$as_me:$LINENO: checking for working fork" >&5
|
---|
9143 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6
|
---|
9144 | if test "${ac_cv_func_fork_works+set}" = set; then
|
---|
9145 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9146 | else
|
---|
9147 | if test "$cross_compiling" = yes; then
|
---|
9148 | ac_cv_func_fork_works=cross
|
---|
9149 | else
|
---|
9150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9151 | /* By Ruediger Kuhlmann. */
|
---|
9152 | #include <sys/types.h>
|
---|
9153 | #if HAVE_UNISTD_H
|
---|
9154 | # include <unistd.h>
|
---|
9155 | #endif
|
---|
9156 | /* Some systems only have a dummy stub for fork() */
|
---|
9157 | int main ()
|
---|
9158 | {
|
---|
9159 | if (fork() < 0)
|
---|
9160 | exit (1);
|
---|
9161 | exit (0);
|
---|
9162 | }
|
---|
9163 | _ACEOF
|
---|
9164 | rm -f conftest$ac_exeext
|
---|
9165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9166 | (eval $ac_link) 2>&5
|
---|
9167 | ac_status=$?
|
---|
9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9169 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9171 | (eval $ac_try) 2>&5
|
---|
9172 | ac_status=$?
|
---|
9173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9174 | (exit $ac_status); }; }; then
|
---|
9175 | ac_cv_func_fork_works=yes
|
---|
9176 | else
|
---|
9177 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9178 | echo "$as_me: failed program was:" >&5
|
---|
9179 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9180 |
|
---|
9181 | ( exit $ac_status )
|
---|
9182 | ac_cv_func_fork_works=no
|
---|
9183 | fi
|
---|
9184 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9185 | fi
|
---|
9186 | fi
|
---|
9187 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
|
---|
9188 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6
|
---|
9189 |
|
---|
9190 | else
|
---|
9191 | ac_cv_func_fork_works=$ac_cv_func_fork
|
---|
9192 | fi
|
---|
9193 | if test "x$ac_cv_func_fork_works" = xcross; then
|
---|
9194 | case $host in
|
---|
9195 | *-*-amigaos* | *-*-msdosdjgpp*)
|
---|
9196 | # Override, as these systems have only a dummy fork() stub
|
---|
9197 | ac_cv_func_fork_works=no
|
---|
9198 | ;;
|
---|
9199 | *)
|
---|
9200 | ac_cv_func_fork_works=yes
|
---|
9201 | ;;
|
---|
9202 | esac
|
---|
9203 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
|
---|
9204 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
|
---|
9205 | fi
|
---|
9206 | ac_cv_func_vfork_works=$ac_cv_func_vfork
|
---|
9207 | if test "x$ac_cv_func_vfork" = xyes; then
|
---|
9208 | echo "$as_me:$LINENO: checking for working vfork" >&5
|
---|
9209 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
|
---|
9210 | if test "${ac_cv_func_vfork_works+set}" = set; then
|
---|
9211 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9212 | else
|
---|
9213 | if test "$cross_compiling" = yes; then
|
---|
9214 | ac_cv_func_vfork_works=cross
|
---|
9215 | else
|
---|
9216 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9217 | /* confdefs.h. */
|
---|
9218 | _ACEOF
|
---|
9219 | cat confdefs.h >>conftest.$ac_ext
|
---|
9220 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9221 | /* end confdefs.h. */
|
---|
9222 | /* Thanks to Paul Eggert for this test. */
|
---|
9223 | #include <stdio.h>
|
---|
9224 | #include <stdlib.h>
|
---|
9225 | #include <sys/types.h>
|
---|
9226 | #include <sys/stat.h>
|
---|
9227 | #include <sys/wait.h>
|
---|
9228 | #if HAVE_UNISTD_H
|
---|
9229 | # include <unistd.h>
|
---|
9230 | #endif
|
---|
9231 | #if HAVE_VFORK_H
|
---|
9232 | # include <vfork.h>
|
---|
9233 | #endif
|
---|
9234 | /* On some sparc systems, changes by the child to local and incoming
|
---|
9235 | argument registers are propagated back to the parent. The compiler
|
---|
9236 | is told about this with #include <vfork.h>, but some compilers
|
---|
9237 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
|
---|
9238 | static variable whose address is put into a register that is
|
---|
9239 | clobbered by the vfork. */
|
---|
9240 | static void
|
---|
9241 | #ifdef __cplusplus
|
---|
9242 | sparc_address_test (int arg)
|
---|
9243 | # else
|
---|
9244 | sparc_address_test (arg) int arg;
|
---|
9245 | #endif
|
---|
9246 | {
|
---|
9247 | static pid_t child;
|
---|
9248 | if (!child) {
|
---|
9249 | child = vfork ();
|
---|
9250 | if (child < 0) {
|
---|
9251 | perror ("vfork");
|
---|
9252 | _exit(2);
|
---|
9253 | }
|
---|
9254 | if (!child) {
|
---|
9255 | arg = getpid();
|
---|
9256 | write(-1, "", 0);
|
---|
9257 | _exit (arg);
|
---|
9258 | }
|
---|
9259 | }
|
---|
9260 | }
|
---|
9261 |
|
---|
9262 | int
|
---|
9263 | main ()
|
---|
9264 | {
|
---|
9265 | pid_t parent = getpid ();
|
---|
9266 | pid_t child;
|
---|
9267 |
|
---|
9268 | sparc_address_test (0);
|
---|
9269 |
|
---|
9270 | child = vfork ();
|
---|
9271 |
|
---|
9272 | if (child == 0) {
|
---|
9273 | /* Here is another test for sparc vfork register problems. This
|
---|
9274 | test uses lots of local variables, at least as many local
|
---|
9275 | variables as main has allocated so far including compiler
|
---|
9276 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
|
---|
9277 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
|
---|
9278 | reuse the register of parent for one of the local variables,
|
---|
9279 | since it will think that parent can't possibly be used any more
|
---|
9280 | in this routine. Assigning to the local variable will thus
|
---|
9281 | munge parent in the parent process. */
|
---|
9282 | pid_t
|
---|
9283 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
---|
9284 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
---|
9285 | /* Convince the compiler that p..p7 are live; otherwise, it might
|
---|
9286 | use the same hardware register for all 8 local variables. */
|
---|
9287 | if (p != p1 || p != p2 || p != p3 || p != p4
|
---|
9288 | || p != p5 || p != p6 || p != p7)
|
---|
9289 | _exit(1);
|
---|
9290 |
|
---|
9291 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
|
---|
9292 | from child file descriptors. If the child closes a descriptor
|
---|
9293 | before it execs or exits, this munges the parent's descriptor
|
---|
9294 | as well. Test for this by closing stdout in the child. */
|
---|
9295 | _exit(close(fileno(stdout)) != 0);
|
---|
9296 | } else {
|
---|
9297 | int status;
|
---|
9298 | struct stat st;
|
---|
9299 |
|
---|
9300 | while (wait(&status) != child)
|
---|
9301 | ;
|
---|
9302 | exit(
|
---|
9303 | /* Was there some problem with vforking? */
|
---|
9304 | child < 0
|
---|
9305 |
|
---|
9306 | /* Did the child fail? (This shouldn't happen.) */
|
---|
9307 | || status
|
---|
9308 |
|
---|
9309 | /* Did the vfork/compiler bug occur? */
|
---|
9310 | || parent != getpid()
|
---|
9311 |
|
---|
9312 | /* Did the file descriptor bug occur? */
|
---|
9313 | || fstat(fileno(stdout), &st) != 0
|
---|
9314 | );
|
---|
9315 | }
|
---|
9316 | }
|
---|
9317 | _ACEOF
|
---|
9318 | rm -f conftest$ac_exeext
|
---|
9319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9320 | (eval $ac_link) 2>&5
|
---|
9321 | ac_status=$?
|
---|
9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9325 | (eval $ac_try) 2>&5
|
---|
9326 | ac_status=$?
|
---|
9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9328 | (exit $ac_status); }; }; then
|
---|
9329 | ac_cv_func_vfork_works=yes
|
---|
9330 | else
|
---|
9331 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9332 | echo "$as_me: failed program was:" >&5
|
---|
9333 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9334 |
|
---|
9335 | ( exit $ac_status )
|
---|
9336 | ac_cv_func_vfork_works=no
|
---|
9337 | fi
|
---|
9338 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9339 | fi
|
---|
9340 | fi
|
---|
9341 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
|
---|
9342 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
|
---|
9343 |
|
---|
9344 | fi;
|
---|
9345 | if test "x$ac_cv_func_fork_works" = xcross; then
|
---|
9346 | ac_cv_func_vfork_works=$ac_cv_func_vfork
|
---|
9347 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
|
---|
9348 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
|
---|
9349 | fi
|
---|
9350 |
|
---|
9351 | if test "x$ac_cv_func_vfork_works" = xyes; then
|
---|
9352 |
|
---|
9353 | cat >>confdefs.h <<\_ACEOF
|
---|
9354 | #define HAVE_WORKING_VFORK 1
|
---|
9355 | _ACEOF
|
---|
9356 |
|
---|
9357 | else
|
---|
9358 |
|
---|
9359 | cat >>confdefs.h <<\_ACEOF
|
---|
9360 | #define vfork fork
|
---|
9361 | _ACEOF
|
---|
9362 |
|
---|
9363 | fi
|
---|
9364 | if test "x$ac_cv_func_fork_works" = xyes; then
|
---|
9365 |
|
---|
9366 | cat >>confdefs.h <<\_ACEOF
|
---|
9367 | #define HAVE_WORKING_FORK 1
|
---|
9368 | _ACEOF
|
---|
9369 |
|
---|
9370 | fi
|
---|
9371 |
|
---|
9372 |
|
---|
9373 | for ac_func in vprintf
|
---|
9374 | do
|
---|
9375 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
9376 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
9377 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
9378 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
9379 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9380 | else
|
---|
9381 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9382 | /* confdefs.h. */
|
---|
9383 | _ACEOF
|
---|
9384 | cat confdefs.h >>conftest.$ac_ext
|
---|
9385 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9386 | /* end confdefs.h. */
|
---|
9387 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
9388 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9389 | #define $ac_func innocuous_$ac_func
|
---|
9390 |
|
---|
9391 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9392 | which can conflict with char $ac_func (); below.
|
---|
9393 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9394 | <limits.h> exists even on freestanding compilers. */
|
---|
9395 |
|
---|
9396 | #ifdef __STDC__
|
---|
9397 | # include <limits.h>
|
---|
9398 | #else
|
---|
9399 | # include <assert.h>
|
---|
9400 | #endif
|
---|
9401 |
|
---|
9402 | #undef $ac_func
|
---|
9403 |
|
---|
9404 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9405 | #ifdef __cplusplus
|
---|
9406 | extern "C"
|
---|
9407 | {
|
---|
9408 | #endif
|
---|
9409 | /* We use char because int might match the return type of a gcc2
|
---|
9410 | builtin and then its argument prototype would still apply. */
|
---|
9411 | char $ac_func ();
|
---|
9412 | /* The GNU C library defines this for functions which it implements
|
---|
9413 | to always fail with ENOSYS. Some functions are actually named
|
---|
9414 | something starting with __ and the normal name is an alias. */
|
---|
9415 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
9416 | choke me
|
---|
9417 | #else
|
---|
9418 | char (*f) () = $ac_func;
|
---|
9419 | #endif
|
---|
9420 | #ifdef __cplusplus
|
---|
9421 | }
|
---|
9422 | #endif
|
---|
9423 |
|
---|
9424 | int
|
---|
9425 | main ()
|
---|
9426 | {
|
---|
9427 | return f != $ac_func;
|
---|
9428 | ;
|
---|
9429 | return 0;
|
---|
9430 | }
|
---|
9431 | _ACEOF
|
---|
9432 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9434 | (eval $ac_link) 2>conftest.er1
|
---|
9435 | ac_status=$?
|
---|
9436 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9437 | rm -f conftest.er1
|
---|
9438 | cat conftest.err >&5
|
---|
9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9440 | (exit $ac_status); } &&
|
---|
9441 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9442 | || test ! -s conftest.err'
|
---|
9443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9444 | (eval $ac_try) 2>&5
|
---|
9445 | ac_status=$?
|
---|
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9447 | (exit $ac_status); }; } &&
|
---|
9448 | { ac_try='test -s conftest$ac_exeext'
|
---|
9449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9450 | (eval $ac_try) 2>&5
|
---|
9451 | ac_status=$?
|
---|
9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9453 | (exit $ac_status); }; }; then
|
---|
9454 | eval "$as_ac_var=yes"
|
---|
9455 | else
|
---|
9456 | echo "$as_me: failed program was:" >&5
|
---|
9457 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9458 |
|
---|
9459 | eval "$as_ac_var=no"
|
---|
9460 | fi
|
---|
9461 | rm -f conftest.err conftest.$ac_objext \
|
---|
9462 | conftest$ac_exeext conftest.$ac_ext
|
---|
9463 | fi
|
---|
9464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
9465 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
9466 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
9467 | cat >>confdefs.h <<_ACEOF
|
---|
9468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
9469 | _ACEOF
|
---|
9470 |
|
---|
9471 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
9472 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
9473 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
9474 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9475 | else
|
---|
9476 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9477 | /* confdefs.h. */
|
---|
9478 | _ACEOF
|
---|
9479 | cat confdefs.h >>conftest.$ac_ext
|
---|
9480 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9481 | /* end confdefs.h. */
|
---|
9482 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
9483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9484 | #define _doprnt innocuous__doprnt
|
---|
9485 |
|
---|
9486 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9487 | which can conflict with char _doprnt (); below.
|
---|
9488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9489 | <limits.h> exists even on freestanding compilers. */
|
---|
9490 |
|
---|
9491 | #ifdef __STDC__
|
---|
9492 | # include <limits.h>
|
---|
9493 | #else
|
---|
9494 | # include <assert.h>
|
---|
9495 | #endif
|
---|
9496 |
|
---|
9497 | #undef _doprnt
|
---|
9498 |
|
---|
9499 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9500 | #ifdef __cplusplus
|
---|
9501 | extern "C"
|
---|
9502 | {
|
---|
9503 | #endif
|
---|
9504 | /* We use char because int might match the return type of a gcc2
|
---|
9505 | builtin and then its argument prototype would still apply. */
|
---|
9506 | char _doprnt ();
|
---|
9507 | /* The GNU C library defines this for functions which it implements
|
---|
9508 | to always fail with ENOSYS. Some functions are actually named
|
---|
9509 | something starting with __ and the normal name is an alias. */
|
---|
9510 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
9511 | choke me
|
---|
9512 | #else
|
---|
9513 | char (*f) () = _doprnt;
|
---|
9514 | #endif
|
---|
9515 | #ifdef __cplusplus
|
---|
9516 | }
|
---|
9517 | #endif
|
---|
9518 |
|
---|
9519 | int
|
---|
9520 | main ()
|
---|
9521 | {
|
---|
9522 | return f != _doprnt;
|
---|
9523 | ;
|
---|
9524 | return 0;
|
---|
9525 | }
|
---|
9526 | _ACEOF
|
---|
9527 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9529 | (eval $ac_link) 2>conftest.er1
|
---|
9530 | ac_status=$?
|
---|
9531 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9532 | rm -f conftest.er1
|
---|
9533 | cat conftest.err >&5
|
---|
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9535 | (exit $ac_status); } &&
|
---|
9536 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9537 | || test ! -s conftest.err'
|
---|
9538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9539 | (eval $ac_try) 2>&5
|
---|
9540 | ac_status=$?
|
---|
9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9542 | (exit $ac_status); }; } &&
|
---|
9543 | { ac_try='test -s conftest$ac_exeext'
|
---|
9544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9545 | (eval $ac_try) 2>&5
|
---|
9546 | ac_status=$?
|
---|
9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9548 | (exit $ac_status); }; }; then
|
---|
9549 | ac_cv_func__doprnt=yes
|
---|
9550 | else
|
---|
9551 | echo "$as_me: failed program was:" >&5
|
---|
9552 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9553 |
|
---|
9554 | ac_cv_func__doprnt=no
|
---|
9555 | fi
|
---|
9556 | rm -f conftest.err conftest.$ac_objext \
|
---|
9557 | conftest$ac_exeext conftest.$ac_ext
|
---|
9558 | fi
|
---|
9559 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
9560 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
9561 | if test $ac_cv_func__doprnt = yes; then
|
---|
9562 |
|
---|
9563 | cat >>confdefs.h <<\_ACEOF
|
---|
9564 | #define HAVE_DOPRNT 1
|
---|
9565 | _ACEOF
|
---|
9566 |
|
---|
9567 | fi
|
---|
9568 |
|
---|
9569 | fi
|
---|
9570 | done
|
---|
9571 |
|
---|
9572 |
|
---|
9573 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5
|
---|
9574 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
|
---|
9575 | if test "${ac_cv_func_closedir_void+set}" = set; then
|
---|
9576 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9577 | else
|
---|
9578 | if test "$cross_compiling" = yes; then
|
---|
9579 | ac_cv_func_closedir_void=yes
|
---|
9580 | else
|
---|
9581 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9582 | /* confdefs.h. */
|
---|
9583 | _ACEOF
|
---|
9584 | cat confdefs.h >>conftest.$ac_ext
|
---|
9585 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9586 | /* end confdefs.h. */
|
---|
9587 | $ac_includes_default
|
---|
9588 | #include <$ac_header_dirent>
|
---|
9589 | #ifndef __cplusplus
|
---|
9590 | int closedir ();
|
---|
9591 | #endif
|
---|
9592 |
|
---|
9593 | int
|
---|
9594 | main ()
|
---|
9595 | {
|
---|
9596 | exit (closedir (opendir (".")) != 0);
|
---|
9597 | ;
|
---|
9598 | return 0;
|
---|
9599 | }
|
---|
9600 | _ACEOF
|
---|
9601 | rm -f conftest$ac_exeext
|
---|
9602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9603 | (eval $ac_link) 2>&5
|
---|
9604 | ac_status=$?
|
---|
9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9608 | (eval $ac_try) 2>&5
|
---|
9609 | ac_status=$?
|
---|
9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9611 | (exit $ac_status); }; }; then
|
---|
9612 | ac_cv_func_closedir_void=no
|
---|
9613 | else
|
---|
9614 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9615 | echo "$as_me: failed program was:" >&5
|
---|
9616 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9617 |
|
---|
9618 | ( exit $ac_status )
|
---|
9619 | ac_cv_func_closedir_void=yes
|
---|
9620 | fi
|
---|
9621 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9622 | fi
|
---|
9623 | fi
|
---|
9624 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
|
---|
9625 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
|
---|
9626 | if test $ac_cv_func_closedir_void = yes; then
|
---|
9627 |
|
---|
9628 | cat >>confdefs.h <<\_ACEOF
|
---|
9629 | #define CLOSEDIR_VOID 1
|
---|
9630 | _ACEOF
|
---|
9631 |
|
---|
9632 | fi
|
---|
9633 |
|
---|
9634 |
|
---|
9635 | ac_have_func=no # yes means we've found a way to get the load average.
|
---|
9636 |
|
---|
9637 | # Make sure getloadavg.c is where it belongs, at configure-time.
|
---|
9638 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
|
---|
9639 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
|
---|
9640 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
|
---|
9641 | { (exit 1); exit 1; }; }
|
---|
9642 |
|
---|
9643 | ac_save_LIBS=$LIBS
|
---|
9644 |
|
---|
9645 | # Check for getloadavg, but be sure not to touch the cache variable.
|
---|
9646 | (echo "$as_me:$LINENO: checking for getloadavg" >&5
|
---|
9647 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
|
---|
9648 | if test "${ac_cv_func_getloadavg+set}" = set; then
|
---|
9649 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9650 | else
|
---|
9651 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9652 | /* confdefs.h. */
|
---|
9653 | _ACEOF
|
---|
9654 | cat confdefs.h >>conftest.$ac_ext
|
---|
9655 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9656 | /* end confdefs.h. */
|
---|
9657 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
|
---|
9658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9659 | #define getloadavg innocuous_getloadavg
|
---|
9660 |
|
---|
9661 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9662 | which can conflict with char getloadavg (); below.
|
---|
9663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9664 | <limits.h> exists even on freestanding compilers. */
|
---|
9665 |
|
---|
9666 | #ifdef __STDC__
|
---|
9667 | # include <limits.h>
|
---|
9668 | #else
|
---|
9669 | # include <assert.h>
|
---|
9670 | #endif
|
---|
9671 |
|
---|
9672 | #undef getloadavg
|
---|
9673 |
|
---|
9674 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9675 | #ifdef __cplusplus
|
---|
9676 | extern "C"
|
---|
9677 | {
|
---|
9678 | #endif
|
---|
9679 | /* We use char because int might match the return type of a gcc2
|
---|
9680 | builtin and then its argument prototype would still apply. */
|
---|
9681 | char getloadavg ();
|
---|
9682 | /* The GNU C library defines this for functions which it implements
|
---|
9683 | to always fail with ENOSYS. Some functions are actually named
|
---|
9684 | something starting with __ and the normal name is an alias. */
|
---|
9685 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
|
---|
9686 | choke me
|
---|
9687 | #else
|
---|
9688 | char (*f) () = getloadavg;
|
---|
9689 | #endif
|
---|
9690 | #ifdef __cplusplus
|
---|
9691 | }
|
---|
9692 | #endif
|
---|
9693 |
|
---|
9694 | int
|
---|
9695 | main ()
|
---|
9696 | {
|
---|
9697 | return f != getloadavg;
|
---|
9698 | ;
|
---|
9699 | return 0;
|
---|
9700 | }
|
---|
9701 | _ACEOF
|
---|
9702 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9704 | (eval $ac_link) 2>conftest.er1
|
---|
9705 | ac_status=$?
|
---|
9706 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9707 | rm -f conftest.er1
|
---|
9708 | cat conftest.err >&5
|
---|
9709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9710 | (exit $ac_status); } &&
|
---|
9711 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9712 | || test ! -s conftest.err'
|
---|
9713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9714 | (eval $ac_try) 2>&5
|
---|
9715 | ac_status=$?
|
---|
9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9717 | (exit $ac_status); }; } &&
|
---|
9718 | { ac_try='test -s conftest$ac_exeext'
|
---|
9719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9720 | (eval $ac_try) 2>&5
|
---|
9721 | ac_status=$?
|
---|
9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9723 | (exit $ac_status); }; }; then
|
---|
9724 | ac_cv_func_getloadavg=yes
|
---|
9725 | else
|
---|
9726 | echo "$as_me: failed program was:" >&5
|
---|
9727 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9728 |
|
---|
9729 | ac_cv_func_getloadavg=no
|
---|
9730 | fi
|
---|
9731 | rm -f conftest.err conftest.$ac_objext \
|
---|
9732 | conftest$ac_exeext conftest.$ac_ext
|
---|
9733 | fi
|
---|
9734 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
|
---|
9735 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
|
---|
9736 | if test $ac_cv_func_getloadavg = yes; then
|
---|
9737 | exit 0
|
---|
9738 | else
|
---|
9739 | exit 1
|
---|
9740 | fi
|
---|
9741 | ) && ac_have_func=yes
|
---|
9742 |
|
---|
9743 | # On HPUX9, an unprivileged user can get load averages through this function.
|
---|
9744 |
|
---|
9745 | for ac_func in pstat_getdynamic
|
---|
9746 | do
|
---|
9747 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
9748 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
9749 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
9750 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
9751 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9752 | else
|
---|
9753 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9754 | /* confdefs.h. */
|
---|
9755 | _ACEOF
|
---|
9756 | cat confdefs.h >>conftest.$ac_ext
|
---|
9757 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9758 | /* end confdefs.h. */
|
---|
9759 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
9760 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9761 | #define $ac_func innocuous_$ac_func
|
---|
9762 |
|
---|
9763 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9764 | which can conflict with char $ac_func (); below.
|
---|
9765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9766 | <limits.h> exists even on freestanding compilers. */
|
---|
9767 |
|
---|
9768 | #ifdef __STDC__
|
---|
9769 | # include <limits.h>
|
---|
9770 | #else
|
---|
9771 | # include <assert.h>
|
---|
9772 | #endif
|
---|
9773 |
|
---|
9774 | #undef $ac_func
|
---|
9775 |
|
---|
9776 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9777 | #ifdef __cplusplus
|
---|
9778 | extern "C"
|
---|
9779 | {
|
---|
9780 | #endif
|
---|
9781 | /* We use char because int might match the return type of a gcc2
|
---|
9782 | builtin and then its argument prototype would still apply. */
|
---|
9783 | char $ac_func ();
|
---|
9784 | /* The GNU C library defines this for functions which it implements
|
---|
9785 | to always fail with ENOSYS. Some functions are actually named
|
---|
9786 | something starting with __ and the normal name is an alias. */
|
---|
9787 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
9788 | choke me
|
---|
9789 | #else
|
---|
9790 | char (*f) () = $ac_func;
|
---|
9791 | #endif
|
---|
9792 | #ifdef __cplusplus
|
---|
9793 | }
|
---|
9794 | #endif
|
---|
9795 |
|
---|
9796 | int
|
---|
9797 | main ()
|
---|
9798 | {
|
---|
9799 | return f != $ac_func;
|
---|
9800 | ;
|
---|
9801 | return 0;
|
---|
9802 | }
|
---|
9803 | _ACEOF
|
---|
9804 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9806 | (eval $ac_link) 2>conftest.er1
|
---|
9807 | ac_status=$?
|
---|
9808 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9809 | rm -f conftest.er1
|
---|
9810 | cat conftest.err >&5
|
---|
9811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9812 | (exit $ac_status); } &&
|
---|
9813 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9814 | || test ! -s conftest.err'
|
---|
9815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9816 | (eval $ac_try) 2>&5
|
---|
9817 | ac_status=$?
|
---|
9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9819 | (exit $ac_status); }; } &&
|
---|
9820 | { ac_try='test -s conftest$ac_exeext'
|
---|
9821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9822 | (eval $ac_try) 2>&5
|
---|
9823 | ac_status=$?
|
---|
9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9825 | (exit $ac_status); }; }; then
|
---|
9826 | eval "$as_ac_var=yes"
|
---|
9827 | else
|
---|
9828 | echo "$as_me: failed program was:" >&5
|
---|
9829 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9830 |
|
---|
9831 | eval "$as_ac_var=no"
|
---|
9832 | fi
|
---|
9833 | rm -f conftest.err conftest.$ac_objext \
|
---|
9834 | conftest$ac_exeext conftest.$ac_ext
|
---|
9835 | fi
|
---|
9836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
9837 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
9838 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
9839 | cat >>confdefs.h <<_ACEOF
|
---|
9840 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
9841 | _ACEOF
|
---|
9842 |
|
---|
9843 | fi
|
---|
9844 | done
|
---|
9845 |
|
---|
9846 |
|
---|
9847 | # Solaris has libkstat which does not require root.
|
---|
9848 |
|
---|
9849 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
|
---|
9850 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
|
---|
9851 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
|
---|
9852 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9853 | else
|
---|
9854 | ac_check_lib_save_LIBS=$LIBS
|
---|
9855 | LIBS="-lkstat $LIBS"
|
---|
9856 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9857 | /* confdefs.h. */
|
---|
9858 | _ACEOF
|
---|
9859 | cat confdefs.h >>conftest.$ac_ext
|
---|
9860 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9861 | /* end confdefs.h. */
|
---|
9862 |
|
---|
9863 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9864 | #ifdef __cplusplus
|
---|
9865 | extern "C"
|
---|
9866 | #endif
|
---|
9867 | /* We use char because int might match the return type of a gcc2
|
---|
9868 | builtin and then its argument prototype would still apply. */
|
---|
9869 | char kstat_open ();
|
---|
9870 | int
|
---|
9871 | main ()
|
---|
9872 | {
|
---|
9873 | kstat_open ();
|
---|
9874 | ;
|
---|
9875 | return 0;
|
---|
9876 | }
|
---|
9877 | _ACEOF
|
---|
9878 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9880 | (eval $ac_link) 2>conftest.er1
|
---|
9881 | ac_status=$?
|
---|
9882 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9883 | rm -f conftest.er1
|
---|
9884 | cat conftest.err >&5
|
---|
9885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9886 | (exit $ac_status); } &&
|
---|
9887 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9888 | || test ! -s conftest.err'
|
---|
9889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9890 | (eval $ac_try) 2>&5
|
---|
9891 | ac_status=$?
|
---|
9892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9893 | (exit $ac_status); }; } &&
|
---|
9894 | { ac_try='test -s conftest$ac_exeext'
|
---|
9895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9896 | (eval $ac_try) 2>&5
|
---|
9897 | ac_status=$?
|
---|
9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9899 | (exit $ac_status); }; }; then
|
---|
9900 | ac_cv_lib_kstat_kstat_open=yes
|
---|
9901 | else
|
---|
9902 | echo "$as_me: failed program was:" >&5
|
---|
9903 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9904 |
|
---|
9905 | ac_cv_lib_kstat_kstat_open=no
|
---|
9906 | fi
|
---|
9907 | rm -f conftest.err conftest.$ac_objext \
|
---|
9908 | conftest$ac_exeext conftest.$ac_ext
|
---|
9909 | LIBS=$ac_check_lib_save_LIBS
|
---|
9910 | fi
|
---|
9911 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
|
---|
9912 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
|
---|
9913 | if test $ac_cv_lib_kstat_kstat_open = yes; then
|
---|
9914 | cat >>confdefs.h <<_ACEOF
|
---|
9915 | #define HAVE_LIBKSTAT 1
|
---|
9916 | _ACEOF
|
---|
9917 |
|
---|
9918 | LIBS="-lkstat $LIBS"
|
---|
9919 |
|
---|
9920 | fi
|
---|
9921 |
|
---|
9922 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
|
---|
9923 |
|
---|
9924 | # Some systems with -lutil have (and need) -lkvm as well, some do not.
|
---|
9925 | # On Solaris, -lkvm requires nlist from -lelf, so check that first
|
---|
9926 | # to get the right answer into the cache.
|
---|
9927 | # For kstat on solaris, we need libelf to force the definition of SVR4 below.
|
---|
9928 | if test $ac_have_func = no; then
|
---|
9929 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
|
---|
9930 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
|
---|
9931 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
|
---|
9932 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9933 | else
|
---|
9934 | ac_check_lib_save_LIBS=$LIBS
|
---|
9935 | LIBS="-lelf $LIBS"
|
---|
9936 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9937 | /* confdefs.h. */
|
---|
9938 | _ACEOF
|
---|
9939 | cat confdefs.h >>conftest.$ac_ext
|
---|
9940 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9941 | /* end confdefs.h. */
|
---|
9942 |
|
---|
9943 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9944 | #ifdef __cplusplus
|
---|
9945 | extern "C"
|
---|
9946 | #endif
|
---|
9947 | /* We use char because int might match the return type of a gcc2
|
---|
9948 | builtin and then its argument prototype would still apply. */
|
---|
9949 | char elf_begin ();
|
---|
9950 | int
|
---|
9951 | main ()
|
---|
9952 | {
|
---|
9953 | elf_begin ();
|
---|
9954 | ;
|
---|
9955 | return 0;
|
---|
9956 | }
|
---|
9957 | _ACEOF
|
---|
9958 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9960 | (eval $ac_link) 2>conftest.er1
|
---|
9961 | ac_status=$?
|
---|
9962 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9963 | rm -f conftest.er1
|
---|
9964 | cat conftest.err >&5
|
---|
9965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9966 | (exit $ac_status); } &&
|
---|
9967 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9968 | || test ! -s conftest.err'
|
---|
9969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9970 | (eval $ac_try) 2>&5
|
---|
9971 | ac_status=$?
|
---|
9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9973 | (exit $ac_status); }; } &&
|
---|
9974 | { ac_try='test -s conftest$ac_exeext'
|
---|
9975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9976 | (eval $ac_try) 2>&5
|
---|
9977 | ac_status=$?
|
---|
9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9979 | (exit $ac_status); }; }; then
|
---|
9980 | ac_cv_lib_elf_elf_begin=yes
|
---|
9981 | else
|
---|
9982 | echo "$as_me: failed program was:" >&5
|
---|
9983 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9984 |
|
---|
9985 | ac_cv_lib_elf_elf_begin=no
|
---|
9986 | fi
|
---|
9987 | rm -f conftest.err conftest.$ac_objext \
|
---|
9988 | conftest$ac_exeext conftest.$ac_ext
|
---|
9989 | LIBS=$ac_check_lib_save_LIBS
|
---|
9990 | fi
|
---|
9991 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
|
---|
9992 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
|
---|
9993 | if test $ac_cv_lib_elf_elf_begin = yes; then
|
---|
9994 | LIBS="-lelf $LIBS"
|
---|
9995 | fi
|
---|
9996 |
|
---|
9997 | fi
|
---|
9998 | if test $ac_have_func = no; then
|
---|
9999 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
|
---|
10000 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
|
---|
10001 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
|
---|
10002 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10003 | else
|
---|
10004 | ac_check_lib_save_LIBS=$LIBS
|
---|
10005 | LIBS="-lkvm $LIBS"
|
---|
10006 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10007 | /* confdefs.h. */
|
---|
10008 | _ACEOF
|
---|
10009 | cat confdefs.h >>conftest.$ac_ext
|
---|
10010 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10011 | /* end confdefs.h. */
|
---|
10012 |
|
---|
10013 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10014 | #ifdef __cplusplus
|
---|
10015 | extern "C"
|
---|
10016 | #endif
|
---|
10017 | /* We use char because int might match the return type of a gcc2
|
---|
10018 | builtin and then its argument prototype would still apply. */
|
---|
10019 | char kvm_open ();
|
---|
10020 | int
|
---|
10021 | main ()
|
---|
10022 | {
|
---|
10023 | kvm_open ();
|
---|
10024 | ;
|
---|
10025 | return 0;
|
---|
10026 | }
|
---|
10027 | _ACEOF
|
---|
10028 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10030 | (eval $ac_link) 2>conftest.er1
|
---|
10031 | ac_status=$?
|
---|
10032 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10033 | rm -f conftest.er1
|
---|
10034 | cat conftest.err >&5
|
---|
10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10036 | (exit $ac_status); } &&
|
---|
10037 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10038 | || test ! -s conftest.err'
|
---|
10039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10040 | (eval $ac_try) 2>&5
|
---|
10041 | ac_status=$?
|
---|
10042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10043 | (exit $ac_status); }; } &&
|
---|
10044 | { ac_try='test -s conftest$ac_exeext'
|
---|
10045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10046 | (eval $ac_try) 2>&5
|
---|
10047 | ac_status=$?
|
---|
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10049 | (exit $ac_status); }; }; then
|
---|
10050 | ac_cv_lib_kvm_kvm_open=yes
|
---|
10051 | else
|
---|
10052 | echo "$as_me: failed program was:" >&5
|
---|
10053 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10054 |
|
---|
10055 | ac_cv_lib_kvm_kvm_open=no
|
---|
10056 | fi
|
---|
10057 | rm -f conftest.err conftest.$ac_objext \
|
---|
10058 | conftest$ac_exeext conftest.$ac_ext
|
---|
10059 | LIBS=$ac_check_lib_save_LIBS
|
---|
10060 | fi
|
---|
10061 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
|
---|
10062 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
|
---|
10063 | if test $ac_cv_lib_kvm_kvm_open = yes; then
|
---|
10064 | LIBS="-lkvm $LIBS"
|
---|
10065 | fi
|
---|
10066 |
|
---|
10067 | # Check for the 4.4BSD definition of getloadavg.
|
---|
10068 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
|
---|
10069 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
|
---|
10070 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then
|
---|
10071 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10072 | else
|
---|
10073 | ac_check_lib_save_LIBS=$LIBS
|
---|
10074 | LIBS="-lutil $LIBS"
|
---|
10075 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10076 | /* confdefs.h. */
|
---|
10077 | _ACEOF
|
---|
10078 | cat confdefs.h >>conftest.$ac_ext
|
---|
10079 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10080 | /* end confdefs.h. */
|
---|
10081 |
|
---|
10082 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10083 | #ifdef __cplusplus
|
---|
10084 | extern "C"
|
---|
10085 | #endif
|
---|
10086 | /* We use char because int might match the return type of a gcc2
|
---|
10087 | builtin and then its argument prototype would still apply. */
|
---|
10088 | char getloadavg ();
|
---|
10089 | int
|
---|
10090 | main ()
|
---|
10091 | {
|
---|
10092 | getloadavg ();
|
---|
10093 | ;
|
---|
10094 | return 0;
|
---|
10095 | }
|
---|
10096 | _ACEOF
|
---|
10097 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10099 | (eval $ac_link) 2>conftest.er1
|
---|
10100 | ac_status=$?
|
---|
10101 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10102 | rm -f conftest.er1
|
---|
10103 | cat conftest.err >&5
|
---|
10104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10105 | (exit $ac_status); } &&
|
---|
10106 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10107 | || test ! -s conftest.err'
|
---|
10108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10109 | (eval $ac_try) 2>&5
|
---|
10110 | ac_status=$?
|
---|
10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10112 | (exit $ac_status); }; } &&
|
---|
10113 | { ac_try='test -s conftest$ac_exeext'
|
---|
10114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10115 | (eval $ac_try) 2>&5
|
---|
10116 | ac_status=$?
|
---|
10117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10118 | (exit $ac_status); }; }; then
|
---|
10119 | ac_cv_lib_util_getloadavg=yes
|
---|
10120 | else
|
---|
10121 | echo "$as_me: failed program was:" >&5
|
---|
10122 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10123 |
|
---|
10124 | ac_cv_lib_util_getloadavg=no
|
---|
10125 | fi
|
---|
10126 | rm -f conftest.err conftest.$ac_objext \
|
---|
10127 | conftest$ac_exeext conftest.$ac_ext
|
---|
10128 | LIBS=$ac_check_lib_save_LIBS
|
---|
10129 | fi
|
---|
10130 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
|
---|
10131 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
|
---|
10132 | if test $ac_cv_lib_util_getloadavg = yes; then
|
---|
10133 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
|
---|
10134 | fi
|
---|
10135 |
|
---|
10136 | fi
|
---|
10137 |
|
---|
10138 | if test $ac_have_func = no; then
|
---|
10139 | # There is a commonly available library for RS/6000 AIX.
|
---|
10140 | # Since it is not a standard part of AIX, it might be installed locally.
|
---|
10141 | ac_getloadavg_LIBS=$LIBS
|
---|
10142 | LIBS="-L/usr/local/lib $LIBS"
|
---|
10143 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
|
---|
10144 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
|
---|
10145 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
|
---|
10146 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10147 | else
|
---|
10148 | ac_check_lib_save_LIBS=$LIBS
|
---|
10149 | LIBS="-lgetloadavg $LIBS"
|
---|
10150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10151 | /* confdefs.h. */
|
---|
10152 | _ACEOF
|
---|
10153 | cat confdefs.h >>conftest.$ac_ext
|
---|
10154 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10155 | /* end confdefs.h. */
|
---|
10156 |
|
---|
10157 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10158 | #ifdef __cplusplus
|
---|
10159 | extern "C"
|
---|
10160 | #endif
|
---|
10161 | /* We use char because int might match the return type of a gcc2
|
---|
10162 | builtin and then its argument prototype would still apply. */
|
---|
10163 | char getloadavg ();
|
---|
10164 | int
|
---|
10165 | main ()
|
---|
10166 | {
|
---|
10167 | getloadavg ();
|
---|
10168 | ;
|
---|
10169 | return 0;
|
---|
10170 | }
|
---|
10171 | _ACEOF
|
---|
10172 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10174 | (eval $ac_link) 2>conftest.er1
|
---|
10175 | ac_status=$?
|
---|
10176 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10177 | rm -f conftest.er1
|
---|
10178 | cat conftest.err >&5
|
---|
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10180 | (exit $ac_status); } &&
|
---|
10181 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10182 | || test ! -s conftest.err'
|
---|
10183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10184 | (eval $ac_try) 2>&5
|
---|
10185 | ac_status=$?
|
---|
10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10187 | (exit $ac_status); }; } &&
|
---|
10188 | { ac_try='test -s conftest$ac_exeext'
|
---|
10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10190 | (eval $ac_try) 2>&5
|
---|
10191 | ac_status=$?
|
---|
10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10193 | (exit $ac_status); }; }; then
|
---|
10194 | ac_cv_lib_getloadavg_getloadavg=yes
|
---|
10195 | else
|
---|
10196 | echo "$as_me: failed program was:" >&5
|
---|
10197 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10198 |
|
---|
10199 | ac_cv_lib_getloadavg_getloadavg=no
|
---|
10200 | fi
|
---|
10201 | rm -f conftest.err conftest.$ac_objext \
|
---|
10202 | conftest$ac_exeext conftest.$ac_ext
|
---|
10203 | LIBS=$ac_check_lib_save_LIBS
|
---|
10204 | fi
|
---|
10205 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
|
---|
10206 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
|
---|
10207 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then
|
---|
10208 | LIBS="-lgetloadavg $LIBS"
|
---|
10209 | else
|
---|
10210 | LIBS=$ac_getloadavg_LIBS
|
---|
10211 | fi
|
---|
10212 |
|
---|
10213 | fi
|
---|
10214 |
|
---|
10215 | # Make sure it is really in the library, if we think we found it,
|
---|
10216 | # otherwise set up the replacement function.
|
---|
10217 |
|
---|
10218 | for ac_func in getloadavg
|
---|
10219 | do
|
---|
10220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
10221 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
10222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
10223 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
10224 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10225 | else
|
---|
10226 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10227 | /* confdefs.h. */
|
---|
10228 | _ACEOF
|
---|
10229 | cat confdefs.h >>conftest.$ac_ext
|
---|
10230 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10231 | /* end confdefs.h. */
|
---|
10232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
10233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
10234 | #define $ac_func innocuous_$ac_func
|
---|
10235 |
|
---|
10236 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
10237 | which can conflict with char $ac_func (); below.
|
---|
10238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
10239 | <limits.h> exists even on freestanding compilers. */
|
---|
10240 |
|
---|
10241 | #ifdef __STDC__
|
---|
10242 | # include <limits.h>
|
---|
10243 | #else
|
---|
10244 | # include <assert.h>
|
---|
10245 | #endif
|
---|
10246 |
|
---|
10247 | #undef $ac_func
|
---|
10248 |
|
---|
10249 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10250 | #ifdef __cplusplus
|
---|
10251 | extern "C"
|
---|
10252 | {
|
---|
10253 | #endif
|
---|
10254 | /* We use char because int might match the return type of a gcc2
|
---|
10255 | builtin and then its argument prototype would still apply. */
|
---|
10256 | char $ac_func ();
|
---|
10257 | /* The GNU C library defines this for functions which it implements
|
---|
10258 | to always fail with ENOSYS. Some functions are actually named
|
---|
10259 | something starting with __ and the normal name is an alias. */
|
---|
10260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
10261 | choke me
|
---|
10262 | #else
|
---|
10263 | char (*f) () = $ac_func;
|
---|
10264 | #endif
|
---|
10265 | #ifdef __cplusplus
|
---|
10266 | }
|
---|
10267 | #endif
|
---|
10268 |
|
---|
10269 | int
|
---|
10270 | main ()
|
---|
10271 | {
|
---|
10272 | return f != $ac_func;
|
---|
10273 | ;
|
---|
10274 | return 0;
|
---|
10275 | }
|
---|
10276 | _ACEOF
|
---|
10277 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10279 | (eval $ac_link) 2>conftest.er1
|
---|
10280 | ac_status=$?
|
---|
10281 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10282 | rm -f conftest.er1
|
---|
10283 | cat conftest.err >&5
|
---|
10284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10285 | (exit $ac_status); } &&
|
---|
10286 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10287 | || test ! -s conftest.err'
|
---|
10288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10289 | (eval $ac_try) 2>&5
|
---|
10290 | ac_status=$?
|
---|
10291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10292 | (exit $ac_status); }; } &&
|
---|
10293 | { ac_try='test -s conftest$ac_exeext'
|
---|
10294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10295 | (eval $ac_try) 2>&5
|
---|
10296 | ac_status=$?
|
---|
10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10298 | (exit $ac_status); }; }; then
|
---|
10299 | eval "$as_ac_var=yes"
|
---|
10300 | else
|
---|
10301 | echo "$as_me: failed program was:" >&5
|
---|
10302 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10303 |
|
---|
10304 | eval "$as_ac_var=no"
|
---|
10305 | fi
|
---|
10306 | rm -f conftest.err conftest.$ac_objext \
|
---|
10307 | conftest$ac_exeext conftest.$ac_ext
|
---|
10308 | fi
|
---|
10309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
10310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
10311 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
10312 | cat >>confdefs.h <<_ACEOF
|
---|
10313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
10314 | _ACEOF
|
---|
10315 |
|
---|
10316 | else
|
---|
10317 | case $LIBOBJS in
|
---|
10318 | "getloadavg.$ac_objext" | \
|
---|
10319 | *" getloadavg.$ac_objext" | \
|
---|
10320 | "getloadavg.$ac_objext "* | \
|
---|
10321 | *" getloadavg.$ac_objext "* ) ;;
|
---|
10322 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
|
---|
10323 | esac
|
---|
10324 |
|
---|
10325 |
|
---|
10326 | cat >>confdefs.h <<\_ACEOF
|
---|
10327 | #define C_GETLOADAVG 1
|
---|
10328 | _ACEOF
|
---|
10329 |
|
---|
10330 | # Figure out what our getloadavg.c needs.
|
---|
10331 | ac_have_func=no
|
---|
10332 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
|
---|
10333 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
|
---|
10334 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
|
---|
10335 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
|
---|
10336 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10337 | fi
|
---|
10338 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
|
---|
10339 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
|
---|
10340 | else
|
---|
10341 | # Is the header compilable?
|
---|
10342 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
|
---|
10343 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
|
---|
10344 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10345 | /* confdefs.h. */
|
---|
10346 | _ACEOF
|
---|
10347 | cat confdefs.h >>conftest.$ac_ext
|
---|
10348 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10349 | /* end confdefs.h. */
|
---|
10350 | $ac_includes_default
|
---|
10351 | #include <sys/dg_sys_info.h>
|
---|
10352 | _ACEOF
|
---|
10353 | rm -f conftest.$ac_objext
|
---|
10354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
10355 | (eval $ac_compile) 2>conftest.er1
|
---|
10356 | ac_status=$?
|
---|
10357 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10358 | rm -f conftest.er1
|
---|
10359 | cat conftest.err >&5
|
---|
10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10361 | (exit $ac_status); } &&
|
---|
10362 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10363 | || test ! -s conftest.err'
|
---|
10364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10365 | (eval $ac_try) 2>&5
|
---|
10366 | ac_status=$?
|
---|
10367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10368 | (exit $ac_status); }; } &&
|
---|
10369 | { ac_try='test -s conftest.$ac_objext'
|
---|
10370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10371 | (eval $ac_try) 2>&5
|
---|
10372 | ac_status=$?
|
---|
10373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10374 | (exit $ac_status); }; }; then
|
---|
10375 | ac_header_compiler=yes
|
---|
10376 | else
|
---|
10377 | echo "$as_me: failed program was:" >&5
|
---|
10378 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10379 |
|
---|
10380 | ac_header_compiler=no
|
---|
10381 | fi
|
---|
10382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10383 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
10384 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
10385 |
|
---|
10386 | # Is the header present?
|
---|
10387 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
|
---|
10388 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
|
---|
10389 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10390 | /* confdefs.h. */
|
---|
10391 | _ACEOF
|
---|
10392 | cat confdefs.h >>conftest.$ac_ext
|
---|
10393 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10394 | /* end confdefs.h. */
|
---|
10395 | #include <sys/dg_sys_info.h>
|
---|
10396 | _ACEOF
|
---|
10397 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
10398 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
10399 | ac_status=$?
|
---|
10400 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10401 | rm -f conftest.er1
|
---|
10402 | cat conftest.err >&5
|
---|
10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10404 | (exit $ac_status); } >/dev/null; then
|
---|
10405 | if test -s conftest.err; then
|
---|
10406 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
10407 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
10408 | else
|
---|
10409 | ac_cpp_err=
|
---|
10410 | fi
|
---|
10411 | else
|
---|
10412 | ac_cpp_err=yes
|
---|
10413 | fi
|
---|
10414 | if test -z "$ac_cpp_err"; then
|
---|
10415 | ac_header_preproc=yes
|
---|
10416 | else
|
---|
10417 | echo "$as_me: failed program was:" >&5
|
---|
10418 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10419 |
|
---|
10420 | ac_header_preproc=no
|
---|
10421 | fi
|
---|
10422 | rm -f conftest.err conftest.$ac_ext
|
---|
10423 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
10424 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
10425 |
|
---|
10426 | # So? What about this header?
|
---|
10427 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
10428 | yes:no: )
|
---|
10429 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
10430 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
10431 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
|
---|
10432 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
|
---|
10433 | ac_header_preproc=yes
|
---|
10434 | ;;
|
---|
10435 | no:yes:* )
|
---|
10436 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
|
---|
10437 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
|
---|
10438 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
|
---|
10439 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
|
---|
10440 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
|
---|
10441 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
|
---|
10442 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
10443 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
10444 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
|
---|
10445 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
|
---|
10446 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
|
---|
10447 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
|
---|
10448 | (
|
---|
10449 | cat <<\_ASBOX
|
---|
10450 | ## ------------------------------- ##
|
---|
10451 | ## Report this to [email protected] ##
|
---|
10452 | ## ------------------------------- ##
|
---|
10453 | _ASBOX
|
---|
10454 | ) |
|
---|
10455 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
10456 | ;;
|
---|
10457 | esac
|
---|
10458 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
|
---|
10459 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
|
---|
10460 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
|
---|
10461 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10462 | else
|
---|
10463 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
|
---|
10464 | fi
|
---|
10465 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
|
---|
10466 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
|
---|
10467 |
|
---|
10468 | fi
|
---|
10469 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then
|
---|
10470 | ac_have_func=yes
|
---|
10471 |
|
---|
10472 | cat >>confdefs.h <<\_ACEOF
|
---|
10473 | #define DGUX 1
|
---|
10474 | _ACEOF
|
---|
10475 |
|
---|
10476 |
|
---|
10477 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
|
---|
10478 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
|
---|
10479 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
|
---|
10480 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10481 | else
|
---|
10482 | ac_check_lib_save_LIBS=$LIBS
|
---|
10483 | LIBS="-ldgc $LIBS"
|
---|
10484 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10485 | /* confdefs.h. */
|
---|
10486 | _ACEOF
|
---|
10487 | cat confdefs.h >>conftest.$ac_ext
|
---|
10488 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10489 | /* end confdefs.h. */
|
---|
10490 |
|
---|
10491 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10492 | #ifdef __cplusplus
|
---|
10493 | extern "C"
|
---|
10494 | #endif
|
---|
10495 | /* We use char because int might match the return type of a gcc2
|
---|
10496 | builtin and then its argument prototype would still apply. */
|
---|
10497 | char dg_sys_info ();
|
---|
10498 | int
|
---|
10499 | main ()
|
---|
10500 | {
|
---|
10501 | dg_sys_info ();
|
---|
10502 | ;
|
---|
10503 | return 0;
|
---|
10504 | }
|
---|
10505 | _ACEOF
|
---|
10506 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10508 | (eval $ac_link) 2>conftest.er1
|
---|
10509 | ac_status=$?
|
---|
10510 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10511 | rm -f conftest.er1
|
---|
10512 | cat conftest.err >&5
|
---|
10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10514 | (exit $ac_status); } &&
|
---|
10515 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10516 | || test ! -s conftest.err'
|
---|
10517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10518 | (eval $ac_try) 2>&5
|
---|
10519 | ac_status=$?
|
---|
10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10521 | (exit $ac_status); }; } &&
|
---|
10522 | { ac_try='test -s conftest$ac_exeext'
|
---|
10523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10524 | (eval $ac_try) 2>&5
|
---|
10525 | ac_status=$?
|
---|
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10527 | (exit $ac_status); }; }; then
|
---|
10528 | ac_cv_lib_dgc_dg_sys_info=yes
|
---|
10529 | else
|
---|
10530 | echo "$as_me: failed program was:" >&5
|
---|
10531 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10532 |
|
---|
10533 | ac_cv_lib_dgc_dg_sys_info=no
|
---|
10534 | fi
|
---|
10535 | rm -f conftest.err conftest.$ac_objext \
|
---|
10536 | conftest$ac_exeext conftest.$ac_ext
|
---|
10537 | LIBS=$ac_check_lib_save_LIBS
|
---|
10538 | fi
|
---|
10539 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
|
---|
10540 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
|
---|
10541 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then
|
---|
10542 | cat >>confdefs.h <<_ACEOF
|
---|
10543 | #define HAVE_LIBDGC 1
|
---|
10544 | _ACEOF
|
---|
10545 |
|
---|
10546 | LIBS="-ldgc $LIBS"
|
---|
10547 |
|
---|
10548 | fi
|
---|
10549 |
|
---|
10550 | fi
|
---|
10551 |
|
---|
10552 |
|
---|
10553 |
|
---|
10554 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
10555 | echo "$as_me:$LINENO: checking for locale.h" >&5
|
---|
10556 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
|
---|
10557 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
10558 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10559 | fi
|
---|
10560 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
|
---|
10561 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6
|
---|
10562 | else
|
---|
10563 | # Is the header compilable?
|
---|
10564 | echo "$as_me:$LINENO: checking locale.h usability" >&5
|
---|
10565 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
|
---|
10566 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10567 | /* confdefs.h. */
|
---|
10568 | _ACEOF
|
---|
10569 | cat confdefs.h >>conftest.$ac_ext
|
---|
10570 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10571 | /* end confdefs.h. */
|
---|
10572 | $ac_includes_default
|
---|
10573 | #include <locale.h>
|
---|
10574 | _ACEOF
|
---|
10575 | rm -f conftest.$ac_objext
|
---|
10576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
10577 | (eval $ac_compile) 2>conftest.er1
|
---|
10578 | ac_status=$?
|
---|
10579 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10580 | rm -f conftest.er1
|
---|
10581 | cat conftest.err >&5
|
---|
10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10583 | (exit $ac_status); } &&
|
---|
10584 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10585 | || test ! -s conftest.err'
|
---|
10586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10587 | (eval $ac_try) 2>&5
|
---|
10588 | ac_status=$?
|
---|
10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10590 | (exit $ac_status); }; } &&
|
---|
10591 | { ac_try='test -s conftest.$ac_objext'
|
---|
10592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10593 | (eval $ac_try) 2>&5
|
---|
10594 | ac_status=$?
|
---|
10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10596 | (exit $ac_status); }; }; then
|
---|
10597 | ac_header_compiler=yes
|
---|
10598 | else
|
---|
10599 | echo "$as_me: failed program was:" >&5
|
---|
10600 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10601 |
|
---|
10602 | ac_header_compiler=no
|
---|
10603 | fi
|
---|
10604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10605 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
10606 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
10607 |
|
---|
10608 | # Is the header present?
|
---|
10609 | echo "$as_me:$LINENO: checking locale.h presence" >&5
|
---|
10610 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
|
---|
10611 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10612 | /* confdefs.h. */
|
---|
10613 | _ACEOF
|
---|
10614 | cat confdefs.h >>conftest.$ac_ext
|
---|
10615 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10616 | /* end confdefs.h. */
|
---|
10617 | #include <locale.h>
|
---|
10618 | _ACEOF
|
---|
10619 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
10620 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
10621 | ac_status=$?
|
---|
10622 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10623 | rm -f conftest.er1
|
---|
10624 | cat conftest.err >&5
|
---|
10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10626 | (exit $ac_status); } >/dev/null; then
|
---|
10627 | if test -s conftest.err; then
|
---|
10628 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
10629 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
10630 | else
|
---|
10631 | ac_cpp_err=
|
---|
10632 | fi
|
---|
10633 | else
|
---|
10634 | ac_cpp_err=yes
|
---|
10635 | fi
|
---|
10636 | if test -z "$ac_cpp_err"; then
|
---|
10637 | ac_header_preproc=yes
|
---|
10638 | else
|
---|
10639 | echo "$as_me: failed program was:" >&5
|
---|
10640 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10641 |
|
---|
10642 | ac_header_preproc=no
|
---|
10643 | fi
|
---|
10644 | rm -f conftest.err conftest.$ac_ext
|
---|
10645 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
10646 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
10647 |
|
---|
10648 | # So? What about this header?
|
---|
10649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
10650 | yes:no: )
|
---|
10651 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
10652 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
10653 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
|
---|
10654 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
|
---|
10655 | ac_header_preproc=yes
|
---|
10656 | ;;
|
---|
10657 | no:yes:* )
|
---|
10658 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
|
---|
10659 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
|
---|
10660 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
|
---|
10661 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
|
---|
10662 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
|
---|
10663 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
|
---|
10664 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
10665 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
10666 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
|
---|
10667 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
|
---|
10668 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
|
---|
10669 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
|
---|
10670 | (
|
---|
10671 | cat <<\_ASBOX
|
---|
10672 | ## ------------------------------- ##
|
---|
10673 | ## Report this to [email protected] ##
|
---|
10674 | ## ------------------------------- ##
|
---|
10675 | _ASBOX
|
---|
10676 | ) |
|
---|
10677 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
10678 | ;;
|
---|
10679 | esac
|
---|
10680 | echo "$as_me:$LINENO: checking for locale.h" >&5
|
---|
10681 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
|
---|
10682 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
10683 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10684 | else
|
---|
10685 | ac_cv_header_locale_h=$ac_header_preproc
|
---|
10686 | fi
|
---|
10687 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
|
---|
10688 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6
|
---|
10689 |
|
---|
10690 | fi
|
---|
10691 |
|
---|
10692 |
|
---|
10693 |
|
---|
10694 | for ac_func in setlocale
|
---|
10695 | do
|
---|
10696 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
10697 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
10698 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
10699 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
10700 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10701 | else
|
---|
10702 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10703 | /* confdefs.h. */
|
---|
10704 | _ACEOF
|
---|
10705 | cat confdefs.h >>conftest.$ac_ext
|
---|
10706 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10707 | /* end confdefs.h. */
|
---|
10708 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
10709 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
10710 | #define $ac_func innocuous_$ac_func
|
---|
10711 |
|
---|
10712 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
10713 | which can conflict with char $ac_func (); below.
|
---|
10714 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
10715 | <limits.h> exists even on freestanding compilers. */
|
---|
10716 |
|
---|
10717 | #ifdef __STDC__
|
---|
10718 | # include <limits.h>
|
---|
10719 | #else
|
---|
10720 | # include <assert.h>
|
---|
10721 | #endif
|
---|
10722 |
|
---|
10723 | #undef $ac_func
|
---|
10724 |
|
---|
10725 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10726 | #ifdef __cplusplus
|
---|
10727 | extern "C"
|
---|
10728 | {
|
---|
10729 | #endif
|
---|
10730 | /* We use char because int might match the return type of a gcc2
|
---|
10731 | builtin and then its argument prototype would still apply. */
|
---|
10732 | char $ac_func ();
|
---|
10733 | /* The GNU C library defines this for functions which it implements
|
---|
10734 | to always fail with ENOSYS. Some functions are actually named
|
---|
10735 | something starting with __ and the normal name is an alias. */
|
---|
10736 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
10737 | choke me
|
---|
10738 | #else
|
---|
10739 | char (*f) () = $ac_func;
|
---|
10740 | #endif
|
---|
10741 | #ifdef __cplusplus
|
---|
10742 | }
|
---|
10743 | #endif
|
---|
10744 |
|
---|
10745 | int
|
---|
10746 | main ()
|
---|
10747 | {
|
---|
10748 | return f != $ac_func;
|
---|
10749 | ;
|
---|
10750 | return 0;
|
---|
10751 | }
|
---|
10752 | _ACEOF
|
---|
10753 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10755 | (eval $ac_link) 2>conftest.er1
|
---|
10756 | ac_status=$?
|
---|
10757 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10758 | rm -f conftest.er1
|
---|
10759 | cat conftest.err >&5
|
---|
10760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10761 | (exit $ac_status); } &&
|
---|
10762 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10763 | || test ! -s conftest.err'
|
---|
10764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10765 | (eval $ac_try) 2>&5
|
---|
10766 | ac_status=$?
|
---|
10767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10768 | (exit $ac_status); }; } &&
|
---|
10769 | { ac_try='test -s conftest$ac_exeext'
|
---|
10770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10771 | (eval $ac_try) 2>&5
|
---|
10772 | ac_status=$?
|
---|
10773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10774 | (exit $ac_status); }; }; then
|
---|
10775 | eval "$as_ac_var=yes"
|
---|
10776 | else
|
---|
10777 | echo "$as_me: failed program was:" >&5
|
---|
10778 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10779 |
|
---|
10780 | eval "$as_ac_var=no"
|
---|
10781 | fi
|
---|
10782 | rm -f conftest.err conftest.$ac_objext \
|
---|
10783 | conftest$ac_exeext conftest.$ac_ext
|
---|
10784 | fi
|
---|
10785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
10786 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
10787 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
10788 | cat >>confdefs.h <<_ACEOF
|
---|
10789 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
10790 | _ACEOF
|
---|
10791 |
|
---|
10792 | fi
|
---|
10793 | done
|
---|
10794 |
|
---|
10795 |
|
---|
10796 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
|
---|
10797 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
|
---|
10798 | # Irix 4.0.5F has the header but not the library.
|
---|
10799 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
|
---|
10800 | ac_have_func=yes
|
---|
10801 |
|
---|
10802 | cat >>confdefs.h <<\_ACEOF
|
---|
10803 | #define SVR4 1
|
---|
10804 | _ACEOF
|
---|
10805 |
|
---|
10806 | fi
|
---|
10807 |
|
---|
10808 | if test $ac_have_func = no; then
|
---|
10809 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
|
---|
10810 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
|
---|
10811 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
|
---|
10812 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
|
---|
10813 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10814 | fi
|
---|
10815 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
|
---|
10816 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
|
---|
10817 | else
|
---|
10818 | # Is the header compilable?
|
---|
10819 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
|
---|
10820 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
|
---|
10821 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10822 | /* confdefs.h. */
|
---|
10823 | _ACEOF
|
---|
10824 | cat confdefs.h >>conftest.$ac_ext
|
---|
10825 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10826 | /* end confdefs.h. */
|
---|
10827 | $ac_includes_default
|
---|
10828 | #include <inq_stats/cpustats.h>
|
---|
10829 | _ACEOF
|
---|
10830 | rm -f conftest.$ac_objext
|
---|
10831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
10832 | (eval $ac_compile) 2>conftest.er1
|
---|
10833 | ac_status=$?
|
---|
10834 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10835 | rm -f conftest.er1
|
---|
10836 | cat conftest.err >&5
|
---|
10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10838 | (exit $ac_status); } &&
|
---|
10839 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10840 | || test ! -s conftest.err'
|
---|
10841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10842 | (eval $ac_try) 2>&5
|
---|
10843 | ac_status=$?
|
---|
10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10845 | (exit $ac_status); }; } &&
|
---|
10846 | { ac_try='test -s conftest.$ac_objext'
|
---|
10847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10848 | (eval $ac_try) 2>&5
|
---|
10849 | ac_status=$?
|
---|
10850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10851 | (exit $ac_status); }; }; then
|
---|
10852 | ac_header_compiler=yes
|
---|
10853 | else
|
---|
10854 | echo "$as_me: failed program was:" >&5
|
---|
10855 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10856 |
|
---|
10857 | ac_header_compiler=no
|
---|
10858 | fi
|
---|
10859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
10861 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
10862 |
|
---|
10863 | # Is the header present?
|
---|
10864 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
|
---|
10865 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
|
---|
10866 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10867 | /* confdefs.h. */
|
---|
10868 | _ACEOF
|
---|
10869 | cat confdefs.h >>conftest.$ac_ext
|
---|
10870 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10871 | /* end confdefs.h. */
|
---|
10872 | #include <inq_stats/cpustats.h>
|
---|
10873 | _ACEOF
|
---|
10874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
10875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
10876 | ac_status=$?
|
---|
10877 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10878 | rm -f conftest.er1
|
---|
10879 | cat conftest.err >&5
|
---|
10880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10881 | (exit $ac_status); } >/dev/null; then
|
---|
10882 | if test -s conftest.err; then
|
---|
10883 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
10884 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
10885 | else
|
---|
10886 | ac_cpp_err=
|
---|
10887 | fi
|
---|
10888 | else
|
---|
10889 | ac_cpp_err=yes
|
---|
10890 | fi
|
---|
10891 | if test -z "$ac_cpp_err"; then
|
---|
10892 | ac_header_preproc=yes
|
---|
10893 | else
|
---|
10894 | echo "$as_me: failed program was:" >&5
|
---|
10895 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10896 |
|
---|
10897 | ac_header_preproc=no
|
---|
10898 | fi
|
---|
10899 | rm -f conftest.err conftest.$ac_ext
|
---|
10900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
10901 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
10902 |
|
---|
10903 | # So? What about this header?
|
---|
10904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
10905 | yes:no: )
|
---|
10906 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
10907 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
10908 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
|
---|
10909 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
|
---|
10910 | ac_header_preproc=yes
|
---|
10911 | ;;
|
---|
10912 | no:yes:* )
|
---|
10913 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
|
---|
10914 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
|
---|
10915 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
|
---|
10916 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
|
---|
10917 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
|
---|
10918 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
|
---|
10919 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
10920 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
10921 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
|
---|
10922 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
|
---|
10923 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
|
---|
10924 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
|
---|
10925 | (
|
---|
10926 | cat <<\_ASBOX
|
---|
10927 | ## ------------------------------- ##
|
---|
10928 | ## Report this to [email protected] ##
|
---|
10929 | ## ------------------------------- ##
|
---|
10930 | _ASBOX
|
---|
10931 | ) |
|
---|
10932 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
10933 | ;;
|
---|
10934 | esac
|
---|
10935 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
|
---|
10936 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
|
---|
10937 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
|
---|
10938 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10939 | else
|
---|
10940 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
|
---|
10941 | fi
|
---|
10942 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
|
---|
10943 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
|
---|
10944 |
|
---|
10945 | fi
|
---|
10946 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then
|
---|
10947 | ac_have_func=yes
|
---|
10948 |
|
---|
10949 | cat >>confdefs.h <<\_ACEOF
|
---|
10950 | #define UMAX 1
|
---|
10951 | _ACEOF
|
---|
10952 |
|
---|
10953 |
|
---|
10954 | cat >>confdefs.h <<\_ACEOF
|
---|
10955 | #define UMAX4_3 1
|
---|
10956 | _ACEOF
|
---|
10957 |
|
---|
10958 | fi
|
---|
10959 |
|
---|
10960 |
|
---|
10961 | fi
|
---|
10962 |
|
---|
10963 | if test $ac_have_func = no; then
|
---|
10964 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
|
---|
10965 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
|
---|
10966 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
|
---|
10967 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
|
---|
10968 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10969 | fi
|
---|
10970 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
|
---|
10971 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
|
---|
10972 | else
|
---|
10973 | # Is the header compilable?
|
---|
10974 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
|
---|
10975 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
|
---|
10976 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10977 | /* confdefs.h. */
|
---|
10978 | _ACEOF
|
---|
10979 | cat confdefs.h >>conftest.$ac_ext
|
---|
10980 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10981 | /* end confdefs.h. */
|
---|
10982 | $ac_includes_default
|
---|
10983 | #include <sys/cpustats.h>
|
---|
10984 | _ACEOF
|
---|
10985 | rm -f conftest.$ac_objext
|
---|
10986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
10987 | (eval $ac_compile) 2>conftest.er1
|
---|
10988 | ac_status=$?
|
---|
10989 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10990 | rm -f conftest.er1
|
---|
10991 | cat conftest.err >&5
|
---|
10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10993 | (exit $ac_status); } &&
|
---|
10994 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10995 | || test ! -s conftest.err'
|
---|
10996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10997 | (eval $ac_try) 2>&5
|
---|
10998 | ac_status=$?
|
---|
10999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11000 | (exit $ac_status); }; } &&
|
---|
11001 | { ac_try='test -s conftest.$ac_objext'
|
---|
11002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11003 | (eval $ac_try) 2>&5
|
---|
11004 | ac_status=$?
|
---|
11005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11006 | (exit $ac_status); }; }; then
|
---|
11007 | ac_header_compiler=yes
|
---|
11008 | else
|
---|
11009 | echo "$as_me: failed program was:" >&5
|
---|
11010 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11011 |
|
---|
11012 | ac_header_compiler=no
|
---|
11013 | fi
|
---|
11014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11015 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
11016 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
11017 |
|
---|
11018 | # Is the header present?
|
---|
11019 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
|
---|
11020 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
|
---|
11021 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11022 | /* confdefs.h. */
|
---|
11023 | _ACEOF
|
---|
11024 | cat confdefs.h >>conftest.$ac_ext
|
---|
11025 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11026 | /* end confdefs.h. */
|
---|
11027 | #include <sys/cpustats.h>
|
---|
11028 | _ACEOF
|
---|
11029 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
11030 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
11031 | ac_status=$?
|
---|
11032 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11033 | rm -f conftest.er1
|
---|
11034 | cat conftest.err >&5
|
---|
11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11036 | (exit $ac_status); } >/dev/null; then
|
---|
11037 | if test -s conftest.err; then
|
---|
11038 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
11039 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
11040 | else
|
---|
11041 | ac_cpp_err=
|
---|
11042 | fi
|
---|
11043 | else
|
---|
11044 | ac_cpp_err=yes
|
---|
11045 | fi
|
---|
11046 | if test -z "$ac_cpp_err"; then
|
---|
11047 | ac_header_preproc=yes
|
---|
11048 | else
|
---|
11049 | echo "$as_me: failed program was:" >&5
|
---|
11050 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11051 |
|
---|
11052 | ac_header_preproc=no
|
---|
11053 | fi
|
---|
11054 | rm -f conftest.err conftest.$ac_ext
|
---|
11055 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
11056 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
11057 |
|
---|
11058 | # So? What about this header?
|
---|
11059 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
11060 | yes:no: )
|
---|
11061 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
11062 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
11063 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
|
---|
11064 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
|
---|
11065 | ac_header_preproc=yes
|
---|
11066 | ;;
|
---|
11067 | no:yes:* )
|
---|
11068 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
|
---|
11069 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
|
---|
11070 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
|
---|
11071 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
|
---|
11072 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
|
---|
11073 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
|
---|
11074 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
11075 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
11076 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
|
---|
11077 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
|
---|
11078 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
|
---|
11079 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
|
---|
11080 | (
|
---|
11081 | cat <<\_ASBOX
|
---|
11082 | ## ------------------------------- ##
|
---|
11083 | ## Report this to [email protected] ##
|
---|
11084 | ## ------------------------------- ##
|
---|
11085 | _ASBOX
|
---|
11086 | ) |
|
---|
11087 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
11088 | ;;
|
---|
11089 | esac
|
---|
11090 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
|
---|
11091 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
|
---|
11092 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
|
---|
11093 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11094 | else
|
---|
11095 | ac_cv_header_sys_cpustats_h=$ac_header_preproc
|
---|
11096 | fi
|
---|
11097 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
|
---|
11098 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
|
---|
11099 |
|
---|
11100 | fi
|
---|
11101 | if test $ac_cv_header_sys_cpustats_h = yes; then
|
---|
11102 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
|
---|
11103 | #define UMAX 1
|
---|
11104 | _ACEOF
|
---|
11105 |
|
---|
11106 | fi
|
---|
11107 |
|
---|
11108 |
|
---|
11109 | fi
|
---|
11110 |
|
---|
11111 | if test $ac_have_func = no; then
|
---|
11112 |
|
---|
11113 | for ac_header in mach/mach.h
|
---|
11114 | do
|
---|
11115 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
11116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11117 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
11118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
11119 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11120 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11121 | fi
|
---|
11122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
11123 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
11124 | else
|
---|
11125 | # Is the header compilable?
|
---|
11126 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
11127 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
11128 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11129 | /* confdefs.h. */
|
---|
11130 | _ACEOF
|
---|
11131 | cat confdefs.h >>conftest.$ac_ext
|
---|
11132 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11133 | /* end confdefs.h. */
|
---|
11134 | $ac_includes_default
|
---|
11135 | #include <$ac_header>
|
---|
11136 | _ACEOF
|
---|
11137 | rm -f conftest.$ac_objext
|
---|
11138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
11139 | (eval $ac_compile) 2>conftest.er1
|
---|
11140 | ac_status=$?
|
---|
11141 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11142 | rm -f conftest.er1
|
---|
11143 | cat conftest.err >&5
|
---|
11144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11145 | (exit $ac_status); } &&
|
---|
11146 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11147 | || test ! -s conftest.err'
|
---|
11148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11149 | (eval $ac_try) 2>&5
|
---|
11150 | ac_status=$?
|
---|
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11152 | (exit $ac_status); }; } &&
|
---|
11153 | { ac_try='test -s conftest.$ac_objext'
|
---|
11154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11155 | (eval $ac_try) 2>&5
|
---|
11156 | ac_status=$?
|
---|
11157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11158 | (exit $ac_status); }; }; then
|
---|
11159 | ac_header_compiler=yes
|
---|
11160 | else
|
---|
11161 | echo "$as_me: failed program was:" >&5
|
---|
11162 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11163 |
|
---|
11164 | ac_header_compiler=no
|
---|
11165 | fi
|
---|
11166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11167 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
11168 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
11169 |
|
---|
11170 | # Is the header present?
|
---|
11171 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
11172 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
11173 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11174 | /* confdefs.h. */
|
---|
11175 | _ACEOF
|
---|
11176 | cat confdefs.h >>conftest.$ac_ext
|
---|
11177 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11178 | /* end confdefs.h. */
|
---|
11179 | #include <$ac_header>
|
---|
11180 | _ACEOF
|
---|
11181 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
11182 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
11183 | ac_status=$?
|
---|
11184 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11185 | rm -f conftest.er1
|
---|
11186 | cat conftest.err >&5
|
---|
11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11188 | (exit $ac_status); } >/dev/null; then
|
---|
11189 | if test -s conftest.err; then
|
---|
11190 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
11191 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
11192 | else
|
---|
11193 | ac_cpp_err=
|
---|
11194 | fi
|
---|
11195 | else
|
---|
11196 | ac_cpp_err=yes
|
---|
11197 | fi
|
---|
11198 | if test -z "$ac_cpp_err"; then
|
---|
11199 | ac_header_preproc=yes
|
---|
11200 | else
|
---|
11201 | echo "$as_me: failed program was:" >&5
|
---|
11202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11203 |
|
---|
11204 | ac_header_preproc=no
|
---|
11205 | fi
|
---|
11206 | rm -f conftest.err conftest.$ac_ext
|
---|
11207 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
11208 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
11209 |
|
---|
11210 | # So? What about this header?
|
---|
11211 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
11212 | yes:no: )
|
---|
11213 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
11214 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
11215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
11216 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
11217 | ac_header_preproc=yes
|
---|
11218 | ;;
|
---|
11219 | no:yes:* )
|
---|
11220 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
11221 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
11222 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
11223 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
11224 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
11225 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
11226 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
11227 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
11228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
11229 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
11230 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
11231 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
11232 | (
|
---|
11233 | cat <<\_ASBOX
|
---|
11234 | ## ------------------------------- ##
|
---|
11235 | ## Report this to [email protected] ##
|
---|
11236 | ## ------------------------------- ##
|
---|
11237 | _ASBOX
|
---|
11238 | ) |
|
---|
11239 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
11240 | ;;
|
---|
11241 | esac
|
---|
11242 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
11243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
11244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11245 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11246 | else
|
---|
11247 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
11248 | fi
|
---|
11249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
11250 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
11251 |
|
---|
11252 | fi
|
---|
11253 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
11254 | cat >>confdefs.h <<_ACEOF
|
---|
11255 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
11256 | _ACEOF
|
---|
11257 |
|
---|
11258 | fi
|
---|
11259 |
|
---|
11260 | done
|
---|
11261 |
|
---|
11262 | fi
|
---|
11263 |
|
---|
11264 |
|
---|
11265 | for ac_header in nlist.h
|
---|
11266 | do
|
---|
11267 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
11268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11269 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
11270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
11271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11272 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11273 | fi
|
---|
11274 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
11275 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
11276 | else
|
---|
11277 | # Is the header compilable?
|
---|
11278 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
11279 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
11280 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11281 | /* confdefs.h. */
|
---|
11282 | _ACEOF
|
---|
11283 | cat confdefs.h >>conftest.$ac_ext
|
---|
11284 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11285 | /* end confdefs.h. */
|
---|
11286 | $ac_includes_default
|
---|
11287 | #include <$ac_header>
|
---|
11288 | _ACEOF
|
---|
11289 | rm -f conftest.$ac_objext
|
---|
11290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
11291 | (eval $ac_compile) 2>conftest.er1
|
---|
11292 | ac_status=$?
|
---|
11293 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11294 | rm -f conftest.er1
|
---|
11295 | cat conftest.err >&5
|
---|
11296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11297 | (exit $ac_status); } &&
|
---|
11298 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11299 | || test ! -s conftest.err'
|
---|
11300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11301 | (eval $ac_try) 2>&5
|
---|
11302 | ac_status=$?
|
---|
11303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11304 | (exit $ac_status); }; } &&
|
---|
11305 | { ac_try='test -s conftest.$ac_objext'
|
---|
11306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11307 | (eval $ac_try) 2>&5
|
---|
11308 | ac_status=$?
|
---|
11309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11310 | (exit $ac_status); }; }; then
|
---|
11311 | ac_header_compiler=yes
|
---|
11312 | else
|
---|
11313 | echo "$as_me: failed program was:" >&5
|
---|
11314 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11315 |
|
---|
11316 | ac_header_compiler=no
|
---|
11317 | fi
|
---|
11318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11319 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
11320 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
11321 |
|
---|
11322 | # Is the header present?
|
---|
11323 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
11324 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
11325 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11326 | /* confdefs.h. */
|
---|
11327 | _ACEOF
|
---|
11328 | cat confdefs.h >>conftest.$ac_ext
|
---|
11329 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11330 | /* end confdefs.h. */
|
---|
11331 | #include <$ac_header>
|
---|
11332 | _ACEOF
|
---|
11333 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
11334 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
11335 | ac_status=$?
|
---|
11336 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11337 | rm -f conftest.er1
|
---|
11338 | cat conftest.err >&5
|
---|
11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11340 | (exit $ac_status); } >/dev/null; then
|
---|
11341 | if test -s conftest.err; then
|
---|
11342 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
11343 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
11344 | else
|
---|
11345 | ac_cpp_err=
|
---|
11346 | fi
|
---|
11347 | else
|
---|
11348 | ac_cpp_err=yes
|
---|
11349 | fi
|
---|
11350 | if test -z "$ac_cpp_err"; then
|
---|
11351 | ac_header_preproc=yes
|
---|
11352 | else
|
---|
11353 | echo "$as_me: failed program was:" >&5
|
---|
11354 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11355 |
|
---|
11356 | ac_header_preproc=no
|
---|
11357 | fi
|
---|
11358 | rm -f conftest.err conftest.$ac_ext
|
---|
11359 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
11360 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
11361 |
|
---|
11362 | # So? What about this header?
|
---|
11363 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
11364 | yes:no: )
|
---|
11365 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
11366 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
11367 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
11368 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
11369 | ac_header_preproc=yes
|
---|
11370 | ;;
|
---|
11371 | no:yes:* )
|
---|
11372 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
11373 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
11374 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
11375 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
11376 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
11377 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
11378 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
11379 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
11380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
11381 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
11382 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
11383 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
11384 | (
|
---|
11385 | cat <<\_ASBOX
|
---|
11386 | ## ------------------------------- ##
|
---|
11387 | ## Report this to [email protected] ##
|
---|
11388 | ## ------------------------------- ##
|
---|
11389 | _ASBOX
|
---|
11390 | ) |
|
---|
11391 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
11392 | ;;
|
---|
11393 | esac
|
---|
11394 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
11395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
11396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11397 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11398 | else
|
---|
11399 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
11400 | fi
|
---|
11401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
11402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
11403 |
|
---|
11404 | fi
|
---|
11405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
11406 | cat >>confdefs.h <<_ACEOF
|
---|
11407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
11408 | _ACEOF
|
---|
11409 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
|
---|
11410 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
|
---|
11411 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
|
---|
11412 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11413 | else
|
---|
11414 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11415 | /* confdefs.h. */
|
---|
11416 | _ACEOF
|
---|
11417 | cat confdefs.h >>conftest.$ac_ext
|
---|
11418 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11419 | /* end confdefs.h. */
|
---|
11420 | #include <nlist.h>
|
---|
11421 |
|
---|
11422 | int
|
---|
11423 | main ()
|
---|
11424 | {
|
---|
11425 | static struct nlist ac_aggr;
|
---|
11426 | if (ac_aggr.n_un.n_name)
|
---|
11427 | return 0;
|
---|
11428 | ;
|
---|
11429 | return 0;
|
---|
11430 | }
|
---|
11431 | _ACEOF
|
---|
11432 | rm -f conftest.$ac_objext
|
---|
11433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
11434 | (eval $ac_compile) 2>conftest.er1
|
---|
11435 | ac_status=$?
|
---|
11436 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11437 | rm -f conftest.er1
|
---|
11438 | cat conftest.err >&5
|
---|
11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11440 | (exit $ac_status); } &&
|
---|
11441 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11442 | || test ! -s conftest.err'
|
---|
11443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11444 | (eval $ac_try) 2>&5
|
---|
11445 | ac_status=$?
|
---|
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11447 | (exit $ac_status); }; } &&
|
---|
11448 | { ac_try='test -s conftest.$ac_objext'
|
---|
11449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11450 | (eval $ac_try) 2>&5
|
---|
11451 | ac_status=$?
|
---|
11452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11453 | (exit $ac_status); }; }; then
|
---|
11454 | ac_cv_member_struct_nlist_n_un_n_name=yes
|
---|
11455 | else
|
---|
11456 | echo "$as_me: failed program was:" >&5
|
---|
11457 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11458 |
|
---|
11459 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11460 | /* confdefs.h. */
|
---|
11461 | _ACEOF
|
---|
11462 | cat confdefs.h >>conftest.$ac_ext
|
---|
11463 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11464 | /* end confdefs.h. */
|
---|
11465 | #include <nlist.h>
|
---|
11466 |
|
---|
11467 | int
|
---|
11468 | main ()
|
---|
11469 | {
|
---|
11470 | static struct nlist ac_aggr;
|
---|
11471 | if (sizeof ac_aggr.n_un.n_name)
|
---|
11472 | return 0;
|
---|
11473 | ;
|
---|
11474 | return 0;
|
---|
11475 | }
|
---|
11476 | _ACEOF
|
---|
11477 | rm -f conftest.$ac_objext
|
---|
11478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
11479 | (eval $ac_compile) 2>conftest.er1
|
---|
11480 | ac_status=$?
|
---|
11481 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11482 | rm -f conftest.er1
|
---|
11483 | cat conftest.err >&5
|
---|
11484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11485 | (exit $ac_status); } &&
|
---|
11486 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11487 | || test ! -s conftest.err'
|
---|
11488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11489 | (eval $ac_try) 2>&5
|
---|
11490 | ac_status=$?
|
---|
11491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11492 | (exit $ac_status); }; } &&
|
---|
11493 | { ac_try='test -s conftest.$ac_objext'
|
---|
11494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11495 | (eval $ac_try) 2>&5
|
---|
11496 | ac_status=$?
|
---|
11497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11498 | (exit $ac_status); }; }; then
|
---|
11499 | ac_cv_member_struct_nlist_n_un_n_name=yes
|
---|
11500 | else
|
---|
11501 | echo "$as_me: failed program was:" >&5
|
---|
11502 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11503 |
|
---|
11504 | ac_cv_member_struct_nlist_n_un_n_name=no
|
---|
11505 | fi
|
---|
11506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11507 | fi
|
---|
11508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11509 | fi
|
---|
11510 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
|
---|
11511 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
|
---|
11512 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
|
---|
11513 |
|
---|
11514 | cat >>confdefs.h <<_ACEOF
|
---|
11515 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
|
---|
11516 | _ACEOF
|
---|
11517 |
|
---|
11518 |
|
---|
11519 | cat >>confdefs.h <<\_ACEOF
|
---|
11520 | #define NLIST_NAME_UNION 1
|
---|
11521 | _ACEOF
|
---|
11522 |
|
---|
11523 | fi
|
---|
11524 |
|
---|
11525 |
|
---|
11526 | fi
|
---|
11527 |
|
---|
11528 | done
|
---|
11529 |
|
---|
11530 | fi
|
---|
11531 | done
|
---|
11532 |
|
---|
11533 |
|
---|
11534 | # Some definitions of getloadavg require that the program be installed setgid.
|
---|
11535 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
|
---|
11536 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
|
---|
11537 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
|
---|
11538 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11539 | else
|
---|
11540 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11541 | /* confdefs.h. */
|
---|
11542 | _ACEOF
|
---|
11543 | cat confdefs.h >>conftest.$ac_ext
|
---|
11544 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11545 | /* end confdefs.h. */
|
---|
11546 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
|
---|
11547 | #ifdef LDAV_PRIVILEGED
|
---|
11548 | Yowza Am I SETGID yet
|
---|
11549 | #endif
|
---|
11550 | _ACEOF
|
---|
11551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
11552 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
|
---|
11553 | ac_cv_func_getloadavg_setgid=yes
|
---|
11554 | else
|
---|
11555 | ac_cv_func_getloadavg_setgid=no
|
---|
11556 | fi
|
---|
11557 | rm -f conftest*
|
---|
11558 |
|
---|
11559 | fi
|
---|
11560 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
|
---|
11561 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
|
---|
11562 | if test $ac_cv_func_getloadavg_setgid = yes; then
|
---|
11563 | NEED_SETGID=true
|
---|
11564 |
|
---|
11565 | cat >>confdefs.h <<\_ACEOF
|
---|
11566 | #define GETLOADAVG_PRIVILEGED 1
|
---|
11567 | _ACEOF
|
---|
11568 |
|
---|
11569 | else
|
---|
11570 | NEED_SETGID=false
|
---|
11571 | fi
|
---|
11572 |
|
---|
11573 | if test $ac_cv_func_getloadavg_setgid = yes; then
|
---|
11574 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
|
---|
11575 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
|
---|
11576 | if test "${ac_cv_group_kmem+set}" = set; then
|
---|
11577 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11578 | else
|
---|
11579 | # On Solaris, /dev/kmem is a symlink. Get info on the real file.
|
---|
11580 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
|
---|
11581 | # If we got an error (system does not support symlinks), try without -L.
|
---|
11582 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
|
---|
11583 | ac_cv_group_kmem=`echo $ac_ls_output \
|
---|
11584 | | sed -ne 's/[ ][ ]*/ /g;
|
---|
11585 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
|
---|
11586 | / /s/.* //;p;'`
|
---|
11587 |
|
---|
11588 | fi
|
---|
11589 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
|
---|
11590 | echo "${ECHO_T}$ac_cv_group_kmem" >&6
|
---|
11591 | KMEM_GROUP=$ac_cv_group_kmem
|
---|
11592 | fi
|
---|
11593 | if test "x$ac_save_LIBS" = x; then
|
---|
11594 | GETLOADAVG_LIBS=$LIBS
|
---|
11595 | else
|
---|
11596 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
|
---|
11597 | fi
|
---|
11598 | LIBS=$ac_save_LIBS
|
---|
11599 |
|
---|
11600 |
|
---|
11601 |
|
---|
11602 | # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
|
---|
11603 | # doesn't. So, we will.
|
---|
11604 |
|
---|
11605 | if test "$ac_cv_header_nlist_h" = yes; then
|
---|
11606 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11607 | /* confdefs.h. */
|
---|
11608 | _ACEOF
|
---|
11609 | cat confdefs.h >>conftest.$ac_ext
|
---|
11610 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11611 | /* end confdefs.h. */
|
---|
11612 | #include <nlist.h>
|
---|
11613 | int
|
---|
11614 | main ()
|
---|
11615 | {
|
---|
11616 | struct nlist nl;
|
---|
11617 | nl.n_name = "string";
|
---|
11618 | return 0;
|
---|
11619 | ;
|
---|
11620 | return 0;
|
---|
11621 | }
|
---|
11622 | _ACEOF
|
---|
11623 | rm -f conftest.$ac_objext
|
---|
11624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
11625 | (eval $ac_compile) 2>conftest.er1
|
---|
11626 | ac_status=$?
|
---|
11627 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11628 | rm -f conftest.er1
|
---|
11629 | cat conftest.err >&5
|
---|
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11631 | (exit $ac_status); } &&
|
---|
11632 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11633 | || test ! -s conftest.err'
|
---|
11634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11635 | (eval $ac_try) 2>&5
|
---|
11636 | ac_status=$?
|
---|
11637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11638 | (exit $ac_status); }; } &&
|
---|
11639 | { ac_try='test -s conftest.$ac_objext'
|
---|
11640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11641 | (eval $ac_try) 2>&5
|
---|
11642 | ac_status=$?
|
---|
11643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11644 | (exit $ac_status); }; }; then
|
---|
11645 | make_cv_nlist_struct=yes
|
---|
11646 | else
|
---|
11647 | echo "$as_me: failed program was:" >&5
|
---|
11648 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11649 |
|
---|
11650 | make_cv_nlist_struct=no
|
---|
11651 | fi
|
---|
11652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11653 | if test "$make_cv_nlist_struct" = yes; then
|
---|
11654 |
|
---|
11655 | cat >>confdefs.h <<\_ACEOF
|
---|
11656 | #define NLIST_STRUCT 1
|
---|
11657 | _ACEOF
|
---|
11658 |
|
---|
11659 | fi
|
---|
11660 | fi
|
---|
11661 |
|
---|
11662 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
|
---|
11663 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
|
---|
11664 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
|
---|
11665 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11666 | else
|
---|
11667 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11668 | /* confdefs.h. */
|
---|
11669 | _ACEOF
|
---|
11670 | cat confdefs.h >>conftest.$ac_ext
|
---|
11671 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11672 | /* end confdefs.h. */
|
---|
11673 | $ac_includes_default
|
---|
11674 | int
|
---|
11675 | main ()
|
---|
11676 | {
|
---|
11677 | #ifndef sys_siglist
|
---|
11678 | char *p = (char *) sys_siglist;
|
---|
11679 | #endif
|
---|
11680 |
|
---|
11681 | ;
|
---|
11682 | return 0;
|
---|
11683 | }
|
---|
11684 | _ACEOF
|
---|
11685 | rm -f conftest.$ac_objext
|
---|
11686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
11687 | (eval $ac_compile) 2>conftest.er1
|
---|
11688 | ac_status=$?
|
---|
11689 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11690 | rm -f conftest.er1
|
---|
11691 | cat conftest.err >&5
|
---|
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11693 | (exit $ac_status); } &&
|
---|
11694 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11695 | || test ! -s conftest.err'
|
---|
11696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11697 | (eval $ac_try) 2>&5
|
---|
11698 | ac_status=$?
|
---|
11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11700 | (exit $ac_status); }; } &&
|
---|
11701 | { ac_try='test -s conftest.$ac_objext'
|
---|
11702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11703 | (eval $ac_try) 2>&5
|
---|
11704 | ac_status=$?
|
---|
11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11706 | (exit $ac_status); }; }; then
|
---|
11707 | ac_cv_have_decl_sys_siglist=yes
|
---|
11708 | else
|
---|
11709 | echo "$as_me: failed program was:" >&5
|
---|
11710 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11711 |
|
---|
11712 | ac_cv_have_decl_sys_siglist=no
|
---|
11713 | fi
|
---|
11714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11715 | fi
|
---|
11716 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
|
---|
11717 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
|
---|
11718 | if test $ac_cv_have_decl_sys_siglist = yes; then
|
---|
11719 |
|
---|
11720 | cat >>confdefs.h <<_ACEOF
|
---|
11721 | #define HAVE_DECL_SYS_SIGLIST 1
|
---|
11722 | _ACEOF
|
---|
11723 |
|
---|
11724 |
|
---|
11725 | else
|
---|
11726 | cat >>confdefs.h <<_ACEOF
|
---|
11727 | #define HAVE_DECL_SYS_SIGLIST 0
|
---|
11728 | _ACEOF
|
---|
11729 |
|
---|
11730 |
|
---|
11731 | fi
|
---|
11732 |
|
---|
11733 |
|
---|
11734 |
|
---|
11735 |
|
---|
11736 | # Check out the wait reality.
|
---|
11737 |
|
---|
11738 | for ac_header in sys/wait.h
|
---|
11739 | do
|
---|
11740 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
11741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11742 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
11743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
11744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11745 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11746 | fi
|
---|
11747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
11748 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
11749 | else
|
---|
11750 | # Is the header compilable?
|
---|
11751 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
11752 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
11753 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11754 | /* confdefs.h. */
|
---|
11755 | _ACEOF
|
---|
11756 | cat confdefs.h >>conftest.$ac_ext
|
---|
11757 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11758 | /* end confdefs.h. */
|
---|
11759 | $ac_includes_default
|
---|
11760 | #include <$ac_header>
|
---|
11761 | _ACEOF
|
---|
11762 | rm -f conftest.$ac_objext
|
---|
11763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
11764 | (eval $ac_compile) 2>conftest.er1
|
---|
11765 | ac_status=$?
|
---|
11766 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11767 | rm -f conftest.er1
|
---|
11768 | cat conftest.err >&5
|
---|
11769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11770 | (exit $ac_status); } &&
|
---|
11771 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11772 | || test ! -s conftest.err'
|
---|
11773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11774 | (eval $ac_try) 2>&5
|
---|
11775 | ac_status=$?
|
---|
11776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11777 | (exit $ac_status); }; } &&
|
---|
11778 | { ac_try='test -s conftest.$ac_objext'
|
---|
11779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11780 | (eval $ac_try) 2>&5
|
---|
11781 | ac_status=$?
|
---|
11782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11783 | (exit $ac_status); }; }; then
|
---|
11784 | ac_header_compiler=yes
|
---|
11785 | else
|
---|
11786 | echo "$as_me: failed program was:" >&5
|
---|
11787 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11788 |
|
---|
11789 | ac_header_compiler=no
|
---|
11790 | fi
|
---|
11791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
11792 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
11793 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
11794 |
|
---|
11795 | # Is the header present?
|
---|
11796 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
11797 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
11798 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11799 | /* confdefs.h. */
|
---|
11800 | _ACEOF
|
---|
11801 | cat confdefs.h >>conftest.$ac_ext
|
---|
11802 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11803 | /* end confdefs.h. */
|
---|
11804 | #include <$ac_header>
|
---|
11805 | _ACEOF
|
---|
11806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
11807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
11808 | ac_status=$?
|
---|
11809 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11810 | rm -f conftest.er1
|
---|
11811 | cat conftest.err >&5
|
---|
11812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11813 | (exit $ac_status); } >/dev/null; then
|
---|
11814 | if test -s conftest.err; then
|
---|
11815 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
11816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
11817 | else
|
---|
11818 | ac_cpp_err=
|
---|
11819 | fi
|
---|
11820 | else
|
---|
11821 | ac_cpp_err=yes
|
---|
11822 | fi
|
---|
11823 | if test -z "$ac_cpp_err"; then
|
---|
11824 | ac_header_preproc=yes
|
---|
11825 | else
|
---|
11826 | echo "$as_me: failed program was:" >&5
|
---|
11827 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11828 |
|
---|
11829 | ac_header_preproc=no
|
---|
11830 | fi
|
---|
11831 | rm -f conftest.err conftest.$ac_ext
|
---|
11832 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
11833 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
11834 |
|
---|
11835 | # So? What about this header?
|
---|
11836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
11837 | yes:no: )
|
---|
11838 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
11839 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
11840 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
11841 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
11842 | ac_header_preproc=yes
|
---|
11843 | ;;
|
---|
11844 | no:yes:* )
|
---|
11845 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
11846 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
11847 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
11848 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
11849 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
11850 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
11851 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
11852 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
11853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
11854 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
11855 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
11856 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
11857 | (
|
---|
11858 | cat <<\_ASBOX
|
---|
11859 | ## ------------------------------- ##
|
---|
11860 | ## Report this to [email protected] ##
|
---|
11861 | ## ------------------------------- ##
|
---|
11862 | _ASBOX
|
---|
11863 | ) |
|
---|
11864 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
11865 | ;;
|
---|
11866 | esac
|
---|
11867 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
11868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
11869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
11870 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11871 | else
|
---|
11872 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
11873 | fi
|
---|
11874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
11875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
11876 |
|
---|
11877 | fi
|
---|
11878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
11879 | cat >>confdefs.h <<_ACEOF
|
---|
11880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
11881 | _ACEOF
|
---|
11882 |
|
---|
11883 | fi
|
---|
11884 |
|
---|
11885 | done
|
---|
11886 |
|
---|
11887 |
|
---|
11888 |
|
---|
11889 | for ac_func in waitpid wait3
|
---|
11890 | do
|
---|
11891 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
11892 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
11893 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
11894 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
11895 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11896 | else
|
---|
11897 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11898 | /* confdefs.h. */
|
---|
11899 | _ACEOF
|
---|
11900 | cat confdefs.h >>conftest.$ac_ext
|
---|
11901 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11902 | /* end confdefs.h. */
|
---|
11903 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
11904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
11905 | #define $ac_func innocuous_$ac_func
|
---|
11906 |
|
---|
11907 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
11908 | which can conflict with char $ac_func (); below.
|
---|
11909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
11910 | <limits.h> exists even on freestanding compilers. */
|
---|
11911 |
|
---|
11912 | #ifdef __STDC__
|
---|
11913 | # include <limits.h>
|
---|
11914 | #else
|
---|
11915 | # include <assert.h>
|
---|
11916 | #endif
|
---|
11917 |
|
---|
11918 | #undef $ac_func
|
---|
11919 |
|
---|
11920 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
11921 | #ifdef __cplusplus
|
---|
11922 | extern "C"
|
---|
11923 | {
|
---|
11924 | #endif
|
---|
11925 | /* We use char because int might match the return type of a gcc2
|
---|
11926 | builtin and then its argument prototype would still apply. */
|
---|
11927 | char $ac_func ();
|
---|
11928 | /* The GNU C library defines this for functions which it implements
|
---|
11929 | to always fail with ENOSYS. Some functions are actually named
|
---|
11930 | something starting with __ and the normal name is an alias. */
|
---|
11931 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
11932 | choke me
|
---|
11933 | #else
|
---|
11934 | char (*f) () = $ac_func;
|
---|
11935 | #endif
|
---|
11936 | #ifdef __cplusplus
|
---|
11937 | }
|
---|
11938 | #endif
|
---|
11939 |
|
---|
11940 | int
|
---|
11941 | main ()
|
---|
11942 | {
|
---|
11943 | return f != $ac_func;
|
---|
11944 | ;
|
---|
11945 | return 0;
|
---|
11946 | }
|
---|
11947 | _ACEOF
|
---|
11948 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
11949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
11950 | (eval $ac_link) 2>conftest.er1
|
---|
11951 | ac_status=$?
|
---|
11952 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11953 | rm -f conftest.er1
|
---|
11954 | cat conftest.err >&5
|
---|
11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11956 | (exit $ac_status); } &&
|
---|
11957 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
11958 | || test ! -s conftest.err'
|
---|
11959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11960 | (eval $ac_try) 2>&5
|
---|
11961 | ac_status=$?
|
---|
11962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11963 | (exit $ac_status); }; } &&
|
---|
11964 | { ac_try='test -s conftest$ac_exeext'
|
---|
11965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11966 | (eval $ac_try) 2>&5
|
---|
11967 | ac_status=$?
|
---|
11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11969 | (exit $ac_status); }; }; then
|
---|
11970 | eval "$as_ac_var=yes"
|
---|
11971 | else
|
---|
11972 | echo "$as_me: failed program was:" >&5
|
---|
11973 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11974 |
|
---|
11975 | eval "$as_ac_var=no"
|
---|
11976 | fi
|
---|
11977 | rm -f conftest.err conftest.$ac_objext \
|
---|
11978 | conftest$ac_exeext conftest.$ac_ext
|
---|
11979 | fi
|
---|
11980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
11981 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
11982 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
11983 | cat >>confdefs.h <<_ACEOF
|
---|
11984 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
11985 | _ACEOF
|
---|
11986 |
|
---|
11987 | fi
|
---|
11988 | done
|
---|
11989 |
|
---|
11990 | echo "$as_me:$LINENO: checking for union wait" >&5
|
---|
11991 | echo $ECHO_N "checking for union wait... $ECHO_C" >&6
|
---|
11992 | if test "${make_cv_union_wait+set}" = set; then
|
---|
11993 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11994 | else
|
---|
11995 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11996 | /* confdefs.h. */
|
---|
11997 | _ACEOF
|
---|
11998 | cat confdefs.h >>conftest.$ac_ext
|
---|
11999 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12000 | /* end confdefs.h. */
|
---|
12001 | #include <sys/types.h>
|
---|
12002 | #include <sys/wait.h>
|
---|
12003 | int
|
---|
12004 | main ()
|
---|
12005 | {
|
---|
12006 | union wait status; int pid; pid = wait (&status);
|
---|
12007 | #ifdef WEXITSTATUS
|
---|
12008 | /* Some POSIXoid systems have both the new-style macros and the old
|
---|
12009 | union wait type, and they do not work together. If union wait
|
---|
12010 | conflicts with WEXITSTATUS et al, we don't want to use it at all. */
|
---|
12011 | if (WEXITSTATUS (status) != 0) pid = -1;
|
---|
12012 | #ifdef WTERMSIG
|
---|
12013 | /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
|
---|
12014 | -- blow chunks here --
|
---|
12015 | #endif
|
---|
12016 | #endif
|
---|
12017 | #ifdef HAVE_WAITPID
|
---|
12018 | /* Make sure union wait works with waitpid. */
|
---|
12019 | pid = waitpid (-1, &status, 0);
|
---|
12020 | #endif
|
---|
12021 |
|
---|
12022 | ;
|
---|
12023 | return 0;
|
---|
12024 | }
|
---|
12025 | _ACEOF
|
---|
12026 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12028 | (eval $ac_link) 2>conftest.er1
|
---|
12029 | ac_status=$?
|
---|
12030 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12031 | rm -f conftest.er1
|
---|
12032 | cat conftest.err >&5
|
---|
12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12034 | (exit $ac_status); } &&
|
---|
12035 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12036 | || test ! -s conftest.err'
|
---|
12037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12038 | (eval $ac_try) 2>&5
|
---|
12039 | ac_status=$?
|
---|
12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12041 | (exit $ac_status); }; } &&
|
---|
12042 | { ac_try='test -s conftest$ac_exeext'
|
---|
12043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12044 | (eval $ac_try) 2>&5
|
---|
12045 | ac_status=$?
|
---|
12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12047 | (exit $ac_status); }; }; then
|
---|
12048 | make_cv_union_wait=yes
|
---|
12049 | else
|
---|
12050 | echo "$as_me: failed program was:" >&5
|
---|
12051 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12052 |
|
---|
12053 | make_cv_union_wait=no
|
---|
12054 | fi
|
---|
12055 | rm -f conftest.err conftest.$ac_objext \
|
---|
12056 | conftest$ac_exeext conftest.$ac_ext
|
---|
12057 | fi
|
---|
12058 |
|
---|
12059 | if test "$make_cv_union_wait" = yes; then
|
---|
12060 |
|
---|
12061 | cat >>confdefs.h <<\_ACEOF
|
---|
12062 | #define HAVE_UNION_WAIT 1
|
---|
12063 | _ACEOF
|
---|
12064 |
|
---|
12065 | fi
|
---|
12066 | echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5
|
---|
12067 | echo "${ECHO_T}$make_cv_union_wait" >&6
|
---|
12068 |
|
---|
12069 |
|
---|
12070 | # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
|
---|
12071 | if test "$PATH_SEPARATOR" = ';'; then
|
---|
12072 |
|
---|
12073 | cat >>confdefs.h <<\_ACEOF
|
---|
12074 | #define HAVE_DOS_PATHS 1
|
---|
12075 | _ACEOF
|
---|
12076 |
|
---|
12077 | fi
|
---|
12078 |
|
---|
12079 |
|
---|
12080 | # See if the user wants to use pmake's "customs" distributed build capability
|
---|
12081 |
|
---|
12082 | REMOTE=stub
|
---|
12083 | use_customs=false
|
---|
12084 |
|
---|
12085 | # Check whether --with-customs or --without-customs was given.
|
---|
12086 | if test "${with_customs+set}" = set; then
|
---|
12087 | withval="$with_customs"
|
---|
12088 | case $withval in
|
---|
12089 | n|no) : ;;
|
---|
12090 | *) make_cppflags="$CPPFLAGS"
|
---|
12091 | case $withval in
|
---|
12092 | y|ye|yes) : ;;
|
---|
12093 | *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
|
---|
12094 | make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
|
---|
12095 | esac
|
---|
12096 |
|
---|
12097 | cf_test_netlibs=no
|
---|
12098 | echo "$as_me:$LINENO: checking for network libraries" >&5
|
---|
12099 | echo $ECHO_N "checking for network libraries... $ECHO_C" >&6
|
---|
12100 | if test "${cf_cv_netlibs+set}" = set; then
|
---|
12101 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12102 | else
|
---|
12103 |
|
---|
12104 | echo "$as_me:$LINENO: result: working..." >&5
|
---|
12105 | echo "${ECHO_T}working..." >&6
|
---|
12106 | cf_cv_netlibs=""
|
---|
12107 | cf_test_netlibs=yes
|
---|
12108 |
|
---|
12109 | for ac_func in gethostname
|
---|
12110 | do
|
---|
12111 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
12112 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
12113 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
12114 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
12115 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12116 | else
|
---|
12117 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12118 | /* confdefs.h. */
|
---|
12119 | _ACEOF
|
---|
12120 | cat confdefs.h >>conftest.$ac_ext
|
---|
12121 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12122 | /* end confdefs.h. */
|
---|
12123 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
12124 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
12125 | #define $ac_func innocuous_$ac_func
|
---|
12126 |
|
---|
12127 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
12128 | which can conflict with char $ac_func (); below.
|
---|
12129 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
12130 | <limits.h> exists even on freestanding compilers. */
|
---|
12131 |
|
---|
12132 | #ifdef __STDC__
|
---|
12133 | # include <limits.h>
|
---|
12134 | #else
|
---|
12135 | # include <assert.h>
|
---|
12136 | #endif
|
---|
12137 |
|
---|
12138 | #undef $ac_func
|
---|
12139 |
|
---|
12140 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12141 | #ifdef __cplusplus
|
---|
12142 | extern "C"
|
---|
12143 | {
|
---|
12144 | #endif
|
---|
12145 | /* We use char because int might match the return type of a gcc2
|
---|
12146 | builtin and then its argument prototype would still apply. */
|
---|
12147 | char $ac_func ();
|
---|
12148 | /* The GNU C library defines this for functions which it implements
|
---|
12149 | to always fail with ENOSYS. Some functions are actually named
|
---|
12150 | something starting with __ and the normal name is an alias. */
|
---|
12151 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
12152 | choke me
|
---|
12153 | #else
|
---|
12154 | char (*f) () = $ac_func;
|
---|
12155 | #endif
|
---|
12156 | #ifdef __cplusplus
|
---|
12157 | }
|
---|
12158 | #endif
|
---|
12159 |
|
---|
12160 | int
|
---|
12161 | main ()
|
---|
12162 | {
|
---|
12163 | return f != $ac_func;
|
---|
12164 | ;
|
---|
12165 | return 0;
|
---|
12166 | }
|
---|
12167 | _ACEOF
|
---|
12168 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12170 | (eval $ac_link) 2>conftest.er1
|
---|
12171 | ac_status=$?
|
---|
12172 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12173 | rm -f conftest.er1
|
---|
12174 | cat conftest.err >&5
|
---|
12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12176 | (exit $ac_status); } &&
|
---|
12177 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12178 | || test ! -s conftest.err'
|
---|
12179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12180 | (eval $ac_try) 2>&5
|
---|
12181 | ac_status=$?
|
---|
12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12183 | (exit $ac_status); }; } &&
|
---|
12184 | { ac_try='test -s conftest$ac_exeext'
|
---|
12185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12186 | (eval $ac_try) 2>&5
|
---|
12187 | ac_status=$?
|
---|
12188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12189 | (exit $ac_status); }; }; then
|
---|
12190 | eval "$as_ac_var=yes"
|
---|
12191 | else
|
---|
12192 | echo "$as_me: failed program was:" >&5
|
---|
12193 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12194 |
|
---|
12195 | eval "$as_ac_var=no"
|
---|
12196 | fi
|
---|
12197 | rm -f conftest.err conftest.$ac_objext \
|
---|
12198 | conftest$ac_exeext conftest.$ac_ext
|
---|
12199 | fi
|
---|
12200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
12201 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
12202 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
12203 | cat >>confdefs.h <<_ACEOF
|
---|
12204 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
12205 | _ACEOF
|
---|
12206 |
|
---|
12207 | else
|
---|
12208 |
|
---|
12209 |
|
---|
12210 | echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
|
---|
12211 | echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
|
---|
12212 | if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
|
---|
12213 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12214 | else
|
---|
12215 | ac_check_lib_save_LIBS=$LIBS
|
---|
12216 | LIBS="-lnsl $cf_cv_netlibs $LIBS"
|
---|
12217 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12218 | /* confdefs.h. */
|
---|
12219 | _ACEOF
|
---|
12220 | cat confdefs.h >>conftest.$ac_ext
|
---|
12221 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12222 | /* end confdefs.h. */
|
---|
12223 |
|
---|
12224 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12225 | #ifdef __cplusplus
|
---|
12226 | extern "C"
|
---|
12227 | #endif
|
---|
12228 | /* We use char because int might match the return type of a gcc2
|
---|
12229 | builtin and then its argument prototype would still apply. */
|
---|
12230 | char gethostname ();
|
---|
12231 | int
|
---|
12232 | main ()
|
---|
12233 | {
|
---|
12234 | gethostname ();
|
---|
12235 | ;
|
---|
12236 | return 0;
|
---|
12237 | }
|
---|
12238 | _ACEOF
|
---|
12239 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12241 | (eval $ac_link) 2>conftest.er1
|
---|
12242 | ac_status=$?
|
---|
12243 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12244 | rm -f conftest.er1
|
---|
12245 | cat conftest.err >&5
|
---|
12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12247 | (exit $ac_status); } &&
|
---|
12248 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12249 | || test ! -s conftest.err'
|
---|
12250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12251 | (eval $ac_try) 2>&5
|
---|
12252 | ac_status=$?
|
---|
12253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12254 | (exit $ac_status); }; } &&
|
---|
12255 | { ac_try='test -s conftest$ac_exeext'
|
---|
12256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12257 | (eval $ac_try) 2>&5
|
---|
12258 | ac_status=$?
|
---|
12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12260 | (exit $ac_status); }; }; then
|
---|
12261 | ac_cv_lib_nsl_gethostname=yes
|
---|
12262 | else
|
---|
12263 | echo "$as_me: failed program was:" >&5
|
---|
12264 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12265 |
|
---|
12266 | ac_cv_lib_nsl_gethostname=no
|
---|
12267 | fi
|
---|
12268 | rm -f conftest.err conftest.$ac_objext \
|
---|
12269 | conftest$ac_exeext conftest.$ac_ext
|
---|
12270 | LIBS=$ac_check_lib_save_LIBS
|
---|
12271 | fi
|
---|
12272 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
|
---|
12273 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
|
---|
12274 | if test $ac_cv_lib_nsl_gethostname = yes; then
|
---|
12275 |
|
---|
12276 |
|
---|
12277 | cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
|
---|
12278 |
|
---|
12279 |
|
---|
12280 | cat >>confdefs.h <<_ACEOF
|
---|
12281 | #define HAVE_$cf_tr_func 1
|
---|
12282 | _ACEOF
|
---|
12283 |
|
---|
12284 | ac_cv_func_gethostname=yes
|
---|
12285 | cf_cv_netlibs="-lnsl $cf_cv_netlibs"
|
---|
12286 | else
|
---|
12287 |
|
---|
12288 | ac_cv_func_gethostname=unknown
|
---|
12289 | unset ac_cv_func_gethostname 2>/dev/null
|
---|
12290 |
|
---|
12291 |
|
---|
12292 | echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
|
---|
12293 | echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
|
---|
12294 | if test "${ac_cv_lib_socket_gethostname+set}" = set; then
|
---|
12295 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12296 | else
|
---|
12297 | ac_check_lib_save_LIBS=$LIBS
|
---|
12298 | LIBS="-lsocket $cf_cv_netlibs $LIBS"
|
---|
12299 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12300 | /* confdefs.h. */
|
---|
12301 | _ACEOF
|
---|
12302 | cat confdefs.h >>conftest.$ac_ext
|
---|
12303 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12304 | /* end confdefs.h. */
|
---|
12305 |
|
---|
12306 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12307 | #ifdef __cplusplus
|
---|
12308 | extern "C"
|
---|
12309 | #endif
|
---|
12310 | /* We use char because int might match the return type of a gcc2
|
---|
12311 | builtin and then its argument prototype would still apply. */
|
---|
12312 | char gethostname ();
|
---|
12313 | int
|
---|
12314 | main ()
|
---|
12315 | {
|
---|
12316 | gethostname ();
|
---|
12317 | ;
|
---|
12318 | return 0;
|
---|
12319 | }
|
---|
12320 | _ACEOF
|
---|
12321 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12323 | (eval $ac_link) 2>conftest.er1
|
---|
12324 | ac_status=$?
|
---|
12325 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12326 | rm -f conftest.er1
|
---|
12327 | cat conftest.err >&5
|
---|
12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12329 | (exit $ac_status); } &&
|
---|
12330 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12331 | || test ! -s conftest.err'
|
---|
12332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12333 | (eval $ac_try) 2>&5
|
---|
12334 | ac_status=$?
|
---|
12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12336 | (exit $ac_status); }; } &&
|
---|
12337 | { ac_try='test -s conftest$ac_exeext'
|
---|
12338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12339 | (eval $ac_try) 2>&5
|
---|
12340 | ac_status=$?
|
---|
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12342 | (exit $ac_status); }; }; then
|
---|
12343 | ac_cv_lib_socket_gethostname=yes
|
---|
12344 | else
|
---|
12345 | echo "$as_me: failed program was:" >&5
|
---|
12346 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12347 |
|
---|
12348 | ac_cv_lib_socket_gethostname=no
|
---|
12349 | fi
|
---|
12350 | rm -f conftest.err conftest.$ac_objext \
|
---|
12351 | conftest$ac_exeext conftest.$ac_ext
|
---|
12352 | LIBS=$ac_check_lib_save_LIBS
|
---|
12353 | fi
|
---|
12354 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
|
---|
12355 | echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
|
---|
12356 | if test $ac_cv_lib_socket_gethostname = yes; then
|
---|
12357 |
|
---|
12358 |
|
---|
12359 | cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
|
---|
12360 |
|
---|
12361 |
|
---|
12362 | cat >>confdefs.h <<_ACEOF
|
---|
12363 | #define HAVE_$cf_tr_func 1
|
---|
12364 | _ACEOF
|
---|
12365 |
|
---|
12366 | ac_cv_func_gethostname=yes
|
---|
12367 | cf_cv_netlibs="-lsocket $cf_cv_netlibs"
|
---|
12368 | else
|
---|
12369 |
|
---|
12370 | ac_cv_func_gethostname=unknown
|
---|
12371 | unset ac_cv_func_gethostname 2>/dev/null
|
---|
12372 |
|
---|
12373 | fi
|
---|
12374 |
|
---|
12375 |
|
---|
12376 | fi
|
---|
12377 |
|
---|
12378 |
|
---|
12379 | fi
|
---|
12380 | done
|
---|
12381 |
|
---|
12382 | #
|
---|
12383 | # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
|
---|
12384 | # I don't know the entrypoints - 97/7/22 TD
|
---|
12385 | echo "$as_me:$LINENO: checking for main in -linet" >&5
|
---|
12386 | echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
|
---|
12387 | if test "${ac_cv_lib_inet_main+set}" = set; then
|
---|
12388 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12389 | else
|
---|
12390 | ac_check_lib_save_LIBS=$LIBS
|
---|
12391 | LIBS="-linet $LIBS"
|
---|
12392 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12393 | /* confdefs.h. */
|
---|
12394 | _ACEOF
|
---|
12395 | cat confdefs.h >>conftest.$ac_ext
|
---|
12396 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12397 | /* end confdefs.h. */
|
---|
12398 |
|
---|
12399 |
|
---|
12400 | int
|
---|
12401 | main ()
|
---|
12402 | {
|
---|
12403 | main ();
|
---|
12404 | ;
|
---|
12405 | return 0;
|
---|
12406 | }
|
---|
12407 | _ACEOF
|
---|
12408 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12410 | (eval $ac_link) 2>conftest.er1
|
---|
12411 | ac_status=$?
|
---|
12412 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12413 | rm -f conftest.er1
|
---|
12414 | cat conftest.err >&5
|
---|
12415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12416 | (exit $ac_status); } &&
|
---|
12417 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12418 | || test ! -s conftest.err'
|
---|
12419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12420 | (eval $ac_try) 2>&5
|
---|
12421 | ac_status=$?
|
---|
12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12423 | (exit $ac_status); }; } &&
|
---|
12424 | { ac_try='test -s conftest$ac_exeext'
|
---|
12425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12426 | (eval $ac_try) 2>&5
|
---|
12427 | ac_status=$?
|
---|
12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12429 | (exit $ac_status); }; }; then
|
---|
12430 | ac_cv_lib_inet_main=yes
|
---|
12431 | else
|
---|
12432 | echo "$as_me: failed program was:" >&5
|
---|
12433 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12434 |
|
---|
12435 | ac_cv_lib_inet_main=no
|
---|
12436 | fi
|
---|
12437 | rm -f conftest.err conftest.$ac_objext \
|
---|
12438 | conftest$ac_exeext conftest.$ac_ext
|
---|
12439 | LIBS=$ac_check_lib_save_LIBS
|
---|
12440 | fi
|
---|
12441 | echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
|
---|
12442 | echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
|
---|
12443 | if test $ac_cv_lib_inet_main = yes; then
|
---|
12444 | cf_cv_netlibs="-linet $cf_cv_netlibs"
|
---|
12445 | fi
|
---|
12446 |
|
---|
12447 | #
|
---|
12448 | if test "$ac_cv_func_lsocket" != no ; then
|
---|
12449 |
|
---|
12450 | for ac_func in socket
|
---|
12451 | do
|
---|
12452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
12453 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
12454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
12455 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
12456 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12457 | else
|
---|
12458 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12459 | /* confdefs.h. */
|
---|
12460 | _ACEOF
|
---|
12461 | cat confdefs.h >>conftest.$ac_ext
|
---|
12462 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12463 | /* end confdefs.h. */
|
---|
12464 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
12465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
12466 | #define $ac_func innocuous_$ac_func
|
---|
12467 |
|
---|
12468 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
12469 | which can conflict with char $ac_func (); below.
|
---|
12470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
12471 | <limits.h> exists even on freestanding compilers. */
|
---|
12472 |
|
---|
12473 | #ifdef __STDC__
|
---|
12474 | # include <limits.h>
|
---|
12475 | #else
|
---|
12476 | # include <assert.h>
|
---|
12477 | #endif
|
---|
12478 |
|
---|
12479 | #undef $ac_func
|
---|
12480 |
|
---|
12481 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12482 | #ifdef __cplusplus
|
---|
12483 | extern "C"
|
---|
12484 | {
|
---|
12485 | #endif
|
---|
12486 | /* We use char because int might match the return type of a gcc2
|
---|
12487 | builtin and then its argument prototype would still apply. */
|
---|
12488 | char $ac_func ();
|
---|
12489 | /* The GNU C library defines this for functions which it implements
|
---|
12490 | to always fail with ENOSYS. Some functions are actually named
|
---|
12491 | something starting with __ and the normal name is an alias. */
|
---|
12492 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
12493 | choke me
|
---|
12494 | #else
|
---|
12495 | char (*f) () = $ac_func;
|
---|
12496 | #endif
|
---|
12497 | #ifdef __cplusplus
|
---|
12498 | }
|
---|
12499 | #endif
|
---|
12500 |
|
---|
12501 | int
|
---|
12502 | main ()
|
---|
12503 | {
|
---|
12504 | return f != $ac_func;
|
---|
12505 | ;
|
---|
12506 | return 0;
|
---|
12507 | }
|
---|
12508 | _ACEOF
|
---|
12509 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12511 | (eval $ac_link) 2>conftest.er1
|
---|
12512 | ac_status=$?
|
---|
12513 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12514 | rm -f conftest.er1
|
---|
12515 | cat conftest.err >&5
|
---|
12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12517 | (exit $ac_status); } &&
|
---|
12518 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12519 | || test ! -s conftest.err'
|
---|
12520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12521 | (eval $ac_try) 2>&5
|
---|
12522 | ac_status=$?
|
---|
12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12524 | (exit $ac_status); }; } &&
|
---|
12525 | { ac_try='test -s conftest$ac_exeext'
|
---|
12526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12527 | (eval $ac_try) 2>&5
|
---|
12528 | ac_status=$?
|
---|
12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12530 | (exit $ac_status); }; }; then
|
---|
12531 | eval "$as_ac_var=yes"
|
---|
12532 | else
|
---|
12533 | echo "$as_me: failed program was:" >&5
|
---|
12534 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12535 |
|
---|
12536 | eval "$as_ac_var=no"
|
---|
12537 | fi
|
---|
12538 | rm -f conftest.err conftest.$ac_objext \
|
---|
12539 | conftest$ac_exeext conftest.$ac_ext
|
---|
12540 | fi
|
---|
12541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
12542 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
12543 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
12544 | cat >>confdefs.h <<_ACEOF
|
---|
12545 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
12546 | _ACEOF
|
---|
12547 |
|
---|
12548 | else
|
---|
12549 |
|
---|
12550 |
|
---|
12551 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
|
---|
12552 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
|
---|
12553 | if test "${ac_cv_lib_socket_socket+set}" = set; then
|
---|
12554 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12555 | else
|
---|
12556 | ac_check_lib_save_LIBS=$LIBS
|
---|
12557 | LIBS="-lsocket $cf_cv_netlibs $LIBS"
|
---|
12558 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12559 | /* confdefs.h. */
|
---|
12560 | _ACEOF
|
---|
12561 | cat confdefs.h >>conftest.$ac_ext
|
---|
12562 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12563 | /* end confdefs.h. */
|
---|
12564 |
|
---|
12565 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12566 | #ifdef __cplusplus
|
---|
12567 | extern "C"
|
---|
12568 | #endif
|
---|
12569 | /* We use char because int might match the return type of a gcc2
|
---|
12570 | builtin and then its argument prototype would still apply. */
|
---|
12571 | char socket ();
|
---|
12572 | int
|
---|
12573 | main ()
|
---|
12574 | {
|
---|
12575 | socket ();
|
---|
12576 | ;
|
---|
12577 | return 0;
|
---|
12578 | }
|
---|
12579 | _ACEOF
|
---|
12580 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12582 | (eval $ac_link) 2>conftest.er1
|
---|
12583 | ac_status=$?
|
---|
12584 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12585 | rm -f conftest.er1
|
---|
12586 | cat conftest.err >&5
|
---|
12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12588 | (exit $ac_status); } &&
|
---|
12589 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12590 | || test ! -s conftest.err'
|
---|
12591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12592 | (eval $ac_try) 2>&5
|
---|
12593 | ac_status=$?
|
---|
12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12595 | (exit $ac_status); }; } &&
|
---|
12596 | { ac_try='test -s conftest$ac_exeext'
|
---|
12597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12598 | (eval $ac_try) 2>&5
|
---|
12599 | ac_status=$?
|
---|
12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12601 | (exit $ac_status); }; }; then
|
---|
12602 | ac_cv_lib_socket_socket=yes
|
---|
12603 | else
|
---|
12604 | echo "$as_me: failed program was:" >&5
|
---|
12605 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12606 |
|
---|
12607 | ac_cv_lib_socket_socket=no
|
---|
12608 | fi
|
---|
12609 | rm -f conftest.err conftest.$ac_objext \
|
---|
12610 | conftest$ac_exeext conftest.$ac_ext
|
---|
12611 | LIBS=$ac_check_lib_save_LIBS
|
---|
12612 | fi
|
---|
12613 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
|
---|
12614 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
|
---|
12615 | if test $ac_cv_lib_socket_socket = yes; then
|
---|
12616 |
|
---|
12617 |
|
---|
12618 | cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
|
---|
12619 |
|
---|
12620 |
|
---|
12621 | cat >>confdefs.h <<_ACEOF
|
---|
12622 | #define HAVE_$cf_tr_func 1
|
---|
12623 | _ACEOF
|
---|
12624 |
|
---|
12625 | ac_cv_func_socket=yes
|
---|
12626 | cf_cv_netlibs="-lsocket $cf_cv_netlibs"
|
---|
12627 | else
|
---|
12628 |
|
---|
12629 | ac_cv_func_socket=unknown
|
---|
12630 | unset ac_cv_func_socket 2>/dev/null
|
---|
12631 |
|
---|
12632 |
|
---|
12633 | echo "$as_me:$LINENO: checking for socket in -lbsd" >&5
|
---|
12634 | echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6
|
---|
12635 | if test "${ac_cv_lib_bsd_socket+set}" = set; then
|
---|
12636 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12637 | else
|
---|
12638 | ac_check_lib_save_LIBS=$LIBS
|
---|
12639 | LIBS="-lbsd $cf_cv_netlibs $LIBS"
|
---|
12640 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12641 | /* confdefs.h. */
|
---|
12642 | _ACEOF
|
---|
12643 | cat confdefs.h >>conftest.$ac_ext
|
---|
12644 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12645 | /* end confdefs.h. */
|
---|
12646 |
|
---|
12647 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12648 | #ifdef __cplusplus
|
---|
12649 | extern "C"
|
---|
12650 | #endif
|
---|
12651 | /* We use char because int might match the return type of a gcc2
|
---|
12652 | builtin and then its argument prototype would still apply. */
|
---|
12653 | char socket ();
|
---|
12654 | int
|
---|
12655 | main ()
|
---|
12656 | {
|
---|
12657 | socket ();
|
---|
12658 | ;
|
---|
12659 | return 0;
|
---|
12660 | }
|
---|
12661 | _ACEOF
|
---|
12662 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12664 | (eval $ac_link) 2>conftest.er1
|
---|
12665 | ac_status=$?
|
---|
12666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12667 | rm -f conftest.er1
|
---|
12668 | cat conftest.err >&5
|
---|
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12670 | (exit $ac_status); } &&
|
---|
12671 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12672 | || test ! -s conftest.err'
|
---|
12673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12674 | (eval $ac_try) 2>&5
|
---|
12675 | ac_status=$?
|
---|
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12677 | (exit $ac_status); }; } &&
|
---|
12678 | { ac_try='test -s conftest$ac_exeext'
|
---|
12679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12680 | (eval $ac_try) 2>&5
|
---|
12681 | ac_status=$?
|
---|
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12683 | (exit $ac_status); }; }; then
|
---|
12684 | ac_cv_lib_bsd_socket=yes
|
---|
12685 | else
|
---|
12686 | echo "$as_me: failed program was:" >&5
|
---|
12687 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12688 |
|
---|
12689 | ac_cv_lib_bsd_socket=no
|
---|
12690 | fi
|
---|
12691 | rm -f conftest.err conftest.$ac_objext \
|
---|
12692 | conftest$ac_exeext conftest.$ac_ext
|
---|
12693 | LIBS=$ac_check_lib_save_LIBS
|
---|
12694 | fi
|
---|
12695 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5
|
---|
12696 | echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6
|
---|
12697 | if test $ac_cv_lib_bsd_socket = yes; then
|
---|
12698 |
|
---|
12699 |
|
---|
12700 | cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
|
---|
12701 |
|
---|
12702 |
|
---|
12703 | cat >>confdefs.h <<_ACEOF
|
---|
12704 | #define HAVE_$cf_tr_func 1
|
---|
12705 | _ACEOF
|
---|
12706 |
|
---|
12707 | ac_cv_func_socket=yes
|
---|
12708 | cf_cv_netlibs="-lbsd $cf_cv_netlibs"
|
---|
12709 | else
|
---|
12710 |
|
---|
12711 | ac_cv_func_socket=unknown
|
---|
12712 | unset ac_cv_func_socket 2>/dev/null
|
---|
12713 |
|
---|
12714 | fi
|
---|
12715 |
|
---|
12716 |
|
---|
12717 | fi
|
---|
12718 |
|
---|
12719 |
|
---|
12720 | fi
|
---|
12721 | done
|
---|
12722 |
|
---|
12723 | fi
|
---|
12724 | #
|
---|
12725 |
|
---|
12726 | for ac_func in gethostbyname
|
---|
12727 | do
|
---|
12728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
12729 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
12730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
12731 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
12732 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12733 | else
|
---|
12734 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12735 | /* confdefs.h. */
|
---|
12736 | _ACEOF
|
---|
12737 | cat confdefs.h >>conftest.$ac_ext
|
---|
12738 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12739 | /* end confdefs.h. */
|
---|
12740 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
12741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
12742 | #define $ac_func innocuous_$ac_func
|
---|
12743 |
|
---|
12744 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
12745 | which can conflict with char $ac_func (); below.
|
---|
12746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
12747 | <limits.h> exists even on freestanding compilers. */
|
---|
12748 |
|
---|
12749 | #ifdef __STDC__
|
---|
12750 | # include <limits.h>
|
---|
12751 | #else
|
---|
12752 | # include <assert.h>
|
---|
12753 | #endif
|
---|
12754 |
|
---|
12755 | #undef $ac_func
|
---|
12756 |
|
---|
12757 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12758 | #ifdef __cplusplus
|
---|
12759 | extern "C"
|
---|
12760 | {
|
---|
12761 | #endif
|
---|
12762 | /* We use char because int might match the return type of a gcc2
|
---|
12763 | builtin and then its argument prototype would still apply. */
|
---|
12764 | char $ac_func ();
|
---|
12765 | /* The GNU C library defines this for functions which it implements
|
---|
12766 | to always fail with ENOSYS. Some functions are actually named
|
---|
12767 | something starting with __ and the normal name is an alias. */
|
---|
12768 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
12769 | choke me
|
---|
12770 | #else
|
---|
12771 | char (*f) () = $ac_func;
|
---|
12772 | #endif
|
---|
12773 | #ifdef __cplusplus
|
---|
12774 | }
|
---|
12775 | #endif
|
---|
12776 |
|
---|
12777 | int
|
---|
12778 | main ()
|
---|
12779 | {
|
---|
12780 | return f != $ac_func;
|
---|
12781 | ;
|
---|
12782 | return 0;
|
---|
12783 | }
|
---|
12784 | _ACEOF
|
---|
12785 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12787 | (eval $ac_link) 2>conftest.er1
|
---|
12788 | ac_status=$?
|
---|
12789 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12790 | rm -f conftest.er1
|
---|
12791 | cat conftest.err >&5
|
---|
12792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12793 | (exit $ac_status); } &&
|
---|
12794 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12795 | || test ! -s conftest.err'
|
---|
12796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12797 | (eval $ac_try) 2>&5
|
---|
12798 | ac_status=$?
|
---|
12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12800 | (exit $ac_status); }; } &&
|
---|
12801 | { ac_try='test -s conftest$ac_exeext'
|
---|
12802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12803 | (eval $ac_try) 2>&5
|
---|
12804 | ac_status=$?
|
---|
12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12806 | (exit $ac_status); }; }; then
|
---|
12807 | eval "$as_ac_var=yes"
|
---|
12808 | else
|
---|
12809 | echo "$as_me: failed program was:" >&5
|
---|
12810 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12811 |
|
---|
12812 | eval "$as_ac_var=no"
|
---|
12813 | fi
|
---|
12814 | rm -f conftest.err conftest.$ac_objext \
|
---|
12815 | conftest$ac_exeext conftest.$ac_ext
|
---|
12816 | fi
|
---|
12817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
12818 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
12819 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
12820 | cat >>confdefs.h <<_ACEOF
|
---|
12821 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
12822 | _ACEOF
|
---|
12823 |
|
---|
12824 | else
|
---|
12825 |
|
---|
12826 |
|
---|
12827 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
|
---|
12828 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
|
---|
12829 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
|
---|
12830 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12831 | else
|
---|
12832 | ac_check_lib_save_LIBS=$LIBS
|
---|
12833 | LIBS="-lnsl $cf_cv_netlibs $LIBS"
|
---|
12834 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12835 | /* confdefs.h. */
|
---|
12836 | _ACEOF
|
---|
12837 | cat confdefs.h >>conftest.$ac_ext
|
---|
12838 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12839 | /* end confdefs.h. */
|
---|
12840 |
|
---|
12841 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12842 | #ifdef __cplusplus
|
---|
12843 | extern "C"
|
---|
12844 | #endif
|
---|
12845 | /* We use char because int might match the return type of a gcc2
|
---|
12846 | builtin and then its argument prototype would still apply. */
|
---|
12847 | char gethostbyname ();
|
---|
12848 | int
|
---|
12849 | main ()
|
---|
12850 | {
|
---|
12851 | gethostbyname ();
|
---|
12852 | ;
|
---|
12853 | return 0;
|
---|
12854 | }
|
---|
12855 | _ACEOF
|
---|
12856 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12858 | (eval $ac_link) 2>conftest.er1
|
---|
12859 | ac_status=$?
|
---|
12860 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12861 | rm -f conftest.er1
|
---|
12862 | cat conftest.err >&5
|
---|
12863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12864 | (exit $ac_status); } &&
|
---|
12865 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12866 | || test ! -s conftest.err'
|
---|
12867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12868 | (eval $ac_try) 2>&5
|
---|
12869 | ac_status=$?
|
---|
12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12871 | (exit $ac_status); }; } &&
|
---|
12872 | { ac_try='test -s conftest$ac_exeext'
|
---|
12873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12874 | (eval $ac_try) 2>&5
|
---|
12875 | ac_status=$?
|
---|
12876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12877 | (exit $ac_status); }; }; then
|
---|
12878 | ac_cv_lib_nsl_gethostbyname=yes
|
---|
12879 | else
|
---|
12880 | echo "$as_me: failed program was:" >&5
|
---|
12881 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
12882 |
|
---|
12883 | ac_cv_lib_nsl_gethostbyname=no
|
---|
12884 | fi
|
---|
12885 | rm -f conftest.err conftest.$ac_objext \
|
---|
12886 | conftest$ac_exeext conftest.$ac_ext
|
---|
12887 | LIBS=$ac_check_lib_save_LIBS
|
---|
12888 | fi
|
---|
12889 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
---|
12890 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
|
---|
12891 | if test $ac_cv_lib_nsl_gethostbyname = yes; then
|
---|
12892 |
|
---|
12893 |
|
---|
12894 | cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
|
---|
12895 |
|
---|
12896 |
|
---|
12897 | cat >>confdefs.h <<_ACEOF
|
---|
12898 | #define HAVE_$cf_tr_func 1
|
---|
12899 | _ACEOF
|
---|
12900 |
|
---|
12901 | ac_cv_func_gethostbyname=yes
|
---|
12902 | cf_cv_netlibs="-lnsl $cf_cv_netlibs"
|
---|
12903 | else
|
---|
12904 |
|
---|
12905 | ac_cv_func_gethostbyname=unknown
|
---|
12906 | unset ac_cv_func_gethostbyname 2>/dev/null
|
---|
12907 |
|
---|
12908 | fi
|
---|
12909 |
|
---|
12910 |
|
---|
12911 | fi
|
---|
12912 | done
|
---|
12913 |
|
---|
12914 | #
|
---|
12915 |
|
---|
12916 | for ac_func in strcasecmp
|
---|
12917 | do
|
---|
12918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
12919 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
12920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
12921 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
12922 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12923 | else
|
---|
12924 | cat >conftest.$ac_ext <<_ACEOF
|
---|
12925 | /* confdefs.h. */
|
---|
12926 | _ACEOF
|
---|
12927 | cat confdefs.h >>conftest.$ac_ext
|
---|
12928 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
12929 | /* end confdefs.h. */
|
---|
12930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
12931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
12932 | #define $ac_func innocuous_$ac_func
|
---|
12933 |
|
---|
12934 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
12935 | which can conflict with char $ac_func (); below.
|
---|
12936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
12937 | <limits.h> exists even on freestanding compilers. */
|
---|
12938 |
|
---|
12939 | #ifdef __STDC__
|
---|
12940 | # include <limits.h>
|
---|
12941 | #else
|
---|
12942 | # include <assert.h>
|
---|
12943 | #endif
|
---|
12944 |
|
---|
12945 | #undef $ac_func
|
---|
12946 |
|
---|
12947 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
12948 | #ifdef __cplusplus
|
---|
12949 | extern "C"
|
---|
12950 | {
|
---|
12951 | #endif
|
---|
12952 | /* We use char because int might match the return type of a gcc2
|
---|
12953 | builtin and then its argument prototype would still apply. */
|
---|
12954 | char $ac_func ();
|
---|
12955 | /* The GNU C library defines this for functions which it implements
|
---|
12956 | to always fail with ENOSYS. Some functions are actually named
|
---|
12957 | something starting with __ and the normal name is an alias. */
|
---|
12958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
12959 | choke me
|
---|
12960 | #else
|
---|
12961 | char (*f) () = $ac_func;
|
---|
12962 | #endif
|
---|
12963 | #ifdef __cplusplus
|
---|
12964 | }
|
---|
12965 | #endif
|
---|
12966 |
|
---|
12967 | int
|
---|
12968 | main ()
|
---|
12969 | {
|
---|
12970 | return f != $ac_func;
|
---|
12971 | ;
|
---|
12972 | return 0;
|
---|
12973 | }
|
---|
12974 | _ACEOF
|
---|
12975 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
12976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
12977 | (eval $ac_link) 2>conftest.er1
|
---|
12978 | ac_status=$?
|
---|
12979 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
12980 | rm -f conftest.er1
|
---|
12981 | cat conftest.err >&5
|
---|
12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12983 | (exit $ac_status); } &&
|
---|
12984 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
12985 | || test ! -s conftest.err'
|
---|
12986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12987 | (eval $ac_try) 2>&5
|
---|
12988 | ac_status=$?
|
---|
12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12990 | (exit $ac_status); }; } &&
|
---|
12991 | { ac_try='test -s conftest$ac_exeext'
|
---|
12992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
12993 | (eval $ac_try) 2>&5
|
---|
12994 | ac_status=$?
|
---|
12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12996 | (exit $ac_status); }; }; then
|
---|
12997 | eval "$as_ac_var=yes"
|
---|
12998 | else
|
---|
12999 | echo "$as_me: failed program was:" >&5
|
---|
13000 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
13001 |
|
---|
13002 | eval "$as_ac_var=no"
|
---|
13003 | fi
|
---|
13004 | rm -f conftest.err conftest.$ac_objext \
|
---|
13005 | conftest$ac_exeext conftest.$ac_ext
|
---|
13006 | fi
|
---|
13007 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
13008 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
13009 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
13010 | cat >>confdefs.h <<_ACEOF
|
---|
13011 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
13012 | _ACEOF
|
---|
13013 |
|
---|
13014 | else
|
---|
13015 |
|
---|
13016 |
|
---|
13017 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
|
---|
13018 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
|
---|
13019 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
|
---|
13020 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
13021 | else
|
---|
13022 | ac_check_lib_save_LIBS=$LIBS
|
---|
13023 | LIBS="-lresolv $cf_cv_netlibs $LIBS"
|
---|
13024 | cat >conftest.$ac_ext <<_ACEOF
|
---|
13025 | /* confdefs.h. */
|
---|
13026 | _ACEOF
|
---|
13027 | cat confdefs.h >>conftest.$ac_ext
|
---|
13028 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
13029 | /* end confdefs.h. */
|
---|
13030 |
|
---|
13031 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
13032 | #ifdef __cplusplus
|
---|
13033 | extern "C"
|
---|
13034 | #endif
|
---|
13035 | /* We use char because int might match the return type of a gcc2
|
---|
13036 | builtin and then its argument prototype would still apply. */
|
---|
13037 | char strcasecmp ();
|
---|
13038 | int
|
---|
13039 | main ()
|
---|
13040 | {
|
---|
13041 | strcasecmp ();
|
---|
13042 | ;
|
---|
13043 | return 0;
|
---|
13044 | }
|
---|
13045 | _ACEOF
|
---|
13046 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
13047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
13048 | (eval $ac_link) 2>conftest.er1
|
---|
13049 | ac_status=$?
|
---|
13050 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
13051 | rm -f conftest.er1
|
---|
13052 | cat conftest.err >&5
|
---|
13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13054 | (exit $ac_status); } &&
|
---|
13055 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
13056 | || test ! -s conftest.err'
|
---|
13057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
13058 | (eval $ac_try) 2>&5
|
---|
13059 | ac_status=$?
|
---|
13060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13061 | (exit $ac_status); }; } &&
|
---|
13062 | { ac_try='test -s conftest$ac_exeext'
|
---|
13063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
13064 | (eval $ac_try) 2>&5
|
---|
13065 | ac_status=$?
|
---|
13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13067 | (exit $ac_status); }; }; then
|
---|
13068 | ac_cv_lib_resolv_strcasecmp=yes
|
---|
13069 | else
|
---|
13070 | echo "$as_me: failed program was:" >&5
|
---|
13071 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
13072 |
|
---|
13073 | ac_cv_lib_resolv_strcasecmp=no
|
---|
13074 | fi
|
---|
13075 | rm -f conftest.err conftest.$ac_objext \
|
---|
13076 | conftest$ac_exeext conftest.$ac_ext
|
---|
13077 | LIBS=$ac_check_lib_save_LIBS
|
---|
13078 | fi
|
---|
13079 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
|
---|
13080 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
|
---|
13081 | if test $ac_cv_lib_resolv_strcasecmp = yes; then
|
---|
13082 |
|
---|
13083 |
|
---|
13084 | cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'`
|
---|
13085 |
|
---|
13086 |
|
---|
13087 | cat >>confdefs.h <<_ACEOF
|
---|
13088 | #define HAVE_$cf_tr_func 1
|
---|
13089 | _ACEOF
|
---|
13090 |
|
---|
13091 | ac_cv_func_strcasecmp=yes
|
---|
13092 | cf_cv_netlibs="-lresolv $cf_cv_netlibs"
|
---|
13093 | else
|
---|
13094 |
|
---|
13095 | ac_cv_func_strcasecmp=unknown
|
---|
13096 | unset ac_cv_func_strcasecmp 2>/dev/null
|
---|
13097 |
|
---|
13098 | fi
|
---|
13099 |
|
---|
13100 |
|
---|
13101 | fi
|
---|
13102 | done
|
---|
13103 |
|
---|
13104 |
|
---|
13105 | fi
|
---|
13106 |
|
---|
13107 | LIBS="$LIBS $cf_cv_netlibs"
|
---|
13108 | test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
|
---|
13109 |
|
---|
13110 | if test "${ac_cv_header_customs_h+set}" = set; then
|
---|
13111 | echo "$as_me:$LINENO: checking for customs.h" >&5
|
---|
13112 | echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
|
---|
13113 | if test "${ac_cv_header_customs_h+set}" = set; then
|
---|
13114 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
13115 | fi
|
---|
13116 | echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
|
---|
13117 | echo "${ECHO_T}$ac_cv_header_customs_h" >&6
|
---|
13118 | else
|
---|
13119 | # Is the header compilable?
|
---|
13120 | echo "$as_me:$LINENO: checking customs.h usability" >&5
|
---|
13121 | echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6
|
---|
13122 | cat >conftest.$ac_ext <<_ACEOF
|
---|
13123 | /* confdefs.h. */
|
---|
13124 | _ACEOF
|
---|
13125 | cat confdefs.h >>conftest.$ac_ext
|
---|
13126 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
13127 | /* end confdefs.h. */
|
---|
13128 | $ac_includes_default
|
---|
13129 | #include <customs.h>
|
---|
13130 | _ACEOF
|
---|
13131 | rm -f conftest.$ac_objext
|
---|
13132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
13133 | (eval $ac_compile) 2>conftest.er1
|
---|
13134 | ac_status=$?
|
---|
13135 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
13136 | rm -f conftest.er1
|
---|
13137 | cat conftest.err >&5
|
---|
13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13139 | (exit $ac_status); } &&
|
---|
13140 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
13141 | || test ! -s conftest.err'
|
---|
13142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
13143 | (eval $ac_try) 2>&5
|
---|
13144 | ac_status=$?
|
---|
13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13146 | (exit $ac_status); }; } &&
|
---|
13147 | { ac_try='test -s conftest.$ac_objext'
|
---|
13148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
13149 | (eval $ac_try) 2>&5
|
---|
13150 | ac_status=$?
|
---|
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13152 | (exit $ac_status); }; }; then
|
---|
13153 | ac_header_compiler=yes
|
---|
13154 | else
|
---|
13155 | echo "$as_me: failed program was:" >&5
|
---|
13156 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
13157 |
|
---|
13158 | ac_header_compiler=no
|
---|
13159 | fi
|
---|
13160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
13161 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
13162 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
13163 |
|
---|
13164 | # Is the header present?
|
---|
13165 | echo "$as_me:$LINENO: checking customs.h presence" >&5
|
---|
13166 | echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6
|
---|
13167 | cat >conftest.$ac_ext <<_ACEOF
|
---|
13168 | /* confdefs.h. */
|
---|
13169 | _ACEOF
|
---|
13170 | cat confdefs.h >>conftest.$ac_ext
|
---|
13171 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
13172 | /* end confdefs.h. */
|
---|
13173 | #include <customs.h>
|
---|
13174 | _ACEOF
|
---|
13175 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
13176 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
13177 | ac_status=$?
|
---|
13178 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
13179 | rm -f conftest.er1
|
---|
13180 | cat conftest.err >&5
|
---|
13181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13182 | (exit $ac_status); } >/dev/null; then
|
---|
13183 | if test -s conftest.err; then
|
---|
13184 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
13185 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
13186 | else
|
---|
13187 | ac_cpp_err=
|
---|
13188 | fi
|
---|
13189 | else
|
---|
13190 | ac_cpp_err=yes
|
---|
13191 | fi
|
---|
13192 | if test -z "$ac_cpp_err"; then
|
---|
13193 | ac_header_preproc=yes
|
---|
13194 | else
|
---|
13195 | echo "$as_me: failed program was:" >&5
|
---|
13196 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
13197 |
|
---|
13198 | ac_header_preproc=no
|
---|
13199 | fi
|
---|
13200 | rm -f conftest.err conftest.$ac_ext
|
---|
13201 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
13202 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
13203 |
|
---|
13204 | # So? What about this header?
|
---|
13205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
13206 | yes:no: )
|
---|
13207 | { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
13208 | echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
13209 | { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the compiler's result" >&5
|
---|
13210 | echo "$as_me: WARNING: customs.h: proceeding with the compiler's result" >&2;}
|
---|
13211 | ac_header_preproc=yes
|
---|
13212 | ;;
|
---|
13213 | no:yes:* )
|
---|
13214 | { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5
|
---|
13215 | echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;}
|
---|
13216 | { echo "$as_me:$LINENO: WARNING: customs.h: check for missing prerequisite headers?" >&5
|
---|
13217 | echo "$as_me: WARNING: customs.h: check for missing prerequisite headers?" >&2;}
|
---|
13218 | { echo "$as_me:$LINENO: WARNING: customs.h: see the Autoconf documentation" >&5
|
---|
13219 | echo "$as_me: WARNING: customs.h: see the Autoconf documentation" >&2;}
|
---|
13220 | { echo "$as_me:$LINENO: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
13221 | echo "$as_me: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
13222 | { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5
|
---|
13223 | echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;}
|
---|
13224 | { echo "$as_me:$LINENO: WARNING: customs.h: in the future, the compiler will take precedence" >&5
|
---|
13225 | echo "$as_me: WARNING: customs.h: in the future, the compiler will take precedence" >&2;}
|
---|
13226 | (
|
---|
13227 | cat <<\_ASBOX
|
---|
13228 | ## ------------------------------- ##
|
---|
13229 | ## Report this to [email protected] ##
|
---|
13230 | ## ------------------------------- ##
|
---|
13231 | _ASBOX
|
---|
13232 | ) |
|
---|
13233 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
13234 | ;;
|
---|
13235 | esac
|
---|
13236 | echo "$as_me:$LINENO: checking for customs.h" >&5
|
---|
13237 | echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
|
---|
13238 | if test "${ac_cv_header_customs_h+set}" = set; then
|
---|
13239 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
13240 | else
|
---|
13241 | ac_cv_header_customs_h=$ac_header_preproc
|
---|
13242 | fi
|
---|
13243 | echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
|
---|
13244 | echo "${ECHO_T}$ac_cv_header_customs_h" >&6
|
---|
13245 |
|
---|
13246 | fi
|
---|
13247 | if test $ac_cv_header_customs_h = yes; then
|
---|
13248 | use_customs=true
|
---|
13249 | REMOTE=cstms
|
---|
13250 | LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
|
---|
13251 | else
|
---|
13252 | with_customs=no
|
---|
13253 | CPPFLAGS="$make_cppflags" make_badcust=yes
|
---|
13254 | fi
|
---|
13255 |
|
---|
13256 |
|
---|
13257 | ;;
|
---|
13258 | esac
|
---|
13259 | fi;
|
---|
13260 | # Tell automake about this, so it can include the right .c files.
|
---|
13261 |
|
---|
13262 |
|
---|
13263 | if test "$use_customs" = true; then
|
---|
13264 | USE_CUSTOMS_TRUE=
|
---|
13265 | USE_CUSTOMS_FALSE='#'
|
---|
13266 | else
|
---|
13267 | USE_CUSTOMS_TRUE='#'
|
---|
13268 | USE_CUSTOMS_FALSE=
|
---|
13269 | fi
|
---|
13270 |
|
---|
13271 |
|
---|
13272 | # See if we can handle the job server feature, and if the user wants it.
|
---|
13273 |
|
---|
13274 | # Check whether --enable-job-server or --disable-job-server was given.
|
---|
13275 | if test "${enable_job_server+set}" = set; then
|
---|
13276 | enableval="$enable_job_server"
|
---|
13277 | make_cv_job_server="$enableval" user_job_server="$enableval"
|
---|
13278 | else
|
---|
13279 | make_cv_job_server="yes"
|
---|
13280 | fi;
|
---|
13281 |
|
---|
13282 | has_wait_nohang=yes
|
---|
13283 | case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
|
---|
13284 | no/no) has_wait_nohang=no ;;
|
---|
13285 | esac
|
---|
13286 |
|
---|
13287 | echo "$as_me:$LINENO: checking for SA_RESTART" >&5
|
---|
13288 | echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6
|
---|
13289 | if test "${make_cv_sa_restart+set}" = set; then
|
---|
13290 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
13291 | else
|
---|
13292 |
|
---|
13293 | cat >conftest.$ac_ext <<_ACEOF
|
---|
13294 | /* confdefs.h. */
|
---|
13295 | _ACEOF
|
---|
13296 | cat confdefs.h >>conftest.$ac_ext
|
---|
13297 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
13298 | /* end confdefs.h. */
|
---|
13299 | #include <signal.h>
|
---|
13300 | int
|
---|
13301 | main ()
|
---|
13302 | {
|
---|
13303 | return SA_RESTART;
|
---|
13304 | ;
|
---|
13305 | return 0;
|
---|
13306 | }
|
---|
13307 | _ACEOF
|
---|
13308 | rm -f conftest.$ac_objext
|
---|
13309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
13310 | (eval $ac_compile) 2>conftest.er1
|
---|
13311 | ac_status=$?
|
---|
13312 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
13313 | rm -f conftest.er1
|
---|
13314 | cat conftest.err >&5
|
---|
13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13316 | (exit $ac_status); } &&
|
---|
13317 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
13318 | || test ! -s conftest.err'
|
---|
13319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
13320 | (eval $ac_try) 2>&5
|
---|
13321 | ac_status=$?
|
---|
13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13323 | (exit $ac_status); }; } &&
|
---|
13324 | { ac_try='test -s conftest.$ac_objext'
|
---|
13325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
13326 | (eval $ac_try) 2>&5
|
---|
13327 | ac_status=$?
|
---|
13328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13329 | (exit $ac_status); }; }; then
|
---|
13330 | make_cv_sa_restart=yes
|
---|
13331 | else
|
---|
13332 | echo "$as_me: failed program was:" >&5
|
---|
13333 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
13334 |
|
---|
13335 | make_cv_sa_restart=no
|
---|
13336 | fi
|
---|
13337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
13338 | fi
|
---|
13339 | echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5
|
---|
13340 | echo "${ECHO_T}$make_cv_sa_restart" >&6
|
---|
13341 |
|
---|
13342 | # enable make_cv_sa_restart for OS/2
|
---|
13343 | case "$host_os" in
|
---|
13344 | os2*) make_cv_sa_restart=yes ;;
|
---|
13345 | esac
|
---|
13346 |
|
---|
13347 | if test "$make_cv_sa_restart" != no; then
|
---|
13348 |
|
---|
13349 | cat >>confdefs.h <<\_ACEOF
|
---|
13350 | #define HAVE_SA_RESTART 1
|
---|
13351 | _ACEOF
|
---|
13352 |
|
---|
13353 | fi
|
---|
13354 |
|
---|
13355 | case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
|
---|
13356 | yes/yes/yes/yes/yes)
|
---|
13357 |
|
---|
13358 | cat >>confdefs.h <<\_ACEOF
|
---|
13359 | #define MAKE_JOBSERVER 1
|
---|
13360 | _ACEOF
|
---|
13361 | ;;
|
---|
13362 | esac
|
---|
13363 |
|
---|
13364 | # Find the SCCS commands, so we can include them in our default rules.
|
---|
13365 |
|
---|
13366 | echo "$as_me:$LINENO: checking for location of SCCS get command" >&5
|
---|
13367 | echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6
|
---|
13368 | if test "${make_cv_path_sccs_get+set}" = set; then
|
---|
13369 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
13370 | else
|
---|
13371 |
|
---|
13372 | if test -f /usr/sccs/get; then
|
---|
13373 | make_cv_path_sccs_get=/usr/sccs/get
|
---|
13374 | else
|
---|
13375 | make_cv_path_sccs_get=get
|
---|
13376 | fi
|
---|
13377 | fi
|
---|
13378 | echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5
|
---|
13379 | echo "${ECHO_T}$make_cv_path_sccs_get" >&6
|
---|
13380 |
|
---|
13381 | cat >>confdefs.h <<_ACEOF
|
---|
13382 | #define SCCS_GET "$make_cv_path_sccs_get"
|
---|
13383 | _ACEOF
|
---|
13384 |
|
---|
13385 |
|
---|
13386 | ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
|
---|
13387 | if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
|
---|
13388 | test -f s.conftest; then
|
---|
13389 | # We successfully created an SCCS file.
|
---|
13390 | echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5
|
---|
13391 | echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6
|
---|
13392 | if test "${make_cv_sys_get_minus_G+set}" = set; then
|
---|
13393 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
13394 | else
|
---|
13395 |
|
---|
13396 | if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
|
---|
13397 | test -f conftoast; then
|
---|
13398 | make_cv_sys_get_minus_G=yes
|
---|
13399 | else
|
---|
13400 | make_cv_sys_get_minus_G=no
|
---|
13401 | fi
|
---|
13402 | fi
|
---|
13403 | echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5
|
---|
13404 | echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6
|
---|
13405 | case "$make_cv_sys_get_minus_G" in
|
---|
13406 | yes)
|
---|
13407 | cat >>confdefs.h <<\_ACEOF
|
---|
13408 | #define SCCS_GET_MINUS_G 1
|
---|
13409 | _ACEOF
|
---|
13410 | ;;
|
---|
13411 | esac
|
---|
13412 | fi
|
---|
13413 | rm -f s.conftest conftoast
|
---|
13414 |
|
---|
13415 | # Check the system to see if it provides GNU glob. If not, use our
|
---|
13416 | # local version.
|
---|
13417 |
|
---|
13418 | echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5
|
---|
13419 | echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6
|
---|
13420 | if test "${make_cv_sys_gnu_glob+set}" = set; then
|
---|
13421 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
13422 | else
|
---|
13423 |
|
---|
13424 | cat >conftest.$ac_ext <<_ACEOF
|
---|
13425 | /* confdefs.h. */
|
---|
13426 | _ACEOF
|
---|
13427 | cat confdefs.h >>conftest.$ac_ext
|
---|
13428 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
13429 | /* end confdefs.h. */
|
---|
13430 |
|
---|
13431 | #include <features.h>
|
---|
13432 | #include <glob.h>
|
---|
13433 | #include <fnmatch.h>
|
---|
13434 |
|
---|
13435 | #define GLOB_INTERFACE_VERSION 1
|
---|
13436 | #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
|
---|
13437 | # include <gnu-versions.h>
|
---|
13438 | # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
|
---|
13439 | gnu glob
|
---|
13440 | # endif
|
---|
13441 | #endif
|
---|
13442 |
|
---|
13443 | _ACEOF
|
---|
13444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
13445 | $EGREP "gnu glob" >/dev/null 2>&1; then
|
---|
13446 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
13447 | echo "${ECHO_T}yes" >&6
|
---|
13448 | make_cv_sys_gnu_glob=yes
|
---|
13449 | else
|
---|
13450 | echo "$as_me:$LINENO: result: no; using local copy" >&5
|
---|
13451 | echo "${ECHO_T}no; using local copy" >&6
|
---|
13452 | GLOBINC='-I$(srcdir)/glob'
|
---|
13453 | GLOBLIB=glob/libglob.a
|
---|
13454 | make_cv_sys_gnu_glob=no
|
---|
13455 | fi
|
---|
13456 | rm -f conftest*
|
---|
13457 |
|
---|
13458 | fi
|
---|
13459 |
|
---|
13460 | # Tell automake about this, so it can build the right .c files.
|
---|
13461 |
|
---|
13462 |
|
---|
13463 | if test "$make_cv_sys_gnu_glob" = no; then
|
---|
13464 | USE_LOCAL_GLOB_TRUE=
|
---|
13465 | USE_LOCAL_GLOB_FALSE='#'
|
---|
13466 | else
|
---|
13467 | USE_LOCAL_GLOB_TRUE='#'
|
---|
13468 | USE_LOCAL_GLOB_FALSE=
|
---|
13469 | fi
|
---|
13470 |
|
---|
13471 |
|
---|
13472 | # Let the makefile know what our build host is
|
---|
13473 |
|
---|
13474 |
|
---|
13475 | cat >>confdefs.h <<_ACEOF
|
---|
13476 | #define MAKE_HOST "$host"
|
---|
13477 | _ACEOF
|
---|
13478 |
|
---|
13479 | MAKE_HOST="$host"
|
---|
13480 |
|
---|
13481 |
|
---|
13482 | # Include the Maintainer's Makefile section, if it's here.
|
---|
13483 |
|
---|
13484 | MAINT_MAKEFILE=/dev/null
|
---|
13485 | if test -r "$srcdir/maintMakefile"; then
|
---|
13486 | MAINT_MAKEFILE="$srcdir/maintMakefile"
|
---|
13487 | fi
|
---|
13488 |
|
---|
13489 |
|
---|
13490 | # Allow building with dmalloc
|
---|
13491 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
13492 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
13493 |
|
---|
13494 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
13495 | if test "${with_dmalloc+set}" = set; then
|
---|
13496 | withval="$with_dmalloc"
|
---|
13497 | if test "$withval" = yes; then
|
---|
13498 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
13499 | echo "${ECHO_T}yes" >&6
|
---|
13500 |
|
---|
13501 | cat >>confdefs.h <<\_ACEOF
|
---|
13502 | #define WITH_DMALLOC 1
|
---|
13503 | _ACEOF
|
---|
13504 |
|
---|
13505 | LIBS="$LIBS -ldmalloc"
|
---|
13506 | LDFLAGS="$LDFLAGS -g"
|
---|
13507 | else
|
---|
13508 | echo "$as_me:$LINENO: result: no" >&5
|
---|
13509 | echo "${ECHO_T}no" >&6
|
---|
13510 | fi
|
---|
13511 | else
|
---|
13512 | echo "$as_me:$LINENO: result: no" >&5
|
---|
13513 | echo "${ECHO_T}no" >&6
|
---|
13514 | fi;
|
---|
13515 |
|
---|
13516 |
|
---|
13517 | # Forcibly disable SET_MAKE. If it's set it breaks things like the test
|
---|
13518 | # scripts, etc.
|
---|
13519 | SET_MAKE=
|
---|
13520 |
|
---|
13521 | # Sanity check and inform the user of what we found
|
---|
13522 |
|
---|
13523 | case "$make_badcust" in
|
---|
13524 | yes) echo
|
---|
13525 | echo "WARNING: --with-customs specified but no customs.h could be found;"
|
---|
13526 | echo " disabling Customs support."
|
---|
13527 | echo ;;
|
---|
13528 | esac
|
---|
13529 |
|
---|
13530 | case "$with_customs" in
|
---|
13531 | ""|n|no|y|ye|yes) ;;
|
---|
13532 | *) if test -f "$with_customs/lib/libcustoms.a"; then
|
---|
13533 | :
|
---|
13534 | else
|
---|
13535 | echo
|
---|
13536 | echo "WARNING: '$with_customs/lib' does not appear to contain the"
|
---|
13537 | echo " Customs library. You must build and install Customs"
|
---|
13538 | echo " before compiling GNU make."
|
---|
13539 | echo
|
---|
13540 | fi ;;
|
---|
13541 | esac
|
---|
13542 |
|
---|
13543 | case "$has_wait_nohang" in
|
---|
13544 | no) echo
|
---|
13545 | echo "WARNING: Your system has neither waitpid() nor wait3()."
|
---|
13546 | echo " Without one of these, signal handling is unreliable."
|
---|
13547 | echo " You should be aware that running GNU make with -j"
|
---|
13548 | echo " could result in erratic behavior."
|
---|
13549 | echo ;;
|
---|
13550 | esac
|
---|
13551 |
|
---|
13552 | case "$make_cv_job_server/$user_job_server" in
|
---|
13553 | no/yes) echo
|
---|
13554 | echo "WARNING: Make job server requires a POSIX-ish system that"
|
---|
13555 | echo " supports the pipe(), sigaction(), and either"
|
---|
13556 | echo " waitpid() or wait3() functions. Your system doesn't"
|
---|
13557 | echo " appear to provide one or more of those."
|
---|
13558 | echo " Disabling job server support."
|
---|
13559 | echo ;;
|
---|
13560 | esac
|
---|
13561 |
|
---|
13562 |
|
---|
13563 | # Specify what files are to be created.
|
---|
13564 | # We only generate the build.sh if we have a build.sh.in; we won't have
|
---|
13565 | # one before we've created a distribution.
|
---|
13566 |
|
---|
13567 | ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile"
|
---|
13568 |
|
---|
13569 |
|
---|
13570 | if test -f $srcdir/build.sh.in; then
|
---|
13571 | ac_config_files="$ac_config_files build.sh"
|
---|
13572 |
|
---|
13573 | fi
|
---|
13574 |
|
---|
13575 |
|
---|
13576 | # OK, do it!
|
---|
13577 |
|
---|
13578 | cat >confcache <<\_ACEOF
|
---|
13579 | # This file is a shell script that caches the results of configure
|
---|
13580 | # tests run on this system so they can be shared between configure
|
---|
13581 | # scripts and configure runs, see configure's option --config-cache.
|
---|
13582 | # It is not useful on other systems. If it contains results you don't
|
---|
13583 | # want to keep, you may remove or edit it.
|
---|
13584 | #
|
---|
13585 | # config.status only pays attention to the cache file if you give it
|
---|
13586 | # the --recheck option to rerun configure.
|
---|
13587 | #
|
---|
13588 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
13589 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
13590 | # following values.
|
---|
13591 |
|
---|
13592 | _ACEOF
|
---|
13593 |
|
---|
13594 | # The following way of writing the cache mishandles newlines in values,
|
---|
13595 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
13596 | # So, don't put newlines in cache variables' values.
|
---|
13597 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
13598 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
13599 | {
|
---|
13600 | (set) 2>&1 |
|
---|
13601 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
13602 | *ac_space=\ *)
|
---|
13603 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
13604 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
13605 | sed -n \
|
---|
13606 | "s/'/'\\\\''/g;
|
---|
13607 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
13608 | ;;
|
---|
13609 | *)
|
---|
13610 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
13611 | sed -n \
|
---|
13612 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
13613 | ;;
|
---|
13614 | esac;
|
---|
13615 | } |
|
---|
13616 | sed '
|
---|
13617 | t clear
|
---|
13618 | : clear
|
---|
13619 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
13620 | t end
|
---|
13621 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
13622 | : end' >>confcache
|
---|
13623 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
13624 | if test -w $cache_file; then
|
---|
13625 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
13626 | cat confcache >$cache_file
|
---|
13627 | else
|
---|
13628 | echo "not updating unwritable cache $cache_file"
|
---|
13629 | fi
|
---|
13630 | fi
|
---|
13631 | rm -f confcache
|
---|
13632 |
|
---|
13633 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
13634 | # Let make expand exec_prefix.
|
---|
13635 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
13636 |
|
---|
13637 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
13638 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
13639 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
13640 | # (actually we leave an empty line to preserve line numbers).
|
---|
13641 | if test "x$srcdir" = x.; then
|
---|
13642 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
13643 | s/:*\$(srcdir):*/:/;
|
---|
13644 | s/:*\${srcdir}:*/:/;
|
---|
13645 | s/:*@srcdir@:*/:/;
|
---|
13646 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
13647 | s/:*$//;
|
---|
13648 | s/^[^=]*=[ ]*$//;
|
---|
13649 | }'
|
---|
13650 | fi
|
---|
13651 |
|
---|
13652 | DEFS=-DHAVE_CONFIG_H
|
---|
13653 |
|
---|
13654 | ac_libobjs=
|
---|
13655 | ac_ltlibobjs=
|
---|
13656 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
13657 | # 1. Remove the extension, and $U if already installed.
|
---|
13658 | ac_i=`echo "$ac_i" |
|
---|
13659 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
13660 | # 2. Add them.
|
---|
13661 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
13662 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
13663 | done
|
---|
13664 | LIBOBJS=$ac_libobjs
|
---|
13665 |
|
---|
13666 | LTLIBOBJS=$ac_ltlibobjs
|
---|
13667 |
|
---|
13668 |
|
---|
13669 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
13670 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
---|
13671 | Usually this means the macro was only invoked conditionally." >&5
|
---|
13672 | echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
---|
13673 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
13674 | { (exit 1); exit 1; }; }
|
---|
13675 | fi
|
---|
13676 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
13677 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
---|
13678 | Usually this means the macro was only invoked conditionally." >&5
|
---|
13679 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
---|
13680 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
13681 | { (exit 1); exit 1; }; }
|
---|
13682 | fi
|
---|
13683 | if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
|
---|
13684 | { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined.
|
---|
13685 | Usually this means the macro was only invoked conditionally." >&5
|
---|
13686 | echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined.
|
---|
13687 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
13688 | { (exit 1); exit 1; }; }
|
---|
13689 | fi
|
---|
13690 | if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
|
---|
13691 | { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined.
|
---|
13692 | Usually this means the macro was only invoked conditionally." >&5
|
---|
13693 | echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined.
|
---|
13694 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
13695 | { (exit 1); exit 1; }; }
|
---|
13696 | fi
|
---|
13697 |
|
---|
13698 | : ${CONFIG_STATUS=./config.status}
|
---|
13699 | ac_clean_files_save=$ac_clean_files
|
---|
13700 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
13701 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
13702 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
13703 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
13704 | #! $SHELL
|
---|
13705 | # Generated by $as_me.
|
---|
13706 | # Run this file to recreate the current configuration.
|
---|
13707 | # Compiler output produced by configure, useful for debugging
|
---|
13708 | # configure, is in config.log if it exists.
|
---|
13709 |
|
---|
13710 | debug=false
|
---|
13711 | ac_cs_recheck=false
|
---|
13712 | ac_cs_silent=false
|
---|
13713 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
13714 | _ACEOF
|
---|
13715 |
|
---|
13716 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
13717 | ## --------------------- ##
|
---|
13718 | ## M4sh Initialization. ##
|
---|
13719 | ## --------------------- ##
|
---|
13720 |
|
---|
13721 | # Be Bourne compatible
|
---|
13722 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
13723 | emulate sh
|
---|
13724 | NULLCMD=:
|
---|
13725 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
13726 | # is contrary to our usage. Disable this feature.
|
---|
13727 | alias -g '${1+"$@"}'='"$@"'
|
---|
13728 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
13729 | set -o posix
|
---|
13730 | fi
|
---|
13731 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
13732 |
|
---|
13733 | # Support unset when possible.
|
---|
13734 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
13735 | as_unset=unset
|
---|
13736 | else
|
---|
13737 | as_unset=false
|
---|
13738 | fi
|
---|
13739 |
|
---|
13740 |
|
---|
13741 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
13742 | $as_unset ENV MAIL MAILPATH
|
---|
13743 | PS1='$ '
|
---|
13744 | PS2='> '
|
---|
13745 | PS4='+ '
|
---|
13746 |
|
---|
13747 | # NLS nuisances.
|
---|
13748 | for as_var in \
|
---|
13749 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
13750 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
13751 | LC_TELEPHONE LC_TIME
|
---|
13752 | do
|
---|
13753 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
13754 | eval $as_var=C; export $as_var
|
---|
13755 | else
|
---|
13756 | $as_unset $as_var
|
---|
13757 | fi
|
---|
13758 | done
|
---|
13759 |
|
---|
13760 | # Required to use basename.
|
---|
13761 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
13762 | as_expr=expr
|
---|
13763 | else
|
---|
13764 | as_expr=false
|
---|
13765 | fi
|
---|
13766 |
|
---|
13767 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
13768 | as_basename=basename
|
---|
13769 | else
|
---|
13770 | as_basename=false
|
---|
13771 | fi
|
---|
13772 |
|
---|
13773 |
|
---|
13774 | # Name of the executable.
|
---|
13775 | as_me=`$as_basename "$0" ||
|
---|
13776 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
13777 | X"$0" : 'X\(//\)$' \| \
|
---|
13778 | X"$0" : 'X\(/\)$' \| \
|
---|
13779 | . : '\(.\)' 2>/dev/null ||
|
---|
13780 | echo X/"$0" |
|
---|
13781 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
13782 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
13783 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
13784 | s/.*/./; q'`
|
---|
13785 |
|
---|
13786 |
|
---|
13787 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
13788 | # Avoid depending upon Character Ranges.
|
---|
13789 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
13790 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
13791 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
13792 | as_cr_digits='0123456789'
|
---|
13793 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
13794 |
|
---|
13795 | # The user is always right.
|
---|
13796 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
13797 | echo "#! /bin/sh" >conf$$.sh
|
---|
13798 | echo "exit 0" >>conf$$.sh
|
---|
13799 | chmod +x conf$$.sh
|
---|
13800 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
13801 | PATH_SEPARATOR=';'
|
---|
13802 | else
|
---|
13803 | PATH_SEPARATOR=:
|
---|
13804 | fi
|
---|
13805 | rm -f conf$$.sh
|
---|
13806 | fi
|
---|
13807 |
|
---|
13808 |
|
---|
13809 | as_lineno_1=$LINENO
|
---|
13810 | as_lineno_2=$LINENO
|
---|
13811 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
13812 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
13813 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
13814 | # Find who we are. Look in the path if we contain no path at all
|
---|
13815 | # relative or not.
|
---|
13816 | case $0 in
|
---|
13817 | *[\\/]* ) as_myself=$0 ;;
|
---|
13818 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
13819 | for as_dir in $PATH
|
---|
13820 | do
|
---|
13821 | IFS=$as_save_IFS
|
---|
13822 | test -z "$as_dir" && as_dir=.
|
---|
13823 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
13824 | done
|
---|
13825 |
|
---|
13826 | ;;
|
---|
13827 | esac
|
---|
13828 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
13829 | # in which case we are not to be found in the path.
|
---|
13830 | if test "x$as_myself" = x; then
|
---|
13831 | as_myself=$0
|
---|
13832 | fi
|
---|
13833 | if test ! -f "$as_myself"; then
|
---|
13834 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
13835 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
13836 | { (exit 1); exit 1; }; }
|
---|
13837 | fi
|
---|
13838 | case $CONFIG_SHELL in
|
---|
13839 | '')
|
---|
13840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
13841 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
13842 | do
|
---|
13843 | IFS=$as_save_IFS
|
---|
13844 | test -z "$as_dir" && as_dir=.
|
---|
13845 | for as_base in sh bash ksh sh5; do
|
---|
13846 | case $as_dir in
|
---|
13847 | /*)
|
---|
13848 | if ("$as_dir/$as_base" -c '
|
---|
13849 | as_lineno_1=$LINENO
|
---|
13850 | as_lineno_2=$LINENO
|
---|
13851 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
13852 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
13853 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
13854 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
13855 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
13856 | CONFIG_SHELL=$as_dir/$as_base
|
---|
13857 | export CONFIG_SHELL
|
---|
13858 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
13859 | fi;;
|
---|
13860 | esac
|
---|
13861 | done
|
---|
13862 | done
|
---|
13863 | ;;
|
---|
13864 | esac
|
---|
13865 |
|
---|
13866 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
13867 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
13868 | # line-number line before each line; the second 'sed' does the real
|
---|
13869 | # work. The second script uses 'N' to pair each line-number line
|
---|
13870 | # with the numbered line, and appends trailing '-' during
|
---|
13871 | # substitution so that $LINENO is not a special case at line end.
|
---|
13872 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
13873 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
13874 | sed '=' <$as_myself |
|
---|
13875 | sed '
|
---|
13876 | N
|
---|
13877 | s,$,-,
|
---|
13878 | : loop
|
---|
13879 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
13880 | t loop
|
---|
13881 | s,-$,,
|
---|
13882 | s,^['$as_cr_digits']*\n,,
|
---|
13883 | ' >$as_me.lineno &&
|
---|
13884 | chmod +x $as_me.lineno ||
|
---|
13885 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
13886 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
13887 | { (exit 1); exit 1; }; }
|
---|
13888 |
|
---|
13889 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
13890 | # (the dirname of $[0] is not the place where we might find the
|
---|
13891 | # original and so on. Autoconf is especially sensible to this).
|
---|
13892 | . ./$as_me.lineno
|
---|
13893 | # Exit status is that of the last command.
|
---|
13894 | exit
|
---|
13895 | }
|
---|
13896 |
|
---|
13897 |
|
---|
13898 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
13899 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
13900 | ' ECHO_T=' ' ;;
|
---|
13901 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
13902 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
13903 | esac
|
---|
13904 |
|
---|
13905 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
13906 | as_expr=expr
|
---|
13907 | else
|
---|
13908 | as_expr=false
|
---|
13909 | fi
|
---|
13910 |
|
---|
13911 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
13912 | echo >conf$$.file
|
---|
13913 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
13914 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
13915 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
13916 | if test -f conf$$.exe; then
|
---|
13917 | # Don't use ln at all; we don't have any links
|
---|
13918 | as_ln_s='cp -p'
|
---|
13919 | else
|
---|
13920 | as_ln_s='ln -s'
|
---|
13921 | fi
|
---|
13922 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
13923 | as_ln_s=ln
|
---|
13924 | else
|
---|
13925 | as_ln_s='cp -p'
|
---|
13926 | fi
|
---|
13927 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
13928 |
|
---|
13929 | if mkdir -p . 2>/dev/null; then
|
---|
13930 | as_mkdir_p=:
|
---|
13931 | else
|
---|
13932 | test -d ./-p && rmdir ./-p
|
---|
13933 | as_mkdir_p=false
|
---|
13934 | fi
|
---|
13935 |
|
---|
13936 | as_executable_p="test -f"
|
---|
13937 |
|
---|
13938 | # Sed expression to map a string onto a valid CPP name.
|
---|
13939 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
13940 |
|
---|
13941 | # Sed expression to map a string onto a valid variable name.
|
---|
13942 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
13943 |
|
---|
13944 |
|
---|
13945 | # IFS
|
---|
13946 | # We need space, tab and new line, in precisely that order.
|
---|
13947 | as_nl='
|
---|
13948 | '
|
---|
13949 | IFS=" $as_nl"
|
---|
13950 |
|
---|
13951 | # CDPATH.
|
---|
13952 | $as_unset CDPATH
|
---|
13953 |
|
---|
13954 | exec 6>&1
|
---|
13955 |
|
---|
13956 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
13957 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
13958 | # values after options handling. Logging --version etc. is OK.
|
---|
13959 | exec 5>>config.log
|
---|
13960 | {
|
---|
13961 | echo
|
---|
13962 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
13963 | ## Running $as_me. ##
|
---|
13964 | _ASBOX
|
---|
13965 | } >&5
|
---|
13966 | cat >&5 <<_CSEOF
|
---|
13967 |
|
---|
13968 | This file was extended by GNU make $as_me 3.81beta1, which was
|
---|
13969 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
13970 |
|
---|
13971 | CONFIG_FILES = $CONFIG_FILES
|
---|
13972 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
13973 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
13974 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
13975 | $ $0 $@
|
---|
13976 |
|
---|
13977 | _CSEOF
|
---|
13978 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
13979 | echo >&5
|
---|
13980 | _ACEOF
|
---|
13981 |
|
---|
13982 | # Files that config.status was made for.
|
---|
13983 | if test -n "$ac_config_files"; then
|
---|
13984 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
13985 | fi
|
---|
13986 |
|
---|
13987 | if test -n "$ac_config_headers"; then
|
---|
13988 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
13989 | fi
|
---|
13990 |
|
---|
13991 | if test -n "$ac_config_links"; then
|
---|
13992 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
13993 | fi
|
---|
13994 |
|
---|
13995 | if test -n "$ac_config_commands"; then
|
---|
13996 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
13997 | fi
|
---|
13998 |
|
---|
13999 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14000 |
|
---|
14001 | ac_cs_usage="\
|
---|
14002 | \`$as_me' instantiates files from templates according to the
|
---|
14003 | current configuration.
|
---|
14004 |
|
---|
14005 | Usage: $0 [OPTIONS] [FILE]...
|
---|
14006 |
|
---|
14007 | -h, --help print this help, then exit
|
---|
14008 | -V, --version print version number, then exit
|
---|
14009 | -q, --quiet do not print progress messages
|
---|
14010 | -d, --debug don't remove temporary files
|
---|
14011 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
14012 | --file=FILE[:TEMPLATE]
|
---|
14013 | instantiate the configuration file FILE
|
---|
14014 | --header=FILE[:TEMPLATE]
|
---|
14015 | instantiate the configuration header FILE
|
---|
14016 |
|
---|
14017 | Configuration files:
|
---|
14018 | $config_files
|
---|
14019 |
|
---|
14020 | Configuration headers:
|
---|
14021 | $config_headers
|
---|
14022 |
|
---|
14023 | Configuration commands:
|
---|
14024 | $config_commands
|
---|
14025 |
|
---|
14026 | Report bugs to <[email protected]>."
|
---|
14027 | _ACEOF
|
---|
14028 |
|
---|
14029 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
14030 | ac_cs_version="\\
|
---|
14031 | GNU make config.status 3.81beta1
|
---|
14032 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
14033 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
14034 |
|
---|
14035 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
14036 | This config.status script is free software; the Free Software Foundation
|
---|
14037 | gives unlimited permission to copy, distribute and modify it."
|
---|
14038 | srcdir=$srcdir
|
---|
14039 | INSTALL="$INSTALL"
|
---|
14040 | _ACEOF
|
---|
14041 |
|
---|
14042 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14043 | # If no file are specified by the user, then we need to provide default
|
---|
14044 | # value. By we need to know if files were specified by the user.
|
---|
14045 | ac_need_defaults=:
|
---|
14046 | while test $# != 0
|
---|
14047 | do
|
---|
14048 | case $1 in
|
---|
14049 | --*=*)
|
---|
14050 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
14051 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
14052 | ac_shift=:
|
---|
14053 | ;;
|
---|
14054 | -*)
|
---|
14055 | ac_option=$1
|
---|
14056 | ac_optarg=$2
|
---|
14057 | ac_shift=shift
|
---|
14058 | ;;
|
---|
14059 | *) # This is not an option, so the user has probably given explicit
|
---|
14060 | # arguments.
|
---|
14061 | ac_option=$1
|
---|
14062 | ac_need_defaults=false;;
|
---|
14063 | esac
|
---|
14064 |
|
---|
14065 | case $ac_option in
|
---|
14066 | # Handling of the options.
|
---|
14067 | _ACEOF
|
---|
14068 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14069 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
14070 | ac_cs_recheck=: ;;
|
---|
14071 | --version | --vers* | -V )
|
---|
14072 | echo "$ac_cs_version"; exit 0 ;;
|
---|
14073 | --he | --h)
|
---|
14074 | # Conflict between --help and --header
|
---|
14075 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
14076 | Try \`$0 --help' for more information." >&5
|
---|
14077 | echo "$as_me: error: ambiguous option: $1
|
---|
14078 | Try \`$0 --help' for more information." >&2;}
|
---|
14079 | { (exit 1); exit 1; }; };;
|
---|
14080 | --help | --hel | -h )
|
---|
14081 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
14082 | --debug | --d* | -d )
|
---|
14083 | debug=: ;;
|
---|
14084 | --file | --fil | --fi | --f )
|
---|
14085 | $ac_shift
|
---|
14086 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
14087 | ac_need_defaults=false;;
|
---|
14088 | --header | --heade | --head | --hea )
|
---|
14089 | $ac_shift
|
---|
14090 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
14091 | ac_need_defaults=false;;
|
---|
14092 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
14093 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
14094 | ac_cs_silent=: ;;
|
---|
14095 |
|
---|
14096 | # This is an error.
|
---|
14097 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
14098 | Try \`$0 --help' for more information." >&5
|
---|
14099 | echo "$as_me: error: unrecognized option: $1
|
---|
14100 | Try \`$0 --help' for more information." >&2;}
|
---|
14101 | { (exit 1); exit 1; }; } ;;
|
---|
14102 |
|
---|
14103 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
14104 |
|
---|
14105 | esac
|
---|
14106 | shift
|
---|
14107 | done
|
---|
14108 |
|
---|
14109 | ac_configure_extra_args=
|
---|
14110 |
|
---|
14111 | if $ac_cs_silent; then
|
---|
14112 | exec 6>/dev/null
|
---|
14113 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
14114 | fi
|
---|
14115 |
|
---|
14116 | _ACEOF
|
---|
14117 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
14118 | if \$ac_cs_recheck; then
|
---|
14119 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
14120 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
14121 | fi
|
---|
14122 |
|
---|
14123 | _ACEOF
|
---|
14124 |
|
---|
14125 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
14126 | #
|
---|
14127 | # INIT-COMMANDS section.
|
---|
14128 | #
|
---|
14129 |
|
---|
14130 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
---|
14131 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute
|
---|
14132 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
|
---|
14133 | # from automake.
|
---|
14134 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
|
---|
14135 | # Capture the value of LINGUAS because we need it to compute CATALOGS.
|
---|
14136 | LINGUAS="${LINGUAS-%UNSET%}"
|
---|
14137 |
|
---|
14138 |
|
---|
14139 | _ACEOF
|
---|
14140 |
|
---|
14141 |
|
---|
14142 |
|
---|
14143 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14144 | for ac_config_target in $ac_config_targets
|
---|
14145 | do
|
---|
14146 | case "$ac_config_target" in
|
---|
14147 | # Handling of arguments.
|
---|
14148 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
14149 | "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
|
---|
14150 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
|
---|
14151 | "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
|
---|
14152 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
---|
14153 | "build.sh" ) CONFIG_FILES="$CONFIG_FILES build.sh" ;;
|
---|
14154 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
14155 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
|
---|
14156 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
14157 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
14158 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
14159 | { (exit 1); exit 1; }; };;
|
---|
14160 | esac
|
---|
14161 | done
|
---|
14162 |
|
---|
14163 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
14164 | # then the envvar interface is used. Set only those that are not.
|
---|
14165 | # We use the long form for the default assignment because of an extremely
|
---|
14166 | # bizarre bug on SunOS 4.1.3.
|
---|
14167 | if $ac_need_defaults; then
|
---|
14168 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
14169 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
14170 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
14171 | fi
|
---|
14172 |
|
---|
14173 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
14174 | # simply because there is no reason to put it here, and in addition,
|
---|
14175 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
14176 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
14177 | $debug ||
|
---|
14178 | {
|
---|
14179 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
14180 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
14181 | }
|
---|
14182 |
|
---|
14183 | # Create a (secure) tmp directory for tmp files.
|
---|
14184 |
|
---|
14185 | {
|
---|
14186 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
14187 | test -n "$tmp" && test -d "$tmp"
|
---|
14188 | } ||
|
---|
14189 | {
|
---|
14190 | tmp=./confstat$$-$RANDOM
|
---|
14191 | (umask 077 && mkdir $tmp)
|
---|
14192 | } ||
|
---|
14193 | {
|
---|
14194 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
14195 | { (exit 1); exit 1; }
|
---|
14196 | }
|
---|
14197 |
|
---|
14198 | _ACEOF
|
---|
14199 |
|
---|
14200 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
14201 |
|
---|
14202 | #
|
---|
14203 | # CONFIG_FILES section.
|
---|
14204 | #
|
---|
14205 |
|
---|
14206 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
14207 | # This happens for instance when ./config.status config.h
|
---|
14208 | if test -n "\$CONFIG_FILES"; then
|
---|
14209 | # Protect against being on the right side of a sed subst in config.status.
|
---|
14210 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
14211 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
14212 | s,@SHELL@,$SHELL,;t t
|
---|
14213 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
14214 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
14215 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
14216 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
14217 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
14218 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
14219 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
14220 | s,@prefix@,$prefix,;t t
|
---|
14221 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
14222 | s,@bindir@,$bindir,;t t
|
---|
14223 | s,@sbindir@,$sbindir,;t t
|
---|
14224 | s,@libexecdir@,$libexecdir,;t t
|
---|
14225 | s,@datadir@,$datadir,;t t
|
---|
14226 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
14227 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
14228 | s,@localstatedir@,$localstatedir,;t t
|
---|
14229 | s,@libdir@,$libdir,;t t
|
---|
14230 | s,@includedir@,$includedir,;t t
|
---|
14231 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
14232 | s,@infodir@,$infodir,;t t
|
---|
14233 | s,@mandir@,$mandir,;t t
|
---|
14234 | s,@build_alias@,$build_alias,;t t
|
---|
14235 | s,@host_alias@,$host_alias,;t t
|
---|
14236 | s,@target_alias@,$target_alias,;t t
|
---|
14237 | s,@DEFS@,$DEFS,;t t
|
---|
14238 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
14239 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
14240 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
14241 | s,@LIBS@,$LIBS,;t t
|
---|
14242 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
14243 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
14244 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
14245 | s,@CYGPATH_W@,$CYGPATH_W,;t t
|
---|
14246 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
14247 | s,@VERSION@,$VERSION,;t t
|
---|
14248 | s,@ACLOCAL@,$ACLOCAL,;t t
|
---|
14249 | s,@AUTOCONF@,$AUTOCONF,;t t
|
---|
14250 | s,@AUTOMAKE@,$AUTOMAKE,;t t
|
---|
14251 | s,@AUTOHEADER@,$AUTOHEADER,;t t
|
---|
14252 | s,@MAKEINFO@,$MAKEINFO,;t t
|
---|
14253 | s,@AMTAR@,$AMTAR,;t t
|
---|
14254 | s,@install_sh@,$install_sh,;t t
|
---|
14255 | s,@STRIP@,$STRIP,;t t
|
---|
14256 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
---|
14257 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
|
---|
14258 | s,@mkdir_p@,$mkdir_p,;t t
|
---|
14259 | s,@AWK@,$AWK,;t t
|
---|
14260 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
14261 | s,@am__leading_dot@,$am__leading_dot,;t t
|
---|
14262 | s,@CC@,$CC,;t t
|
---|
14263 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
14264 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
14265 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
14266 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
14267 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
14268 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
14269 | s,@DEPDIR@,$DEPDIR,;t t
|
---|
14270 | s,@am__include@,$am__include,;t t
|
---|
14271 | s,@am__quote@,$am__quote,;t t
|
---|
14272 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
|
---|
14273 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
|
---|
14274 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
|
---|
14275 | s,@CCDEPMODE@,$CCDEPMODE,;t t
|
---|
14276 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
|
---|
14277 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
|
---|
14278 | s,@RANLIB@,$RANLIB,;t t
|
---|
14279 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
14280 | s,@CPP@,$CPP,;t t
|
---|
14281 | s,@AR@,$AR,;t t
|
---|
14282 | s,@PERL@,$PERL,;t t
|
---|
14283 | s,@build@,$build,;t t
|
---|
14284 | s,@build_cpu@,$build_cpu,;t t
|
---|
14285 | s,@build_vendor@,$build_vendor,;t t
|
---|
14286 | s,@build_os@,$build_os,;t t
|
---|
14287 | s,@host@,$host,;t t
|
---|
14288 | s,@host_cpu@,$host_cpu,;t t
|
---|
14289 | s,@host_vendor@,$host_vendor,;t t
|
---|
14290 | s,@host_os@,$host_os,;t t
|
---|
14291 | s,@EGREP@,$EGREP,;t t
|
---|
14292 | s,@U@,$U,;t t
|
---|
14293 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
14294 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
|
---|
14295 | s,@USE_NLS@,$USE_NLS,;t t
|
---|
14296 | s,@MSGFMT@,$MSGFMT,;t t
|
---|
14297 | s,@GMSGFMT@,$GMSGFMT,;t t
|
---|
14298 | s,@XGETTEXT@,$XGETTEXT,;t t
|
---|
14299 | s,@MSGMERGE@,$MSGMERGE,;t t
|
---|
14300 | s,@LIBICONV@,$LIBICONV,;t t
|
---|
14301 | s,@LTLIBICONV@,$LTLIBICONV,;t t
|
---|
14302 | s,@INTLLIBS@,$INTLLIBS,;t t
|
---|
14303 | s,@LIBINTL@,$LIBINTL,;t t
|
---|
14304 | s,@LTLIBINTL@,$LTLIBINTL,;t t
|
---|
14305 | s,@POSUB@,$POSUB,;t t
|
---|
14306 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
14307 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
14308 | s,@NEED_SETGID@,$NEED_SETGID,;t t
|
---|
14309 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t
|
---|
14310 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
|
---|
14311 | s,@REMOTE@,$REMOTE,;t t
|
---|
14312 | s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t
|
---|
14313 | s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t
|
---|
14314 | s,@GLOBINC@,$GLOBINC,;t t
|
---|
14315 | s,@GLOBLIB@,$GLOBLIB,;t t
|
---|
14316 | s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t
|
---|
14317 | s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t
|
---|
14318 | s,@MAKE_HOST@,$MAKE_HOST,;t t
|
---|
14319 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
14320 | /@MAINT_MAKEFILE@/r $MAINT_MAKEFILE
|
---|
14321 | s,@MAINT_MAKEFILE@,,;t t
|
---|
14322 | CEOF
|
---|
14323 |
|
---|
14324 | _ACEOF
|
---|
14325 |
|
---|
14326 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14327 | # Split the substitutions into bite-sized pieces for seds with
|
---|
14328 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
14329 | ac_max_sed_lines=48
|
---|
14330 | ac_sed_frag=1 # Number of current file.
|
---|
14331 | ac_beg=1 # First line for current file.
|
---|
14332 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
14333 | ac_more_lines=:
|
---|
14334 | ac_sed_cmds=
|
---|
14335 | while $ac_more_lines; do
|
---|
14336 | if test $ac_beg -gt 1; then
|
---|
14337 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
14338 | else
|
---|
14339 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
14340 | fi
|
---|
14341 | if test ! -s $tmp/subs.frag; then
|
---|
14342 | ac_more_lines=false
|
---|
14343 | else
|
---|
14344 | # The purpose of the label and of the branching condition is to
|
---|
14345 | # speed up the sed processing (if there are no `@' at all, there
|
---|
14346 | # is no need to browse any of the substitutions).
|
---|
14347 | # These are the two extra sed commands mentioned above.
|
---|
14348 | (echo ':t
|
---|
14349 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
14350 | if test -z "$ac_sed_cmds"; then
|
---|
14351 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
14352 | else
|
---|
14353 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
14354 | fi
|
---|
14355 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
14356 | ac_beg=$ac_end
|
---|
14357 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
14358 | fi
|
---|
14359 | done
|
---|
14360 | if test -z "$ac_sed_cmds"; then
|
---|
14361 | ac_sed_cmds=cat
|
---|
14362 | fi
|
---|
14363 | fi # test -n "$CONFIG_FILES"
|
---|
14364 |
|
---|
14365 | _ACEOF
|
---|
14366 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14367 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
14368 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
14369 | case $ac_file in
|
---|
14370 | - | *:- | *:-:* ) # input from stdin
|
---|
14371 | cat >$tmp/stdin
|
---|
14372 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
14373 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
14374 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
14375 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
14376 | * ) ac_file_in=$ac_file.in ;;
|
---|
14377 | esac
|
---|
14378 |
|
---|
14379 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
14380 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
14381 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14382 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
14383 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
14384 | X"$ac_file" : 'X\(/\)' \| \
|
---|
14385 | . : '\(.\)' 2>/dev/null ||
|
---|
14386 | echo X"$ac_file" |
|
---|
14387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14388 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14389 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14390 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14391 | s/.*/./; q'`
|
---|
14392 | { if $as_mkdir_p; then
|
---|
14393 | mkdir -p "$ac_dir"
|
---|
14394 | else
|
---|
14395 | as_dir="$ac_dir"
|
---|
14396 | as_dirs=
|
---|
14397 | while test ! -d "$as_dir"; do
|
---|
14398 | as_dirs="$as_dir $as_dirs"
|
---|
14399 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
14400 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14401 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
14402 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
14403 | X"$as_dir" : 'X\(/\)' \| \
|
---|
14404 | . : '\(.\)' 2>/dev/null ||
|
---|
14405 | echo X"$as_dir" |
|
---|
14406 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14407 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14408 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14409 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14410 | s/.*/./; q'`
|
---|
14411 | done
|
---|
14412 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
14413 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
14414 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
14415 | { (exit 1); exit 1; }; }; }
|
---|
14416 |
|
---|
14417 | ac_builddir=.
|
---|
14418 |
|
---|
14419 | if test "$ac_dir" != .; then
|
---|
14420 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
14421 | # A "../" for each directory in $ac_dir_suffix.
|
---|
14422 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
14423 | else
|
---|
14424 | ac_dir_suffix= ac_top_builddir=
|
---|
14425 | fi
|
---|
14426 |
|
---|
14427 | case $srcdir in
|
---|
14428 | .) # No --srcdir option. We are building in place.
|
---|
14429 | ac_srcdir=.
|
---|
14430 | if test -z "$ac_top_builddir"; then
|
---|
14431 | ac_top_srcdir=.
|
---|
14432 | else
|
---|
14433 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
14434 | fi ;;
|
---|
14435 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
14436 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
14437 | ac_top_srcdir=$srcdir ;;
|
---|
14438 | *) # Relative path.
|
---|
14439 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
14440 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
14441 | esac
|
---|
14442 |
|
---|
14443 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
14444 | # the directories may not exist.
|
---|
14445 | case `pwd` in
|
---|
14446 | .) ac_abs_builddir="$ac_dir";;
|
---|
14447 | *)
|
---|
14448 | case "$ac_dir" in
|
---|
14449 | .) ac_abs_builddir=`pwd`;;
|
---|
14450 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
14451 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
14452 | esac;;
|
---|
14453 | esac
|
---|
14454 | case $ac_abs_builddir in
|
---|
14455 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
14456 | *)
|
---|
14457 | case ${ac_top_builddir}. in
|
---|
14458 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
14459 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
14460 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
14461 | esac;;
|
---|
14462 | esac
|
---|
14463 | case $ac_abs_builddir in
|
---|
14464 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
14465 | *)
|
---|
14466 | case $ac_srcdir in
|
---|
14467 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
14468 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
14469 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
14470 | esac;;
|
---|
14471 | esac
|
---|
14472 | case $ac_abs_builddir in
|
---|
14473 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
14474 | *)
|
---|
14475 | case $ac_top_srcdir in
|
---|
14476 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
14477 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
14478 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
14479 | esac;;
|
---|
14480 | esac
|
---|
14481 |
|
---|
14482 |
|
---|
14483 | case $INSTALL in
|
---|
14484 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
14485 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
14486 | esac
|
---|
14487 |
|
---|
14488 | if test x"$ac_file" != x-; then
|
---|
14489 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
14490 | echo "$as_me: creating $ac_file" >&6;}
|
---|
14491 | rm -f "$ac_file"
|
---|
14492 | fi
|
---|
14493 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
14494 | # use $as_me), people would be surprised to read:
|
---|
14495 | # /* config.h. Generated by config.status. */
|
---|
14496 | if test x"$ac_file" = x-; then
|
---|
14497 | configure_input=
|
---|
14498 | else
|
---|
14499 | configure_input="$ac_file. "
|
---|
14500 | fi
|
---|
14501 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
14502 | sed 's,.*/,,'` by configure."
|
---|
14503 |
|
---|
14504 | # First look for the input files in the build tree, otherwise in the
|
---|
14505 | # src tree.
|
---|
14506 | ac_file_inputs=`IFS=:
|
---|
14507 | for f in $ac_file_in; do
|
---|
14508 | case $f in
|
---|
14509 | -) echo $tmp/stdin ;;
|
---|
14510 | [\\/$]*)
|
---|
14511 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
14512 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
14513 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
14514 | { (exit 1); exit 1; }; }
|
---|
14515 | echo "$f";;
|
---|
14516 | *) # Relative
|
---|
14517 | if test -f "$f"; then
|
---|
14518 | # Build tree
|
---|
14519 | echo "$f"
|
---|
14520 | elif test -f "$srcdir/$f"; then
|
---|
14521 | # Source tree
|
---|
14522 | echo "$srcdir/$f"
|
---|
14523 | else
|
---|
14524 | # /dev/null tree
|
---|
14525 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
14526 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
14527 | { (exit 1); exit 1; }; }
|
---|
14528 | fi;;
|
---|
14529 | esac
|
---|
14530 | done` || { (exit 1); exit 1; }
|
---|
14531 | _ACEOF
|
---|
14532 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
14533 | sed "$ac_vpsub
|
---|
14534 | $extrasub
|
---|
14535 | _ACEOF
|
---|
14536 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14537 | :t
|
---|
14538 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
14539 | s,@configure_input@,$configure_input,;t t
|
---|
14540 | s,@srcdir@,$ac_srcdir,;t t
|
---|
14541 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
14542 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
14543 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
14544 | s,@builddir@,$ac_builddir,;t t
|
---|
14545 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
14546 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
14547 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
14548 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
14549 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
14550 | rm -f $tmp/stdin
|
---|
14551 | if test x"$ac_file" != x-; then
|
---|
14552 | mv $tmp/out $ac_file
|
---|
14553 | else
|
---|
14554 | cat $tmp/out
|
---|
14555 | rm -f $tmp/out
|
---|
14556 | fi
|
---|
14557 |
|
---|
14558 | done
|
---|
14559 | _ACEOF
|
---|
14560 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14561 |
|
---|
14562 | #
|
---|
14563 | # CONFIG_HEADER section.
|
---|
14564 | #
|
---|
14565 |
|
---|
14566 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
14567 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
14568 | #
|
---|
14569 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
14570 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
14571 | ac_dB='[ ].*$,\1#\2'
|
---|
14572 | ac_dC=' '
|
---|
14573 | ac_dD=',;t'
|
---|
14574 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
14575 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
14576 | ac_uB='$,\1#\2define\3'
|
---|
14577 | ac_uC=' '
|
---|
14578 | ac_uD=',;t'
|
---|
14579 |
|
---|
14580 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
14581 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
14582 | case $ac_file in
|
---|
14583 | - | *:- | *:-:* ) # input from stdin
|
---|
14584 | cat >$tmp/stdin
|
---|
14585 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
14586 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
14587 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
14588 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
14589 | * ) ac_file_in=$ac_file.in ;;
|
---|
14590 | esac
|
---|
14591 |
|
---|
14592 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
14593 | echo "$as_me: creating $ac_file" >&6;}
|
---|
14594 |
|
---|
14595 | # First look for the input files in the build tree, otherwise in the
|
---|
14596 | # src tree.
|
---|
14597 | ac_file_inputs=`IFS=:
|
---|
14598 | for f in $ac_file_in; do
|
---|
14599 | case $f in
|
---|
14600 | -) echo $tmp/stdin ;;
|
---|
14601 | [\\/$]*)
|
---|
14602 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
14603 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
14604 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
14605 | { (exit 1); exit 1; }; }
|
---|
14606 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
14607 | echo "$f";;
|
---|
14608 | *) # Relative
|
---|
14609 | if test -f "$f"; then
|
---|
14610 | # Build tree
|
---|
14611 | echo "$f"
|
---|
14612 | elif test -f "$srcdir/$f"; then
|
---|
14613 | # Source tree
|
---|
14614 | echo "$srcdir/$f"
|
---|
14615 | else
|
---|
14616 | # /dev/null tree
|
---|
14617 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
14618 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
14619 | { (exit 1); exit 1; }; }
|
---|
14620 | fi;;
|
---|
14621 | esac
|
---|
14622 | done` || { (exit 1); exit 1; }
|
---|
14623 | # Remove the trailing spaces.
|
---|
14624 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
14625 |
|
---|
14626 | _ACEOF
|
---|
14627 |
|
---|
14628 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
14629 | # `conftest.undefs', that substitutes the proper values into
|
---|
14630 | # config.h.in to produce config.h. The first handles `#define'
|
---|
14631 | # templates, and the second `#undef' templates.
|
---|
14632 | # And first: Protect against being on the right side of a sed subst in
|
---|
14633 | # config.status. Protect against being in an unquoted here document
|
---|
14634 | # in config.status.
|
---|
14635 | rm -f conftest.defines conftest.undefs
|
---|
14636 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
14637 | # Putting comments in sed scripts is not portable.
|
---|
14638 | #
|
---|
14639 | # `end' is used to avoid that the second main sed command (meant for
|
---|
14640 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
14641 | # See the Autoconf documentation for `clear'.
|
---|
14642 | cat >confdef2sed.sed <<\_ACEOF
|
---|
14643 | s/[\\&,]/\\&/g
|
---|
14644 | s,[\\$`],\\&,g
|
---|
14645 | t clear
|
---|
14646 | : clear
|
---|
14647 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
14648 | t end
|
---|
14649 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
14650 | : end
|
---|
14651 | _ACEOF
|
---|
14652 | # If some macros were called several times there might be several times
|
---|
14653 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
14654 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
14655 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
14656 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
14657 | rm -f confdef2sed.sed
|
---|
14658 |
|
---|
14659 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
14660 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
14661 | # on some systems where configure will not decide to define it.
|
---|
14662 | cat >>conftest.undefs <<\_ACEOF
|
---|
14663 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
14664 | _ACEOF
|
---|
14665 |
|
---|
14666 | # Break up conftest.defines because some shells have a limit on the size
|
---|
14667 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
14668 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
14669 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
14670 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
14671 | echo ' :' >>$CONFIG_STATUS
|
---|
14672 | rm -f conftest.tail
|
---|
14673 | while grep . conftest.defines >/dev/null
|
---|
14674 | do
|
---|
14675 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
14676 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
14677 | # Speed up: don't consider the non `#define' lines.
|
---|
14678 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
14679 | # Work around the forget-to-reset-the-flag bug.
|
---|
14680 | echo 't clr' >>$CONFIG_STATUS
|
---|
14681 | echo ': clr' >>$CONFIG_STATUS
|
---|
14682 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
14683 | echo 'CEOF
|
---|
14684 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
14685 | rm -f $tmp/in
|
---|
14686 | mv $tmp/out $tmp/in
|
---|
14687 | ' >>$CONFIG_STATUS
|
---|
14688 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
14689 | rm -f conftest.defines
|
---|
14690 | mv conftest.tail conftest.defines
|
---|
14691 | done
|
---|
14692 | rm -f conftest.defines
|
---|
14693 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
14694 | echo >>$CONFIG_STATUS
|
---|
14695 |
|
---|
14696 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
14697 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
14698 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
14699 | rm -f conftest.tail
|
---|
14700 | while grep . conftest.undefs >/dev/null
|
---|
14701 | do
|
---|
14702 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
14703 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
14704 | # Speed up: don't consider the non `#undef'
|
---|
14705 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
14706 | # Work around the forget-to-reset-the-flag bug.
|
---|
14707 | echo 't clr' >>$CONFIG_STATUS
|
---|
14708 | echo ': clr' >>$CONFIG_STATUS
|
---|
14709 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
14710 | echo 'CEOF
|
---|
14711 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
14712 | rm -f $tmp/in
|
---|
14713 | mv $tmp/out $tmp/in
|
---|
14714 | ' >>$CONFIG_STATUS
|
---|
14715 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
14716 | rm -f conftest.undefs
|
---|
14717 | mv conftest.tail conftest.undefs
|
---|
14718 | done
|
---|
14719 | rm -f conftest.undefs
|
---|
14720 |
|
---|
14721 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14722 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
14723 | # use $as_me), people would be surprised to read:
|
---|
14724 | # /* config.h. Generated by config.status. */
|
---|
14725 | if test x"$ac_file" = x-; then
|
---|
14726 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
14727 | else
|
---|
14728 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
14729 | fi
|
---|
14730 | cat $tmp/in >>$tmp/config.h
|
---|
14731 | rm -f $tmp/in
|
---|
14732 | if test x"$ac_file" != x-; then
|
---|
14733 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
14734 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
14735 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
14736 | else
|
---|
14737 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
14738 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14739 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
14740 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
14741 | X"$ac_file" : 'X\(/\)' \| \
|
---|
14742 | . : '\(.\)' 2>/dev/null ||
|
---|
14743 | echo X"$ac_file" |
|
---|
14744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14745 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14746 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14747 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14748 | s/.*/./; q'`
|
---|
14749 | { if $as_mkdir_p; then
|
---|
14750 | mkdir -p "$ac_dir"
|
---|
14751 | else
|
---|
14752 | as_dir="$ac_dir"
|
---|
14753 | as_dirs=
|
---|
14754 | while test ! -d "$as_dir"; do
|
---|
14755 | as_dirs="$as_dir $as_dirs"
|
---|
14756 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
14757 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14758 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
14759 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
14760 | X"$as_dir" : 'X\(/\)' \| \
|
---|
14761 | . : '\(.\)' 2>/dev/null ||
|
---|
14762 | echo X"$as_dir" |
|
---|
14763 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14764 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14765 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14766 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14767 | s/.*/./; q'`
|
---|
14768 | done
|
---|
14769 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
14770 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
14771 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
14772 | { (exit 1); exit 1; }; }; }
|
---|
14773 |
|
---|
14774 | rm -f $ac_file
|
---|
14775 | mv $tmp/config.h $ac_file
|
---|
14776 | fi
|
---|
14777 | else
|
---|
14778 | cat $tmp/config.h
|
---|
14779 | rm -f $tmp/config.h
|
---|
14780 | fi
|
---|
14781 | # Compute $ac_file's index in $config_headers.
|
---|
14782 | _am_stamp_count=1
|
---|
14783 | for _am_header in $config_headers :; do
|
---|
14784 | case $_am_header in
|
---|
14785 | $ac_file | $ac_file:* )
|
---|
14786 | break ;;
|
---|
14787 | * )
|
---|
14788 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
---|
14789 | esac
|
---|
14790 | done
|
---|
14791 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
|
---|
14792 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14793 | X$ac_file : 'X\(//\)[^/]' \| \
|
---|
14794 | X$ac_file : 'X\(//\)$' \| \
|
---|
14795 | X$ac_file : 'X\(/\)' \| \
|
---|
14796 | . : '\(.\)' 2>/dev/null ||
|
---|
14797 | echo X$ac_file |
|
---|
14798 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14799 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14800 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14801 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14802 | s/.*/./; q'`/stamp-h$_am_stamp_count
|
---|
14803 | done
|
---|
14804 | _ACEOF
|
---|
14805 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
14806 |
|
---|
14807 | #
|
---|
14808 | # CONFIG_COMMANDS section.
|
---|
14809 | #
|
---|
14810 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
14811 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
14812 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
14813 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
14814 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14815 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
14816 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
14817 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
14818 | . : '\(.\)' 2>/dev/null ||
|
---|
14819 | echo X"$ac_dest" |
|
---|
14820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14821 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14822 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14823 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14824 | s/.*/./; q'`
|
---|
14825 | { if $as_mkdir_p; then
|
---|
14826 | mkdir -p "$ac_dir"
|
---|
14827 | else
|
---|
14828 | as_dir="$ac_dir"
|
---|
14829 | as_dirs=
|
---|
14830 | while test ! -d "$as_dir"; do
|
---|
14831 | as_dirs="$as_dir $as_dirs"
|
---|
14832 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
14833 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14834 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
14835 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
14836 | X"$as_dir" : 'X\(/\)' \| \
|
---|
14837 | . : '\(.\)' 2>/dev/null ||
|
---|
14838 | echo X"$as_dir" |
|
---|
14839 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14840 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14841 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14842 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14843 | s/.*/./; q'`
|
---|
14844 | done
|
---|
14845 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
14846 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
14847 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
14848 | { (exit 1); exit 1; }; }; }
|
---|
14849 |
|
---|
14850 | ac_builddir=.
|
---|
14851 |
|
---|
14852 | if test "$ac_dir" != .; then
|
---|
14853 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
14854 | # A "../" for each directory in $ac_dir_suffix.
|
---|
14855 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
14856 | else
|
---|
14857 | ac_dir_suffix= ac_top_builddir=
|
---|
14858 | fi
|
---|
14859 |
|
---|
14860 | case $srcdir in
|
---|
14861 | .) # No --srcdir option. We are building in place.
|
---|
14862 | ac_srcdir=.
|
---|
14863 | if test -z "$ac_top_builddir"; then
|
---|
14864 | ac_top_srcdir=.
|
---|
14865 | else
|
---|
14866 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
14867 | fi ;;
|
---|
14868 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
14869 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
14870 | ac_top_srcdir=$srcdir ;;
|
---|
14871 | *) # Relative path.
|
---|
14872 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
14873 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
14874 | esac
|
---|
14875 |
|
---|
14876 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
14877 | # the directories may not exist.
|
---|
14878 | case `pwd` in
|
---|
14879 | .) ac_abs_builddir="$ac_dir";;
|
---|
14880 | *)
|
---|
14881 | case "$ac_dir" in
|
---|
14882 | .) ac_abs_builddir=`pwd`;;
|
---|
14883 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
14884 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
14885 | esac;;
|
---|
14886 | esac
|
---|
14887 | case $ac_abs_builddir in
|
---|
14888 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
14889 | *)
|
---|
14890 | case ${ac_top_builddir}. in
|
---|
14891 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
14892 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
14893 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
14894 | esac;;
|
---|
14895 | esac
|
---|
14896 | case $ac_abs_builddir in
|
---|
14897 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
14898 | *)
|
---|
14899 | case $ac_srcdir in
|
---|
14900 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
14901 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
14902 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
14903 | esac;;
|
---|
14904 | esac
|
---|
14905 | case $ac_abs_builddir in
|
---|
14906 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
14907 | *)
|
---|
14908 | case $ac_top_srcdir in
|
---|
14909 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
14910 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
14911 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
14912 | esac;;
|
---|
14913 | esac
|
---|
14914 |
|
---|
14915 |
|
---|
14916 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
14917 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
14918 | case $ac_dest in
|
---|
14919 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
---|
14920 | # Strip MF so we end up with the name of the file.
|
---|
14921 | mf=`echo "$mf" | sed -e 's/:.*$//'`
|
---|
14922 | # Check whether this is an Automake generated Makefile or not.
|
---|
14923 | # We used to match only the files named `Makefile.in', but
|
---|
14924 | # some people rename them; so instead we look at the file content.
|
---|
14925 | # Grep'ing the first line is not enough: some people post-process
|
---|
14926 | # each Makefile.in and add a new line on top of each file to say so.
|
---|
14927 | # So let's grep whole file.
|
---|
14928 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
---|
14929 | dirpart=`(dirname "$mf") 2>/dev/null ||
|
---|
14930 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14931 | X"$mf" : 'X\(//\)[^/]' \| \
|
---|
14932 | X"$mf" : 'X\(//\)$' \| \
|
---|
14933 | X"$mf" : 'X\(/\)' \| \
|
---|
14934 | . : '\(.\)' 2>/dev/null ||
|
---|
14935 | echo X"$mf" |
|
---|
14936 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14937 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14938 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14939 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14940 | s/.*/./; q'`
|
---|
14941 | else
|
---|
14942 | continue
|
---|
14943 | fi
|
---|
14944 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
|
---|
14945 | # Extract the definition of DEP_FILES from the Makefile without
|
---|
14946 | # running `make'.
|
---|
14947 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
---|
14948 | test -z "$DEPDIR" && continue
|
---|
14949 | # When using ansi2knr, U may be empty or an underscore; expand it
|
---|
14950 | U=`sed -n 's/^U = //p' < "$mf"`
|
---|
14951 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
|
---|
14952 | # We invoke sed twice because it is the simplest approach to
|
---|
14953 | # changing $(DEPDIR) to its actual value in the expansion.
|
---|
14954 | for file in `sed -n '
|
---|
14955 | /^DEP_FILES = .*\\\\$/ {
|
---|
14956 | s/^DEP_FILES = //
|
---|
14957 | :loop
|
---|
14958 | s/\\\\$//
|
---|
14959 | p
|
---|
14960 | n
|
---|
14961 | /\\\\$/ b loop
|
---|
14962 | p
|
---|
14963 | }
|
---|
14964 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
|
---|
14965 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
---|
14966 | # Make sure the directory exists.
|
---|
14967 | test -f "$dirpart/$file" && continue
|
---|
14968 | fdir=`(dirname "$file") 2>/dev/null ||
|
---|
14969 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14970 | X"$file" : 'X\(//\)[^/]' \| \
|
---|
14971 | X"$file" : 'X\(//\)$' \| \
|
---|
14972 | X"$file" : 'X\(/\)' \| \
|
---|
14973 | . : '\(.\)' 2>/dev/null ||
|
---|
14974 | echo X"$file" |
|
---|
14975 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14976 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14977 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14978 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14979 | s/.*/./; q'`
|
---|
14980 | { if $as_mkdir_p; then
|
---|
14981 | mkdir -p $dirpart/$fdir
|
---|
14982 | else
|
---|
14983 | as_dir=$dirpart/$fdir
|
---|
14984 | as_dirs=
|
---|
14985 | while test ! -d "$as_dir"; do
|
---|
14986 | as_dirs="$as_dir $as_dirs"
|
---|
14987 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
14988 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14989 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
14990 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
14991 | X"$as_dir" : 'X\(/\)' \| \
|
---|
14992 | . : '\(.\)' 2>/dev/null ||
|
---|
14993 | echo X"$as_dir" |
|
---|
14994 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
14995 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
14996 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
14997 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
14998 | s/.*/./; q'`
|
---|
14999 | done
|
---|
15000 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
15001 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
|
---|
15002 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
|
---|
15003 | { (exit 1); exit 1; }; }; }
|
---|
15004 |
|
---|
15005 | # echo "creating $dirpart/$file"
|
---|
15006 | echo '# dummy' > "$dirpart/$file"
|
---|
15007 | done
|
---|
15008 | done
|
---|
15009 | ;;
|
---|
15010 | default-1 )
|
---|
15011 | for ac_file in $CONFIG_FILES; do
|
---|
15012 | # Support "outfile[:infile[:infile...]]"
|
---|
15013 | case "$ac_file" in
|
---|
15014 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
15015 | esac
|
---|
15016 | # PO directories have a Makefile.in generated from Makefile.in.in.
|
---|
15017 | case "$ac_file" in */Makefile.in)
|
---|
15018 | # Adjust a relative srcdir.
|
---|
15019 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
---|
15020 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
|
---|
15021 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
---|
15022 | # In autoconf-2.13 it is called $ac_given_srcdir.
|
---|
15023 | # In autoconf-2.50 it is called $srcdir.
|
---|
15024 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
---|
15025 | case "$ac_given_srcdir" in
|
---|
15026 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
---|
15027 | /*) top_srcdir="$ac_given_srcdir" ;;
|
---|
15028 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
15029 | esac
|
---|
15030 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
|
---|
15031 | rm -f "$ac_dir/POTFILES"
|
---|
15032 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
|
---|
15033 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
|
---|
15034 | POMAKEFILEDEPS="POTFILES.in"
|
---|
15035 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
|
---|
15036 | # on $ac_dir but don't depend on user-specified configuration
|
---|
15037 | # parameters.
|
---|
15038 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
---|
15039 | # The LINGUAS file contains the set of available languages.
|
---|
15040 | if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
---|
15041 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
---|
15042 | fi
|
---|
15043 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
---|
15044 | # Hide the ALL_LINGUAS assigment from automake.
|
---|
15045 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
---|
15046 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
---|
15047 | else
|
---|
15048 | # The set of available languages was given in configure.in.
|
---|
15049 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
|
---|
15050 | fi
|
---|
15051 | case "$ac_given_srcdir" in
|
---|
15052 | .) srcdirpre= ;;
|
---|
15053 | *) srcdirpre='$(srcdir)/' ;;
|
---|
15054 | esac
|
---|
15055 | POFILES=
|
---|
15056 | GMOFILES=
|
---|
15057 | UPDATEPOFILES=
|
---|
15058 | DUMMYPOFILES=
|
---|
15059 | for lang in $ALL_LINGUAS; do
|
---|
15060 | POFILES="$POFILES $srcdirpre$lang.po"
|
---|
15061 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
---|
15062 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
---|
15063 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
---|
15064 | done
|
---|
15065 | # CATALOGS depends on both $ac_dir and the user's LINGUAS
|
---|
15066 | # environment variable.
|
---|
15067 | INST_LINGUAS=
|
---|
15068 | if test -n "$ALL_LINGUAS"; then
|
---|
15069 | for presentlang in $ALL_LINGUAS; do
|
---|
15070 | useit=no
|
---|
15071 | if test "%UNSET%" != "$LINGUAS"; then
|
---|
15072 | desiredlanguages="$LINGUAS"
|
---|
15073 | else
|
---|
15074 | desiredlanguages="$ALL_LINGUAS"
|
---|
15075 | fi
|
---|
15076 | for desiredlang in $desiredlanguages; do
|
---|
15077 | # Use the presentlang catalog if desiredlang is
|
---|
15078 | # a. equal to presentlang, or
|
---|
15079 | # b. a variant of presentlang (because in this case,
|
---|
15080 | # presentlang can be used as a fallback for messages
|
---|
15081 | # which are not translated in the desiredlang catalog).
|
---|
15082 | case "$desiredlang" in
|
---|
15083 | "$presentlang"*) useit=yes;;
|
---|
15084 | esac
|
---|
15085 | done
|
---|
15086 | if test $useit = yes; then
|
---|
15087 | INST_LINGUAS="$INST_LINGUAS $presentlang"
|
---|
15088 | fi
|
---|
15089 | done
|
---|
15090 | fi
|
---|
15091 | CATALOGS=
|
---|
15092 | if test -n "$INST_LINGUAS"; then
|
---|
15093 | for lang in $INST_LINGUAS; do
|
---|
15094 | CATALOGS="$CATALOGS $lang.gmo"
|
---|
15095 | done
|
---|
15096 | fi
|
---|
15097 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
|
---|
15098 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
|
---|
15099 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
|
---|
15100 | if test -f "$f"; then
|
---|
15101 | case "$f" in
|
---|
15102 | *.orig | *.bak | *~) ;;
|
---|
15103 | *) cat "$f" >> "$ac_dir/Makefile" ;;
|
---|
15104 | esac
|
---|
15105 | fi
|
---|
15106 | done
|
---|
15107 | fi
|
---|
15108 | ;;
|
---|
15109 | esac
|
---|
15110 | done ;;
|
---|
15111 | esac
|
---|
15112 | done
|
---|
15113 | _ACEOF
|
---|
15114 |
|
---|
15115 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
15116 |
|
---|
15117 | { (exit 0); exit 0; }
|
---|
15118 | _ACEOF
|
---|
15119 | chmod +x $CONFIG_STATUS
|
---|
15120 | ac_clean_files=$ac_clean_files_save
|
---|
15121 |
|
---|
15122 |
|
---|
15123 | # configure is writing to config.log, and then calls config.status.
|
---|
15124 | # config.status does its own redirection, appending to config.log.
|
---|
15125 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
15126 | # by configure, so config.status won't be able to write to it; its
|
---|
15127 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
15128 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
15129 | # appended to by config.status. When coming back to configure, we
|
---|
15130 | # need to make the FD available again.
|
---|
15131 | if test "$no_create" != yes; then
|
---|
15132 | ac_cs_success=:
|
---|
15133 | ac_config_status_args=
|
---|
15134 | test "$silent" = yes &&
|
---|
15135 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
15136 | exec 5>/dev/null
|
---|
15137 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
15138 | exec 5>>config.log
|
---|
15139 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
15140 | # would make configure fail if this is the last instruction.
|
---|
15141 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
15142 | fi
|
---|
15143 |
|
---|
15144 |
|
---|
15145 |
|
---|