1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.59.
|
---|
4 | #
|
---|
5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
6 | # This configure script is free software; the Free Software Foundation
|
---|
7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
8 | ## --------------------- ##
|
---|
9 | ## M4sh Initialization. ##
|
---|
10 | ## --------------------- ##
|
---|
11 |
|
---|
12 | # Be Bourne compatible
|
---|
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
14 | emulate sh
|
---|
15 | NULLCMD=:
|
---|
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
17 | # is contrary to our usage. Disable this feature.
|
---|
18 | alias -g '${1+"$@"}'='"$@"'
|
---|
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
20 | set -o posix
|
---|
21 | fi
|
---|
22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
23 |
|
---|
24 | # Support unset when possible.
|
---|
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
26 | as_unset=unset
|
---|
27 | else
|
---|
28 | as_unset=false
|
---|
29 | fi
|
---|
30 |
|
---|
31 |
|
---|
32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
33 | $as_unset ENV MAIL MAILPATH
|
---|
34 | PS1='$ '
|
---|
35 | PS2='> '
|
---|
36 | PS4='+ '
|
---|
37 |
|
---|
38 | # NLS nuisances.
|
---|
39 | for as_var in \
|
---|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
42 | LC_TELEPHONE LC_TIME
|
---|
43 | do
|
---|
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
45 | eval $as_var=C; export $as_var
|
---|
46 | else
|
---|
47 | $as_unset $as_var
|
---|
48 | fi
|
---|
49 | done
|
---|
50 |
|
---|
51 | # Required to use basename.
|
---|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
53 | as_expr=expr
|
---|
54 | else
|
---|
55 | as_expr=false
|
---|
56 | fi
|
---|
57 |
|
---|
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
59 | as_basename=basename
|
---|
60 | else
|
---|
61 | as_basename=false
|
---|
62 | fi
|
---|
63 |
|
---|
64 |
|
---|
65 | # Name of the executable.
|
---|
66 | as_me=`$as_basename "$0" ||
|
---|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
68 | X"$0" : 'X\(//\)$' \| \
|
---|
69 | X"$0" : 'X\(/\)$' \| \
|
---|
70 | . : '\(.\)' 2>/dev/null ||
|
---|
71 | echo X/"$0" |
|
---|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
75 | s/.*/./; q'`
|
---|
76 |
|
---|
77 |
|
---|
78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
79 | # Avoid depending upon Character Ranges.
|
---|
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
83 | as_cr_digits='0123456789'
|
---|
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
85 |
|
---|
86 | # The user is always right.
|
---|
87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
88 | echo "#! /bin/sh" >conf$$.sh
|
---|
89 | echo "exit 0" >>conf$$.sh
|
---|
90 | chmod +x conf$$.sh
|
---|
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
92 | PATH_SEPARATOR=';'
|
---|
93 | else
|
---|
94 | PATH_SEPARATOR=:
|
---|
95 | fi
|
---|
96 | rm -f conf$$.sh
|
---|
97 | fi
|
---|
98 |
|
---|
99 |
|
---|
100 | as_lineno_1=$LINENO
|
---|
101 | as_lineno_2=$LINENO
|
---|
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
105 | # Find who we are. Look in the path if we contain no path at all
|
---|
106 | # relative or not.
|
---|
107 | case $0 in
|
---|
108 | *[\\/]* ) as_myself=$0 ;;
|
---|
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
110 | for as_dir in $PATH
|
---|
111 | do
|
---|
112 | IFS=$as_save_IFS
|
---|
113 | test -z "$as_dir" && as_dir=.
|
---|
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
115 | done
|
---|
116 |
|
---|
117 | ;;
|
---|
118 | esac
|
---|
119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
120 | # in which case we are not to be found in the path.
|
---|
121 | if test "x$as_myself" = x; then
|
---|
122 | as_myself=$0
|
---|
123 | fi
|
---|
124 | if test ! -f "$as_myself"; then
|
---|
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
126 | { (exit 1); exit 1; }; }
|
---|
127 | fi
|
---|
128 | case $CONFIG_SHELL in
|
---|
129 | '')
|
---|
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
132 | do
|
---|
133 | IFS=$as_save_IFS
|
---|
134 | test -z "$as_dir" && as_dir=.
|
---|
135 | for as_base in sh bash ksh sh5; do
|
---|
136 | case $as_dir in
|
---|
137 | /*)
|
---|
138 | if ("$as_dir/$as_base" -c '
|
---|
139 | as_lineno_1=$LINENO
|
---|
140 | as_lineno_2=$LINENO
|
---|
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
147 | export CONFIG_SHELL
|
---|
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
149 | fi;;
|
---|
150 | esac
|
---|
151 | done
|
---|
152 | done
|
---|
153 | ;;
|
---|
154 | esac
|
---|
155 |
|
---|
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
158 | # line-number line before each line; the second 'sed' does the real
|
---|
159 | # work. The second script uses 'N' to pair each line-number line
|
---|
160 | # with the numbered line, and appends trailing '-' during
|
---|
161 | # substitution so that $LINENO is not a special case at line end.
|
---|
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
164 | sed '=' <$as_myself |
|
---|
165 | sed '
|
---|
166 | N
|
---|
167 | s,$,-,
|
---|
168 | : loop
|
---|
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
170 | t loop
|
---|
171 | s,-$,,
|
---|
172 | s,^['$as_cr_digits']*\n,,
|
---|
173 | ' >$as_me.lineno &&
|
---|
174 | chmod +x $as_me.lineno ||
|
---|
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
176 | { (exit 1); exit 1; }; }
|
---|
177 |
|
---|
178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
179 | # (the dirname of $[0] is not the place where we might find the
|
---|
180 | # original and so on. Autoconf is especially sensible to this).
|
---|
181 | . ./$as_me.lineno
|
---|
182 | # Exit status is that of the last command.
|
---|
183 | exit
|
---|
184 | }
|
---|
185 |
|
---|
186 |
|
---|
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
189 | ' ECHO_T=' ' ;;
|
---|
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
192 | esac
|
---|
193 |
|
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
195 | as_expr=expr
|
---|
196 | else
|
---|
197 | as_expr=false
|
---|
198 | fi
|
---|
199 |
|
---|
200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
201 | echo >conf$$.file
|
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
205 | if test -f conf$$.exe; then
|
---|
206 | # Don't use ln at all; we don't have any links
|
---|
207 | as_ln_s='cp -p'
|
---|
208 | else
|
---|
209 | as_ln_s='ln -s'
|
---|
210 | fi
|
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
212 | as_ln_s=ln
|
---|
213 | else
|
---|
214 | as_ln_s='cp -p'
|
---|
215 | fi
|
---|
216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
217 |
|
---|
218 | if mkdir -p . 2>/dev/null; then
|
---|
219 | as_mkdir_p=:
|
---|
220 | else
|
---|
221 | test -d ./-p && rmdir ./-p
|
---|
222 | as_mkdir_p=false
|
---|
223 | fi
|
---|
224 |
|
---|
225 | as_executable_p="test -f"
|
---|
226 |
|
---|
227 | # Sed expression to map a string onto a valid CPP name.
|
---|
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
229 |
|
---|
230 | # Sed expression to map a string onto a valid variable name.
|
---|
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
232 |
|
---|
233 |
|
---|
234 | # IFS
|
---|
235 | # We need space, tab and new line, in precisely that order.
|
---|
236 | as_nl='
|
---|
237 | '
|
---|
238 | IFS=" $as_nl"
|
---|
239 |
|
---|
240 | # CDPATH.
|
---|
241 | $as_unset CDPATH
|
---|
242 |
|
---|
243 |
|
---|
244 | # Name of the host.
|
---|
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
246 | # so uname gets run too.
|
---|
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
248 |
|
---|
249 | exec 6>&1
|
---|
250 |
|
---|
251 | #
|
---|
252 | # Initializations.
|
---|
253 | #
|
---|
254 | ac_default_prefix=/usr/local
|
---|
255 | ac_config_libobj_dir=.
|
---|
256 | cross_compiling=no
|
---|
257 | subdirs=
|
---|
258 | MFLAGS=
|
---|
259 | MAKEFLAGS=
|
---|
260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
261 |
|
---|
262 | # Maximum number of lines to put in a shell here document.
|
---|
263 | # This variable seems obsolete. It should probably be removed, and
|
---|
264 | # only ac_max_sed_lines should be used.
|
---|
265 | : ${ac_max_here_lines=38}
|
---|
266 |
|
---|
267 | # Identity of this package.
|
---|
268 | PACKAGE_NAME=
|
---|
269 | PACKAGE_TARNAME=
|
---|
270 | PACKAGE_VERSION=
|
---|
271 | PACKAGE_STRING=
|
---|
272 | PACKAGE_BUGREPORT=
|
---|
273 |
|
---|
274 | # Factoring default headers for most tests.
|
---|
275 | ac_includes_default="\
|
---|
276 | #include <stdio.h>
|
---|
277 | #if HAVE_SYS_TYPES_H
|
---|
278 | # include <sys/types.h>
|
---|
279 | #endif
|
---|
280 | #if HAVE_SYS_STAT_H
|
---|
281 | # include <sys/stat.h>
|
---|
282 | #endif
|
---|
283 | #if STDC_HEADERS
|
---|
284 | # include <stdlib.h>
|
---|
285 | # include <stddef.h>
|
---|
286 | #else
|
---|
287 | # if HAVE_STDLIB_H
|
---|
288 | # include <stdlib.h>
|
---|
289 | # endif
|
---|
290 | #endif
|
---|
291 | #if HAVE_STRING_H
|
---|
292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
293 | # include <memory.h>
|
---|
294 | # endif
|
---|
295 | # include <string.h>
|
---|
296 | #endif
|
---|
297 | #if HAVE_STRINGS_H
|
---|
298 | # include <strings.h>
|
---|
299 | #endif
|
---|
300 | #if HAVE_INTTYPES_H
|
---|
301 | # include <inttypes.h>
|
---|
302 | #else
|
---|
303 | # if HAVE_STDINT_H
|
---|
304 | # include <stdint.h>
|
---|
305 | # endif
|
---|
306 | #endif
|
---|
307 | #if HAVE_UNISTD_H
|
---|
308 | # include <unistd.h>
|
---|
309 | #endif"
|
---|
310 |
|
---|
311 | ac_subdirs_all="$ac_subdirs_all common-src"
|
---|
312 | ac_subdirs_all="$ac_subdirs_all build-src"
|
---|
313 | ac_subdirs_all="$ac_subdirs_all runtime-src"
|
---|
314 | 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 PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_JDBM USE_SQLITE USE_APACHE_HTTPD ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
315 | ac_subst_files=''
|
---|
316 |
|
---|
317 | # Initialize some variables set by options.
|
---|
318 | ac_init_help=
|
---|
319 | ac_init_version=false
|
---|
320 | # The variables have the same names as the options, with
|
---|
321 | # dashes changed to underlines.
|
---|
322 | cache_file=/dev/null
|
---|
323 | exec_prefix=NONE
|
---|
324 | no_create=
|
---|
325 | no_recursion=
|
---|
326 | prefix=NONE
|
---|
327 | program_prefix=NONE
|
---|
328 | program_suffix=NONE
|
---|
329 | program_transform_name=s,x,x,
|
---|
330 | silent=
|
---|
331 | site=
|
---|
332 | srcdir=
|
---|
333 | verbose=
|
---|
334 | x_includes=NONE
|
---|
335 | x_libraries=NONE
|
---|
336 |
|
---|
337 | # Installation directory options.
|
---|
338 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
339 | # and all the variables that are supposed to be based on exec_prefix
|
---|
340 | # by default will actually change.
|
---|
341 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
342 | bindir='${exec_prefix}/bin'
|
---|
343 | sbindir='${exec_prefix}/sbin'
|
---|
344 | libexecdir='${exec_prefix}/libexec'
|
---|
345 | datadir='${prefix}/share'
|
---|
346 | sysconfdir='${prefix}/etc'
|
---|
347 | sharedstatedir='${prefix}/com'
|
---|
348 | localstatedir='${prefix}/var'
|
---|
349 | libdir='${exec_prefix}/lib'
|
---|
350 | includedir='${prefix}/include'
|
---|
351 | oldincludedir='/usr/include'
|
---|
352 | infodir='${prefix}/info'
|
---|
353 | mandir='${prefix}/man'
|
---|
354 |
|
---|
355 | ac_prev=
|
---|
356 | for ac_option
|
---|
357 | do
|
---|
358 | # If the previous option needs an argument, assign it.
|
---|
359 | if test -n "$ac_prev"; then
|
---|
360 | eval "$ac_prev=\$ac_option"
|
---|
361 | ac_prev=
|
---|
362 | continue
|
---|
363 | fi
|
---|
364 |
|
---|
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
366 |
|
---|
367 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
368 |
|
---|
369 | case $ac_option in
|
---|
370 |
|
---|
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
372 | ac_prev=bindir ;;
|
---|
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
374 | bindir=$ac_optarg ;;
|
---|
375 |
|
---|
376 | -build | --build | --buil | --bui | --bu)
|
---|
377 | ac_prev=build_alias ;;
|
---|
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
379 | build_alias=$ac_optarg ;;
|
---|
380 |
|
---|
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
383 | ac_prev=cache_file ;;
|
---|
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
386 | cache_file=$ac_optarg ;;
|
---|
387 |
|
---|
388 | --config-cache | -C)
|
---|
389 | cache_file=config.cache ;;
|
---|
390 |
|
---|
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
392 | ac_prev=datadir ;;
|
---|
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
394 | | --da=*)
|
---|
395 | datadir=$ac_optarg ;;
|
---|
396 |
|
---|
397 | -disable-* | --disable-*)
|
---|
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
399 | # Reject names that are not valid shell variable names.
|
---|
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
402 | { (exit 1); exit 1; }; }
|
---|
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
404 | eval "enable_$ac_feature=no" ;;
|
---|
405 |
|
---|
406 | -enable-* | --enable-*)
|
---|
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
408 | # Reject names that are not valid shell variable names.
|
---|
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
411 | { (exit 1); exit 1; }; }
|
---|
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
413 | case $ac_option in
|
---|
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
415 | *) ac_optarg=yes ;;
|
---|
416 | esac
|
---|
417 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
418 |
|
---|
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
421 | | --exec | --exe | --ex)
|
---|
422 | ac_prev=exec_prefix ;;
|
---|
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
425 | | --exec=* | --exe=* | --ex=*)
|
---|
426 | exec_prefix=$ac_optarg ;;
|
---|
427 |
|
---|
428 | -gas | --gas | --ga | --g)
|
---|
429 | # Obsolete; use --with-gas.
|
---|
430 | with_gas=yes ;;
|
---|
431 |
|
---|
432 | -help | --help | --hel | --he | -h)
|
---|
433 | ac_init_help=long ;;
|
---|
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
435 | ac_init_help=recursive ;;
|
---|
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
437 | ac_init_help=short ;;
|
---|
438 |
|
---|
439 | -host | --host | --hos | --ho)
|
---|
440 | ac_prev=host_alias ;;
|
---|
441 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
442 | host_alias=$ac_optarg ;;
|
---|
443 |
|
---|
444 | -includedir | --includedir | --includedi | --included | --include \
|
---|
445 | | --includ | --inclu | --incl | --inc)
|
---|
446 | ac_prev=includedir ;;
|
---|
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
448 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
449 | includedir=$ac_optarg ;;
|
---|
450 |
|
---|
451 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
452 | ac_prev=infodir ;;
|
---|
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
454 | infodir=$ac_optarg ;;
|
---|
455 |
|
---|
456 | -libdir | --libdir | --libdi | --libd)
|
---|
457 | ac_prev=libdir ;;
|
---|
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
459 | libdir=$ac_optarg ;;
|
---|
460 |
|
---|
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
462 | | --libexe | --libex | --libe)
|
---|
463 | ac_prev=libexecdir ;;
|
---|
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
465 | | --libexe=* | --libex=* | --libe=*)
|
---|
466 | libexecdir=$ac_optarg ;;
|
---|
467 |
|
---|
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
469 | | --localstate | --localstat | --localsta | --localst \
|
---|
470 | | --locals | --local | --loca | --loc | --lo)
|
---|
471 | ac_prev=localstatedir ;;
|
---|
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
475 | localstatedir=$ac_optarg ;;
|
---|
476 |
|
---|
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
478 | ac_prev=mandir ;;
|
---|
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
480 | mandir=$ac_optarg ;;
|
---|
481 |
|
---|
482 | -nfp | --nfp | --nf)
|
---|
483 | # Obsolete; use --without-fp.
|
---|
484 | with_fp=no ;;
|
---|
485 |
|
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
487 | | --no-cr | --no-c | -n)
|
---|
488 | no_create=yes ;;
|
---|
489 |
|
---|
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
492 | no_recursion=yes ;;
|
---|
493 |
|
---|
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
496 | | --oldin | --oldi | --old | --ol | --o)
|
---|
497 | ac_prev=oldincludedir ;;
|
---|
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
501 | oldincludedir=$ac_optarg ;;
|
---|
502 |
|
---|
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
504 | ac_prev=prefix ;;
|
---|
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
506 | prefix=$ac_optarg ;;
|
---|
507 |
|
---|
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
509 | | --program-pre | --program-pr | --program-p)
|
---|
510 | ac_prev=program_prefix ;;
|
---|
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
513 | program_prefix=$ac_optarg ;;
|
---|
514 |
|
---|
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
516 | | --program-suf | --program-su | --program-s)
|
---|
517 | ac_prev=program_suffix ;;
|
---|
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
520 | program_suffix=$ac_optarg ;;
|
---|
521 |
|
---|
522 | -program-transform-name | --program-transform-name \
|
---|
523 | | --program-transform-nam | --program-transform-na \
|
---|
524 | | --program-transform-n | --program-transform- \
|
---|
525 | | --program-transform | --program-transfor \
|
---|
526 | | --program-transfo | --program-transf \
|
---|
527 | | --program-trans | --program-tran \
|
---|
528 | | --progr-tra | --program-tr | --program-t)
|
---|
529 | ac_prev=program_transform_name ;;
|
---|
530 | -program-transform-name=* | --program-transform-name=* \
|
---|
531 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
532 | | --program-transform-n=* | --program-transform-=* \
|
---|
533 | | --program-transform=* | --program-transfor=* \
|
---|
534 | | --program-transfo=* | --program-transf=* \
|
---|
535 | | --program-trans=* | --program-tran=* \
|
---|
536 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
537 | program_transform_name=$ac_optarg ;;
|
---|
538 |
|
---|
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
540 | | -silent | --silent | --silen | --sile | --sil)
|
---|
541 | silent=yes ;;
|
---|
542 |
|
---|
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
544 | ac_prev=sbindir ;;
|
---|
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
546 | | --sbi=* | --sb=*)
|
---|
547 | sbindir=$ac_optarg ;;
|
---|
548 |
|
---|
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
551 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
552 | | --sha | --sh)
|
---|
553 | ac_prev=sharedstatedir ;;
|
---|
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
557 | | --sha=* | --sh=*)
|
---|
558 | sharedstatedir=$ac_optarg ;;
|
---|
559 |
|
---|
560 | -site | --site | --sit)
|
---|
561 | ac_prev=site ;;
|
---|
562 | -site=* | --site=* | --sit=*)
|
---|
563 | site=$ac_optarg ;;
|
---|
564 |
|
---|
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
566 | ac_prev=srcdir ;;
|
---|
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
568 | srcdir=$ac_optarg ;;
|
---|
569 |
|
---|
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
571 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
572 | ac_prev=sysconfdir ;;
|
---|
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
575 | sysconfdir=$ac_optarg ;;
|
---|
576 |
|
---|
577 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
578 | ac_prev=target_alias ;;
|
---|
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
580 | target_alias=$ac_optarg ;;
|
---|
581 |
|
---|
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
583 | verbose=yes ;;
|
---|
584 |
|
---|
585 | -version | --version | --versio | --versi | --vers | -V)
|
---|
586 | ac_init_version=: ;;
|
---|
587 |
|
---|
588 | -with-* | --with-*)
|
---|
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
590 | # Reject names that are not valid shell variable names.
|
---|
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
593 | { (exit 1); exit 1; }; }
|
---|
594 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
595 | case $ac_option in
|
---|
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
597 | *) ac_optarg=yes ;;
|
---|
598 | esac
|
---|
599 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
600 |
|
---|
601 | -without-* | --without-*)
|
---|
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
603 | # Reject names that are not valid shell variable names.
|
---|
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
606 | { (exit 1); exit 1; }; }
|
---|
607 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
608 | eval "with_$ac_package=no" ;;
|
---|
609 |
|
---|
610 | --x)
|
---|
611 | # Obsolete; use --with-x.
|
---|
612 | with_x=yes ;;
|
---|
613 |
|
---|
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
615 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
616 | ac_prev=x_includes ;;
|
---|
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
619 | x_includes=$ac_optarg ;;
|
---|
620 |
|
---|
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
623 | ac_prev=x_libraries ;;
|
---|
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
626 | x_libraries=$ac_optarg ;;
|
---|
627 |
|
---|
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
629 | Try \`$0 --help' for more information." >&2
|
---|
630 | { (exit 1); exit 1; }; }
|
---|
631 | ;;
|
---|
632 |
|
---|
633 | *=*)
|
---|
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
635 | # Reject names that are not valid shell variable names.
|
---|
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
638 | { (exit 1); exit 1; }; }
|
---|
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
640 | eval "$ac_envvar='$ac_optarg'"
|
---|
641 | export $ac_envvar ;;
|
---|
642 |
|
---|
643 | *)
|
---|
644 | # FIXME: should be removed in autoconf 3.0.
|
---|
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
649 | ;;
|
---|
650 |
|
---|
651 | esac
|
---|
652 | done
|
---|
653 |
|
---|
654 | if test -n "$ac_prev"; then
|
---|
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
656 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
657 | { (exit 1); exit 1; }; }
|
---|
658 | fi
|
---|
659 |
|
---|
660 | # Be sure to have absolute paths.
|
---|
661 | for ac_var in exec_prefix prefix
|
---|
662 | do
|
---|
663 | eval ac_val=$`echo $ac_var`
|
---|
664 | case $ac_val in
|
---|
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
667 | { (exit 1); exit 1; }; };;
|
---|
668 | esac
|
---|
669 | done
|
---|
670 |
|
---|
671 | # Be sure to have absolute paths.
|
---|
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
673 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
674 | do
|
---|
675 | eval ac_val=$`echo $ac_var`
|
---|
676 | case $ac_val in
|
---|
677 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
679 | { (exit 1); exit 1; }; };;
|
---|
680 | esac
|
---|
681 | done
|
---|
682 |
|
---|
683 | # There might be people who depend on the old broken behavior: `$host'
|
---|
684 | # used to hold the argument of --host etc.
|
---|
685 | # FIXME: To remove some day.
|
---|
686 | build=$build_alias
|
---|
687 | host=$host_alias
|
---|
688 | target=$target_alias
|
---|
689 |
|
---|
690 | # FIXME: To remove some day.
|
---|
691 | if test "x$host_alias" != x; then
|
---|
692 | if test "x$build_alias" = x; then
|
---|
693 | cross_compiling=maybe
|
---|
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
695 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
696 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
697 | cross_compiling=yes
|
---|
698 | fi
|
---|
699 | fi
|
---|
700 |
|
---|
701 | ac_tool_prefix=
|
---|
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
703 |
|
---|
704 | test "$silent" = yes && exec 6>/dev/null
|
---|
705 |
|
---|
706 |
|
---|
707 | # Find the source files, if location was not specified.
|
---|
708 | if test -z "$srcdir"; then
|
---|
709 | ac_srcdir_defaulted=yes
|
---|
710 | # Try the directory containing this script, then its parent.
|
---|
711 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
713 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
714 | X"$0" : 'X\(//\)$' \| \
|
---|
715 | X"$0" : 'X\(/\)' \| \
|
---|
716 | . : '\(.\)' 2>/dev/null ||
|
---|
717 | echo X"$0" |
|
---|
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
720 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
721 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
722 | s/.*/./; q'`
|
---|
723 | srcdir=$ac_confdir
|
---|
724 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
725 | srcdir=..
|
---|
726 | fi
|
---|
727 | else
|
---|
728 | ac_srcdir_defaulted=no
|
---|
729 | fi
|
---|
730 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
731 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
733 | { (exit 1); exit 1; }; }
|
---|
734 | else
|
---|
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
736 | { (exit 1); exit 1; }; }
|
---|
737 | fi
|
---|
738 | fi
|
---|
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
741 | { (exit 1); exit 1; }; }
|
---|
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
743 | ac_env_build_alias_set=${build_alias+set}
|
---|
744 | ac_env_build_alias_value=$build_alias
|
---|
745 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
746 | ac_cv_env_build_alias_value=$build_alias
|
---|
747 | ac_env_host_alias_set=${host_alias+set}
|
---|
748 | ac_env_host_alias_value=$host_alias
|
---|
749 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
750 | ac_cv_env_host_alias_value=$host_alias
|
---|
751 | ac_env_target_alias_set=${target_alias+set}
|
---|
752 | ac_env_target_alias_value=$target_alias
|
---|
753 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
754 | ac_cv_env_target_alias_value=$target_alias
|
---|
755 | ac_env_CC_set=${CC+set}
|
---|
756 | ac_env_CC_value=$CC
|
---|
757 | ac_cv_env_CC_set=${CC+set}
|
---|
758 | ac_cv_env_CC_value=$CC
|
---|
759 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
760 | ac_env_CFLAGS_value=$CFLAGS
|
---|
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
762 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
763 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
764 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
768 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
771 | ac_env_CXX_set=${CXX+set}
|
---|
772 | ac_env_CXX_value=$CXX
|
---|
773 | ac_cv_env_CXX_set=${CXX+set}
|
---|
774 | ac_cv_env_CXX_value=$CXX
|
---|
775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
776 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
779 | ac_env_CPP_set=${CPP+set}
|
---|
780 | ac_env_CPP_value=$CPP
|
---|
781 | ac_cv_env_CPP_set=${CPP+set}
|
---|
782 | ac_cv_env_CPP_value=$CPP
|
---|
783 |
|
---|
784 | #
|
---|
785 | # Report the --help message.
|
---|
786 | #
|
---|
787 | if test "$ac_init_help" = "long"; then
|
---|
788 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
789 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
790 | cat <<_ACEOF
|
---|
791 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
792 |
|
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
794 |
|
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
797 |
|
---|
798 | Defaults for the options are specified in brackets.
|
---|
799 |
|
---|
800 | Configuration:
|
---|
801 | -h, --help display this help and exit
|
---|
802 | --help=short display options specific to this package
|
---|
803 | --help=recursive display the short help of all the included packages
|
---|
804 | -V, --version display version information and exit
|
---|
805 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
806 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
808 | -n, --no-create do not create output files
|
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
810 |
|
---|
811 | _ACEOF
|
---|
812 |
|
---|
813 | cat <<_ACEOF
|
---|
814 | Installation directories:
|
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
816 | [$ac_default_prefix]
|
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
818 | [PREFIX]
|
---|
819 |
|
---|
820 | By default, \`make install' will install all the files in
|
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
823 | for instance \`--prefix=\$HOME'.
|
---|
824 |
|
---|
825 | For better control, use the options below.
|
---|
826 |
|
---|
827 | Fine tuning of the installation directories:
|
---|
828 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
836 | --includedir=DIR C header files [PREFIX/include]
|
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
838 | --infodir=DIR info documentation [PREFIX/info]
|
---|
839 | --mandir=DIR man documentation [PREFIX/man]
|
---|
840 | _ACEOF
|
---|
841 |
|
---|
842 | cat <<\_ACEOF
|
---|
843 |
|
---|
844 | System types:
|
---|
845 | --build=BUILD configure for building on BUILD [guessed]
|
---|
846 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
847 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
848 | _ACEOF
|
---|
849 | fi
|
---|
850 |
|
---|
851 | if test -n "$ac_init_help"; then
|
---|
852 |
|
---|
853 | cat <<\_ACEOF
|
---|
854 |
|
---|
855 | Optional Features:
|
---|
856 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
857 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
858 | --enable-corba Enable CORBA support
|
---|
859 | --enable-z3950 Enable Z39.50 client support
|
---|
860 | --disable-yaz Disable YAZ compilation
|
---|
861 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
862 | --disable-jdbm Disable JDBM support
|
---|
863 | --disable-sqlite Disable SQLite support
|
---|
864 | --enable-apache-httpd Enable Apache httpd support
|
---|
865 | --enable-jni Enable JNI compilation
|
---|
866 | --disable-mg Disable MG compilation
|
---|
867 | --disable-mgpp Disable MGPP compilation
|
---|
868 | --disable-lucene Disable Lucene compilation
|
---|
869 |
|
---|
870 | Optional Packages:
|
---|
871 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
872 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
873 | --with-micodir Use installed MICO directory
|
---|
874 | --with-dmalloc use dmalloc, as in
|
---|
875 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
876 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
877 |
|
---|
878 | Some influential environment variables:
|
---|
879 | CC C compiler command
|
---|
880 | CFLAGS C compiler flags
|
---|
881 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
882 | nonstandard directory <lib dir>
|
---|
883 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
884 | headers in a nonstandard directory <include dir>
|
---|
885 | CXX C++ compiler command
|
---|
886 | CXXFLAGS C++ compiler flags
|
---|
887 | CPP C preprocessor
|
---|
888 |
|
---|
889 | Use these variables to override the choices made by `configure' or to help
|
---|
890 | it to find libraries and programs with nonstandard names/locations.
|
---|
891 |
|
---|
892 | _ACEOF
|
---|
893 | fi
|
---|
894 |
|
---|
895 | if test "$ac_init_help" = "recursive"; then
|
---|
896 | # If there are subdirs, report their specific --help.
|
---|
897 | ac_popdir=`pwd`
|
---|
898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
899 | test -d $ac_dir || continue
|
---|
900 | ac_builddir=.
|
---|
901 |
|
---|
902 | if test "$ac_dir" != .; then
|
---|
903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
904 | # A "../" for each directory in $ac_dir_suffix.
|
---|
905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
906 | else
|
---|
907 | ac_dir_suffix= ac_top_builddir=
|
---|
908 | fi
|
---|
909 |
|
---|
910 | case $srcdir in
|
---|
911 | .) # No --srcdir option. We are building in place.
|
---|
912 | ac_srcdir=.
|
---|
913 | if test -z "$ac_top_builddir"; then
|
---|
914 | ac_top_srcdir=.
|
---|
915 | else
|
---|
916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
917 | fi ;;
|
---|
918 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
919 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
920 | ac_top_srcdir=$srcdir ;;
|
---|
921 | *) # Relative path.
|
---|
922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
923 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
924 | esac
|
---|
925 |
|
---|
926 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
927 | # the directories may not exist.
|
---|
928 | case `pwd` in
|
---|
929 | .) ac_abs_builddir="$ac_dir";;
|
---|
930 | *)
|
---|
931 | case "$ac_dir" in
|
---|
932 | .) ac_abs_builddir=`pwd`;;
|
---|
933 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
934 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
935 | esac;;
|
---|
936 | esac
|
---|
937 | case $ac_abs_builddir in
|
---|
938 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
939 | *)
|
---|
940 | case ${ac_top_builddir}. in
|
---|
941 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
942 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
943 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
944 | esac;;
|
---|
945 | esac
|
---|
946 | case $ac_abs_builddir in
|
---|
947 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
948 | *)
|
---|
949 | case $ac_srcdir in
|
---|
950 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
951 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
952 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
953 | esac;;
|
---|
954 | esac
|
---|
955 | case $ac_abs_builddir in
|
---|
956 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
957 | *)
|
---|
958 | case $ac_top_srcdir in
|
---|
959 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
960 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
961 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
962 | esac;;
|
---|
963 | esac
|
---|
964 |
|
---|
965 | cd $ac_dir
|
---|
966 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
967 | if test -f $ac_srcdir/configure.gnu; then
|
---|
968 | echo
|
---|
969 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
970 | elif test -f $ac_srcdir/configure; then
|
---|
971 | echo
|
---|
972 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
973 | elif test -f $ac_srcdir/configure.ac ||
|
---|
974 | test -f $ac_srcdir/configure.in; then
|
---|
975 | echo
|
---|
976 | $ac_configure --help
|
---|
977 | else
|
---|
978 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
979 | fi
|
---|
980 | cd $ac_popdir
|
---|
981 | done
|
---|
982 | fi
|
---|
983 |
|
---|
984 | test -n "$ac_init_help" && exit 0
|
---|
985 | if $ac_init_version; then
|
---|
986 | cat <<\_ACEOF
|
---|
987 |
|
---|
988 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
989 | This configure script is free software; the Free Software Foundation
|
---|
990 | gives unlimited permission to copy, distribute and modify it.
|
---|
991 | _ACEOF
|
---|
992 | exit 0
|
---|
993 | fi
|
---|
994 | exec 5>config.log
|
---|
995 | cat >&5 <<_ACEOF
|
---|
996 | This file contains any messages produced by compilers while
|
---|
997 | running configure, to aid debugging if configure makes a mistake.
|
---|
998 |
|
---|
999 | It was created by $as_me, which was
|
---|
1000 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
1001 |
|
---|
1002 | $ $0 $@
|
---|
1003 |
|
---|
1004 | _ACEOF
|
---|
1005 | {
|
---|
1006 | cat <<_ASUNAME
|
---|
1007 | ## --------- ##
|
---|
1008 | ## Platform. ##
|
---|
1009 | ## --------- ##
|
---|
1010 |
|
---|
1011 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1012 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1013 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1014 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1015 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1016 |
|
---|
1017 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1018 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1019 |
|
---|
1020 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1021 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1022 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1023 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1024 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1025 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1026 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1027 |
|
---|
1028 | _ASUNAME
|
---|
1029 |
|
---|
1030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1031 | for as_dir in $PATH
|
---|
1032 | do
|
---|
1033 | IFS=$as_save_IFS
|
---|
1034 | test -z "$as_dir" && as_dir=.
|
---|
1035 | echo "PATH: $as_dir"
|
---|
1036 | done
|
---|
1037 |
|
---|
1038 | } >&5
|
---|
1039 |
|
---|
1040 | cat >&5 <<_ACEOF
|
---|
1041 |
|
---|
1042 |
|
---|
1043 | ## ----------- ##
|
---|
1044 | ## Core tests. ##
|
---|
1045 | ## ----------- ##
|
---|
1046 |
|
---|
1047 | _ACEOF
|
---|
1048 |
|
---|
1049 |
|
---|
1050 | # Keep a trace of the command line.
|
---|
1051 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1052 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1053 | # Also quote any args containing shell meta-characters.
|
---|
1054 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1055 | ac_configure_args=
|
---|
1056 | ac_configure_args0=
|
---|
1057 | ac_configure_args1=
|
---|
1058 | ac_sep=
|
---|
1059 | ac_must_keep_next=false
|
---|
1060 | for ac_pass in 1 2
|
---|
1061 | do
|
---|
1062 | for ac_arg
|
---|
1063 | do
|
---|
1064 | case $ac_arg in
|
---|
1065 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1067 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1068 | continue ;;
|
---|
1069 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1070 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1071 | esac
|
---|
1072 | case $ac_pass in
|
---|
1073 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1074 | 2)
|
---|
1075 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1076 | if test $ac_must_keep_next = true; then
|
---|
1077 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1078 | else
|
---|
1079 | case $ac_arg in
|
---|
1080 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1081 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1082 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1083 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1084 | case "$ac_configure_args0 " in
|
---|
1085 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1086 | esac
|
---|
1087 | ;;
|
---|
1088 | -* ) ac_must_keep_next=true ;;
|
---|
1089 | esac
|
---|
1090 | fi
|
---|
1091 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1092 | # Get rid of the leading space.
|
---|
1093 | ac_sep=" "
|
---|
1094 | ;;
|
---|
1095 | esac
|
---|
1096 | done
|
---|
1097 | done
|
---|
1098 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1099 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1100 |
|
---|
1101 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1102 | # config.log. We remove comments because anyway the quotes in there
|
---|
1103 | # would cause problems or look ugly.
|
---|
1104 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1105 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1106 | trap 'exit_status=$?
|
---|
1107 | # Save into config.log some information that might help in debugging.
|
---|
1108 | {
|
---|
1109 | echo
|
---|
1110 |
|
---|
1111 | cat <<\_ASBOX
|
---|
1112 | ## ---------------- ##
|
---|
1113 | ## Cache variables. ##
|
---|
1114 | ## ---------------- ##
|
---|
1115 | _ASBOX
|
---|
1116 | echo
|
---|
1117 | # The following way of writing the cache mishandles newlines in values,
|
---|
1118 | {
|
---|
1119 | (set) 2>&1 |
|
---|
1120 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1121 | *ac_space=\ *)
|
---|
1122 | sed -n \
|
---|
1123 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1125 | ;;
|
---|
1126 | *)
|
---|
1127 | sed -n \
|
---|
1128 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1129 | ;;
|
---|
1130 | esac;
|
---|
1131 | }
|
---|
1132 | echo
|
---|
1133 |
|
---|
1134 | cat <<\_ASBOX
|
---|
1135 | ## ----------------- ##
|
---|
1136 | ## Output variables. ##
|
---|
1137 | ## ----------------- ##
|
---|
1138 | _ASBOX
|
---|
1139 | echo
|
---|
1140 | for ac_var in $ac_subst_vars
|
---|
1141 | do
|
---|
1142 | eval ac_val=$`echo $ac_var`
|
---|
1143 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1144 | done | sort
|
---|
1145 | echo
|
---|
1146 |
|
---|
1147 | if test -n "$ac_subst_files"; then
|
---|
1148 | cat <<\_ASBOX
|
---|
1149 | ## ------------- ##
|
---|
1150 | ## Output files. ##
|
---|
1151 | ## ------------- ##
|
---|
1152 | _ASBOX
|
---|
1153 | echo
|
---|
1154 | for ac_var in $ac_subst_files
|
---|
1155 | do
|
---|
1156 | eval ac_val=$`echo $ac_var`
|
---|
1157 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1158 | done | sort
|
---|
1159 | echo
|
---|
1160 | fi
|
---|
1161 |
|
---|
1162 | if test -s confdefs.h; then
|
---|
1163 | cat <<\_ASBOX
|
---|
1164 | ## ----------- ##
|
---|
1165 | ## confdefs.h. ##
|
---|
1166 | ## ----------- ##
|
---|
1167 | _ASBOX
|
---|
1168 | echo
|
---|
1169 | sed "/^$/d" confdefs.h | sort
|
---|
1170 | echo
|
---|
1171 | fi
|
---|
1172 | test "$ac_signal" != 0 &&
|
---|
1173 | echo "$as_me: caught signal $ac_signal"
|
---|
1174 | echo "$as_me: exit $exit_status"
|
---|
1175 | } >&5
|
---|
1176 | rm -f core *.core &&
|
---|
1177 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1178 | exit $exit_status
|
---|
1179 | ' 0
|
---|
1180 | for ac_signal in 1 2 13 15; do
|
---|
1181 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1182 | done
|
---|
1183 | ac_signal=0
|
---|
1184 |
|
---|
1185 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1186 | rm -rf conftest* confdefs.h
|
---|
1187 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1188 | echo >confdefs.h
|
---|
1189 |
|
---|
1190 | # Predefined preprocessor variables.
|
---|
1191 |
|
---|
1192 | cat >>confdefs.h <<_ACEOF
|
---|
1193 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1194 | _ACEOF
|
---|
1195 |
|
---|
1196 |
|
---|
1197 | cat >>confdefs.h <<_ACEOF
|
---|
1198 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1199 | _ACEOF
|
---|
1200 |
|
---|
1201 |
|
---|
1202 | cat >>confdefs.h <<_ACEOF
|
---|
1203 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1204 | _ACEOF
|
---|
1205 |
|
---|
1206 |
|
---|
1207 | cat >>confdefs.h <<_ACEOF
|
---|
1208 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1209 | _ACEOF
|
---|
1210 |
|
---|
1211 |
|
---|
1212 | cat >>confdefs.h <<_ACEOF
|
---|
1213 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1214 | _ACEOF
|
---|
1215 |
|
---|
1216 |
|
---|
1217 | # Let the site file select an alternate cache file if it wants to.
|
---|
1218 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1219 | if test -z "$CONFIG_SITE"; then
|
---|
1220 | if test "x$prefix" != xNONE; then
|
---|
1221 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1222 | else
|
---|
1223 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1224 | fi
|
---|
1225 | fi
|
---|
1226 | for ac_site_file in $CONFIG_SITE; do
|
---|
1227 | if test -r "$ac_site_file"; then
|
---|
1228 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1229 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1230 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1231 | . "$ac_site_file"
|
---|
1232 | fi
|
---|
1233 | done
|
---|
1234 |
|
---|
1235 | if test -r "$cache_file"; then
|
---|
1236 | # Some versions of bash will fail to source /dev/null (special
|
---|
1237 | # files actually), so we avoid doing that.
|
---|
1238 | if test -f "$cache_file"; then
|
---|
1239 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1240 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1241 | case $cache_file in
|
---|
1242 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1243 | *) . ./$cache_file;;
|
---|
1244 | esac
|
---|
1245 | fi
|
---|
1246 | else
|
---|
1247 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1248 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1249 | >$cache_file
|
---|
1250 | fi
|
---|
1251 |
|
---|
1252 | # Check that the precious variables saved in the cache have kept the same
|
---|
1253 | # value.
|
---|
1254 | ac_cache_corrupted=false
|
---|
1255 | for ac_var in `(set) 2>&1 |
|
---|
1256 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1257 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1258 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1259 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1260 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1261 | case $ac_old_set,$ac_new_set in
|
---|
1262 | set,)
|
---|
1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1264 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1265 | ac_cache_corrupted=: ;;
|
---|
1266 | ,set)
|
---|
1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1268 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1269 | ac_cache_corrupted=: ;;
|
---|
1270 | ,);;
|
---|
1271 | *)
|
---|
1272 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1274 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1275 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1276 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1277 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1278 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1279 | ac_cache_corrupted=:
|
---|
1280 | fi;;
|
---|
1281 | esac
|
---|
1282 | # Pass precious variables to config.status.
|
---|
1283 | if test "$ac_new_set" = set; then
|
---|
1284 | case $ac_new_val in
|
---|
1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1286 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1287 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1288 | esac
|
---|
1289 | case " $ac_configure_args " in
|
---|
1290 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1291 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1292 | esac
|
---|
1293 | fi
|
---|
1294 | done
|
---|
1295 | if $ac_cache_corrupted; then
|
---|
1296 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1297 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1298 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1299 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1300 | { (exit 1); exit 1; }; }
|
---|
1301 | fi
|
---|
1302 |
|
---|
1303 | ac_ext=c
|
---|
1304 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1308 |
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 |
|
---|
1313 |
|
---|
1314 |
|
---|
1315 |
|
---|
1316 |
|
---|
1317 |
|
---|
1318 |
|
---|
1319 |
|
---|
1320 |
|
---|
1321 |
|
---|
1322 |
|
---|
1323 |
|
---|
1324 |
|
---|
1325 |
|
---|
1326 |
|
---|
1327 | ac_config_headers="$ac_config_headers config.h"
|
---|
1328 |
|
---|
1329 |
|
---|
1330 | PACKAGE=gsdl
|
---|
1331 | VERSION=2.82-svn
|
---|
1332 | cat >>confdefs.h <<_ACEOF
|
---|
1333 | #define PACKAGE "$PACKAGE"
|
---|
1334 | _ACEOF
|
---|
1335 |
|
---|
1336 | cat >>confdefs.h <<_ACEOF
|
---|
1337 | #define VERSION "$VERSION"
|
---|
1338 | _ACEOF
|
---|
1339 |
|
---|
1340 |
|
---|
1341 |
|
---|
1342 |
|
---|
1343 |
|
---|
1344 | USE_FASTCGI=0
|
---|
1345 | if test USE_FASTCGI = 1; then
|
---|
1346 | cat >>confdefs.h <<\_ACEOF
|
---|
1347 | #define USE_FASTCGI 1
|
---|
1348 | _ACEOF
|
---|
1349 |
|
---|
1350 |
|
---|
1351 | fi
|
---|
1352 |
|
---|
1353 | if test USE_LANGACTION = 1; then
|
---|
1354 | cat >>confdefs.h <<\_ACEOF
|
---|
1355 | #define USE_LANGACTION 1
|
---|
1356 | _ACEOF
|
---|
1357 |
|
---|
1358 |
|
---|
1359 | fi
|
---|
1360 |
|
---|
1361 | # Check whether --enable-corba or --disable-corba was given.
|
---|
1362 | if test "${enable_corba+set}" = set; then
|
---|
1363 | enableval="$enable_corba"
|
---|
1364 | USE_CORBA=1
|
---|
1365 | else
|
---|
1366 | USE_CORBA=0
|
---|
1367 | fi;
|
---|
1368 | cat >>confdefs.h <<_ACEOF
|
---|
1369 | #define USE_CORBA $USE_CORBA
|
---|
1370 | _ACEOF
|
---|
1371 |
|
---|
1372 |
|
---|
1373 |
|
---|
1374 |
|
---|
1375 | # Check whether --with-micodir or --without-micodir was given.
|
---|
1376 | if test "${with_micodir+set}" = set; then
|
---|
1377 | withval="$with_micodir"
|
---|
1378 | MICO_DIR=$withval
|
---|
1379 | else
|
---|
1380 | MICO_DIR="default"
|
---|
1381 | fi;
|
---|
1382 | cat >>confdefs.h <<_ACEOF
|
---|
1383 | #define MICO_DIR "$MICO_DIR"
|
---|
1384 | _ACEOF
|
---|
1385 |
|
---|
1386 |
|
---|
1387 |
|
---|
1388 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
1389 | if test "${enable_z3950+set}" = set; then
|
---|
1390 | enableval="$enable_z3950"
|
---|
1391 | USE_Z3950=1
|
---|
1392 | else
|
---|
1393 | USE_Z3950=0
|
---|
1394 | fi;
|
---|
1395 | if test USE_Z3950 = 1; then
|
---|
1396 | cat >>confdefs.h <<\_ACEOF
|
---|
1397 | #define USE_Z3950 $USE_Z3950
|
---|
1398 | _ACEOF
|
---|
1399 |
|
---|
1400 |
|
---|
1401 | fi
|
---|
1402 |
|
---|
1403 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
1404 | if test "${enable_yaz+set}" = set; then
|
---|
1405 | enableval="$enable_yaz"
|
---|
1406 | USE_YAZ=0
|
---|
1407 | else
|
---|
1408 | USE_YAZ=1
|
---|
1409 | fi;
|
---|
1410 | cat >>confdefs.h <<\_ACEOF
|
---|
1411 | #define USE_YAZ $USE_YAZ
|
---|
1412 | _ACEOF
|
---|
1413 |
|
---|
1414 |
|
---|
1415 |
|
---|
1416 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
1417 | if test "${enable_accentfold+set}" = set; then
|
---|
1418 | enableval="$enable_accentfold"
|
---|
1419 | ENABLE_ACCENTFOLD=0
|
---|
1420 | else
|
---|
1421 | ENABLE_ACCENTFOLD=1
|
---|
1422 | fi;
|
---|
1423 | cat >>confdefs.h <<\_ACEOF
|
---|
1424 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
1425 | _ACEOF
|
---|
1426 |
|
---|
1427 |
|
---|
1428 |
|
---|
1429 | # Check whether --enable-jdbm or --disable-jdbm was given.
|
---|
1430 | if test "${enable_jdbm+set}" = set; then
|
---|
1431 | enableval="$enable_jdbm"
|
---|
1432 | USE_JDBM=0
|
---|
1433 | else
|
---|
1434 | USE_JDBM=1
|
---|
1435 | fi;
|
---|
1436 | cat >>confdefs.h <<\_ACEOF
|
---|
1437 | #define USE_JDBM $USE_JDBM
|
---|
1438 | _ACEOF
|
---|
1439 |
|
---|
1440 |
|
---|
1441 |
|
---|
1442 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
1443 | if test "${enable_sqlite+set}" = set; then
|
---|
1444 | enableval="$enable_sqlite"
|
---|
1445 | USE_SQLITE=0
|
---|
1446 | else
|
---|
1447 | USE_SQLITE=1
|
---|
1448 | fi;
|
---|
1449 | cat >>confdefs.h <<\_ACEOF
|
---|
1450 | #define USE_SQLITE $USE_SQLITE
|
---|
1451 | _ACEOF
|
---|
1452 |
|
---|
1453 |
|
---|
1454 |
|
---|
1455 | if test -d runtime-src; then
|
---|
1456 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
1457 | if test "${enable_apache_httpd+set}" = set; then
|
---|
1458 | enableval="$enable_apache_httpd"
|
---|
1459 | USE_APACHE_HTTPD=1
|
---|
1460 | else
|
---|
1461 | USE_APACHE_HTTPD=0
|
---|
1462 | fi;
|
---|
1463 | cat >>confdefs.h <<\_ACEOF
|
---|
1464 | #define USE_APACHE_HTTPD $USE_APACHE_HTTPD
|
---|
1465 | _ACEOF
|
---|
1466 |
|
---|
1467 |
|
---|
1468 | fi
|
---|
1469 |
|
---|
1470 | # Check whether --enable-jni or --disable-jni was given.
|
---|
1471 | if test "${enable_jni+set}" = set; then
|
---|
1472 | enableval="$enable_jni"
|
---|
1473 | ENABLE_JNI=$enableval
|
---|
1474 | else
|
---|
1475 | ENABLE_JNI=no
|
---|
1476 | fi;
|
---|
1477 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
1478 | ENABLE_JNI=1
|
---|
1479 | cat >>confdefs.h <<\_ACEOF
|
---|
1480 | #define ENABLE_JNI
|
---|
1481 | _ACEOF
|
---|
1482 |
|
---|
1483 | else
|
---|
1484 | ENABLE_JNI=0
|
---|
1485 | fi
|
---|
1486 |
|
---|
1487 |
|
---|
1488 | # Check whether --enable-mg or --disable-mg was given.
|
---|
1489 | if test "${enable_mg+set}" = set; then
|
---|
1490 | enableval="$enable_mg"
|
---|
1491 | ENABLE_MG=$enableval
|
---|
1492 | else
|
---|
1493 | ENABLE_MG=yes
|
---|
1494 | fi;
|
---|
1495 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
1496 | ENABLE_MG=1
|
---|
1497 | cat >>confdefs.h <<\_ACEOF
|
---|
1498 | #define ENABLE_MG
|
---|
1499 | _ACEOF
|
---|
1500 |
|
---|
1501 | else
|
---|
1502 | ENABLE_MG=0
|
---|
1503 | fi
|
---|
1504 |
|
---|
1505 |
|
---|
1506 |
|
---|
1507 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
1508 | if test "${enable_mgpp+set}" = set; then
|
---|
1509 | enableval="$enable_mgpp"
|
---|
1510 | ENABLE_MGPP=$enableval
|
---|
1511 | else
|
---|
1512 | ENABLE_MGPP=yes
|
---|
1513 | fi;
|
---|
1514 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
1515 | ENABLE_MGPP=1
|
---|
1516 | cat >>confdefs.h <<\_ACEOF
|
---|
1517 | #define ENABLE_MGPP
|
---|
1518 | _ACEOF
|
---|
1519 |
|
---|
1520 | else
|
---|
1521 | ENABLE_MGPP=0
|
---|
1522 | fi
|
---|
1523 |
|
---|
1524 |
|
---|
1525 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
1526 | if test "${enable_lucene+set}" = set; then
|
---|
1527 | enableval="$enable_lucene"
|
---|
1528 | ENABLE_LUCENE=$enableval
|
---|
1529 | else
|
---|
1530 | ENABLE_LUCENE=yes
|
---|
1531 | fi;
|
---|
1532 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
1533 | ENABLE_LUCENE=1
|
---|
1534 | cat >>confdefs.h <<\_ACEOF
|
---|
1535 | #define ENABLE_LUCENE
|
---|
1536 | _ACEOF
|
---|
1537 |
|
---|
1538 | else
|
---|
1539 | ENABLE_LUCENE=0
|
---|
1540 | fi
|
---|
1541 |
|
---|
1542 |
|
---|
1543 |
|
---|
1544 | LDFLAGS=$LDFLAGS
|
---|
1545 |
|
---|
1546 | if test -z "$CFLAGS"; then
|
---|
1547 | CFLAGS=-O2
|
---|
1548 | fi
|
---|
1549 |
|
---|
1550 |
|
---|
1551 |
|
---|
1552 | ac_ext=c
|
---|
1553 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1557 | if test -n "$ac_tool_prefix"; then
|
---|
1558 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1559 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1560 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1562 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1563 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1564 | else
|
---|
1565 | if test -n "$CC"; then
|
---|
1566 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1567 | else
|
---|
1568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1569 | for as_dir in $PATH
|
---|
1570 | do
|
---|
1571 | IFS=$as_save_IFS
|
---|
1572 | test -z "$as_dir" && as_dir=.
|
---|
1573 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1574 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1575 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1577 | break 2
|
---|
1578 | fi
|
---|
1579 | done
|
---|
1580 | done
|
---|
1581 |
|
---|
1582 | fi
|
---|
1583 | fi
|
---|
1584 | CC=$ac_cv_prog_CC
|
---|
1585 | if test -n "$CC"; then
|
---|
1586 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1587 | echo "${ECHO_T}$CC" >&6
|
---|
1588 | else
|
---|
1589 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1590 | echo "${ECHO_T}no" >&6
|
---|
1591 | fi
|
---|
1592 |
|
---|
1593 | fi
|
---|
1594 | if test -z "$ac_cv_prog_CC"; then
|
---|
1595 | ac_ct_CC=$CC
|
---|
1596 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1597 | set dummy gcc; ac_word=$2
|
---|
1598 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1600 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1601 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1602 | else
|
---|
1603 | if test -n "$ac_ct_CC"; then
|
---|
1604 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1605 | else
|
---|
1606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1607 | for as_dir in $PATH
|
---|
1608 | do
|
---|
1609 | IFS=$as_save_IFS
|
---|
1610 | test -z "$as_dir" && as_dir=.
|
---|
1611 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1613 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1615 | break 2
|
---|
1616 | fi
|
---|
1617 | done
|
---|
1618 | done
|
---|
1619 |
|
---|
1620 | fi
|
---|
1621 | fi
|
---|
1622 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1623 | if test -n "$ac_ct_CC"; then
|
---|
1624 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1625 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1626 | else
|
---|
1627 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1628 | echo "${ECHO_T}no" >&6
|
---|
1629 | fi
|
---|
1630 |
|
---|
1631 | CC=$ac_ct_CC
|
---|
1632 | else
|
---|
1633 | CC="$ac_cv_prog_CC"
|
---|
1634 | fi
|
---|
1635 |
|
---|
1636 | if test -z "$CC"; then
|
---|
1637 | if test -n "$ac_tool_prefix"; then
|
---|
1638 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1639 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1640 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1642 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1643 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1644 | else
|
---|
1645 | if test -n "$CC"; then
|
---|
1646 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1647 | else
|
---|
1648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1649 | for as_dir in $PATH
|
---|
1650 | do
|
---|
1651 | IFS=$as_save_IFS
|
---|
1652 | test -z "$as_dir" && as_dir=.
|
---|
1653 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1654 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1655 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1657 | break 2
|
---|
1658 | fi
|
---|
1659 | done
|
---|
1660 | done
|
---|
1661 |
|
---|
1662 | fi
|
---|
1663 | fi
|
---|
1664 | CC=$ac_cv_prog_CC
|
---|
1665 | if test -n "$CC"; then
|
---|
1666 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1667 | echo "${ECHO_T}$CC" >&6
|
---|
1668 | else
|
---|
1669 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1670 | echo "${ECHO_T}no" >&6
|
---|
1671 | fi
|
---|
1672 |
|
---|
1673 | fi
|
---|
1674 | if test -z "$ac_cv_prog_CC"; then
|
---|
1675 | ac_ct_CC=$CC
|
---|
1676 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1677 | set dummy cc; ac_word=$2
|
---|
1678 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1680 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1681 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1682 | else
|
---|
1683 | if test -n "$ac_ct_CC"; then
|
---|
1684 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1685 | else
|
---|
1686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1687 | for as_dir in $PATH
|
---|
1688 | do
|
---|
1689 | IFS=$as_save_IFS
|
---|
1690 | test -z "$as_dir" && as_dir=.
|
---|
1691 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1693 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1695 | break 2
|
---|
1696 | fi
|
---|
1697 | done
|
---|
1698 | done
|
---|
1699 |
|
---|
1700 | fi
|
---|
1701 | fi
|
---|
1702 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1703 | if test -n "$ac_ct_CC"; then
|
---|
1704 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1705 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1706 | else
|
---|
1707 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1708 | echo "${ECHO_T}no" >&6
|
---|
1709 | fi
|
---|
1710 |
|
---|
1711 | CC=$ac_ct_CC
|
---|
1712 | else
|
---|
1713 | CC="$ac_cv_prog_CC"
|
---|
1714 | fi
|
---|
1715 |
|
---|
1716 | fi
|
---|
1717 | if test -z "$CC"; then
|
---|
1718 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1719 | set dummy cc; ac_word=$2
|
---|
1720 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1722 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1723 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1724 | else
|
---|
1725 | if test -n "$CC"; then
|
---|
1726 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1727 | else
|
---|
1728 | ac_prog_rejected=no
|
---|
1729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1730 | for as_dir in $PATH
|
---|
1731 | do
|
---|
1732 | IFS=$as_save_IFS
|
---|
1733 | test -z "$as_dir" && as_dir=.
|
---|
1734 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1736 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1737 | ac_prog_rejected=yes
|
---|
1738 | continue
|
---|
1739 | fi
|
---|
1740 | ac_cv_prog_CC="cc"
|
---|
1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1742 | break 2
|
---|
1743 | fi
|
---|
1744 | done
|
---|
1745 | done
|
---|
1746 |
|
---|
1747 | if test $ac_prog_rejected = yes; then
|
---|
1748 | # We found a bogon in the path, so make sure we never use it.
|
---|
1749 | set dummy $ac_cv_prog_CC
|
---|
1750 | shift
|
---|
1751 | if test $# != 0; then
|
---|
1752 | # We chose a different compiler from the bogus one.
|
---|
1753 | # However, it has the same basename, so the bogon will be chosen
|
---|
1754 | # first if we set CC to just the basename; use the full file name.
|
---|
1755 | shift
|
---|
1756 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1757 | fi
|
---|
1758 | fi
|
---|
1759 | fi
|
---|
1760 | fi
|
---|
1761 | CC=$ac_cv_prog_CC
|
---|
1762 | if test -n "$CC"; then
|
---|
1763 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1764 | echo "${ECHO_T}$CC" >&6
|
---|
1765 | else
|
---|
1766 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1767 | echo "${ECHO_T}no" >&6
|
---|
1768 | fi
|
---|
1769 |
|
---|
1770 | fi
|
---|
1771 | if test -z "$CC"; then
|
---|
1772 | if test -n "$ac_tool_prefix"; then
|
---|
1773 | for ac_prog in cl
|
---|
1774 | do
|
---|
1775 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1776 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1777 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1779 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1780 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1781 | else
|
---|
1782 | if test -n "$CC"; then
|
---|
1783 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1784 | else
|
---|
1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1786 | for as_dir in $PATH
|
---|
1787 | do
|
---|
1788 | IFS=$as_save_IFS
|
---|
1789 | test -z "$as_dir" && as_dir=.
|
---|
1790 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1792 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1794 | break 2
|
---|
1795 | fi
|
---|
1796 | done
|
---|
1797 | done
|
---|
1798 |
|
---|
1799 | fi
|
---|
1800 | fi
|
---|
1801 | CC=$ac_cv_prog_CC
|
---|
1802 | if test -n "$CC"; then
|
---|
1803 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1804 | echo "${ECHO_T}$CC" >&6
|
---|
1805 | else
|
---|
1806 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1807 | echo "${ECHO_T}no" >&6
|
---|
1808 | fi
|
---|
1809 |
|
---|
1810 | test -n "$CC" && break
|
---|
1811 | done
|
---|
1812 | fi
|
---|
1813 | if test -z "$CC"; then
|
---|
1814 | ac_ct_CC=$CC
|
---|
1815 | for ac_prog in cl
|
---|
1816 | do
|
---|
1817 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1818 | set dummy $ac_prog; ac_word=$2
|
---|
1819 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1821 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1822 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1823 | else
|
---|
1824 | if test -n "$ac_ct_CC"; then
|
---|
1825 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1826 | else
|
---|
1827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1828 | for as_dir in $PATH
|
---|
1829 | do
|
---|
1830 | IFS=$as_save_IFS
|
---|
1831 | test -z "$as_dir" && as_dir=.
|
---|
1832 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1834 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1836 | break 2
|
---|
1837 | fi
|
---|
1838 | done
|
---|
1839 | done
|
---|
1840 |
|
---|
1841 | fi
|
---|
1842 | fi
|
---|
1843 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1844 | if test -n "$ac_ct_CC"; then
|
---|
1845 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1846 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1847 | else
|
---|
1848 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1849 | echo "${ECHO_T}no" >&6
|
---|
1850 | fi
|
---|
1851 |
|
---|
1852 | test -n "$ac_ct_CC" && break
|
---|
1853 | done
|
---|
1854 |
|
---|
1855 | CC=$ac_ct_CC
|
---|
1856 | fi
|
---|
1857 |
|
---|
1858 | fi
|
---|
1859 |
|
---|
1860 |
|
---|
1861 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1862 | See \`config.log' for more details." >&5
|
---|
1863 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1864 | See \`config.log' for more details." >&2;}
|
---|
1865 | { (exit 1); exit 1; }; }
|
---|
1866 |
|
---|
1867 | # Provide some information about the compiler.
|
---|
1868 | echo "$as_me:$LINENO:" \
|
---|
1869 | "checking for C compiler version" >&5
|
---|
1870 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1871 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1872 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
1873 | ac_status=$?
|
---|
1874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1875 | (exit $ac_status); }
|
---|
1876 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
1877 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
1878 | ac_status=$?
|
---|
1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1880 | (exit $ac_status); }
|
---|
1881 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1882 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1883 | ac_status=$?
|
---|
1884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1885 | (exit $ac_status); }
|
---|
1886 |
|
---|
1887 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1888 | /* confdefs.h. */
|
---|
1889 | _ACEOF
|
---|
1890 | cat confdefs.h >>conftest.$ac_ext
|
---|
1891 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1892 | /* end confdefs.h. */
|
---|
1893 |
|
---|
1894 | int
|
---|
1895 | main ()
|
---|
1896 | {
|
---|
1897 |
|
---|
1898 | ;
|
---|
1899 | return 0;
|
---|
1900 | }
|
---|
1901 | _ACEOF
|
---|
1902 | ac_clean_files_save=$ac_clean_files
|
---|
1903 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1904 | # Try to create an executable without -o first, disregard a.out.
|
---|
1905 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1906 | # of exeext.
|
---|
1907 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
1908 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
1909 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1910 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1911 | (eval $ac_link_default) 2>&5
|
---|
1912 | ac_status=$?
|
---|
1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1914 | (exit $ac_status); }; then
|
---|
1915 | # Find the output, starting from the most likely. This scheme is
|
---|
1916 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1917 | # resort.
|
---|
1918 |
|
---|
1919 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1920 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1921 | ac_cv_exeext=
|
---|
1922 | # b.out is created by i960 compilers.
|
---|
1923 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1924 | do
|
---|
1925 | test -f "$ac_file" || continue
|
---|
1926 | case $ac_file in
|
---|
1927 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1928 | ;;
|
---|
1929 | conftest.$ac_ext )
|
---|
1930 | # This is the source file.
|
---|
1931 | ;;
|
---|
1932 | [ab].out )
|
---|
1933 | # We found the default executable, but exeext='' is most
|
---|
1934 | # certainly right.
|
---|
1935 | break;;
|
---|
1936 | *.* )
|
---|
1937 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1938 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1939 | # but it would be cool to find out if it's true. Does anybody
|
---|
1940 | # maintain Libtool? --akim.
|
---|
1941 | export ac_cv_exeext
|
---|
1942 | break;;
|
---|
1943 | * )
|
---|
1944 | break;;
|
---|
1945 | esac
|
---|
1946 | done
|
---|
1947 | else
|
---|
1948 | echo "$as_me: failed program was:" >&5
|
---|
1949 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1950 |
|
---|
1951 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
1952 | See \`config.log' for more details." >&5
|
---|
1953 | echo "$as_me: error: C compiler cannot create executables
|
---|
1954 | See \`config.log' for more details." >&2;}
|
---|
1955 | { (exit 77); exit 77; }; }
|
---|
1956 | fi
|
---|
1957 |
|
---|
1958 | ac_exeext=$ac_cv_exeext
|
---|
1959 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1960 | echo "${ECHO_T}$ac_file" >&6
|
---|
1961 |
|
---|
1962 | # Check the compiler produces executables we can run. If not, either
|
---|
1963 | # the compiler is broken, or we cross compile.
|
---|
1964 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
1965 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1966 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1967 | # If not cross compiling, check that we can run a simple program.
|
---|
1968 | if test "$cross_compiling" != yes; then
|
---|
1969 | if { ac_try='./$ac_file'
|
---|
1970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1971 | (eval $ac_try) 2>&5
|
---|
1972 | ac_status=$?
|
---|
1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1974 | (exit $ac_status); }; }; then
|
---|
1975 | cross_compiling=no
|
---|
1976 | else
|
---|
1977 | if test "$cross_compiling" = maybe; then
|
---|
1978 | cross_compiling=yes
|
---|
1979 | else
|
---|
1980 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
1981 | If you meant to cross compile, use \`--host'.
|
---|
1982 | See \`config.log' for more details." >&5
|
---|
1983 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1984 | If you meant to cross compile, use \`--host'.
|
---|
1985 | See \`config.log' for more details." >&2;}
|
---|
1986 | { (exit 1); exit 1; }; }
|
---|
1987 | fi
|
---|
1988 | fi
|
---|
1989 | fi
|
---|
1990 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1991 | echo "${ECHO_T}yes" >&6
|
---|
1992 |
|
---|
1993 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1994 | ac_clean_files=$ac_clean_files_save
|
---|
1995 | # Check the compiler produces executables we can run. If not, either
|
---|
1996 | # the compiler is broken, or we cross compile.
|
---|
1997 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
1998 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1999 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2000 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
2001 |
|
---|
2002 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2003 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
2004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
2005 | (eval $ac_link) 2>&5
|
---|
2006 | ac_status=$?
|
---|
2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2008 | (exit $ac_status); }; then
|
---|
2009 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2010 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2011 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2012 | # `rm'.
|
---|
2013 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2014 | test -f "$ac_file" || continue
|
---|
2015 | case $ac_file in
|
---|
2016 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
2017 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2018 | export ac_cv_exeext
|
---|
2019 | break;;
|
---|
2020 | * ) break;;
|
---|
2021 | esac
|
---|
2022 | done
|
---|
2023 | else
|
---|
2024 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2025 | See \`config.log' for more details." >&5
|
---|
2026 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2027 | See \`config.log' for more details." >&2;}
|
---|
2028 | { (exit 1); exit 1; }; }
|
---|
2029 | fi
|
---|
2030 |
|
---|
2031 | rm -f conftest$ac_cv_exeext
|
---|
2032 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2033 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
2034 |
|
---|
2035 | rm -f conftest.$ac_ext
|
---|
2036 | EXEEXT=$ac_cv_exeext
|
---|
2037 | ac_exeext=$EXEEXT
|
---|
2038 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2039 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
2040 | if test "${ac_cv_objext+set}" = set; then
|
---|
2041 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2042 | else
|
---|
2043 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2044 | /* confdefs.h. */
|
---|
2045 | _ACEOF
|
---|
2046 | cat confdefs.h >>conftest.$ac_ext
|
---|
2047 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2048 | /* end confdefs.h. */
|
---|
2049 |
|
---|
2050 | int
|
---|
2051 | main ()
|
---|
2052 | {
|
---|
2053 |
|
---|
2054 | ;
|
---|
2055 | return 0;
|
---|
2056 | }
|
---|
2057 | _ACEOF
|
---|
2058 | rm -f conftest.o conftest.obj
|
---|
2059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2060 | (eval $ac_compile) 2>&5
|
---|
2061 | ac_status=$?
|
---|
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2063 | (exit $ac_status); }; then
|
---|
2064 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
2065 | case $ac_file in
|
---|
2066 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
2067 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2068 | break;;
|
---|
2069 | esac
|
---|
2070 | done
|
---|
2071 | else
|
---|
2072 | echo "$as_me: failed program was:" >&5
|
---|
2073 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2074 |
|
---|
2075 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2076 | See \`config.log' for more details." >&5
|
---|
2077 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2078 | See \`config.log' for more details." >&2;}
|
---|
2079 | { (exit 1); exit 1; }; }
|
---|
2080 | fi
|
---|
2081 |
|
---|
2082 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2083 | fi
|
---|
2084 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2085 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
2086 | OBJEXT=$ac_cv_objext
|
---|
2087 | ac_objext=$OBJEXT
|
---|
2088 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2089 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
2090 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2092 | else
|
---|
2093 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2094 | /* confdefs.h. */
|
---|
2095 | _ACEOF
|
---|
2096 | cat confdefs.h >>conftest.$ac_ext
|
---|
2097 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2098 | /* end confdefs.h. */
|
---|
2099 |
|
---|
2100 | int
|
---|
2101 | main ()
|
---|
2102 | {
|
---|
2103 | #ifndef __GNUC__
|
---|
2104 | choke me
|
---|
2105 | #endif
|
---|
2106 |
|
---|
2107 | ;
|
---|
2108 | return 0;
|
---|
2109 | }
|
---|
2110 | _ACEOF
|
---|
2111 | rm -f conftest.$ac_objext
|
---|
2112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2113 | (eval $ac_compile) 2>conftest.er1
|
---|
2114 | ac_status=$?
|
---|
2115 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2116 | rm -f conftest.er1
|
---|
2117 | cat conftest.err >&5
|
---|
2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2119 | (exit $ac_status); } &&
|
---|
2120 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2121 | || test ! -s conftest.err'
|
---|
2122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2123 | (eval $ac_try) 2>&5
|
---|
2124 | ac_status=$?
|
---|
2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2126 | (exit $ac_status); }; } &&
|
---|
2127 | { ac_try='test -s conftest.$ac_objext'
|
---|
2128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2129 | (eval $ac_try) 2>&5
|
---|
2130 | ac_status=$?
|
---|
2131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2132 | (exit $ac_status); }; }; then
|
---|
2133 | ac_compiler_gnu=yes
|
---|
2134 | else
|
---|
2135 | echo "$as_me: failed program was:" >&5
|
---|
2136 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2137 |
|
---|
2138 | ac_compiler_gnu=no
|
---|
2139 | fi
|
---|
2140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2141 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2142 |
|
---|
2143 | fi
|
---|
2144 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2145 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2146 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2147 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2148 | ac_save_CFLAGS=$CFLAGS
|
---|
2149 | CFLAGS="-g"
|
---|
2150 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2151 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2152 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2153 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2154 | else
|
---|
2155 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2156 | /* confdefs.h. */
|
---|
2157 | _ACEOF
|
---|
2158 | cat confdefs.h >>conftest.$ac_ext
|
---|
2159 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2160 | /* end confdefs.h. */
|
---|
2161 |
|
---|
2162 | int
|
---|
2163 | main ()
|
---|
2164 | {
|
---|
2165 |
|
---|
2166 | ;
|
---|
2167 | return 0;
|
---|
2168 | }
|
---|
2169 | _ACEOF
|
---|
2170 | rm -f conftest.$ac_objext
|
---|
2171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2172 | (eval $ac_compile) 2>conftest.er1
|
---|
2173 | ac_status=$?
|
---|
2174 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2175 | rm -f conftest.er1
|
---|
2176 | cat conftest.err >&5
|
---|
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2178 | (exit $ac_status); } &&
|
---|
2179 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2180 | || test ! -s conftest.err'
|
---|
2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2182 | (eval $ac_try) 2>&5
|
---|
2183 | ac_status=$?
|
---|
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2185 | (exit $ac_status); }; } &&
|
---|
2186 | { ac_try='test -s conftest.$ac_objext'
|
---|
2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2188 | (eval $ac_try) 2>&5
|
---|
2189 | ac_status=$?
|
---|
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2191 | (exit $ac_status); }; }; then
|
---|
2192 | ac_cv_prog_cc_g=yes
|
---|
2193 | else
|
---|
2194 | echo "$as_me: failed program was:" >&5
|
---|
2195 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2196 |
|
---|
2197 | ac_cv_prog_cc_g=no
|
---|
2198 | fi
|
---|
2199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2200 | fi
|
---|
2201 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2202 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2203 | if test "$ac_test_CFLAGS" = set; then
|
---|
2204 | CFLAGS=$ac_save_CFLAGS
|
---|
2205 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2206 | if test "$GCC" = yes; then
|
---|
2207 | CFLAGS="-g -O2"
|
---|
2208 | else
|
---|
2209 | CFLAGS="-g"
|
---|
2210 | fi
|
---|
2211 | else
|
---|
2212 | if test "$GCC" = yes; then
|
---|
2213 | CFLAGS="-O2"
|
---|
2214 | else
|
---|
2215 | CFLAGS=
|
---|
2216 | fi
|
---|
2217 | fi
|
---|
2218 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2219 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2220 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2221 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2222 | else
|
---|
2223 | ac_cv_prog_cc_stdc=no
|
---|
2224 | ac_save_CC=$CC
|
---|
2225 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2226 | /* confdefs.h. */
|
---|
2227 | _ACEOF
|
---|
2228 | cat confdefs.h >>conftest.$ac_ext
|
---|
2229 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2230 | /* end confdefs.h. */
|
---|
2231 | #include <stdarg.h>
|
---|
2232 | #include <stdio.h>
|
---|
2233 | #include <sys/types.h>
|
---|
2234 | #include <sys/stat.h>
|
---|
2235 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2236 | struct buf { int x; };
|
---|
2237 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2238 | static char *e (p, i)
|
---|
2239 | char **p;
|
---|
2240 | int i;
|
---|
2241 | {
|
---|
2242 | return p[i];
|
---|
2243 | }
|
---|
2244 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2245 | {
|
---|
2246 | char *s;
|
---|
2247 | va_list v;
|
---|
2248 | va_start (v,p);
|
---|
2249 | s = g (p, va_arg (v,int));
|
---|
2250 | va_end (v);
|
---|
2251 | return s;
|
---|
2252 | }
|
---|
2253 |
|
---|
2254 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2255 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2256 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2257 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2258 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2259 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2260 | that's true only with -std1. */
|
---|
2261 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2262 |
|
---|
2263 | int test (int i, double x);
|
---|
2264 | struct s1 {int (*f) (int a);};
|
---|
2265 | struct s2 {int (*f) (double a);};
|
---|
2266 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2267 | int argc;
|
---|
2268 | char **argv;
|
---|
2269 | int
|
---|
2270 | main ()
|
---|
2271 | {
|
---|
2272 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2273 | ;
|
---|
2274 | return 0;
|
---|
2275 | }
|
---|
2276 | _ACEOF
|
---|
2277 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2278 | # breaks some systems' header files.
|
---|
2279 | # AIX -qlanglvl=ansi
|
---|
2280 | # Ultrix and OSF/1 -std1
|
---|
2281 | # HP-UX 10.20 and later -Ae
|
---|
2282 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2283 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2284 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2285 | do
|
---|
2286 | CC="$ac_save_CC $ac_arg"
|
---|
2287 | rm -f conftest.$ac_objext
|
---|
2288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2289 | (eval $ac_compile) 2>conftest.er1
|
---|
2290 | ac_status=$?
|
---|
2291 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2292 | rm -f conftest.er1
|
---|
2293 | cat conftest.err >&5
|
---|
2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2295 | (exit $ac_status); } &&
|
---|
2296 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2297 | || test ! -s conftest.err'
|
---|
2298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2299 | (eval $ac_try) 2>&5
|
---|
2300 | ac_status=$?
|
---|
2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2302 | (exit $ac_status); }; } &&
|
---|
2303 | { ac_try='test -s conftest.$ac_objext'
|
---|
2304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2305 | (eval $ac_try) 2>&5
|
---|
2306 | ac_status=$?
|
---|
2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2308 | (exit $ac_status); }; }; then
|
---|
2309 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2310 | break
|
---|
2311 | else
|
---|
2312 | echo "$as_me: failed program was:" >&5
|
---|
2313 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2314 |
|
---|
2315 | fi
|
---|
2316 | rm -f conftest.err conftest.$ac_objext
|
---|
2317 | done
|
---|
2318 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2319 | CC=$ac_save_CC
|
---|
2320 |
|
---|
2321 | fi
|
---|
2322 |
|
---|
2323 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2324 | x|xno)
|
---|
2325 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2326 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2327 | *)
|
---|
2328 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2329 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2330 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2331 | esac
|
---|
2332 |
|
---|
2333 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2334 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2335 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2336 | # the declaration of exit, since it's the most demanding environment.
|
---|
2337 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2338 | #ifndef __cplusplus
|
---|
2339 | choke me
|
---|
2340 | #endif
|
---|
2341 | _ACEOF
|
---|
2342 | rm -f conftest.$ac_objext
|
---|
2343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2344 | (eval $ac_compile) 2>conftest.er1
|
---|
2345 | ac_status=$?
|
---|
2346 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2347 | rm -f conftest.er1
|
---|
2348 | cat conftest.err >&5
|
---|
2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2350 | (exit $ac_status); } &&
|
---|
2351 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2352 | || test ! -s conftest.err'
|
---|
2353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2354 | (eval $ac_try) 2>&5
|
---|
2355 | ac_status=$?
|
---|
2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2357 | (exit $ac_status); }; } &&
|
---|
2358 | { ac_try='test -s conftest.$ac_objext'
|
---|
2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2360 | (eval $ac_try) 2>&5
|
---|
2361 | ac_status=$?
|
---|
2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2363 | (exit $ac_status); }; }; then
|
---|
2364 | for ac_declaration in \
|
---|
2365 | '' \
|
---|
2366 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2367 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2368 | 'extern "C" void exit (int) throw ();' \
|
---|
2369 | 'extern "C" void exit (int);' \
|
---|
2370 | 'void exit (int);'
|
---|
2371 | do
|
---|
2372 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2373 | /* confdefs.h. */
|
---|
2374 | _ACEOF
|
---|
2375 | cat confdefs.h >>conftest.$ac_ext
|
---|
2376 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2377 | /* end confdefs.h. */
|
---|
2378 | $ac_declaration
|
---|
2379 | #include <stdlib.h>
|
---|
2380 | int
|
---|
2381 | main ()
|
---|
2382 | {
|
---|
2383 | exit (42);
|
---|
2384 | ;
|
---|
2385 | return 0;
|
---|
2386 | }
|
---|
2387 | _ACEOF
|
---|
2388 | rm -f conftest.$ac_objext
|
---|
2389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2390 | (eval $ac_compile) 2>conftest.er1
|
---|
2391 | ac_status=$?
|
---|
2392 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2393 | rm -f conftest.er1
|
---|
2394 | cat conftest.err >&5
|
---|
2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2396 | (exit $ac_status); } &&
|
---|
2397 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2398 | || test ! -s conftest.err'
|
---|
2399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2400 | (eval $ac_try) 2>&5
|
---|
2401 | ac_status=$?
|
---|
2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2403 | (exit $ac_status); }; } &&
|
---|
2404 | { ac_try='test -s conftest.$ac_objext'
|
---|
2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2406 | (eval $ac_try) 2>&5
|
---|
2407 | ac_status=$?
|
---|
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2409 | (exit $ac_status); }; }; then
|
---|
2410 | :
|
---|
2411 | else
|
---|
2412 | echo "$as_me: failed program was:" >&5
|
---|
2413 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2414 |
|
---|
2415 | continue
|
---|
2416 | fi
|
---|
2417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2418 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2419 | /* confdefs.h. */
|
---|
2420 | _ACEOF
|
---|
2421 | cat confdefs.h >>conftest.$ac_ext
|
---|
2422 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2423 | /* end confdefs.h. */
|
---|
2424 | $ac_declaration
|
---|
2425 | int
|
---|
2426 | main ()
|
---|
2427 | {
|
---|
2428 | exit (42);
|
---|
2429 | ;
|
---|
2430 | return 0;
|
---|
2431 | }
|
---|
2432 | _ACEOF
|
---|
2433 | rm -f conftest.$ac_objext
|
---|
2434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2435 | (eval $ac_compile) 2>conftest.er1
|
---|
2436 | ac_status=$?
|
---|
2437 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2438 | rm -f conftest.er1
|
---|
2439 | cat conftest.err >&5
|
---|
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2441 | (exit $ac_status); } &&
|
---|
2442 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2443 | || test ! -s conftest.err'
|
---|
2444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2445 | (eval $ac_try) 2>&5
|
---|
2446 | ac_status=$?
|
---|
2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2448 | (exit $ac_status); }; } &&
|
---|
2449 | { ac_try='test -s conftest.$ac_objext'
|
---|
2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2451 | (eval $ac_try) 2>&5
|
---|
2452 | ac_status=$?
|
---|
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2454 | (exit $ac_status); }; }; then
|
---|
2455 | break
|
---|
2456 | else
|
---|
2457 | echo "$as_me: failed program was:" >&5
|
---|
2458 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2459 |
|
---|
2460 | fi
|
---|
2461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2462 | done
|
---|
2463 | rm -f conftest*
|
---|
2464 | if test -n "$ac_declaration"; then
|
---|
2465 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2466 | echo $ac_declaration >>confdefs.h
|
---|
2467 | echo '#endif' >>confdefs.h
|
---|
2468 | fi
|
---|
2469 |
|
---|
2470 | else
|
---|
2471 | echo "$as_me: failed program was:" >&5
|
---|
2472 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2473 |
|
---|
2474 | fi
|
---|
2475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2476 | ac_ext=c
|
---|
2477 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2481 |
|
---|
2482 | ac_ext=cc
|
---|
2483 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2484 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2485 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2486 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2487 | if test -n "$ac_tool_prefix"; then
|
---|
2488 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2489 | do
|
---|
2490 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2491 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2492 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2494 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
2495 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2496 | else
|
---|
2497 | if test -n "$CXX"; then
|
---|
2498 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2499 | else
|
---|
2500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2501 | for as_dir in $PATH
|
---|
2502 | do
|
---|
2503 | IFS=$as_save_IFS
|
---|
2504 | test -z "$as_dir" && as_dir=.
|
---|
2505 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2507 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2509 | break 2
|
---|
2510 | fi
|
---|
2511 | done
|
---|
2512 | done
|
---|
2513 |
|
---|
2514 | fi
|
---|
2515 | fi
|
---|
2516 | CXX=$ac_cv_prog_CXX
|
---|
2517 | if test -n "$CXX"; then
|
---|
2518 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2519 | echo "${ECHO_T}$CXX" >&6
|
---|
2520 | else
|
---|
2521 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2522 | echo "${ECHO_T}no" >&6
|
---|
2523 | fi
|
---|
2524 |
|
---|
2525 | test -n "$CXX" && break
|
---|
2526 | done
|
---|
2527 | fi
|
---|
2528 | if test -z "$CXX"; then
|
---|
2529 | ac_ct_CXX=$CXX
|
---|
2530 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2531 | do
|
---|
2532 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2533 | set dummy $ac_prog; ac_word=$2
|
---|
2534 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2536 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2537 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2538 | else
|
---|
2539 | if test -n "$ac_ct_CXX"; then
|
---|
2540 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2541 | else
|
---|
2542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2543 | for as_dir in $PATH
|
---|
2544 | do
|
---|
2545 | IFS=$as_save_IFS
|
---|
2546 | test -z "$as_dir" && as_dir=.
|
---|
2547 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2549 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2551 | break 2
|
---|
2552 | fi
|
---|
2553 | done
|
---|
2554 | done
|
---|
2555 |
|
---|
2556 | fi
|
---|
2557 | fi
|
---|
2558 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2559 | if test -n "$ac_ct_CXX"; then
|
---|
2560 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
2561 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
2562 | else
|
---|
2563 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2564 | echo "${ECHO_T}no" >&6
|
---|
2565 | fi
|
---|
2566 |
|
---|
2567 | test -n "$ac_ct_CXX" && break
|
---|
2568 | done
|
---|
2569 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
2570 |
|
---|
2571 | CXX=$ac_ct_CXX
|
---|
2572 | fi
|
---|
2573 |
|
---|
2574 |
|
---|
2575 | # Provide some information about the compiler.
|
---|
2576 | echo "$as_me:$LINENO:" \
|
---|
2577 | "checking for C++ compiler version" >&5
|
---|
2578 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2579 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2580 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2581 | ac_status=$?
|
---|
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2583 | (exit $ac_status); }
|
---|
2584 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2585 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2586 | ac_status=$?
|
---|
2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2588 | (exit $ac_status); }
|
---|
2589 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2590 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2591 | ac_status=$?
|
---|
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2593 | (exit $ac_status); }
|
---|
2594 |
|
---|
2595 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
2596 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
2597 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
2598 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2599 | else
|
---|
2600 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2601 | /* confdefs.h. */
|
---|
2602 | _ACEOF
|
---|
2603 | cat confdefs.h >>conftest.$ac_ext
|
---|
2604 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2605 | /* end confdefs.h. */
|
---|
2606 |
|
---|
2607 | int
|
---|
2608 | main ()
|
---|
2609 | {
|
---|
2610 | #ifndef __GNUC__
|
---|
2611 | choke me
|
---|
2612 | #endif
|
---|
2613 |
|
---|
2614 | ;
|
---|
2615 | return 0;
|
---|
2616 | }
|
---|
2617 | _ACEOF
|
---|
2618 | rm -f conftest.$ac_objext
|
---|
2619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2620 | (eval $ac_compile) 2>conftest.er1
|
---|
2621 | ac_status=$?
|
---|
2622 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2623 | rm -f conftest.er1
|
---|
2624 | cat conftest.err >&5
|
---|
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2626 | (exit $ac_status); } &&
|
---|
2627 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2628 | || test ! -s conftest.err'
|
---|
2629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2630 | (eval $ac_try) 2>&5
|
---|
2631 | ac_status=$?
|
---|
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2633 | (exit $ac_status); }; } &&
|
---|
2634 | { ac_try='test -s conftest.$ac_objext'
|
---|
2635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2636 | (eval $ac_try) 2>&5
|
---|
2637 | ac_status=$?
|
---|
2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2639 | (exit $ac_status); }; }; then
|
---|
2640 | ac_compiler_gnu=yes
|
---|
2641 | else
|
---|
2642 | echo "$as_me: failed program was:" >&5
|
---|
2643 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2644 |
|
---|
2645 | ac_compiler_gnu=no
|
---|
2646 | fi
|
---|
2647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2648 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2649 |
|
---|
2650 | fi
|
---|
2651 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2652 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
2653 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2654 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2655 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2656 | CXXFLAGS="-g"
|
---|
2657 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
2658 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
2659 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
2660 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2661 | else
|
---|
2662 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2663 | /* confdefs.h. */
|
---|
2664 | _ACEOF
|
---|
2665 | cat confdefs.h >>conftest.$ac_ext
|
---|
2666 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2667 | /* end confdefs.h. */
|
---|
2668 |
|
---|
2669 | int
|
---|
2670 | main ()
|
---|
2671 | {
|
---|
2672 |
|
---|
2673 | ;
|
---|
2674 | return 0;
|
---|
2675 | }
|
---|
2676 | _ACEOF
|
---|
2677 | rm -f conftest.$ac_objext
|
---|
2678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2679 | (eval $ac_compile) 2>conftest.er1
|
---|
2680 | ac_status=$?
|
---|
2681 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2682 | rm -f conftest.er1
|
---|
2683 | cat conftest.err >&5
|
---|
2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2685 | (exit $ac_status); } &&
|
---|
2686 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2687 | || test ! -s conftest.err'
|
---|
2688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2689 | (eval $ac_try) 2>&5
|
---|
2690 | ac_status=$?
|
---|
2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2692 | (exit $ac_status); }; } &&
|
---|
2693 | { ac_try='test -s conftest.$ac_objext'
|
---|
2694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2695 | (eval $ac_try) 2>&5
|
---|
2696 | ac_status=$?
|
---|
2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2698 | (exit $ac_status); }; }; then
|
---|
2699 | ac_cv_prog_cxx_g=yes
|
---|
2700 | else
|
---|
2701 | echo "$as_me: failed program was:" >&5
|
---|
2702 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2703 |
|
---|
2704 | ac_cv_prog_cxx_g=no
|
---|
2705 | fi
|
---|
2706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2707 | fi
|
---|
2708 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
2709 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
2710 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2711 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2712 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2713 | if test "$GXX" = yes; then
|
---|
2714 | CXXFLAGS="-g -O2"
|
---|
2715 | else
|
---|
2716 | CXXFLAGS="-g"
|
---|
2717 | fi
|
---|
2718 | else
|
---|
2719 | if test "$GXX" = yes; then
|
---|
2720 | CXXFLAGS="-O2"
|
---|
2721 | else
|
---|
2722 | CXXFLAGS=
|
---|
2723 | fi
|
---|
2724 | fi
|
---|
2725 | for ac_declaration in \
|
---|
2726 | '' \
|
---|
2727 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2728 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2729 | 'extern "C" void exit (int) throw ();' \
|
---|
2730 | 'extern "C" void exit (int);' \
|
---|
2731 | 'void exit (int);'
|
---|
2732 | do
|
---|
2733 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2734 | /* confdefs.h. */
|
---|
2735 | _ACEOF
|
---|
2736 | cat confdefs.h >>conftest.$ac_ext
|
---|
2737 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2738 | /* end confdefs.h. */
|
---|
2739 | $ac_declaration
|
---|
2740 | #include <stdlib.h>
|
---|
2741 | int
|
---|
2742 | main ()
|
---|
2743 | {
|
---|
2744 | exit (42);
|
---|
2745 | ;
|
---|
2746 | return 0;
|
---|
2747 | }
|
---|
2748 | _ACEOF
|
---|
2749 | rm -f conftest.$ac_objext
|
---|
2750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2751 | (eval $ac_compile) 2>conftest.er1
|
---|
2752 | ac_status=$?
|
---|
2753 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2754 | rm -f conftest.er1
|
---|
2755 | cat conftest.err >&5
|
---|
2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2757 | (exit $ac_status); } &&
|
---|
2758 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2759 | || test ! -s conftest.err'
|
---|
2760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2761 | (eval $ac_try) 2>&5
|
---|
2762 | ac_status=$?
|
---|
2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2764 | (exit $ac_status); }; } &&
|
---|
2765 | { ac_try='test -s conftest.$ac_objext'
|
---|
2766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2767 | (eval $ac_try) 2>&5
|
---|
2768 | ac_status=$?
|
---|
2769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2770 | (exit $ac_status); }; }; then
|
---|
2771 | :
|
---|
2772 | else
|
---|
2773 | echo "$as_me: failed program was:" >&5
|
---|
2774 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2775 |
|
---|
2776 | continue
|
---|
2777 | fi
|
---|
2778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2779 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2780 | /* confdefs.h. */
|
---|
2781 | _ACEOF
|
---|
2782 | cat confdefs.h >>conftest.$ac_ext
|
---|
2783 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2784 | /* end confdefs.h. */
|
---|
2785 | $ac_declaration
|
---|
2786 | int
|
---|
2787 | main ()
|
---|
2788 | {
|
---|
2789 | exit (42);
|
---|
2790 | ;
|
---|
2791 | return 0;
|
---|
2792 | }
|
---|
2793 | _ACEOF
|
---|
2794 | rm -f conftest.$ac_objext
|
---|
2795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2796 | (eval $ac_compile) 2>conftest.er1
|
---|
2797 | ac_status=$?
|
---|
2798 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2799 | rm -f conftest.er1
|
---|
2800 | cat conftest.err >&5
|
---|
2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2802 | (exit $ac_status); } &&
|
---|
2803 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2804 | || test ! -s conftest.err'
|
---|
2805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2806 | (eval $ac_try) 2>&5
|
---|
2807 | ac_status=$?
|
---|
2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2809 | (exit $ac_status); }; } &&
|
---|
2810 | { ac_try='test -s conftest.$ac_objext'
|
---|
2811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2812 | (eval $ac_try) 2>&5
|
---|
2813 | ac_status=$?
|
---|
2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2815 | (exit $ac_status); }; }; then
|
---|
2816 | break
|
---|
2817 | else
|
---|
2818 | echo "$as_me: failed program was:" >&5
|
---|
2819 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2820 |
|
---|
2821 | fi
|
---|
2822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2823 | done
|
---|
2824 | rm -f conftest*
|
---|
2825 | if test -n "$ac_declaration"; then
|
---|
2826 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2827 | echo $ac_declaration >>confdefs.h
|
---|
2828 | echo '#endif' >>confdefs.h
|
---|
2829 | fi
|
---|
2830 |
|
---|
2831 | ac_ext=c
|
---|
2832 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2836 |
|
---|
2837 | for ac_prog in gawk mawk nawk awk
|
---|
2838 | do
|
---|
2839 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2840 | set dummy $ac_prog; ac_word=$2
|
---|
2841 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2843 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
2844 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2845 | else
|
---|
2846 | if test -n "$AWK"; then
|
---|
2847 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2848 | else
|
---|
2849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2850 | for as_dir in $PATH
|
---|
2851 | do
|
---|
2852 | IFS=$as_save_IFS
|
---|
2853 | test -z "$as_dir" && as_dir=.
|
---|
2854 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2855 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2856 | ac_cv_prog_AWK="$ac_prog"
|
---|
2857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2858 | break 2
|
---|
2859 | fi
|
---|
2860 | done
|
---|
2861 | done
|
---|
2862 |
|
---|
2863 | fi
|
---|
2864 | fi
|
---|
2865 | AWK=$ac_cv_prog_AWK
|
---|
2866 | if test -n "$AWK"; then
|
---|
2867 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
2868 | echo "${ECHO_T}$AWK" >&6
|
---|
2869 | else
|
---|
2870 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2871 | echo "${ECHO_T}no" >&6
|
---|
2872 | fi
|
---|
2873 |
|
---|
2874 | test -n "$AWK" && break
|
---|
2875 | done
|
---|
2876 |
|
---|
2877 | for ac_prog in 'bison -y' byacc
|
---|
2878 | do
|
---|
2879 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2880 | set dummy $ac_prog; ac_word=$2
|
---|
2881 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2883 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
2884 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2885 | else
|
---|
2886 | if test -n "$YACC"; then
|
---|
2887 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
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 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2896 | ac_cv_prog_YACC="$ac_prog"
|
---|
2897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2898 | break 2
|
---|
2899 | fi
|
---|
2900 | done
|
---|
2901 | done
|
---|
2902 |
|
---|
2903 | fi
|
---|
2904 | fi
|
---|
2905 | YACC=$ac_cv_prog_YACC
|
---|
2906 | if test -n "$YACC"; then
|
---|
2907 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
2908 | echo "${ECHO_T}$YACC" >&6
|
---|
2909 | else
|
---|
2910 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2911 | echo "${ECHO_T}no" >&6
|
---|
2912 | fi
|
---|
2913 |
|
---|
2914 | test -n "$YACC" && break
|
---|
2915 | done
|
---|
2916 | test -n "$YACC" || YACC="yacc"
|
---|
2917 |
|
---|
2918 | ac_aux_dir=
|
---|
2919 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2920 | if test -f $ac_dir/install-sh; then
|
---|
2921 | ac_aux_dir=$ac_dir
|
---|
2922 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2923 | break
|
---|
2924 | elif test -f $ac_dir/install.sh; then
|
---|
2925 | ac_aux_dir=$ac_dir
|
---|
2926 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2927 | break
|
---|
2928 | elif test -f $ac_dir/shtool; then
|
---|
2929 | ac_aux_dir=$ac_dir
|
---|
2930 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2931 | break
|
---|
2932 | fi
|
---|
2933 | done
|
---|
2934 | if test -z "$ac_aux_dir"; then
|
---|
2935 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2936 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2937 | { (exit 1); exit 1; }; }
|
---|
2938 | fi
|
---|
2939 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2940 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2941 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2942 |
|
---|
2943 | # Make sure we can run config.sub.
|
---|
2944 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
2945 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
2946 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
2947 | { (exit 1); exit 1; }; }
|
---|
2948 |
|
---|
2949 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
2950 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
2951 | if test "${ac_cv_build+set}" = set; then
|
---|
2952 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2953 | else
|
---|
2954 | ac_cv_build_alias=$build_alias
|
---|
2955 | test -z "$ac_cv_build_alias" &&
|
---|
2956 | ac_cv_build_alias=`$ac_config_guess`
|
---|
2957 | test -z "$ac_cv_build_alias" &&
|
---|
2958 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
2959 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
2960 | { (exit 1); exit 1; }; }
|
---|
2961 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
2962 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
2963 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
2964 | { (exit 1); exit 1; }; }
|
---|
2965 |
|
---|
2966 | fi
|
---|
2967 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
2968 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
2969 | build=$ac_cv_build
|
---|
2970 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2971 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2972 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2973 |
|
---|
2974 |
|
---|
2975 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
2976 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
2977 | if test "${ac_cv_host+set}" = set; then
|
---|
2978 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2979 | else
|
---|
2980 | ac_cv_host_alias=$host_alias
|
---|
2981 | test -z "$ac_cv_host_alias" &&
|
---|
2982 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
2983 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
2984 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
2985 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
2986 | { (exit 1); exit 1; }; }
|
---|
2987 |
|
---|
2988 | fi
|
---|
2989 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
2990 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
2991 | host=$ac_cv_host
|
---|
2992 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2993 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2994 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2995 |
|
---|
2996 |
|
---|
2997 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
2998 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
2999 | if test "${ac_cv_target+set}" = set; then
|
---|
3000 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3001 | else
|
---|
3002 | ac_cv_target_alias=$target_alias
|
---|
3003 | test "x$ac_cv_target_alias" = "x" &&
|
---|
3004 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
3005 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
3006 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
3007 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
3008 | { (exit 1); exit 1; }; }
|
---|
3009 |
|
---|
3010 | fi
|
---|
3011 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
3012 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
3013 | target=$ac_cv_target
|
---|
3014 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
3015 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
3016 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
3017 |
|
---|
3018 |
|
---|
3019 | # The aliases save the names the user supplied, while $host etc.
|
---|
3020 | # will get canonicalized.
|
---|
3021 | test -n "$target_alias" &&
|
---|
3022 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
3023 | NONENONEs,x,x, &&
|
---|
3024 | program_prefix=${target_alias}-
|
---|
3025 | # Find a good install program. We prefer a C program (faster),
|
---|
3026 | # so one script is as good as another. But avoid the broken or
|
---|
3027 | # incompatible versions:
|
---|
3028 | # SysV /etc/install, /usr/sbin/install
|
---|
3029 | # SunOS /usr/etc/install
|
---|
3030 | # IRIX /sbin/install
|
---|
3031 | # AIX /bin/install
|
---|
3032 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3033 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3034 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3035 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3036 | # OS/2's system install, which has a completely different semantic
|
---|
3037 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3038 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
3039 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
3040 | if test -z "$INSTALL"; then
|
---|
3041 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3042 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3043 | else
|
---|
3044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3045 | for as_dir in $PATH
|
---|
3046 | do
|
---|
3047 | IFS=$as_save_IFS
|
---|
3048 | test -z "$as_dir" && as_dir=.
|
---|
3049 | # Account for people who put trailing slashes in PATH elements.
|
---|
3050 | case $as_dir/ in
|
---|
3051 | ./ | .// | /cC/* | \
|
---|
3052 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3053 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
3054 | /usr/ucb/* ) ;;
|
---|
3055 | *)
|
---|
3056 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3057 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3058 | # by default.
|
---|
3059 | for ac_prog in ginstall scoinst install; do
|
---|
3060 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3061 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
3062 | if test $ac_prog = install &&
|
---|
3063 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3064 | # AIX install. It has an incompatible calling convention.
|
---|
3065 | :
|
---|
3066 | elif test $ac_prog = install &&
|
---|
3067 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3068 | # program-specific install script used by HP pwplus--don't use.
|
---|
3069 | :
|
---|
3070 | else
|
---|
3071 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3072 | break 3
|
---|
3073 | fi
|
---|
3074 | fi
|
---|
3075 | done
|
---|
3076 | done
|
---|
3077 | ;;
|
---|
3078 | esac
|
---|
3079 | done
|
---|
3080 |
|
---|
3081 |
|
---|
3082 | fi
|
---|
3083 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3084 | INSTALL=$ac_cv_path_install
|
---|
3085 | else
|
---|
3086 | # As a last resort, use the slow shell script. We don't cache a
|
---|
3087 | # path for INSTALL within a source directory, because that will
|
---|
3088 | # break other packages using the cache if that directory is
|
---|
3089 | # removed, or if the path is relative.
|
---|
3090 | INSTALL=$ac_install_sh
|
---|
3091 | fi
|
---|
3092 | fi
|
---|
3093 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
3094 | echo "${ECHO_T}$INSTALL" >&6
|
---|
3095 |
|
---|
3096 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3097 | # It thinks the first close brace ends the variable substitution.
|
---|
3098 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3099 |
|
---|
3100 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3101 |
|
---|
3102 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3103 |
|
---|
3104 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
3105 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
3106 | LN_S=$as_ln_s
|
---|
3107 | if test "$LN_S" = "ln -s"; then
|
---|
3108 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3109 | echo "${ECHO_T}yes" >&6
|
---|
3110 | else
|
---|
3111 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
3112 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
3113 | fi
|
---|
3114 |
|
---|
3115 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3116 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
3117 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
3118 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
3119 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3120 | else
|
---|
3121 | cat >conftest.make <<\_ACEOF
|
---|
3122 | all:
|
---|
3123 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
3124 | _ACEOF
|
---|
3125 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3126 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
3127 | if test -n "$ac_maketemp"; then
|
---|
3128 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
3129 | else
|
---|
3130 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
3131 | fi
|
---|
3132 | rm -f conftest.make
|
---|
3133 | fi
|
---|
3134 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
3135 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3136 | echo "${ECHO_T}yes" >&6
|
---|
3137 | SET_MAKE=
|
---|
3138 | else
|
---|
3139 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3140 | echo "${ECHO_T}no" >&6
|
---|
3141 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3142 | fi
|
---|
3143 |
|
---|
3144 | if test -n "$ac_tool_prefix"; then
|
---|
3145 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3146 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3147 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3149 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
3150 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3151 | else
|
---|
3152 | if test -n "$RANLIB"; then
|
---|
3153 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3154 | else
|
---|
3155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3156 | for as_dir in $PATH
|
---|
3157 | do
|
---|
3158 | IFS=$as_save_IFS
|
---|
3159 | test -z "$as_dir" && as_dir=.
|
---|
3160 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3162 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3164 | break 2
|
---|
3165 | fi
|
---|
3166 | done
|
---|
3167 | done
|
---|
3168 |
|
---|
3169 | fi
|
---|
3170 | fi
|
---|
3171 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3172 | if test -n "$RANLIB"; then
|
---|
3173 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
3174 | echo "${ECHO_T}$RANLIB" >&6
|
---|
3175 | else
|
---|
3176 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3177 | echo "${ECHO_T}no" >&6
|
---|
3178 | fi
|
---|
3179 |
|
---|
3180 | fi
|
---|
3181 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3182 | ac_ct_RANLIB=$RANLIB
|
---|
3183 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3184 | set dummy ranlib; ac_word=$2
|
---|
3185 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3187 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
3188 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3189 | else
|
---|
3190 | if test -n "$ac_ct_RANLIB"; then
|
---|
3191 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3192 | else
|
---|
3193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3194 | for as_dir in $PATH
|
---|
3195 | do
|
---|
3196 | IFS=$as_save_IFS
|
---|
3197 | test -z "$as_dir" && as_dir=.
|
---|
3198 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3200 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3202 | break 2
|
---|
3203 | fi
|
---|
3204 | done
|
---|
3205 | done
|
---|
3206 |
|
---|
3207 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
3208 | fi
|
---|
3209 | fi
|
---|
3210 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3211 | if test -n "$ac_ct_RANLIB"; then
|
---|
3212 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3213 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
3214 | else
|
---|
3215 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3216 | echo "${ECHO_T}no" >&6
|
---|
3217 | fi
|
---|
3218 |
|
---|
3219 | RANLIB=$ac_ct_RANLIB
|
---|
3220 | else
|
---|
3221 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3222 | fi
|
---|
3223 |
|
---|
3224 |
|
---|
3225 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
3226 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
3227 | arch_64bit=no
|
---|
3228 | case "$host_cpu" in
|
---|
3229 | x86_64) arch_64bit=yes ;;
|
---|
3230 | esac
|
---|
3231 |
|
---|
3232 | if test "$arch_64bit" = yes; then
|
---|
3233 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3234 | echo "${ECHO_T}yes" >&6
|
---|
3235 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3236 | COMPAT32BITFLAGS="-m32"
|
---|
3237 | fi
|
---|
3238 | else
|
---|
3239 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3240 | echo "${ECHO_T}no" >&6
|
---|
3241 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3242 | COMPAT32BITFLAGS=
|
---|
3243 | fi
|
---|
3244 | fi
|
---|
3245 | export COMPAT32BITFLAGS
|
---|
3246 |
|
---|
3247 |
|
---|
3248 |
|
---|
3249 | #moved CORBA MICO directory test to get version of MICO
|
---|
3250 | if test $USE_CORBA = 1; then
|
---|
3251 |
|
---|
3252 | if test $MICO_DIR = "default"; then
|
---|
3253 | #do something
|
---|
3254 | MICO_INC="-I packages/mico/mico/include"
|
---|
3255 | else
|
---|
3256 | #build the micotest program
|
---|
3257 | MICO_INC= ""
|
---|
3258 | if test $MICO_DIR != yes; then
|
---|
3259 | MICO_INC="-I $MICO_DIR"
|
---|
3260 | fi
|
---|
3261 | fi
|
---|
3262 |
|
---|
3263 | #get MICO_VER value
|
---|
3264 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
3265 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
3266 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
3267 | sh -c "rm micotest"
|
---|
3268 | sh -c "rm micotest.o"
|
---|
3269 |
|
---|
3270 | #do test of MICO_VER
|
---|
3271 | if test MICO_VER != 0; then
|
---|
3272 | cat >>confdefs.h <<\_ACEOF
|
---|
3273 | #define MICO_VER 1
|
---|
3274 | _ACEOF
|
---|
3275 |
|
---|
3276 |
|
---|
3277 | fi
|
---|
3278 | #end USE_CORBA test
|
---|
3279 | fi
|
---|
3280 |
|
---|
3281 |
|
---|
3282 | ac_ext=c
|
---|
3283 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3287 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3288 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
3289 | # On Suns, sometimes $CPP names a directory.
|
---|
3290 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3291 | CPP=
|
---|
3292 | fi
|
---|
3293 | if test -z "$CPP"; then
|
---|
3294 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3295 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3296 | else
|
---|
3297 | # Double quotes because CPP needs to be expanded
|
---|
3298 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3299 | do
|
---|
3300 | ac_preproc_ok=false
|
---|
3301 | for ac_c_preproc_warn_flag in '' yes
|
---|
3302 | do
|
---|
3303 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3304 | # with a fresh cross-compiler works.
|
---|
3305 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3306 | # <limits.h> exists even on freestanding compilers.
|
---|
3307 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3308 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3309 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3310 | /* confdefs.h. */
|
---|
3311 | _ACEOF
|
---|
3312 | cat confdefs.h >>conftest.$ac_ext
|
---|
3313 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3314 | /* end confdefs.h. */
|
---|
3315 | #ifdef __STDC__
|
---|
3316 | # include <limits.h>
|
---|
3317 | #else
|
---|
3318 | # include <assert.h>
|
---|
3319 | #endif
|
---|
3320 | Syntax error
|
---|
3321 | _ACEOF
|
---|
3322 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3323 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3324 | ac_status=$?
|
---|
3325 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3326 | rm -f conftest.er1
|
---|
3327 | cat conftest.err >&5
|
---|
3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3329 | (exit $ac_status); } >/dev/null; then
|
---|
3330 | if test -s conftest.err; then
|
---|
3331 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3332 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3333 | else
|
---|
3334 | ac_cpp_err=
|
---|
3335 | fi
|
---|
3336 | else
|
---|
3337 | ac_cpp_err=yes
|
---|
3338 | fi
|
---|
3339 | if test -z "$ac_cpp_err"; then
|
---|
3340 | :
|
---|
3341 | else
|
---|
3342 | echo "$as_me: failed program was:" >&5
|
---|
3343 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3344 |
|
---|
3345 | # Broken: fails on valid input.
|
---|
3346 | continue
|
---|
3347 | fi
|
---|
3348 | rm -f conftest.err conftest.$ac_ext
|
---|
3349 |
|
---|
3350 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3351 | # can be detected and how.
|
---|
3352 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3353 | /* confdefs.h. */
|
---|
3354 | _ACEOF
|
---|
3355 | cat confdefs.h >>conftest.$ac_ext
|
---|
3356 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3357 | /* end confdefs.h. */
|
---|
3358 | #include <ac_nonexistent.h>
|
---|
3359 | _ACEOF
|
---|
3360 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3361 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3362 | ac_status=$?
|
---|
3363 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3364 | rm -f conftest.er1
|
---|
3365 | cat conftest.err >&5
|
---|
3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3367 | (exit $ac_status); } >/dev/null; then
|
---|
3368 | if test -s conftest.err; then
|
---|
3369 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3370 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3371 | else
|
---|
3372 | ac_cpp_err=
|
---|
3373 | fi
|
---|
3374 | else
|
---|
3375 | ac_cpp_err=yes
|
---|
3376 | fi
|
---|
3377 | if test -z "$ac_cpp_err"; then
|
---|
3378 | # Broken: success on invalid input.
|
---|
3379 | continue
|
---|
3380 | else
|
---|
3381 | echo "$as_me: failed program was:" >&5
|
---|
3382 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3383 |
|
---|
3384 | # Passes both tests.
|
---|
3385 | ac_preproc_ok=:
|
---|
3386 | break
|
---|
3387 | fi
|
---|
3388 | rm -f conftest.err conftest.$ac_ext
|
---|
3389 |
|
---|
3390 | done
|
---|
3391 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3392 | rm -f conftest.err conftest.$ac_ext
|
---|
3393 | if $ac_preproc_ok; then
|
---|
3394 | break
|
---|
3395 | fi
|
---|
3396 |
|
---|
3397 | done
|
---|
3398 | ac_cv_prog_CPP=$CPP
|
---|
3399 |
|
---|
3400 | fi
|
---|
3401 | CPP=$ac_cv_prog_CPP
|
---|
3402 | else
|
---|
3403 | ac_cv_prog_CPP=$CPP
|
---|
3404 | fi
|
---|
3405 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
3406 | echo "${ECHO_T}$CPP" >&6
|
---|
3407 | ac_preproc_ok=false
|
---|
3408 | for ac_c_preproc_warn_flag in '' yes
|
---|
3409 | do
|
---|
3410 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3411 | # with a fresh cross-compiler works.
|
---|
3412 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3413 | # <limits.h> exists even on freestanding compilers.
|
---|
3414 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3415 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3416 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3417 | /* confdefs.h. */
|
---|
3418 | _ACEOF
|
---|
3419 | cat confdefs.h >>conftest.$ac_ext
|
---|
3420 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3421 | /* end confdefs.h. */
|
---|
3422 | #ifdef __STDC__
|
---|
3423 | # include <limits.h>
|
---|
3424 | #else
|
---|
3425 | # include <assert.h>
|
---|
3426 | #endif
|
---|
3427 | Syntax error
|
---|
3428 | _ACEOF
|
---|
3429 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3430 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3431 | ac_status=$?
|
---|
3432 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3433 | rm -f conftest.er1
|
---|
3434 | cat conftest.err >&5
|
---|
3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3436 | (exit $ac_status); } >/dev/null; then
|
---|
3437 | if test -s conftest.err; then
|
---|
3438 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3439 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3440 | else
|
---|
3441 | ac_cpp_err=
|
---|
3442 | fi
|
---|
3443 | else
|
---|
3444 | ac_cpp_err=yes
|
---|
3445 | fi
|
---|
3446 | if test -z "$ac_cpp_err"; then
|
---|
3447 | :
|
---|
3448 | else
|
---|
3449 | echo "$as_me: failed program was:" >&5
|
---|
3450 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3451 |
|
---|
3452 | # Broken: fails on valid input.
|
---|
3453 | continue
|
---|
3454 | fi
|
---|
3455 | rm -f conftest.err conftest.$ac_ext
|
---|
3456 |
|
---|
3457 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3458 | # can be detected and how.
|
---|
3459 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3460 | /* confdefs.h. */
|
---|
3461 | _ACEOF
|
---|
3462 | cat confdefs.h >>conftest.$ac_ext
|
---|
3463 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3464 | /* end confdefs.h. */
|
---|
3465 | #include <ac_nonexistent.h>
|
---|
3466 | _ACEOF
|
---|
3467 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3469 | ac_status=$?
|
---|
3470 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3471 | rm -f conftest.er1
|
---|
3472 | cat conftest.err >&5
|
---|
3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3474 | (exit $ac_status); } >/dev/null; then
|
---|
3475 | if test -s conftest.err; then
|
---|
3476 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3477 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3478 | else
|
---|
3479 | ac_cpp_err=
|
---|
3480 | fi
|
---|
3481 | else
|
---|
3482 | ac_cpp_err=yes
|
---|
3483 | fi
|
---|
3484 | if test -z "$ac_cpp_err"; then
|
---|
3485 | # Broken: success on invalid input.
|
---|
3486 | continue
|
---|
3487 | else
|
---|
3488 | echo "$as_me: failed program was:" >&5
|
---|
3489 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3490 |
|
---|
3491 | # Passes both tests.
|
---|
3492 | ac_preproc_ok=:
|
---|
3493 | break
|
---|
3494 | fi
|
---|
3495 | rm -f conftest.err conftest.$ac_ext
|
---|
3496 |
|
---|
3497 | done
|
---|
3498 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3499 | rm -f conftest.err conftest.$ac_ext
|
---|
3500 | if $ac_preproc_ok; then
|
---|
3501 | :
|
---|
3502 | else
|
---|
3503 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3504 | See \`config.log' for more details." >&5
|
---|
3505 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3506 | See \`config.log' for more details." >&2;}
|
---|
3507 | { (exit 1); exit 1; }; }
|
---|
3508 | fi
|
---|
3509 |
|
---|
3510 | ac_ext=c
|
---|
3511 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3515 |
|
---|
3516 |
|
---|
3517 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3518 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
3519 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3521 | else
|
---|
3522 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
3523 | then ac_cv_prog_egrep='grep -E'
|
---|
3524 | else ac_cv_prog_egrep='egrep'
|
---|
3525 | fi
|
---|
3526 | fi
|
---|
3527 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
3528 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
3529 | EGREP=$ac_cv_prog_egrep
|
---|
3530 |
|
---|
3531 |
|
---|
3532 |
|
---|
3533 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
3534 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
3535 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3536 | /* confdefs.h. */
|
---|
3537 | _ACEOF
|
---|
3538 | cat confdefs.h >>conftest.$ac_ext
|
---|
3539 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3540 | /* end confdefs.h. */
|
---|
3541 | #ifdef _AIX
|
---|
3542 | yes
|
---|
3543 | #endif
|
---|
3544 |
|
---|
3545 | _ACEOF
|
---|
3546 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3547 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
3548 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3549 | echo "${ECHO_T}yes" >&6
|
---|
3550 | cat >>confdefs.h <<\_ACEOF
|
---|
3551 | #define _ALL_SOURCE 1
|
---|
3552 | _ACEOF
|
---|
3553 |
|
---|
3554 | else
|
---|
3555 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3556 | echo "${ECHO_T}no" >&6
|
---|
3557 | fi
|
---|
3558 | rm -f conftest*
|
---|
3559 |
|
---|
3560 |
|
---|
3561 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
3562 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
3563 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
3564 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3565 | else
|
---|
3566 | ac_func_search_save_LIBS=$LIBS
|
---|
3567 | ac_cv_search_strerror=no
|
---|
3568 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3569 | /* confdefs.h. */
|
---|
3570 | _ACEOF
|
---|
3571 | cat confdefs.h >>conftest.$ac_ext
|
---|
3572 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3573 | /* end confdefs.h. */
|
---|
3574 |
|
---|
3575 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3576 | #ifdef __cplusplus
|
---|
3577 | extern "C"
|
---|
3578 | #endif
|
---|
3579 | /* We use char because int might match the return type of a gcc2
|
---|
3580 | builtin and then its argument prototype would still apply. */
|
---|
3581 | char strerror ();
|
---|
3582 | int
|
---|
3583 | main ()
|
---|
3584 | {
|
---|
3585 | strerror ();
|
---|
3586 | ;
|
---|
3587 | return 0;
|
---|
3588 | }
|
---|
3589 | _ACEOF
|
---|
3590 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3592 | (eval $ac_link) 2>conftest.er1
|
---|
3593 | ac_status=$?
|
---|
3594 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3595 | rm -f conftest.er1
|
---|
3596 | cat conftest.err >&5
|
---|
3597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3598 | (exit $ac_status); } &&
|
---|
3599 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3600 | || test ! -s conftest.err'
|
---|
3601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3602 | (eval $ac_try) 2>&5
|
---|
3603 | ac_status=$?
|
---|
3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3605 | (exit $ac_status); }; } &&
|
---|
3606 | { ac_try='test -s conftest$ac_exeext'
|
---|
3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3608 | (eval $ac_try) 2>&5
|
---|
3609 | ac_status=$?
|
---|
3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3611 | (exit $ac_status); }; }; then
|
---|
3612 | ac_cv_search_strerror="none required"
|
---|
3613 | else
|
---|
3614 | echo "$as_me: failed program was:" >&5
|
---|
3615 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3616 |
|
---|
3617 | fi
|
---|
3618 | rm -f conftest.err conftest.$ac_objext \
|
---|
3619 | conftest$ac_exeext conftest.$ac_ext
|
---|
3620 | if test "$ac_cv_search_strerror" = no; then
|
---|
3621 | for ac_lib in cposix; do
|
---|
3622 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
3623 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3624 | /* confdefs.h. */
|
---|
3625 | _ACEOF
|
---|
3626 | cat confdefs.h >>conftest.$ac_ext
|
---|
3627 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3628 | /* end confdefs.h. */
|
---|
3629 |
|
---|
3630 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3631 | #ifdef __cplusplus
|
---|
3632 | extern "C"
|
---|
3633 | #endif
|
---|
3634 | /* We use char because int might match the return type of a gcc2
|
---|
3635 | builtin and then its argument prototype would still apply. */
|
---|
3636 | char strerror ();
|
---|
3637 | int
|
---|
3638 | main ()
|
---|
3639 | {
|
---|
3640 | strerror ();
|
---|
3641 | ;
|
---|
3642 | return 0;
|
---|
3643 | }
|
---|
3644 | _ACEOF
|
---|
3645 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3647 | (eval $ac_link) 2>conftest.er1
|
---|
3648 | ac_status=$?
|
---|
3649 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3650 | rm -f conftest.er1
|
---|
3651 | cat conftest.err >&5
|
---|
3652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3653 | (exit $ac_status); } &&
|
---|
3654 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3655 | || test ! -s conftest.err'
|
---|
3656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3657 | (eval $ac_try) 2>&5
|
---|
3658 | ac_status=$?
|
---|
3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3660 | (exit $ac_status); }; } &&
|
---|
3661 | { ac_try='test -s conftest$ac_exeext'
|
---|
3662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3663 | (eval $ac_try) 2>&5
|
---|
3664 | ac_status=$?
|
---|
3665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3666 | (exit $ac_status); }; }; then
|
---|
3667 | ac_cv_search_strerror="-l$ac_lib"
|
---|
3668 | break
|
---|
3669 | else
|
---|
3670 | echo "$as_me: failed program was:" >&5
|
---|
3671 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3672 |
|
---|
3673 | fi
|
---|
3674 | rm -f conftest.err conftest.$ac_objext \
|
---|
3675 | conftest$ac_exeext conftest.$ac_ext
|
---|
3676 | done
|
---|
3677 | fi
|
---|
3678 | LIBS=$ac_func_search_save_LIBS
|
---|
3679 | fi
|
---|
3680 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
3681 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
3682 | if test "$ac_cv_search_strerror" != no; then
|
---|
3683 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
3684 |
|
---|
3685 | fi
|
---|
3686 |
|
---|
3687 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3688 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3689 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3690 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3691 | else
|
---|
3692 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3693 | /* confdefs.h. */
|
---|
3694 | _ACEOF
|
---|
3695 | cat confdefs.h >>conftest.$ac_ext
|
---|
3696 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3697 | /* end confdefs.h. */
|
---|
3698 | #include <stdlib.h>
|
---|
3699 | #include <stdarg.h>
|
---|
3700 | #include <string.h>
|
---|
3701 | #include <float.h>
|
---|
3702 |
|
---|
3703 | int
|
---|
3704 | main ()
|
---|
3705 | {
|
---|
3706 |
|
---|
3707 | ;
|
---|
3708 | return 0;
|
---|
3709 | }
|
---|
3710 | _ACEOF
|
---|
3711 | rm -f conftest.$ac_objext
|
---|
3712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3713 | (eval $ac_compile) 2>conftest.er1
|
---|
3714 | ac_status=$?
|
---|
3715 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3716 | rm -f conftest.er1
|
---|
3717 | cat conftest.err >&5
|
---|
3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3719 | (exit $ac_status); } &&
|
---|
3720 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3721 | || test ! -s conftest.err'
|
---|
3722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3723 | (eval $ac_try) 2>&5
|
---|
3724 | ac_status=$?
|
---|
3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3726 | (exit $ac_status); }; } &&
|
---|
3727 | { ac_try='test -s conftest.$ac_objext'
|
---|
3728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3729 | (eval $ac_try) 2>&5
|
---|
3730 | ac_status=$?
|
---|
3731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3732 | (exit $ac_status); }; }; then
|
---|
3733 | ac_cv_header_stdc=yes
|
---|
3734 | else
|
---|
3735 | echo "$as_me: failed program was:" >&5
|
---|
3736 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3737 |
|
---|
3738 | ac_cv_header_stdc=no
|
---|
3739 | fi
|
---|
3740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3741 |
|
---|
3742 | if test $ac_cv_header_stdc = yes; then
|
---|
3743 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3744 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3745 | /* confdefs.h. */
|
---|
3746 | _ACEOF
|
---|
3747 | cat confdefs.h >>conftest.$ac_ext
|
---|
3748 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3749 | /* end confdefs.h. */
|
---|
3750 | #include <string.h>
|
---|
3751 |
|
---|
3752 | _ACEOF
|
---|
3753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3754 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3755 | :
|
---|
3756 | else
|
---|
3757 | ac_cv_header_stdc=no
|
---|
3758 | fi
|
---|
3759 | rm -f conftest*
|
---|
3760 |
|
---|
3761 | fi
|
---|
3762 |
|
---|
3763 | if test $ac_cv_header_stdc = yes; then
|
---|
3764 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3765 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3766 | /* confdefs.h. */
|
---|
3767 | _ACEOF
|
---|
3768 | cat confdefs.h >>conftest.$ac_ext
|
---|
3769 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3770 | /* end confdefs.h. */
|
---|
3771 | #include <stdlib.h>
|
---|
3772 |
|
---|
3773 | _ACEOF
|
---|
3774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3775 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3776 | :
|
---|
3777 | else
|
---|
3778 | ac_cv_header_stdc=no
|
---|
3779 | fi
|
---|
3780 | rm -f conftest*
|
---|
3781 |
|
---|
3782 | fi
|
---|
3783 |
|
---|
3784 | if test $ac_cv_header_stdc = yes; then
|
---|
3785 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3786 | if test "$cross_compiling" = yes; then
|
---|
3787 | :
|
---|
3788 | else
|
---|
3789 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3790 | /* confdefs.h. */
|
---|
3791 | _ACEOF
|
---|
3792 | cat confdefs.h >>conftest.$ac_ext
|
---|
3793 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3794 | /* end confdefs.h. */
|
---|
3795 | #include <ctype.h>
|
---|
3796 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3797 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3798 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3799 | #else
|
---|
3800 | # define ISLOWER(c) \
|
---|
3801 | (('a' <= (c) && (c) <= 'i') \
|
---|
3802 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3803 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3804 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3805 | #endif
|
---|
3806 |
|
---|
3807 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3808 | int
|
---|
3809 | main ()
|
---|
3810 | {
|
---|
3811 | int i;
|
---|
3812 | for (i = 0; i < 256; i++)
|
---|
3813 | if (XOR (islower (i), ISLOWER (i))
|
---|
3814 | || toupper (i) != TOUPPER (i))
|
---|
3815 | exit(2);
|
---|
3816 | exit (0);
|
---|
3817 | }
|
---|
3818 | _ACEOF
|
---|
3819 | rm -f conftest$ac_exeext
|
---|
3820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3821 | (eval $ac_link) 2>&5
|
---|
3822 | ac_status=$?
|
---|
3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3824 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3826 | (eval $ac_try) 2>&5
|
---|
3827 | ac_status=$?
|
---|
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3829 | (exit $ac_status); }; }; then
|
---|
3830 | :
|
---|
3831 | else
|
---|
3832 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3833 | echo "$as_me: failed program was:" >&5
|
---|
3834 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3835 |
|
---|
3836 | ( exit $ac_status )
|
---|
3837 | ac_cv_header_stdc=no
|
---|
3838 | fi
|
---|
3839 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3840 | fi
|
---|
3841 | fi
|
---|
3842 | fi
|
---|
3843 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3844 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3845 | if test $ac_cv_header_stdc = yes; then
|
---|
3846 |
|
---|
3847 | cat >>confdefs.h <<\_ACEOF
|
---|
3848 | #define STDC_HEADERS 1
|
---|
3849 | _ACEOF
|
---|
3850 |
|
---|
3851 | fi
|
---|
3852 |
|
---|
3853 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3854 |
|
---|
3855 |
|
---|
3856 |
|
---|
3857 |
|
---|
3858 |
|
---|
3859 |
|
---|
3860 |
|
---|
3861 |
|
---|
3862 |
|
---|
3863 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3864 | inttypes.h stdint.h unistd.h
|
---|
3865 | do
|
---|
3866 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3867 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3870 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3871 | else
|
---|
3872 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3873 | /* confdefs.h. */
|
---|
3874 | _ACEOF
|
---|
3875 | cat confdefs.h >>conftest.$ac_ext
|
---|
3876 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3877 | /* end confdefs.h. */
|
---|
3878 | $ac_includes_default
|
---|
3879 |
|
---|
3880 | #include <$ac_header>
|
---|
3881 | _ACEOF
|
---|
3882 | rm -f conftest.$ac_objext
|
---|
3883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3884 | (eval $ac_compile) 2>conftest.er1
|
---|
3885 | ac_status=$?
|
---|
3886 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3887 | rm -f conftest.er1
|
---|
3888 | cat conftest.err >&5
|
---|
3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3890 | (exit $ac_status); } &&
|
---|
3891 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3892 | || test ! -s conftest.err'
|
---|
3893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3894 | (eval $ac_try) 2>&5
|
---|
3895 | ac_status=$?
|
---|
3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3897 | (exit $ac_status); }; } &&
|
---|
3898 | { ac_try='test -s conftest.$ac_objext'
|
---|
3899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3900 | (eval $ac_try) 2>&5
|
---|
3901 | ac_status=$?
|
---|
3902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3903 | (exit $ac_status); }; }; then
|
---|
3904 | eval "$as_ac_Header=yes"
|
---|
3905 | else
|
---|
3906 | echo "$as_me: failed program was:" >&5
|
---|
3907 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3908 |
|
---|
3909 | eval "$as_ac_Header=no"
|
---|
3910 | fi
|
---|
3911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3912 | fi
|
---|
3913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3916 | cat >>confdefs.h <<_ACEOF
|
---|
3917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3918 | _ACEOF
|
---|
3919 |
|
---|
3920 | fi
|
---|
3921 |
|
---|
3922 | done
|
---|
3923 |
|
---|
3924 |
|
---|
3925 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3926 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3927 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3928 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3929 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3930 | fi
|
---|
3931 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3932 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3933 | else
|
---|
3934 | # Is the header compilable?
|
---|
3935 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
3936 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
3937 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3938 | /* confdefs.h. */
|
---|
3939 | _ACEOF
|
---|
3940 | cat confdefs.h >>conftest.$ac_ext
|
---|
3941 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3942 | /* end confdefs.h. */
|
---|
3943 | $ac_includes_default
|
---|
3944 | #include <minix/config.h>
|
---|
3945 | _ACEOF
|
---|
3946 | rm -f conftest.$ac_objext
|
---|
3947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3948 | (eval $ac_compile) 2>conftest.er1
|
---|
3949 | ac_status=$?
|
---|
3950 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3951 | rm -f conftest.er1
|
---|
3952 | cat conftest.err >&5
|
---|
3953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3954 | (exit $ac_status); } &&
|
---|
3955 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3956 | || test ! -s conftest.err'
|
---|
3957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3958 | (eval $ac_try) 2>&5
|
---|
3959 | ac_status=$?
|
---|
3960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3961 | (exit $ac_status); }; } &&
|
---|
3962 | { ac_try='test -s conftest.$ac_objext'
|
---|
3963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3964 | (eval $ac_try) 2>&5
|
---|
3965 | ac_status=$?
|
---|
3966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3967 | (exit $ac_status); }; }; then
|
---|
3968 | ac_header_compiler=yes
|
---|
3969 | else
|
---|
3970 | echo "$as_me: failed program was:" >&5
|
---|
3971 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3972 |
|
---|
3973 | ac_header_compiler=no
|
---|
3974 | fi
|
---|
3975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3976 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
3977 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
3978 |
|
---|
3979 | # Is the header present?
|
---|
3980 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
3981 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
3982 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3983 | /* confdefs.h. */
|
---|
3984 | _ACEOF
|
---|
3985 | cat confdefs.h >>conftest.$ac_ext
|
---|
3986 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3987 | /* end confdefs.h. */
|
---|
3988 | #include <minix/config.h>
|
---|
3989 | _ACEOF
|
---|
3990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3992 | ac_status=$?
|
---|
3993 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3994 | rm -f conftest.er1
|
---|
3995 | cat conftest.err >&5
|
---|
3996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3997 | (exit $ac_status); } >/dev/null; then
|
---|
3998 | if test -s conftest.err; then
|
---|
3999 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4000 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4001 | else
|
---|
4002 | ac_cpp_err=
|
---|
4003 | fi
|
---|
4004 | else
|
---|
4005 | ac_cpp_err=yes
|
---|
4006 | fi
|
---|
4007 | if test -z "$ac_cpp_err"; then
|
---|
4008 | ac_header_preproc=yes
|
---|
4009 | else
|
---|
4010 | echo "$as_me: failed program was:" >&5
|
---|
4011 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4012 |
|
---|
4013 | ac_header_preproc=no
|
---|
4014 | fi
|
---|
4015 | rm -f conftest.err conftest.$ac_ext
|
---|
4016 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4017 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
4018 |
|
---|
4019 | # So? What about this header?
|
---|
4020 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
4021 | yes:no: )
|
---|
4022 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4023 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4024 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
4025 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
4026 | ac_header_preproc=yes
|
---|
4027 | ;;
|
---|
4028 | no:yes:* )
|
---|
4029 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
4030 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
4031 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
4032 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
4033 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
4034 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
4035 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
4036 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
4037 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
4038 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
4039 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
4040 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
4041 | (
|
---|
4042 | cat <<\_ASBOX
|
---|
4043 | ## ------------------------------------------ ##
|
---|
4044 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
4045 | ## ------------------------------------------ ##
|
---|
4046 | _ASBOX
|
---|
4047 | ) |
|
---|
4048 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
4049 | ;;
|
---|
4050 | esac
|
---|
4051 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
4052 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
4053 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4054 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4055 | else
|
---|
4056 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
4057 | fi
|
---|
4058 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
4059 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
4060 |
|
---|
4061 | fi
|
---|
4062 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
4063 | MINIX=yes
|
---|
4064 | else
|
---|
4065 | MINIX=
|
---|
4066 | fi
|
---|
4067 |
|
---|
4068 |
|
---|
4069 | if test "$MINIX" = yes; then
|
---|
4070 |
|
---|
4071 | cat >>confdefs.h <<\_ACEOF
|
---|
4072 | #define _POSIX_SOURCE 1
|
---|
4073 | _ACEOF
|
---|
4074 |
|
---|
4075 |
|
---|
4076 | cat >>confdefs.h <<\_ACEOF
|
---|
4077 | #define _POSIX_1_SOURCE 2
|
---|
4078 | _ACEOF
|
---|
4079 |
|
---|
4080 |
|
---|
4081 | cat >>confdefs.h <<\_ACEOF
|
---|
4082 | #define _MINIX 1
|
---|
4083 | _ACEOF
|
---|
4084 |
|
---|
4085 | fi
|
---|
4086 |
|
---|
4087 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4088 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
4089 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
4090 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4091 | else
|
---|
4092 | ac_cv_prog_cc_stdc=no
|
---|
4093 | ac_save_CFLAGS="$CFLAGS"
|
---|
4094 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4095 | # breaks some systems' header files.
|
---|
4096 | # AIX -qlanglvl=ansi
|
---|
4097 | # Ultrix and OSF/1 -std1
|
---|
4098 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4099 | # SVR4 -Xc
|
---|
4100 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4101 | do
|
---|
4102 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4103 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4104 | /* confdefs.h. */
|
---|
4105 | _ACEOF
|
---|
4106 | cat confdefs.h >>conftest.$ac_ext
|
---|
4107 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4108 | /* end confdefs.h. */
|
---|
4109 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4110 | choke me
|
---|
4111 | #endif
|
---|
4112 |
|
---|
4113 | int
|
---|
4114 | main ()
|
---|
4115 | {
|
---|
4116 | int test (int i, double x);
|
---|
4117 | struct s1 {int (*f) (int a);};
|
---|
4118 | struct s2 {int (*f) (double a);};
|
---|
4119 | ;
|
---|
4120 | return 0;
|
---|
4121 | }
|
---|
4122 | _ACEOF
|
---|
4123 | rm -f conftest.$ac_objext
|
---|
4124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4125 | (eval $ac_compile) 2>conftest.er1
|
---|
4126 | ac_status=$?
|
---|
4127 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4128 | rm -f conftest.er1
|
---|
4129 | cat conftest.err >&5
|
---|
4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4131 | (exit $ac_status); } &&
|
---|
4132 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4133 | || test ! -s conftest.err'
|
---|
4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4135 | (eval $ac_try) 2>&5
|
---|
4136 | ac_status=$?
|
---|
4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4138 | (exit $ac_status); }; } &&
|
---|
4139 | { ac_try='test -s conftest.$ac_objext'
|
---|
4140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4141 | (eval $ac_try) 2>&5
|
---|
4142 | ac_status=$?
|
---|
4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4144 | (exit $ac_status); }; }; then
|
---|
4145 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4146 | else
|
---|
4147 | echo "$as_me: failed program was:" >&5
|
---|
4148 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4149 |
|
---|
4150 | fi
|
---|
4151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4152 | done
|
---|
4153 | CFLAGS="$ac_save_CFLAGS"
|
---|
4154 |
|
---|
4155 | fi
|
---|
4156 |
|
---|
4157 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4158 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
4159 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4160 | x|xno) ;;
|
---|
4161 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4162 | esac
|
---|
4163 |
|
---|
4164 |
|
---|
4165 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
4166 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
4167 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4168 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
4169 | echo "${ECHO_T}yes" >&6
|
---|
4170 | cat >>confdefs.h <<\_ACEOF
|
---|
4171 | #define PROTOTYPES 1
|
---|
4172 | _ACEOF
|
---|
4173 |
|
---|
4174 | U= ANSI2KNR=
|
---|
4175 | else
|
---|
4176 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4177 | echo "${ECHO_T}no" >&6
|
---|
4178 | U=_ ANSI2KNR=ansi2knr
|
---|
4179 | fi
|
---|
4180 |
|
---|
4181 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
4182 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
4183 | if test "${ac_cv_c_const+set}" = set; then
|
---|
4184 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4185 | else
|
---|
4186 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4187 | /* confdefs.h. */
|
---|
4188 | _ACEOF
|
---|
4189 | cat confdefs.h >>conftest.$ac_ext
|
---|
4190 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4191 | /* end confdefs.h. */
|
---|
4192 |
|
---|
4193 | int
|
---|
4194 | main ()
|
---|
4195 | {
|
---|
4196 | /* FIXME: Include the comments suggested by Paul. */
|
---|
4197 | #ifndef __cplusplus
|
---|
4198 | /* Ultrix mips cc rejects this. */
|
---|
4199 | typedef int charset[2];
|
---|
4200 | const charset x;
|
---|
4201 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4202 | char const *const *ccp;
|
---|
4203 | char **p;
|
---|
4204 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4205 | struct point {int x, y;};
|
---|
4206 | static struct point const zero = {0,0};
|
---|
4207 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4208 | It does not let you subtract one const X* pointer from another in
|
---|
4209 | an arm of an if-expression whose if-part is not a constant
|
---|
4210 | expression */
|
---|
4211 | const char *g = "string";
|
---|
4212 | ccp = &g + (g ? g-g : 0);
|
---|
4213 | /* HPUX 7.0 cc rejects these. */
|
---|
4214 | ++ccp;
|
---|
4215 | p = (char**) ccp;
|
---|
4216 | ccp = (char const *const *) p;
|
---|
4217 | { /* SCO 3.2v4 cc rejects this. */
|
---|
4218 | char *t;
|
---|
4219 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4220 |
|
---|
4221 | *t++ = 0;
|
---|
4222 | }
|
---|
4223 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4224 | int x[] = {25, 17};
|
---|
4225 | const int *foo = &x[0];
|
---|
4226 | ++foo;
|
---|
4227 | }
|
---|
4228 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4229 | typedef const int *iptr;
|
---|
4230 | iptr p = 0;
|
---|
4231 | ++p;
|
---|
4232 | }
|
---|
4233 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
4234 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4235 | struct s { int j; const int *ap[3]; };
|
---|
4236 | struct s *b; b->j = 5;
|
---|
4237 | }
|
---|
4238 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4239 | const int foo = 10;
|
---|
4240 | }
|
---|
4241 | #endif
|
---|
4242 |
|
---|
4243 | ;
|
---|
4244 | return 0;
|
---|
4245 | }
|
---|
4246 | _ACEOF
|
---|
4247 | rm -f conftest.$ac_objext
|
---|
4248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4249 | (eval $ac_compile) 2>conftest.er1
|
---|
4250 | ac_status=$?
|
---|
4251 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4252 | rm -f conftest.er1
|
---|
4253 | cat conftest.err >&5
|
---|
4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4255 | (exit $ac_status); } &&
|
---|
4256 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4257 | || test ! -s conftest.err'
|
---|
4258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4259 | (eval $ac_try) 2>&5
|
---|
4260 | ac_status=$?
|
---|
4261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4262 | (exit $ac_status); }; } &&
|
---|
4263 | { ac_try='test -s conftest.$ac_objext'
|
---|
4264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4265 | (eval $ac_try) 2>&5
|
---|
4266 | ac_status=$?
|
---|
4267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4268 | (exit $ac_status); }; }; then
|
---|
4269 | ac_cv_c_const=yes
|
---|
4270 | else
|
---|
4271 | echo "$as_me: failed program was:" >&5
|
---|
4272 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4273 |
|
---|
4274 | ac_cv_c_const=no
|
---|
4275 | fi
|
---|
4276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4277 | fi
|
---|
4278 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
4279 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
4280 | if test $ac_cv_c_const = no; then
|
---|
4281 |
|
---|
4282 | cat >>confdefs.h <<\_ACEOF
|
---|
4283 | #define const
|
---|
4284 | _ACEOF
|
---|
4285 |
|
---|
4286 | fi
|
---|
4287 |
|
---|
4288 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
4289 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
4290 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
4291 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4292 | else
|
---|
4293 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4294 | /* confdefs.h. */
|
---|
4295 | _ACEOF
|
---|
4296 | cat confdefs.h >>conftest.$ac_ext
|
---|
4297 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4298 | /* end confdefs.h. */
|
---|
4299 | $ac_includes_default
|
---|
4300 | int
|
---|
4301 | main ()
|
---|
4302 | {
|
---|
4303 | if ((off_t *) 0)
|
---|
4304 | return 0;
|
---|
4305 | if (sizeof (off_t))
|
---|
4306 | return 0;
|
---|
4307 | ;
|
---|
4308 | return 0;
|
---|
4309 | }
|
---|
4310 | _ACEOF
|
---|
4311 | rm -f conftest.$ac_objext
|
---|
4312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4313 | (eval $ac_compile) 2>conftest.er1
|
---|
4314 | ac_status=$?
|
---|
4315 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4316 | rm -f conftest.er1
|
---|
4317 | cat conftest.err >&5
|
---|
4318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4319 | (exit $ac_status); } &&
|
---|
4320 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4321 | || test ! -s conftest.err'
|
---|
4322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4323 | (eval $ac_try) 2>&5
|
---|
4324 | ac_status=$?
|
---|
4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4326 | (exit $ac_status); }; } &&
|
---|
4327 | { ac_try='test -s conftest.$ac_objext'
|
---|
4328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4329 | (eval $ac_try) 2>&5
|
---|
4330 | ac_status=$?
|
---|
4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4332 | (exit $ac_status); }; }; then
|
---|
4333 | ac_cv_type_off_t=yes
|
---|
4334 | else
|
---|
4335 | echo "$as_me: failed program was:" >&5
|
---|
4336 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4337 |
|
---|
4338 | ac_cv_type_off_t=no
|
---|
4339 | fi
|
---|
4340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4341 | fi
|
---|
4342 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
4343 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
4344 | if test $ac_cv_type_off_t = yes; then
|
---|
4345 | :
|
---|
4346 | else
|
---|
4347 |
|
---|
4348 | cat >>confdefs.h <<_ACEOF
|
---|
4349 | #define off_t long
|
---|
4350 | _ACEOF
|
---|
4351 |
|
---|
4352 | fi
|
---|
4353 |
|
---|
4354 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
4355 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
4356 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
4357 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4358 | else
|
---|
4359 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4360 | /* confdefs.h. */
|
---|
4361 | _ACEOF
|
---|
4362 | cat confdefs.h >>conftest.$ac_ext
|
---|
4363 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4364 | /* end confdefs.h. */
|
---|
4365 | $ac_includes_default
|
---|
4366 | int
|
---|
4367 | main ()
|
---|
4368 | {
|
---|
4369 | if ((size_t *) 0)
|
---|
4370 | return 0;
|
---|
4371 | if (sizeof (size_t))
|
---|
4372 | return 0;
|
---|
4373 | ;
|
---|
4374 | return 0;
|
---|
4375 | }
|
---|
4376 | _ACEOF
|
---|
4377 | rm -f conftest.$ac_objext
|
---|
4378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4379 | (eval $ac_compile) 2>conftest.er1
|
---|
4380 | ac_status=$?
|
---|
4381 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4382 | rm -f conftest.er1
|
---|
4383 | cat conftest.err >&5
|
---|
4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4385 | (exit $ac_status); } &&
|
---|
4386 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4387 | || test ! -s conftest.err'
|
---|
4388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4389 | (eval $ac_try) 2>&5
|
---|
4390 | ac_status=$?
|
---|
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4392 | (exit $ac_status); }; } &&
|
---|
4393 | { ac_try='test -s conftest.$ac_objext'
|
---|
4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4395 | (eval $ac_try) 2>&5
|
---|
4396 | ac_status=$?
|
---|
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4398 | (exit $ac_status); }; }; then
|
---|
4399 | ac_cv_type_size_t=yes
|
---|
4400 | else
|
---|
4401 | echo "$as_me: failed program was:" >&5
|
---|
4402 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4403 |
|
---|
4404 | ac_cv_type_size_t=no
|
---|
4405 | fi
|
---|
4406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4407 | fi
|
---|
4408 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
4409 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
4410 | if test $ac_cv_type_size_t = yes; then
|
---|
4411 | :
|
---|
4412 | else
|
---|
4413 |
|
---|
4414 | cat >>confdefs.h <<_ACEOF
|
---|
4415 | #define size_t unsigned
|
---|
4416 | _ACEOF
|
---|
4417 |
|
---|
4418 | fi
|
---|
4419 |
|
---|
4420 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4421 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
4422 | if test "${ac_cv_header_time+set}" = set; then
|
---|
4423 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4424 | else
|
---|
4425 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4426 | /* confdefs.h. */
|
---|
4427 | _ACEOF
|
---|
4428 | cat confdefs.h >>conftest.$ac_ext
|
---|
4429 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4430 | /* end confdefs.h. */
|
---|
4431 | #include <sys/types.h>
|
---|
4432 | #include <sys/time.h>
|
---|
4433 | #include <time.h>
|
---|
4434 |
|
---|
4435 | int
|
---|
4436 | main ()
|
---|
4437 | {
|
---|
4438 | if ((struct tm *) 0)
|
---|
4439 | return 0;
|
---|
4440 | ;
|
---|
4441 | return 0;
|
---|
4442 | }
|
---|
4443 | _ACEOF
|
---|
4444 | rm -f conftest.$ac_objext
|
---|
4445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4446 | (eval $ac_compile) 2>conftest.er1
|
---|
4447 | ac_status=$?
|
---|
4448 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4449 | rm -f conftest.er1
|
---|
4450 | cat conftest.err >&5
|
---|
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4452 | (exit $ac_status); } &&
|
---|
4453 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4454 | || test ! -s conftest.err'
|
---|
4455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4456 | (eval $ac_try) 2>&5
|
---|
4457 | ac_status=$?
|
---|
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4459 | (exit $ac_status); }; } &&
|
---|
4460 | { ac_try='test -s conftest.$ac_objext'
|
---|
4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4462 | (eval $ac_try) 2>&5
|
---|
4463 | ac_status=$?
|
---|
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4465 | (exit $ac_status); }; }; then
|
---|
4466 | ac_cv_header_time=yes
|
---|
4467 | else
|
---|
4468 | echo "$as_me: failed program was:" >&5
|
---|
4469 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4470 |
|
---|
4471 | ac_cv_header_time=no
|
---|
4472 | fi
|
---|
4473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4474 | fi
|
---|
4475 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
4476 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
4477 | if test $ac_cv_header_time = yes; then
|
---|
4478 |
|
---|
4479 | cat >>confdefs.h <<\_ACEOF
|
---|
4480 | #define TIME_WITH_SYS_TIME 1
|
---|
4481 | _ACEOF
|
---|
4482 |
|
---|
4483 | fi
|
---|
4484 |
|
---|
4485 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4486 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
4487 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
4488 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4489 | else
|
---|
4490 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4491 | /* confdefs.h. */
|
---|
4492 | _ACEOF
|
---|
4493 | cat confdefs.h >>conftest.$ac_ext
|
---|
4494 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4495 | /* end confdefs.h. */
|
---|
4496 | #include <sys/types.h>
|
---|
4497 | #include <time.h>
|
---|
4498 |
|
---|
4499 | int
|
---|
4500 | main ()
|
---|
4501 | {
|
---|
4502 | struct tm *tp; tp->tm_sec;
|
---|
4503 | ;
|
---|
4504 | return 0;
|
---|
4505 | }
|
---|
4506 | _ACEOF
|
---|
4507 | rm -f conftest.$ac_objext
|
---|
4508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4509 | (eval $ac_compile) 2>conftest.er1
|
---|
4510 | ac_status=$?
|
---|
4511 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4512 | rm -f conftest.er1
|
---|
4513 | cat conftest.err >&5
|
---|
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4515 | (exit $ac_status); } &&
|
---|
4516 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4517 | || test ! -s conftest.err'
|
---|
4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4519 | (eval $ac_try) 2>&5
|
---|
4520 | ac_status=$?
|
---|
4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4522 | (exit $ac_status); }; } &&
|
---|
4523 | { ac_try='test -s conftest.$ac_objext'
|
---|
4524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4525 | (eval $ac_try) 2>&5
|
---|
4526 | ac_status=$?
|
---|
4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4528 | (exit $ac_status); }; }; then
|
---|
4529 | ac_cv_struct_tm=time.h
|
---|
4530 | else
|
---|
4531 | echo "$as_me: failed program was:" >&5
|
---|
4532 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4533 |
|
---|
4534 | ac_cv_struct_tm=sys/time.h
|
---|
4535 | fi
|
---|
4536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4537 | fi
|
---|
4538 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
4539 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
4540 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4541 |
|
---|
4542 | cat >>confdefs.h <<\_ACEOF
|
---|
4543 | #define TM_IN_SYS_TIME 1
|
---|
4544 | _ACEOF
|
---|
4545 |
|
---|
4546 | fi
|
---|
4547 |
|
---|
4548 |
|
---|
4549 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
4550 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4551 | /* confdefs.h. */
|
---|
4552 | _ACEOF
|
---|
4553 | cat confdefs.h >>conftest.$ac_ext
|
---|
4554 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4555 | /* end confdefs.h. */
|
---|
4556 | #include <stdio.h>
|
---|
4557 |
|
---|
4558 | int
|
---|
4559 | main ()
|
---|
4560 | {
|
---|
4561 | FILE *rubbish = popen("yes", "r");
|
---|
4562 | ;
|
---|
4563 | return 0;
|
---|
4564 | }
|
---|
4565 | _ACEOF
|
---|
4566 | rm -f conftest.$ac_objext
|
---|
4567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4568 | (eval $ac_compile) 2>conftest.er1
|
---|
4569 | ac_status=$?
|
---|
4570 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4571 | rm -f conftest.er1
|
---|
4572 | cat conftest.err >&5
|
---|
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4574 | (exit $ac_status); } &&
|
---|
4575 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4576 | || test ! -s conftest.err'
|
---|
4577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4578 | (eval $ac_try) 2>&5
|
---|
4579 | ac_status=$?
|
---|
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4581 | (exit $ac_status); }; } &&
|
---|
4582 | { ac_try='test -s conftest.$ac_objext'
|
---|
4583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4584 | (eval $ac_try) 2>&5
|
---|
4585 | ac_status=$?
|
---|
4586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4587 | (exit $ac_status); }; }; then
|
---|
4588 | :
|
---|
4589 | else
|
---|
4590 | echo "$as_me: failed program was:" >&5
|
---|
4591 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4592 |
|
---|
4593 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
4594 | fi
|
---|
4595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4596 | fi
|
---|
4597 |
|
---|
4598 |
|
---|
4599 |
|
---|
4600 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
4601 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
4602 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
4603 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4604 | else
|
---|
4605 | ac_check_lib_save_LIBS=$LIBS
|
---|
4606 | LIBS="-lg $LIBS"
|
---|
4607 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4608 | /* confdefs.h. */
|
---|
4609 | _ACEOF
|
---|
4610 | cat confdefs.h >>conftest.$ac_ext
|
---|
4611 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4612 | /* end confdefs.h. */
|
---|
4613 |
|
---|
4614 |
|
---|
4615 | int
|
---|
4616 | main ()
|
---|
4617 | {
|
---|
4618 | main ();
|
---|
4619 | ;
|
---|
4620 | return 0;
|
---|
4621 | }
|
---|
4622 | _ACEOF
|
---|
4623 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4625 | (eval $ac_link) 2>conftest.er1
|
---|
4626 | ac_status=$?
|
---|
4627 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4628 | rm -f conftest.er1
|
---|
4629 | cat conftest.err >&5
|
---|
4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4631 | (exit $ac_status); } &&
|
---|
4632 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4633 | || test ! -s conftest.err'
|
---|
4634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4635 | (eval $ac_try) 2>&5
|
---|
4636 | ac_status=$?
|
---|
4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4638 | (exit $ac_status); }; } &&
|
---|
4639 | { ac_try='test -s conftest$ac_exeext'
|
---|
4640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4641 | (eval $ac_try) 2>&5
|
---|
4642 | ac_status=$?
|
---|
4643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4644 | (exit $ac_status); }; }; then
|
---|
4645 | ac_cv_lib_g_main=yes
|
---|
4646 | else
|
---|
4647 | echo "$as_me: failed program was:" >&5
|
---|
4648 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4649 |
|
---|
4650 | ac_cv_lib_g_main=no
|
---|
4651 | fi
|
---|
4652 | rm -f conftest.err conftest.$ac_objext \
|
---|
4653 | conftest$ac_exeext conftest.$ac_ext
|
---|
4654 | LIBS=$ac_check_lib_save_LIBS
|
---|
4655 | fi
|
---|
4656 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
4657 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
4658 | if test $ac_cv_lib_g_main = yes; then
|
---|
4659 | cat >>confdefs.h <<_ACEOF
|
---|
4660 | #define HAVE_LIBG 1
|
---|
4661 | _ACEOF
|
---|
4662 |
|
---|
4663 | LIBS="-lg $LIBS"
|
---|
4664 |
|
---|
4665 | fi
|
---|
4666 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
4667 |
|
---|
4668 |
|
---|
4669 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
4670 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
4671 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
4672 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4673 | else
|
---|
4674 | ac_check_lib_save_LIBS=$LIBS
|
---|
4675 | LIBS="-lm $LIBS"
|
---|
4676 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4677 | /* confdefs.h. */
|
---|
4678 | _ACEOF
|
---|
4679 | cat confdefs.h >>conftest.$ac_ext
|
---|
4680 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4681 | /* end confdefs.h. */
|
---|
4682 |
|
---|
4683 |
|
---|
4684 | int
|
---|
4685 | main ()
|
---|
4686 | {
|
---|
4687 | main ();
|
---|
4688 | ;
|
---|
4689 | return 0;
|
---|
4690 | }
|
---|
4691 | _ACEOF
|
---|
4692 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4694 | (eval $ac_link) 2>conftest.er1
|
---|
4695 | ac_status=$?
|
---|
4696 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4697 | rm -f conftest.er1
|
---|
4698 | cat conftest.err >&5
|
---|
4699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4700 | (exit $ac_status); } &&
|
---|
4701 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4702 | || test ! -s conftest.err'
|
---|
4703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4704 | (eval $ac_try) 2>&5
|
---|
4705 | ac_status=$?
|
---|
4706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4707 | (exit $ac_status); }; } &&
|
---|
4708 | { ac_try='test -s conftest$ac_exeext'
|
---|
4709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4710 | (eval $ac_try) 2>&5
|
---|
4711 | ac_status=$?
|
---|
4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4713 | (exit $ac_status); }; }; then
|
---|
4714 | ac_cv_lib_m_main=yes
|
---|
4715 | else
|
---|
4716 | echo "$as_me: failed program was:" >&5
|
---|
4717 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4718 |
|
---|
4719 | ac_cv_lib_m_main=no
|
---|
4720 | fi
|
---|
4721 | rm -f conftest.err conftest.$ac_objext \
|
---|
4722 | conftest$ac_exeext conftest.$ac_ext
|
---|
4723 | LIBS=$ac_check_lib_save_LIBS
|
---|
4724 | fi
|
---|
4725 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
4726 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
4727 | if test $ac_cv_lib_m_main = yes; then
|
---|
4728 | cat >>confdefs.h <<_ACEOF
|
---|
4729 | #define HAVE_LIBM 1
|
---|
4730 | _ACEOF
|
---|
4731 |
|
---|
4732 | LIBS="-lm $LIBS"
|
---|
4733 |
|
---|
4734 | fi
|
---|
4735 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
4736 |
|
---|
4737 |
|
---|
4738 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
4739 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
4740 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
4741 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4742 | else
|
---|
4743 | ac_check_lib_save_LIBS=$LIBS
|
---|
4744 | LIBS="-lcrypt $LIBS"
|
---|
4745 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4746 | /* confdefs.h. */
|
---|
4747 | _ACEOF
|
---|
4748 | cat confdefs.h >>conftest.$ac_ext
|
---|
4749 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4750 | /* end confdefs.h. */
|
---|
4751 |
|
---|
4752 |
|
---|
4753 | int
|
---|
4754 | main ()
|
---|
4755 | {
|
---|
4756 | main ();
|
---|
4757 | ;
|
---|
4758 | return 0;
|
---|
4759 | }
|
---|
4760 | _ACEOF
|
---|
4761 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4763 | (eval $ac_link) 2>conftest.er1
|
---|
4764 | ac_status=$?
|
---|
4765 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4766 | rm -f conftest.er1
|
---|
4767 | cat conftest.err >&5
|
---|
4768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4769 | (exit $ac_status); } &&
|
---|
4770 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4771 | || test ! -s conftest.err'
|
---|
4772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4773 | (eval $ac_try) 2>&5
|
---|
4774 | ac_status=$?
|
---|
4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4776 | (exit $ac_status); }; } &&
|
---|
4777 | { ac_try='test -s conftest$ac_exeext'
|
---|
4778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4779 | (eval $ac_try) 2>&5
|
---|
4780 | ac_status=$?
|
---|
4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4782 | (exit $ac_status); }; }; then
|
---|
4783 | ac_cv_lib_crypt_main=yes
|
---|
4784 | else
|
---|
4785 | echo "$as_me: failed program was:" >&5
|
---|
4786 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4787 |
|
---|
4788 | ac_cv_lib_crypt_main=no
|
---|
4789 | fi
|
---|
4790 | rm -f conftest.err conftest.$ac_objext \
|
---|
4791 | conftest$ac_exeext conftest.$ac_ext
|
---|
4792 | LIBS=$ac_check_lib_save_LIBS
|
---|
4793 | fi
|
---|
4794 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
4795 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
4796 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
4797 | cat >>confdefs.h <<_ACEOF
|
---|
4798 | #define HAVE_LIBCRYPT 1
|
---|
4799 | _ACEOF
|
---|
4800 |
|
---|
4801 | LIBS="-lcrypt $LIBS"
|
---|
4802 |
|
---|
4803 | fi
|
---|
4804 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
4805 |
|
---|
4806 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
4807 | #AC_HAVE_LIBRARY(iconv)
|
---|
4808 | #fi
|
---|
4809 |
|
---|
4810 |
|
---|
4811 |
|
---|
4812 |
|
---|
4813 |
|
---|
4814 |
|
---|
4815 | ac_header_dirent=no
|
---|
4816 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
4817 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
4818 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
4819 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
4820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4821 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4822 | else
|
---|
4823 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4824 | /* confdefs.h. */
|
---|
4825 | _ACEOF
|
---|
4826 | cat confdefs.h >>conftest.$ac_ext
|
---|
4827 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4828 | /* end confdefs.h. */
|
---|
4829 | #include <sys/types.h>
|
---|
4830 | #include <$ac_hdr>
|
---|
4831 |
|
---|
4832 | int
|
---|
4833 | main ()
|
---|
4834 | {
|
---|
4835 | if ((DIR *) 0)
|
---|
4836 | return 0;
|
---|
4837 | ;
|
---|
4838 | return 0;
|
---|
4839 | }
|
---|
4840 | _ACEOF
|
---|
4841 | rm -f conftest.$ac_objext
|
---|
4842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4843 | (eval $ac_compile) 2>conftest.er1
|
---|
4844 | ac_status=$?
|
---|
4845 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4846 | rm -f conftest.er1
|
---|
4847 | cat conftest.err >&5
|
---|
4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4849 | (exit $ac_status); } &&
|
---|
4850 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4851 | || test ! -s conftest.err'
|
---|
4852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4853 | (eval $ac_try) 2>&5
|
---|
4854 | ac_status=$?
|
---|
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4856 | (exit $ac_status); }; } &&
|
---|
4857 | { ac_try='test -s conftest.$ac_objext'
|
---|
4858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4859 | (eval $ac_try) 2>&5
|
---|
4860 | ac_status=$?
|
---|
4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4862 | (exit $ac_status); }; }; then
|
---|
4863 | eval "$as_ac_Header=yes"
|
---|
4864 | else
|
---|
4865 | echo "$as_me: failed program was:" >&5
|
---|
4866 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4867 |
|
---|
4868 | eval "$as_ac_Header=no"
|
---|
4869 | fi
|
---|
4870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4871 | fi
|
---|
4872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4875 | cat >>confdefs.h <<_ACEOF
|
---|
4876 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
4877 | _ACEOF
|
---|
4878 |
|
---|
4879 | ac_header_dirent=$ac_hdr; break
|
---|
4880 | fi
|
---|
4881 |
|
---|
4882 | done
|
---|
4883 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4884 | if test $ac_header_dirent = dirent.h; then
|
---|
4885 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4886 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4887 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4888 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4889 | else
|
---|
4890 | ac_func_search_save_LIBS=$LIBS
|
---|
4891 | ac_cv_search_opendir=no
|
---|
4892 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4893 | /* confdefs.h. */
|
---|
4894 | _ACEOF
|
---|
4895 | cat confdefs.h >>conftest.$ac_ext
|
---|
4896 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4897 | /* end confdefs.h. */
|
---|
4898 |
|
---|
4899 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4900 | #ifdef __cplusplus
|
---|
4901 | extern "C"
|
---|
4902 | #endif
|
---|
4903 | /* We use char because int might match the return type of a gcc2
|
---|
4904 | builtin and then its argument prototype would still apply. */
|
---|
4905 | char opendir ();
|
---|
4906 | int
|
---|
4907 | main ()
|
---|
4908 | {
|
---|
4909 | opendir ();
|
---|
4910 | ;
|
---|
4911 | return 0;
|
---|
4912 | }
|
---|
4913 | _ACEOF
|
---|
4914 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4916 | (eval $ac_link) 2>conftest.er1
|
---|
4917 | ac_status=$?
|
---|
4918 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4919 | rm -f conftest.er1
|
---|
4920 | cat conftest.err >&5
|
---|
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4922 | (exit $ac_status); } &&
|
---|
4923 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4924 | || test ! -s conftest.err'
|
---|
4925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4926 | (eval $ac_try) 2>&5
|
---|
4927 | ac_status=$?
|
---|
4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4929 | (exit $ac_status); }; } &&
|
---|
4930 | { ac_try='test -s conftest$ac_exeext'
|
---|
4931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4932 | (eval $ac_try) 2>&5
|
---|
4933 | ac_status=$?
|
---|
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4935 | (exit $ac_status); }; }; then
|
---|
4936 | ac_cv_search_opendir="none required"
|
---|
4937 | else
|
---|
4938 | echo "$as_me: failed program was:" >&5
|
---|
4939 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4940 |
|
---|
4941 | fi
|
---|
4942 | rm -f conftest.err conftest.$ac_objext \
|
---|
4943 | conftest$ac_exeext conftest.$ac_ext
|
---|
4944 | if test "$ac_cv_search_opendir" = no; then
|
---|
4945 | for ac_lib in dir; do
|
---|
4946 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4947 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4948 | /* confdefs.h. */
|
---|
4949 | _ACEOF
|
---|
4950 | cat confdefs.h >>conftest.$ac_ext
|
---|
4951 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4952 | /* end confdefs.h. */
|
---|
4953 |
|
---|
4954 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4955 | #ifdef __cplusplus
|
---|
4956 | extern "C"
|
---|
4957 | #endif
|
---|
4958 | /* We use char because int might match the return type of a gcc2
|
---|
4959 | builtin and then its argument prototype would still apply. */
|
---|
4960 | char opendir ();
|
---|
4961 | int
|
---|
4962 | main ()
|
---|
4963 | {
|
---|
4964 | opendir ();
|
---|
4965 | ;
|
---|
4966 | return 0;
|
---|
4967 | }
|
---|
4968 | _ACEOF
|
---|
4969 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4971 | (eval $ac_link) 2>conftest.er1
|
---|
4972 | ac_status=$?
|
---|
4973 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4974 | rm -f conftest.er1
|
---|
4975 | cat conftest.err >&5
|
---|
4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4977 | (exit $ac_status); } &&
|
---|
4978 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4979 | || test ! -s conftest.err'
|
---|
4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4981 | (eval $ac_try) 2>&5
|
---|
4982 | ac_status=$?
|
---|
4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4984 | (exit $ac_status); }; } &&
|
---|
4985 | { ac_try='test -s conftest$ac_exeext'
|
---|
4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4987 | (eval $ac_try) 2>&5
|
---|
4988 | ac_status=$?
|
---|
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4990 | (exit $ac_status); }; }; then
|
---|
4991 | ac_cv_search_opendir="-l$ac_lib"
|
---|
4992 | break
|
---|
4993 | else
|
---|
4994 | echo "$as_me: failed program was:" >&5
|
---|
4995 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4996 |
|
---|
4997 | fi
|
---|
4998 | rm -f conftest.err conftest.$ac_objext \
|
---|
4999 | conftest$ac_exeext conftest.$ac_ext
|
---|
5000 | done
|
---|
5001 | fi
|
---|
5002 | LIBS=$ac_func_search_save_LIBS
|
---|
5003 | fi
|
---|
5004 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5005 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
5006 | if test "$ac_cv_search_opendir" != no; then
|
---|
5007 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
5008 |
|
---|
5009 | fi
|
---|
5010 |
|
---|
5011 | else
|
---|
5012 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
5013 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
5014 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5015 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5016 | else
|
---|
5017 | ac_func_search_save_LIBS=$LIBS
|
---|
5018 | ac_cv_search_opendir=no
|
---|
5019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5020 | /* confdefs.h. */
|
---|
5021 | _ACEOF
|
---|
5022 | cat confdefs.h >>conftest.$ac_ext
|
---|
5023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5024 | /* end confdefs.h. */
|
---|
5025 |
|
---|
5026 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5027 | #ifdef __cplusplus
|
---|
5028 | extern "C"
|
---|
5029 | #endif
|
---|
5030 | /* We use char because int might match the return type of a gcc2
|
---|
5031 | builtin and then its argument prototype would still apply. */
|
---|
5032 | char opendir ();
|
---|
5033 | int
|
---|
5034 | main ()
|
---|
5035 | {
|
---|
5036 | opendir ();
|
---|
5037 | ;
|
---|
5038 | return 0;
|
---|
5039 | }
|
---|
5040 | _ACEOF
|
---|
5041 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5043 | (eval $ac_link) 2>conftest.er1
|
---|
5044 | ac_status=$?
|
---|
5045 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5046 | rm -f conftest.er1
|
---|
5047 | cat conftest.err >&5
|
---|
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5049 | (exit $ac_status); } &&
|
---|
5050 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5051 | || test ! -s conftest.err'
|
---|
5052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5053 | (eval $ac_try) 2>&5
|
---|
5054 | ac_status=$?
|
---|
5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5056 | (exit $ac_status); }; } &&
|
---|
5057 | { ac_try='test -s conftest$ac_exeext'
|
---|
5058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5059 | (eval $ac_try) 2>&5
|
---|
5060 | ac_status=$?
|
---|
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5062 | (exit $ac_status); }; }; then
|
---|
5063 | ac_cv_search_opendir="none required"
|
---|
5064 | else
|
---|
5065 | echo "$as_me: failed program was:" >&5
|
---|
5066 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5067 |
|
---|
5068 | fi
|
---|
5069 | rm -f conftest.err conftest.$ac_objext \
|
---|
5070 | conftest$ac_exeext conftest.$ac_ext
|
---|
5071 | if test "$ac_cv_search_opendir" = no; then
|
---|
5072 | for ac_lib in x; do
|
---|
5073 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5074 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5075 | /* confdefs.h. */
|
---|
5076 | _ACEOF
|
---|
5077 | cat confdefs.h >>conftest.$ac_ext
|
---|
5078 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5079 | /* end confdefs.h. */
|
---|
5080 |
|
---|
5081 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5082 | #ifdef __cplusplus
|
---|
5083 | extern "C"
|
---|
5084 | #endif
|
---|
5085 | /* We use char because int might match the return type of a gcc2
|
---|
5086 | builtin and then its argument prototype would still apply. */
|
---|
5087 | char opendir ();
|
---|
5088 | int
|
---|
5089 | main ()
|
---|
5090 | {
|
---|
5091 | opendir ();
|
---|
5092 | ;
|
---|
5093 | return 0;
|
---|
5094 | }
|
---|
5095 | _ACEOF
|
---|
5096 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5098 | (eval $ac_link) 2>conftest.er1
|
---|
5099 | ac_status=$?
|
---|
5100 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5101 | rm -f conftest.er1
|
---|
5102 | cat conftest.err >&5
|
---|
5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5104 | (exit $ac_status); } &&
|
---|
5105 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5106 | || test ! -s conftest.err'
|
---|
5107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5108 | (eval $ac_try) 2>&5
|
---|
5109 | ac_status=$?
|
---|
5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5111 | (exit $ac_status); }; } &&
|
---|
5112 | { ac_try='test -s conftest$ac_exeext'
|
---|
5113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5114 | (eval $ac_try) 2>&5
|
---|
5115 | ac_status=$?
|
---|
5116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5117 | (exit $ac_status); }; }; then
|
---|
5118 | ac_cv_search_opendir="-l$ac_lib"
|
---|
5119 | break
|
---|
5120 | else
|
---|
5121 | echo "$as_me: failed program was:" >&5
|
---|
5122 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5123 |
|
---|
5124 | fi
|
---|
5125 | rm -f conftest.err conftest.$ac_objext \
|
---|
5126 | conftest$ac_exeext conftest.$ac_ext
|
---|
5127 | done
|
---|
5128 | fi
|
---|
5129 | LIBS=$ac_func_search_save_LIBS
|
---|
5130 | fi
|
---|
5131 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5132 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
5133 | if test "$ac_cv_search_opendir" != no; then
|
---|
5134 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
5135 |
|
---|
5136 | fi
|
---|
5137 |
|
---|
5138 | fi
|
---|
5139 |
|
---|
5140 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
5141 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
5142 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
5143 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5144 | else
|
---|
5145 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5146 | /* confdefs.h. */
|
---|
5147 | _ACEOF
|
---|
5148 | cat confdefs.h >>conftest.$ac_ext
|
---|
5149 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5150 | /* end confdefs.h. */
|
---|
5151 | #include <stdlib.h>
|
---|
5152 | #include <stdarg.h>
|
---|
5153 | #include <string.h>
|
---|
5154 | #include <float.h>
|
---|
5155 |
|
---|
5156 | int
|
---|
5157 | main ()
|
---|
5158 | {
|
---|
5159 |
|
---|
5160 | ;
|
---|
5161 | return 0;
|
---|
5162 | }
|
---|
5163 | _ACEOF
|
---|
5164 | rm -f conftest.$ac_objext
|
---|
5165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5166 | (eval $ac_compile) 2>conftest.er1
|
---|
5167 | ac_status=$?
|
---|
5168 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5169 | rm -f conftest.er1
|
---|
5170 | cat conftest.err >&5
|
---|
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5172 | (exit $ac_status); } &&
|
---|
5173 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5174 | || test ! -s conftest.err'
|
---|
5175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5176 | (eval $ac_try) 2>&5
|
---|
5177 | ac_status=$?
|
---|
5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5179 | (exit $ac_status); }; } &&
|
---|
5180 | { ac_try='test -s conftest.$ac_objext'
|
---|
5181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5182 | (eval $ac_try) 2>&5
|
---|
5183 | ac_status=$?
|
---|
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5185 | (exit $ac_status); }; }; then
|
---|
5186 | ac_cv_header_stdc=yes
|
---|
5187 | else
|
---|
5188 | echo "$as_me: failed program was:" >&5
|
---|
5189 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5190 |
|
---|
5191 | ac_cv_header_stdc=no
|
---|
5192 | fi
|
---|
5193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5194 |
|
---|
5195 | if test $ac_cv_header_stdc = yes; then
|
---|
5196 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5197 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5198 | /* confdefs.h. */
|
---|
5199 | _ACEOF
|
---|
5200 | cat confdefs.h >>conftest.$ac_ext
|
---|
5201 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5202 | /* end confdefs.h. */
|
---|
5203 | #include <string.h>
|
---|
5204 |
|
---|
5205 | _ACEOF
|
---|
5206 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5207 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
5208 | :
|
---|
5209 | else
|
---|
5210 | ac_cv_header_stdc=no
|
---|
5211 | fi
|
---|
5212 | rm -f conftest*
|
---|
5213 |
|
---|
5214 | fi
|
---|
5215 |
|
---|
5216 | if test $ac_cv_header_stdc = yes; then
|
---|
5217 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5218 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5219 | /* confdefs.h. */
|
---|
5220 | _ACEOF
|
---|
5221 | cat confdefs.h >>conftest.$ac_ext
|
---|
5222 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5223 | /* end confdefs.h. */
|
---|
5224 | #include <stdlib.h>
|
---|
5225 |
|
---|
5226 | _ACEOF
|
---|
5227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5228 | $EGREP "free" >/dev/null 2>&1; then
|
---|
5229 | :
|
---|
5230 | else
|
---|
5231 | ac_cv_header_stdc=no
|
---|
5232 | fi
|
---|
5233 | rm -f conftest*
|
---|
5234 |
|
---|
5235 | fi
|
---|
5236 |
|
---|
5237 | if test $ac_cv_header_stdc = yes; then
|
---|
5238 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5239 | if test "$cross_compiling" = yes; then
|
---|
5240 | :
|
---|
5241 | else
|
---|
5242 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5243 | /* confdefs.h. */
|
---|
5244 | _ACEOF
|
---|
5245 | cat confdefs.h >>conftest.$ac_ext
|
---|
5246 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5247 | /* end confdefs.h. */
|
---|
5248 | #include <ctype.h>
|
---|
5249 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5250 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5251 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5252 | #else
|
---|
5253 | # define ISLOWER(c) \
|
---|
5254 | (('a' <= (c) && (c) <= 'i') \
|
---|
5255 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5256 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5257 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5258 | #endif
|
---|
5259 |
|
---|
5260 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5261 | int
|
---|
5262 | main ()
|
---|
5263 | {
|
---|
5264 | int i;
|
---|
5265 | for (i = 0; i < 256; i++)
|
---|
5266 | if (XOR (islower (i), ISLOWER (i))
|
---|
5267 | || toupper (i) != TOUPPER (i))
|
---|
5268 | exit(2);
|
---|
5269 | exit (0);
|
---|
5270 | }
|
---|
5271 | _ACEOF
|
---|
5272 | rm -f conftest$ac_exeext
|
---|
5273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5274 | (eval $ac_link) 2>&5
|
---|
5275 | ac_status=$?
|
---|
5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5279 | (eval $ac_try) 2>&5
|
---|
5280 | ac_status=$?
|
---|
5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5282 | (exit $ac_status); }; }; then
|
---|
5283 | :
|
---|
5284 | else
|
---|
5285 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5286 | echo "$as_me: failed program was:" >&5
|
---|
5287 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5288 |
|
---|
5289 | ( exit $ac_status )
|
---|
5290 | ac_cv_header_stdc=no
|
---|
5291 | fi
|
---|
5292 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5293 | fi
|
---|
5294 | fi
|
---|
5295 | fi
|
---|
5296 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
5297 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
5298 | if test $ac_cv_header_stdc = yes; then
|
---|
5299 |
|
---|
5300 | cat >>confdefs.h <<\_ACEOF
|
---|
5301 | #define STDC_HEADERS 1
|
---|
5302 | _ACEOF
|
---|
5303 |
|
---|
5304 | fi
|
---|
5305 |
|
---|
5306 |
|
---|
5307 |
|
---|
5308 |
|
---|
5309 |
|
---|
5310 |
|
---|
5311 |
|
---|
5312 |
|
---|
5313 |
|
---|
5314 |
|
---|
5315 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
5316 | do
|
---|
5317 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5318 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5319 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5322 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5323 | fi
|
---|
5324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5326 | else
|
---|
5327 | # Is the header compilable?
|
---|
5328 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5329 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
5330 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5331 | /* confdefs.h. */
|
---|
5332 | _ACEOF
|
---|
5333 | cat confdefs.h >>conftest.$ac_ext
|
---|
5334 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5335 | /* end confdefs.h. */
|
---|
5336 | $ac_includes_default
|
---|
5337 | #include <$ac_header>
|
---|
5338 | _ACEOF
|
---|
5339 | rm -f conftest.$ac_objext
|
---|
5340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5341 | (eval $ac_compile) 2>conftest.er1
|
---|
5342 | ac_status=$?
|
---|
5343 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5344 | rm -f conftest.er1
|
---|
5345 | cat conftest.err >&5
|
---|
5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5347 | (exit $ac_status); } &&
|
---|
5348 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5349 | || test ! -s conftest.err'
|
---|
5350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5351 | (eval $ac_try) 2>&5
|
---|
5352 | ac_status=$?
|
---|
5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5354 | (exit $ac_status); }; } &&
|
---|
5355 | { ac_try='test -s conftest.$ac_objext'
|
---|
5356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5357 | (eval $ac_try) 2>&5
|
---|
5358 | ac_status=$?
|
---|
5359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5360 | (exit $ac_status); }; }; then
|
---|
5361 | ac_header_compiler=yes
|
---|
5362 | else
|
---|
5363 | echo "$as_me: failed program was:" >&5
|
---|
5364 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5365 |
|
---|
5366 | ac_header_compiler=no
|
---|
5367 | fi
|
---|
5368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5369 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5370 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5371 |
|
---|
5372 | # Is the header present?
|
---|
5373 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
5374 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
5375 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5376 | /* confdefs.h. */
|
---|
5377 | _ACEOF
|
---|
5378 | cat confdefs.h >>conftest.$ac_ext
|
---|
5379 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5380 | /* end confdefs.h. */
|
---|
5381 | #include <$ac_header>
|
---|
5382 | _ACEOF
|
---|
5383 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5384 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5385 | ac_status=$?
|
---|
5386 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5387 | rm -f conftest.er1
|
---|
5388 | cat conftest.err >&5
|
---|
5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5390 | (exit $ac_status); } >/dev/null; then
|
---|
5391 | if test -s conftest.err; then
|
---|
5392 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5393 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5394 | else
|
---|
5395 | ac_cpp_err=
|
---|
5396 | fi
|
---|
5397 | else
|
---|
5398 | ac_cpp_err=yes
|
---|
5399 | fi
|
---|
5400 | if test -z "$ac_cpp_err"; then
|
---|
5401 | ac_header_preproc=yes
|
---|
5402 | else
|
---|
5403 | echo "$as_me: failed program was:" >&5
|
---|
5404 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5405 |
|
---|
5406 | ac_header_preproc=no
|
---|
5407 | fi
|
---|
5408 | rm -f conftest.err conftest.$ac_ext
|
---|
5409 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5410 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5411 |
|
---|
5412 | # So? What about this header?
|
---|
5413 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5414 | yes:no: )
|
---|
5415 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5416 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5417 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
5418 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
5419 | ac_header_preproc=yes
|
---|
5420 | ;;
|
---|
5421 | no:yes:* )
|
---|
5422 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
5423 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
5424 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
5425 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
5426 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
5427 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
5428 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5429 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
5431 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
5432 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
5433 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
5434 | (
|
---|
5435 | cat <<\_ASBOX
|
---|
5436 | ## ------------------------------------------ ##
|
---|
5437 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
5438 | ## ------------------------------------------ ##
|
---|
5439 | _ASBOX
|
---|
5440 | ) |
|
---|
5441 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5442 | ;;
|
---|
5443 | esac
|
---|
5444 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5445 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5446 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5447 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5448 | else
|
---|
5449 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
5450 | fi
|
---|
5451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5452 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5453 |
|
---|
5454 | fi
|
---|
5455 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5456 | cat >>confdefs.h <<_ACEOF
|
---|
5457 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5458 | _ACEOF
|
---|
5459 |
|
---|
5460 | fi
|
---|
5461 |
|
---|
5462 | done
|
---|
5463 |
|
---|
5464 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5465 | /* confdefs.h. */
|
---|
5466 | _ACEOF
|
---|
5467 | cat confdefs.h >>conftest.$ac_ext
|
---|
5468 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5469 | /* end confdefs.h. */
|
---|
5470 | #include <stdio.h>
|
---|
5471 |
|
---|
5472 | _ACEOF
|
---|
5473 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5474 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
5475 | cat >>confdefs.h <<\_ACEOF
|
---|
5476 | #define HAVE_FREAD_DECL 1
|
---|
5477 | _ACEOF
|
---|
5478 |
|
---|
5479 | fi
|
---|
5480 | rm -f conftest*
|
---|
5481 |
|
---|
5482 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5483 | /* confdefs.h. */
|
---|
5484 | _ACEOF
|
---|
5485 | cat confdefs.h >>conftest.$ac_ext
|
---|
5486 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5487 | /* end confdefs.h. */
|
---|
5488 | #include <stdio.h>
|
---|
5489 |
|
---|
5490 | _ACEOF
|
---|
5491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5492 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
5493 | cat >>confdefs.h <<\_ACEOF
|
---|
5494 | #define HAVE_FGETC_DECL 1
|
---|
5495 | _ACEOF
|
---|
5496 |
|
---|
5497 | fi
|
---|
5498 | rm -f conftest*
|
---|
5499 |
|
---|
5500 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5501 | /* confdefs.h. */
|
---|
5502 | _ACEOF
|
---|
5503 | cat confdefs.h >>conftest.$ac_ext
|
---|
5504 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5505 | /* end confdefs.h. */
|
---|
5506 | #include <sys/procfs.h>
|
---|
5507 |
|
---|
5508 | _ACEOF
|
---|
5509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5510 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
5511 | cat >>confdefs.h <<\_ACEOF
|
---|
5512 | #define HAVE_PR_BRKSIZE 1
|
---|
5513 | _ACEOF
|
---|
5514 |
|
---|
5515 | fi
|
---|
5516 | rm -f conftest*
|
---|
5517 |
|
---|
5518 |
|
---|
5519 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5520 | # for constant arguments. Useless!
|
---|
5521 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
5522 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
5523 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
5524 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5525 | else
|
---|
5526 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5527 | /* confdefs.h. */
|
---|
5528 | _ACEOF
|
---|
5529 | cat confdefs.h >>conftest.$ac_ext
|
---|
5530 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5531 | /* end confdefs.h. */
|
---|
5532 | #include <alloca.h>
|
---|
5533 | int
|
---|
5534 | main ()
|
---|
5535 | {
|
---|
5536 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5537 | ;
|
---|
5538 | return 0;
|
---|
5539 | }
|
---|
5540 | _ACEOF
|
---|
5541 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5543 | (eval $ac_link) 2>conftest.er1
|
---|
5544 | ac_status=$?
|
---|
5545 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5546 | rm -f conftest.er1
|
---|
5547 | cat conftest.err >&5
|
---|
5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5549 | (exit $ac_status); } &&
|
---|
5550 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5551 | || test ! -s conftest.err'
|
---|
5552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5553 | (eval $ac_try) 2>&5
|
---|
5554 | ac_status=$?
|
---|
5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5556 | (exit $ac_status); }; } &&
|
---|
5557 | { ac_try='test -s conftest$ac_exeext'
|
---|
5558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5559 | (eval $ac_try) 2>&5
|
---|
5560 | ac_status=$?
|
---|
5561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5562 | (exit $ac_status); }; }; then
|
---|
5563 | ac_cv_working_alloca_h=yes
|
---|
5564 | else
|
---|
5565 | echo "$as_me: failed program was:" >&5
|
---|
5566 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5567 |
|
---|
5568 | ac_cv_working_alloca_h=no
|
---|
5569 | fi
|
---|
5570 | rm -f conftest.err conftest.$ac_objext \
|
---|
5571 | conftest$ac_exeext conftest.$ac_ext
|
---|
5572 | fi
|
---|
5573 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
5574 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
5575 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5576 |
|
---|
5577 | cat >>confdefs.h <<\_ACEOF
|
---|
5578 | #define HAVE_ALLOCA_H 1
|
---|
5579 | _ACEOF
|
---|
5580 |
|
---|
5581 | fi
|
---|
5582 |
|
---|
5583 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
5584 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
5585 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
5586 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5587 | else
|
---|
5588 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5589 | /* confdefs.h. */
|
---|
5590 | _ACEOF
|
---|
5591 | cat confdefs.h >>conftest.$ac_ext
|
---|
5592 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5593 | /* end confdefs.h. */
|
---|
5594 | #ifdef __GNUC__
|
---|
5595 | # define alloca __builtin_alloca
|
---|
5596 | #else
|
---|
5597 | # ifdef _MSC_VER
|
---|
5598 | # include <malloc.h>
|
---|
5599 | # define alloca _alloca
|
---|
5600 | # else
|
---|
5601 | # if HAVE_ALLOCA_H
|
---|
5602 | # include <alloca.h>
|
---|
5603 | # else
|
---|
5604 | # ifdef _AIX
|
---|
5605 | #pragma alloca
|
---|
5606 | # else
|
---|
5607 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5608 | char *alloca ();
|
---|
5609 | # endif
|
---|
5610 | # endif
|
---|
5611 | # endif
|
---|
5612 | # endif
|
---|
5613 | #endif
|
---|
5614 |
|
---|
5615 | int
|
---|
5616 | main ()
|
---|
5617 | {
|
---|
5618 | char *p = (char *) alloca (1);
|
---|
5619 | ;
|
---|
5620 | return 0;
|
---|
5621 | }
|
---|
5622 | _ACEOF
|
---|
5623 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5625 | (eval $ac_link) 2>conftest.er1
|
---|
5626 | ac_status=$?
|
---|
5627 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5628 | rm -f conftest.er1
|
---|
5629 | cat conftest.err >&5
|
---|
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5631 | (exit $ac_status); } &&
|
---|
5632 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5633 | || test ! -s conftest.err'
|
---|
5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5635 | (eval $ac_try) 2>&5
|
---|
5636 | ac_status=$?
|
---|
5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5638 | (exit $ac_status); }; } &&
|
---|
5639 | { ac_try='test -s conftest$ac_exeext'
|
---|
5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5641 | (eval $ac_try) 2>&5
|
---|
5642 | ac_status=$?
|
---|
5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5644 | (exit $ac_status); }; }; then
|
---|
5645 | ac_cv_func_alloca_works=yes
|
---|
5646 | else
|
---|
5647 | echo "$as_me: failed program was:" >&5
|
---|
5648 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5649 |
|
---|
5650 | ac_cv_func_alloca_works=no
|
---|
5651 | fi
|
---|
5652 | rm -f conftest.err conftest.$ac_objext \
|
---|
5653 | conftest$ac_exeext conftest.$ac_ext
|
---|
5654 | fi
|
---|
5655 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
5656 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
5657 |
|
---|
5658 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5659 |
|
---|
5660 | cat >>confdefs.h <<\_ACEOF
|
---|
5661 | #define HAVE_ALLOCA 1
|
---|
5662 | _ACEOF
|
---|
5663 |
|
---|
5664 | else
|
---|
5665 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5666 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5667 | # contain a buggy version. If you still want to use their alloca,
|
---|
5668 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5669 |
|
---|
5670 | ALLOCA=alloca.$ac_objext
|
---|
5671 |
|
---|
5672 | cat >>confdefs.h <<\_ACEOF
|
---|
5673 | #define C_ALLOCA 1
|
---|
5674 | _ACEOF
|
---|
5675 |
|
---|
5676 |
|
---|
5677 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5678 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
5679 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
5680 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5681 | else
|
---|
5682 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5683 | /* confdefs.h. */
|
---|
5684 | _ACEOF
|
---|
5685 | cat confdefs.h >>conftest.$ac_ext
|
---|
5686 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5687 | /* end confdefs.h. */
|
---|
5688 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
5689 | webecray
|
---|
5690 | #else
|
---|
5691 | wenotbecray
|
---|
5692 | #endif
|
---|
5693 |
|
---|
5694 | _ACEOF
|
---|
5695 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5696 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
5697 | ac_cv_os_cray=yes
|
---|
5698 | else
|
---|
5699 | ac_cv_os_cray=no
|
---|
5700 | fi
|
---|
5701 | rm -f conftest*
|
---|
5702 |
|
---|
5703 | fi
|
---|
5704 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
5705 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
5706 | if test $ac_cv_os_cray = yes; then
|
---|
5707 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5708 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5709 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5710 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5711 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5712 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5713 | else
|
---|
5714 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5715 | /* confdefs.h. */
|
---|
5716 | _ACEOF
|
---|
5717 | cat confdefs.h >>conftest.$ac_ext
|
---|
5718 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5719 | /* end confdefs.h. */
|
---|
5720 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5722 | #define $ac_func innocuous_$ac_func
|
---|
5723 |
|
---|
5724 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5725 | which can conflict with char $ac_func (); below.
|
---|
5726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5727 | <limits.h> exists even on freestanding compilers. */
|
---|
5728 |
|
---|
5729 | #ifdef __STDC__
|
---|
5730 | # include <limits.h>
|
---|
5731 | #else
|
---|
5732 | # include <assert.h>
|
---|
5733 | #endif
|
---|
5734 |
|
---|
5735 | #undef $ac_func
|
---|
5736 |
|
---|
5737 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5738 | #ifdef __cplusplus
|
---|
5739 | extern "C"
|
---|
5740 | {
|
---|
5741 | #endif
|
---|
5742 | /* We use char because int might match the return type of a gcc2
|
---|
5743 | builtin and then its argument prototype would still apply. */
|
---|
5744 | char $ac_func ();
|
---|
5745 | /* The GNU C library defines this for functions which it implements
|
---|
5746 | to always fail with ENOSYS. Some functions are actually named
|
---|
5747 | something starting with __ and the normal name is an alias. */
|
---|
5748 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5749 | choke me
|
---|
5750 | #else
|
---|
5751 | char (*f) () = $ac_func;
|
---|
5752 | #endif
|
---|
5753 | #ifdef __cplusplus
|
---|
5754 | }
|
---|
5755 | #endif
|
---|
5756 |
|
---|
5757 | int
|
---|
5758 | main ()
|
---|
5759 | {
|
---|
5760 | return f != $ac_func;
|
---|
5761 | ;
|
---|
5762 | return 0;
|
---|
5763 | }
|
---|
5764 | _ACEOF
|
---|
5765 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5767 | (eval $ac_link) 2>conftest.er1
|
---|
5768 | ac_status=$?
|
---|
5769 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5770 | rm -f conftest.er1
|
---|
5771 | cat conftest.err >&5
|
---|
5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5773 | (exit $ac_status); } &&
|
---|
5774 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5775 | || test ! -s conftest.err'
|
---|
5776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5777 | (eval $ac_try) 2>&5
|
---|
5778 | ac_status=$?
|
---|
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5780 | (exit $ac_status); }; } &&
|
---|
5781 | { ac_try='test -s conftest$ac_exeext'
|
---|
5782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5783 | (eval $ac_try) 2>&5
|
---|
5784 | ac_status=$?
|
---|
5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5786 | (exit $ac_status); }; }; then
|
---|
5787 | eval "$as_ac_var=yes"
|
---|
5788 | else
|
---|
5789 | echo "$as_me: failed program was:" >&5
|
---|
5790 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5791 |
|
---|
5792 | eval "$as_ac_var=no"
|
---|
5793 | fi
|
---|
5794 | rm -f conftest.err conftest.$ac_objext \
|
---|
5795 | conftest$ac_exeext conftest.$ac_ext
|
---|
5796 | fi
|
---|
5797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
5798 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
5799 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
5800 |
|
---|
5801 | cat >>confdefs.h <<_ACEOF
|
---|
5802 | #define CRAY_STACKSEG_END $ac_func
|
---|
5803 | _ACEOF
|
---|
5804 |
|
---|
5805 | break
|
---|
5806 | fi
|
---|
5807 |
|
---|
5808 | done
|
---|
5809 | fi
|
---|
5810 |
|
---|
5811 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
5812 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
5813 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
5814 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5815 | else
|
---|
5816 | if test "$cross_compiling" = yes; then
|
---|
5817 | ac_cv_c_stack_direction=0
|
---|
5818 | else
|
---|
5819 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5820 | /* confdefs.h. */
|
---|
5821 | _ACEOF
|
---|
5822 | cat confdefs.h >>conftest.$ac_ext
|
---|
5823 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5824 | /* end confdefs.h. */
|
---|
5825 | int
|
---|
5826 | find_stack_direction ()
|
---|
5827 | {
|
---|
5828 | static char *addr = 0;
|
---|
5829 | auto char dummy;
|
---|
5830 | if (addr == 0)
|
---|
5831 | {
|
---|
5832 | addr = &dummy;
|
---|
5833 | return find_stack_direction ();
|
---|
5834 | }
|
---|
5835 | else
|
---|
5836 | return (&dummy > addr) ? 1 : -1;
|
---|
5837 | }
|
---|
5838 |
|
---|
5839 | int
|
---|
5840 | main ()
|
---|
5841 | {
|
---|
5842 | exit (find_stack_direction () < 0);
|
---|
5843 | }
|
---|
5844 | _ACEOF
|
---|
5845 | rm -f conftest$ac_exeext
|
---|
5846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5847 | (eval $ac_link) 2>&5
|
---|
5848 | ac_status=$?
|
---|
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5852 | (eval $ac_try) 2>&5
|
---|
5853 | ac_status=$?
|
---|
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5855 | (exit $ac_status); }; }; then
|
---|
5856 | ac_cv_c_stack_direction=1
|
---|
5857 | else
|
---|
5858 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5859 | echo "$as_me: failed program was:" >&5
|
---|
5860 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5861 |
|
---|
5862 | ( exit $ac_status )
|
---|
5863 | ac_cv_c_stack_direction=-1
|
---|
5864 | fi
|
---|
5865 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5866 | fi
|
---|
5867 | fi
|
---|
5868 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
5869 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
5870 |
|
---|
5871 | cat >>confdefs.h <<_ACEOF
|
---|
5872 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5873 | _ACEOF
|
---|
5874 |
|
---|
5875 |
|
---|
5876 | fi
|
---|
5877 |
|
---|
5878 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5879 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
5880 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
5881 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
5882 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5883 | else
|
---|
5884 | ac_pattern="Autoconf.*'x'"
|
---|
5885 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5886 | /* confdefs.h. */
|
---|
5887 | _ACEOF
|
---|
5888 | cat confdefs.h >>conftest.$ac_ext
|
---|
5889 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5890 | /* end confdefs.h. */
|
---|
5891 | #include <sgtty.h>
|
---|
5892 | Autoconf TIOCGETP
|
---|
5893 | _ACEOF
|
---|
5894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5895 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5896 | ac_cv_prog_gcc_traditional=yes
|
---|
5897 | else
|
---|
5898 | ac_cv_prog_gcc_traditional=no
|
---|
5899 | fi
|
---|
5900 | rm -f conftest*
|
---|
5901 |
|
---|
5902 |
|
---|
5903 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5904 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5905 | /* confdefs.h. */
|
---|
5906 | _ACEOF
|
---|
5907 | cat confdefs.h >>conftest.$ac_ext
|
---|
5908 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5909 | /* end confdefs.h. */
|
---|
5910 | #include <termio.h>
|
---|
5911 | Autoconf TCGETA
|
---|
5912 | _ACEOF
|
---|
5913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5914 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5915 | ac_cv_prog_gcc_traditional=yes
|
---|
5916 | fi
|
---|
5917 | rm -f conftest*
|
---|
5918 |
|
---|
5919 | fi
|
---|
5920 | fi
|
---|
5921 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5922 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
5923 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5924 | CC="$CC -traditional"
|
---|
5925 | fi
|
---|
5926 | fi
|
---|
5927 |
|
---|
5928 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
5929 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
5930 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
5931 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5932 | else
|
---|
5933 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5934 | /* confdefs.h. */
|
---|
5935 | _ACEOF
|
---|
5936 | cat confdefs.h >>conftest.$ac_ext
|
---|
5937 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5938 | /* end confdefs.h. */
|
---|
5939 | #include <sys/types.h>
|
---|
5940 | #include <signal.h>
|
---|
5941 | #ifdef signal
|
---|
5942 | # undef signal
|
---|
5943 | #endif
|
---|
5944 | #ifdef __cplusplus
|
---|
5945 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
5946 | #else
|
---|
5947 | void (*signal ()) ();
|
---|
5948 | #endif
|
---|
5949 |
|
---|
5950 | int
|
---|
5951 | main ()
|
---|
5952 | {
|
---|
5953 | int i;
|
---|
5954 | ;
|
---|
5955 | return 0;
|
---|
5956 | }
|
---|
5957 | _ACEOF
|
---|
5958 | rm -f conftest.$ac_objext
|
---|
5959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5960 | (eval $ac_compile) 2>conftest.er1
|
---|
5961 | ac_status=$?
|
---|
5962 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5963 | rm -f conftest.er1
|
---|
5964 | cat conftest.err >&5
|
---|
5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5966 | (exit $ac_status); } &&
|
---|
5967 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5968 | || test ! -s conftest.err'
|
---|
5969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5970 | (eval $ac_try) 2>&5
|
---|
5971 | ac_status=$?
|
---|
5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5973 | (exit $ac_status); }; } &&
|
---|
5974 | { ac_try='test -s conftest.$ac_objext'
|
---|
5975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5976 | (eval $ac_try) 2>&5
|
---|
5977 | ac_status=$?
|
---|
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5979 | (exit $ac_status); }; }; then
|
---|
5980 | ac_cv_type_signal=void
|
---|
5981 | else
|
---|
5982 | echo "$as_me: failed program was:" >&5
|
---|
5983 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5984 |
|
---|
5985 | ac_cv_type_signal=int
|
---|
5986 | fi
|
---|
5987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5988 | fi
|
---|
5989 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
5990 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
5991 |
|
---|
5992 | cat >>confdefs.h <<_ACEOF
|
---|
5993 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5994 | _ACEOF
|
---|
5995 |
|
---|
5996 |
|
---|
5997 |
|
---|
5998 | for ac_func in vprintf
|
---|
5999 | do
|
---|
6000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6001 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6003 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6004 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6005 | else
|
---|
6006 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6007 | /* confdefs.h. */
|
---|
6008 | _ACEOF
|
---|
6009 | cat confdefs.h >>conftest.$ac_ext
|
---|
6010 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6011 | /* end confdefs.h. */
|
---|
6012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6014 | #define $ac_func innocuous_$ac_func
|
---|
6015 |
|
---|
6016 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6017 | which can conflict with char $ac_func (); below.
|
---|
6018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6019 | <limits.h> exists even on freestanding compilers. */
|
---|
6020 |
|
---|
6021 | #ifdef __STDC__
|
---|
6022 | # include <limits.h>
|
---|
6023 | #else
|
---|
6024 | # include <assert.h>
|
---|
6025 | #endif
|
---|
6026 |
|
---|
6027 | #undef $ac_func
|
---|
6028 |
|
---|
6029 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6030 | #ifdef __cplusplus
|
---|
6031 | extern "C"
|
---|
6032 | {
|
---|
6033 | #endif
|
---|
6034 | /* We use char because int might match the return type of a gcc2
|
---|
6035 | builtin and then its argument prototype would still apply. */
|
---|
6036 | char $ac_func ();
|
---|
6037 | /* The GNU C library defines this for functions which it implements
|
---|
6038 | to always fail with ENOSYS. Some functions are actually named
|
---|
6039 | something starting with __ and the normal name is an alias. */
|
---|
6040 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6041 | choke me
|
---|
6042 | #else
|
---|
6043 | char (*f) () = $ac_func;
|
---|
6044 | #endif
|
---|
6045 | #ifdef __cplusplus
|
---|
6046 | }
|
---|
6047 | #endif
|
---|
6048 |
|
---|
6049 | int
|
---|
6050 | main ()
|
---|
6051 | {
|
---|
6052 | return f != $ac_func;
|
---|
6053 | ;
|
---|
6054 | return 0;
|
---|
6055 | }
|
---|
6056 | _ACEOF
|
---|
6057 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6059 | (eval $ac_link) 2>conftest.er1
|
---|
6060 | ac_status=$?
|
---|
6061 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6062 | rm -f conftest.er1
|
---|
6063 | cat conftest.err >&5
|
---|
6064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6065 | (exit $ac_status); } &&
|
---|
6066 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6067 | || test ! -s conftest.err'
|
---|
6068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6069 | (eval $ac_try) 2>&5
|
---|
6070 | ac_status=$?
|
---|
6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6072 | (exit $ac_status); }; } &&
|
---|
6073 | { ac_try='test -s conftest$ac_exeext'
|
---|
6074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6075 | (eval $ac_try) 2>&5
|
---|
6076 | ac_status=$?
|
---|
6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6078 | (exit $ac_status); }; }; then
|
---|
6079 | eval "$as_ac_var=yes"
|
---|
6080 | else
|
---|
6081 | echo "$as_me: failed program was:" >&5
|
---|
6082 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6083 |
|
---|
6084 | eval "$as_ac_var=no"
|
---|
6085 | fi
|
---|
6086 | rm -f conftest.err conftest.$ac_objext \
|
---|
6087 | conftest$ac_exeext conftest.$ac_ext
|
---|
6088 | fi
|
---|
6089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6090 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6091 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6092 | cat >>confdefs.h <<_ACEOF
|
---|
6093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6094 | _ACEOF
|
---|
6095 |
|
---|
6096 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
6097 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
6098 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
6099 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6100 | else
|
---|
6101 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6102 | /* confdefs.h. */
|
---|
6103 | _ACEOF
|
---|
6104 | cat confdefs.h >>conftest.$ac_ext
|
---|
6105 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6106 | /* end confdefs.h. */
|
---|
6107 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
6108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6109 | #define _doprnt innocuous__doprnt
|
---|
6110 |
|
---|
6111 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6112 | which can conflict with char _doprnt (); below.
|
---|
6113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6114 | <limits.h> exists even on freestanding compilers. */
|
---|
6115 |
|
---|
6116 | #ifdef __STDC__
|
---|
6117 | # include <limits.h>
|
---|
6118 | #else
|
---|
6119 | # include <assert.h>
|
---|
6120 | #endif
|
---|
6121 |
|
---|
6122 | #undef _doprnt
|
---|
6123 |
|
---|
6124 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6125 | #ifdef __cplusplus
|
---|
6126 | extern "C"
|
---|
6127 | {
|
---|
6128 | #endif
|
---|
6129 | /* We use char because int might match the return type of a gcc2
|
---|
6130 | builtin and then its argument prototype would still apply. */
|
---|
6131 | char _doprnt ();
|
---|
6132 | /* The GNU C library defines this for functions which it implements
|
---|
6133 | to always fail with ENOSYS. Some functions are actually named
|
---|
6134 | something starting with __ and the normal name is an alias. */
|
---|
6135 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
6136 | choke me
|
---|
6137 | #else
|
---|
6138 | char (*f) () = _doprnt;
|
---|
6139 | #endif
|
---|
6140 | #ifdef __cplusplus
|
---|
6141 | }
|
---|
6142 | #endif
|
---|
6143 |
|
---|
6144 | int
|
---|
6145 | main ()
|
---|
6146 | {
|
---|
6147 | return f != _doprnt;
|
---|
6148 | ;
|
---|
6149 | return 0;
|
---|
6150 | }
|
---|
6151 | _ACEOF
|
---|
6152 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6154 | (eval $ac_link) 2>conftest.er1
|
---|
6155 | ac_status=$?
|
---|
6156 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6157 | rm -f conftest.er1
|
---|
6158 | cat conftest.err >&5
|
---|
6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6160 | (exit $ac_status); } &&
|
---|
6161 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6162 | || test ! -s conftest.err'
|
---|
6163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6164 | (eval $ac_try) 2>&5
|
---|
6165 | ac_status=$?
|
---|
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6167 | (exit $ac_status); }; } &&
|
---|
6168 | { ac_try='test -s conftest$ac_exeext'
|
---|
6169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6170 | (eval $ac_try) 2>&5
|
---|
6171 | ac_status=$?
|
---|
6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6173 | (exit $ac_status); }; }; then
|
---|
6174 | ac_cv_func__doprnt=yes
|
---|
6175 | else
|
---|
6176 | echo "$as_me: failed program was:" >&5
|
---|
6177 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6178 |
|
---|
6179 | ac_cv_func__doprnt=no
|
---|
6180 | fi
|
---|
6181 | rm -f conftest.err conftest.$ac_objext \
|
---|
6182 | conftest$ac_exeext conftest.$ac_ext
|
---|
6183 | fi
|
---|
6184 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
6185 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
6186 | if test $ac_cv_func__doprnt = yes; then
|
---|
6187 |
|
---|
6188 | cat >>confdefs.h <<\_ACEOF
|
---|
6189 | #define HAVE_DOPRNT 1
|
---|
6190 | _ACEOF
|
---|
6191 |
|
---|
6192 | fi
|
---|
6193 |
|
---|
6194 | fi
|
---|
6195 | done
|
---|
6196 |
|
---|
6197 |
|
---|
6198 |
|
---|
6199 |
|
---|
6200 |
|
---|
6201 |
|
---|
6202 |
|
---|
6203 |
|
---|
6204 |
|
---|
6205 |
|
---|
6206 |
|
---|
6207 |
|
---|
6208 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6209 | do
|
---|
6210 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6211 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6212 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6213 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6214 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6215 | else
|
---|
6216 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6217 | /* confdefs.h. */
|
---|
6218 | _ACEOF
|
---|
6219 | cat confdefs.h >>conftest.$ac_ext
|
---|
6220 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6221 | /* end confdefs.h. */
|
---|
6222 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6224 | #define $ac_func innocuous_$ac_func
|
---|
6225 |
|
---|
6226 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6227 | which can conflict with char $ac_func (); below.
|
---|
6228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6229 | <limits.h> exists even on freestanding compilers. */
|
---|
6230 |
|
---|
6231 | #ifdef __STDC__
|
---|
6232 | # include <limits.h>
|
---|
6233 | #else
|
---|
6234 | # include <assert.h>
|
---|
6235 | #endif
|
---|
6236 |
|
---|
6237 | #undef $ac_func
|
---|
6238 |
|
---|
6239 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6240 | #ifdef __cplusplus
|
---|
6241 | extern "C"
|
---|
6242 | {
|
---|
6243 | #endif
|
---|
6244 | /* We use char because int might match the return type of a gcc2
|
---|
6245 | builtin and then its argument prototype would still apply. */
|
---|
6246 | char $ac_func ();
|
---|
6247 | /* The GNU C library defines this for functions which it implements
|
---|
6248 | to always fail with ENOSYS. Some functions are actually named
|
---|
6249 | something starting with __ and the normal name is an alias. */
|
---|
6250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6251 | choke me
|
---|
6252 | #else
|
---|
6253 | char (*f) () = $ac_func;
|
---|
6254 | #endif
|
---|
6255 | #ifdef __cplusplus
|
---|
6256 | }
|
---|
6257 | #endif
|
---|
6258 |
|
---|
6259 | int
|
---|
6260 | main ()
|
---|
6261 | {
|
---|
6262 | return f != $ac_func;
|
---|
6263 | ;
|
---|
6264 | return 0;
|
---|
6265 | }
|
---|
6266 | _ACEOF
|
---|
6267 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6269 | (eval $ac_link) 2>conftest.er1
|
---|
6270 | ac_status=$?
|
---|
6271 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6272 | rm -f conftest.er1
|
---|
6273 | cat conftest.err >&5
|
---|
6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6275 | (exit $ac_status); } &&
|
---|
6276 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6277 | || test ! -s conftest.err'
|
---|
6278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6279 | (eval $ac_try) 2>&5
|
---|
6280 | ac_status=$?
|
---|
6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6282 | (exit $ac_status); }; } &&
|
---|
6283 | { ac_try='test -s conftest$ac_exeext'
|
---|
6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6285 | (eval $ac_try) 2>&5
|
---|
6286 | ac_status=$?
|
---|
6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6288 | (exit $ac_status); }; }; then
|
---|
6289 | eval "$as_ac_var=yes"
|
---|
6290 | else
|
---|
6291 | echo "$as_me: failed program was:" >&5
|
---|
6292 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6293 |
|
---|
6294 | eval "$as_ac_var=no"
|
---|
6295 | fi
|
---|
6296 | rm -f conftest.err conftest.$ac_objext \
|
---|
6297 | conftest$ac_exeext conftest.$ac_ext
|
---|
6298 | fi
|
---|
6299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6300 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6301 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6302 | cat >>confdefs.h <<_ACEOF
|
---|
6303 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6304 | _ACEOF
|
---|
6305 |
|
---|
6306 | fi
|
---|
6307 | done
|
---|
6308 |
|
---|
6309 |
|
---|
6310 |
|
---|
6311 |
|
---|
6312 | for ac_func in ftruncate strstr strcasecmp
|
---|
6313 | do
|
---|
6314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6315 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6317 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6318 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6319 | else
|
---|
6320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6321 | /* confdefs.h. */
|
---|
6322 | _ACEOF
|
---|
6323 | cat confdefs.h >>conftest.$ac_ext
|
---|
6324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6325 | /* end confdefs.h. */
|
---|
6326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6328 | #define $ac_func innocuous_$ac_func
|
---|
6329 |
|
---|
6330 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6331 | which can conflict with char $ac_func (); below.
|
---|
6332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6333 | <limits.h> exists even on freestanding compilers. */
|
---|
6334 |
|
---|
6335 | #ifdef __STDC__
|
---|
6336 | # include <limits.h>
|
---|
6337 | #else
|
---|
6338 | # include <assert.h>
|
---|
6339 | #endif
|
---|
6340 |
|
---|
6341 | #undef $ac_func
|
---|
6342 |
|
---|
6343 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6344 | #ifdef __cplusplus
|
---|
6345 | extern "C"
|
---|
6346 | {
|
---|
6347 | #endif
|
---|
6348 | /* We use char because int might match the return type of a gcc2
|
---|
6349 | builtin and then its argument prototype would still apply. */
|
---|
6350 | char $ac_func ();
|
---|
6351 | /* The GNU C library defines this for functions which it implements
|
---|
6352 | to always fail with ENOSYS. Some functions are actually named
|
---|
6353 | something starting with __ and the normal name is an alias. */
|
---|
6354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6355 | choke me
|
---|
6356 | #else
|
---|
6357 | char (*f) () = $ac_func;
|
---|
6358 | #endif
|
---|
6359 | #ifdef __cplusplus
|
---|
6360 | }
|
---|
6361 | #endif
|
---|
6362 |
|
---|
6363 | int
|
---|
6364 | main ()
|
---|
6365 | {
|
---|
6366 | return f != $ac_func;
|
---|
6367 | ;
|
---|
6368 | return 0;
|
---|
6369 | }
|
---|
6370 | _ACEOF
|
---|
6371 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6373 | (eval $ac_link) 2>conftest.er1
|
---|
6374 | ac_status=$?
|
---|
6375 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6376 | rm -f conftest.er1
|
---|
6377 | cat conftest.err >&5
|
---|
6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6379 | (exit $ac_status); } &&
|
---|
6380 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6381 | || test ! -s conftest.err'
|
---|
6382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6383 | (eval $ac_try) 2>&5
|
---|
6384 | ac_status=$?
|
---|
6385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6386 | (exit $ac_status); }; } &&
|
---|
6387 | { ac_try='test -s conftest$ac_exeext'
|
---|
6388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6389 | (eval $ac_try) 2>&5
|
---|
6390 | ac_status=$?
|
---|
6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6392 | (exit $ac_status); }; }; then
|
---|
6393 | eval "$as_ac_var=yes"
|
---|
6394 | else
|
---|
6395 | echo "$as_me: failed program was:" >&5
|
---|
6396 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6397 |
|
---|
6398 | eval "$as_ac_var=no"
|
---|
6399 | fi
|
---|
6400 | rm -f conftest.err conftest.$ac_objext \
|
---|
6401 | conftest$ac_exeext conftest.$ac_ext
|
---|
6402 | fi
|
---|
6403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6404 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6405 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6406 | cat >>confdefs.h <<_ACEOF
|
---|
6407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6408 | _ACEOF
|
---|
6409 |
|
---|
6410 | else
|
---|
6411 | case $LIBOBJS in
|
---|
6412 | "$ac_func.$ac_objext" | \
|
---|
6413 | *" $ac_func.$ac_objext" | \
|
---|
6414 | "$ac_func.$ac_objext "* | \
|
---|
6415 | *" $ac_func.$ac_objext "* ) ;;
|
---|
6416 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
6417 | esac
|
---|
6418 |
|
---|
6419 | fi
|
---|
6420 | done
|
---|
6421 |
|
---|
6422 |
|
---|
6423 |
|
---|
6424 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
6425 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
6426 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
6427 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6428 | else
|
---|
6429 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6430 | /* confdefs.h. */
|
---|
6431 | _ACEOF
|
---|
6432 | cat confdefs.h >>conftest.$ac_ext
|
---|
6433 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6434 | /* end confdefs.h. */
|
---|
6435 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
6436 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6437 | #define textdomain innocuous_textdomain
|
---|
6438 |
|
---|
6439 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6440 | which can conflict with char textdomain (); below.
|
---|
6441 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6442 | <limits.h> exists even on freestanding compilers. */
|
---|
6443 |
|
---|
6444 | #ifdef __STDC__
|
---|
6445 | # include <limits.h>
|
---|
6446 | #else
|
---|
6447 | # include <assert.h>
|
---|
6448 | #endif
|
---|
6449 |
|
---|
6450 | #undef textdomain
|
---|
6451 |
|
---|
6452 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6453 | #ifdef __cplusplus
|
---|
6454 | extern "C"
|
---|
6455 | {
|
---|
6456 | #endif
|
---|
6457 | /* We use char because int might match the return type of a gcc2
|
---|
6458 | builtin and then its argument prototype would still apply. */
|
---|
6459 | char textdomain ();
|
---|
6460 | /* The GNU C library defines this for functions which it implements
|
---|
6461 | to always fail with ENOSYS. Some functions are actually named
|
---|
6462 | something starting with __ and the normal name is an alias. */
|
---|
6463 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
6464 | choke me
|
---|
6465 | #else
|
---|
6466 | char (*f) () = textdomain;
|
---|
6467 | #endif
|
---|
6468 | #ifdef __cplusplus
|
---|
6469 | }
|
---|
6470 | #endif
|
---|
6471 |
|
---|
6472 | int
|
---|
6473 | main ()
|
---|
6474 | {
|
---|
6475 | return f != textdomain;
|
---|
6476 | ;
|
---|
6477 | return 0;
|
---|
6478 | }
|
---|
6479 | _ACEOF
|
---|
6480 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6482 | (eval $ac_link) 2>conftest.er1
|
---|
6483 | ac_status=$?
|
---|
6484 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6485 | rm -f conftest.er1
|
---|
6486 | cat conftest.err >&5
|
---|
6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6488 | (exit $ac_status); } &&
|
---|
6489 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6490 | || test ! -s conftest.err'
|
---|
6491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6492 | (eval $ac_try) 2>&5
|
---|
6493 | ac_status=$?
|
---|
6494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6495 | (exit $ac_status); }; } &&
|
---|
6496 | { ac_try='test -s conftest$ac_exeext'
|
---|
6497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6498 | (eval $ac_try) 2>&5
|
---|
6499 | ac_status=$?
|
---|
6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6501 | (exit $ac_status); }; }; then
|
---|
6502 | ac_cv_func_textdomain=yes
|
---|
6503 | else
|
---|
6504 | echo "$as_me: failed program was:" >&5
|
---|
6505 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6506 |
|
---|
6507 | ac_cv_func_textdomain=no
|
---|
6508 | fi
|
---|
6509 | rm -f conftest.err conftest.$ac_objext \
|
---|
6510 | conftest$ac_exeext conftest.$ac_ext
|
---|
6511 | fi
|
---|
6512 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
6513 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
6514 | if test $ac_cv_func_textdomain = yes; then
|
---|
6515 | cat >>confdefs.h <<\_ACEOF
|
---|
6516 | #define ENABLE_NLS 1
|
---|
6517 | _ACEOF
|
---|
6518 |
|
---|
6519 | fi
|
---|
6520 |
|
---|
6521 |
|
---|
6522 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6523 | # ---------------------------------------------------------------------------
|
---|
6524 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
6525 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
6526 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6527 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6528 | echo "${ECHO_T}yes" >&6
|
---|
6529 | case $LIBOBJS in
|
---|
6530 | "gmalloc.$ac_objext" | \
|
---|
6531 | *" gmalloc.$ac_objext" | \
|
---|
6532 | "gmalloc.$ac_objext "* | \
|
---|
6533 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6534 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
6535 | esac
|
---|
6536 |
|
---|
6537 | cat >>confdefs.h <<\_ACEOF
|
---|
6538 | #define HAVE_VALLOC 1
|
---|
6539 | _ACEOF
|
---|
6540 |
|
---|
6541 | else
|
---|
6542 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6543 | echo "${ECHO_T}no" >&6
|
---|
6544 |
|
---|
6545 | for ac_func in valloc
|
---|
6546 | do
|
---|
6547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6548 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6550 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6551 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6552 | else
|
---|
6553 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6554 | /* confdefs.h. */
|
---|
6555 | _ACEOF
|
---|
6556 | cat confdefs.h >>conftest.$ac_ext
|
---|
6557 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6558 | /* end confdefs.h. */
|
---|
6559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6561 | #define $ac_func innocuous_$ac_func
|
---|
6562 |
|
---|
6563 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6564 | which can conflict with char $ac_func (); below.
|
---|
6565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6566 | <limits.h> exists even on freestanding compilers. */
|
---|
6567 |
|
---|
6568 | #ifdef __STDC__
|
---|
6569 | # include <limits.h>
|
---|
6570 | #else
|
---|
6571 | # include <assert.h>
|
---|
6572 | #endif
|
---|
6573 |
|
---|
6574 | #undef $ac_func
|
---|
6575 |
|
---|
6576 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6577 | #ifdef __cplusplus
|
---|
6578 | extern "C"
|
---|
6579 | {
|
---|
6580 | #endif
|
---|
6581 | /* We use char because int might match the return type of a gcc2
|
---|
6582 | builtin and then its argument prototype would still apply. */
|
---|
6583 | char $ac_func ();
|
---|
6584 | /* The GNU C library defines this for functions which it implements
|
---|
6585 | to always fail with ENOSYS. Some functions are actually named
|
---|
6586 | something starting with __ and the normal name is an alias. */
|
---|
6587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6588 | choke me
|
---|
6589 | #else
|
---|
6590 | char (*f) () = $ac_func;
|
---|
6591 | #endif
|
---|
6592 | #ifdef __cplusplus
|
---|
6593 | }
|
---|
6594 | #endif
|
---|
6595 |
|
---|
6596 | int
|
---|
6597 | main ()
|
---|
6598 | {
|
---|
6599 | return f != $ac_func;
|
---|
6600 | ;
|
---|
6601 | return 0;
|
---|
6602 | }
|
---|
6603 | _ACEOF
|
---|
6604 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6606 | (eval $ac_link) 2>conftest.er1
|
---|
6607 | ac_status=$?
|
---|
6608 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6609 | rm -f conftest.er1
|
---|
6610 | cat conftest.err >&5
|
---|
6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6612 | (exit $ac_status); } &&
|
---|
6613 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6614 | || test ! -s conftest.err'
|
---|
6615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6616 | (eval $ac_try) 2>&5
|
---|
6617 | ac_status=$?
|
---|
6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6619 | (exit $ac_status); }; } &&
|
---|
6620 | { ac_try='test -s conftest$ac_exeext'
|
---|
6621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6622 | (eval $ac_try) 2>&5
|
---|
6623 | ac_status=$?
|
---|
6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6625 | (exit $ac_status); }; }; then
|
---|
6626 | eval "$as_ac_var=yes"
|
---|
6627 | else
|
---|
6628 | echo "$as_me: failed program was:" >&5
|
---|
6629 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6630 |
|
---|
6631 | eval "$as_ac_var=no"
|
---|
6632 | fi
|
---|
6633 | rm -f conftest.err conftest.$ac_objext \
|
---|
6634 | conftest$ac_exeext conftest.$ac_ext
|
---|
6635 | fi
|
---|
6636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6638 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6639 | cat >>confdefs.h <<_ACEOF
|
---|
6640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6641 | _ACEOF
|
---|
6642 |
|
---|
6643 | fi
|
---|
6644 | done
|
---|
6645 |
|
---|
6646 | fi
|
---|
6647 |
|
---|
6648 | # we cannot generate static libraries under Darwin
|
---|
6649 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
6650 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
6651 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6652 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6653 | echo "${ECHO_T}yes" >&6
|
---|
6654 | STATIC=""
|
---|
6655 | else
|
---|
6656 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6657 | echo "${ECHO_T}no" >&6
|
---|
6658 | STATIC="-static "
|
---|
6659 | fi
|
---|
6660 |
|
---|
6661 |
|
---|
6662 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
6663 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
6664 |
|
---|
6665 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
6666 | if test "${with_dmalloc+set}" = set; then
|
---|
6667 | withval="$with_dmalloc"
|
---|
6668 | if test "$withval" = yes; then
|
---|
6669 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6670 | echo "${ECHO_T}yes" >&6
|
---|
6671 | cat >>confdefs.h <<\_ACEOF
|
---|
6672 | #define WITH_DMALLOC 1
|
---|
6673 | _ACEOF
|
---|
6674 |
|
---|
6675 | LIBS="$LIBS -ldmalloc"
|
---|
6676 | LDFLAGS="$LDFLAGS -g"
|
---|
6677 | else
|
---|
6678 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6679 | echo "${ECHO_T}no" >&6
|
---|
6680 | fi
|
---|
6681 | else
|
---|
6682 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6683 | echo "${ECHO_T}no" >&6
|
---|
6684 | fi;
|
---|
6685 |
|
---|
6686 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
6687 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
6688 |
|
---|
6689 | # Check whether --with-regex or --without-regex was given.
|
---|
6690 | if test "${with_regex+set}" = set; then
|
---|
6691 | withval="$with_regex"
|
---|
6692 | if test "$withval" = yes; then
|
---|
6693 | ac_with_regex=1
|
---|
6694 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
6695 | echo "${ECHO_T}regex" >&6
|
---|
6696 | cat >>confdefs.h <<\_ACEOF
|
---|
6697 | #define WITH_REGEX 1
|
---|
6698 | _ACEOF
|
---|
6699 |
|
---|
6700 | case $LIBOBJS in
|
---|
6701 | "regex.$ac_objext" | \
|
---|
6702 | *" regex.$ac_objext" | \
|
---|
6703 | "regex.$ac_objext "* | \
|
---|
6704 | *" regex.$ac_objext "* ) ;;
|
---|
6705 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
6706 | esac
|
---|
6707 |
|
---|
6708 | fi
|
---|
6709 | fi;
|
---|
6710 | if test -z "$ac_with_regex"; then
|
---|
6711 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
6712 | echo "${ECHO_T}rx" >&6
|
---|
6713 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
6714 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
6715 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
6716 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6717 | else
|
---|
6718 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6719 | /* confdefs.h. */
|
---|
6720 | _ACEOF
|
---|
6721 | cat confdefs.h >>conftest.$ac_ext
|
---|
6722 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6723 | /* end confdefs.h. */
|
---|
6724 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
6725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6726 | #define re_rx_search innocuous_re_rx_search
|
---|
6727 |
|
---|
6728 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6729 | which can conflict with char re_rx_search (); below.
|
---|
6730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6731 | <limits.h> exists even on freestanding compilers. */
|
---|
6732 |
|
---|
6733 | #ifdef __STDC__
|
---|
6734 | # include <limits.h>
|
---|
6735 | #else
|
---|
6736 | # include <assert.h>
|
---|
6737 | #endif
|
---|
6738 |
|
---|
6739 | #undef re_rx_search
|
---|
6740 |
|
---|
6741 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6742 | #ifdef __cplusplus
|
---|
6743 | extern "C"
|
---|
6744 | {
|
---|
6745 | #endif
|
---|
6746 | /* We use char because int might match the return type of a gcc2
|
---|
6747 | builtin and then its argument prototype would still apply. */
|
---|
6748 | char re_rx_search ();
|
---|
6749 | /* The GNU C library defines this for functions which it implements
|
---|
6750 | to always fail with ENOSYS. Some functions are actually named
|
---|
6751 | something starting with __ and the normal name is an alias. */
|
---|
6752 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
6753 | choke me
|
---|
6754 | #else
|
---|
6755 | char (*f) () = re_rx_search;
|
---|
6756 | #endif
|
---|
6757 | #ifdef __cplusplus
|
---|
6758 | }
|
---|
6759 | #endif
|
---|
6760 |
|
---|
6761 | int
|
---|
6762 | main ()
|
---|
6763 | {
|
---|
6764 | return f != re_rx_search;
|
---|
6765 | ;
|
---|
6766 | return 0;
|
---|
6767 | }
|
---|
6768 | _ACEOF
|
---|
6769 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6771 | (eval $ac_link) 2>conftest.er1
|
---|
6772 | ac_status=$?
|
---|
6773 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6774 | rm -f conftest.er1
|
---|
6775 | cat conftest.err >&5
|
---|
6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6777 | (exit $ac_status); } &&
|
---|
6778 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6779 | || test ! -s conftest.err'
|
---|
6780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6781 | (eval $ac_try) 2>&5
|
---|
6782 | ac_status=$?
|
---|
6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6784 | (exit $ac_status); }; } &&
|
---|
6785 | { ac_try='test -s conftest$ac_exeext'
|
---|
6786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6787 | (eval $ac_try) 2>&5
|
---|
6788 | ac_status=$?
|
---|
6789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6790 | (exit $ac_status); }; }; then
|
---|
6791 | ac_cv_func_re_rx_search=yes
|
---|
6792 | else
|
---|
6793 | echo "$as_me: failed program was:" >&5
|
---|
6794 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6795 |
|
---|
6796 | ac_cv_func_re_rx_search=no
|
---|
6797 | fi
|
---|
6798 | rm -f conftest.err conftest.$ac_objext \
|
---|
6799 | conftest$ac_exeext conftest.$ac_ext
|
---|
6800 | fi
|
---|
6801 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
6802 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
6803 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
6804 | :
|
---|
6805 | else
|
---|
6806 | case $LIBOBJS in
|
---|
6807 | "rx.$ac_objext" | \
|
---|
6808 | *" rx.$ac_objext" | \
|
---|
6809 | "rx.$ac_objext "* | \
|
---|
6810 | *" rx.$ac_objext "* ) ;;
|
---|
6811 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
6812 | esac
|
---|
6813 |
|
---|
6814 | fi
|
---|
6815 |
|
---|
6816 | fi
|
---|
6817 |
|
---|
6818 |
|
---|
6819 | # ---------------------------------------------------------------------------
|
---|
6820 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6821 | case $LIBOBJS in
|
---|
6822 | "xmalloc.$ac_objext" | \
|
---|
6823 | *" xmalloc.$ac_objext" | \
|
---|
6824 | "xmalloc.$ac_objext "* | \
|
---|
6825 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6826 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
6827 | esac
|
---|
6828 |
|
---|
6829 | case $LIBOBJS in
|
---|
6830 | "error.$ac_objext" | \
|
---|
6831 | *" error.$ac_objext" | \
|
---|
6832 | "error.$ac_objext "* | \
|
---|
6833 | *" error.$ac_objext "* ) ;;
|
---|
6834 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
6835 | esac
|
---|
6836 |
|
---|
6837 | fi
|
---|
6838 |
|
---|
6839 |
|
---|
6840 | # ---------------------------------------------------------------------------
|
---|
6841 |
|
---|
6842 | ac_ext=cc
|
---|
6843 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6844 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6845 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6846 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6847 |
|
---|
6848 |
|
---|
6849 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
6850 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
6851 | success="no"
|
---|
6852 | pl_path="$PATH"
|
---|
6853 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
6854 | for pl_dir in $pl_path; do
|
---|
6855 | test -z "$pl_dir" && pl_dir=.
|
---|
6856 | if test -x $pl_dir/perl; then
|
---|
6857 | success="yes"
|
---|
6858 | break
|
---|
6859 | fi
|
---|
6860 | done
|
---|
6861 | IFS="$pl_save_ifs"
|
---|
6862 |
|
---|
6863 | if test $success = "yes"; then
|
---|
6864 | try=`perl configtest.pl` || try="0"
|
---|
6865 | try=`expr $try \> 5.000`
|
---|
6866 | if test $try = "1"; then
|
---|
6867 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
6868 | echo "${ECHO_T}\"yes\"" >&6
|
---|
6869 | else
|
---|
6870 | success="no"
|
---|
6871 | fi
|
---|
6872 | fi
|
---|
6873 |
|
---|
6874 | if test $success = "no"; then
|
---|
6875 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
6876 | echo "${ECHO_T}\"no\"" >&6
|
---|
6877 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
6878 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
6879 | { (exit 1); exit 1; }; }
|
---|
6880 | fi
|
---|
6881 |
|
---|
6882 | success=no
|
---|
6883 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
6884 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
6885 |
|
---|
6886 |
|
---|
6887 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6888 | /* confdefs.h. */
|
---|
6889 | _ACEOF
|
---|
6890 | cat confdefs.h >>conftest.$ac_ext
|
---|
6891 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6892 | /* end confdefs.h. */
|
---|
6893 | #include <vector>
|
---|
6894 |
|
---|
6895 | int
|
---|
6896 | main ()
|
---|
6897 | {
|
---|
6898 |
|
---|
6899 | ;
|
---|
6900 | return 0;
|
---|
6901 | }
|
---|
6902 | _ACEOF
|
---|
6903 | rm -f conftest.$ac_objext
|
---|
6904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6905 | (eval $ac_compile) 2>conftest.er1
|
---|
6906 | ac_status=$?
|
---|
6907 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6908 | rm -f conftest.er1
|
---|
6909 | cat conftest.err >&5
|
---|
6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6911 | (exit $ac_status); } &&
|
---|
6912 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6913 | || test ! -s conftest.err'
|
---|
6914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6915 | (eval $ac_try) 2>&5
|
---|
6916 | ac_status=$?
|
---|
6917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6918 | (exit $ac_status); }; } &&
|
---|
6919 | { ac_try='test -s conftest.$ac_objext'
|
---|
6920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6921 | (eval $ac_try) 2>&5
|
---|
6922 | ac_status=$?
|
---|
6923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6924 | (exit $ac_status); }; }; then
|
---|
6925 | success=yes
|
---|
6926 | else
|
---|
6927 | echo "$as_me: failed program was:" >&5
|
---|
6928 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6929 |
|
---|
6930 | fi
|
---|
6931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6932 |
|
---|
6933 | if test $success = "no"; then
|
---|
6934 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6935 | /* confdefs.h. */
|
---|
6936 | _ACEOF
|
---|
6937 | cat confdefs.h >>conftest.$ac_ext
|
---|
6938 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6939 | /* end confdefs.h. */
|
---|
6940 | #include <vector.h>
|
---|
6941 |
|
---|
6942 | int
|
---|
6943 | main ()
|
---|
6944 | {
|
---|
6945 |
|
---|
6946 | ;
|
---|
6947 | return 0;
|
---|
6948 | }
|
---|
6949 | _ACEOF
|
---|
6950 | rm -f conftest.$ac_objext
|
---|
6951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6952 | (eval $ac_compile) 2>conftest.er1
|
---|
6953 | ac_status=$?
|
---|
6954 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6955 | rm -f conftest.er1
|
---|
6956 | cat conftest.err >&5
|
---|
6957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6958 | (exit $ac_status); } &&
|
---|
6959 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6960 | || test ! -s conftest.err'
|
---|
6961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6962 | (eval $ac_try) 2>&5
|
---|
6963 | ac_status=$?
|
---|
6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6965 | (exit $ac_status); }; } &&
|
---|
6966 | { ac_try='test -s conftest.$ac_objext'
|
---|
6967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6968 | (eval $ac_try) 2>&5
|
---|
6969 | ac_status=$?
|
---|
6970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6971 | (exit $ac_status); }; }; then
|
---|
6972 | success="yes"
|
---|
6973 | else
|
---|
6974 | echo "$as_me: failed program was:" >&5
|
---|
6975 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6976 |
|
---|
6977 | fi
|
---|
6978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6979 | fi
|
---|
6980 |
|
---|
6981 | if test $success = "no"; then
|
---|
6982 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6983 | /* confdefs.h. */
|
---|
6984 | _ACEOF
|
---|
6985 | cat confdefs.h >>conftest.$ac_ext
|
---|
6986 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6987 | /* end confdefs.h. */
|
---|
6988 | #include <ospace\\std\\vector>
|
---|
6989 |
|
---|
6990 | int
|
---|
6991 | main ()
|
---|
6992 | {
|
---|
6993 |
|
---|
6994 | ;
|
---|
6995 | return 0;
|
---|
6996 | }
|
---|
6997 | _ACEOF
|
---|
6998 | rm -f conftest.$ac_objext
|
---|
6999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7000 | (eval $ac_compile) 2>conftest.er1
|
---|
7001 | ac_status=$?
|
---|
7002 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7003 | rm -f conftest.er1
|
---|
7004 | cat conftest.err >&5
|
---|
7005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7006 | (exit $ac_status); } &&
|
---|
7007 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7008 | || test ! -s conftest.err'
|
---|
7009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7010 | (eval $ac_try) 2>&5
|
---|
7011 | ac_status=$?
|
---|
7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7013 | (exit $ac_status); }; } &&
|
---|
7014 | { ac_try='test -s conftest.$ac_objext'
|
---|
7015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7016 | (eval $ac_try) 2>&5
|
---|
7017 | ac_status=$?
|
---|
7018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7019 | (exit $ac_status); }; }; then
|
---|
7020 | success="yes"
|
---|
7021 | else
|
---|
7022 | echo "$as_me: failed program was:" >&5
|
---|
7023 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7024 |
|
---|
7025 | fi
|
---|
7026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7027 | fi
|
---|
7028 |
|
---|
7029 | if test $success = yes; then
|
---|
7030 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
7031 | echo "${ECHO_T}\"no\"" >&6
|
---|
7032 | else
|
---|
7033 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
7034 | echo "${ECHO_T}\"yes\"" >&6
|
---|
7035 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
7036 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
7037 | { (exit 1); exit 1; }; }
|
---|
7038 | fi
|
---|
7039 |
|
---|
7040 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
7041 | # check for running bash under cygwin
|
---|
7042 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
7043 | then
|
---|
7044 | gsdlos=windows
|
---|
7045 | fi
|
---|
7046 |
|
---|
7047 |
|
---|
7048 | # check for endianness
|
---|
7049 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
7050 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
7051 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
7052 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7053 | else
|
---|
7054 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
7055 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7056 | /* confdefs.h. */
|
---|
7057 | _ACEOF
|
---|
7058 | cat confdefs.h >>conftest.$ac_ext
|
---|
7059 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7060 | /* end confdefs.h. */
|
---|
7061 | #include <sys/types.h>
|
---|
7062 | #include <sys/param.h>
|
---|
7063 |
|
---|
7064 | int
|
---|
7065 | main ()
|
---|
7066 | {
|
---|
7067 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
7068 | bogus endian macros
|
---|
7069 | #endif
|
---|
7070 |
|
---|
7071 | ;
|
---|
7072 | return 0;
|
---|
7073 | }
|
---|
7074 | _ACEOF
|
---|
7075 | rm -f conftest.$ac_objext
|
---|
7076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7077 | (eval $ac_compile) 2>conftest.er1
|
---|
7078 | ac_status=$?
|
---|
7079 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7080 | rm -f conftest.er1
|
---|
7081 | cat conftest.err >&5
|
---|
7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7083 | (exit $ac_status); } &&
|
---|
7084 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7085 | || test ! -s conftest.err'
|
---|
7086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7087 | (eval $ac_try) 2>&5
|
---|
7088 | ac_status=$?
|
---|
7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7090 | (exit $ac_status); }; } &&
|
---|
7091 | { ac_try='test -s conftest.$ac_objext'
|
---|
7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7093 | (eval $ac_try) 2>&5
|
---|
7094 | ac_status=$?
|
---|
7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7096 | (exit $ac_status); }; }; then
|
---|
7097 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
7098 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7099 | /* confdefs.h. */
|
---|
7100 | _ACEOF
|
---|
7101 | cat confdefs.h >>conftest.$ac_ext
|
---|
7102 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7103 | /* end confdefs.h. */
|
---|
7104 | #include <sys/types.h>
|
---|
7105 | #include <sys/param.h>
|
---|
7106 |
|
---|
7107 | int
|
---|
7108 | main ()
|
---|
7109 | {
|
---|
7110 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
7111 | not big endian
|
---|
7112 | #endif
|
---|
7113 |
|
---|
7114 | ;
|
---|
7115 | return 0;
|
---|
7116 | }
|
---|
7117 | _ACEOF
|
---|
7118 | rm -f conftest.$ac_objext
|
---|
7119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7120 | (eval $ac_compile) 2>conftest.er1
|
---|
7121 | ac_status=$?
|
---|
7122 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7123 | rm -f conftest.er1
|
---|
7124 | cat conftest.err >&5
|
---|
7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7126 | (exit $ac_status); } &&
|
---|
7127 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7128 | || test ! -s conftest.err'
|
---|
7129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7130 | (eval $ac_try) 2>&5
|
---|
7131 | ac_status=$?
|
---|
7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7133 | (exit $ac_status); }; } &&
|
---|
7134 | { ac_try='test -s conftest.$ac_objext'
|
---|
7135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7136 | (eval $ac_try) 2>&5
|
---|
7137 | ac_status=$?
|
---|
7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7139 | (exit $ac_status); }; }; then
|
---|
7140 | ac_cv_c_bigendian=yes
|
---|
7141 | else
|
---|
7142 | echo "$as_me: failed program was:" >&5
|
---|
7143 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7144 |
|
---|
7145 | ac_cv_c_bigendian=no
|
---|
7146 | fi
|
---|
7147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7148 | else
|
---|
7149 | echo "$as_me: failed program was:" >&5
|
---|
7150 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7151 |
|
---|
7152 | # It does not; compile a test program.
|
---|
7153 | if test "$cross_compiling" = yes; then
|
---|
7154 | # try to guess the endianness by grepping values into an object file
|
---|
7155 | ac_cv_c_bigendian=unknown
|
---|
7156 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7157 | /* confdefs.h. */
|
---|
7158 | _ACEOF
|
---|
7159 | cat confdefs.h >>conftest.$ac_ext
|
---|
7160 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7161 | /* end confdefs.h. */
|
---|
7162 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
7163 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
7164 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
7165 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
7166 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
7167 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
7168 | int
|
---|
7169 | main ()
|
---|
7170 | {
|
---|
7171 | _ascii (); _ebcdic ();
|
---|
7172 | ;
|
---|
7173 | return 0;
|
---|
7174 | }
|
---|
7175 | _ACEOF
|
---|
7176 | rm -f conftest.$ac_objext
|
---|
7177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7178 | (eval $ac_compile) 2>conftest.er1
|
---|
7179 | ac_status=$?
|
---|
7180 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7181 | rm -f conftest.er1
|
---|
7182 | cat conftest.err >&5
|
---|
7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7184 | (exit $ac_status); } &&
|
---|
7185 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7186 | || test ! -s conftest.err'
|
---|
7187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7188 | (eval $ac_try) 2>&5
|
---|
7189 | ac_status=$?
|
---|
7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7191 | (exit $ac_status); }; } &&
|
---|
7192 | { ac_try='test -s conftest.$ac_objext'
|
---|
7193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7194 | (eval $ac_try) 2>&5
|
---|
7195 | ac_status=$?
|
---|
7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7197 | (exit $ac_status); }; }; then
|
---|
7198 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
7199 | ac_cv_c_bigendian=yes
|
---|
7200 | fi
|
---|
7201 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
7202 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
7203 | ac_cv_c_bigendian=no
|
---|
7204 | else
|
---|
7205 | # finding both strings is unlikely to happen, but who knows?
|
---|
7206 | ac_cv_c_bigendian=unknown
|
---|
7207 | fi
|
---|
7208 | fi
|
---|
7209 | else
|
---|
7210 | echo "$as_me: failed program was:" >&5
|
---|
7211 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7212 |
|
---|
7213 | fi
|
---|
7214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7215 | else
|
---|
7216 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7217 | /* confdefs.h. */
|
---|
7218 | _ACEOF
|
---|
7219 | cat confdefs.h >>conftest.$ac_ext
|
---|
7220 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7221 | /* end confdefs.h. */
|
---|
7222 | int
|
---|
7223 | main ()
|
---|
7224 | {
|
---|
7225 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
7226 | union
|
---|
7227 | {
|
---|
7228 | long l;
|
---|
7229 | char c[sizeof (long)];
|
---|
7230 | } u;
|
---|
7231 | u.l = 1;
|
---|
7232 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
7233 | }
|
---|
7234 | _ACEOF
|
---|
7235 | rm -f conftest$ac_exeext
|
---|
7236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7237 | (eval $ac_link) 2>&5
|
---|
7238 | ac_status=$?
|
---|
7239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7240 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7242 | (eval $ac_try) 2>&5
|
---|
7243 | ac_status=$?
|
---|
7244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7245 | (exit $ac_status); }; }; then
|
---|
7246 | ac_cv_c_bigendian=no
|
---|
7247 | else
|
---|
7248 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
7249 | echo "$as_me: failed program was:" >&5
|
---|
7250 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7251 |
|
---|
7252 | ( exit $ac_status )
|
---|
7253 | ac_cv_c_bigendian=yes
|
---|
7254 | fi
|
---|
7255 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
7256 | fi
|
---|
7257 | fi
|
---|
7258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7259 | fi
|
---|
7260 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
7261 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
7262 | case $ac_cv_c_bigendian in
|
---|
7263 | yes)
|
---|
7264 |
|
---|
7265 | cat >>confdefs.h <<\_ACEOF
|
---|
7266 | #define WORDS_BIGENDIAN 1
|
---|
7267 | _ACEOF
|
---|
7268 | ;;
|
---|
7269 | no)
|
---|
7270 | ;;
|
---|
7271 | *)
|
---|
7272 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
7273 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
7274 | echo "$as_me: error: unknown endianness
|
---|
7275 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
7276 | { (exit 1); exit 1; }; } ;;
|
---|
7277 | esac
|
---|
7278 |
|
---|
7279 | # ---------------------------------------------------------------------------
|
---|
7280 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
7281 | case $LIBOBJS in
|
---|
7282 | "xmalloc.o.$ac_objext" | \
|
---|
7283 | *" xmalloc.o.$ac_objext" | \
|
---|
7284 | "xmalloc.o.$ac_objext "* | \
|
---|
7285 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
7286 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
7287 | esac
|
---|
7288 |
|
---|
7289 | case $LIBOBJS in
|
---|
7290 | "error.$ac_objext" | \
|
---|
7291 | *" error.$ac_objext" | \
|
---|
7292 | "error.$ac_objext "* | \
|
---|
7293 | *" error.$ac_objext "* ) ;;
|
---|
7294 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
7295 | esac
|
---|
7296 |
|
---|
7297 | fi
|
---|
7298 |
|
---|
7299 | # ---------------------------------------------------------------------------
|
---|
7300 |
|
---|
7301 | moduleDirs=""
|
---|
7302 | MODULEDIRS=""
|
---|
7303 | if test -d modules ; then
|
---|
7304 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
7305 | if test -d "$x"; then
|
---|
7306 | d="$x/Makefile.in"
|
---|
7307 | if test -e "$d"; then
|
---|
7308 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
7309 | MODULEDIRS="$MODULEDIRS $x"
|
---|
7310 | fi
|
---|
7311 | fi
|
---|
7312 | done
|
---|
7313 | echo "Making $moduleDirs in modules directory"
|
---|
7314 |
|
---|
7315 | fi
|
---|
7316 |
|
---|
7317 |
|
---|
7318 | # ---------------------------------------------------------------------------
|
---|
7319 |
|
---|
7320 | # indexers needs a bindir option to get the binaries into the right place
|
---|
7321 | gsdlprefix=`pwd`
|
---|
7322 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
7323 |
|
---|
7324 |
|
---|
7325 | subdirs="$subdirs common-src"
|
---|
7326 |
|
---|
7327 |
|
---|
7328 |
|
---|
7329 | subdirs="$subdirs build-src"
|
---|
7330 |
|
---|
7331 |
|
---|
7332 | # the list of folders in the src folder
|
---|
7333 | srclist="common-src/Makefile \
|
---|
7334 | build-src/Makefile"
|
---|
7335 |
|
---|
7336 | if test -d runtime-src; then
|
---|
7337 |
|
---|
7338 |
|
---|
7339 | subdirs="$subdirs runtime-src"
|
---|
7340 |
|
---|
7341 | srclist="$srclist \
|
---|
7342 | runtime-src/Makefile"
|
---|
7343 | fi
|
---|
7344 |
|
---|
7345 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
7346 | cat >confcache <<\_ACEOF
|
---|
7347 | # This file is a shell script that caches the results of configure
|
---|
7348 | # tests run on this system so they can be shared between configure
|
---|
7349 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7350 | # It is not useful on other systems. If it contains results you don't
|
---|
7351 | # want to keep, you may remove or edit it.
|
---|
7352 | #
|
---|
7353 | # config.status only pays attention to the cache file if you give it
|
---|
7354 | # the --recheck option to rerun configure.
|
---|
7355 | #
|
---|
7356 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7357 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7358 | # following values.
|
---|
7359 |
|
---|
7360 | _ACEOF
|
---|
7361 |
|
---|
7362 | # The following way of writing the cache mishandles newlines in values,
|
---|
7363 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7364 | # So, don't put newlines in cache variables' values.
|
---|
7365 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7366 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7367 | {
|
---|
7368 | (set) 2>&1 |
|
---|
7369 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7370 | *ac_space=\ *)
|
---|
7371 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
7372 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
7373 | sed -n \
|
---|
7374 | "s/'/'\\\\''/g;
|
---|
7375 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7376 | ;;
|
---|
7377 | *)
|
---|
7378 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7379 | sed -n \
|
---|
7380 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
7381 | ;;
|
---|
7382 | esac;
|
---|
7383 | } |
|
---|
7384 | sed '
|
---|
7385 | t clear
|
---|
7386 | : clear
|
---|
7387 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7388 | t end
|
---|
7389 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7390 | : end' >>confcache
|
---|
7391 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
7392 | if test -w $cache_file; then
|
---|
7393 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
7394 | cat confcache >$cache_file
|
---|
7395 | else
|
---|
7396 | echo "not updating unwritable cache $cache_file"
|
---|
7397 | fi
|
---|
7398 | fi
|
---|
7399 | rm -f confcache
|
---|
7400 |
|
---|
7401 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7402 | # Let make expand exec_prefix.
|
---|
7403 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7404 |
|
---|
7405 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
7406 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
7407 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7408 | # (actually we leave an empty line to preserve line numbers).
|
---|
7409 | if test "x$srcdir" = x.; then
|
---|
7410 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
7411 | s/:*\$(srcdir):*/:/;
|
---|
7412 | s/:*\${srcdir}:*/:/;
|
---|
7413 | s/:*@srcdir@:*/:/;
|
---|
7414 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
7415 | s/:*$//;
|
---|
7416 | s/^[^=]*=[ ]*$//;
|
---|
7417 | }'
|
---|
7418 | fi
|
---|
7419 |
|
---|
7420 | DEFS=-DHAVE_CONFIG_H
|
---|
7421 |
|
---|
7422 | ac_libobjs=
|
---|
7423 | ac_ltlibobjs=
|
---|
7424 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7425 | # 1. Remove the extension, and $U if already installed.
|
---|
7426 | ac_i=`echo "$ac_i" |
|
---|
7427 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
7428 | # 2. Add them.
|
---|
7429 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
7430 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
7431 | done
|
---|
7432 | LIBOBJS=$ac_libobjs
|
---|
7433 |
|
---|
7434 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7435 |
|
---|
7436 |
|
---|
7437 |
|
---|
7438 | : ${CONFIG_STATUS=./config.status}
|
---|
7439 | ac_clean_files_save=$ac_clean_files
|
---|
7440 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7441 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
7442 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7443 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
7444 | #! $SHELL
|
---|
7445 | # Generated by $as_me.
|
---|
7446 | # Run this file to recreate the current configuration.
|
---|
7447 | # Compiler output produced by configure, useful for debugging
|
---|
7448 | # configure, is in config.log if it exists.
|
---|
7449 |
|
---|
7450 | debug=false
|
---|
7451 | ac_cs_recheck=false
|
---|
7452 | ac_cs_silent=false
|
---|
7453 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7454 | _ACEOF
|
---|
7455 |
|
---|
7456 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7457 | ## --------------------- ##
|
---|
7458 | ## M4sh Initialization. ##
|
---|
7459 | ## --------------------- ##
|
---|
7460 |
|
---|
7461 | # Be Bourne compatible
|
---|
7462 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
7463 | emulate sh
|
---|
7464 | NULLCMD=:
|
---|
7465 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
7466 | # is contrary to our usage. Disable this feature.
|
---|
7467 | alias -g '${1+"$@"}'='"$@"'
|
---|
7468 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
7469 | set -o posix
|
---|
7470 | fi
|
---|
7471 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7472 |
|
---|
7473 | # Support unset when possible.
|
---|
7474 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
7475 | as_unset=unset
|
---|
7476 | else
|
---|
7477 | as_unset=false
|
---|
7478 | fi
|
---|
7479 |
|
---|
7480 |
|
---|
7481 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
7482 | $as_unset ENV MAIL MAILPATH
|
---|
7483 | PS1='$ '
|
---|
7484 | PS2='> '
|
---|
7485 | PS4='+ '
|
---|
7486 |
|
---|
7487 | # NLS nuisances.
|
---|
7488 | for as_var in \
|
---|
7489 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
7490 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
7491 | LC_TELEPHONE LC_TIME
|
---|
7492 | do
|
---|
7493 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
7494 | eval $as_var=C; export $as_var
|
---|
7495 | else
|
---|
7496 | $as_unset $as_var
|
---|
7497 | fi
|
---|
7498 | done
|
---|
7499 |
|
---|
7500 | # Required to use basename.
|
---|
7501 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7502 | as_expr=expr
|
---|
7503 | else
|
---|
7504 | as_expr=false
|
---|
7505 | fi
|
---|
7506 |
|
---|
7507 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
7508 | as_basename=basename
|
---|
7509 | else
|
---|
7510 | as_basename=false
|
---|
7511 | fi
|
---|
7512 |
|
---|
7513 |
|
---|
7514 | # Name of the executable.
|
---|
7515 | as_me=`$as_basename "$0" ||
|
---|
7516 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7517 | X"$0" : 'X\(//\)$' \| \
|
---|
7518 | X"$0" : 'X\(/\)$' \| \
|
---|
7519 | . : '\(.\)' 2>/dev/null ||
|
---|
7520 | echo X/"$0" |
|
---|
7521 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
7522 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
7523 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
7524 | s/.*/./; q'`
|
---|
7525 |
|
---|
7526 |
|
---|
7527 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
7528 | # Avoid depending upon Character Ranges.
|
---|
7529 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7530 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7531 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7532 | as_cr_digits='0123456789'
|
---|
7533 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7534 |
|
---|
7535 | # The user is always right.
|
---|
7536 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7537 | echo "#! /bin/sh" >conf$$.sh
|
---|
7538 | echo "exit 0" >>conf$$.sh
|
---|
7539 | chmod +x conf$$.sh
|
---|
7540 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
7541 | PATH_SEPARATOR=';'
|
---|
7542 | else
|
---|
7543 | PATH_SEPARATOR=:
|
---|
7544 | fi
|
---|
7545 | rm -f conf$$.sh
|
---|
7546 | fi
|
---|
7547 |
|
---|
7548 |
|
---|
7549 | as_lineno_1=$LINENO
|
---|
7550 | as_lineno_2=$LINENO
|
---|
7551 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7552 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7553 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
7554 | # Find who we are. Look in the path if we contain no path at all
|
---|
7555 | # relative or not.
|
---|
7556 | case $0 in
|
---|
7557 | *[\\/]* ) as_myself=$0 ;;
|
---|
7558 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7559 | for as_dir in $PATH
|
---|
7560 | do
|
---|
7561 | IFS=$as_save_IFS
|
---|
7562 | test -z "$as_dir" && as_dir=.
|
---|
7563 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7564 | done
|
---|
7565 |
|
---|
7566 | ;;
|
---|
7567 | esac
|
---|
7568 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7569 | # in which case we are not to be found in the path.
|
---|
7570 | if test "x$as_myself" = x; then
|
---|
7571 | as_myself=$0
|
---|
7572 | fi
|
---|
7573 | if test ! -f "$as_myself"; then
|
---|
7574 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
7575 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
7576 | { (exit 1); exit 1; }; }
|
---|
7577 | fi
|
---|
7578 | case $CONFIG_SHELL in
|
---|
7579 | '')
|
---|
7580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7581 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
7582 | do
|
---|
7583 | IFS=$as_save_IFS
|
---|
7584 | test -z "$as_dir" && as_dir=.
|
---|
7585 | for as_base in sh bash ksh sh5; do
|
---|
7586 | case $as_dir in
|
---|
7587 | /*)
|
---|
7588 | if ("$as_dir/$as_base" -c '
|
---|
7589 | as_lineno_1=$LINENO
|
---|
7590 | as_lineno_2=$LINENO
|
---|
7591 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7592 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7593 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
7594 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
7595 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
7596 | CONFIG_SHELL=$as_dir/$as_base
|
---|
7597 | export CONFIG_SHELL
|
---|
7598 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
7599 | fi;;
|
---|
7600 | esac
|
---|
7601 | done
|
---|
7602 | done
|
---|
7603 | ;;
|
---|
7604 | esac
|
---|
7605 |
|
---|
7606 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
7607 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
7608 | # line-number line before each line; the second 'sed' does the real
|
---|
7609 | # work. The second script uses 'N' to pair each line-number line
|
---|
7610 | # with the numbered line, and appends trailing '-' during
|
---|
7611 | # substitution so that $LINENO is not a special case at line end.
|
---|
7612 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
7613 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
7614 | sed '=' <$as_myself |
|
---|
7615 | sed '
|
---|
7616 | N
|
---|
7617 | s,$,-,
|
---|
7618 | : loop
|
---|
7619 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
7620 | t loop
|
---|
7621 | s,-$,,
|
---|
7622 | s,^['$as_cr_digits']*\n,,
|
---|
7623 | ' >$as_me.lineno &&
|
---|
7624 | chmod +x $as_me.lineno ||
|
---|
7625 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
7626 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
7627 | { (exit 1); exit 1; }; }
|
---|
7628 |
|
---|
7629 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
7630 | # (the dirname of $[0] is not the place where we might find the
|
---|
7631 | # original and so on. Autoconf is especially sensible to this).
|
---|
7632 | . ./$as_me.lineno
|
---|
7633 | # Exit status is that of the last command.
|
---|
7634 | exit
|
---|
7635 | }
|
---|
7636 |
|
---|
7637 |
|
---|
7638 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
7639 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
7640 | ' ECHO_T=' ' ;;
|
---|
7641 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
7642 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
7643 | esac
|
---|
7644 |
|
---|
7645 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7646 | as_expr=expr
|
---|
7647 | else
|
---|
7648 | as_expr=false
|
---|
7649 | fi
|
---|
7650 |
|
---|
7651 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7652 | echo >conf$$.file
|
---|
7653 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7654 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
7655 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
7656 | if test -f conf$$.exe; then
|
---|
7657 | # Don't use ln at all; we don't have any links
|
---|
7658 | as_ln_s='cp -p'
|
---|
7659 | else
|
---|
7660 | as_ln_s='ln -s'
|
---|
7661 | fi
|
---|
7662 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7663 | as_ln_s=ln
|
---|
7664 | else
|
---|
7665 | as_ln_s='cp -p'
|
---|
7666 | fi
|
---|
7667 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7668 |
|
---|
7669 | if mkdir -p . 2>/dev/null; then
|
---|
7670 | as_mkdir_p=:
|
---|
7671 | else
|
---|
7672 | test -d ./-p && rmdir ./-p
|
---|
7673 | as_mkdir_p=false
|
---|
7674 | fi
|
---|
7675 |
|
---|
7676 | as_executable_p="test -f"
|
---|
7677 |
|
---|
7678 | # Sed expression to map a string onto a valid CPP name.
|
---|
7679 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7680 |
|
---|
7681 | # Sed expression to map a string onto a valid variable name.
|
---|
7682 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7683 |
|
---|
7684 |
|
---|
7685 | # IFS
|
---|
7686 | # We need space, tab and new line, in precisely that order.
|
---|
7687 | as_nl='
|
---|
7688 | '
|
---|
7689 | IFS=" $as_nl"
|
---|
7690 |
|
---|
7691 | # CDPATH.
|
---|
7692 | $as_unset CDPATH
|
---|
7693 |
|
---|
7694 | exec 6>&1
|
---|
7695 |
|
---|
7696 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
7697 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7698 | # values after options handling. Logging --version etc. is OK.
|
---|
7699 | exec 5>>config.log
|
---|
7700 | {
|
---|
7701 | echo
|
---|
7702 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7703 | ## Running $as_me. ##
|
---|
7704 | _ASBOX
|
---|
7705 | } >&5
|
---|
7706 | cat >&5 <<_CSEOF
|
---|
7707 |
|
---|
7708 | This file was extended by $as_me, which was
|
---|
7709 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
7710 |
|
---|
7711 | CONFIG_FILES = $CONFIG_FILES
|
---|
7712 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7713 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7714 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7715 | $ $0 $@
|
---|
7716 |
|
---|
7717 | _CSEOF
|
---|
7718 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
7719 | echo >&5
|
---|
7720 | _ACEOF
|
---|
7721 |
|
---|
7722 | # Files that config.status was made for.
|
---|
7723 | if test -n "$ac_config_files"; then
|
---|
7724 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
7725 | fi
|
---|
7726 |
|
---|
7727 | if test -n "$ac_config_headers"; then
|
---|
7728 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
7729 | fi
|
---|
7730 |
|
---|
7731 | if test -n "$ac_config_links"; then
|
---|
7732 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
7733 | fi
|
---|
7734 |
|
---|
7735 | if test -n "$ac_config_commands"; then
|
---|
7736 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
7737 | fi
|
---|
7738 |
|
---|
7739 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7740 |
|
---|
7741 | ac_cs_usage="\
|
---|
7742 | \`$as_me' instantiates files from templates according to the
|
---|
7743 | current configuration.
|
---|
7744 |
|
---|
7745 | Usage: $0 [OPTIONS] [FILE]...
|
---|
7746 |
|
---|
7747 | -h, --help print this help, then exit
|
---|
7748 | -V, --version print version number, then exit
|
---|
7749 | -q, --quiet do not print progress messages
|
---|
7750 | -d, --debug don't remove temporary files
|
---|
7751 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7752 | --file=FILE[:TEMPLATE]
|
---|
7753 | instantiate the configuration file FILE
|
---|
7754 | --header=FILE[:TEMPLATE]
|
---|
7755 | instantiate the configuration header FILE
|
---|
7756 |
|
---|
7757 | Configuration files:
|
---|
7758 | $config_files
|
---|
7759 |
|
---|
7760 | Configuration headers:
|
---|
7761 | $config_headers
|
---|
7762 |
|
---|
7763 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
7764 | _ACEOF
|
---|
7765 |
|
---|
7766 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7767 | ac_cs_version="\\
|
---|
7768 | config.status
|
---|
7769 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
7770 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
7771 |
|
---|
7772 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
7773 | This config.status script is free software; the Free Software Foundation
|
---|
7774 | gives unlimited permission to copy, distribute and modify it."
|
---|
7775 | srcdir=$srcdir
|
---|
7776 | INSTALL="$INSTALL"
|
---|
7777 | _ACEOF
|
---|
7778 |
|
---|
7779 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7780 | # If no file are specified by the user, then we need to provide default
|
---|
7781 | # value. By we need to know if files were specified by the user.
|
---|
7782 | ac_need_defaults=:
|
---|
7783 | while test $# != 0
|
---|
7784 | do
|
---|
7785 | case $1 in
|
---|
7786 | --*=*)
|
---|
7787 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
7788 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
7789 | ac_shift=:
|
---|
7790 | ;;
|
---|
7791 | -*)
|
---|
7792 | ac_option=$1
|
---|
7793 | ac_optarg=$2
|
---|
7794 | ac_shift=shift
|
---|
7795 | ;;
|
---|
7796 | *) # This is not an option, so the user has probably given explicit
|
---|
7797 | # arguments.
|
---|
7798 | ac_option=$1
|
---|
7799 | ac_need_defaults=false;;
|
---|
7800 | esac
|
---|
7801 |
|
---|
7802 | case $ac_option in
|
---|
7803 | # Handling of the options.
|
---|
7804 | _ACEOF
|
---|
7805 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7806 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7807 | ac_cs_recheck=: ;;
|
---|
7808 | --version | --vers* | -V )
|
---|
7809 | echo "$ac_cs_version"; exit 0 ;;
|
---|
7810 | --he | --h)
|
---|
7811 | # Conflict between --help and --header
|
---|
7812 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
7813 | Try \`$0 --help' for more information." >&5
|
---|
7814 | echo "$as_me: error: ambiguous option: $1
|
---|
7815 | Try \`$0 --help' for more information." >&2;}
|
---|
7816 | { (exit 1); exit 1; }; };;
|
---|
7817 | --help | --hel | -h )
|
---|
7818 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
7819 | --debug | --d* | -d )
|
---|
7820 | debug=: ;;
|
---|
7821 | --file | --fil | --fi | --f )
|
---|
7822 | $ac_shift
|
---|
7823 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
7824 | ac_need_defaults=false;;
|
---|
7825 | --header | --heade | --head | --hea )
|
---|
7826 | $ac_shift
|
---|
7827 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
7828 | ac_need_defaults=false;;
|
---|
7829 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7830 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7831 | ac_cs_silent=: ;;
|
---|
7832 |
|
---|
7833 | # This is an error.
|
---|
7834 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
7835 | Try \`$0 --help' for more information." >&5
|
---|
7836 | echo "$as_me: error: unrecognized option: $1
|
---|
7837 | Try \`$0 --help' for more information." >&2;}
|
---|
7838 | { (exit 1); exit 1; }; } ;;
|
---|
7839 |
|
---|
7840 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
7841 |
|
---|
7842 | esac
|
---|
7843 | shift
|
---|
7844 | done
|
---|
7845 |
|
---|
7846 | ac_configure_extra_args=
|
---|
7847 |
|
---|
7848 | if $ac_cs_silent; then
|
---|
7849 | exec 6>/dev/null
|
---|
7850 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7851 | fi
|
---|
7852 |
|
---|
7853 | _ACEOF
|
---|
7854 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7855 | if \$ac_cs_recheck; then
|
---|
7856 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
7857 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7858 | fi
|
---|
7859 |
|
---|
7860 | _ACEOF
|
---|
7861 |
|
---|
7862 |
|
---|
7863 |
|
---|
7864 |
|
---|
7865 |
|
---|
7866 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7867 | for ac_config_target in $ac_config_targets
|
---|
7868 | do
|
---|
7869 | case "$ac_config_target" in
|
---|
7870 | # Handling of arguments.
|
---|
7871 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7872 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
7873 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
7874 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7875 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
7876 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
7877 | { (exit 1); exit 1; }; };;
|
---|
7878 | esac
|
---|
7879 | done
|
---|
7880 |
|
---|
7881 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7882 | # then the envvar interface is used. Set only those that are not.
|
---|
7883 | # We use the long form for the default assignment because of an extremely
|
---|
7884 | # bizarre bug on SunOS 4.1.3.
|
---|
7885 | if $ac_need_defaults; then
|
---|
7886 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7887 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7888 | fi
|
---|
7889 |
|
---|
7890 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7891 | # simply because there is no reason to put it here, and in addition,
|
---|
7892 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7893 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
7894 | $debug ||
|
---|
7895 | {
|
---|
7896 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
7897 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
7898 | }
|
---|
7899 |
|
---|
7900 | # Create a (secure) tmp directory for tmp files.
|
---|
7901 |
|
---|
7902 | {
|
---|
7903 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
7904 | test -n "$tmp" && test -d "$tmp"
|
---|
7905 | } ||
|
---|
7906 | {
|
---|
7907 | tmp=./confstat$$-$RANDOM
|
---|
7908 | (umask 077 && mkdir $tmp)
|
---|
7909 | } ||
|
---|
7910 | {
|
---|
7911 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
7912 | { (exit 1); exit 1; }
|
---|
7913 | }
|
---|
7914 |
|
---|
7915 | _ACEOF
|
---|
7916 |
|
---|
7917 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7918 |
|
---|
7919 | #
|
---|
7920 | # CONFIG_FILES section.
|
---|
7921 | #
|
---|
7922 |
|
---|
7923 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
7924 | # This happens for instance when ./config.status config.h
|
---|
7925 | if test -n "\$CONFIG_FILES"; then
|
---|
7926 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7927 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
7928 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
7929 | s,@SHELL@,$SHELL,;t t
|
---|
7930 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
7931 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
7932 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
7933 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
7934 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
7935 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
7936 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
7937 | s,@prefix@,$prefix,;t t
|
---|
7938 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
7939 | s,@bindir@,$bindir,;t t
|
---|
7940 | s,@sbindir@,$sbindir,;t t
|
---|
7941 | s,@libexecdir@,$libexecdir,;t t
|
---|
7942 | s,@datadir@,$datadir,;t t
|
---|
7943 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
7944 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
7945 | s,@localstatedir@,$localstatedir,;t t
|
---|
7946 | s,@libdir@,$libdir,;t t
|
---|
7947 | s,@includedir@,$includedir,;t t
|
---|
7948 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
7949 | s,@infodir@,$infodir,;t t
|
---|
7950 | s,@mandir@,$mandir,;t t
|
---|
7951 | s,@build_alias@,$build_alias,;t t
|
---|
7952 | s,@host_alias@,$host_alias,;t t
|
---|
7953 | s,@target_alias@,$target_alias,;t t
|
---|
7954 | s,@DEFS@,$DEFS,;t t
|
---|
7955 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
7956 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
7957 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
7958 | s,@LIBS@,$LIBS,;t t
|
---|
7959 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
7960 | s,@VERSION@,$VERSION,;t t
|
---|
7961 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
7962 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
7963 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
7964 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
7965 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
7966 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
7967 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
7968 | s,@USE_JDBM@,$USE_JDBM,;t t
|
---|
7969 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
7970 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
7971 | s,@ENABLE_JNI@,$ENABLE_JNI,;t t
|
---|
7972 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
7973 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
7974 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
7975 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
7976 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
7977 | s,@CC@,$CC,;t t
|
---|
7978 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
7979 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
7980 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
7981 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
7982 | s,@CXX@,$CXX,;t t
|
---|
7983 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
7984 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
7985 | s,@AWK@,$AWK,;t t
|
---|
7986 | s,@YACC@,$YACC,;t t
|
---|
7987 | s,@build@,$build,;t t
|
---|
7988 | s,@build_cpu@,$build_cpu,;t t
|
---|
7989 | s,@build_vendor@,$build_vendor,;t t
|
---|
7990 | s,@build_os@,$build_os,;t t
|
---|
7991 | s,@host@,$host,;t t
|
---|
7992 | s,@host_cpu@,$host_cpu,;t t
|
---|
7993 | s,@host_vendor@,$host_vendor,;t t
|
---|
7994 | s,@host_os@,$host_os,;t t
|
---|
7995 | s,@target@,$target,;t t
|
---|
7996 | s,@target_cpu@,$target_cpu,;t t
|
---|
7997 | s,@target_vendor@,$target_vendor,;t t
|
---|
7998 | s,@target_os@,$target_os,;t t
|
---|
7999 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
8000 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
8001 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
8002 | s,@LN_S@,$LN_S,;t t
|
---|
8003 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
8004 | s,@RANLIB@,$RANLIB,;t t
|
---|
8005 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
8006 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
8007 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
8008 | s,@CPP@,$CPP,;t t
|
---|
8009 | s,@EGREP@,$EGREP,;t t
|
---|
8010 | s,@U@,$U,;t t
|
---|
8011 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
8012 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
8013 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
8014 | s,@STATIC@,$STATIC,;t t
|
---|
8015 | s,@gsdlos@,$gsdlos,;t t
|
---|
8016 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
8017 | s,@subdirs@,$subdirs,;t t
|
---|
8018 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
8019 | CEOF
|
---|
8020 |
|
---|
8021 | _ACEOF
|
---|
8022 |
|
---|
8023 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8024 | # Split the substitutions into bite-sized pieces for seds with
|
---|
8025 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
8026 | ac_max_sed_lines=48
|
---|
8027 | ac_sed_frag=1 # Number of current file.
|
---|
8028 | ac_beg=1 # First line for current file.
|
---|
8029 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
8030 | ac_more_lines=:
|
---|
8031 | ac_sed_cmds=
|
---|
8032 | while $ac_more_lines; do
|
---|
8033 | if test $ac_beg -gt 1; then
|
---|
8034 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
8035 | else
|
---|
8036 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
8037 | fi
|
---|
8038 | if test ! -s $tmp/subs.frag; then
|
---|
8039 | ac_more_lines=false
|
---|
8040 | else
|
---|
8041 | # The purpose of the label and of the branching condition is to
|
---|
8042 | # speed up the sed processing (if there are no `@' at all, there
|
---|
8043 | # is no need to browse any of the substitutions).
|
---|
8044 | # These are the two extra sed commands mentioned above.
|
---|
8045 | (echo ':t
|
---|
8046 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
8047 | if test -z "$ac_sed_cmds"; then
|
---|
8048 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
8049 | else
|
---|
8050 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
8051 | fi
|
---|
8052 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
8053 | ac_beg=$ac_end
|
---|
8054 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
8055 | fi
|
---|
8056 | done
|
---|
8057 | if test -z "$ac_sed_cmds"; then
|
---|
8058 | ac_sed_cmds=cat
|
---|
8059 | fi
|
---|
8060 | fi # test -n "$CONFIG_FILES"
|
---|
8061 |
|
---|
8062 | _ACEOF
|
---|
8063 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8064 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
8065 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8066 | case $ac_file in
|
---|
8067 | - | *:- | *:-:* ) # input from stdin
|
---|
8068 | cat >$tmp/stdin
|
---|
8069 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8070 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8071 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8072 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8073 | * ) ac_file_in=$ac_file.in ;;
|
---|
8074 | esac
|
---|
8075 |
|
---|
8076 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
8077 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8078 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8079 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8080 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8081 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8082 | . : '\(.\)' 2>/dev/null ||
|
---|
8083 | echo X"$ac_file" |
|
---|
8084 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8085 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8086 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8087 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8088 | s/.*/./; q'`
|
---|
8089 | { if $as_mkdir_p; then
|
---|
8090 | mkdir -p "$ac_dir"
|
---|
8091 | else
|
---|
8092 | as_dir="$ac_dir"
|
---|
8093 | as_dirs=
|
---|
8094 | while test ! -d "$as_dir"; do
|
---|
8095 | as_dirs="$as_dir $as_dirs"
|
---|
8096 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8097 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8098 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8099 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8100 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8101 | . : '\(.\)' 2>/dev/null ||
|
---|
8102 | echo X"$as_dir" |
|
---|
8103 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8104 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8105 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8106 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8107 | s/.*/./; q'`
|
---|
8108 | done
|
---|
8109 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8110 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8111 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8112 | { (exit 1); exit 1; }; }; }
|
---|
8113 |
|
---|
8114 | ac_builddir=.
|
---|
8115 |
|
---|
8116 | if test "$ac_dir" != .; then
|
---|
8117 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8118 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8119 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8120 | else
|
---|
8121 | ac_dir_suffix= ac_top_builddir=
|
---|
8122 | fi
|
---|
8123 |
|
---|
8124 | case $srcdir in
|
---|
8125 | .) # No --srcdir option. We are building in place.
|
---|
8126 | ac_srcdir=.
|
---|
8127 | if test -z "$ac_top_builddir"; then
|
---|
8128 | ac_top_srcdir=.
|
---|
8129 | else
|
---|
8130 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8131 | fi ;;
|
---|
8132 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8133 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8134 | ac_top_srcdir=$srcdir ;;
|
---|
8135 | *) # Relative path.
|
---|
8136 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8137 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8138 | esac
|
---|
8139 |
|
---|
8140 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8141 | # the directories may not exist.
|
---|
8142 | case `pwd` in
|
---|
8143 | .) ac_abs_builddir="$ac_dir";;
|
---|
8144 | *)
|
---|
8145 | case "$ac_dir" in
|
---|
8146 | .) ac_abs_builddir=`pwd`;;
|
---|
8147 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8148 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8149 | esac;;
|
---|
8150 | esac
|
---|
8151 | case $ac_abs_builddir in
|
---|
8152 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8153 | *)
|
---|
8154 | case ${ac_top_builddir}. in
|
---|
8155 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8156 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8157 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8158 | esac;;
|
---|
8159 | esac
|
---|
8160 | case $ac_abs_builddir in
|
---|
8161 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8162 | *)
|
---|
8163 | case $ac_srcdir in
|
---|
8164 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8165 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8166 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8167 | esac;;
|
---|
8168 | esac
|
---|
8169 | case $ac_abs_builddir in
|
---|
8170 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8171 | *)
|
---|
8172 | case $ac_top_srcdir in
|
---|
8173 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8174 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8175 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8176 | esac;;
|
---|
8177 | esac
|
---|
8178 |
|
---|
8179 |
|
---|
8180 | case $INSTALL in
|
---|
8181 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8182 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
8183 | esac
|
---|
8184 |
|
---|
8185 | if test x"$ac_file" != x-; then
|
---|
8186 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8187 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8188 | rm -f "$ac_file"
|
---|
8189 | fi
|
---|
8190 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8191 | # use $as_me), people would be surprised to read:
|
---|
8192 | # /* config.h. Generated by config.status. */
|
---|
8193 | if test x"$ac_file" = x-; then
|
---|
8194 | configure_input=
|
---|
8195 | else
|
---|
8196 | configure_input="$ac_file. "
|
---|
8197 | fi
|
---|
8198 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
8199 | sed 's,.*/,,'` by configure."
|
---|
8200 |
|
---|
8201 | # First look for the input files in the build tree, otherwise in the
|
---|
8202 | # src tree.
|
---|
8203 | ac_file_inputs=`IFS=:
|
---|
8204 | for f in $ac_file_in; do
|
---|
8205 | case $f in
|
---|
8206 | -) echo $tmp/stdin ;;
|
---|
8207 | [\\/$]*)
|
---|
8208 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8209 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8210 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8211 | { (exit 1); exit 1; }; }
|
---|
8212 | echo "$f";;
|
---|
8213 | *) # Relative
|
---|
8214 | if test -f "$f"; then
|
---|
8215 | # Build tree
|
---|
8216 | echo "$f"
|
---|
8217 | elif test -f "$srcdir/$f"; then
|
---|
8218 | # Source tree
|
---|
8219 | echo "$srcdir/$f"
|
---|
8220 | else
|
---|
8221 | # /dev/null tree
|
---|
8222 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8223 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8224 | { (exit 1); exit 1; }; }
|
---|
8225 | fi;;
|
---|
8226 | esac
|
---|
8227 | done` || { (exit 1); exit 1; }
|
---|
8228 | _ACEOF
|
---|
8229 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8230 | sed "$ac_vpsub
|
---|
8231 | $extrasub
|
---|
8232 | _ACEOF
|
---|
8233 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8234 | :t
|
---|
8235 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8236 | s,@configure_input@,$configure_input,;t t
|
---|
8237 | s,@srcdir@,$ac_srcdir,;t t
|
---|
8238 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
8239 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
8240 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
8241 | s,@builddir@,$ac_builddir,;t t
|
---|
8242 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
8243 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
8244 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
8245 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
8246 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
8247 | rm -f $tmp/stdin
|
---|
8248 | if test x"$ac_file" != x-; then
|
---|
8249 | mv $tmp/out $ac_file
|
---|
8250 | else
|
---|
8251 | cat $tmp/out
|
---|
8252 | rm -f $tmp/out
|
---|
8253 | fi
|
---|
8254 |
|
---|
8255 | done
|
---|
8256 | _ACEOF
|
---|
8257 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8258 |
|
---|
8259 | #
|
---|
8260 | # CONFIG_HEADER section.
|
---|
8261 | #
|
---|
8262 |
|
---|
8263 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
8264 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
8265 | #
|
---|
8266 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
8267 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
8268 | ac_dB='[ ].*$,\1#\2'
|
---|
8269 | ac_dC=' '
|
---|
8270 | ac_dD=',;t'
|
---|
8271 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
8272 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
8273 | ac_uB='$,\1#\2define\3'
|
---|
8274 | ac_uC=' '
|
---|
8275 | ac_uD=',;t'
|
---|
8276 |
|
---|
8277 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
8278 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8279 | case $ac_file in
|
---|
8280 | - | *:- | *:-:* ) # input from stdin
|
---|
8281 | cat >$tmp/stdin
|
---|
8282 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8283 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8284 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8285 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8286 | * ) ac_file_in=$ac_file.in ;;
|
---|
8287 | esac
|
---|
8288 |
|
---|
8289 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8290 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8291 |
|
---|
8292 | # First look for the input files in the build tree, otherwise in the
|
---|
8293 | # src tree.
|
---|
8294 | ac_file_inputs=`IFS=:
|
---|
8295 | for f in $ac_file_in; do
|
---|
8296 | case $f in
|
---|
8297 | -) echo $tmp/stdin ;;
|
---|
8298 | [\\/$]*)
|
---|
8299 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8300 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8301 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8302 | { (exit 1); exit 1; }; }
|
---|
8303 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
8304 | echo "$f";;
|
---|
8305 | *) # Relative
|
---|
8306 | if test -f "$f"; then
|
---|
8307 | # Build tree
|
---|
8308 | echo "$f"
|
---|
8309 | elif test -f "$srcdir/$f"; then
|
---|
8310 | # Source tree
|
---|
8311 | echo "$srcdir/$f"
|
---|
8312 | else
|
---|
8313 | # /dev/null tree
|
---|
8314 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8315 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8316 | { (exit 1); exit 1; }; }
|
---|
8317 | fi;;
|
---|
8318 | esac
|
---|
8319 | done` || { (exit 1); exit 1; }
|
---|
8320 | # Remove the trailing spaces.
|
---|
8321 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
8322 |
|
---|
8323 | _ACEOF
|
---|
8324 |
|
---|
8325 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
8326 | # `conftest.undefs', that substitutes the proper values into
|
---|
8327 | # config.h.in to produce config.h. The first handles `#define'
|
---|
8328 | # templates, and the second `#undef' templates.
|
---|
8329 | # And first: Protect against being on the right side of a sed subst in
|
---|
8330 | # config.status. Protect against being in an unquoted here document
|
---|
8331 | # in config.status.
|
---|
8332 | rm -f conftest.defines conftest.undefs
|
---|
8333 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
8334 | # Putting comments in sed scripts is not portable.
|
---|
8335 | #
|
---|
8336 | # `end' is used to avoid that the second main sed command (meant for
|
---|
8337 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
8338 | # See the Autoconf documentation for `clear'.
|
---|
8339 | cat >confdef2sed.sed <<\_ACEOF
|
---|
8340 | s/[\\&,]/\\&/g
|
---|
8341 | s,[\\$`],\\&,g
|
---|
8342 | t clear
|
---|
8343 | : clear
|
---|
8344 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
8345 | t end
|
---|
8346 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
8347 | : end
|
---|
8348 | _ACEOF
|
---|
8349 | # If some macros were called several times there might be several times
|
---|
8350 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
8351 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
8352 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
8353 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
8354 | rm -f confdef2sed.sed
|
---|
8355 |
|
---|
8356 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
8357 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
8358 | # on some systems where configure will not decide to define it.
|
---|
8359 | cat >>conftest.undefs <<\_ACEOF
|
---|
8360 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
8361 | _ACEOF
|
---|
8362 |
|
---|
8363 | # Break up conftest.defines because some shells have a limit on the size
|
---|
8364 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8365 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
8366 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
8367 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
8368 | echo ' :' >>$CONFIG_STATUS
|
---|
8369 | rm -f conftest.tail
|
---|
8370 | while grep . conftest.defines >/dev/null
|
---|
8371 | do
|
---|
8372 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
8373 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8374 | # Speed up: don't consider the non `#define' lines.
|
---|
8375 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
8376 | # Work around the forget-to-reset-the-flag bug.
|
---|
8377 | echo 't clr' >>$CONFIG_STATUS
|
---|
8378 | echo ': clr' >>$CONFIG_STATUS
|
---|
8379 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
8380 | echo 'CEOF
|
---|
8381 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
8382 | rm -f $tmp/in
|
---|
8383 | mv $tmp/out $tmp/in
|
---|
8384 | ' >>$CONFIG_STATUS
|
---|
8385 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
8386 | rm -f conftest.defines
|
---|
8387 | mv conftest.tail conftest.defines
|
---|
8388 | done
|
---|
8389 | rm -f conftest.defines
|
---|
8390 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
8391 | echo >>$CONFIG_STATUS
|
---|
8392 |
|
---|
8393 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
8394 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8395 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
8396 | rm -f conftest.tail
|
---|
8397 | while grep . conftest.undefs >/dev/null
|
---|
8398 | do
|
---|
8399 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
8400 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8401 | # Speed up: don't consider the non `#undef'
|
---|
8402 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
8403 | # Work around the forget-to-reset-the-flag bug.
|
---|
8404 | echo 't clr' >>$CONFIG_STATUS
|
---|
8405 | echo ': clr' >>$CONFIG_STATUS
|
---|
8406 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
8407 | echo 'CEOF
|
---|
8408 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
8409 | rm -f $tmp/in
|
---|
8410 | mv $tmp/out $tmp/in
|
---|
8411 | ' >>$CONFIG_STATUS
|
---|
8412 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
8413 | rm -f conftest.undefs
|
---|
8414 | mv conftest.tail conftest.undefs
|
---|
8415 | done
|
---|
8416 | rm -f conftest.undefs
|
---|
8417 |
|
---|
8418 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8419 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8420 | # use $as_me), people would be surprised to read:
|
---|
8421 | # /* config.h. Generated by config.status. */
|
---|
8422 | if test x"$ac_file" = x-; then
|
---|
8423 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
8424 | else
|
---|
8425 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
8426 | fi
|
---|
8427 | cat $tmp/in >>$tmp/config.h
|
---|
8428 | rm -f $tmp/in
|
---|
8429 | if test x"$ac_file" != x-; then
|
---|
8430 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
8431 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
8432 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
8433 | else
|
---|
8434 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8435 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8436 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8437 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8438 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8439 | . : '\(.\)' 2>/dev/null ||
|
---|
8440 | echo X"$ac_file" |
|
---|
8441 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8442 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8443 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8444 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8445 | s/.*/./; q'`
|
---|
8446 | { if $as_mkdir_p; then
|
---|
8447 | mkdir -p "$ac_dir"
|
---|
8448 | else
|
---|
8449 | as_dir="$ac_dir"
|
---|
8450 | as_dirs=
|
---|
8451 | while test ! -d "$as_dir"; do
|
---|
8452 | as_dirs="$as_dir $as_dirs"
|
---|
8453 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8454 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8455 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8456 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8457 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8458 | . : '\(.\)' 2>/dev/null ||
|
---|
8459 | echo X"$as_dir" |
|
---|
8460 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8461 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8462 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8463 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8464 | s/.*/./; q'`
|
---|
8465 | done
|
---|
8466 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8467 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8468 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8469 | { (exit 1); exit 1; }; }; }
|
---|
8470 |
|
---|
8471 | rm -f $ac_file
|
---|
8472 | mv $tmp/config.h $ac_file
|
---|
8473 | fi
|
---|
8474 | else
|
---|
8475 | cat $tmp/config.h
|
---|
8476 | rm -f $tmp/config.h
|
---|
8477 | fi
|
---|
8478 | done
|
---|
8479 | _ACEOF
|
---|
8480 |
|
---|
8481 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8482 |
|
---|
8483 | { (exit 0); exit 0; }
|
---|
8484 | _ACEOF
|
---|
8485 | chmod +x $CONFIG_STATUS
|
---|
8486 | ac_clean_files=$ac_clean_files_save
|
---|
8487 |
|
---|
8488 |
|
---|
8489 | # configure is writing to config.log, and then calls config.status.
|
---|
8490 | # config.status does its own redirection, appending to config.log.
|
---|
8491 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8492 | # by configure, so config.status won't be able to write to it; its
|
---|
8493 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8494 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8495 | # appended to by config.status. When coming back to configure, we
|
---|
8496 | # need to make the FD available again.
|
---|
8497 | if test "$no_create" != yes; then
|
---|
8498 | ac_cs_success=:
|
---|
8499 | ac_config_status_args=
|
---|
8500 | test "$silent" = yes &&
|
---|
8501 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8502 | exec 5>/dev/null
|
---|
8503 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8504 | exec 5>>config.log
|
---|
8505 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8506 | # would make configure fail if this is the last instruction.
|
---|
8507 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
8508 | fi
|
---|
8509 |
|
---|
8510 | #
|
---|
8511 | # CONFIG_SUBDIRS section.
|
---|
8512 | #
|
---|
8513 | if test "$no_recursion" != yes; then
|
---|
8514 |
|
---|
8515 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
8516 | ac_sub_configure_args=
|
---|
8517 | ac_prev=
|
---|
8518 | for ac_arg in $ac_configure_args; do
|
---|
8519 | if test -n "$ac_prev"; then
|
---|
8520 | ac_prev=
|
---|
8521 | continue
|
---|
8522 | fi
|
---|
8523 | case $ac_arg in
|
---|
8524 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
8525 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
8526 | ac_prev=cache_file ;;
|
---|
8527 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
8528 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
8529 | | --c=*)
|
---|
8530 | ;;
|
---|
8531 | --config-cache | -C)
|
---|
8532 | ;;
|
---|
8533 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
8534 | ac_prev=srcdir ;;
|
---|
8535 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
8536 | ;;
|
---|
8537 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
8538 | ac_prev=prefix ;;
|
---|
8539 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
8540 | ;;
|
---|
8541 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
8542 | esac
|
---|
8543 | done
|
---|
8544 |
|
---|
8545 | # Always prepend --prefix to ensure using the same prefix
|
---|
8546 | # in subdir configurations.
|
---|
8547 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
8548 |
|
---|
8549 | ac_popdir=`pwd`
|
---|
8550 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
8551 |
|
---|
8552 | # Do not complain, so a configure script can configure whichever
|
---|
8553 | # parts of a large source tree are present.
|
---|
8554 | test -d $srcdir/$ac_dir || continue
|
---|
8555 |
|
---|
8556 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
8557 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
8558 | { if $as_mkdir_p; then
|
---|
8559 | mkdir -p "$ac_dir"
|
---|
8560 | else
|
---|
8561 | as_dir="$ac_dir"
|
---|
8562 | as_dirs=
|
---|
8563 | while test ! -d "$as_dir"; do
|
---|
8564 | as_dirs="$as_dir $as_dirs"
|
---|
8565 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8566 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8567 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8568 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8569 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8570 | . : '\(.\)' 2>/dev/null ||
|
---|
8571 | echo X"$as_dir" |
|
---|
8572 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8573 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8574 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8575 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8576 | s/.*/./; q'`
|
---|
8577 | done
|
---|
8578 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8579 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8580 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8581 | { (exit 1); exit 1; }; }; }
|
---|
8582 |
|
---|
8583 | ac_builddir=.
|
---|
8584 |
|
---|
8585 | if test "$ac_dir" != .; then
|
---|
8586 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8587 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8588 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8589 | else
|
---|
8590 | ac_dir_suffix= ac_top_builddir=
|
---|
8591 | fi
|
---|
8592 |
|
---|
8593 | case $srcdir in
|
---|
8594 | .) # No --srcdir option. We are building in place.
|
---|
8595 | ac_srcdir=.
|
---|
8596 | if test -z "$ac_top_builddir"; then
|
---|
8597 | ac_top_srcdir=.
|
---|
8598 | else
|
---|
8599 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8600 | fi ;;
|
---|
8601 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8602 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8603 | ac_top_srcdir=$srcdir ;;
|
---|
8604 | *) # Relative path.
|
---|
8605 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8606 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8607 | esac
|
---|
8608 |
|
---|
8609 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8610 | # the directories may not exist.
|
---|
8611 | case `pwd` in
|
---|
8612 | .) ac_abs_builddir="$ac_dir";;
|
---|
8613 | *)
|
---|
8614 | case "$ac_dir" in
|
---|
8615 | .) ac_abs_builddir=`pwd`;;
|
---|
8616 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8617 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8618 | esac;;
|
---|
8619 | esac
|
---|
8620 | case $ac_abs_builddir in
|
---|
8621 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8622 | *)
|
---|
8623 | case ${ac_top_builddir}. in
|
---|
8624 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8625 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8626 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8627 | esac;;
|
---|
8628 | esac
|
---|
8629 | case $ac_abs_builddir in
|
---|
8630 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8631 | *)
|
---|
8632 | case $ac_srcdir in
|
---|
8633 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8634 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8635 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8636 | esac;;
|
---|
8637 | esac
|
---|
8638 | case $ac_abs_builddir in
|
---|
8639 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8640 | *)
|
---|
8641 | case $ac_top_srcdir in
|
---|
8642 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8643 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8644 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8645 | esac;;
|
---|
8646 | esac
|
---|
8647 |
|
---|
8648 |
|
---|
8649 | cd $ac_dir
|
---|
8650 |
|
---|
8651 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8652 | if test -f $ac_srcdir/configure.gnu; then
|
---|
8653 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
8654 | elif test -f $ac_srcdir/configure; then
|
---|
8655 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
8656 | elif test -f $ac_srcdir/configure.in; then
|
---|
8657 | ac_sub_configure=$ac_configure
|
---|
8658 | else
|
---|
8659 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
8660 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
8661 | ac_sub_configure=
|
---|
8662 | fi
|
---|
8663 |
|
---|
8664 | # The recursion is here.
|
---|
8665 | if test -n "$ac_sub_configure"; then
|
---|
8666 | # Make the cache file name correct relative to the subdirectory.
|
---|
8667 | case $cache_file in
|
---|
8668 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
8669 | *) # Relative path.
|
---|
8670 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
8671 | esac
|
---|
8672 |
|
---|
8673 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
8674 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
8675 | # The eval makes quoting arguments work.
|
---|
8676 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
8677 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
8678 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
8679 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
8680 | { (exit 1); exit 1; }; }
|
---|
8681 | fi
|
---|
8682 |
|
---|
8683 | cd $ac_popdir
|
---|
8684 | done
|
---|
8685 | fi
|
---|
8686 |
|
---|
8687 |
|
---|
8688 |
|
---|