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 ENABLE_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 compilation
|
---|
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 | ENABLE_JDBM=$enableval
|
---|
1433 | else
|
---|
1434 | ENABLE_JDBM=yes
|
---|
1435 | fi;
|
---|
1436 | if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
|
---|
1437 | ENABLE_JDBM=1
|
---|
1438 | cat >>confdefs.h <<\_ACEOF
|
---|
1439 | #define ENABLE_JDBM
|
---|
1440 | _ACEOF
|
---|
1441 |
|
---|
1442 | else
|
---|
1443 | ENABLE_JDBM=0
|
---|
1444 | fi
|
---|
1445 |
|
---|
1446 |
|
---|
1447 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
1448 | if test "${enable_sqlite+set}" = set; then
|
---|
1449 | enableval="$enable_sqlite"
|
---|
1450 | USE_SQLITE=0
|
---|
1451 | else
|
---|
1452 | USE_SQLITE=1
|
---|
1453 | fi;
|
---|
1454 | cat >>confdefs.h <<\_ACEOF
|
---|
1455 | #define USE_SQLITE $USE_SQLITE
|
---|
1456 | _ACEOF
|
---|
1457 |
|
---|
1458 |
|
---|
1459 |
|
---|
1460 | if test -d runtime-src; then
|
---|
1461 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
1462 | if test "${enable_apache_httpd+set}" = set; then
|
---|
1463 | enableval="$enable_apache_httpd"
|
---|
1464 | USE_APACHE_HTTPD=1
|
---|
1465 | else
|
---|
1466 | USE_APACHE_HTTPD=0
|
---|
1467 | fi;
|
---|
1468 | cat >>confdefs.h <<\_ACEOF
|
---|
1469 | #define USE_APACHE_HTTPD $USE_APACHE_HTTPD
|
---|
1470 | _ACEOF
|
---|
1471 |
|
---|
1472 |
|
---|
1473 | fi
|
---|
1474 |
|
---|
1475 | # Check whether --enable-jni or --disable-jni was given.
|
---|
1476 | if test "${enable_jni+set}" = set; then
|
---|
1477 | enableval="$enable_jni"
|
---|
1478 | ENABLE_JNI=$enableval
|
---|
1479 | else
|
---|
1480 | ENABLE_JNI=no
|
---|
1481 | fi;
|
---|
1482 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
1483 | ENABLE_JNI=1
|
---|
1484 | cat >>confdefs.h <<\_ACEOF
|
---|
1485 | #define ENABLE_JNI
|
---|
1486 | _ACEOF
|
---|
1487 |
|
---|
1488 | else
|
---|
1489 | ENABLE_JNI=0
|
---|
1490 | fi
|
---|
1491 |
|
---|
1492 |
|
---|
1493 | # Check whether --enable-mg or --disable-mg was given.
|
---|
1494 | if test "${enable_mg+set}" = set; then
|
---|
1495 | enableval="$enable_mg"
|
---|
1496 | ENABLE_MG=$enableval
|
---|
1497 | else
|
---|
1498 | ENABLE_MG=yes
|
---|
1499 | fi;
|
---|
1500 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
1501 | ENABLE_MG=1
|
---|
1502 | cat >>confdefs.h <<\_ACEOF
|
---|
1503 | #define ENABLE_MG
|
---|
1504 | _ACEOF
|
---|
1505 |
|
---|
1506 | else
|
---|
1507 | ENABLE_MG=0
|
---|
1508 | fi
|
---|
1509 |
|
---|
1510 |
|
---|
1511 |
|
---|
1512 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
1513 | if test "${enable_mgpp+set}" = set; then
|
---|
1514 | enableval="$enable_mgpp"
|
---|
1515 | ENABLE_MGPP=$enableval
|
---|
1516 | else
|
---|
1517 | ENABLE_MGPP=yes
|
---|
1518 | fi;
|
---|
1519 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
1520 | ENABLE_MGPP=1
|
---|
1521 | cat >>confdefs.h <<\_ACEOF
|
---|
1522 | #define ENABLE_MGPP
|
---|
1523 | _ACEOF
|
---|
1524 |
|
---|
1525 | else
|
---|
1526 | ENABLE_MGPP=0
|
---|
1527 | fi
|
---|
1528 |
|
---|
1529 |
|
---|
1530 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
1531 | if test "${enable_lucene+set}" = set; then
|
---|
1532 | enableval="$enable_lucene"
|
---|
1533 | ENABLE_LUCENE=$enableval
|
---|
1534 | else
|
---|
1535 | ENABLE_LUCENE=yes
|
---|
1536 | fi;
|
---|
1537 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
1538 | ENABLE_LUCENE=1
|
---|
1539 | cat >>confdefs.h <<\_ACEOF
|
---|
1540 | #define ENABLE_LUCENE
|
---|
1541 | _ACEOF
|
---|
1542 |
|
---|
1543 | else
|
---|
1544 | ENABLE_LUCENE=0
|
---|
1545 | fi
|
---|
1546 |
|
---|
1547 |
|
---|
1548 |
|
---|
1549 | LDFLAGS=$LDFLAGS
|
---|
1550 |
|
---|
1551 | if test -z "$CFLAGS"; then
|
---|
1552 | CFLAGS=-O2
|
---|
1553 | fi
|
---|
1554 |
|
---|
1555 |
|
---|
1556 |
|
---|
1557 | ac_ext=c
|
---|
1558 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1562 | if test -n "$ac_tool_prefix"; then
|
---|
1563 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1564 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1565 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1567 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1568 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1569 | else
|
---|
1570 | if test -n "$CC"; then
|
---|
1571 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1572 | else
|
---|
1573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1574 | for as_dir in $PATH
|
---|
1575 | do
|
---|
1576 | IFS=$as_save_IFS
|
---|
1577 | test -z "$as_dir" && as_dir=.
|
---|
1578 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1579 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1580 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1581 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1582 | break 2
|
---|
1583 | fi
|
---|
1584 | done
|
---|
1585 | done
|
---|
1586 |
|
---|
1587 | fi
|
---|
1588 | fi
|
---|
1589 | CC=$ac_cv_prog_CC
|
---|
1590 | if test -n "$CC"; then
|
---|
1591 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1592 | echo "${ECHO_T}$CC" >&6
|
---|
1593 | else
|
---|
1594 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1595 | echo "${ECHO_T}no" >&6
|
---|
1596 | fi
|
---|
1597 |
|
---|
1598 | fi
|
---|
1599 | if test -z "$ac_cv_prog_CC"; then
|
---|
1600 | ac_ct_CC=$CC
|
---|
1601 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1602 | set dummy gcc; ac_word=$2
|
---|
1603 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1605 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1606 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1607 | else
|
---|
1608 | if test -n "$ac_ct_CC"; then
|
---|
1609 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1610 | else
|
---|
1611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1612 | for as_dir in $PATH
|
---|
1613 | do
|
---|
1614 | IFS=$as_save_IFS
|
---|
1615 | test -z "$as_dir" && as_dir=.
|
---|
1616 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1618 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1620 | break 2
|
---|
1621 | fi
|
---|
1622 | done
|
---|
1623 | done
|
---|
1624 |
|
---|
1625 | fi
|
---|
1626 | fi
|
---|
1627 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1628 | if test -n "$ac_ct_CC"; then
|
---|
1629 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1630 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1631 | else
|
---|
1632 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1633 | echo "${ECHO_T}no" >&6
|
---|
1634 | fi
|
---|
1635 |
|
---|
1636 | CC=$ac_ct_CC
|
---|
1637 | else
|
---|
1638 | CC="$ac_cv_prog_CC"
|
---|
1639 | fi
|
---|
1640 |
|
---|
1641 | if test -z "$CC"; then
|
---|
1642 | if test -n "$ac_tool_prefix"; then
|
---|
1643 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1644 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1645 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1647 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1648 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1649 | else
|
---|
1650 | if test -n "$CC"; then
|
---|
1651 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1652 | else
|
---|
1653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1654 | for as_dir in $PATH
|
---|
1655 | do
|
---|
1656 | IFS=$as_save_IFS
|
---|
1657 | test -z "$as_dir" && as_dir=.
|
---|
1658 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1660 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1662 | break 2
|
---|
1663 | fi
|
---|
1664 | done
|
---|
1665 | done
|
---|
1666 |
|
---|
1667 | fi
|
---|
1668 | fi
|
---|
1669 | CC=$ac_cv_prog_CC
|
---|
1670 | if test -n "$CC"; then
|
---|
1671 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1672 | echo "${ECHO_T}$CC" >&6
|
---|
1673 | else
|
---|
1674 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1675 | echo "${ECHO_T}no" >&6
|
---|
1676 | fi
|
---|
1677 |
|
---|
1678 | fi
|
---|
1679 | if test -z "$ac_cv_prog_CC"; then
|
---|
1680 | ac_ct_CC=$CC
|
---|
1681 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1682 | set dummy cc; ac_word=$2
|
---|
1683 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1685 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1686 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1687 | else
|
---|
1688 | if test -n "$ac_ct_CC"; then
|
---|
1689 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1690 | else
|
---|
1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1692 | for as_dir in $PATH
|
---|
1693 | do
|
---|
1694 | IFS=$as_save_IFS
|
---|
1695 | test -z "$as_dir" && as_dir=.
|
---|
1696 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1698 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1700 | break 2
|
---|
1701 | fi
|
---|
1702 | done
|
---|
1703 | done
|
---|
1704 |
|
---|
1705 | fi
|
---|
1706 | fi
|
---|
1707 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1708 | if test -n "$ac_ct_CC"; then
|
---|
1709 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1710 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1711 | else
|
---|
1712 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1713 | echo "${ECHO_T}no" >&6
|
---|
1714 | fi
|
---|
1715 |
|
---|
1716 | CC=$ac_ct_CC
|
---|
1717 | else
|
---|
1718 | CC="$ac_cv_prog_CC"
|
---|
1719 | fi
|
---|
1720 |
|
---|
1721 | fi
|
---|
1722 | if test -z "$CC"; then
|
---|
1723 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1724 | set dummy cc; ac_word=$2
|
---|
1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1727 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1728 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1729 | else
|
---|
1730 | if test -n "$CC"; then
|
---|
1731 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1732 | else
|
---|
1733 | ac_prog_rejected=no
|
---|
1734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1735 | for as_dir in $PATH
|
---|
1736 | do
|
---|
1737 | IFS=$as_save_IFS
|
---|
1738 | test -z "$as_dir" && as_dir=.
|
---|
1739 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1741 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1742 | ac_prog_rejected=yes
|
---|
1743 | continue
|
---|
1744 | fi
|
---|
1745 | ac_cv_prog_CC="cc"
|
---|
1746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1747 | break 2
|
---|
1748 | fi
|
---|
1749 | done
|
---|
1750 | done
|
---|
1751 |
|
---|
1752 | if test $ac_prog_rejected = yes; then
|
---|
1753 | # We found a bogon in the path, so make sure we never use it.
|
---|
1754 | set dummy $ac_cv_prog_CC
|
---|
1755 | shift
|
---|
1756 | if test $# != 0; then
|
---|
1757 | # We chose a different compiler from the bogus one.
|
---|
1758 | # However, it has the same basename, so the bogon will be chosen
|
---|
1759 | # first if we set CC to just the basename; use the full file name.
|
---|
1760 | shift
|
---|
1761 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1762 | fi
|
---|
1763 | fi
|
---|
1764 | fi
|
---|
1765 | fi
|
---|
1766 | CC=$ac_cv_prog_CC
|
---|
1767 | if test -n "$CC"; then
|
---|
1768 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1769 | echo "${ECHO_T}$CC" >&6
|
---|
1770 | else
|
---|
1771 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1772 | echo "${ECHO_T}no" >&6
|
---|
1773 | fi
|
---|
1774 |
|
---|
1775 | fi
|
---|
1776 | if test -z "$CC"; then
|
---|
1777 | if test -n "$ac_tool_prefix"; then
|
---|
1778 | for ac_prog in cl
|
---|
1779 | do
|
---|
1780 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1781 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1782 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1784 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1785 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1786 | else
|
---|
1787 | if test -n "$CC"; then
|
---|
1788 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1789 | else
|
---|
1790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1791 | for as_dir in $PATH
|
---|
1792 | do
|
---|
1793 | IFS=$as_save_IFS
|
---|
1794 | test -z "$as_dir" && as_dir=.
|
---|
1795 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1797 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1799 | break 2
|
---|
1800 | fi
|
---|
1801 | done
|
---|
1802 | done
|
---|
1803 |
|
---|
1804 | fi
|
---|
1805 | fi
|
---|
1806 | CC=$ac_cv_prog_CC
|
---|
1807 | if test -n "$CC"; then
|
---|
1808 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1809 | echo "${ECHO_T}$CC" >&6
|
---|
1810 | else
|
---|
1811 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1812 | echo "${ECHO_T}no" >&6
|
---|
1813 | fi
|
---|
1814 |
|
---|
1815 | test -n "$CC" && break
|
---|
1816 | done
|
---|
1817 | fi
|
---|
1818 | if test -z "$CC"; then
|
---|
1819 | ac_ct_CC=$CC
|
---|
1820 | for ac_prog in cl
|
---|
1821 | do
|
---|
1822 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1823 | set dummy $ac_prog; ac_word=$2
|
---|
1824 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1826 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1827 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1828 | else
|
---|
1829 | if test -n "$ac_ct_CC"; then
|
---|
1830 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1831 | else
|
---|
1832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1833 | for as_dir in $PATH
|
---|
1834 | do
|
---|
1835 | IFS=$as_save_IFS
|
---|
1836 | test -z "$as_dir" && as_dir=.
|
---|
1837 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1839 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1841 | break 2
|
---|
1842 | fi
|
---|
1843 | done
|
---|
1844 | done
|
---|
1845 |
|
---|
1846 | fi
|
---|
1847 | fi
|
---|
1848 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1849 | if test -n "$ac_ct_CC"; then
|
---|
1850 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1851 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1852 | else
|
---|
1853 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1854 | echo "${ECHO_T}no" >&6
|
---|
1855 | fi
|
---|
1856 |
|
---|
1857 | test -n "$ac_ct_CC" && break
|
---|
1858 | done
|
---|
1859 |
|
---|
1860 | CC=$ac_ct_CC
|
---|
1861 | fi
|
---|
1862 |
|
---|
1863 | fi
|
---|
1864 |
|
---|
1865 |
|
---|
1866 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1867 | See \`config.log' for more details." >&5
|
---|
1868 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1869 | See \`config.log' for more details." >&2;}
|
---|
1870 | { (exit 1); exit 1; }; }
|
---|
1871 |
|
---|
1872 | # Provide some information about the compiler.
|
---|
1873 | echo "$as_me:$LINENO:" \
|
---|
1874 | "checking for C compiler version" >&5
|
---|
1875 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1876 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1877 | (eval $ac_compiler --version </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 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1887 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1888 | ac_status=$?
|
---|
1889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1890 | (exit $ac_status); }
|
---|
1891 |
|
---|
1892 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1893 | /* confdefs.h. */
|
---|
1894 | _ACEOF
|
---|
1895 | cat confdefs.h >>conftest.$ac_ext
|
---|
1896 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1897 | /* end confdefs.h. */
|
---|
1898 |
|
---|
1899 | int
|
---|
1900 | main ()
|
---|
1901 | {
|
---|
1902 |
|
---|
1903 | ;
|
---|
1904 | return 0;
|
---|
1905 | }
|
---|
1906 | _ACEOF
|
---|
1907 | ac_clean_files_save=$ac_clean_files
|
---|
1908 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1909 | # Try to create an executable without -o first, disregard a.out.
|
---|
1910 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1911 | # of exeext.
|
---|
1912 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
1913 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
1914 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1915 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1916 | (eval $ac_link_default) 2>&5
|
---|
1917 | ac_status=$?
|
---|
1918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1919 | (exit $ac_status); }; then
|
---|
1920 | # Find the output, starting from the most likely. This scheme is
|
---|
1921 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1922 | # resort.
|
---|
1923 |
|
---|
1924 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1925 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1926 | ac_cv_exeext=
|
---|
1927 | # b.out is created by i960 compilers.
|
---|
1928 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1929 | do
|
---|
1930 | test -f "$ac_file" || continue
|
---|
1931 | case $ac_file in
|
---|
1932 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1933 | ;;
|
---|
1934 | conftest.$ac_ext )
|
---|
1935 | # This is the source file.
|
---|
1936 | ;;
|
---|
1937 | [ab].out )
|
---|
1938 | # We found the default executable, but exeext='' is most
|
---|
1939 | # certainly right.
|
---|
1940 | break;;
|
---|
1941 | *.* )
|
---|
1942 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1943 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1944 | # but it would be cool to find out if it's true. Does anybody
|
---|
1945 | # maintain Libtool? --akim.
|
---|
1946 | export ac_cv_exeext
|
---|
1947 | break;;
|
---|
1948 | * )
|
---|
1949 | break;;
|
---|
1950 | esac
|
---|
1951 | done
|
---|
1952 | else
|
---|
1953 | echo "$as_me: failed program was:" >&5
|
---|
1954 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1955 |
|
---|
1956 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
1957 | See \`config.log' for more details." >&5
|
---|
1958 | echo "$as_me: error: C compiler cannot create executables
|
---|
1959 | See \`config.log' for more details." >&2;}
|
---|
1960 | { (exit 77); exit 77; }; }
|
---|
1961 | fi
|
---|
1962 |
|
---|
1963 | ac_exeext=$ac_cv_exeext
|
---|
1964 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1965 | echo "${ECHO_T}$ac_file" >&6
|
---|
1966 |
|
---|
1967 | # Check the compiler produces executables we can run. If not, either
|
---|
1968 | # the compiler is broken, or we cross compile.
|
---|
1969 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
1970 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1971 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1972 | # If not cross compiling, check that we can run a simple program.
|
---|
1973 | if test "$cross_compiling" != yes; then
|
---|
1974 | if { ac_try='./$ac_file'
|
---|
1975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1976 | (eval $ac_try) 2>&5
|
---|
1977 | ac_status=$?
|
---|
1978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1979 | (exit $ac_status); }; }; then
|
---|
1980 | cross_compiling=no
|
---|
1981 | else
|
---|
1982 | if test "$cross_compiling" = maybe; then
|
---|
1983 | cross_compiling=yes
|
---|
1984 | else
|
---|
1985 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
1986 | If you meant to cross compile, use \`--host'.
|
---|
1987 | See \`config.log' for more details." >&5
|
---|
1988 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1989 | If you meant to cross compile, use \`--host'.
|
---|
1990 | See \`config.log' for more details." >&2;}
|
---|
1991 | { (exit 1); exit 1; }; }
|
---|
1992 | fi
|
---|
1993 | fi
|
---|
1994 | fi
|
---|
1995 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1996 | echo "${ECHO_T}yes" >&6
|
---|
1997 |
|
---|
1998 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1999 | ac_clean_files=$ac_clean_files_save
|
---|
2000 | # Check the compiler produces executables we can run. If not, either
|
---|
2001 | # the compiler is broken, or we cross compile.
|
---|
2002 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2003 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
2004 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2005 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
2006 |
|
---|
2007 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2008 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
2009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
2010 | (eval $ac_link) 2>&5
|
---|
2011 | ac_status=$?
|
---|
2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2013 | (exit $ac_status); }; then
|
---|
2014 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2015 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2016 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2017 | # `rm'.
|
---|
2018 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2019 | test -f "$ac_file" || continue
|
---|
2020 | case $ac_file in
|
---|
2021 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
2022 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2023 | export ac_cv_exeext
|
---|
2024 | break;;
|
---|
2025 | * ) break;;
|
---|
2026 | esac
|
---|
2027 | done
|
---|
2028 | else
|
---|
2029 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2030 | See \`config.log' for more details." >&5
|
---|
2031 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2032 | See \`config.log' for more details." >&2;}
|
---|
2033 | { (exit 1); exit 1; }; }
|
---|
2034 | fi
|
---|
2035 |
|
---|
2036 | rm -f conftest$ac_cv_exeext
|
---|
2037 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2038 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
2039 |
|
---|
2040 | rm -f conftest.$ac_ext
|
---|
2041 | EXEEXT=$ac_cv_exeext
|
---|
2042 | ac_exeext=$EXEEXT
|
---|
2043 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2044 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
2045 | if test "${ac_cv_objext+set}" = set; then
|
---|
2046 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2047 | else
|
---|
2048 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2049 | /* confdefs.h. */
|
---|
2050 | _ACEOF
|
---|
2051 | cat confdefs.h >>conftest.$ac_ext
|
---|
2052 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2053 | /* end confdefs.h. */
|
---|
2054 |
|
---|
2055 | int
|
---|
2056 | main ()
|
---|
2057 | {
|
---|
2058 |
|
---|
2059 | ;
|
---|
2060 | return 0;
|
---|
2061 | }
|
---|
2062 | _ACEOF
|
---|
2063 | rm -f conftest.o conftest.obj
|
---|
2064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2065 | (eval $ac_compile) 2>&5
|
---|
2066 | ac_status=$?
|
---|
2067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2068 | (exit $ac_status); }; then
|
---|
2069 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
2070 | case $ac_file in
|
---|
2071 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
2072 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2073 | break;;
|
---|
2074 | esac
|
---|
2075 | done
|
---|
2076 | else
|
---|
2077 | echo "$as_me: failed program was:" >&5
|
---|
2078 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2079 |
|
---|
2080 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2081 | See \`config.log' for more details." >&5
|
---|
2082 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2083 | See \`config.log' for more details." >&2;}
|
---|
2084 | { (exit 1); exit 1; }; }
|
---|
2085 | fi
|
---|
2086 |
|
---|
2087 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2088 | fi
|
---|
2089 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2090 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
2091 | OBJEXT=$ac_cv_objext
|
---|
2092 | ac_objext=$OBJEXT
|
---|
2093 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2094 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
2095 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2096 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2097 | else
|
---|
2098 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2099 | /* confdefs.h. */
|
---|
2100 | _ACEOF
|
---|
2101 | cat confdefs.h >>conftest.$ac_ext
|
---|
2102 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2103 | /* end confdefs.h. */
|
---|
2104 |
|
---|
2105 | int
|
---|
2106 | main ()
|
---|
2107 | {
|
---|
2108 | #ifndef __GNUC__
|
---|
2109 | choke me
|
---|
2110 | #endif
|
---|
2111 |
|
---|
2112 | ;
|
---|
2113 | return 0;
|
---|
2114 | }
|
---|
2115 | _ACEOF
|
---|
2116 | rm -f conftest.$ac_objext
|
---|
2117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2118 | (eval $ac_compile) 2>conftest.er1
|
---|
2119 | ac_status=$?
|
---|
2120 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2121 | rm -f conftest.er1
|
---|
2122 | cat conftest.err >&5
|
---|
2123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2124 | (exit $ac_status); } &&
|
---|
2125 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2126 | || test ! -s conftest.err'
|
---|
2127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2128 | (eval $ac_try) 2>&5
|
---|
2129 | ac_status=$?
|
---|
2130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2131 | (exit $ac_status); }; } &&
|
---|
2132 | { ac_try='test -s conftest.$ac_objext'
|
---|
2133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2134 | (eval $ac_try) 2>&5
|
---|
2135 | ac_status=$?
|
---|
2136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2137 | (exit $ac_status); }; }; then
|
---|
2138 | ac_compiler_gnu=yes
|
---|
2139 | else
|
---|
2140 | echo "$as_me: failed program was:" >&5
|
---|
2141 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2142 |
|
---|
2143 | ac_compiler_gnu=no
|
---|
2144 | fi
|
---|
2145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2146 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2147 |
|
---|
2148 | fi
|
---|
2149 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2150 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2151 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2152 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2153 | ac_save_CFLAGS=$CFLAGS
|
---|
2154 | CFLAGS="-g"
|
---|
2155 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2156 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2157 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2158 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2159 | else
|
---|
2160 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2161 | /* confdefs.h. */
|
---|
2162 | _ACEOF
|
---|
2163 | cat confdefs.h >>conftest.$ac_ext
|
---|
2164 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2165 | /* end confdefs.h. */
|
---|
2166 |
|
---|
2167 | int
|
---|
2168 | main ()
|
---|
2169 | {
|
---|
2170 |
|
---|
2171 | ;
|
---|
2172 | return 0;
|
---|
2173 | }
|
---|
2174 | _ACEOF
|
---|
2175 | rm -f conftest.$ac_objext
|
---|
2176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2177 | (eval $ac_compile) 2>conftest.er1
|
---|
2178 | ac_status=$?
|
---|
2179 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2180 | rm -f conftest.er1
|
---|
2181 | cat conftest.err >&5
|
---|
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2183 | (exit $ac_status); } &&
|
---|
2184 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2185 | || test ! -s conftest.err'
|
---|
2186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2187 | (eval $ac_try) 2>&5
|
---|
2188 | ac_status=$?
|
---|
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2190 | (exit $ac_status); }; } &&
|
---|
2191 | { ac_try='test -s conftest.$ac_objext'
|
---|
2192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2193 | (eval $ac_try) 2>&5
|
---|
2194 | ac_status=$?
|
---|
2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2196 | (exit $ac_status); }; }; then
|
---|
2197 | ac_cv_prog_cc_g=yes
|
---|
2198 | else
|
---|
2199 | echo "$as_me: failed program was:" >&5
|
---|
2200 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2201 |
|
---|
2202 | ac_cv_prog_cc_g=no
|
---|
2203 | fi
|
---|
2204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2205 | fi
|
---|
2206 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2207 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2208 | if test "$ac_test_CFLAGS" = set; then
|
---|
2209 | CFLAGS=$ac_save_CFLAGS
|
---|
2210 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2211 | if test "$GCC" = yes; then
|
---|
2212 | CFLAGS="-g -O2"
|
---|
2213 | else
|
---|
2214 | CFLAGS="-g"
|
---|
2215 | fi
|
---|
2216 | else
|
---|
2217 | if test "$GCC" = yes; then
|
---|
2218 | CFLAGS="-O2"
|
---|
2219 | else
|
---|
2220 | CFLAGS=
|
---|
2221 | fi
|
---|
2222 | fi
|
---|
2223 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2224 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2225 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2226 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2227 | else
|
---|
2228 | ac_cv_prog_cc_stdc=no
|
---|
2229 | ac_save_CC=$CC
|
---|
2230 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2231 | /* confdefs.h. */
|
---|
2232 | _ACEOF
|
---|
2233 | cat confdefs.h >>conftest.$ac_ext
|
---|
2234 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2235 | /* end confdefs.h. */
|
---|
2236 | #include <stdarg.h>
|
---|
2237 | #include <stdio.h>
|
---|
2238 | #include <sys/types.h>
|
---|
2239 | #include <sys/stat.h>
|
---|
2240 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2241 | struct buf { int x; };
|
---|
2242 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2243 | static char *e (p, i)
|
---|
2244 | char **p;
|
---|
2245 | int i;
|
---|
2246 | {
|
---|
2247 | return p[i];
|
---|
2248 | }
|
---|
2249 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2250 | {
|
---|
2251 | char *s;
|
---|
2252 | va_list v;
|
---|
2253 | va_start (v,p);
|
---|
2254 | s = g (p, va_arg (v,int));
|
---|
2255 | va_end (v);
|
---|
2256 | return s;
|
---|
2257 | }
|
---|
2258 |
|
---|
2259 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2260 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2261 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2262 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2263 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2264 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2265 | that's true only with -std1. */
|
---|
2266 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2267 |
|
---|
2268 | int test (int i, double x);
|
---|
2269 | struct s1 {int (*f) (int a);};
|
---|
2270 | struct s2 {int (*f) (double a);};
|
---|
2271 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2272 | int argc;
|
---|
2273 | char **argv;
|
---|
2274 | int
|
---|
2275 | main ()
|
---|
2276 | {
|
---|
2277 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2278 | ;
|
---|
2279 | return 0;
|
---|
2280 | }
|
---|
2281 | _ACEOF
|
---|
2282 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2283 | # breaks some systems' header files.
|
---|
2284 | # AIX -qlanglvl=ansi
|
---|
2285 | # Ultrix and OSF/1 -std1
|
---|
2286 | # HP-UX 10.20 and later -Ae
|
---|
2287 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2288 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2289 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2290 | do
|
---|
2291 | CC="$ac_save_CC $ac_arg"
|
---|
2292 | rm -f conftest.$ac_objext
|
---|
2293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2294 | (eval $ac_compile) 2>conftest.er1
|
---|
2295 | ac_status=$?
|
---|
2296 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2297 | rm -f conftest.er1
|
---|
2298 | cat conftest.err >&5
|
---|
2299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2300 | (exit $ac_status); } &&
|
---|
2301 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2302 | || test ! -s conftest.err'
|
---|
2303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2304 | (eval $ac_try) 2>&5
|
---|
2305 | ac_status=$?
|
---|
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2307 | (exit $ac_status); }; } &&
|
---|
2308 | { ac_try='test -s conftest.$ac_objext'
|
---|
2309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2310 | (eval $ac_try) 2>&5
|
---|
2311 | ac_status=$?
|
---|
2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2313 | (exit $ac_status); }; }; then
|
---|
2314 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2315 | break
|
---|
2316 | else
|
---|
2317 | echo "$as_me: failed program was:" >&5
|
---|
2318 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2319 |
|
---|
2320 | fi
|
---|
2321 | rm -f conftest.err conftest.$ac_objext
|
---|
2322 | done
|
---|
2323 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2324 | CC=$ac_save_CC
|
---|
2325 |
|
---|
2326 | fi
|
---|
2327 |
|
---|
2328 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2329 | x|xno)
|
---|
2330 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2331 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2332 | *)
|
---|
2333 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2334 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2335 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2336 | esac
|
---|
2337 |
|
---|
2338 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2339 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2340 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2341 | # the declaration of exit, since it's the most demanding environment.
|
---|
2342 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2343 | #ifndef __cplusplus
|
---|
2344 | choke me
|
---|
2345 | #endif
|
---|
2346 | _ACEOF
|
---|
2347 | rm -f conftest.$ac_objext
|
---|
2348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2349 | (eval $ac_compile) 2>conftest.er1
|
---|
2350 | ac_status=$?
|
---|
2351 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2352 | rm -f conftest.er1
|
---|
2353 | cat conftest.err >&5
|
---|
2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2355 | (exit $ac_status); } &&
|
---|
2356 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2357 | || test ! -s conftest.err'
|
---|
2358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2359 | (eval $ac_try) 2>&5
|
---|
2360 | ac_status=$?
|
---|
2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2362 | (exit $ac_status); }; } &&
|
---|
2363 | { ac_try='test -s conftest.$ac_objext'
|
---|
2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2365 | (eval $ac_try) 2>&5
|
---|
2366 | ac_status=$?
|
---|
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2368 | (exit $ac_status); }; }; then
|
---|
2369 | for ac_declaration in \
|
---|
2370 | '' \
|
---|
2371 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2372 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2373 | 'extern "C" void exit (int) throw ();' \
|
---|
2374 | 'extern "C" void exit (int);' \
|
---|
2375 | 'void exit (int);'
|
---|
2376 | do
|
---|
2377 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2378 | /* confdefs.h. */
|
---|
2379 | _ACEOF
|
---|
2380 | cat confdefs.h >>conftest.$ac_ext
|
---|
2381 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2382 | /* end confdefs.h. */
|
---|
2383 | $ac_declaration
|
---|
2384 | #include <stdlib.h>
|
---|
2385 | int
|
---|
2386 | main ()
|
---|
2387 | {
|
---|
2388 | exit (42);
|
---|
2389 | ;
|
---|
2390 | return 0;
|
---|
2391 | }
|
---|
2392 | _ACEOF
|
---|
2393 | rm -f conftest.$ac_objext
|
---|
2394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2395 | (eval $ac_compile) 2>conftest.er1
|
---|
2396 | ac_status=$?
|
---|
2397 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2398 | rm -f conftest.er1
|
---|
2399 | cat conftest.err >&5
|
---|
2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2401 | (exit $ac_status); } &&
|
---|
2402 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2403 | || test ! -s conftest.err'
|
---|
2404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2405 | (eval $ac_try) 2>&5
|
---|
2406 | ac_status=$?
|
---|
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2408 | (exit $ac_status); }; } &&
|
---|
2409 | { ac_try='test -s conftest.$ac_objext'
|
---|
2410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2411 | (eval $ac_try) 2>&5
|
---|
2412 | ac_status=$?
|
---|
2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2414 | (exit $ac_status); }; }; then
|
---|
2415 | :
|
---|
2416 | else
|
---|
2417 | echo "$as_me: failed program was:" >&5
|
---|
2418 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2419 |
|
---|
2420 | continue
|
---|
2421 | fi
|
---|
2422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2423 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2424 | /* confdefs.h. */
|
---|
2425 | _ACEOF
|
---|
2426 | cat confdefs.h >>conftest.$ac_ext
|
---|
2427 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2428 | /* end confdefs.h. */
|
---|
2429 | $ac_declaration
|
---|
2430 | int
|
---|
2431 | main ()
|
---|
2432 | {
|
---|
2433 | exit (42);
|
---|
2434 | ;
|
---|
2435 | return 0;
|
---|
2436 | }
|
---|
2437 | _ACEOF
|
---|
2438 | rm -f conftest.$ac_objext
|
---|
2439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2440 | (eval $ac_compile) 2>conftest.er1
|
---|
2441 | ac_status=$?
|
---|
2442 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2443 | rm -f conftest.er1
|
---|
2444 | cat conftest.err >&5
|
---|
2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2446 | (exit $ac_status); } &&
|
---|
2447 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2448 | || test ! -s conftest.err'
|
---|
2449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2450 | (eval $ac_try) 2>&5
|
---|
2451 | ac_status=$?
|
---|
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2453 | (exit $ac_status); }; } &&
|
---|
2454 | { ac_try='test -s conftest.$ac_objext'
|
---|
2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2456 | (eval $ac_try) 2>&5
|
---|
2457 | ac_status=$?
|
---|
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2459 | (exit $ac_status); }; }; then
|
---|
2460 | break
|
---|
2461 | else
|
---|
2462 | echo "$as_me: failed program was:" >&5
|
---|
2463 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2464 |
|
---|
2465 | fi
|
---|
2466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2467 | done
|
---|
2468 | rm -f conftest*
|
---|
2469 | if test -n "$ac_declaration"; then
|
---|
2470 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2471 | echo $ac_declaration >>confdefs.h
|
---|
2472 | echo '#endif' >>confdefs.h
|
---|
2473 | fi
|
---|
2474 |
|
---|
2475 | else
|
---|
2476 | echo "$as_me: failed program was:" >&5
|
---|
2477 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2478 |
|
---|
2479 | fi
|
---|
2480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2481 | ac_ext=c
|
---|
2482 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2486 |
|
---|
2487 | ac_ext=cc
|
---|
2488 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2489 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2490 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2491 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2492 | if test -n "$ac_tool_prefix"; then
|
---|
2493 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2494 | do
|
---|
2495 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2496 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2497 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2499 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
2500 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2501 | else
|
---|
2502 | if test -n "$CXX"; then
|
---|
2503 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2504 | else
|
---|
2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2506 | for as_dir in $PATH
|
---|
2507 | do
|
---|
2508 | IFS=$as_save_IFS
|
---|
2509 | test -z "$as_dir" && as_dir=.
|
---|
2510 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2512 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2514 | break 2
|
---|
2515 | fi
|
---|
2516 | done
|
---|
2517 | done
|
---|
2518 |
|
---|
2519 | fi
|
---|
2520 | fi
|
---|
2521 | CXX=$ac_cv_prog_CXX
|
---|
2522 | if test -n "$CXX"; then
|
---|
2523 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2524 | echo "${ECHO_T}$CXX" >&6
|
---|
2525 | else
|
---|
2526 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2527 | echo "${ECHO_T}no" >&6
|
---|
2528 | fi
|
---|
2529 |
|
---|
2530 | test -n "$CXX" && break
|
---|
2531 | done
|
---|
2532 | fi
|
---|
2533 | if test -z "$CXX"; then
|
---|
2534 | ac_ct_CXX=$CXX
|
---|
2535 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2536 | do
|
---|
2537 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2538 | set dummy $ac_prog; ac_word=$2
|
---|
2539 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2541 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2542 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2543 | else
|
---|
2544 | if test -n "$ac_ct_CXX"; then
|
---|
2545 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2546 | else
|
---|
2547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2548 | for as_dir in $PATH
|
---|
2549 | do
|
---|
2550 | IFS=$as_save_IFS
|
---|
2551 | test -z "$as_dir" && as_dir=.
|
---|
2552 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2553 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2554 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2556 | break 2
|
---|
2557 | fi
|
---|
2558 | done
|
---|
2559 | done
|
---|
2560 |
|
---|
2561 | fi
|
---|
2562 | fi
|
---|
2563 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2564 | if test -n "$ac_ct_CXX"; then
|
---|
2565 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
2566 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
2567 | else
|
---|
2568 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2569 | echo "${ECHO_T}no" >&6
|
---|
2570 | fi
|
---|
2571 |
|
---|
2572 | test -n "$ac_ct_CXX" && break
|
---|
2573 | done
|
---|
2574 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
2575 |
|
---|
2576 | CXX=$ac_ct_CXX
|
---|
2577 | fi
|
---|
2578 |
|
---|
2579 |
|
---|
2580 | # Provide some information about the compiler.
|
---|
2581 | echo "$as_me:$LINENO:" \
|
---|
2582 | "checking for C++ compiler version" >&5
|
---|
2583 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2584 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2585 | (eval $ac_compiler --version </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 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2595 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2596 | ac_status=$?
|
---|
2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2598 | (exit $ac_status); }
|
---|
2599 |
|
---|
2600 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
2601 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
2602 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
2603 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2604 | else
|
---|
2605 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2606 | /* confdefs.h. */
|
---|
2607 | _ACEOF
|
---|
2608 | cat confdefs.h >>conftest.$ac_ext
|
---|
2609 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2610 | /* end confdefs.h. */
|
---|
2611 |
|
---|
2612 | int
|
---|
2613 | main ()
|
---|
2614 | {
|
---|
2615 | #ifndef __GNUC__
|
---|
2616 | choke me
|
---|
2617 | #endif
|
---|
2618 |
|
---|
2619 | ;
|
---|
2620 | return 0;
|
---|
2621 | }
|
---|
2622 | _ACEOF
|
---|
2623 | rm -f conftest.$ac_objext
|
---|
2624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2625 | (eval $ac_compile) 2>conftest.er1
|
---|
2626 | ac_status=$?
|
---|
2627 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2628 | rm -f conftest.er1
|
---|
2629 | cat conftest.err >&5
|
---|
2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2631 | (exit $ac_status); } &&
|
---|
2632 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2633 | || test ! -s conftest.err'
|
---|
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2635 | (eval $ac_try) 2>&5
|
---|
2636 | ac_status=$?
|
---|
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2638 | (exit $ac_status); }; } &&
|
---|
2639 | { ac_try='test -s conftest.$ac_objext'
|
---|
2640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2641 | (eval $ac_try) 2>&5
|
---|
2642 | ac_status=$?
|
---|
2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2644 | (exit $ac_status); }; }; then
|
---|
2645 | ac_compiler_gnu=yes
|
---|
2646 | else
|
---|
2647 | echo "$as_me: failed program was:" >&5
|
---|
2648 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2649 |
|
---|
2650 | ac_compiler_gnu=no
|
---|
2651 | fi
|
---|
2652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2653 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2654 |
|
---|
2655 | fi
|
---|
2656 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2657 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
2658 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2659 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2660 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2661 | CXXFLAGS="-g"
|
---|
2662 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
2663 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
2664 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
2665 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2666 | else
|
---|
2667 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2668 | /* confdefs.h. */
|
---|
2669 | _ACEOF
|
---|
2670 | cat confdefs.h >>conftest.$ac_ext
|
---|
2671 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2672 | /* end confdefs.h. */
|
---|
2673 |
|
---|
2674 | int
|
---|
2675 | main ()
|
---|
2676 | {
|
---|
2677 |
|
---|
2678 | ;
|
---|
2679 | return 0;
|
---|
2680 | }
|
---|
2681 | _ACEOF
|
---|
2682 | rm -f conftest.$ac_objext
|
---|
2683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2684 | (eval $ac_compile) 2>conftest.er1
|
---|
2685 | ac_status=$?
|
---|
2686 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2687 | rm -f conftest.er1
|
---|
2688 | cat conftest.err >&5
|
---|
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2690 | (exit $ac_status); } &&
|
---|
2691 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2692 | || test ! -s conftest.err'
|
---|
2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2694 | (eval $ac_try) 2>&5
|
---|
2695 | ac_status=$?
|
---|
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2697 | (exit $ac_status); }; } &&
|
---|
2698 | { ac_try='test -s conftest.$ac_objext'
|
---|
2699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2700 | (eval $ac_try) 2>&5
|
---|
2701 | ac_status=$?
|
---|
2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2703 | (exit $ac_status); }; }; then
|
---|
2704 | ac_cv_prog_cxx_g=yes
|
---|
2705 | else
|
---|
2706 | echo "$as_me: failed program was:" >&5
|
---|
2707 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2708 |
|
---|
2709 | ac_cv_prog_cxx_g=no
|
---|
2710 | fi
|
---|
2711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2712 | fi
|
---|
2713 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
2714 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
2715 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2716 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2717 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2718 | if test "$GXX" = yes; then
|
---|
2719 | CXXFLAGS="-g -O2"
|
---|
2720 | else
|
---|
2721 | CXXFLAGS="-g"
|
---|
2722 | fi
|
---|
2723 | else
|
---|
2724 | if test "$GXX" = yes; then
|
---|
2725 | CXXFLAGS="-O2"
|
---|
2726 | else
|
---|
2727 | CXXFLAGS=
|
---|
2728 | fi
|
---|
2729 | fi
|
---|
2730 | for ac_declaration in \
|
---|
2731 | '' \
|
---|
2732 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2733 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2734 | 'extern "C" void exit (int) throw ();' \
|
---|
2735 | 'extern "C" void exit (int);' \
|
---|
2736 | 'void exit (int);'
|
---|
2737 | do
|
---|
2738 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2739 | /* confdefs.h. */
|
---|
2740 | _ACEOF
|
---|
2741 | cat confdefs.h >>conftest.$ac_ext
|
---|
2742 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2743 | /* end confdefs.h. */
|
---|
2744 | $ac_declaration
|
---|
2745 | #include <stdlib.h>
|
---|
2746 | int
|
---|
2747 | main ()
|
---|
2748 | {
|
---|
2749 | exit (42);
|
---|
2750 | ;
|
---|
2751 | return 0;
|
---|
2752 | }
|
---|
2753 | _ACEOF
|
---|
2754 | rm -f conftest.$ac_objext
|
---|
2755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2756 | (eval $ac_compile) 2>conftest.er1
|
---|
2757 | ac_status=$?
|
---|
2758 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2759 | rm -f conftest.er1
|
---|
2760 | cat conftest.err >&5
|
---|
2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2762 | (exit $ac_status); } &&
|
---|
2763 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2764 | || test ! -s conftest.err'
|
---|
2765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2766 | (eval $ac_try) 2>&5
|
---|
2767 | ac_status=$?
|
---|
2768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2769 | (exit $ac_status); }; } &&
|
---|
2770 | { ac_try='test -s conftest.$ac_objext'
|
---|
2771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2772 | (eval $ac_try) 2>&5
|
---|
2773 | ac_status=$?
|
---|
2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2775 | (exit $ac_status); }; }; then
|
---|
2776 | :
|
---|
2777 | else
|
---|
2778 | echo "$as_me: failed program was:" >&5
|
---|
2779 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2780 |
|
---|
2781 | continue
|
---|
2782 | fi
|
---|
2783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2784 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2785 | /* confdefs.h. */
|
---|
2786 | _ACEOF
|
---|
2787 | cat confdefs.h >>conftest.$ac_ext
|
---|
2788 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2789 | /* end confdefs.h. */
|
---|
2790 | $ac_declaration
|
---|
2791 | int
|
---|
2792 | main ()
|
---|
2793 | {
|
---|
2794 | exit (42);
|
---|
2795 | ;
|
---|
2796 | return 0;
|
---|
2797 | }
|
---|
2798 | _ACEOF
|
---|
2799 | rm -f conftest.$ac_objext
|
---|
2800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2801 | (eval $ac_compile) 2>conftest.er1
|
---|
2802 | ac_status=$?
|
---|
2803 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2804 | rm -f conftest.er1
|
---|
2805 | cat conftest.err >&5
|
---|
2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2807 | (exit $ac_status); } &&
|
---|
2808 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2809 | || test ! -s conftest.err'
|
---|
2810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2811 | (eval $ac_try) 2>&5
|
---|
2812 | ac_status=$?
|
---|
2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2814 | (exit $ac_status); }; } &&
|
---|
2815 | { ac_try='test -s conftest.$ac_objext'
|
---|
2816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2817 | (eval $ac_try) 2>&5
|
---|
2818 | ac_status=$?
|
---|
2819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2820 | (exit $ac_status); }; }; then
|
---|
2821 | break
|
---|
2822 | else
|
---|
2823 | echo "$as_me: failed program was:" >&5
|
---|
2824 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2825 |
|
---|
2826 | fi
|
---|
2827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2828 | done
|
---|
2829 | rm -f conftest*
|
---|
2830 | if test -n "$ac_declaration"; then
|
---|
2831 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2832 | echo $ac_declaration >>confdefs.h
|
---|
2833 | echo '#endif' >>confdefs.h
|
---|
2834 | fi
|
---|
2835 |
|
---|
2836 | ac_ext=c
|
---|
2837 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2841 |
|
---|
2842 | for ac_prog in gawk mawk nawk awk
|
---|
2843 | do
|
---|
2844 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2845 | set dummy $ac_prog; ac_word=$2
|
---|
2846 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2848 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
2849 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2850 | else
|
---|
2851 | if test -n "$AWK"; then
|
---|
2852 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2853 | else
|
---|
2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2855 | for as_dir in $PATH
|
---|
2856 | do
|
---|
2857 | IFS=$as_save_IFS
|
---|
2858 | test -z "$as_dir" && as_dir=.
|
---|
2859 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2861 | ac_cv_prog_AWK="$ac_prog"
|
---|
2862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2863 | break 2
|
---|
2864 | fi
|
---|
2865 | done
|
---|
2866 | done
|
---|
2867 |
|
---|
2868 | fi
|
---|
2869 | fi
|
---|
2870 | AWK=$ac_cv_prog_AWK
|
---|
2871 | if test -n "$AWK"; then
|
---|
2872 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
2873 | echo "${ECHO_T}$AWK" >&6
|
---|
2874 | else
|
---|
2875 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2876 | echo "${ECHO_T}no" >&6
|
---|
2877 | fi
|
---|
2878 |
|
---|
2879 | test -n "$AWK" && break
|
---|
2880 | done
|
---|
2881 |
|
---|
2882 | for ac_prog in 'bison -y' byacc
|
---|
2883 | do
|
---|
2884 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2885 | set dummy $ac_prog; ac_word=$2
|
---|
2886 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2888 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
2889 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2890 | else
|
---|
2891 | if test -n "$YACC"; then
|
---|
2892 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
2893 | else
|
---|
2894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2895 | for as_dir in $PATH
|
---|
2896 | do
|
---|
2897 | IFS=$as_save_IFS
|
---|
2898 | test -z "$as_dir" && as_dir=.
|
---|
2899 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2901 | ac_cv_prog_YACC="$ac_prog"
|
---|
2902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2903 | break 2
|
---|
2904 | fi
|
---|
2905 | done
|
---|
2906 | done
|
---|
2907 |
|
---|
2908 | fi
|
---|
2909 | fi
|
---|
2910 | YACC=$ac_cv_prog_YACC
|
---|
2911 | if test -n "$YACC"; then
|
---|
2912 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
2913 | echo "${ECHO_T}$YACC" >&6
|
---|
2914 | else
|
---|
2915 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2916 | echo "${ECHO_T}no" >&6
|
---|
2917 | fi
|
---|
2918 |
|
---|
2919 | test -n "$YACC" && break
|
---|
2920 | done
|
---|
2921 | test -n "$YACC" || YACC="yacc"
|
---|
2922 |
|
---|
2923 | ac_aux_dir=
|
---|
2924 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2925 | if test -f $ac_dir/install-sh; then
|
---|
2926 | ac_aux_dir=$ac_dir
|
---|
2927 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2928 | break
|
---|
2929 | elif test -f $ac_dir/install.sh; then
|
---|
2930 | ac_aux_dir=$ac_dir
|
---|
2931 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2932 | break
|
---|
2933 | elif test -f $ac_dir/shtool; then
|
---|
2934 | ac_aux_dir=$ac_dir
|
---|
2935 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2936 | break
|
---|
2937 | fi
|
---|
2938 | done
|
---|
2939 | if test -z "$ac_aux_dir"; then
|
---|
2940 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2941 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2942 | { (exit 1); exit 1; }; }
|
---|
2943 | fi
|
---|
2944 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2945 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2946 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2947 |
|
---|
2948 | # Make sure we can run config.sub.
|
---|
2949 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
2950 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
2951 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
2952 | { (exit 1); exit 1; }; }
|
---|
2953 |
|
---|
2954 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
2955 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
2956 | if test "${ac_cv_build+set}" = set; then
|
---|
2957 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2958 | else
|
---|
2959 | ac_cv_build_alias=$build_alias
|
---|
2960 | test -z "$ac_cv_build_alias" &&
|
---|
2961 | ac_cv_build_alias=`$ac_config_guess`
|
---|
2962 | test -z "$ac_cv_build_alias" &&
|
---|
2963 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
2964 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
2965 | { (exit 1); exit 1; }; }
|
---|
2966 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
2967 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
2968 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
2969 | { (exit 1); exit 1; }; }
|
---|
2970 |
|
---|
2971 | fi
|
---|
2972 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
2973 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
2974 | build=$ac_cv_build
|
---|
2975 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2976 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2977 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2978 |
|
---|
2979 |
|
---|
2980 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
2981 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
2982 | if test "${ac_cv_host+set}" = set; then
|
---|
2983 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2984 | else
|
---|
2985 | ac_cv_host_alias=$host_alias
|
---|
2986 | test -z "$ac_cv_host_alias" &&
|
---|
2987 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
2988 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
2989 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
2990 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
2991 | { (exit 1); exit 1; }; }
|
---|
2992 |
|
---|
2993 | fi
|
---|
2994 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
2995 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
2996 | host=$ac_cv_host
|
---|
2997 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2998 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2999 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
3000 |
|
---|
3001 |
|
---|
3002 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
3003 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
3004 | if test "${ac_cv_target+set}" = set; then
|
---|
3005 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3006 | else
|
---|
3007 | ac_cv_target_alias=$target_alias
|
---|
3008 | test "x$ac_cv_target_alias" = "x" &&
|
---|
3009 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
3010 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
3011 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
3012 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
3013 | { (exit 1); exit 1; }; }
|
---|
3014 |
|
---|
3015 | fi
|
---|
3016 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
3017 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
3018 | target=$ac_cv_target
|
---|
3019 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
3020 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
3021 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
3022 |
|
---|
3023 |
|
---|
3024 | # The aliases save the names the user supplied, while $host etc.
|
---|
3025 | # will get canonicalized.
|
---|
3026 | test -n "$target_alias" &&
|
---|
3027 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
3028 | NONENONEs,x,x, &&
|
---|
3029 | program_prefix=${target_alias}-
|
---|
3030 | # Find a good install program. We prefer a C program (faster),
|
---|
3031 | # so one script is as good as another. But avoid the broken or
|
---|
3032 | # incompatible versions:
|
---|
3033 | # SysV /etc/install, /usr/sbin/install
|
---|
3034 | # SunOS /usr/etc/install
|
---|
3035 | # IRIX /sbin/install
|
---|
3036 | # AIX /bin/install
|
---|
3037 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3038 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3039 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3040 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3041 | # OS/2's system install, which has a completely different semantic
|
---|
3042 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3043 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
3044 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
3045 | if test -z "$INSTALL"; then
|
---|
3046 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3047 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3048 | else
|
---|
3049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3050 | for as_dir in $PATH
|
---|
3051 | do
|
---|
3052 | IFS=$as_save_IFS
|
---|
3053 | test -z "$as_dir" && as_dir=.
|
---|
3054 | # Account for people who put trailing slashes in PATH elements.
|
---|
3055 | case $as_dir/ in
|
---|
3056 | ./ | .// | /cC/* | \
|
---|
3057 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3058 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
3059 | /usr/ucb/* ) ;;
|
---|
3060 | *)
|
---|
3061 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3062 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3063 | # by default.
|
---|
3064 | for ac_prog in ginstall scoinst install; do
|
---|
3065 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3066 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
3067 | if test $ac_prog = install &&
|
---|
3068 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3069 | # AIX install. It has an incompatible calling convention.
|
---|
3070 | :
|
---|
3071 | elif test $ac_prog = install &&
|
---|
3072 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3073 | # program-specific install script used by HP pwplus--don't use.
|
---|
3074 | :
|
---|
3075 | else
|
---|
3076 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3077 | break 3
|
---|
3078 | fi
|
---|
3079 | fi
|
---|
3080 | done
|
---|
3081 | done
|
---|
3082 | ;;
|
---|
3083 | esac
|
---|
3084 | done
|
---|
3085 |
|
---|
3086 |
|
---|
3087 | fi
|
---|
3088 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3089 | INSTALL=$ac_cv_path_install
|
---|
3090 | else
|
---|
3091 | # As a last resort, use the slow shell script. We don't cache a
|
---|
3092 | # path for INSTALL within a source directory, because that will
|
---|
3093 | # break other packages using the cache if that directory is
|
---|
3094 | # removed, or if the path is relative.
|
---|
3095 | INSTALL=$ac_install_sh
|
---|
3096 | fi
|
---|
3097 | fi
|
---|
3098 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
3099 | echo "${ECHO_T}$INSTALL" >&6
|
---|
3100 |
|
---|
3101 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3102 | # It thinks the first close brace ends the variable substitution.
|
---|
3103 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3104 |
|
---|
3105 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3106 |
|
---|
3107 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3108 |
|
---|
3109 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
3110 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
3111 | LN_S=$as_ln_s
|
---|
3112 | if test "$LN_S" = "ln -s"; then
|
---|
3113 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3114 | echo "${ECHO_T}yes" >&6
|
---|
3115 | else
|
---|
3116 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
3117 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
3118 | fi
|
---|
3119 |
|
---|
3120 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3121 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
3122 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
3123 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
3124 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3125 | else
|
---|
3126 | cat >conftest.make <<\_ACEOF
|
---|
3127 | all:
|
---|
3128 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
3129 | _ACEOF
|
---|
3130 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3131 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
3132 | if test -n "$ac_maketemp"; then
|
---|
3133 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
3134 | else
|
---|
3135 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
3136 | fi
|
---|
3137 | rm -f conftest.make
|
---|
3138 | fi
|
---|
3139 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
3140 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3141 | echo "${ECHO_T}yes" >&6
|
---|
3142 | SET_MAKE=
|
---|
3143 | else
|
---|
3144 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3145 | echo "${ECHO_T}no" >&6
|
---|
3146 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3147 | fi
|
---|
3148 |
|
---|
3149 | if test -n "$ac_tool_prefix"; then
|
---|
3150 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3151 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3152 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3154 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
3155 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3156 | else
|
---|
3157 | if test -n "$RANLIB"; then
|
---|
3158 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3159 | else
|
---|
3160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3161 | for as_dir in $PATH
|
---|
3162 | do
|
---|
3163 | IFS=$as_save_IFS
|
---|
3164 | test -z "$as_dir" && as_dir=.
|
---|
3165 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3167 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3169 | break 2
|
---|
3170 | fi
|
---|
3171 | done
|
---|
3172 | done
|
---|
3173 |
|
---|
3174 | fi
|
---|
3175 | fi
|
---|
3176 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3177 | if test -n "$RANLIB"; then
|
---|
3178 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
3179 | echo "${ECHO_T}$RANLIB" >&6
|
---|
3180 | else
|
---|
3181 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3182 | echo "${ECHO_T}no" >&6
|
---|
3183 | fi
|
---|
3184 |
|
---|
3185 | fi
|
---|
3186 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3187 | ac_ct_RANLIB=$RANLIB
|
---|
3188 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3189 | set dummy ranlib; ac_word=$2
|
---|
3190 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3192 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
3193 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3194 | else
|
---|
3195 | if test -n "$ac_ct_RANLIB"; then
|
---|
3196 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3197 | else
|
---|
3198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3199 | for as_dir in $PATH
|
---|
3200 | do
|
---|
3201 | IFS=$as_save_IFS
|
---|
3202 | test -z "$as_dir" && as_dir=.
|
---|
3203 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3204 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3205 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3207 | break 2
|
---|
3208 | fi
|
---|
3209 | done
|
---|
3210 | done
|
---|
3211 |
|
---|
3212 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
3213 | fi
|
---|
3214 | fi
|
---|
3215 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3216 | if test -n "$ac_ct_RANLIB"; then
|
---|
3217 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3218 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
3219 | else
|
---|
3220 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3221 | echo "${ECHO_T}no" >&6
|
---|
3222 | fi
|
---|
3223 |
|
---|
3224 | RANLIB=$ac_ct_RANLIB
|
---|
3225 | else
|
---|
3226 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3227 | fi
|
---|
3228 |
|
---|
3229 |
|
---|
3230 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
3231 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
3232 | arch_64bit=no
|
---|
3233 | case "$host_cpu" in
|
---|
3234 | x86_64) arch_64bit=yes ;;
|
---|
3235 | esac
|
---|
3236 |
|
---|
3237 | if test "$arch_64bit" = yes; then
|
---|
3238 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3239 | echo "${ECHO_T}yes" >&6
|
---|
3240 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3241 | COMPAT32BITFLAGS="-m32"
|
---|
3242 | fi
|
---|
3243 | else
|
---|
3244 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3245 | echo "${ECHO_T}no" >&6
|
---|
3246 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3247 | COMPAT32BITFLAGS=
|
---|
3248 | fi
|
---|
3249 | fi
|
---|
3250 | export COMPAT32BITFLAGS
|
---|
3251 |
|
---|
3252 |
|
---|
3253 |
|
---|
3254 | #moved CORBA MICO directory test to get version of MICO
|
---|
3255 | if test $USE_CORBA = 1; then
|
---|
3256 |
|
---|
3257 | if test $MICO_DIR = "default"; then
|
---|
3258 | #do something
|
---|
3259 | MICO_INC="-I packages/mico/mico/include"
|
---|
3260 | else
|
---|
3261 | #build the micotest program
|
---|
3262 | MICO_INC= ""
|
---|
3263 | if test $MICO_DIR != yes; then
|
---|
3264 | MICO_INC="-I $MICO_DIR"
|
---|
3265 | fi
|
---|
3266 | fi
|
---|
3267 |
|
---|
3268 | #get MICO_VER value
|
---|
3269 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
3270 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
3271 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
3272 | sh -c "rm micotest"
|
---|
3273 | sh -c "rm micotest.o"
|
---|
3274 |
|
---|
3275 | #do test of MICO_VER
|
---|
3276 | if test MICO_VER != 0; then
|
---|
3277 | cat >>confdefs.h <<\_ACEOF
|
---|
3278 | #define MICO_VER 1
|
---|
3279 | _ACEOF
|
---|
3280 |
|
---|
3281 |
|
---|
3282 | fi
|
---|
3283 | #end USE_CORBA test
|
---|
3284 | fi
|
---|
3285 |
|
---|
3286 |
|
---|
3287 | ac_ext=c
|
---|
3288 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3292 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3293 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
3294 | # On Suns, sometimes $CPP names a directory.
|
---|
3295 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3296 | CPP=
|
---|
3297 | fi
|
---|
3298 | if test -z "$CPP"; then
|
---|
3299 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3300 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3301 | else
|
---|
3302 | # Double quotes because CPP needs to be expanded
|
---|
3303 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3304 | do
|
---|
3305 | ac_preproc_ok=false
|
---|
3306 | for ac_c_preproc_warn_flag in '' yes
|
---|
3307 | do
|
---|
3308 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3309 | # with a fresh cross-compiler works.
|
---|
3310 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3311 | # <limits.h> exists even on freestanding compilers.
|
---|
3312 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3313 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3314 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3315 | /* confdefs.h. */
|
---|
3316 | _ACEOF
|
---|
3317 | cat confdefs.h >>conftest.$ac_ext
|
---|
3318 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3319 | /* end confdefs.h. */
|
---|
3320 | #ifdef __STDC__
|
---|
3321 | # include <limits.h>
|
---|
3322 | #else
|
---|
3323 | # include <assert.h>
|
---|
3324 | #endif
|
---|
3325 | Syntax error
|
---|
3326 | _ACEOF
|
---|
3327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3329 | ac_status=$?
|
---|
3330 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3331 | rm -f conftest.er1
|
---|
3332 | cat conftest.err >&5
|
---|
3333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3334 | (exit $ac_status); } >/dev/null; then
|
---|
3335 | if test -s conftest.err; then
|
---|
3336 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3338 | else
|
---|
3339 | ac_cpp_err=
|
---|
3340 | fi
|
---|
3341 | else
|
---|
3342 | ac_cpp_err=yes
|
---|
3343 | fi
|
---|
3344 | if test -z "$ac_cpp_err"; then
|
---|
3345 | :
|
---|
3346 | else
|
---|
3347 | echo "$as_me: failed program was:" >&5
|
---|
3348 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3349 |
|
---|
3350 | # Broken: fails on valid input.
|
---|
3351 | continue
|
---|
3352 | fi
|
---|
3353 | rm -f conftest.err conftest.$ac_ext
|
---|
3354 |
|
---|
3355 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3356 | # can be detected and how.
|
---|
3357 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3358 | /* confdefs.h. */
|
---|
3359 | _ACEOF
|
---|
3360 | cat confdefs.h >>conftest.$ac_ext
|
---|
3361 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3362 | /* end confdefs.h. */
|
---|
3363 | #include <ac_nonexistent.h>
|
---|
3364 | _ACEOF
|
---|
3365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3367 | ac_status=$?
|
---|
3368 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3369 | rm -f conftest.er1
|
---|
3370 | cat conftest.err >&5
|
---|
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3372 | (exit $ac_status); } >/dev/null; then
|
---|
3373 | if test -s conftest.err; then
|
---|
3374 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3376 | else
|
---|
3377 | ac_cpp_err=
|
---|
3378 | fi
|
---|
3379 | else
|
---|
3380 | ac_cpp_err=yes
|
---|
3381 | fi
|
---|
3382 | if test -z "$ac_cpp_err"; then
|
---|
3383 | # Broken: success on invalid input.
|
---|
3384 | continue
|
---|
3385 | else
|
---|
3386 | echo "$as_me: failed program was:" >&5
|
---|
3387 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3388 |
|
---|
3389 | # Passes both tests.
|
---|
3390 | ac_preproc_ok=:
|
---|
3391 | break
|
---|
3392 | fi
|
---|
3393 | rm -f conftest.err conftest.$ac_ext
|
---|
3394 |
|
---|
3395 | done
|
---|
3396 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3397 | rm -f conftest.err conftest.$ac_ext
|
---|
3398 | if $ac_preproc_ok; then
|
---|
3399 | break
|
---|
3400 | fi
|
---|
3401 |
|
---|
3402 | done
|
---|
3403 | ac_cv_prog_CPP=$CPP
|
---|
3404 |
|
---|
3405 | fi
|
---|
3406 | CPP=$ac_cv_prog_CPP
|
---|
3407 | else
|
---|
3408 | ac_cv_prog_CPP=$CPP
|
---|
3409 | fi
|
---|
3410 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
3411 | echo "${ECHO_T}$CPP" >&6
|
---|
3412 | ac_preproc_ok=false
|
---|
3413 | for ac_c_preproc_warn_flag in '' yes
|
---|
3414 | do
|
---|
3415 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3416 | # with a fresh cross-compiler works.
|
---|
3417 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3418 | # <limits.h> exists even on freestanding compilers.
|
---|
3419 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3420 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3421 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3422 | /* confdefs.h. */
|
---|
3423 | _ACEOF
|
---|
3424 | cat confdefs.h >>conftest.$ac_ext
|
---|
3425 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3426 | /* end confdefs.h. */
|
---|
3427 | #ifdef __STDC__
|
---|
3428 | # include <limits.h>
|
---|
3429 | #else
|
---|
3430 | # include <assert.h>
|
---|
3431 | #endif
|
---|
3432 | Syntax error
|
---|
3433 | _ACEOF
|
---|
3434 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3435 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3436 | ac_status=$?
|
---|
3437 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3438 | rm -f conftest.er1
|
---|
3439 | cat conftest.err >&5
|
---|
3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3441 | (exit $ac_status); } >/dev/null; then
|
---|
3442 | if test -s conftest.err; then
|
---|
3443 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3444 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3445 | else
|
---|
3446 | ac_cpp_err=
|
---|
3447 | fi
|
---|
3448 | else
|
---|
3449 | ac_cpp_err=yes
|
---|
3450 | fi
|
---|
3451 | if test -z "$ac_cpp_err"; then
|
---|
3452 | :
|
---|
3453 | else
|
---|
3454 | echo "$as_me: failed program was:" >&5
|
---|
3455 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3456 |
|
---|
3457 | # Broken: fails on valid input.
|
---|
3458 | continue
|
---|
3459 | fi
|
---|
3460 | rm -f conftest.err conftest.$ac_ext
|
---|
3461 |
|
---|
3462 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3463 | # can be detected and how.
|
---|
3464 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3465 | /* confdefs.h. */
|
---|
3466 | _ACEOF
|
---|
3467 | cat confdefs.h >>conftest.$ac_ext
|
---|
3468 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3469 | /* end confdefs.h. */
|
---|
3470 | #include <ac_nonexistent.h>
|
---|
3471 | _ACEOF
|
---|
3472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3474 | ac_status=$?
|
---|
3475 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3476 | rm -f conftest.er1
|
---|
3477 | cat conftest.err >&5
|
---|
3478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3479 | (exit $ac_status); } >/dev/null; then
|
---|
3480 | if test -s conftest.err; then
|
---|
3481 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3483 | else
|
---|
3484 | ac_cpp_err=
|
---|
3485 | fi
|
---|
3486 | else
|
---|
3487 | ac_cpp_err=yes
|
---|
3488 | fi
|
---|
3489 | if test -z "$ac_cpp_err"; then
|
---|
3490 | # Broken: success on invalid input.
|
---|
3491 | continue
|
---|
3492 | else
|
---|
3493 | echo "$as_me: failed program was:" >&5
|
---|
3494 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3495 |
|
---|
3496 | # Passes both tests.
|
---|
3497 | ac_preproc_ok=:
|
---|
3498 | break
|
---|
3499 | fi
|
---|
3500 | rm -f conftest.err conftest.$ac_ext
|
---|
3501 |
|
---|
3502 | done
|
---|
3503 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3504 | rm -f conftest.err conftest.$ac_ext
|
---|
3505 | if $ac_preproc_ok; then
|
---|
3506 | :
|
---|
3507 | else
|
---|
3508 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3509 | See \`config.log' for more details." >&5
|
---|
3510 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3511 | See \`config.log' for more details." >&2;}
|
---|
3512 | { (exit 1); exit 1; }; }
|
---|
3513 | fi
|
---|
3514 |
|
---|
3515 | ac_ext=c
|
---|
3516 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3520 |
|
---|
3521 |
|
---|
3522 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3523 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
3524 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
3525 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3526 | else
|
---|
3527 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
3528 | then ac_cv_prog_egrep='grep -E'
|
---|
3529 | else ac_cv_prog_egrep='egrep'
|
---|
3530 | fi
|
---|
3531 | fi
|
---|
3532 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
3533 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
3534 | EGREP=$ac_cv_prog_egrep
|
---|
3535 |
|
---|
3536 |
|
---|
3537 |
|
---|
3538 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
3539 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
3540 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3541 | /* confdefs.h. */
|
---|
3542 | _ACEOF
|
---|
3543 | cat confdefs.h >>conftest.$ac_ext
|
---|
3544 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3545 | /* end confdefs.h. */
|
---|
3546 | #ifdef _AIX
|
---|
3547 | yes
|
---|
3548 | #endif
|
---|
3549 |
|
---|
3550 | _ACEOF
|
---|
3551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3552 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
3553 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3554 | echo "${ECHO_T}yes" >&6
|
---|
3555 | cat >>confdefs.h <<\_ACEOF
|
---|
3556 | #define _ALL_SOURCE 1
|
---|
3557 | _ACEOF
|
---|
3558 |
|
---|
3559 | else
|
---|
3560 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3561 | echo "${ECHO_T}no" >&6
|
---|
3562 | fi
|
---|
3563 | rm -f conftest*
|
---|
3564 |
|
---|
3565 |
|
---|
3566 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
3567 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
3568 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
3569 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3570 | else
|
---|
3571 | ac_func_search_save_LIBS=$LIBS
|
---|
3572 | ac_cv_search_strerror=no
|
---|
3573 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3574 | /* confdefs.h. */
|
---|
3575 | _ACEOF
|
---|
3576 | cat confdefs.h >>conftest.$ac_ext
|
---|
3577 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3578 | /* end confdefs.h. */
|
---|
3579 |
|
---|
3580 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3581 | #ifdef __cplusplus
|
---|
3582 | extern "C"
|
---|
3583 | #endif
|
---|
3584 | /* We use char because int might match the return type of a gcc2
|
---|
3585 | builtin and then its argument prototype would still apply. */
|
---|
3586 | char strerror ();
|
---|
3587 | int
|
---|
3588 | main ()
|
---|
3589 | {
|
---|
3590 | strerror ();
|
---|
3591 | ;
|
---|
3592 | return 0;
|
---|
3593 | }
|
---|
3594 | _ACEOF
|
---|
3595 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3597 | (eval $ac_link) 2>conftest.er1
|
---|
3598 | ac_status=$?
|
---|
3599 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3600 | rm -f conftest.er1
|
---|
3601 | cat conftest.err >&5
|
---|
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3603 | (exit $ac_status); } &&
|
---|
3604 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3605 | || test ! -s conftest.err'
|
---|
3606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3607 | (eval $ac_try) 2>&5
|
---|
3608 | ac_status=$?
|
---|
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3610 | (exit $ac_status); }; } &&
|
---|
3611 | { ac_try='test -s conftest$ac_exeext'
|
---|
3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3613 | (eval $ac_try) 2>&5
|
---|
3614 | ac_status=$?
|
---|
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3616 | (exit $ac_status); }; }; then
|
---|
3617 | ac_cv_search_strerror="none required"
|
---|
3618 | else
|
---|
3619 | echo "$as_me: failed program was:" >&5
|
---|
3620 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3621 |
|
---|
3622 | fi
|
---|
3623 | rm -f conftest.err conftest.$ac_objext \
|
---|
3624 | conftest$ac_exeext conftest.$ac_ext
|
---|
3625 | if test "$ac_cv_search_strerror" = no; then
|
---|
3626 | for ac_lib in cposix; do
|
---|
3627 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
3628 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3629 | /* confdefs.h. */
|
---|
3630 | _ACEOF
|
---|
3631 | cat confdefs.h >>conftest.$ac_ext
|
---|
3632 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3633 | /* end confdefs.h. */
|
---|
3634 |
|
---|
3635 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3636 | #ifdef __cplusplus
|
---|
3637 | extern "C"
|
---|
3638 | #endif
|
---|
3639 | /* We use char because int might match the return type of a gcc2
|
---|
3640 | builtin and then its argument prototype would still apply. */
|
---|
3641 | char strerror ();
|
---|
3642 | int
|
---|
3643 | main ()
|
---|
3644 | {
|
---|
3645 | strerror ();
|
---|
3646 | ;
|
---|
3647 | return 0;
|
---|
3648 | }
|
---|
3649 | _ACEOF
|
---|
3650 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3652 | (eval $ac_link) 2>conftest.er1
|
---|
3653 | ac_status=$?
|
---|
3654 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3655 | rm -f conftest.er1
|
---|
3656 | cat conftest.err >&5
|
---|
3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3658 | (exit $ac_status); } &&
|
---|
3659 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3660 | || test ! -s conftest.err'
|
---|
3661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3662 | (eval $ac_try) 2>&5
|
---|
3663 | ac_status=$?
|
---|
3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3665 | (exit $ac_status); }; } &&
|
---|
3666 | { ac_try='test -s conftest$ac_exeext'
|
---|
3667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3668 | (eval $ac_try) 2>&5
|
---|
3669 | ac_status=$?
|
---|
3670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3671 | (exit $ac_status); }; }; then
|
---|
3672 | ac_cv_search_strerror="-l$ac_lib"
|
---|
3673 | break
|
---|
3674 | else
|
---|
3675 | echo "$as_me: failed program was:" >&5
|
---|
3676 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3677 |
|
---|
3678 | fi
|
---|
3679 | rm -f conftest.err conftest.$ac_objext \
|
---|
3680 | conftest$ac_exeext conftest.$ac_ext
|
---|
3681 | done
|
---|
3682 | fi
|
---|
3683 | LIBS=$ac_func_search_save_LIBS
|
---|
3684 | fi
|
---|
3685 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
3686 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
3687 | if test "$ac_cv_search_strerror" != no; then
|
---|
3688 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
3689 |
|
---|
3690 | fi
|
---|
3691 |
|
---|
3692 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3693 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3694 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3695 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3696 | else
|
---|
3697 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3698 | /* confdefs.h. */
|
---|
3699 | _ACEOF
|
---|
3700 | cat confdefs.h >>conftest.$ac_ext
|
---|
3701 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3702 | /* end confdefs.h. */
|
---|
3703 | #include <stdlib.h>
|
---|
3704 | #include <stdarg.h>
|
---|
3705 | #include <string.h>
|
---|
3706 | #include <float.h>
|
---|
3707 |
|
---|
3708 | int
|
---|
3709 | main ()
|
---|
3710 | {
|
---|
3711 |
|
---|
3712 | ;
|
---|
3713 | return 0;
|
---|
3714 | }
|
---|
3715 | _ACEOF
|
---|
3716 | rm -f conftest.$ac_objext
|
---|
3717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3718 | (eval $ac_compile) 2>conftest.er1
|
---|
3719 | ac_status=$?
|
---|
3720 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3721 | rm -f conftest.er1
|
---|
3722 | cat conftest.err >&5
|
---|
3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3724 | (exit $ac_status); } &&
|
---|
3725 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3726 | || test ! -s conftest.err'
|
---|
3727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3728 | (eval $ac_try) 2>&5
|
---|
3729 | ac_status=$?
|
---|
3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3731 | (exit $ac_status); }; } &&
|
---|
3732 | { ac_try='test -s conftest.$ac_objext'
|
---|
3733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3734 | (eval $ac_try) 2>&5
|
---|
3735 | ac_status=$?
|
---|
3736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3737 | (exit $ac_status); }; }; then
|
---|
3738 | ac_cv_header_stdc=yes
|
---|
3739 | else
|
---|
3740 | echo "$as_me: failed program was:" >&5
|
---|
3741 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3742 |
|
---|
3743 | ac_cv_header_stdc=no
|
---|
3744 | fi
|
---|
3745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3746 |
|
---|
3747 | if test $ac_cv_header_stdc = yes; then
|
---|
3748 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3749 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3750 | /* confdefs.h. */
|
---|
3751 | _ACEOF
|
---|
3752 | cat confdefs.h >>conftest.$ac_ext
|
---|
3753 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3754 | /* end confdefs.h. */
|
---|
3755 | #include <string.h>
|
---|
3756 |
|
---|
3757 | _ACEOF
|
---|
3758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3759 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3760 | :
|
---|
3761 | else
|
---|
3762 | ac_cv_header_stdc=no
|
---|
3763 | fi
|
---|
3764 | rm -f conftest*
|
---|
3765 |
|
---|
3766 | fi
|
---|
3767 |
|
---|
3768 | if test $ac_cv_header_stdc = yes; then
|
---|
3769 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3770 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3771 | /* confdefs.h. */
|
---|
3772 | _ACEOF
|
---|
3773 | cat confdefs.h >>conftest.$ac_ext
|
---|
3774 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3775 | /* end confdefs.h. */
|
---|
3776 | #include <stdlib.h>
|
---|
3777 |
|
---|
3778 | _ACEOF
|
---|
3779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3780 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3781 | :
|
---|
3782 | else
|
---|
3783 | ac_cv_header_stdc=no
|
---|
3784 | fi
|
---|
3785 | rm -f conftest*
|
---|
3786 |
|
---|
3787 | fi
|
---|
3788 |
|
---|
3789 | if test $ac_cv_header_stdc = yes; then
|
---|
3790 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3791 | if test "$cross_compiling" = yes; then
|
---|
3792 | :
|
---|
3793 | else
|
---|
3794 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3795 | /* confdefs.h. */
|
---|
3796 | _ACEOF
|
---|
3797 | cat confdefs.h >>conftest.$ac_ext
|
---|
3798 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3799 | /* end confdefs.h. */
|
---|
3800 | #include <ctype.h>
|
---|
3801 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3802 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3803 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3804 | #else
|
---|
3805 | # define ISLOWER(c) \
|
---|
3806 | (('a' <= (c) && (c) <= 'i') \
|
---|
3807 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3808 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3809 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3810 | #endif
|
---|
3811 |
|
---|
3812 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3813 | int
|
---|
3814 | main ()
|
---|
3815 | {
|
---|
3816 | int i;
|
---|
3817 | for (i = 0; i < 256; i++)
|
---|
3818 | if (XOR (islower (i), ISLOWER (i))
|
---|
3819 | || toupper (i) != TOUPPER (i))
|
---|
3820 | exit(2);
|
---|
3821 | exit (0);
|
---|
3822 | }
|
---|
3823 | _ACEOF
|
---|
3824 | rm -f conftest$ac_exeext
|
---|
3825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3826 | (eval $ac_link) 2>&5
|
---|
3827 | ac_status=$?
|
---|
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3829 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3831 | (eval $ac_try) 2>&5
|
---|
3832 | ac_status=$?
|
---|
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3834 | (exit $ac_status); }; }; then
|
---|
3835 | :
|
---|
3836 | else
|
---|
3837 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3838 | echo "$as_me: failed program was:" >&5
|
---|
3839 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3840 |
|
---|
3841 | ( exit $ac_status )
|
---|
3842 | ac_cv_header_stdc=no
|
---|
3843 | fi
|
---|
3844 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3845 | fi
|
---|
3846 | fi
|
---|
3847 | fi
|
---|
3848 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3849 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3850 | if test $ac_cv_header_stdc = yes; then
|
---|
3851 |
|
---|
3852 | cat >>confdefs.h <<\_ACEOF
|
---|
3853 | #define STDC_HEADERS 1
|
---|
3854 | _ACEOF
|
---|
3855 |
|
---|
3856 | fi
|
---|
3857 |
|
---|
3858 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3859 |
|
---|
3860 |
|
---|
3861 |
|
---|
3862 |
|
---|
3863 |
|
---|
3864 |
|
---|
3865 |
|
---|
3866 |
|
---|
3867 |
|
---|
3868 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3869 | inttypes.h stdint.h unistd.h
|
---|
3870 | do
|
---|
3871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3872 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3875 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3876 | else
|
---|
3877 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3878 | /* confdefs.h. */
|
---|
3879 | _ACEOF
|
---|
3880 | cat confdefs.h >>conftest.$ac_ext
|
---|
3881 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3882 | /* end confdefs.h. */
|
---|
3883 | $ac_includes_default
|
---|
3884 |
|
---|
3885 | #include <$ac_header>
|
---|
3886 | _ACEOF
|
---|
3887 | rm -f conftest.$ac_objext
|
---|
3888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3889 | (eval $ac_compile) 2>conftest.er1
|
---|
3890 | ac_status=$?
|
---|
3891 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3892 | rm -f conftest.er1
|
---|
3893 | cat conftest.err >&5
|
---|
3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3895 | (exit $ac_status); } &&
|
---|
3896 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3897 | || test ! -s conftest.err'
|
---|
3898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3899 | (eval $ac_try) 2>&5
|
---|
3900 | ac_status=$?
|
---|
3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3902 | (exit $ac_status); }; } &&
|
---|
3903 | { ac_try='test -s conftest.$ac_objext'
|
---|
3904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3905 | (eval $ac_try) 2>&5
|
---|
3906 | ac_status=$?
|
---|
3907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3908 | (exit $ac_status); }; }; then
|
---|
3909 | eval "$as_ac_Header=yes"
|
---|
3910 | else
|
---|
3911 | echo "$as_me: failed program was:" >&5
|
---|
3912 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3913 |
|
---|
3914 | eval "$as_ac_Header=no"
|
---|
3915 | fi
|
---|
3916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3917 | fi
|
---|
3918 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3919 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3920 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3921 | cat >>confdefs.h <<_ACEOF
|
---|
3922 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3923 | _ACEOF
|
---|
3924 |
|
---|
3925 | fi
|
---|
3926 |
|
---|
3927 | done
|
---|
3928 |
|
---|
3929 |
|
---|
3930 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3931 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3932 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3933 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3934 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3935 | fi
|
---|
3936 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3937 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3938 | else
|
---|
3939 | # Is the header compilable?
|
---|
3940 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
3941 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
3942 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3943 | /* confdefs.h. */
|
---|
3944 | _ACEOF
|
---|
3945 | cat confdefs.h >>conftest.$ac_ext
|
---|
3946 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3947 | /* end confdefs.h. */
|
---|
3948 | $ac_includes_default
|
---|
3949 | #include <minix/config.h>
|
---|
3950 | _ACEOF
|
---|
3951 | rm -f conftest.$ac_objext
|
---|
3952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3953 | (eval $ac_compile) 2>conftest.er1
|
---|
3954 | ac_status=$?
|
---|
3955 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3956 | rm -f conftest.er1
|
---|
3957 | cat conftest.err >&5
|
---|
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3959 | (exit $ac_status); } &&
|
---|
3960 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3961 | || test ! -s conftest.err'
|
---|
3962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3963 | (eval $ac_try) 2>&5
|
---|
3964 | ac_status=$?
|
---|
3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3966 | (exit $ac_status); }; } &&
|
---|
3967 | { ac_try='test -s conftest.$ac_objext'
|
---|
3968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3969 | (eval $ac_try) 2>&5
|
---|
3970 | ac_status=$?
|
---|
3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3972 | (exit $ac_status); }; }; then
|
---|
3973 | ac_header_compiler=yes
|
---|
3974 | else
|
---|
3975 | echo "$as_me: failed program was:" >&5
|
---|
3976 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3977 |
|
---|
3978 | ac_header_compiler=no
|
---|
3979 | fi
|
---|
3980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3981 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
3982 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
3983 |
|
---|
3984 | # Is the header present?
|
---|
3985 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
3986 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
3987 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3988 | /* confdefs.h. */
|
---|
3989 | _ACEOF
|
---|
3990 | cat confdefs.h >>conftest.$ac_ext
|
---|
3991 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3992 | /* end confdefs.h. */
|
---|
3993 | #include <minix/config.h>
|
---|
3994 | _ACEOF
|
---|
3995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3997 | ac_status=$?
|
---|
3998 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3999 | rm -f conftest.er1
|
---|
4000 | cat conftest.err >&5
|
---|
4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4002 | (exit $ac_status); } >/dev/null; then
|
---|
4003 | if test -s conftest.err; then
|
---|
4004 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4006 | else
|
---|
4007 | ac_cpp_err=
|
---|
4008 | fi
|
---|
4009 | else
|
---|
4010 | ac_cpp_err=yes
|
---|
4011 | fi
|
---|
4012 | if test -z "$ac_cpp_err"; then
|
---|
4013 | ac_header_preproc=yes
|
---|
4014 | else
|
---|
4015 | echo "$as_me: failed program was:" >&5
|
---|
4016 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4017 |
|
---|
4018 | ac_header_preproc=no
|
---|
4019 | fi
|
---|
4020 | rm -f conftest.err conftest.$ac_ext
|
---|
4021 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4022 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
4023 |
|
---|
4024 | # So? What about this header?
|
---|
4025 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
4026 | yes:no: )
|
---|
4027 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4028 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4029 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
4030 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
4031 | ac_header_preproc=yes
|
---|
4032 | ;;
|
---|
4033 | no:yes:* )
|
---|
4034 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
4035 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
4036 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
4037 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
4038 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
4039 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
4040 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
4041 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
4042 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
4043 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
4044 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
4045 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
4046 | (
|
---|
4047 | cat <<\_ASBOX
|
---|
4048 | ## ------------------------------------------ ##
|
---|
4049 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
4050 | ## ------------------------------------------ ##
|
---|
4051 | _ASBOX
|
---|
4052 | ) |
|
---|
4053 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
4054 | ;;
|
---|
4055 | esac
|
---|
4056 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
4057 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
4058 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4059 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4060 | else
|
---|
4061 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
4062 | fi
|
---|
4063 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
4064 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
4065 |
|
---|
4066 | fi
|
---|
4067 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
4068 | MINIX=yes
|
---|
4069 | else
|
---|
4070 | MINIX=
|
---|
4071 | fi
|
---|
4072 |
|
---|
4073 |
|
---|
4074 | if test "$MINIX" = yes; then
|
---|
4075 |
|
---|
4076 | cat >>confdefs.h <<\_ACEOF
|
---|
4077 | #define _POSIX_SOURCE 1
|
---|
4078 | _ACEOF
|
---|
4079 |
|
---|
4080 |
|
---|
4081 | cat >>confdefs.h <<\_ACEOF
|
---|
4082 | #define _POSIX_1_SOURCE 2
|
---|
4083 | _ACEOF
|
---|
4084 |
|
---|
4085 |
|
---|
4086 | cat >>confdefs.h <<\_ACEOF
|
---|
4087 | #define _MINIX 1
|
---|
4088 | _ACEOF
|
---|
4089 |
|
---|
4090 | fi
|
---|
4091 |
|
---|
4092 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4093 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
4094 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
4095 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4096 | else
|
---|
4097 | ac_cv_prog_cc_stdc=no
|
---|
4098 | ac_save_CFLAGS="$CFLAGS"
|
---|
4099 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4100 | # breaks some systems' header files.
|
---|
4101 | # AIX -qlanglvl=ansi
|
---|
4102 | # Ultrix and OSF/1 -std1
|
---|
4103 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4104 | # SVR4 -Xc
|
---|
4105 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4106 | do
|
---|
4107 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4108 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4109 | /* confdefs.h. */
|
---|
4110 | _ACEOF
|
---|
4111 | cat confdefs.h >>conftest.$ac_ext
|
---|
4112 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4113 | /* end confdefs.h. */
|
---|
4114 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4115 | choke me
|
---|
4116 | #endif
|
---|
4117 |
|
---|
4118 | int
|
---|
4119 | main ()
|
---|
4120 | {
|
---|
4121 | int test (int i, double x);
|
---|
4122 | struct s1 {int (*f) (int a);};
|
---|
4123 | struct s2 {int (*f) (double a);};
|
---|
4124 | ;
|
---|
4125 | return 0;
|
---|
4126 | }
|
---|
4127 | _ACEOF
|
---|
4128 | rm -f conftest.$ac_objext
|
---|
4129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4130 | (eval $ac_compile) 2>conftest.er1
|
---|
4131 | ac_status=$?
|
---|
4132 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4133 | rm -f conftest.er1
|
---|
4134 | cat conftest.err >&5
|
---|
4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4136 | (exit $ac_status); } &&
|
---|
4137 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4138 | || test ! -s conftest.err'
|
---|
4139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4140 | (eval $ac_try) 2>&5
|
---|
4141 | ac_status=$?
|
---|
4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4143 | (exit $ac_status); }; } &&
|
---|
4144 | { ac_try='test -s conftest.$ac_objext'
|
---|
4145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4146 | (eval $ac_try) 2>&5
|
---|
4147 | ac_status=$?
|
---|
4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4149 | (exit $ac_status); }; }; then
|
---|
4150 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4151 | else
|
---|
4152 | echo "$as_me: failed program was:" >&5
|
---|
4153 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4154 |
|
---|
4155 | fi
|
---|
4156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4157 | done
|
---|
4158 | CFLAGS="$ac_save_CFLAGS"
|
---|
4159 |
|
---|
4160 | fi
|
---|
4161 |
|
---|
4162 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4163 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
4164 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4165 | x|xno) ;;
|
---|
4166 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4167 | esac
|
---|
4168 |
|
---|
4169 |
|
---|
4170 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
4171 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
4172 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4173 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
4174 | echo "${ECHO_T}yes" >&6
|
---|
4175 | cat >>confdefs.h <<\_ACEOF
|
---|
4176 | #define PROTOTYPES 1
|
---|
4177 | _ACEOF
|
---|
4178 |
|
---|
4179 | U= ANSI2KNR=
|
---|
4180 | else
|
---|
4181 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4182 | echo "${ECHO_T}no" >&6
|
---|
4183 | U=_ ANSI2KNR=ansi2knr
|
---|
4184 | fi
|
---|
4185 |
|
---|
4186 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
4187 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
4188 | if test "${ac_cv_c_const+set}" = set; then
|
---|
4189 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4190 | else
|
---|
4191 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4192 | /* confdefs.h. */
|
---|
4193 | _ACEOF
|
---|
4194 | cat confdefs.h >>conftest.$ac_ext
|
---|
4195 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4196 | /* end confdefs.h. */
|
---|
4197 |
|
---|
4198 | int
|
---|
4199 | main ()
|
---|
4200 | {
|
---|
4201 | /* FIXME: Include the comments suggested by Paul. */
|
---|
4202 | #ifndef __cplusplus
|
---|
4203 | /* Ultrix mips cc rejects this. */
|
---|
4204 | typedef int charset[2];
|
---|
4205 | const charset x;
|
---|
4206 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4207 | char const *const *ccp;
|
---|
4208 | char **p;
|
---|
4209 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4210 | struct point {int x, y;};
|
---|
4211 | static struct point const zero = {0,0};
|
---|
4212 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4213 | It does not let you subtract one const X* pointer from another in
|
---|
4214 | an arm of an if-expression whose if-part is not a constant
|
---|
4215 | expression */
|
---|
4216 | const char *g = "string";
|
---|
4217 | ccp = &g + (g ? g-g : 0);
|
---|
4218 | /* HPUX 7.0 cc rejects these. */
|
---|
4219 | ++ccp;
|
---|
4220 | p = (char**) ccp;
|
---|
4221 | ccp = (char const *const *) p;
|
---|
4222 | { /* SCO 3.2v4 cc rejects this. */
|
---|
4223 | char *t;
|
---|
4224 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4225 |
|
---|
4226 | *t++ = 0;
|
---|
4227 | }
|
---|
4228 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4229 | int x[] = {25, 17};
|
---|
4230 | const int *foo = &x[0];
|
---|
4231 | ++foo;
|
---|
4232 | }
|
---|
4233 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4234 | typedef const int *iptr;
|
---|
4235 | iptr p = 0;
|
---|
4236 | ++p;
|
---|
4237 | }
|
---|
4238 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
4239 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4240 | struct s { int j; const int *ap[3]; };
|
---|
4241 | struct s *b; b->j = 5;
|
---|
4242 | }
|
---|
4243 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4244 | const int foo = 10;
|
---|
4245 | }
|
---|
4246 | #endif
|
---|
4247 |
|
---|
4248 | ;
|
---|
4249 | return 0;
|
---|
4250 | }
|
---|
4251 | _ACEOF
|
---|
4252 | rm -f conftest.$ac_objext
|
---|
4253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4254 | (eval $ac_compile) 2>conftest.er1
|
---|
4255 | ac_status=$?
|
---|
4256 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4257 | rm -f conftest.er1
|
---|
4258 | cat conftest.err >&5
|
---|
4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4260 | (exit $ac_status); } &&
|
---|
4261 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4262 | || test ! -s conftest.err'
|
---|
4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4264 | (eval $ac_try) 2>&5
|
---|
4265 | ac_status=$?
|
---|
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4267 | (exit $ac_status); }; } &&
|
---|
4268 | { ac_try='test -s conftest.$ac_objext'
|
---|
4269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4270 | (eval $ac_try) 2>&5
|
---|
4271 | ac_status=$?
|
---|
4272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4273 | (exit $ac_status); }; }; then
|
---|
4274 | ac_cv_c_const=yes
|
---|
4275 | else
|
---|
4276 | echo "$as_me: failed program was:" >&5
|
---|
4277 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4278 |
|
---|
4279 | ac_cv_c_const=no
|
---|
4280 | fi
|
---|
4281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4282 | fi
|
---|
4283 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
4284 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
4285 | if test $ac_cv_c_const = no; then
|
---|
4286 |
|
---|
4287 | cat >>confdefs.h <<\_ACEOF
|
---|
4288 | #define const
|
---|
4289 | _ACEOF
|
---|
4290 |
|
---|
4291 | fi
|
---|
4292 |
|
---|
4293 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
4294 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
4295 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
4296 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4297 | else
|
---|
4298 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4299 | /* confdefs.h. */
|
---|
4300 | _ACEOF
|
---|
4301 | cat confdefs.h >>conftest.$ac_ext
|
---|
4302 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4303 | /* end confdefs.h. */
|
---|
4304 | $ac_includes_default
|
---|
4305 | int
|
---|
4306 | main ()
|
---|
4307 | {
|
---|
4308 | if ((off_t *) 0)
|
---|
4309 | return 0;
|
---|
4310 | if (sizeof (off_t))
|
---|
4311 | return 0;
|
---|
4312 | ;
|
---|
4313 | return 0;
|
---|
4314 | }
|
---|
4315 | _ACEOF
|
---|
4316 | rm -f conftest.$ac_objext
|
---|
4317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4318 | (eval $ac_compile) 2>conftest.er1
|
---|
4319 | ac_status=$?
|
---|
4320 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4321 | rm -f conftest.er1
|
---|
4322 | cat conftest.err >&5
|
---|
4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4324 | (exit $ac_status); } &&
|
---|
4325 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4326 | || test ! -s conftest.err'
|
---|
4327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4328 | (eval $ac_try) 2>&5
|
---|
4329 | ac_status=$?
|
---|
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4331 | (exit $ac_status); }; } &&
|
---|
4332 | { ac_try='test -s conftest.$ac_objext'
|
---|
4333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4334 | (eval $ac_try) 2>&5
|
---|
4335 | ac_status=$?
|
---|
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4337 | (exit $ac_status); }; }; then
|
---|
4338 | ac_cv_type_off_t=yes
|
---|
4339 | else
|
---|
4340 | echo "$as_me: failed program was:" >&5
|
---|
4341 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4342 |
|
---|
4343 | ac_cv_type_off_t=no
|
---|
4344 | fi
|
---|
4345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4346 | fi
|
---|
4347 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
4348 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
4349 | if test $ac_cv_type_off_t = yes; then
|
---|
4350 | :
|
---|
4351 | else
|
---|
4352 |
|
---|
4353 | cat >>confdefs.h <<_ACEOF
|
---|
4354 | #define off_t long
|
---|
4355 | _ACEOF
|
---|
4356 |
|
---|
4357 | fi
|
---|
4358 |
|
---|
4359 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
4360 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
4361 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
4362 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4363 | else
|
---|
4364 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4365 | /* confdefs.h. */
|
---|
4366 | _ACEOF
|
---|
4367 | cat confdefs.h >>conftest.$ac_ext
|
---|
4368 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4369 | /* end confdefs.h. */
|
---|
4370 | $ac_includes_default
|
---|
4371 | int
|
---|
4372 | main ()
|
---|
4373 | {
|
---|
4374 | if ((size_t *) 0)
|
---|
4375 | return 0;
|
---|
4376 | if (sizeof (size_t))
|
---|
4377 | return 0;
|
---|
4378 | ;
|
---|
4379 | return 0;
|
---|
4380 | }
|
---|
4381 | _ACEOF
|
---|
4382 | rm -f conftest.$ac_objext
|
---|
4383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4384 | (eval $ac_compile) 2>conftest.er1
|
---|
4385 | ac_status=$?
|
---|
4386 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4387 | rm -f conftest.er1
|
---|
4388 | cat conftest.err >&5
|
---|
4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4390 | (exit $ac_status); } &&
|
---|
4391 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4392 | || test ! -s conftest.err'
|
---|
4393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4394 | (eval $ac_try) 2>&5
|
---|
4395 | ac_status=$?
|
---|
4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4397 | (exit $ac_status); }; } &&
|
---|
4398 | { ac_try='test -s conftest.$ac_objext'
|
---|
4399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4400 | (eval $ac_try) 2>&5
|
---|
4401 | ac_status=$?
|
---|
4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4403 | (exit $ac_status); }; }; then
|
---|
4404 | ac_cv_type_size_t=yes
|
---|
4405 | else
|
---|
4406 | echo "$as_me: failed program was:" >&5
|
---|
4407 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4408 |
|
---|
4409 | ac_cv_type_size_t=no
|
---|
4410 | fi
|
---|
4411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4412 | fi
|
---|
4413 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
4414 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
4415 | if test $ac_cv_type_size_t = yes; then
|
---|
4416 | :
|
---|
4417 | else
|
---|
4418 |
|
---|
4419 | cat >>confdefs.h <<_ACEOF
|
---|
4420 | #define size_t unsigned
|
---|
4421 | _ACEOF
|
---|
4422 |
|
---|
4423 | fi
|
---|
4424 |
|
---|
4425 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4426 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
4427 | if test "${ac_cv_header_time+set}" = set; then
|
---|
4428 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4429 | else
|
---|
4430 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4431 | /* confdefs.h. */
|
---|
4432 | _ACEOF
|
---|
4433 | cat confdefs.h >>conftest.$ac_ext
|
---|
4434 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4435 | /* end confdefs.h. */
|
---|
4436 | #include <sys/types.h>
|
---|
4437 | #include <sys/time.h>
|
---|
4438 | #include <time.h>
|
---|
4439 |
|
---|
4440 | int
|
---|
4441 | main ()
|
---|
4442 | {
|
---|
4443 | if ((struct tm *) 0)
|
---|
4444 | return 0;
|
---|
4445 | ;
|
---|
4446 | return 0;
|
---|
4447 | }
|
---|
4448 | _ACEOF
|
---|
4449 | rm -f conftest.$ac_objext
|
---|
4450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4451 | (eval $ac_compile) 2>conftest.er1
|
---|
4452 | ac_status=$?
|
---|
4453 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4454 | rm -f conftest.er1
|
---|
4455 | cat conftest.err >&5
|
---|
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4457 | (exit $ac_status); } &&
|
---|
4458 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4459 | || test ! -s conftest.err'
|
---|
4460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4461 | (eval $ac_try) 2>&5
|
---|
4462 | ac_status=$?
|
---|
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4464 | (exit $ac_status); }; } &&
|
---|
4465 | { ac_try='test -s conftest.$ac_objext'
|
---|
4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4467 | (eval $ac_try) 2>&5
|
---|
4468 | ac_status=$?
|
---|
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4470 | (exit $ac_status); }; }; then
|
---|
4471 | ac_cv_header_time=yes
|
---|
4472 | else
|
---|
4473 | echo "$as_me: failed program was:" >&5
|
---|
4474 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4475 |
|
---|
4476 | ac_cv_header_time=no
|
---|
4477 | fi
|
---|
4478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4479 | fi
|
---|
4480 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
4481 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
4482 | if test $ac_cv_header_time = yes; then
|
---|
4483 |
|
---|
4484 | cat >>confdefs.h <<\_ACEOF
|
---|
4485 | #define TIME_WITH_SYS_TIME 1
|
---|
4486 | _ACEOF
|
---|
4487 |
|
---|
4488 | fi
|
---|
4489 |
|
---|
4490 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4491 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
4492 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
4493 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4494 | else
|
---|
4495 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4496 | /* confdefs.h. */
|
---|
4497 | _ACEOF
|
---|
4498 | cat confdefs.h >>conftest.$ac_ext
|
---|
4499 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4500 | /* end confdefs.h. */
|
---|
4501 | #include <sys/types.h>
|
---|
4502 | #include <time.h>
|
---|
4503 |
|
---|
4504 | int
|
---|
4505 | main ()
|
---|
4506 | {
|
---|
4507 | struct tm *tp; tp->tm_sec;
|
---|
4508 | ;
|
---|
4509 | return 0;
|
---|
4510 | }
|
---|
4511 | _ACEOF
|
---|
4512 | rm -f conftest.$ac_objext
|
---|
4513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4514 | (eval $ac_compile) 2>conftest.er1
|
---|
4515 | ac_status=$?
|
---|
4516 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4517 | rm -f conftest.er1
|
---|
4518 | cat conftest.err >&5
|
---|
4519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4520 | (exit $ac_status); } &&
|
---|
4521 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4522 | || test ! -s conftest.err'
|
---|
4523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4524 | (eval $ac_try) 2>&5
|
---|
4525 | ac_status=$?
|
---|
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4527 | (exit $ac_status); }; } &&
|
---|
4528 | { ac_try='test -s conftest.$ac_objext'
|
---|
4529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4530 | (eval $ac_try) 2>&5
|
---|
4531 | ac_status=$?
|
---|
4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4533 | (exit $ac_status); }; }; then
|
---|
4534 | ac_cv_struct_tm=time.h
|
---|
4535 | else
|
---|
4536 | echo "$as_me: failed program was:" >&5
|
---|
4537 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4538 |
|
---|
4539 | ac_cv_struct_tm=sys/time.h
|
---|
4540 | fi
|
---|
4541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4542 | fi
|
---|
4543 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
4544 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
4545 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4546 |
|
---|
4547 | cat >>confdefs.h <<\_ACEOF
|
---|
4548 | #define TM_IN_SYS_TIME 1
|
---|
4549 | _ACEOF
|
---|
4550 |
|
---|
4551 | fi
|
---|
4552 |
|
---|
4553 |
|
---|
4554 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
4555 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4556 | /* confdefs.h. */
|
---|
4557 | _ACEOF
|
---|
4558 | cat confdefs.h >>conftest.$ac_ext
|
---|
4559 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4560 | /* end confdefs.h. */
|
---|
4561 | #include <stdio.h>
|
---|
4562 |
|
---|
4563 | int
|
---|
4564 | main ()
|
---|
4565 | {
|
---|
4566 | FILE *rubbish = popen("yes", "r");
|
---|
4567 | ;
|
---|
4568 | return 0;
|
---|
4569 | }
|
---|
4570 | _ACEOF
|
---|
4571 | rm -f conftest.$ac_objext
|
---|
4572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4573 | (eval $ac_compile) 2>conftest.er1
|
---|
4574 | ac_status=$?
|
---|
4575 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4576 | rm -f conftest.er1
|
---|
4577 | cat conftest.err >&5
|
---|
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4579 | (exit $ac_status); } &&
|
---|
4580 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4581 | || test ! -s conftest.err'
|
---|
4582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4583 | (eval $ac_try) 2>&5
|
---|
4584 | ac_status=$?
|
---|
4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4586 | (exit $ac_status); }; } &&
|
---|
4587 | { ac_try='test -s conftest.$ac_objext'
|
---|
4588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4589 | (eval $ac_try) 2>&5
|
---|
4590 | ac_status=$?
|
---|
4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4592 | (exit $ac_status); }; }; then
|
---|
4593 | :
|
---|
4594 | else
|
---|
4595 | echo "$as_me: failed program was:" >&5
|
---|
4596 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4597 |
|
---|
4598 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
4599 | fi
|
---|
4600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4601 | fi
|
---|
4602 |
|
---|
4603 |
|
---|
4604 |
|
---|
4605 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
4606 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
4607 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
4608 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4609 | else
|
---|
4610 | ac_check_lib_save_LIBS=$LIBS
|
---|
4611 | LIBS="-lg $LIBS"
|
---|
4612 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4613 | /* confdefs.h. */
|
---|
4614 | _ACEOF
|
---|
4615 | cat confdefs.h >>conftest.$ac_ext
|
---|
4616 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4617 | /* end confdefs.h. */
|
---|
4618 |
|
---|
4619 |
|
---|
4620 | int
|
---|
4621 | main ()
|
---|
4622 | {
|
---|
4623 | main ();
|
---|
4624 | ;
|
---|
4625 | return 0;
|
---|
4626 | }
|
---|
4627 | _ACEOF
|
---|
4628 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4630 | (eval $ac_link) 2>conftest.er1
|
---|
4631 | ac_status=$?
|
---|
4632 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4633 | rm -f conftest.er1
|
---|
4634 | cat conftest.err >&5
|
---|
4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4636 | (exit $ac_status); } &&
|
---|
4637 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4638 | || test ! -s conftest.err'
|
---|
4639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4640 | (eval $ac_try) 2>&5
|
---|
4641 | ac_status=$?
|
---|
4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4643 | (exit $ac_status); }; } &&
|
---|
4644 | { ac_try='test -s conftest$ac_exeext'
|
---|
4645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4646 | (eval $ac_try) 2>&5
|
---|
4647 | ac_status=$?
|
---|
4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4649 | (exit $ac_status); }; }; then
|
---|
4650 | ac_cv_lib_g_main=yes
|
---|
4651 | else
|
---|
4652 | echo "$as_me: failed program was:" >&5
|
---|
4653 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4654 |
|
---|
4655 | ac_cv_lib_g_main=no
|
---|
4656 | fi
|
---|
4657 | rm -f conftest.err conftest.$ac_objext \
|
---|
4658 | conftest$ac_exeext conftest.$ac_ext
|
---|
4659 | LIBS=$ac_check_lib_save_LIBS
|
---|
4660 | fi
|
---|
4661 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
4662 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
4663 | if test $ac_cv_lib_g_main = yes; then
|
---|
4664 | cat >>confdefs.h <<_ACEOF
|
---|
4665 | #define HAVE_LIBG 1
|
---|
4666 | _ACEOF
|
---|
4667 |
|
---|
4668 | LIBS="-lg $LIBS"
|
---|
4669 |
|
---|
4670 | fi
|
---|
4671 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
4672 |
|
---|
4673 |
|
---|
4674 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
4675 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
4676 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
4677 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4678 | else
|
---|
4679 | ac_check_lib_save_LIBS=$LIBS
|
---|
4680 | LIBS="-lm $LIBS"
|
---|
4681 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4682 | /* confdefs.h. */
|
---|
4683 | _ACEOF
|
---|
4684 | cat confdefs.h >>conftest.$ac_ext
|
---|
4685 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4686 | /* end confdefs.h. */
|
---|
4687 |
|
---|
4688 |
|
---|
4689 | int
|
---|
4690 | main ()
|
---|
4691 | {
|
---|
4692 | main ();
|
---|
4693 | ;
|
---|
4694 | return 0;
|
---|
4695 | }
|
---|
4696 | _ACEOF
|
---|
4697 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4699 | (eval $ac_link) 2>conftest.er1
|
---|
4700 | ac_status=$?
|
---|
4701 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4702 | rm -f conftest.er1
|
---|
4703 | cat conftest.err >&5
|
---|
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4705 | (exit $ac_status); } &&
|
---|
4706 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4707 | || test ! -s conftest.err'
|
---|
4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4709 | (eval $ac_try) 2>&5
|
---|
4710 | ac_status=$?
|
---|
4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4712 | (exit $ac_status); }; } &&
|
---|
4713 | { ac_try='test -s conftest$ac_exeext'
|
---|
4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4715 | (eval $ac_try) 2>&5
|
---|
4716 | ac_status=$?
|
---|
4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4718 | (exit $ac_status); }; }; then
|
---|
4719 | ac_cv_lib_m_main=yes
|
---|
4720 | else
|
---|
4721 | echo "$as_me: failed program was:" >&5
|
---|
4722 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4723 |
|
---|
4724 | ac_cv_lib_m_main=no
|
---|
4725 | fi
|
---|
4726 | rm -f conftest.err conftest.$ac_objext \
|
---|
4727 | conftest$ac_exeext conftest.$ac_ext
|
---|
4728 | LIBS=$ac_check_lib_save_LIBS
|
---|
4729 | fi
|
---|
4730 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
4731 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
4732 | if test $ac_cv_lib_m_main = yes; then
|
---|
4733 | cat >>confdefs.h <<_ACEOF
|
---|
4734 | #define HAVE_LIBM 1
|
---|
4735 | _ACEOF
|
---|
4736 |
|
---|
4737 | LIBS="-lm $LIBS"
|
---|
4738 |
|
---|
4739 | fi
|
---|
4740 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
4741 |
|
---|
4742 |
|
---|
4743 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
4744 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
4745 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
4746 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4747 | else
|
---|
4748 | ac_check_lib_save_LIBS=$LIBS
|
---|
4749 | LIBS="-lcrypt $LIBS"
|
---|
4750 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4751 | /* confdefs.h. */
|
---|
4752 | _ACEOF
|
---|
4753 | cat confdefs.h >>conftest.$ac_ext
|
---|
4754 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4755 | /* end confdefs.h. */
|
---|
4756 |
|
---|
4757 |
|
---|
4758 | int
|
---|
4759 | main ()
|
---|
4760 | {
|
---|
4761 | main ();
|
---|
4762 | ;
|
---|
4763 | return 0;
|
---|
4764 | }
|
---|
4765 | _ACEOF
|
---|
4766 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4768 | (eval $ac_link) 2>conftest.er1
|
---|
4769 | ac_status=$?
|
---|
4770 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4771 | rm -f conftest.er1
|
---|
4772 | cat conftest.err >&5
|
---|
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4774 | (exit $ac_status); } &&
|
---|
4775 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4776 | || test ! -s conftest.err'
|
---|
4777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4778 | (eval $ac_try) 2>&5
|
---|
4779 | ac_status=$?
|
---|
4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4781 | (exit $ac_status); }; } &&
|
---|
4782 | { ac_try='test -s conftest$ac_exeext'
|
---|
4783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4784 | (eval $ac_try) 2>&5
|
---|
4785 | ac_status=$?
|
---|
4786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4787 | (exit $ac_status); }; }; then
|
---|
4788 | ac_cv_lib_crypt_main=yes
|
---|
4789 | else
|
---|
4790 | echo "$as_me: failed program was:" >&5
|
---|
4791 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4792 |
|
---|
4793 | ac_cv_lib_crypt_main=no
|
---|
4794 | fi
|
---|
4795 | rm -f conftest.err conftest.$ac_objext \
|
---|
4796 | conftest$ac_exeext conftest.$ac_ext
|
---|
4797 | LIBS=$ac_check_lib_save_LIBS
|
---|
4798 | fi
|
---|
4799 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
4800 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
4801 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
4802 | cat >>confdefs.h <<_ACEOF
|
---|
4803 | #define HAVE_LIBCRYPT 1
|
---|
4804 | _ACEOF
|
---|
4805 |
|
---|
4806 | LIBS="-lcrypt $LIBS"
|
---|
4807 |
|
---|
4808 | fi
|
---|
4809 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
4810 |
|
---|
4811 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
4812 | #AC_HAVE_LIBRARY(iconv)
|
---|
4813 | #fi
|
---|
4814 |
|
---|
4815 |
|
---|
4816 |
|
---|
4817 |
|
---|
4818 |
|
---|
4819 |
|
---|
4820 | ac_header_dirent=no
|
---|
4821 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
4822 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
4823 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
4824 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
4825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4826 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4827 | else
|
---|
4828 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4829 | /* confdefs.h. */
|
---|
4830 | _ACEOF
|
---|
4831 | cat confdefs.h >>conftest.$ac_ext
|
---|
4832 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4833 | /* end confdefs.h. */
|
---|
4834 | #include <sys/types.h>
|
---|
4835 | #include <$ac_hdr>
|
---|
4836 |
|
---|
4837 | int
|
---|
4838 | main ()
|
---|
4839 | {
|
---|
4840 | if ((DIR *) 0)
|
---|
4841 | return 0;
|
---|
4842 | ;
|
---|
4843 | return 0;
|
---|
4844 | }
|
---|
4845 | _ACEOF
|
---|
4846 | rm -f conftest.$ac_objext
|
---|
4847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4848 | (eval $ac_compile) 2>conftest.er1
|
---|
4849 | ac_status=$?
|
---|
4850 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4851 | rm -f conftest.er1
|
---|
4852 | cat conftest.err >&5
|
---|
4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4854 | (exit $ac_status); } &&
|
---|
4855 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4856 | || test ! -s conftest.err'
|
---|
4857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4858 | (eval $ac_try) 2>&5
|
---|
4859 | ac_status=$?
|
---|
4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4861 | (exit $ac_status); }; } &&
|
---|
4862 | { ac_try='test -s conftest.$ac_objext'
|
---|
4863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4864 | (eval $ac_try) 2>&5
|
---|
4865 | ac_status=$?
|
---|
4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4867 | (exit $ac_status); }; }; then
|
---|
4868 | eval "$as_ac_Header=yes"
|
---|
4869 | else
|
---|
4870 | echo "$as_me: failed program was:" >&5
|
---|
4871 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4872 |
|
---|
4873 | eval "$as_ac_Header=no"
|
---|
4874 | fi
|
---|
4875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4876 | fi
|
---|
4877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4879 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4880 | cat >>confdefs.h <<_ACEOF
|
---|
4881 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
4882 | _ACEOF
|
---|
4883 |
|
---|
4884 | ac_header_dirent=$ac_hdr; break
|
---|
4885 | fi
|
---|
4886 |
|
---|
4887 | done
|
---|
4888 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4889 | if test $ac_header_dirent = dirent.h; then
|
---|
4890 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4891 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4892 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4894 | else
|
---|
4895 | ac_func_search_save_LIBS=$LIBS
|
---|
4896 | ac_cv_search_opendir=no
|
---|
4897 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4898 | /* confdefs.h. */
|
---|
4899 | _ACEOF
|
---|
4900 | cat confdefs.h >>conftest.$ac_ext
|
---|
4901 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4902 | /* end confdefs.h. */
|
---|
4903 |
|
---|
4904 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4905 | #ifdef __cplusplus
|
---|
4906 | extern "C"
|
---|
4907 | #endif
|
---|
4908 | /* We use char because int might match the return type of a gcc2
|
---|
4909 | builtin and then its argument prototype would still apply. */
|
---|
4910 | char opendir ();
|
---|
4911 | int
|
---|
4912 | main ()
|
---|
4913 | {
|
---|
4914 | opendir ();
|
---|
4915 | ;
|
---|
4916 | return 0;
|
---|
4917 | }
|
---|
4918 | _ACEOF
|
---|
4919 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4921 | (eval $ac_link) 2>conftest.er1
|
---|
4922 | ac_status=$?
|
---|
4923 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4924 | rm -f conftest.er1
|
---|
4925 | cat conftest.err >&5
|
---|
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4927 | (exit $ac_status); } &&
|
---|
4928 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4929 | || test ! -s conftest.err'
|
---|
4930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4931 | (eval $ac_try) 2>&5
|
---|
4932 | ac_status=$?
|
---|
4933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4934 | (exit $ac_status); }; } &&
|
---|
4935 | { ac_try='test -s conftest$ac_exeext'
|
---|
4936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4937 | (eval $ac_try) 2>&5
|
---|
4938 | ac_status=$?
|
---|
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4940 | (exit $ac_status); }; }; then
|
---|
4941 | ac_cv_search_opendir="none required"
|
---|
4942 | else
|
---|
4943 | echo "$as_me: failed program was:" >&5
|
---|
4944 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4945 |
|
---|
4946 | fi
|
---|
4947 | rm -f conftest.err conftest.$ac_objext \
|
---|
4948 | conftest$ac_exeext conftest.$ac_ext
|
---|
4949 | if test "$ac_cv_search_opendir" = no; then
|
---|
4950 | for ac_lib in dir; do
|
---|
4951 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4952 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4953 | /* confdefs.h. */
|
---|
4954 | _ACEOF
|
---|
4955 | cat confdefs.h >>conftest.$ac_ext
|
---|
4956 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4957 | /* end confdefs.h. */
|
---|
4958 |
|
---|
4959 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4960 | #ifdef __cplusplus
|
---|
4961 | extern "C"
|
---|
4962 | #endif
|
---|
4963 | /* We use char because int might match the return type of a gcc2
|
---|
4964 | builtin and then its argument prototype would still apply. */
|
---|
4965 | char opendir ();
|
---|
4966 | int
|
---|
4967 | main ()
|
---|
4968 | {
|
---|
4969 | opendir ();
|
---|
4970 | ;
|
---|
4971 | return 0;
|
---|
4972 | }
|
---|
4973 | _ACEOF
|
---|
4974 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4976 | (eval $ac_link) 2>conftest.er1
|
---|
4977 | ac_status=$?
|
---|
4978 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4979 | rm -f conftest.er1
|
---|
4980 | cat conftest.err >&5
|
---|
4981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4982 | (exit $ac_status); } &&
|
---|
4983 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4984 | || test ! -s conftest.err'
|
---|
4985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4986 | (eval $ac_try) 2>&5
|
---|
4987 | ac_status=$?
|
---|
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4989 | (exit $ac_status); }; } &&
|
---|
4990 | { ac_try='test -s conftest$ac_exeext'
|
---|
4991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4992 | (eval $ac_try) 2>&5
|
---|
4993 | ac_status=$?
|
---|
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4995 | (exit $ac_status); }; }; then
|
---|
4996 | ac_cv_search_opendir="-l$ac_lib"
|
---|
4997 | break
|
---|
4998 | else
|
---|
4999 | echo "$as_me: failed program was:" >&5
|
---|
5000 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5001 |
|
---|
5002 | fi
|
---|
5003 | rm -f conftest.err conftest.$ac_objext \
|
---|
5004 | conftest$ac_exeext conftest.$ac_ext
|
---|
5005 | done
|
---|
5006 | fi
|
---|
5007 | LIBS=$ac_func_search_save_LIBS
|
---|
5008 | fi
|
---|
5009 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5010 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
5011 | if test "$ac_cv_search_opendir" != no; then
|
---|
5012 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
5013 |
|
---|
5014 | fi
|
---|
5015 |
|
---|
5016 | else
|
---|
5017 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
5018 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
5019 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5020 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5021 | else
|
---|
5022 | ac_func_search_save_LIBS=$LIBS
|
---|
5023 | ac_cv_search_opendir=no
|
---|
5024 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5025 | /* confdefs.h. */
|
---|
5026 | _ACEOF
|
---|
5027 | cat confdefs.h >>conftest.$ac_ext
|
---|
5028 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5029 | /* end confdefs.h. */
|
---|
5030 |
|
---|
5031 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5032 | #ifdef __cplusplus
|
---|
5033 | extern "C"
|
---|
5034 | #endif
|
---|
5035 | /* We use char because int might match the return type of a gcc2
|
---|
5036 | builtin and then its argument prototype would still apply. */
|
---|
5037 | char opendir ();
|
---|
5038 | int
|
---|
5039 | main ()
|
---|
5040 | {
|
---|
5041 | opendir ();
|
---|
5042 | ;
|
---|
5043 | return 0;
|
---|
5044 | }
|
---|
5045 | _ACEOF
|
---|
5046 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5048 | (eval $ac_link) 2>conftest.er1
|
---|
5049 | ac_status=$?
|
---|
5050 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5051 | rm -f conftest.er1
|
---|
5052 | cat conftest.err >&5
|
---|
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5054 | (exit $ac_status); } &&
|
---|
5055 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5056 | || test ! -s conftest.err'
|
---|
5057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5058 | (eval $ac_try) 2>&5
|
---|
5059 | ac_status=$?
|
---|
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5061 | (exit $ac_status); }; } &&
|
---|
5062 | { ac_try='test -s conftest$ac_exeext'
|
---|
5063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5064 | (eval $ac_try) 2>&5
|
---|
5065 | ac_status=$?
|
---|
5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5067 | (exit $ac_status); }; }; then
|
---|
5068 | ac_cv_search_opendir="none required"
|
---|
5069 | else
|
---|
5070 | echo "$as_me: failed program was:" >&5
|
---|
5071 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5072 |
|
---|
5073 | fi
|
---|
5074 | rm -f conftest.err conftest.$ac_objext \
|
---|
5075 | conftest$ac_exeext conftest.$ac_ext
|
---|
5076 | if test "$ac_cv_search_opendir" = no; then
|
---|
5077 | for ac_lib in x; do
|
---|
5078 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5079 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5080 | /* confdefs.h. */
|
---|
5081 | _ACEOF
|
---|
5082 | cat confdefs.h >>conftest.$ac_ext
|
---|
5083 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5084 | /* end confdefs.h. */
|
---|
5085 |
|
---|
5086 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5087 | #ifdef __cplusplus
|
---|
5088 | extern "C"
|
---|
5089 | #endif
|
---|
5090 | /* We use char because int might match the return type of a gcc2
|
---|
5091 | builtin and then its argument prototype would still apply. */
|
---|
5092 | char opendir ();
|
---|
5093 | int
|
---|
5094 | main ()
|
---|
5095 | {
|
---|
5096 | opendir ();
|
---|
5097 | ;
|
---|
5098 | return 0;
|
---|
5099 | }
|
---|
5100 | _ACEOF
|
---|
5101 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5103 | (eval $ac_link) 2>conftest.er1
|
---|
5104 | ac_status=$?
|
---|
5105 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5106 | rm -f conftest.er1
|
---|
5107 | cat conftest.err >&5
|
---|
5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5109 | (exit $ac_status); } &&
|
---|
5110 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5111 | || test ! -s conftest.err'
|
---|
5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5113 | (eval $ac_try) 2>&5
|
---|
5114 | ac_status=$?
|
---|
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5116 | (exit $ac_status); }; } &&
|
---|
5117 | { ac_try='test -s conftest$ac_exeext'
|
---|
5118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5119 | (eval $ac_try) 2>&5
|
---|
5120 | ac_status=$?
|
---|
5121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5122 | (exit $ac_status); }; }; then
|
---|
5123 | ac_cv_search_opendir="-l$ac_lib"
|
---|
5124 | break
|
---|
5125 | else
|
---|
5126 | echo "$as_me: failed program was:" >&5
|
---|
5127 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5128 |
|
---|
5129 | fi
|
---|
5130 | rm -f conftest.err conftest.$ac_objext \
|
---|
5131 | conftest$ac_exeext conftest.$ac_ext
|
---|
5132 | done
|
---|
5133 | fi
|
---|
5134 | LIBS=$ac_func_search_save_LIBS
|
---|
5135 | fi
|
---|
5136 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5137 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
5138 | if test "$ac_cv_search_opendir" != no; then
|
---|
5139 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
5140 |
|
---|
5141 | fi
|
---|
5142 |
|
---|
5143 | fi
|
---|
5144 |
|
---|
5145 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
5146 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
5147 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
5148 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5149 | else
|
---|
5150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5151 | /* confdefs.h. */
|
---|
5152 | _ACEOF
|
---|
5153 | cat confdefs.h >>conftest.$ac_ext
|
---|
5154 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5155 | /* end confdefs.h. */
|
---|
5156 | #include <stdlib.h>
|
---|
5157 | #include <stdarg.h>
|
---|
5158 | #include <string.h>
|
---|
5159 | #include <float.h>
|
---|
5160 |
|
---|
5161 | int
|
---|
5162 | main ()
|
---|
5163 | {
|
---|
5164 |
|
---|
5165 | ;
|
---|
5166 | return 0;
|
---|
5167 | }
|
---|
5168 | _ACEOF
|
---|
5169 | rm -f conftest.$ac_objext
|
---|
5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5171 | (eval $ac_compile) 2>conftest.er1
|
---|
5172 | ac_status=$?
|
---|
5173 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5174 | rm -f conftest.er1
|
---|
5175 | cat conftest.err >&5
|
---|
5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5177 | (exit $ac_status); } &&
|
---|
5178 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5179 | || test ! -s conftest.err'
|
---|
5180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5181 | (eval $ac_try) 2>&5
|
---|
5182 | ac_status=$?
|
---|
5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5184 | (exit $ac_status); }; } &&
|
---|
5185 | { ac_try='test -s conftest.$ac_objext'
|
---|
5186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5187 | (eval $ac_try) 2>&5
|
---|
5188 | ac_status=$?
|
---|
5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5190 | (exit $ac_status); }; }; then
|
---|
5191 | ac_cv_header_stdc=yes
|
---|
5192 | else
|
---|
5193 | echo "$as_me: failed program was:" >&5
|
---|
5194 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5195 |
|
---|
5196 | ac_cv_header_stdc=no
|
---|
5197 | fi
|
---|
5198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5199 |
|
---|
5200 | if test $ac_cv_header_stdc = yes; then
|
---|
5201 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5202 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5203 | /* confdefs.h. */
|
---|
5204 | _ACEOF
|
---|
5205 | cat confdefs.h >>conftest.$ac_ext
|
---|
5206 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5207 | /* end confdefs.h. */
|
---|
5208 | #include <string.h>
|
---|
5209 |
|
---|
5210 | _ACEOF
|
---|
5211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5212 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
5213 | :
|
---|
5214 | else
|
---|
5215 | ac_cv_header_stdc=no
|
---|
5216 | fi
|
---|
5217 | rm -f conftest*
|
---|
5218 |
|
---|
5219 | fi
|
---|
5220 |
|
---|
5221 | if test $ac_cv_header_stdc = yes; then
|
---|
5222 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5223 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5224 | /* confdefs.h. */
|
---|
5225 | _ACEOF
|
---|
5226 | cat confdefs.h >>conftest.$ac_ext
|
---|
5227 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5228 | /* end confdefs.h. */
|
---|
5229 | #include <stdlib.h>
|
---|
5230 |
|
---|
5231 | _ACEOF
|
---|
5232 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5233 | $EGREP "free" >/dev/null 2>&1; then
|
---|
5234 | :
|
---|
5235 | else
|
---|
5236 | ac_cv_header_stdc=no
|
---|
5237 | fi
|
---|
5238 | rm -f conftest*
|
---|
5239 |
|
---|
5240 | fi
|
---|
5241 |
|
---|
5242 | if test $ac_cv_header_stdc = yes; then
|
---|
5243 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5244 | if test "$cross_compiling" = yes; then
|
---|
5245 | :
|
---|
5246 | else
|
---|
5247 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5248 | /* confdefs.h. */
|
---|
5249 | _ACEOF
|
---|
5250 | cat confdefs.h >>conftest.$ac_ext
|
---|
5251 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5252 | /* end confdefs.h. */
|
---|
5253 | #include <ctype.h>
|
---|
5254 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5255 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5256 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5257 | #else
|
---|
5258 | # define ISLOWER(c) \
|
---|
5259 | (('a' <= (c) && (c) <= 'i') \
|
---|
5260 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5261 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5262 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5263 | #endif
|
---|
5264 |
|
---|
5265 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5266 | int
|
---|
5267 | main ()
|
---|
5268 | {
|
---|
5269 | int i;
|
---|
5270 | for (i = 0; i < 256; i++)
|
---|
5271 | if (XOR (islower (i), ISLOWER (i))
|
---|
5272 | || toupper (i) != TOUPPER (i))
|
---|
5273 | exit(2);
|
---|
5274 | exit (0);
|
---|
5275 | }
|
---|
5276 | _ACEOF
|
---|
5277 | rm -f conftest$ac_exeext
|
---|
5278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5279 | (eval $ac_link) 2>&5
|
---|
5280 | ac_status=$?
|
---|
5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5284 | (eval $ac_try) 2>&5
|
---|
5285 | ac_status=$?
|
---|
5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5287 | (exit $ac_status); }; }; then
|
---|
5288 | :
|
---|
5289 | else
|
---|
5290 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5291 | echo "$as_me: failed program was:" >&5
|
---|
5292 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5293 |
|
---|
5294 | ( exit $ac_status )
|
---|
5295 | ac_cv_header_stdc=no
|
---|
5296 | fi
|
---|
5297 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5298 | fi
|
---|
5299 | fi
|
---|
5300 | fi
|
---|
5301 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
5302 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
5303 | if test $ac_cv_header_stdc = yes; then
|
---|
5304 |
|
---|
5305 | cat >>confdefs.h <<\_ACEOF
|
---|
5306 | #define STDC_HEADERS 1
|
---|
5307 | _ACEOF
|
---|
5308 |
|
---|
5309 | fi
|
---|
5310 |
|
---|
5311 |
|
---|
5312 |
|
---|
5313 |
|
---|
5314 |
|
---|
5315 |
|
---|
5316 |
|
---|
5317 |
|
---|
5318 |
|
---|
5319 |
|
---|
5320 | 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
|
---|
5321 | do
|
---|
5322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5324 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5327 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5328 | fi
|
---|
5329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5330 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5331 | else
|
---|
5332 | # Is the header compilable?
|
---|
5333 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5334 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
5335 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5336 | /* confdefs.h. */
|
---|
5337 | _ACEOF
|
---|
5338 | cat confdefs.h >>conftest.$ac_ext
|
---|
5339 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5340 | /* end confdefs.h. */
|
---|
5341 | $ac_includes_default
|
---|
5342 | #include <$ac_header>
|
---|
5343 | _ACEOF
|
---|
5344 | rm -f conftest.$ac_objext
|
---|
5345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5346 | (eval $ac_compile) 2>conftest.er1
|
---|
5347 | ac_status=$?
|
---|
5348 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5349 | rm -f conftest.er1
|
---|
5350 | cat conftest.err >&5
|
---|
5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5352 | (exit $ac_status); } &&
|
---|
5353 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5354 | || test ! -s conftest.err'
|
---|
5355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5356 | (eval $ac_try) 2>&5
|
---|
5357 | ac_status=$?
|
---|
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5359 | (exit $ac_status); }; } &&
|
---|
5360 | { ac_try='test -s conftest.$ac_objext'
|
---|
5361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5362 | (eval $ac_try) 2>&5
|
---|
5363 | ac_status=$?
|
---|
5364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5365 | (exit $ac_status); }; }; then
|
---|
5366 | ac_header_compiler=yes
|
---|
5367 | else
|
---|
5368 | echo "$as_me: failed program was:" >&5
|
---|
5369 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5370 |
|
---|
5371 | ac_header_compiler=no
|
---|
5372 | fi
|
---|
5373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5374 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5375 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5376 |
|
---|
5377 | # Is the header present?
|
---|
5378 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
5379 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
5380 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5381 | /* confdefs.h. */
|
---|
5382 | _ACEOF
|
---|
5383 | cat confdefs.h >>conftest.$ac_ext
|
---|
5384 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5385 | /* end confdefs.h. */
|
---|
5386 | #include <$ac_header>
|
---|
5387 | _ACEOF
|
---|
5388 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5389 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5390 | ac_status=$?
|
---|
5391 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5392 | rm -f conftest.er1
|
---|
5393 | cat conftest.err >&5
|
---|
5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5395 | (exit $ac_status); } >/dev/null; then
|
---|
5396 | if test -s conftest.err; then
|
---|
5397 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5398 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5399 | else
|
---|
5400 | ac_cpp_err=
|
---|
5401 | fi
|
---|
5402 | else
|
---|
5403 | ac_cpp_err=yes
|
---|
5404 | fi
|
---|
5405 | if test -z "$ac_cpp_err"; then
|
---|
5406 | ac_header_preproc=yes
|
---|
5407 | else
|
---|
5408 | echo "$as_me: failed program was:" >&5
|
---|
5409 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5410 |
|
---|
5411 | ac_header_preproc=no
|
---|
5412 | fi
|
---|
5413 | rm -f conftest.err conftest.$ac_ext
|
---|
5414 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5415 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5416 |
|
---|
5417 | # So? What about this header?
|
---|
5418 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5419 | yes:no: )
|
---|
5420 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5421 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
5423 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
5424 | ac_header_preproc=yes
|
---|
5425 | ;;
|
---|
5426 | no:yes:* )
|
---|
5427 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
5428 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
5429 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
5430 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
5431 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
5432 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
5433 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5434 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
5436 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
5437 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
5438 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
5439 | (
|
---|
5440 | cat <<\_ASBOX
|
---|
5441 | ## ------------------------------------------ ##
|
---|
5442 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
5443 | ## ------------------------------------------ ##
|
---|
5444 | _ASBOX
|
---|
5445 | ) |
|
---|
5446 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5447 | ;;
|
---|
5448 | esac
|
---|
5449 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5450 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5452 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5453 | else
|
---|
5454 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
5455 | fi
|
---|
5456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5458 |
|
---|
5459 | fi
|
---|
5460 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5461 | cat >>confdefs.h <<_ACEOF
|
---|
5462 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5463 | _ACEOF
|
---|
5464 |
|
---|
5465 | fi
|
---|
5466 |
|
---|
5467 | done
|
---|
5468 |
|
---|
5469 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5470 | /* confdefs.h. */
|
---|
5471 | _ACEOF
|
---|
5472 | cat confdefs.h >>conftest.$ac_ext
|
---|
5473 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5474 | /* end confdefs.h. */
|
---|
5475 | #include <stdio.h>
|
---|
5476 |
|
---|
5477 | _ACEOF
|
---|
5478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5479 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
5480 | cat >>confdefs.h <<\_ACEOF
|
---|
5481 | #define HAVE_FREAD_DECL 1
|
---|
5482 | _ACEOF
|
---|
5483 |
|
---|
5484 | fi
|
---|
5485 | rm -f conftest*
|
---|
5486 |
|
---|
5487 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5488 | /* confdefs.h. */
|
---|
5489 | _ACEOF
|
---|
5490 | cat confdefs.h >>conftest.$ac_ext
|
---|
5491 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5492 | /* end confdefs.h. */
|
---|
5493 | #include <stdio.h>
|
---|
5494 |
|
---|
5495 | _ACEOF
|
---|
5496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5497 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
5498 | cat >>confdefs.h <<\_ACEOF
|
---|
5499 | #define HAVE_FGETC_DECL 1
|
---|
5500 | _ACEOF
|
---|
5501 |
|
---|
5502 | fi
|
---|
5503 | rm -f conftest*
|
---|
5504 |
|
---|
5505 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5506 | /* confdefs.h. */
|
---|
5507 | _ACEOF
|
---|
5508 | cat confdefs.h >>conftest.$ac_ext
|
---|
5509 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5510 | /* end confdefs.h. */
|
---|
5511 | #include <sys/procfs.h>
|
---|
5512 |
|
---|
5513 | _ACEOF
|
---|
5514 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5515 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
5516 | cat >>confdefs.h <<\_ACEOF
|
---|
5517 | #define HAVE_PR_BRKSIZE 1
|
---|
5518 | _ACEOF
|
---|
5519 |
|
---|
5520 | fi
|
---|
5521 | rm -f conftest*
|
---|
5522 |
|
---|
5523 |
|
---|
5524 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5525 | # for constant arguments. Useless!
|
---|
5526 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
5527 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
5528 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
5529 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5530 | else
|
---|
5531 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5532 | /* confdefs.h. */
|
---|
5533 | _ACEOF
|
---|
5534 | cat confdefs.h >>conftest.$ac_ext
|
---|
5535 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5536 | /* end confdefs.h. */
|
---|
5537 | #include <alloca.h>
|
---|
5538 | int
|
---|
5539 | main ()
|
---|
5540 | {
|
---|
5541 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5542 | ;
|
---|
5543 | return 0;
|
---|
5544 | }
|
---|
5545 | _ACEOF
|
---|
5546 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5548 | (eval $ac_link) 2>conftest.er1
|
---|
5549 | ac_status=$?
|
---|
5550 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5551 | rm -f conftest.er1
|
---|
5552 | cat conftest.err >&5
|
---|
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5554 | (exit $ac_status); } &&
|
---|
5555 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5556 | || test ! -s conftest.err'
|
---|
5557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5558 | (eval $ac_try) 2>&5
|
---|
5559 | ac_status=$?
|
---|
5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5561 | (exit $ac_status); }; } &&
|
---|
5562 | { ac_try='test -s conftest$ac_exeext'
|
---|
5563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5564 | (eval $ac_try) 2>&5
|
---|
5565 | ac_status=$?
|
---|
5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5567 | (exit $ac_status); }; }; then
|
---|
5568 | ac_cv_working_alloca_h=yes
|
---|
5569 | else
|
---|
5570 | echo "$as_me: failed program was:" >&5
|
---|
5571 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5572 |
|
---|
5573 | ac_cv_working_alloca_h=no
|
---|
5574 | fi
|
---|
5575 | rm -f conftest.err conftest.$ac_objext \
|
---|
5576 | conftest$ac_exeext conftest.$ac_ext
|
---|
5577 | fi
|
---|
5578 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
5579 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
5580 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5581 |
|
---|
5582 | cat >>confdefs.h <<\_ACEOF
|
---|
5583 | #define HAVE_ALLOCA_H 1
|
---|
5584 | _ACEOF
|
---|
5585 |
|
---|
5586 | fi
|
---|
5587 |
|
---|
5588 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
5589 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
5590 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
5591 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5592 | else
|
---|
5593 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5594 | /* confdefs.h. */
|
---|
5595 | _ACEOF
|
---|
5596 | cat confdefs.h >>conftest.$ac_ext
|
---|
5597 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5598 | /* end confdefs.h. */
|
---|
5599 | #ifdef __GNUC__
|
---|
5600 | # define alloca __builtin_alloca
|
---|
5601 | #else
|
---|
5602 | # ifdef _MSC_VER
|
---|
5603 | # include <malloc.h>
|
---|
5604 | # define alloca _alloca
|
---|
5605 | # else
|
---|
5606 | # if HAVE_ALLOCA_H
|
---|
5607 | # include <alloca.h>
|
---|
5608 | # else
|
---|
5609 | # ifdef _AIX
|
---|
5610 | #pragma alloca
|
---|
5611 | # else
|
---|
5612 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5613 | char *alloca ();
|
---|
5614 | # endif
|
---|
5615 | # endif
|
---|
5616 | # endif
|
---|
5617 | # endif
|
---|
5618 | #endif
|
---|
5619 |
|
---|
5620 | int
|
---|
5621 | main ()
|
---|
5622 | {
|
---|
5623 | char *p = (char *) alloca (1);
|
---|
5624 | ;
|
---|
5625 | return 0;
|
---|
5626 | }
|
---|
5627 | _ACEOF
|
---|
5628 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5630 | (eval $ac_link) 2>conftest.er1
|
---|
5631 | ac_status=$?
|
---|
5632 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5633 | rm -f conftest.er1
|
---|
5634 | cat conftest.err >&5
|
---|
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5636 | (exit $ac_status); } &&
|
---|
5637 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5638 | || test ! -s conftest.err'
|
---|
5639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5640 | (eval $ac_try) 2>&5
|
---|
5641 | ac_status=$?
|
---|
5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5643 | (exit $ac_status); }; } &&
|
---|
5644 | { ac_try='test -s conftest$ac_exeext'
|
---|
5645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5646 | (eval $ac_try) 2>&5
|
---|
5647 | ac_status=$?
|
---|
5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5649 | (exit $ac_status); }; }; then
|
---|
5650 | ac_cv_func_alloca_works=yes
|
---|
5651 | else
|
---|
5652 | echo "$as_me: failed program was:" >&5
|
---|
5653 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5654 |
|
---|
5655 | ac_cv_func_alloca_works=no
|
---|
5656 | fi
|
---|
5657 | rm -f conftest.err conftest.$ac_objext \
|
---|
5658 | conftest$ac_exeext conftest.$ac_ext
|
---|
5659 | fi
|
---|
5660 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
5661 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
5662 |
|
---|
5663 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5664 |
|
---|
5665 | cat >>confdefs.h <<\_ACEOF
|
---|
5666 | #define HAVE_ALLOCA 1
|
---|
5667 | _ACEOF
|
---|
5668 |
|
---|
5669 | else
|
---|
5670 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5671 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5672 | # contain a buggy version. If you still want to use their alloca,
|
---|
5673 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5674 |
|
---|
5675 | ALLOCA=alloca.$ac_objext
|
---|
5676 |
|
---|
5677 | cat >>confdefs.h <<\_ACEOF
|
---|
5678 | #define C_ALLOCA 1
|
---|
5679 | _ACEOF
|
---|
5680 |
|
---|
5681 |
|
---|
5682 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5683 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
5684 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
5685 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5686 | else
|
---|
5687 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5688 | /* confdefs.h. */
|
---|
5689 | _ACEOF
|
---|
5690 | cat confdefs.h >>conftest.$ac_ext
|
---|
5691 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5692 | /* end confdefs.h. */
|
---|
5693 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
5694 | webecray
|
---|
5695 | #else
|
---|
5696 | wenotbecray
|
---|
5697 | #endif
|
---|
5698 |
|
---|
5699 | _ACEOF
|
---|
5700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5701 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
5702 | ac_cv_os_cray=yes
|
---|
5703 | else
|
---|
5704 | ac_cv_os_cray=no
|
---|
5705 | fi
|
---|
5706 | rm -f conftest*
|
---|
5707 |
|
---|
5708 | fi
|
---|
5709 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
5710 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
5711 | if test $ac_cv_os_cray = yes; then
|
---|
5712 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5713 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5714 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5715 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5716 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5717 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5718 | else
|
---|
5719 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5720 | /* confdefs.h. */
|
---|
5721 | _ACEOF
|
---|
5722 | cat confdefs.h >>conftest.$ac_ext
|
---|
5723 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5724 | /* end confdefs.h. */
|
---|
5725 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5727 | #define $ac_func innocuous_$ac_func
|
---|
5728 |
|
---|
5729 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5730 | which can conflict with char $ac_func (); below.
|
---|
5731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5732 | <limits.h> exists even on freestanding compilers. */
|
---|
5733 |
|
---|
5734 | #ifdef __STDC__
|
---|
5735 | # include <limits.h>
|
---|
5736 | #else
|
---|
5737 | # include <assert.h>
|
---|
5738 | #endif
|
---|
5739 |
|
---|
5740 | #undef $ac_func
|
---|
5741 |
|
---|
5742 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5743 | #ifdef __cplusplus
|
---|
5744 | extern "C"
|
---|
5745 | {
|
---|
5746 | #endif
|
---|
5747 | /* We use char because int might match the return type of a gcc2
|
---|
5748 | builtin and then its argument prototype would still apply. */
|
---|
5749 | char $ac_func ();
|
---|
5750 | /* The GNU C library defines this for functions which it implements
|
---|
5751 | to always fail with ENOSYS. Some functions are actually named
|
---|
5752 | something starting with __ and the normal name is an alias. */
|
---|
5753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5754 | choke me
|
---|
5755 | #else
|
---|
5756 | char (*f) () = $ac_func;
|
---|
5757 | #endif
|
---|
5758 | #ifdef __cplusplus
|
---|
5759 | }
|
---|
5760 | #endif
|
---|
5761 |
|
---|
5762 | int
|
---|
5763 | main ()
|
---|
5764 | {
|
---|
5765 | return f != $ac_func;
|
---|
5766 | ;
|
---|
5767 | return 0;
|
---|
5768 | }
|
---|
5769 | _ACEOF
|
---|
5770 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5772 | (eval $ac_link) 2>conftest.er1
|
---|
5773 | ac_status=$?
|
---|
5774 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5775 | rm -f conftest.er1
|
---|
5776 | cat conftest.err >&5
|
---|
5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5778 | (exit $ac_status); } &&
|
---|
5779 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5780 | || test ! -s conftest.err'
|
---|
5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5782 | (eval $ac_try) 2>&5
|
---|
5783 | ac_status=$?
|
---|
5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5785 | (exit $ac_status); }; } &&
|
---|
5786 | { ac_try='test -s conftest$ac_exeext'
|
---|
5787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5788 | (eval $ac_try) 2>&5
|
---|
5789 | ac_status=$?
|
---|
5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5791 | (exit $ac_status); }; }; then
|
---|
5792 | eval "$as_ac_var=yes"
|
---|
5793 | else
|
---|
5794 | echo "$as_me: failed program was:" >&5
|
---|
5795 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5796 |
|
---|
5797 | eval "$as_ac_var=no"
|
---|
5798 | fi
|
---|
5799 | rm -f conftest.err conftest.$ac_objext \
|
---|
5800 | conftest$ac_exeext conftest.$ac_ext
|
---|
5801 | fi
|
---|
5802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
5803 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
5804 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
5805 |
|
---|
5806 | cat >>confdefs.h <<_ACEOF
|
---|
5807 | #define CRAY_STACKSEG_END $ac_func
|
---|
5808 | _ACEOF
|
---|
5809 |
|
---|
5810 | break
|
---|
5811 | fi
|
---|
5812 |
|
---|
5813 | done
|
---|
5814 | fi
|
---|
5815 |
|
---|
5816 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
5817 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
5818 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
5819 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5820 | else
|
---|
5821 | if test "$cross_compiling" = yes; then
|
---|
5822 | ac_cv_c_stack_direction=0
|
---|
5823 | else
|
---|
5824 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5825 | /* confdefs.h. */
|
---|
5826 | _ACEOF
|
---|
5827 | cat confdefs.h >>conftest.$ac_ext
|
---|
5828 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5829 | /* end confdefs.h. */
|
---|
5830 | int
|
---|
5831 | find_stack_direction ()
|
---|
5832 | {
|
---|
5833 | static char *addr = 0;
|
---|
5834 | auto char dummy;
|
---|
5835 | if (addr == 0)
|
---|
5836 | {
|
---|
5837 | addr = &dummy;
|
---|
5838 | return find_stack_direction ();
|
---|
5839 | }
|
---|
5840 | else
|
---|
5841 | return (&dummy > addr) ? 1 : -1;
|
---|
5842 | }
|
---|
5843 |
|
---|
5844 | int
|
---|
5845 | main ()
|
---|
5846 | {
|
---|
5847 | exit (find_stack_direction () < 0);
|
---|
5848 | }
|
---|
5849 | _ACEOF
|
---|
5850 | rm -f conftest$ac_exeext
|
---|
5851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5852 | (eval $ac_link) 2>&5
|
---|
5853 | ac_status=$?
|
---|
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5857 | (eval $ac_try) 2>&5
|
---|
5858 | ac_status=$?
|
---|
5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5860 | (exit $ac_status); }; }; then
|
---|
5861 | ac_cv_c_stack_direction=1
|
---|
5862 | else
|
---|
5863 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5864 | echo "$as_me: failed program was:" >&5
|
---|
5865 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5866 |
|
---|
5867 | ( exit $ac_status )
|
---|
5868 | ac_cv_c_stack_direction=-1
|
---|
5869 | fi
|
---|
5870 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5871 | fi
|
---|
5872 | fi
|
---|
5873 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
5874 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
5875 |
|
---|
5876 | cat >>confdefs.h <<_ACEOF
|
---|
5877 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5878 | _ACEOF
|
---|
5879 |
|
---|
5880 |
|
---|
5881 | fi
|
---|
5882 |
|
---|
5883 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5884 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
5885 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
5886 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
5887 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5888 | else
|
---|
5889 | ac_pattern="Autoconf.*'x'"
|
---|
5890 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5891 | /* confdefs.h. */
|
---|
5892 | _ACEOF
|
---|
5893 | cat confdefs.h >>conftest.$ac_ext
|
---|
5894 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5895 | /* end confdefs.h. */
|
---|
5896 | #include <sgtty.h>
|
---|
5897 | Autoconf TIOCGETP
|
---|
5898 | _ACEOF
|
---|
5899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5900 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5901 | ac_cv_prog_gcc_traditional=yes
|
---|
5902 | else
|
---|
5903 | ac_cv_prog_gcc_traditional=no
|
---|
5904 | fi
|
---|
5905 | rm -f conftest*
|
---|
5906 |
|
---|
5907 |
|
---|
5908 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5909 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5910 | /* confdefs.h. */
|
---|
5911 | _ACEOF
|
---|
5912 | cat confdefs.h >>conftest.$ac_ext
|
---|
5913 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5914 | /* end confdefs.h. */
|
---|
5915 | #include <termio.h>
|
---|
5916 | Autoconf TCGETA
|
---|
5917 | _ACEOF
|
---|
5918 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5919 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5920 | ac_cv_prog_gcc_traditional=yes
|
---|
5921 | fi
|
---|
5922 | rm -f conftest*
|
---|
5923 |
|
---|
5924 | fi
|
---|
5925 | fi
|
---|
5926 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5927 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
5928 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5929 | CC="$CC -traditional"
|
---|
5930 | fi
|
---|
5931 | fi
|
---|
5932 |
|
---|
5933 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
5934 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
5935 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
5936 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5937 | else
|
---|
5938 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5939 | /* confdefs.h. */
|
---|
5940 | _ACEOF
|
---|
5941 | cat confdefs.h >>conftest.$ac_ext
|
---|
5942 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5943 | /* end confdefs.h. */
|
---|
5944 | #include <sys/types.h>
|
---|
5945 | #include <signal.h>
|
---|
5946 | #ifdef signal
|
---|
5947 | # undef signal
|
---|
5948 | #endif
|
---|
5949 | #ifdef __cplusplus
|
---|
5950 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
5951 | #else
|
---|
5952 | void (*signal ()) ();
|
---|
5953 | #endif
|
---|
5954 |
|
---|
5955 | int
|
---|
5956 | main ()
|
---|
5957 | {
|
---|
5958 | int i;
|
---|
5959 | ;
|
---|
5960 | return 0;
|
---|
5961 | }
|
---|
5962 | _ACEOF
|
---|
5963 | rm -f conftest.$ac_objext
|
---|
5964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5965 | (eval $ac_compile) 2>conftest.er1
|
---|
5966 | ac_status=$?
|
---|
5967 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5968 | rm -f conftest.er1
|
---|
5969 | cat conftest.err >&5
|
---|
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5971 | (exit $ac_status); } &&
|
---|
5972 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5973 | || test ! -s conftest.err'
|
---|
5974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5975 | (eval $ac_try) 2>&5
|
---|
5976 | ac_status=$?
|
---|
5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5978 | (exit $ac_status); }; } &&
|
---|
5979 | { ac_try='test -s conftest.$ac_objext'
|
---|
5980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5981 | (eval $ac_try) 2>&5
|
---|
5982 | ac_status=$?
|
---|
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5984 | (exit $ac_status); }; }; then
|
---|
5985 | ac_cv_type_signal=void
|
---|
5986 | else
|
---|
5987 | echo "$as_me: failed program was:" >&5
|
---|
5988 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5989 |
|
---|
5990 | ac_cv_type_signal=int
|
---|
5991 | fi
|
---|
5992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5993 | fi
|
---|
5994 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
5995 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
5996 |
|
---|
5997 | cat >>confdefs.h <<_ACEOF
|
---|
5998 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5999 | _ACEOF
|
---|
6000 |
|
---|
6001 |
|
---|
6002 |
|
---|
6003 | for ac_func in vprintf
|
---|
6004 | do
|
---|
6005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6006 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6008 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6009 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6010 | else
|
---|
6011 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6012 | /* confdefs.h. */
|
---|
6013 | _ACEOF
|
---|
6014 | cat confdefs.h >>conftest.$ac_ext
|
---|
6015 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6016 | /* end confdefs.h. */
|
---|
6017 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6018 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6019 | #define $ac_func innocuous_$ac_func
|
---|
6020 |
|
---|
6021 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6022 | which can conflict with char $ac_func (); below.
|
---|
6023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6024 | <limits.h> exists even on freestanding compilers. */
|
---|
6025 |
|
---|
6026 | #ifdef __STDC__
|
---|
6027 | # include <limits.h>
|
---|
6028 | #else
|
---|
6029 | # include <assert.h>
|
---|
6030 | #endif
|
---|
6031 |
|
---|
6032 | #undef $ac_func
|
---|
6033 |
|
---|
6034 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6035 | #ifdef __cplusplus
|
---|
6036 | extern "C"
|
---|
6037 | {
|
---|
6038 | #endif
|
---|
6039 | /* We use char because int might match the return type of a gcc2
|
---|
6040 | builtin and then its argument prototype would still apply. */
|
---|
6041 | char $ac_func ();
|
---|
6042 | /* The GNU C library defines this for functions which it implements
|
---|
6043 | to always fail with ENOSYS. Some functions are actually named
|
---|
6044 | something starting with __ and the normal name is an alias. */
|
---|
6045 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6046 | choke me
|
---|
6047 | #else
|
---|
6048 | char (*f) () = $ac_func;
|
---|
6049 | #endif
|
---|
6050 | #ifdef __cplusplus
|
---|
6051 | }
|
---|
6052 | #endif
|
---|
6053 |
|
---|
6054 | int
|
---|
6055 | main ()
|
---|
6056 | {
|
---|
6057 | return f != $ac_func;
|
---|
6058 | ;
|
---|
6059 | return 0;
|
---|
6060 | }
|
---|
6061 | _ACEOF
|
---|
6062 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6064 | (eval $ac_link) 2>conftest.er1
|
---|
6065 | ac_status=$?
|
---|
6066 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6067 | rm -f conftest.er1
|
---|
6068 | cat conftest.err >&5
|
---|
6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6070 | (exit $ac_status); } &&
|
---|
6071 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6072 | || test ! -s conftest.err'
|
---|
6073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6074 | (eval $ac_try) 2>&5
|
---|
6075 | ac_status=$?
|
---|
6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6077 | (exit $ac_status); }; } &&
|
---|
6078 | { ac_try='test -s conftest$ac_exeext'
|
---|
6079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6080 | (eval $ac_try) 2>&5
|
---|
6081 | ac_status=$?
|
---|
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6083 | (exit $ac_status); }; }; then
|
---|
6084 | eval "$as_ac_var=yes"
|
---|
6085 | else
|
---|
6086 | echo "$as_me: failed program was:" >&5
|
---|
6087 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6088 |
|
---|
6089 | eval "$as_ac_var=no"
|
---|
6090 | fi
|
---|
6091 | rm -f conftest.err conftest.$ac_objext \
|
---|
6092 | conftest$ac_exeext conftest.$ac_ext
|
---|
6093 | fi
|
---|
6094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6095 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6096 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6097 | cat >>confdefs.h <<_ACEOF
|
---|
6098 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6099 | _ACEOF
|
---|
6100 |
|
---|
6101 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
6102 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
6103 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
6104 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6105 | else
|
---|
6106 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6107 | /* confdefs.h. */
|
---|
6108 | _ACEOF
|
---|
6109 | cat confdefs.h >>conftest.$ac_ext
|
---|
6110 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6111 | /* end confdefs.h. */
|
---|
6112 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
6113 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6114 | #define _doprnt innocuous__doprnt
|
---|
6115 |
|
---|
6116 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6117 | which can conflict with char _doprnt (); below.
|
---|
6118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6119 | <limits.h> exists even on freestanding compilers. */
|
---|
6120 |
|
---|
6121 | #ifdef __STDC__
|
---|
6122 | # include <limits.h>
|
---|
6123 | #else
|
---|
6124 | # include <assert.h>
|
---|
6125 | #endif
|
---|
6126 |
|
---|
6127 | #undef _doprnt
|
---|
6128 |
|
---|
6129 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6130 | #ifdef __cplusplus
|
---|
6131 | extern "C"
|
---|
6132 | {
|
---|
6133 | #endif
|
---|
6134 | /* We use char because int might match the return type of a gcc2
|
---|
6135 | builtin and then its argument prototype would still apply. */
|
---|
6136 | char _doprnt ();
|
---|
6137 | /* The GNU C library defines this for functions which it implements
|
---|
6138 | to always fail with ENOSYS. Some functions are actually named
|
---|
6139 | something starting with __ and the normal name is an alias. */
|
---|
6140 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
6141 | choke me
|
---|
6142 | #else
|
---|
6143 | char (*f) () = _doprnt;
|
---|
6144 | #endif
|
---|
6145 | #ifdef __cplusplus
|
---|
6146 | }
|
---|
6147 | #endif
|
---|
6148 |
|
---|
6149 | int
|
---|
6150 | main ()
|
---|
6151 | {
|
---|
6152 | return f != _doprnt;
|
---|
6153 | ;
|
---|
6154 | return 0;
|
---|
6155 | }
|
---|
6156 | _ACEOF
|
---|
6157 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6159 | (eval $ac_link) 2>conftest.er1
|
---|
6160 | ac_status=$?
|
---|
6161 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6162 | rm -f conftest.er1
|
---|
6163 | cat conftest.err >&5
|
---|
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6165 | (exit $ac_status); } &&
|
---|
6166 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6167 | || test ! -s conftest.err'
|
---|
6168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6169 | (eval $ac_try) 2>&5
|
---|
6170 | ac_status=$?
|
---|
6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6172 | (exit $ac_status); }; } &&
|
---|
6173 | { ac_try='test -s conftest$ac_exeext'
|
---|
6174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6175 | (eval $ac_try) 2>&5
|
---|
6176 | ac_status=$?
|
---|
6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6178 | (exit $ac_status); }; }; then
|
---|
6179 | ac_cv_func__doprnt=yes
|
---|
6180 | else
|
---|
6181 | echo "$as_me: failed program was:" >&5
|
---|
6182 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6183 |
|
---|
6184 | ac_cv_func__doprnt=no
|
---|
6185 | fi
|
---|
6186 | rm -f conftest.err conftest.$ac_objext \
|
---|
6187 | conftest$ac_exeext conftest.$ac_ext
|
---|
6188 | fi
|
---|
6189 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
6190 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
6191 | if test $ac_cv_func__doprnt = yes; then
|
---|
6192 |
|
---|
6193 | cat >>confdefs.h <<\_ACEOF
|
---|
6194 | #define HAVE_DOPRNT 1
|
---|
6195 | _ACEOF
|
---|
6196 |
|
---|
6197 | fi
|
---|
6198 |
|
---|
6199 | fi
|
---|
6200 | done
|
---|
6201 |
|
---|
6202 |
|
---|
6203 |
|
---|
6204 |
|
---|
6205 |
|
---|
6206 |
|
---|
6207 |
|
---|
6208 |
|
---|
6209 |
|
---|
6210 |
|
---|
6211 |
|
---|
6212 |
|
---|
6213 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6214 | do
|
---|
6215 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6216 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6217 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6218 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6219 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6220 | else
|
---|
6221 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6222 | /* confdefs.h. */
|
---|
6223 | _ACEOF
|
---|
6224 | cat confdefs.h >>conftest.$ac_ext
|
---|
6225 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6226 | /* end confdefs.h. */
|
---|
6227 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6229 | #define $ac_func innocuous_$ac_func
|
---|
6230 |
|
---|
6231 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6232 | which can conflict with char $ac_func (); below.
|
---|
6233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6234 | <limits.h> exists even on freestanding compilers. */
|
---|
6235 |
|
---|
6236 | #ifdef __STDC__
|
---|
6237 | # include <limits.h>
|
---|
6238 | #else
|
---|
6239 | # include <assert.h>
|
---|
6240 | #endif
|
---|
6241 |
|
---|
6242 | #undef $ac_func
|
---|
6243 |
|
---|
6244 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6245 | #ifdef __cplusplus
|
---|
6246 | extern "C"
|
---|
6247 | {
|
---|
6248 | #endif
|
---|
6249 | /* We use char because int might match the return type of a gcc2
|
---|
6250 | builtin and then its argument prototype would still apply. */
|
---|
6251 | char $ac_func ();
|
---|
6252 | /* The GNU C library defines this for functions which it implements
|
---|
6253 | to always fail with ENOSYS. Some functions are actually named
|
---|
6254 | something starting with __ and the normal name is an alias. */
|
---|
6255 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6256 | choke me
|
---|
6257 | #else
|
---|
6258 | char (*f) () = $ac_func;
|
---|
6259 | #endif
|
---|
6260 | #ifdef __cplusplus
|
---|
6261 | }
|
---|
6262 | #endif
|
---|
6263 |
|
---|
6264 | int
|
---|
6265 | main ()
|
---|
6266 | {
|
---|
6267 | return f != $ac_func;
|
---|
6268 | ;
|
---|
6269 | return 0;
|
---|
6270 | }
|
---|
6271 | _ACEOF
|
---|
6272 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6274 | (eval $ac_link) 2>conftest.er1
|
---|
6275 | ac_status=$?
|
---|
6276 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6277 | rm -f conftest.er1
|
---|
6278 | cat conftest.err >&5
|
---|
6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6280 | (exit $ac_status); } &&
|
---|
6281 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6282 | || test ! -s conftest.err'
|
---|
6283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6284 | (eval $ac_try) 2>&5
|
---|
6285 | ac_status=$?
|
---|
6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6287 | (exit $ac_status); }; } &&
|
---|
6288 | { ac_try='test -s conftest$ac_exeext'
|
---|
6289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6290 | (eval $ac_try) 2>&5
|
---|
6291 | ac_status=$?
|
---|
6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6293 | (exit $ac_status); }; }; then
|
---|
6294 | eval "$as_ac_var=yes"
|
---|
6295 | else
|
---|
6296 | echo "$as_me: failed program was:" >&5
|
---|
6297 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6298 |
|
---|
6299 | eval "$as_ac_var=no"
|
---|
6300 | fi
|
---|
6301 | rm -f conftest.err conftest.$ac_objext \
|
---|
6302 | conftest$ac_exeext conftest.$ac_ext
|
---|
6303 | fi
|
---|
6304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6305 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6306 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6307 | cat >>confdefs.h <<_ACEOF
|
---|
6308 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6309 | _ACEOF
|
---|
6310 |
|
---|
6311 | fi
|
---|
6312 | done
|
---|
6313 |
|
---|
6314 |
|
---|
6315 |
|
---|
6316 |
|
---|
6317 | for ac_func in ftruncate strstr strcasecmp
|
---|
6318 | do
|
---|
6319 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6320 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6321 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6322 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6323 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6324 | else
|
---|
6325 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6326 | /* confdefs.h. */
|
---|
6327 | _ACEOF
|
---|
6328 | cat confdefs.h >>conftest.$ac_ext
|
---|
6329 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6330 | /* end confdefs.h. */
|
---|
6331 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6332 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6333 | #define $ac_func innocuous_$ac_func
|
---|
6334 |
|
---|
6335 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6336 | which can conflict with char $ac_func (); below.
|
---|
6337 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6338 | <limits.h> exists even on freestanding compilers. */
|
---|
6339 |
|
---|
6340 | #ifdef __STDC__
|
---|
6341 | # include <limits.h>
|
---|
6342 | #else
|
---|
6343 | # include <assert.h>
|
---|
6344 | #endif
|
---|
6345 |
|
---|
6346 | #undef $ac_func
|
---|
6347 |
|
---|
6348 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6349 | #ifdef __cplusplus
|
---|
6350 | extern "C"
|
---|
6351 | {
|
---|
6352 | #endif
|
---|
6353 | /* We use char because int might match the return type of a gcc2
|
---|
6354 | builtin and then its argument prototype would still apply. */
|
---|
6355 | char $ac_func ();
|
---|
6356 | /* The GNU C library defines this for functions which it implements
|
---|
6357 | to always fail with ENOSYS. Some functions are actually named
|
---|
6358 | something starting with __ and the normal name is an alias. */
|
---|
6359 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6360 | choke me
|
---|
6361 | #else
|
---|
6362 | char (*f) () = $ac_func;
|
---|
6363 | #endif
|
---|
6364 | #ifdef __cplusplus
|
---|
6365 | }
|
---|
6366 | #endif
|
---|
6367 |
|
---|
6368 | int
|
---|
6369 | main ()
|
---|
6370 | {
|
---|
6371 | return f != $ac_func;
|
---|
6372 | ;
|
---|
6373 | return 0;
|
---|
6374 | }
|
---|
6375 | _ACEOF
|
---|
6376 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6378 | (eval $ac_link) 2>conftest.er1
|
---|
6379 | ac_status=$?
|
---|
6380 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6381 | rm -f conftest.er1
|
---|
6382 | cat conftest.err >&5
|
---|
6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6384 | (exit $ac_status); } &&
|
---|
6385 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6386 | || test ! -s conftest.err'
|
---|
6387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6388 | (eval $ac_try) 2>&5
|
---|
6389 | ac_status=$?
|
---|
6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6391 | (exit $ac_status); }; } &&
|
---|
6392 | { ac_try='test -s conftest$ac_exeext'
|
---|
6393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6394 | (eval $ac_try) 2>&5
|
---|
6395 | ac_status=$?
|
---|
6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6397 | (exit $ac_status); }; }; then
|
---|
6398 | eval "$as_ac_var=yes"
|
---|
6399 | else
|
---|
6400 | echo "$as_me: failed program was:" >&5
|
---|
6401 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6402 |
|
---|
6403 | eval "$as_ac_var=no"
|
---|
6404 | fi
|
---|
6405 | rm -f conftest.err conftest.$ac_objext \
|
---|
6406 | conftest$ac_exeext conftest.$ac_ext
|
---|
6407 | fi
|
---|
6408 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6409 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6410 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6411 | cat >>confdefs.h <<_ACEOF
|
---|
6412 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6413 | _ACEOF
|
---|
6414 |
|
---|
6415 | else
|
---|
6416 | case $LIBOBJS in
|
---|
6417 | "$ac_func.$ac_objext" | \
|
---|
6418 | *" $ac_func.$ac_objext" | \
|
---|
6419 | "$ac_func.$ac_objext "* | \
|
---|
6420 | *" $ac_func.$ac_objext "* ) ;;
|
---|
6421 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
6422 | esac
|
---|
6423 |
|
---|
6424 | fi
|
---|
6425 | done
|
---|
6426 |
|
---|
6427 |
|
---|
6428 |
|
---|
6429 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
6430 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
6431 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
6432 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6433 | else
|
---|
6434 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6435 | /* confdefs.h. */
|
---|
6436 | _ACEOF
|
---|
6437 | cat confdefs.h >>conftest.$ac_ext
|
---|
6438 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6439 | /* end confdefs.h. */
|
---|
6440 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
6441 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6442 | #define textdomain innocuous_textdomain
|
---|
6443 |
|
---|
6444 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6445 | which can conflict with char textdomain (); below.
|
---|
6446 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6447 | <limits.h> exists even on freestanding compilers. */
|
---|
6448 |
|
---|
6449 | #ifdef __STDC__
|
---|
6450 | # include <limits.h>
|
---|
6451 | #else
|
---|
6452 | # include <assert.h>
|
---|
6453 | #endif
|
---|
6454 |
|
---|
6455 | #undef textdomain
|
---|
6456 |
|
---|
6457 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6458 | #ifdef __cplusplus
|
---|
6459 | extern "C"
|
---|
6460 | {
|
---|
6461 | #endif
|
---|
6462 | /* We use char because int might match the return type of a gcc2
|
---|
6463 | builtin and then its argument prototype would still apply. */
|
---|
6464 | char textdomain ();
|
---|
6465 | /* The GNU C library defines this for functions which it implements
|
---|
6466 | to always fail with ENOSYS. Some functions are actually named
|
---|
6467 | something starting with __ and the normal name is an alias. */
|
---|
6468 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
6469 | choke me
|
---|
6470 | #else
|
---|
6471 | char (*f) () = textdomain;
|
---|
6472 | #endif
|
---|
6473 | #ifdef __cplusplus
|
---|
6474 | }
|
---|
6475 | #endif
|
---|
6476 |
|
---|
6477 | int
|
---|
6478 | main ()
|
---|
6479 | {
|
---|
6480 | return f != textdomain;
|
---|
6481 | ;
|
---|
6482 | return 0;
|
---|
6483 | }
|
---|
6484 | _ACEOF
|
---|
6485 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6487 | (eval $ac_link) 2>conftest.er1
|
---|
6488 | ac_status=$?
|
---|
6489 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6490 | rm -f conftest.er1
|
---|
6491 | cat conftest.err >&5
|
---|
6492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6493 | (exit $ac_status); } &&
|
---|
6494 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6495 | || test ! -s conftest.err'
|
---|
6496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6497 | (eval $ac_try) 2>&5
|
---|
6498 | ac_status=$?
|
---|
6499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6500 | (exit $ac_status); }; } &&
|
---|
6501 | { ac_try='test -s conftest$ac_exeext'
|
---|
6502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6503 | (eval $ac_try) 2>&5
|
---|
6504 | ac_status=$?
|
---|
6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6506 | (exit $ac_status); }; }; then
|
---|
6507 | ac_cv_func_textdomain=yes
|
---|
6508 | else
|
---|
6509 | echo "$as_me: failed program was:" >&5
|
---|
6510 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6511 |
|
---|
6512 | ac_cv_func_textdomain=no
|
---|
6513 | fi
|
---|
6514 | rm -f conftest.err conftest.$ac_objext \
|
---|
6515 | conftest$ac_exeext conftest.$ac_ext
|
---|
6516 | fi
|
---|
6517 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
6518 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
6519 | if test $ac_cv_func_textdomain = yes; then
|
---|
6520 | cat >>confdefs.h <<\_ACEOF
|
---|
6521 | #define ENABLE_NLS 1
|
---|
6522 | _ACEOF
|
---|
6523 |
|
---|
6524 | fi
|
---|
6525 |
|
---|
6526 |
|
---|
6527 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6528 | # ---------------------------------------------------------------------------
|
---|
6529 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
6530 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
6531 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6532 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6533 | echo "${ECHO_T}yes" >&6
|
---|
6534 | case $LIBOBJS in
|
---|
6535 | "gmalloc.$ac_objext" | \
|
---|
6536 | *" gmalloc.$ac_objext" | \
|
---|
6537 | "gmalloc.$ac_objext "* | \
|
---|
6538 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6539 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
6540 | esac
|
---|
6541 |
|
---|
6542 | cat >>confdefs.h <<\_ACEOF
|
---|
6543 | #define HAVE_VALLOC 1
|
---|
6544 | _ACEOF
|
---|
6545 |
|
---|
6546 | else
|
---|
6547 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6548 | echo "${ECHO_T}no" >&6
|
---|
6549 |
|
---|
6550 | for ac_func in valloc
|
---|
6551 | do
|
---|
6552 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6553 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6554 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6555 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6556 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6557 | else
|
---|
6558 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6559 | /* confdefs.h. */
|
---|
6560 | _ACEOF
|
---|
6561 | cat confdefs.h >>conftest.$ac_ext
|
---|
6562 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6563 | /* end confdefs.h. */
|
---|
6564 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6566 | #define $ac_func innocuous_$ac_func
|
---|
6567 |
|
---|
6568 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6569 | which can conflict with char $ac_func (); below.
|
---|
6570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6571 | <limits.h> exists even on freestanding compilers. */
|
---|
6572 |
|
---|
6573 | #ifdef __STDC__
|
---|
6574 | # include <limits.h>
|
---|
6575 | #else
|
---|
6576 | # include <assert.h>
|
---|
6577 | #endif
|
---|
6578 |
|
---|
6579 | #undef $ac_func
|
---|
6580 |
|
---|
6581 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6582 | #ifdef __cplusplus
|
---|
6583 | extern "C"
|
---|
6584 | {
|
---|
6585 | #endif
|
---|
6586 | /* We use char because int might match the return type of a gcc2
|
---|
6587 | builtin and then its argument prototype would still apply. */
|
---|
6588 | char $ac_func ();
|
---|
6589 | /* The GNU C library defines this for functions which it implements
|
---|
6590 | to always fail with ENOSYS. Some functions are actually named
|
---|
6591 | something starting with __ and the normal name is an alias. */
|
---|
6592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6593 | choke me
|
---|
6594 | #else
|
---|
6595 | char (*f) () = $ac_func;
|
---|
6596 | #endif
|
---|
6597 | #ifdef __cplusplus
|
---|
6598 | }
|
---|
6599 | #endif
|
---|
6600 |
|
---|
6601 | int
|
---|
6602 | main ()
|
---|
6603 | {
|
---|
6604 | return f != $ac_func;
|
---|
6605 | ;
|
---|
6606 | return 0;
|
---|
6607 | }
|
---|
6608 | _ACEOF
|
---|
6609 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6611 | (eval $ac_link) 2>conftest.er1
|
---|
6612 | ac_status=$?
|
---|
6613 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6614 | rm -f conftest.er1
|
---|
6615 | cat conftest.err >&5
|
---|
6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6617 | (exit $ac_status); } &&
|
---|
6618 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6619 | || test ! -s conftest.err'
|
---|
6620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6621 | (eval $ac_try) 2>&5
|
---|
6622 | ac_status=$?
|
---|
6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6624 | (exit $ac_status); }; } &&
|
---|
6625 | { ac_try='test -s conftest$ac_exeext'
|
---|
6626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6627 | (eval $ac_try) 2>&5
|
---|
6628 | ac_status=$?
|
---|
6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6630 | (exit $ac_status); }; }; then
|
---|
6631 | eval "$as_ac_var=yes"
|
---|
6632 | else
|
---|
6633 | echo "$as_me: failed program was:" >&5
|
---|
6634 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6635 |
|
---|
6636 | eval "$as_ac_var=no"
|
---|
6637 | fi
|
---|
6638 | rm -f conftest.err conftest.$ac_objext \
|
---|
6639 | conftest$ac_exeext conftest.$ac_ext
|
---|
6640 | fi
|
---|
6641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6642 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6643 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6644 | cat >>confdefs.h <<_ACEOF
|
---|
6645 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6646 | _ACEOF
|
---|
6647 |
|
---|
6648 | fi
|
---|
6649 | done
|
---|
6650 |
|
---|
6651 | fi
|
---|
6652 |
|
---|
6653 | # we cannot generate static libraries under Darwin
|
---|
6654 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
6655 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
6656 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6657 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6658 | echo "${ECHO_T}yes" >&6
|
---|
6659 | STATIC=""
|
---|
6660 | else
|
---|
6661 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6662 | echo "${ECHO_T}no" >&6
|
---|
6663 | STATIC="-static "
|
---|
6664 | fi
|
---|
6665 |
|
---|
6666 |
|
---|
6667 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
6668 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
6669 |
|
---|
6670 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
6671 | if test "${with_dmalloc+set}" = set; then
|
---|
6672 | withval="$with_dmalloc"
|
---|
6673 | if test "$withval" = yes; then
|
---|
6674 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6675 | echo "${ECHO_T}yes" >&6
|
---|
6676 | cat >>confdefs.h <<\_ACEOF
|
---|
6677 | #define WITH_DMALLOC 1
|
---|
6678 | _ACEOF
|
---|
6679 |
|
---|
6680 | LIBS="$LIBS -ldmalloc"
|
---|
6681 | LDFLAGS="$LDFLAGS -g"
|
---|
6682 | else
|
---|
6683 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6684 | echo "${ECHO_T}no" >&6
|
---|
6685 | fi
|
---|
6686 | else
|
---|
6687 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6688 | echo "${ECHO_T}no" >&6
|
---|
6689 | fi;
|
---|
6690 |
|
---|
6691 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
6692 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
6693 |
|
---|
6694 | # Check whether --with-regex or --without-regex was given.
|
---|
6695 | if test "${with_regex+set}" = set; then
|
---|
6696 | withval="$with_regex"
|
---|
6697 | if test "$withval" = yes; then
|
---|
6698 | ac_with_regex=1
|
---|
6699 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
6700 | echo "${ECHO_T}regex" >&6
|
---|
6701 | cat >>confdefs.h <<\_ACEOF
|
---|
6702 | #define WITH_REGEX 1
|
---|
6703 | _ACEOF
|
---|
6704 |
|
---|
6705 | case $LIBOBJS in
|
---|
6706 | "regex.$ac_objext" | \
|
---|
6707 | *" regex.$ac_objext" | \
|
---|
6708 | "regex.$ac_objext "* | \
|
---|
6709 | *" regex.$ac_objext "* ) ;;
|
---|
6710 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
6711 | esac
|
---|
6712 |
|
---|
6713 | fi
|
---|
6714 | fi;
|
---|
6715 | if test -z "$ac_with_regex"; then
|
---|
6716 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
6717 | echo "${ECHO_T}rx" >&6
|
---|
6718 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
6719 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
6720 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
6721 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6722 | else
|
---|
6723 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6724 | /* confdefs.h. */
|
---|
6725 | _ACEOF
|
---|
6726 | cat confdefs.h >>conftest.$ac_ext
|
---|
6727 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6728 | /* end confdefs.h. */
|
---|
6729 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
6730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6731 | #define re_rx_search innocuous_re_rx_search
|
---|
6732 |
|
---|
6733 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6734 | which can conflict with char re_rx_search (); below.
|
---|
6735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6736 | <limits.h> exists even on freestanding compilers. */
|
---|
6737 |
|
---|
6738 | #ifdef __STDC__
|
---|
6739 | # include <limits.h>
|
---|
6740 | #else
|
---|
6741 | # include <assert.h>
|
---|
6742 | #endif
|
---|
6743 |
|
---|
6744 | #undef re_rx_search
|
---|
6745 |
|
---|
6746 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6747 | #ifdef __cplusplus
|
---|
6748 | extern "C"
|
---|
6749 | {
|
---|
6750 | #endif
|
---|
6751 | /* We use char because int might match the return type of a gcc2
|
---|
6752 | builtin and then its argument prototype would still apply. */
|
---|
6753 | char re_rx_search ();
|
---|
6754 | /* The GNU C library defines this for functions which it implements
|
---|
6755 | to always fail with ENOSYS. Some functions are actually named
|
---|
6756 | something starting with __ and the normal name is an alias. */
|
---|
6757 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
6758 | choke me
|
---|
6759 | #else
|
---|
6760 | char (*f) () = re_rx_search;
|
---|
6761 | #endif
|
---|
6762 | #ifdef __cplusplus
|
---|
6763 | }
|
---|
6764 | #endif
|
---|
6765 |
|
---|
6766 | int
|
---|
6767 | main ()
|
---|
6768 | {
|
---|
6769 | return f != re_rx_search;
|
---|
6770 | ;
|
---|
6771 | return 0;
|
---|
6772 | }
|
---|
6773 | _ACEOF
|
---|
6774 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6776 | (eval $ac_link) 2>conftest.er1
|
---|
6777 | ac_status=$?
|
---|
6778 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6779 | rm -f conftest.er1
|
---|
6780 | cat conftest.err >&5
|
---|
6781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6782 | (exit $ac_status); } &&
|
---|
6783 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6784 | || test ! -s conftest.err'
|
---|
6785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6786 | (eval $ac_try) 2>&5
|
---|
6787 | ac_status=$?
|
---|
6788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6789 | (exit $ac_status); }; } &&
|
---|
6790 | { ac_try='test -s conftest$ac_exeext'
|
---|
6791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6792 | (eval $ac_try) 2>&5
|
---|
6793 | ac_status=$?
|
---|
6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6795 | (exit $ac_status); }; }; then
|
---|
6796 | ac_cv_func_re_rx_search=yes
|
---|
6797 | else
|
---|
6798 | echo "$as_me: failed program was:" >&5
|
---|
6799 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6800 |
|
---|
6801 | ac_cv_func_re_rx_search=no
|
---|
6802 | fi
|
---|
6803 | rm -f conftest.err conftest.$ac_objext \
|
---|
6804 | conftest$ac_exeext conftest.$ac_ext
|
---|
6805 | fi
|
---|
6806 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
6807 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
6808 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
6809 | :
|
---|
6810 | else
|
---|
6811 | case $LIBOBJS in
|
---|
6812 | "rx.$ac_objext" | \
|
---|
6813 | *" rx.$ac_objext" | \
|
---|
6814 | "rx.$ac_objext "* | \
|
---|
6815 | *" rx.$ac_objext "* ) ;;
|
---|
6816 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
6817 | esac
|
---|
6818 |
|
---|
6819 | fi
|
---|
6820 |
|
---|
6821 | fi
|
---|
6822 |
|
---|
6823 |
|
---|
6824 | # ---------------------------------------------------------------------------
|
---|
6825 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6826 | case $LIBOBJS in
|
---|
6827 | "xmalloc.$ac_objext" | \
|
---|
6828 | *" xmalloc.$ac_objext" | \
|
---|
6829 | "xmalloc.$ac_objext "* | \
|
---|
6830 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6831 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
6832 | esac
|
---|
6833 |
|
---|
6834 | case $LIBOBJS in
|
---|
6835 | "error.$ac_objext" | \
|
---|
6836 | *" error.$ac_objext" | \
|
---|
6837 | "error.$ac_objext "* | \
|
---|
6838 | *" error.$ac_objext "* ) ;;
|
---|
6839 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
6840 | esac
|
---|
6841 |
|
---|
6842 | fi
|
---|
6843 |
|
---|
6844 |
|
---|
6845 | # ---------------------------------------------------------------------------
|
---|
6846 |
|
---|
6847 | ac_ext=cc
|
---|
6848 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6849 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6850 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6851 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6852 |
|
---|
6853 |
|
---|
6854 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
6855 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
6856 | success="no"
|
---|
6857 | pl_path="$PATH"
|
---|
6858 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
6859 | for pl_dir in $pl_path; do
|
---|
6860 | test -z "$pl_dir" && pl_dir=.
|
---|
6861 | if test -x $pl_dir/perl; then
|
---|
6862 | success="yes"
|
---|
6863 | break
|
---|
6864 | fi
|
---|
6865 | done
|
---|
6866 | IFS="$pl_save_ifs"
|
---|
6867 |
|
---|
6868 | if test $success = "yes"; then
|
---|
6869 | try=`perl configtest.pl` || try="0"
|
---|
6870 | try=`expr $try \> 5.000`
|
---|
6871 | if test $try = "1"; then
|
---|
6872 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
6873 | echo "${ECHO_T}\"yes\"" >&6
|
---|
6874 | else
|
---|
6875 | success="no"
|
---|
6876 | fi
|
---|
6877 | fi
|
---|
6878 |
|
---|
6879 | if test $success = "no"; then
|
---|
6880 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
6881 | echo "${ECHO_T}\"no\"" >&6
|
---|
6882 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
6883 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
6884 | { (exit 1); exit 1; }; }
|
---|
6885 | fi
|
---|
6886 |
|
---|
6887 | success=no
|
---|
6888 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
6889 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
6890 |
|
---|
6891 |
|
---|
6892 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6893 | /* confdefs.h. */
|
---|
6894 | _ACEOF
|
---|
6895 | cat confdefs.h >>conftest.$ac_ext
|
---|
6896 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6897 | /* end confdefs.h. */
|
---|
6898 | #include <vector>
|
---|
6899 |
|
---|
6900 | int
|
---|
6901 | main ()
|
---|
6902 | {
|
---|
6903 |
|
---|
6904 | ;
|
---|
6905 | return 0;
|
---|
6906 | }
|
---|
6907 | _ACEOF
|
---|
6908 | rm -f conftest.$ac_objext
|
---|
6909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6910 | (eval $ac_compile) 2>conftest.er1
|
---|
6911 | ac_status=$?
|
---|
6912 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6913 | rm -f conftest.er1
|
---|
6914 | cat conftest.err >&5
|
---|
6915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6916 | (exit $ac_status); } &&
|
---|
6917 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6918 | || test ! -s conftest.err'
|
---|
6919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6920 | (eval $ac_try) 2>&5
|
---|
6921 | ac_status=$?
|
---|
6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6923 | (exit $ac_status); }; } &&
|
---|
6924 | { ac_try='test -s conftest.$ac_objext'
|
---|
6925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6926 | (eval $ac_try) 2>&5
|
---|
6927 | ac_status=$?
|
---|
6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6929 | (exit $ac_status); }; }; then
|
---|
6930 | success=yes
|
---|
6931 | else
|
---|
6932 | echo "$as_me: failed program was:" >&5
|
---|
6933 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6934 |
|
---|
6935 | fi
|
---|
6936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6937 |
|
---|
6938 | if test $success = "no"; then
|
---|
6939 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6940 | /* confdefs.h. */
|
---|
6941 | _ACEOF
|
---|
6942 | cat confdefs.h >>conftest.$ac_ext
|
---|
6943 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6944 | /* end confdefs.h. */
|
---|
6945 | #include <vector.h>
|
---|
6946 |
|
---|
6947 | int
|
---|
6948 | main ()
|
---|
6949 | {
|
---|
6950 |
|
---|
6951 | ;
|
---|
6952 | return 0;
|
---|
6953 | }
|
---|
6954 | _ACEOF
|
---|
6955 | rm -f conftest.$ac_objext
|
---|
6956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6957 | (eval $ac_compile) 2>conftest.er1
|
---|
6958 | ac_status=$?
|
---|
6959 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6960 | rm -f conftest.er1
|
---|
6961 | cat conftest.err >&5
|
---|
6962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6963 | (exit $ac_status); } &&
|
---|
6964 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6965 | || test ! -s conftest.err'
|
---|
6966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6967 | (eval $ac_try) 2>&5
|
---|
6968 | ac_status=$?
|
---|
6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6970 | (exit $ac_status); }; } &&
|
---|
6971 | { ac_try='test -s conftest.$ac_objext'
|
---|
6972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6973 | (eval $ac_try) 2>&5
|
---|
6974 | ac_status=$?
|
---|
6975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6976 | (exit $ac_status); }; }; then
|
---|
6977 | success="yes"
|
---|
6978 | else
|
---|
6979 | echo "$as_me: failed program was:" >&5
|
---|
6980 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6981 |
|
---|
6982 | fi
|
---|
6983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6984 | fi
|
---|
6985 |
|
---|
6986 | if test $success = "no"; then
|
---|
6987 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6988 | /* confdefs.h. */
|
---|
6989 | _ACEOF
|
---|
6990 | cat confdefs.h >>conftest.$ac_ext
|
---|
6991 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6992 | /* end confdefs.h. */
|
---|
6993 | #include <ospace\\std\\vector>
|
---|
6994 |
|
---|
6995 | int
|
---|
6996 | main ()
|
---|
6997 | {
|
---|
6998 |
|
---|
6999 | ;
|
---|
7000 | return 0;
|
---|
7001 | }
|
---|
7002 | _ACEOF
|
---|
7003 | rm -f conftest.$ac_objext
|
---|
7004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7005 | (eval $ac_compile) 2>conftest.er1
|
---|
7006 | ac_status=$?
|
---|
7007 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7008 | rm -f conftest.er1
|
---|
7009 | cat conftest.err >&5
|
---|
7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7011 | (exit $ac_status); } &&
|
---|
7012 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7013 | || test ! -s conftest.err'
|
---|
7014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7015 | (eval $ac_try) 2>&5
|
---|
7016 | ac_status=$?
|
---|
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7018 | (exit $ac_status); }; } &&
|
---|
7019 | { ac_try='test -s conftest.$ac_objext'
|
---|
7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7021 | (eval $ac_try) 2>&5
|
---|
7022 | ac_status=$?
|
---|
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7024 | (exit $ac_status); }; }; then
|
---|
7025 | success="yes"
|
---|
7026 | else
|
---|
7027 | echo "$as_me: failed program was:" >&5
|
---|
7028 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7029 |
|
---|
7030 | fi
|
---|
7031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7032 | fi
|
---|
7033 |
|
---|
7034 | if test $success = yes; then
|
---|
7035 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
7036 | echo "${ECHO_T}\"no\"" >&6
|
---|
7037 | else
|
---|
7038 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
7039 | echo "${ECHO_T}\"yes\"" >&6
|
---|
7040 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
7041 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
7042 | { (exit 1); exit 1; }; }
|
---|
7043 | fi
|
---|
7044 |
|
---|
7045 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
7046 | # check for running bash under cygwin
|
---|
7047 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
7048 | then
|
---|
7049 | gsdlos=windows
|
---|
7050 | fi
|
---|
7051 |
|
---|
7052 |
|
---|
7053 | # check for endianness
|
---|
7054 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
7055 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
7056 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
7057 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7058 | else
|
---|
7059 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
7060 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7061 | /* confdefs.h. */
|
---|
7062 | _ACEOF
|
---|
7063 | cat confdefs.h >>conftest.$ac_ext
|
---|
7064 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7065 | /* end confdefs.h. */
|
---|
7066 | #include <sys/types.h>
|
---|
7067 | #include <sys/param.h>
|
---|
7068 |
|
---|
7069 | int
|
---|
7070 | main ()
|
---|
7071 | {
|
---|
7072 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
7073 | bogus endian macros
|
---|
7074 | #endif
|
---|
7075 |
|
---|
7076 | ;
|
---|
7077 | return 0;
|
---|
7078 | }
|
---|
7079 | _ACEOF
|
---|
7080 | rm -f conftest.$ac_objext
|
---|
7081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7082 | (eval $ac_compile) 2>conftest.er1
|
---|
7083 | ac_status=$?
|
---|
7084 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7085 | rm -f conftest.er1
|
---|
7086 | cat conftest.err >&5
|
---|
7087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7088 | (exit $ac_status); } &&
|
---|
7089 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7090 | || test ! -s conftest.err'
|
---|
7091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7092 | (eval $ac_try) 2>&5
|
---|
7093 | ac_status=$?
|
---|
7094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7095 | (exit $ac_status); }; } &&
|
---|
7096 | { ac_try='test -s conftest.$ac_objext'
|
---|
7097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7098 | (eval $ac_try) 2>&5
|
---|
7099 | ac_status=$?
|
---|
7100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7101 | (exit $ac_status); }; }; then
|
---|
7102 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
7103 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7104 | /* confdefs.h. */
|
---|
7105 | _ACEOF
|
---|
7106 | cat confdefs.h >>conftest.$ac_ext
|
---|
7107 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7108 | /* end confdefs.h. */
|
---|
7109 | #include <sys/types.h>
|
---|
7110 | #include <sys/param.h>
|
---|
7111 |
|
---|
7112 | int
|
---|
7113 | main ()
|
---|
7114 | {
|
---|
7115 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
7116 | not big endian
|
---|
7117 | #endif
|
---|
7118 |
|
---|
7119 | ;
|
---|
7120 | return 0;
|
---|
7121 | }
|
---|
7122 | _ACEOF
|
---|
7123 | rm -f conftest.$ac_objext
|
---|
7124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7125 | (eval $ac_compile) 2>conftest.er1
|
---|
7126 | ac_status=$?
|
---|
7127 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7128 | rm -f conftest.er1
|
---|
7129 | cat conftest.err >&5
|
---|
7130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7131 | (exit $ac_status); } &&
|
---|
7132 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7133 | || test ! -s conftest.err'
|
---|
7134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7135 | (eval $ac_try) 2>&5
|
---|
7136 | ac_status=$?
|
---|
7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7138 | (exit $ac_status); }; } &&
|
---|
7139 | { ac_try='test -s conftest.$ac_objext'
|
---|
7140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7141 | (eval $ac_try) 2>&5
|
---|
7142 | ac_status=$?
|
---|
7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7144 | (exit $ac_status); }; }; then
|
---|
7145 | ac_cv_c_bigendian=yes
|
---|
7146 | else
|
---|
7147 | echo "$as_me: failed program was:" >&5
|
---|
7148 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7149 |
|
---|
7150 | ac_cv_c_bigendian=no
|
---|
7151 | fi
|
---|
7152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7153 | else
|
---|
7154 | echo "$as_me: failed program was:" >&5
|
---|
7155 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7156 |
|
---|
7157 | # It does not; compile a test program.
|
---|
7158 | if test "$cross_compiling" = yes; then
|
---|
7159 | # try to guess the endianness by grepping values into an object file
|
---|
7160 | ac_cv_c_bigendian=unknown
|
---|
7161 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7162 | /* confdefs.h. */
|
---|
7163 | _ACEOF
|
---|
7164 | cat confdefs.h >>conftest.$ac_ext
|
---|
7165 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7166 | /* end confdefs.h. */
|
---|
7167 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
7168 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
7169 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
7170 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
7171 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
7172 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
7173 | int
|
---|
7174 | main ()
|
---|
7175 | {
|
---|
7176 | _ascii (); _ebcdic ();
|
---|
7177 | ;
|
---|
7178 | return 0;
|
---|
7179 | }
|
---|
7180 | _ACEOF
|
---|
7181 | rm -f conftest.$ac_objext
|
---|
7182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7183 | (eval $ac_compile) 2>conftest.er1
|
---|
7184 | ac_status=$?
|
---|
7185 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7186 | rm -f conftest.er1
|
---|
7187 | cat conftest.err >&5
|
---|
7188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7189 | (exit $ac_status); } &&
|
---|
7190 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7191 | || test ! -s conftest.err'
|
---|
7192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7193 | (eval $ac_try) 2>&5
|
---|
7194 | ac_status=$?
|
---|
7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7196 | (exit $ac_status); }; } &&
|
---|
7197 | { ac_try='test -s conftest.$ac_objext'
|
---|
7198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7199 | (eval $ac_try) 2>&5
|
---|
7200 | ac_status=$?
|
---|
7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7202 | (exit $ac_status); }; }; then
|
---|
7203 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
7204 | ac_cv_c_bigendian=yes
|
---|
7205 | fi
|
---|
7206 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
7207 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
7208 | ac_cv_c_bigendian=no
|
---|
7209 | else
|
---|
7210 | # finding both strings is unlikely to happen, but who knows?
|
---|
7211 | ac_cv_c_bigendian=unknown
|
---|
7212 | fi
|
---|
7213 | fi
|
---|
7214 | else
|
---|
7215 | echo "$as_me: failed program was:" >&5
|
---|
7216 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7217 |
|
---|
7218 | fi
|
---|
7219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7220 | else
|
---|
7221 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7222 | /* confdefs.h. */
|
---|
7223 | _ACEOF
|
---|
7224 | cat confdefs.h >>conftest.$ac_ext
|
---|
7225 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7226 | /* end confdefs.h. */
|
---|
7227 | int
|
---|
7228 | main ()
|
---|
7229 | {
|
---|
7230 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
7231 | union
|
---|
7232 | {
|
---|
7233 | long l;
|
---|
7234 | char c[sizeof (long)];
|
---|
7235 | } u;
|
---|
7236 | u.l = 1;
|
---|
7237 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
7238 | }
|
---|
7239 | _ACEOF
|
---|
7240 | rm -f conftest$ac_exeext
|
---|
7241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7242 | (eval $ac_link) 2>&5
|
---|
7243 | ac_status=$?
|
---|
7244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7245 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7247 | (eval $ac_try) 2>&5
|
---|
7248 | ac_status=$?
|
---|
7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7250 | (exit $ac_status); }; }; then
|
---|
7251 | ac_cv_c_bigendian=no
|
---|
7252 | else
|
---|
7253 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
7254 | echo "$as_me: failed program was:" >&5
|
---|
7255 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7256 |
|
---|
7257 | ( exit $ac_status )
|
---|
7258 | ac_cv_c_bigendian=yes
|
---|
7259 | fi
|
---|
7260 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
7261 | fi
|
---|
7262 | fi
|
---|
7263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7264 | fi
|
---|
7265 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
7266 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
7267 | case $ac_cv_c_bigendian in
|
---|
7268 | yes)
|
---|
7269 |
|
---|
7270 | cat >>confdefs.h <<\_ACEOF
|
---|
7271 | #define WORDS_BIGENDIAN 1
|
---|
7272 | _ACEOF
|
---|
7273 | ;;
|
---|
7274 | no)
|
---|
7275 | ;;
|
---|
7276 | *)
|
---|
7277 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
7278 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
7279 | echo "$as_me: error: unknown endianness
|
---|
7280 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
7281 | { (exit 1); exit 1; }; } ;;
|
---|
7282 | esac
|
---|
7283 |
|
---|
7284 | # ---------------------------------------------------------------------------
|
---|
7285 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
7286 | case $LIBOBJS in
|
---|
7287 | "xmalloc.o.$ac_objext" | \
|
---|
7288 | *" xmalloc.o.$ac_objext" | \
|
---|
7289 | "xmalloc.o.$ac_objext "* | \
|
---|
7290 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
7291 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
7292 | esac
|
---|
7293 |
|
---|
7294 | case $LIBOBJS in
|
---|
7295 | "error.$ac_objext" | \
|
---|
7296 | *" error.$ac_objext" | \
|
---|
7297 | "error.$ac_objext "* | \
|
---|
7298 | *" error.$ac_objext "* ) ;;
|
---|
7299 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
7300 | esac
|
---|
7301 |
|
---|
7302 | fi
|
---|
7303 |
|
---|
7304 | # ---------------------------------------------------------------------------
|
---|
7305 |
|
---|
7306 | moduleDirs=""
|
---|
7307 | MODULEDIRS=""
|
---|
7308 | if test -d modules ; then
|
---|
7309 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
7310 | if test -d "$x"; then
|
---|
7311 | d="$x/Makefile.in"
|
---|
7312 | if test -e "$d"; then
|
---|
7313 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
7314 | MODULEDIRS="$MODULEDIRS $x"
|
---|
7315 | fi
|
---|
7316 | fi
|
---|
7317 | done
|
---|
7318 | echo "Making $moduleDirs in modules directory"
|
---|
7319 |
|
---|
7320 | fi
|
---|
7321 |
|
---|
7322 |
|
---|
7323 | # ---------------------------------------------------------------------------
|
---|
7324 |
|
---|
7325 | # indexers needs a bindir option to get the binaries into the right place
|
---|
7326 | gsdlprefix=`pwd`
|
---|
7327 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
7328 |
|
---|
7329 |
|
---|
7330 | subdirs="$subdirs common-src"
|
---|
7331 |
|
---|
7332 |
|
---|
7333 |
|
---|
7334 | subdirs="$subdirs build-src"
|
---|
7335 |
|
---|
7336 |
|
---|
7337 | # the list of folders in the src folder
|
---|
7338 | srclist="common-src/Makefile \
|
---|
7339 | build-src/Makefile"
|
---|
7340 |
|
---|
7341 | if test -d runtime-src; then
|
---|
7342 |
|
---|
7343 |
|
---|
7344 | subdirs="$subdirs runtime-src"
|
---|
7345 |
|
---|
7346 | srclist="$srclist \
|
---|
7347 | runtime-src/Makefile"
|
---|
7348 | fi
|
---|
7349 |
|
---|
7350 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
7351 | cat >confcache <<\_ACEOF
|
---|
7352 | # This file is a shell script that caches the results of configure
|
---|
7353 | # tests run on this system so they can be shared between configure
|
---|
7354 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7355 | # It is not useful on other systems. If it contains results you don't
|
---|
7356 | # want to keep, you may remove or edit it.
|
---|
7357 | #
|
---|
7358 | # config.status only pays attention to the cache file if you give it
|
---|
7359 | # the --recheck option to rerun configure.
|
---|
7360 | #
|
---|
7361 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7362 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7363 | # following values.
|
---|
7364 |
|
---|
7365 | _ACEOF
|
---|
7366 |
|
---|
7367 | # The following way of writing the cache mishandles newlines in values,
|
---|
7368 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7369 | # So, don't put newlines in cache variables' values.
|
---|
7370 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7371 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7372 | {
|
---|
7373 | (set) 2>&1 |
|
---|
7374 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7375 | *ac_space=\ *)
|
---|
7376 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
7377 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
7378 | sed -n \
|
---|
7379 | "s/'/'\\\\''/g;
|
---|
7380 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7381 | ;;
|
---|
7382 | *)
|
---|
7383 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7384 | sed -n \
|
---|
7385 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
7386 | ;;
|
---|
7387 | esac;
|
---|
7388 | } |
|
---|
7389 | sed '
|
---|
7390 | t clear
|
---|
7391 | : clear
|
---|
7392 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7393 | t end
|
---|
7394 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7395 | : end' >>confcache
|
---|
7396 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
7397 | if test -w $cache_file; then
|
---|
7398 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
7399 | cat confcache >$cache_file
|
---|
7400 | else
|
---|
7401 | echo "not updating unwritable cache $cache_file"
|
---|
7402 | fi
|
---|
7403 | fi
|
---|
7404 | rm -f confcache
|
---|
7405 |
|
---|
7406 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7407 | # Let make expand exec_prefix.
|
---|
7408 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7409 |
|
---|
7410 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
7411 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
7412 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7413 | # (actually we leave an empty line to preserve line numbers).
|
---|
7414 | if test "x$srcdir" = x.; then
|
---|
7415 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
7416 | s/:*\$(srcdir):*/:/;
|
---|
7417 | s/:*\${srcdir}:*/:/;
|
---|
7418 | s/:*@srcdir@:*/:/;
|
---|
7419 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
7420 | s/:*$//;
|
---|
7421 | s/^[^=]*=[ ]*$//;
|
---|
7422 | }'
|
---|
7423 | fi
|
---|
7424 |
|
---|
7425 | DEFS=-DHAVE_CONFIG_H
|
---|
7426 |
|
---|
7427 | ac_libobjs=
|
---|
7428 | ac_ltlibobjs=
|
---|
7429 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7430 | # 1. Remove the extension, and $U if already installed.
|
---|
7431 | ac_i=`echo "$ac_i" |
|
---|
7432 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
7433 | # 2. Add them.
|
---|
7434 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
7435 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
7436 | done
|
---|
7437 | LIBOBJS=$ac_libobjs
|
---|
7438 |
|
---|
7439 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7440 |
|
---|
7441 |
|
---|
7442 |
|
---|
7443 | : ${CONFIG_STATUS=./config.status}
|
---|
7444 | ac_clean_files_save=$ac_clean_files
|
---|
7445 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7446 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
7447 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7448 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
7449 | #! $SHELL
|
---|
7450 | # Generated by $as_me.
|
---|
7451 | # Run this file to recreate the current configuration.
|
---|
7452 | # Compiler output produced by configure, useful for debugging
|
---|
7453 | # configure, is in config.log if it exists.
|
---|
7454 |
|
---|
7455 | debug=false
|
---|
7456 | ac_cs_recheck=false
|
---|
7457 | ac_cs_silent=false
|
---|
7458 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7459 | _ACEOF
|
---|
7460 |
|
---|
7461 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7462 | ## --------------------- ##
|
---|
7463 | ## M4sh Initialization. ##
|
---|
7464 | ## --------------------- ##
|
---|
7465 |
|
---|
7466 | # Be Bourne compatible
|
---|
7467 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
7468 | emulate sh
|
---|
7469 | NULLCMD=:
|
---|
7470 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
7471 | # is contrary to our usage. Disable this feature.
|
---|
7472 | alias -g '${1+"$@"}'='"$@"'
|
---|
7473 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
7474 | set -o posix
|
---|
7475 | fi
|
---|
7476 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7477 |
|
---|
7478 | # Support unset when possible.
|
---|
7479 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
7480 | as_unset=unset
|
---|
7481 | else
|
---|
7482 | as_unset=false
|
---|
7483 | fi
|
---|
7484 |
|
---|
7485 |
|
---|
7486 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
7487 | $as_unset ENV MAIL MAILPATH
|
---|
7488 | PS1='$ '
|
---|
7489 | PS2='> '
|
---|
7490 | PS4='+ '
|
---|
7491 |
|
---|
7492 | # NLS nuisances.
|
---|
7493 | for as_var in \
|
---|
7494 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
7495 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
7496 | LC_TELEPHONE LC_TIME
|
---|
7497 | do
|
---|
7498 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
7499 | eval $as_var=C; export $as_var
|
---|
7500 | else
|
---|
7501 | $as_unset $as_var
|
---|
7502 | fi
|
---|
7503 | done
|
---|
7504 |
|
---|
7505 | # Required to use basename.
|
---|
7506 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7507 | as_expr=expr
|
---|
7508 | else
|
---|
7509 | as_expr=false
|
---|
7510 | fi
|
---|
7511 |
|
---|
7512 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
7513 | as_basename=basename
|
---|
7514 | else
|
---|
7515 | as_basename=false
|
---|
7516 | fi
|
---|
7517 |
|
---|
7518 |
|
---|
7519 | # Name of the executable.
|
---|
7520 | as_me=`$as_basename "$0" ||
|
---|
7521 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7522 | X"$0" : 'X\(//\)$' \| \
|
---|
7523 | X"$0" : 'X\(/\)$' \| \
|
---|
7524 | . : '\(.\)' 2>/dev/null ||
|
---|
7525 | echo X/"$0" |
|
---|
7526 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
7527 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
7528 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
7529 | s/.*/./; q'`
|
---|
7530 |
|
---|
7531 |
|
---|
7532 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
7533 | # Avoid depending upon Character Ranges.
|
---|
7534 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7535 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7536 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7537 | as_cr_digits='0123456789'
|
---|
7538 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7539 |
|
---|
7540 | # The user is always right.
|
---|
7541 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7542 | echo "#! /bin/sh" >conf$$.sh
|
---|
7543 | echo "exit 0" >>conf$$.sh
|
---|
7544 | chmod +x conf$$.sh
|
---|
7545 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
7546 | PATH_SEPARATOR=';'
|
---|
7547 | else
|
---|
7548 | PATH_SEPARATOR=:
|
---|
7549 | fi
|
---|
7550 | rm -f conf$$.sh
|
---|
7551 | fi
|
---|
7552 |
|
---|
7553 |
|
---|
7554 | as_lineno_1=$LINENO
|
---|
7555 | as_lineno_2=$LINENO
|
---|
7556 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7557 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7558 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
7559 | # Find who we are. Look in the path if we contain no path at all
|
---|
7560 | # relative or not.
|
---|
7561 | case $0 in
|
---|
7562 | *[\\/]* ) as_myself=$0 ;;
|
---|
7563 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7564 | for as_dir in $PATH
|
---|
7565 | do
|
---|
7566 | IFS=$as_save_IFS
|
---|
7567 | test -z "$as_dir" && as_dir=.
|
---|
7568 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7569 | done
|
---|
7570 |
|
---|
7571 | ;;
|
---|
7572 | esac
|
---|
7573 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7574 | # in which case we are not to be found in the path.
|
---|
7575 | if test "x$as_myself" = x; then
|
---|
7576 | as_myself=$0
|
---|
7577 | fi
|
---|
7578 | if test ! -f "$as_myself"; then
|
---|
7579 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
7580 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
7581 | { (exit 1); exit 1; }; }
|
---|
7582 | fi
|
---|
7583 | case $CONFIG_SHELL in
|
---|
7584 | '')
|
---|
7585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7586 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
7587 | do
|
---|
7588 | IFS=$as_save_IFS
|
---|
7589 | test -z "$as_dir" && as_dir=.
|
---|
7590 | for as_base in sh bash ksh sh5; do
|
---|
7591 | case $as_dir in
|
---|
7592 | /*)
|
---|
7593 | if ("$as_dir/$as_base" -c '
|
---|
7594 | as_lineno_1=$LINENO
|
---|
7595 | as_lineno_2=$LINENO
|
---|
7596 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7597 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7598 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
7599 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
7600 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
7601 | CONFIG_SHELL=$as_dir/$as_base
|
---|
7602 | export CONFIG_SHELL
|
---|
7603 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
7604 | fi;;
|
---|
7605 | esac
|
---|
7606 | done
|
---|
7607 | done
|
---|
7608 | ;;
|
---|
7609 | esac
|
---|
7610 |
|
---|
7611 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
7612 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
7613 | # line-number line before each line; the second 'sed' does the real
|
---|
7614 | # work. The second script uses 'N' to pair each line-number line
|
---|
7615 | # with the numbered line, and appends trailing '-' during
|
---|
7616 | # substitution so that $LINENO is not a special case at line end.
|
---|
7617 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
7618 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
7619 | sed '=' <$as_myself |
|
---|
7620 | sed '
|
---|
7621 | N
|
---|
7622 | s,$,-,
|
---|
7623 | : loop
|
---|
7624 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
7625 | t loop
|
---|
7626 | s,-$,,
|
---|
7627 | s,^['$as_cr_digits']*\n,,
|
---|
7628 | ' >$as_me.lineno &&
|
---|
7629 | chmod +x $as_me.lineno ||
|
---|
7630 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
7631 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
7632 | { (exit 1); exit 1; }; }
|
---|
7633 |
|
---|
7634 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
7635 | # (the dirname of $[0] is not the place where we might find the
|
---|
7636 | # original and so on. Autoconf is especially sensible to this).
|
---|
7637 | . ./$as_me.lineno
|
---|
7638 | # Exit status is that of the last command.
|
---|
7639 | exit
|
---|
7640 | }
|
---|
7641 |
|
---|
7642 |
|
---|
7643 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
7644 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
7645 | ' ECHO_T=' ' ;;
|
---|
7646 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
7647 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
7648 | esac
|
---|
7649 |
|
---|
7650 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7651 | as_expr=expr
|
---|
7652 | else
|
---|
7653 | as_expr=false
|
---|
7654 | fi
|
---|
7655 |
|
---|
7656 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7657 | echo >conf$$.file
|
---|
7658 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7659 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
7660 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
7661 | if test -f conf$$.exe; then
|
---|
7662 | # Don't use ln at all; we don't have any links
|
---|
7663 | as_ln_s='cp -p'
|
---|
7664 | else
|
---|
7665 | as_ln_s='ln -s'
|
---|
7666 | fi
|
---|
7667 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7668 | as_ln_s=ln
|
---|
7669 | else
|
---|
7670 | as_ln_s='cp -p'
|
---|
7671 | fi
|
---|
7672 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7673 |
|
---|
7674 | if mkdir -p . 2>/dev/null; then
|
---|
7675 | as_mkdir_p=:
|
---|
7676 | else
|
---|
7677 | test -d ./-p && rmdir ./-p
|
---|
7678 | as_mkdir_p=false
|
---|
7679 | fi
|
---|
7680 |
|
---|
7681 | as_executable_p="test -f"
|
---|
7682 |
|
---|
7683 | # Sed expression to map a string onto a valid CPP name.
|
---|
7684 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7685 |
|
---|
7686 | # Sed expression to map a string onto a valid variable name.
|
---|
7687 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7688 |
|
---|
7689 |
|
---|
7690 | # IFS
|
---|
7691 | # We need space, tab and new line, in precisely that order.
|
---|
7692 | as_nl='
|
---|
7693 | '
|
---|
7694 | IFS=" $as_nl"
|
---|
7695 |
|
---|
7696 | # CDPATH.
|
---|
7697 | $as_unset CDPATH
|
---|
7698 |
|
---|
7699 | exec 6>&1
|
---|
7700 |
|
---|
7701 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
7702 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7703 | # values after options handling. Logging --version etc. is OK.
|
---|
7704 | exec 5>>config.log
|
---|
7705 | {
|
---|
7706 | echo
|
---|
7707 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7708 | ## Running $as_me. ##
|
---|
7709 | _ASBOX
|
---|
7710 | } >&5
|
---|
7711 | cat >&5 <<_CSEOF
|
---|
7712 |
|
---|
7713 | This file was extended by $as_me, which was
|
---|
7714 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
7715 |
|
---|
7716 | CONFIG_FILES = $CONFIG_FILES
|
---|
7717 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7718 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7719 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7720 | $ $0 $@
|
---|
7721 |
|
---|
7722 | _CSEOF
|
---|
7723 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
7724 | echo >&5
|
---|
7725 | _ACEOF
|
---|
7726 |
|
---|
7727 | # Files that config.status was made for.
|
---|
7728 | if test -n "$ac_config_files"; then
|
---|
7729 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
7730 | fi
|
---|
7731 |
|
---|
7732 | if test -n "$ac_config_headers"; then
|
---|
7733 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
7734 | fi
|
---|
7735 |
|
---|
7736 | if test -n "$ac_config_links"; then
|
---|
7737 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
7738 | fi
|
---|
7739 |
|
---|
7740 | if test -n "$ac_config_commands"; then
|
---|
7741 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
7742 | fi
|
---|
7743 |
|
---|
7744 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7745 |
|
---|
7746 | ac_cs_usage="\
|
---|
7747 | \`$as_me' instantiates files from templates according to the
|
---|
7748 | current configuration.
|
---|
7749 |
|
---|
7750 | Usage: $0 [OPTIONS] [FILE]...
|
---|
7751 |
|
---|
7752 | -h, --help print this help, then exit
|
---|
7753 | -V, --version print version number, then exit
|
---|
7754 | -q, --quiet do not print progress messages
|
---|
7755 | -d, --debug don't remove temporary files
|
---|
7756 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7757 | --file=FILE[:TEMPLATE]
|
---|
7758 | instantiate the configuration file FILE
|
---|
7759 | --header=FILE[:TEMPLATE]
|
---|
7760 | instantiate the configuration header FILE
|
---|
7761 |
|
---|
7762 | Configuration files:
|
---|
7763 | $config_files
|
---|
7764 |
|
---|
7765 | Configuration headers:
|
---|
7766 | $config_headers
|
---|
7767 |
|
---|
7768 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
7769 | _ACEOF
|
---|
7770 |
|
---|
7771 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7772 | ac_cs_version="\\
|
---|
7773 | config.status
|
---|
7774 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
7775 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
7776 |
|
---|
7777 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
7778 | This config.status script is free software; the Free Software Foundation
|
---|
7779 | gives unlimited permission to copy, distribute and modify it."
|
---|
7780 | srcdir=$srcdir
|
---|
7781 | INSTALL="$INSTALL"
|
---|
7782 | _ACEOF
|
---|
7783 |
|
---|
7784 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7785 | # If no file are specified by the user, then we need to provide default
|
---|
7786 | # value. By we need to know if files were specified by the user.
|
---|
7787 | ac_need_defaults=:
|
---|
7788 | while test $# != 0
|
---|
7789 | do
|
---|
7790 | case $1 in
|
---|
7791 | --*=*)
|
---|
7792 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
7793 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
7794 | ac_shift=:
|
---|
7795 | ;;
|
---|
7796 | -*)
|
---|
7797 | ac_option=$1
|
---|
7798 | ac_optarg=$2
|
---|
7799 | ac_shift=shift
|
---|
7800 | ;;
|
---|
7801 | *) # This is not an option, so the user has probably given explicit
|
---|
7802 | # arguments.
|
---|
7803 | ac_option=$1
|
---|
7804 | ac_need_defaults=false;;
|
---|
7805 | esac
|
---|
7806 |
|
---|
7807 | case $ac_option in
|
---|
7808 | # Handling of the options.
|
---|
7809 | _ACEOF
|
---|
7810 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7811 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7812 | ac_cs_recheck=: ;;
|
---|
7813 | --version | --vers* | -V )
|
---|
7814 | echo "$ac_cs_version"; exit 0 ;;
|
---|
7815 | --he | --h)
|
---|
7816 | # Conflict between --help and --header
|
---|
7817 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
7818 | Try \`$0 --help' for more information." >&5
|
---|
7819 | echo "$as_me: error: ambiguous option: $1
|
---|
7820 | Try \`$0 --help' for more information." >&2;}
|
---|
7821 | { (exit 1); exit 1; }; };;
|
---|
7822 | --help | --hel | -h )
|
---|
7823 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
7824 | --debug | --d* | -d )
|
---|
7825 | debug=: ;;
|
---|
7826 | --file | --fil | --fi | --f )
|
---|
7827 | $ac_shift
|
---|
7828 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
7829 | ac_need_defaults=false;;
|
---|
7830 | --header | --heade | --head | --hea )
|
---|
7831 | $ac_shift
|
---|
7832 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
7833 | ac_need_defaults=false;;
|
---|
7834 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7835 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7836 | ac_cs_silent=: ;;
|
---|
7837 |
|
---|
7838 | # This is an error.
|
---|
7839 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
7840 | Try \`$0 --help' for more information." >&5
|
---|
7841 | echo "$as_me: error: unrecognized option: $1
|
---|
7842 | Try \`$0 --help' for more information." >&2;}
|
---|
7843 | { (exit 1); exit 1; }; } ;;
|
---|
7844 |
|
---|
7845 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
7846 |
|
---|
7847 | esac
|
---|
7848 | shift
|
---|
7849 | done
|
---|
7850 |
|
---|
7851 | ac_configure_extra_args=
|
---|
7852 |
|
---|
7853 | if $ac_cs_silent; then
|
---|
7854 | exec 6>/dev/null
|
---|
7855 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7856 | fi
|
---|
7857 |
|
---|
7858 | _ACEOF
|
---|
7859 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7860 | if \$ac_cs_recheck; then
|
---|
7861 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
7862 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7863 | fi
|
---|
7864 |
|
---|
7865 | _ACEOF
|
---|
7866 |
|
---|
7867 |
|
---|
7868 |
|
---|
7869 |
|
---|
7870 |
|
---|
7871 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7872 | for ac_config_target in $ac_config_targets
|
---|
7873 | do
|
---|
7874 | case "$ac_config_target" in
|
---|
7875 | # Handling of arguments.
|
---|
7876 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7877 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
7878 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
7879 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7880 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
7881 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
7882 | { (exit 1); exit 1; }; };;
|
---|
7883 | esac
|
---|
7884 | done
|
---|
7885 |
|
---|
7886 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7887 | # then the envvar interface is used. Set only those that are not.
|
---|
7888 | # We use the long form for the default assignment because of an extremely
|
---|
7889 | # bizarre bug on SunOS 4.1.3.
|
---|
7890 | if $ac_need_defaults; then
|
---|
7891 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7892 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7893 | fi
|
---|
7894 |
|
---|
7895 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7896 | # simply because there is no reason to put it here, and in addition,
|
---|
7897 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7898 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
7899 | $debug ||
|
---|
7900 | {
|
---|
7901 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
7902 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
7903 | }
|
---|
7904 |
|
---|
7905 | # Create a (secure) tmp directory for tmp files.
|
---|
7906 |
|
---|
7907 | {
|
---|
7908 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
7909 | test -n "$tmp" && test -d "$tmp"
|
---|
7910 | } ||
|
---|
7911 | {
|
---|
7912 | tmp=./confstat$$-$RANDOM
|
---|
7913 | (umask 077 && mkdir $tmp)
|
---|
7914 | } ||
|
---|
7915 | {
|
---|
7916 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
7917 | { (exit 1); exit 1; }
|
---|
7918 | }
|
---|
7919 |
|
---|
7920 | _ACEOF
|
---|
7921 |
|
---|
7922 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7923 |
|
---|
7924 | #
|
---|
7925 | # CONFIG_FILES section.
|
---|
7926 | #
|
---|
7927 |
|
---|
7928 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
7929 | # This happens for instance when ./config.status config.h
|
---|
7930 | if test -n "\$CONFIG_FILES"; then
|
---|
7931 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7932 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
7933 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
7934 | s,@SHELL@,$SHELL,;t t
|
---|
7935 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
7936 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
7937 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
7938 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
7939 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
7940 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
7941 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
7942 | s,@prefix@,$prefix,;t t
|
---|
7943 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
7944 | s,@bindir@,$bindir,;t t
|
---|
7945 | s,@sbindir@,$sbindir,;t t
|
---|
7946 | s,@libexecdir@,$libexecdir,;t t
|
---|
7947 | s,@datadir@,$datadir,;t t
|
---|
7948 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
7949 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
7950 | s,@localstatedir@,$localstatedir,;t t
|
---|
7951 | s,@libdir@,$libdir,;t t
|
---|
7952 | s,@includedir@,$includedir,;t t
|
---|
7953 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
7954 | s,@infodir@,$infodir,;t t
|
---|
7955 | s,@mandir@,$mandir,;t t
|
---|
7956 | s,@build_alias@,$build_alias,;t t
|
---|
7957 | s,@host_alias@,$host_alias,;t t
|
---|
7958 | s,@target_alias@,$target_alias,;t t
|
---|
7959 | s,@DEFS@,$DEFS,;t t
|
---|
7960 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
7961 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
7962 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
7963 | s,@LIBS@,$LIBS,;t t
|
---|
7964 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
7965 | s,@VERSION@,$VERSION,;t t
|
---|
7966 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
7967 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
7968 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
7969 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
7970 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
7971 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
7972 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
7973 | s,@ENABLE_JDBM@,$ENABLE_JDBM,;t t
|
---|
7974 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
7975 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
7976 | s,@ENABLE_JNI@,$ENABLE_JNI,;t t
|
---|
7977 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
7978 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
7979 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
7980 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
7981 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
7982 | s,@CC@,$CC,;t t
|
---|
7983 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
7984 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
7985 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
7986 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
7987 | s,@CXX@,$CXX,;t t
|
---|
7988 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
7989 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
7990 | s,@AWK@,$AWK,;t t
|
---|
7991 | s,@YACC@,$YACC,;t t
|
---|
7992 | s,@build@,$build,;t t
|
---|
7993 | s,@build_cpu@,$build_cpu,;t t
|
---|
7994 | s,@build_vendor@,$build_vendor,;t t
|
---|
7995 | s,@build_os@,$build_os,;t t
|
---|
7996 | s,@host@,$host,;t t
|
---|
7997 | s,@host_cpu@,$host_cpu,;t t
|
---|
7998 | s,@host_vendor@,$host_vendor,;t t
|
---|
7999 | s,@host_os@,$host_os,;t t
|
---|
8000 | s,@target@,$target,;t t
|
---|
8001 | s,@target_cpu@,$target_cpu,;t t
|
---|
8002 | s,@target_vendor@,$target_vendor,;t t
|
---|
8003 | s,@target_os@,$target_os,;t t
|
---|
8004 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
8005 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
8006 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
8007 | s,@LN_S@,$LN_S,;t t
|
---|
8008 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
8009 | s,@RANLIB@,$RANLIB,;t t
|
---|
8010 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
8011 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
8012 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
8013 | s,@CPP@,$CPP,;t t
|
---|
8014 | s,@EGREP@,$EGREP,;t t
|
---|
8015 | s,@U@,$U,;t t
|
---|
8016 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
8017 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
8018 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
8019 | s,@STATIC@,$STATIC,;t t
|
---|
8020 | s,@gsdlos@,$gsdlos,;t t
|
---|
8021 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
8022 | s,@subdirs@,$subdirs,;t t
|
---|
8023 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
8024 | CEOF
|
---|
8025 |
|
---|
8026 | _ACEOF
|
---|
8027 |
|
---|
8028 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8029 | # Split the substitutions into bite-sized pieces for seds with
|
---|
8030 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
8031 | ac_max_sed_lines=48
|
---|
8032 | ac_sed_frag=1 # Number of current file.
|
---|
8033 | ac_beg=1 # First line for current file.
|
---|
8034 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
8035 | ac_more_lines=:
|
---|
8036 | ac_sed_cmds=
|
---|
8037 | while $ac_more_lines; do
|
---|
8038 | if test $ac_beg -gt 1; then
|
---|
8039 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
8040 | else
|
---|
8041 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
8042 | fi
|
---|
8043 | if test ! -s $tmp/subs.frag; then
|
---|
8044 | ac_more_lines=false
|
---|
8045 | else
|
---|
8046 | # The purpose of the label and of the branching condition is to
|
---|
8047 | # speed up the sed processing (if there are no `@' at all, there
|
---|
8048 | # is no need to browse any of the substitutions).
|
---|
8049 | # These are the two extra sed commands mentioned above.
|
---|
8050 | (echo ':t
|
---|
8051 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
8052 | if test -z "$ac_sed_cmds"; then
|
---|
8053 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
8054 | else
|
---|
8055 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
8056 | fi
|
---|
8057 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
8058 | ac_beg=$ac_end
|
---|
8059 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
8060 | fi
|
---|
8061 | done
|
---|
8062 | if test -z "$ac_sed_cmds"; then
|
---|
8063 | ac_sed_cmds=cat
|
---|
8064 | fi
|
---|
8065 | fi # test -n "$CONFIG_FILES"
|
---|
8066 |
|
---|
8067 | _ACEOF
|
---|
8068 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8069 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
8070 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8071 | case $ac_file in
|
---|
8072 | - | *:- | *:-:* ) # input from stdin
|
---|
8073 | cat >$tmp/stdin
|
---|
8074 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8075 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8076 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8077 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8078 | * ) ac_file_in=$ac_file.in ;;
|
---|
8079 | esac
|
---|
8080 |
|
---|
8081 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
8082 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8083 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8084 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8085 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8086 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8087 | . : '\(.\)' 2>/dev/null ||
|
---|
8088 | echo X"$ac_file" |
|
---|
8089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8090 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8091 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8092 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8093 | s/.*/./; q'`
|
---|
8094 | { if $as_mkdir_p; then
|
---|
8095 | mkdir -p "$ac_dir"
|
---|
8096 | else
|
---|
8097 | as_dir="$ac_dir"
|
---|
8098 | as_dirs=
|
---|
8099 | while test ! -d "$as_dir"; do
|
---|
8100 | as_dirs="$as_dir $as_dirs"
|
---|
8101 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8102 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8103 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8104 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8105 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8106 | . : '\(.\)' 2>/dev/null ||
|
---|
8107 | echo X"$as_dir" |
|
---|
8108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8109 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8110 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8111 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8112 | s/.*/./; q'`
|
---|
8113 | done
|
---|
8114 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8115 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8116 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8117 | { (exit 1); exit 1; }; }; }
|
---|
8118 |
|
---|
8119 | ac_builddir=.
|
---|
8120 |
|
---|
8121 | if test "$ac_dir" != .; then
|
---|
8122 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8123 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8124 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8125 | else
|
---|
8126 | ac_dir_suffix= ac_top_builddir=
|
---|
8127 | fi
|
---|
8128 |
|
---|
8129 | case $srcdir in
|
---|
8130 | .) # No --srcdir option. We are building in place.
|
---|
8131 | ac_srcdir=.
|
---|
8132 | if test -z "$ac_top_builddir"; then
|
---|
8133 | ac_top_srcdir=.
|
---|
8134 | else
|
---|
8135 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8136 | fi ;;
|
---|
8137 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8138 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8139 | ac_top_srcdir=$srcdir ;;
|
---|
8140 | *) # Relative path.
|
---|
8141 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8142 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8143 | esac
|
---|
8144 |
|
---|
8145 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8146 | # the directories may not exist.
|
---|
8147 | case `pwd` in
|
---|
8148 | .) ac_abs_builddir="$ac_dir";;
|
---|
8149 | *)
|
---|
8150 | case "$ac_dir" in
|
---|
8151 | .) ac_abs_builddir=`pwd`;;
|
---|
8152 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8153 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8154 | esac;;
|
---|
8155 | esac
|
---|
8156 | case $ac_abs_builddir in
|
---|
8157 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8158 | *)
|
---|
8159 | case ${ac_top_builddir}. in
|
---|
8160 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8161 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8162 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8163 | esac;;
|
---|
8164 | esac
|
---|
8165 | case $ac_abs_builddir in
|
---|
8166 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8167 | *)
|
---|
8168 | case $ac_srcdir in
|
---|
8169 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8170 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8171 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8172 | esac;;
|
---|
8173 | esac
|
---|
8174 | case $ac_abs_builddir in
|
---|
8175 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8176 | *)
|
---|
8177 | case $ac_top_srcdir in
|
---|
8178 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8179 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8180 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8181 | esac;;
|
---|
8182 | esac
|
---|
8183 |
|
---|
8184 |
|
---|
8185 | case $INSTALL in
|
---|
8186 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8187 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
8188 | esac
|
---|
8189 |
|
---|
8190 | if test x"$ac_file" != x-; then
|
---|
8191 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8192 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8193 | rm -f "$ac_file"
|
---|
8194 | fi
|
---|
8195 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8196 | # use $as_me), people would be surprised to read:
|
---|
8197 | # /* config.h. Generated by config.status. */
|
---|
8198 | if test x"$ac_file" = x-; then
|
---|
8199 | configure_input=
|
---|
8200 | else
|
---|
8201 | configure_input="$ac_file. "
|
---|
8202 | fi
|
---|
8203 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
8204 | sed 's,.*/,,'` by configure."
|
---|
8205 |
|
---|
8206 | # First look for the input files in the build tree, otherwise in the
|
---|
8207 | # src tree.
|
---|
8208 | ac_file_inputs=`IFS=:
|
---|
8209 | for f in $ac_file_in; do
|
---|
8210 | case $f in
|
---|
8211 | -) echo $tmp/stdin ;;
|
---|
8212 | [\\/$]*)
|
---|
8213 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8214 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8215 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8216 | { (exit 1); exit 1; }; }
|
---|
8217 | echo "$f";;
|
---|
8218 | *) # Relative
|
---|
8219 | if test -f "$f"; then
|
---|
8220 | # Build tree
|
---|
8221 | echo "$f"
|
---|
8222 | elif test -f "$srcdir/$f"; then
|
---|
8223 | # Source tree
|
---|
8224 | echo "$srcdir/$f"
|
---|
8225 | else
|
---|
8226 | # /dev/null tree
|
---|
8227 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8228 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8229 | { (exit 1); exit 1; }; }
|
---|
8230 | fi;;
|
---|
8231 | esac
|
---|
8232 | done` || { (exit 1); exit 1; }
|
---|
8233 | _ACEOF
|
---|
8234 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8235 | sed "$ac_vpsub
|
---|
8236 | $extrasub
|
---|
8237 | _ACEOF
|
---|
8238 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8239 | :t
|
---|
8240 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8241 | s,@configure_input@,$configure_input,;t t
|
---|
8242 | s,@srcdir@,$ac_srcdir,;t t
|
---|
8243 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
8244 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
8245 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
8246 | s,@builddir@,$ac_builddir,;t t
|
---|
8247 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
8248 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
8249 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
8250 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
8251 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
8252 | rm -f $tmp/stdin
|
---|
8253 | if test x"$ac_file" != x-; then
|
---|
8254 | mv $tmp/out $ac_file
|
---|
8255 | else
|
---|
8256 | cat $tmp/out
|
---|
8257 | rm -f $tmp/out
|
---|
8258 | fi
|
---|
8259 |
|
---|
8260 | done
|
---|
8261 | _ACEOF
|
---|
8262 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8263 |
|
---|
8264 | #
|
---|
8265 | # CONFIG_HEADER section.
|
---|
8266 | #
|
---|
8267 |
|
---|
8268 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
8269 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
8270 | #
|
---|
8271 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
8272 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
8273 | ac_dB='[ ].*$,\1#\2'
|
---|
8274 | ac_dC=' '
|
---|
8275 | ac_dD=',;t'
|
---|
8276 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
8277 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
8278 | ac_uB='$,\1#\2define\3'
|
---|
8279 | ac_uC=' '
|
---|
8280 | ac_uD=',;t'
|
---|
8281 |
|
---|
8282 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
8283 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8284 | case $ac_file in
|
---|
8285 | - | *:- | *:-:* ) # input from stdin
|
---|
8286 | cat >$tmp/stdin
|
---|
8287 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8288 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8289 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8290 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8291 | * ) ac_file_in=$ac_file.in ;;
|
---|
8292 | esac
|
---|
8293 |
|
---|
8294 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8295 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8296 |
|
---|
8297 | # First look for the input files in the build tree, otherwise in the
|
---|
8298 | # src tree.
|
---|
8299 | ac_file_inputs=`IFS=:
|
---|
8300 | for f in $ac_file_in; do
|
---|
8301 | case $f in
|
---|
8302 | -) echo $tmp/stdin ;;
|
---|
8303 | [\\/$]*)
|
---|
8304 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8305 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8306 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8307 | { (exit 1); exit 1; }; }
|
---|
8308 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
8309 | echo "$f";;
|
---|
8310 | *) # Relative
|
---|
8311 | if test -f "$f"; then
|
---|
8312 | # Build tree
|
---|
8313 | echo "$f"
|
---|
8314 | elif test -f "$srcdir/$f"; then
|
---|
8315 | # Source tree
|
---|
8316 | echo "$srcdir/$f"
|
---|
8317 | else
|
---|
8318 | # /dev/null tree
|
---|
8319 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8320 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8321 | { (exit 1); exit 1; }; }
|
---|
8322 | fi;;
|
---|
8323 | esac
|
---|
8324 | done` || { (exit 1); exit 1; }
|
---|
8325 | # Remove the trailing spaces.
|
---|
8326 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
8327 |
|
---|
8328 | _ACEOF
|
---|
8329 |
|
---|
8330 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
8331 | # `conftest.undefs', that substitutes the proper values into
|
---|
8332 | # config.h.in to produce config.h. The first handles `#define'
|
---|
8333 | # templates, and the second `#undef' templates.
|
---|
8334 | # And first: Protect against being on the right side of a sed subst in
|
---|
8335 | # config.status. Protect against being in an unquoted here document
|
---|
8336 | # in config.status.
|
---|
8337 | rm -f conftest.defines conftest.undefs
|
---|
8338 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
8339 | # Putting comments in sed scripts is not portable.
|
---|
8340 | #
|
---|
8341 | # `end' is used to avoid that the second main sed command (meant for
|
---|
8342 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
8343 | # See the Autoconf documentation for `clear'.
|
---|
8344 | cat >confdef2sed.sed <<\_ACEOF
|
---|
8345 | s/[\\&,]/\\&/g
|
---|
8346 | s,[\\$`],\\&,g
|
---|
8347 | t clear
|
---|
8348 | : clear
|
---|
8349 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
8350 | t end
|
---|
8351 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
8352 | : end
|
---|
8353 | _ACEOF
|
---|
8354 | # If some macros were called several times there might be several times
|
---|
8355 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
8356 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
8357 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
8358 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
8359 | rm -f confdef2sed.sed
|
---|
8360 |
|
---|
8361 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
8362 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
8363 | # on some systems where configure will not decide to define it.
|
---|
8364 | cat >>conftest.undefs <<\_ACEOF
|
---|
8365 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
8366 | _ACEOF
|
---|
8367 |
|
---|
8368 | # Break up conftest.defines because some shells have a limit on the size
|
---|
8369 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8370 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
8371 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
8372 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
8373 | echo ' :' >>$CONFIG_STATUS
|
---|
8374 | rm -f conftest.tail
|
---|
8375 | while grep . conftest.defines >/dev/null
|
---|
8376 | do
|
---|
8377 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
8378 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8379 | # Speed up: don't consider the non `#define' lines.
|
---|
8380 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
8381 | # Work around the forget-to-reset-the-flag bug.
|
---|
8382 | echo 't clr' >>$CONFIG_STATUS
|
---|
8383 | echo ': clr' >>$CONFIG_STATUS
|
---|
8384 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
8385 | echo 'CEOF
|
---|
8386 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
8387 | rm -f $tmp/in
|
---|
8388 | mv $tmp/out $tmp/in
|
---|
8389 | ' >>$CONFIG_STATUS
|
---|
8390 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
8391 | rm -f conftest.defines
|
---|
8392 | mv conftest.tail conftest.defines
|
---|
8393 | done
|
---|
8394 | rm -f conftest.defines
|
---|
8395 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
8396 | echo >>$CONFIG_STATUS
|
---|
8397 |
|
---|
8398 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
8399 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8400 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
8401 | rm -f conftest.tail
|
---|
8402 | while grep . conftest.undefs >/dev/null
|
---|
8403 | do
|
---|
8404 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
8405 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8406 | # Speed up: don't consider the non `#undef'
|
---|
8407 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
8408 | # Work around the forget-to-reset-the-flag bug.
|
---|
8409 | echo 't clr' >>$CONFIG_STATUS
|
---|
8410 | echo ': clr' >>$CONFIG_STATUS
|
---|
8411 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
8412 | echo 'CEOF
|
---|
8413 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
8414 | rm -f $tmp/in
|
---|
8415 | mv $tmp/out $tmp/in
|
---|
8416 | ' >>$CONFIG_STATUS
|
---|
8417 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
8418 | rm -f conftest.undefs
|
---|
8419 | mv conftest.tail conftest.undefs
|
---|
8420 | done
|
---|
8421 | rm -f conftest.undefs
|
---|
8422 |
|
---|
8423 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8424 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8425 | # use $as_me), people would be surprised to read:
|
---|
8426 | # /* config.h. Generated by config.status. */
|
---|
8427 | if test x"$ac_file" = x-; then
|
---|
8428 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
8429 | else
|
---|
8430 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
8431 | fi
|
---|
8432 | cat $tmp/in >>$tmp/config.h
|
---|
8433 | rm -f $tmp/in
|
---|
8434 | if test x"$ac_file" != x-; then
|
---|
8435 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
8436 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
8437 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
8438 | else
|
---|
8439 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8440 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8441 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8442 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8443 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8444 | . : '\(.\)' 2>/dev/null ||
|
---|
8445 | echo X"$ac_file" |
|
---|
8446 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8447 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8448 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8449 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8450 | s/.*/./; q'`
|
---|
8451 | { if $as_mkdir_p; then
|
---|
8452 | mkdir -p "$ac_dir"
|
---|
8453 | else
|
---|
8454 | as_dir="$ac_dir"
|
---|
8455 | as_dirs=
|
---|
8456 | while test ! -d "$as_dir"; do
|
---|
8457 | as_dirs="$as_dir $as_dirs"
|
---|
8458 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8459 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8460 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8461 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8462 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8463 | . : '\(.\)' 2>/dev/null ||
|
---|
8464 | echo X"$as_dir" |
|
---|
8465 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8466 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8467 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8468 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8469 | s/.*/./; q'`
|
---|
8470 | done
|
---|
8471 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8472 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8473 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8474 | { (exit 1); exit 1; }; }; }
|
---|
8475 |
|
---|
8476 | rm -f $ac_file
|
---|
8477 | mv $tmp/config.h $ac_file
|
---|
8478 | fi
|
---|
8479 | else
|
---|
8480 | cat $tmp/config.h
|
---|
8481 | rm -f $tmp/config.h
|
---|
8482 | fi
|
---|
8483 | done
|
---|
8484 | _ACEOF
|
---|
8485 |
|
---|
8486 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8487 |
|
---|
8488 | { (exit 0); exit 0; }
|
---|
8489 | _ACEOF
|
---|
8490 | chmod +x $CONFIG_STATUS
|
---|
8491 | ac_clean_files=$ac_clean_files_save
|
---|
8492 |
|
---|
8493 |
|
---|
8494 | # configure is writing to config.log, and then calls config.status.
|
---|
8495 | # config.status does its own redirection, appending to config.log.
|
---|
8496 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8497 | # by configure, so config.status won't be able to write to it; its
|
---|
8498 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8499 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8500 | # appended to by config.status. When coming back to configure, we
|
---|
8501 | # need to make the FD available again.
|
---|
8502 | if test "$no_create" != yes; then
|
---|
8503 | ac_cs_success=:
|
---|
8504 | ac_config_status_args=
|
---|
8505 | test "$silent" = yes &&
|
---|
8506 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8507 | exec 5>/dev/null
|
---|
8508 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8509 | exec 5>>config.log
|
---|
8510 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8511 | # would make configure fail if this is the last instruction.
|
---|
8512 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
8513 | fi
|
---|
8514 |
|
---|
8515 | #
|
---|
8516 | # CONFIG_SUBDIRS section.
|
---|
8517 | #
|
---|
8518 | if test "$no_recursion" != yes; then
|
---|
8519 |
|
---|
8520 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
8521 | ac_sub_configure_args=
|
---|
8522 | ac_prev=
|
---|
8523 | for ac_arg in $ac_configure_args; do
|
---|
8524 | if test -n "$ac_prev"; then
|
---|
8525 | ac_prev=
|
---|
8526 | continue
|
---|
8527 | fi
|
---|
8528 | case $ac_arg in
|
---|
8529 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
8530 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
8531 | ac_prev=cache_file ;;
|
---|
8532 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
8533 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
8534 | | --c=*)
|
---|
8535 | ;;
|
---|
8536 | --config-cache | -C)
|
---|
8537 | ;;
|
---|
8538 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
8539 | ac_prev=srcdir ;;
|
---|
8540 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
8541 | ;;
|
---|
8542 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
8543 | ac_prev=prefix ;;
|
---|
8544 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
8545 | ;;
|
---|
8546 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
8547 | esac
|
---|
8548 | done
|
---|
8549 |
|
---|
8550 | # Always prepend --prefix to ensure using the same prefix
|
---|
8551 | # in subdir configurations.
|
---|
8552 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
8553 |
|
---|
8554 | ac_popdir=`pwd`
|
---|
8555 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
8556 |
|
---|
8557 | # Do not complain, so a configure script can configure whichever
|
---|
8558 | # parts of a large source tree are present.
|
---|
8559 | test -d $srcdir/$ac_dir || continue
|
---|
8560 |
|
---|
8561 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
8562 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
8563 | { if $as_mkdir_p; then
|
---|
8564 | mkdir -p "$ac_dir"
|
---|
8565 | else
|
---|
8566 | as_dir="$ac_dir"
|
---|
8567 | as_dirs=
|
---|
8568 | while test ! -d "$as_dir"; do
|
---|
8569 | as_dirs="$as_dir $as_dirs"
|
---|
8570 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8571 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8572 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8573 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8574 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8575 | . : '\(.\)' 2>/dev/null ||
|
---|
8576 | echo X"$as_dir" |
|
---|
8577 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8578 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8579 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8580 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8581 | s/.*/./; q'`
|
---|
8582 | done
|
---|
8583 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8584 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8585 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8586 | { (exit 1); exit 1; }; }; }
|
---|
8587 |
|
---|
8588 | ac_builddir=.
|
---|
8589 |
|
---|
8590 | if test "$ac_dir" != .; then
|
---|
8591 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8592 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8593 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8594 | else
|
---|
8595 | ac_dir_suffix= ac_top_builddir=
|
---|
8596 | fi
|
---|
8597 |
|
---|
8598 | case $srcdir in
|
---|
8599 | .) # No --srcdir option. We are building in place.
|
---|
8600 | ac_srcdir=.
|
---|
8601 | if test -z "$ac_top_builddir"; then
|
---|
8602 | ac_top_srcdir=.
|
---|
8603 | else
|
---|
8604 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8605 | fi ;;
|
---|
8606 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8607 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8608 | ac_top_srcdir=$srcdir ;;
|
---|
8609 | *) # Relative path.
|
---|
8610 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8611 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8612 | esac
|
---|
8613 |
|
---|
8614 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8615 | # the directories may not exist.
|
---|
8616 | case `pwd` in
|
---|
8617 | .) ac_abs_builddir="$ac_dir";;
|
---|
8618 | *)
|
---|
8619 | case "$ac_dir" in
|
---|
8620 | .) ac_abs_builddir=`pwd`;;
|
---|
8621 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8622 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8623 | esac;;
|
---|
8624 | esac
|
---|
8625 | case $ac_abs_builddir in
|
---|
8626 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8627 | *)
|
---|
8628 | case ${ac_top_builddir}. in
|
---|
8629 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8630 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8631 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8632 | esac;;
|
---|
8633 | esac
|
---|
8634 | case $ac_abs_builddir in
|
---|
8635 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8636 | *)
|
---|
8637 | case $ac_srcdir in
|
---|
8638 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8639 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8640 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8641 | esac;;
|
---|
8642 | esac
|
---|
8643 | case $ac_abs_builddir in
|
---|
8644 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8645 | *)
|
---|
8646 | case $ac_top_srcdir in
|
---|
8647 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8648 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8649 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8650 | esac;;
|
---|
8651 | esac
|
---|
8652 |
|
---|
8653 |
|
---|
8654 | cd $ac_dir
|
---|
8655 |
|
---|
8656 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8657 | if test -f $ac_srcdir/configure.gnu; then
|
---|
8658 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
8659 | elif test -f $ac_srcdir/configure; then
|
---|
8660 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
8661 | elif test -f $ac_srcdir/configure.in; then
|
---|
8662 | ac_sub_configure=$ac_configure
|
---|
8663 | else
|
---|
8664 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
8665 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
8666 | ac_sub_configure=
|
---|
8667 | fi
|
---|
8668 |
|
---|
8669 | # The recursion is here.
|
---|
8670 | if test -n "$ac_sub_configure"; then
|
---|
8671 | # Make the cache file name correct relative to the subdirectory.
|
---|
8672 | case $cache_file in
|
---|
8673 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
8674 | *) # Relative path.
|
---|
8675 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
8676 | esac
|
---|
8677 |
|
---|
8678 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
8679 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
8680 | # The eval makes quoting arguments work.
|
---|
8681 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
8682 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
8683 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
8684 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
8685 | { (exit 1); exit 1; }; }
|
---|
8686 | fi
|
---|
8687 |
|
---|
8688 | cd $ac_popdir
|
---|
8689 | done
|
---|
8690 | fi
|
---|
8691 |
|
---|
8692 |
|
---|
8693 |
|
---|