1 | #! /bin/sh
|
---|
2 |
|
---|
3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
4 | # Generated automatically using autoconf version 2.4
|
---|
5 | # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
---|
6 | #
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 |
|
---|
10 | # Defaults:
|
---|
11 | ac_help=
|
---|
12 | ac_default_prefix=/usr/local
|
---|
13 | # Any additions from configure.in:
|
---|
14 | ac_help="$ac_help
|
---|
15 | --with-dmalloc use dmalloc, as in
|
---|
16 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
|
---|
17 | ac_help="$ac_help
|
---|
18 | --with-regex use older regex in lieu of GNU rx for matching"
|
---|
19 |
|
---|
20 | # Initialize some variables set by options.
|
---|
21 | # The variables have the same names as the options, with
|
---|
22 | # dashes changed to underlines.
|
---|
23 | build=NONE
|
---|
24 | cache_file=./config.cache
|
---|
25 | exec_prefix=NONE
|
---|
26 | host=NONE
|
---|
27 | no_create=
|
---|
28 | nonopt=NONE
|
---|
29 | no_recursion=
|
---|
30 | prefix=NONE
|
---|
31 | program_prefix=NONE
|
---|
32 | program_suffix=NONE
|
---|
33 | program_transform_name=s,x,x,
|
---|
34 | silent=
|
---|
35 | site=
|
---|
36 | srcdir=
|
---|
37 | target=NONE
|
---|
38 | verbose=
|
---|
39 | x_includes=NONE
|
---|
40 | x_libraries=NONE
|
---|
41 |
|
---|
42 | # Initialize some other variables.
|
---|
43 | subdirs=
|
---|
44 |
|
---|
45 | ac_prev=
|
---|
46 | for ac_option
|
---|
47 | do
|
---|
48 |
|
---|
49 | # If the previous option needs an argument, assign it.
|
---|
50 | if test -n "$ac_prev"; then
|
---|
51 | eval "$ac_prev=\$ac_option"
|
---|
52 | ac_prev=
|
---|
53 | continue
|
---|
54 | fi
|
---|
55 |
|
---|
56 | case "$ac_option" in
|
---|
57 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
58 | *) ac_optarg= ;;
|
---|
59 | esac
|
---|
60 |
|
---|
61 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
62 |
|
---|
63 | case "$ac_option" in
|
---|
64 |
|
---|
65 | -build | --build | --buil | --bui | --bu | --b)
|
---|
66 | ac_prev=build ;;
|
---|
67 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
|
---|
68 | build="$ac_optarg" ;;
|
---|
69 |
|
---|
70 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
71 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
72 | ac_prev=cache_file ;;
|
---|
73 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
74 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
75 | cache_file="$ac_optarg" ;;
|
---|
76 |
|
---|
77 | -disable-* | --disable-*)
|
---|
78 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
79 | # Reject names that are not valid shell variable names.
|
---|
80 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
81 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
82 | fi
|
---|
83 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
84 | eval "enable_${ac_feature}=no" ;;
|
---|
85 |
|
---|
86 | -enable-* | --enable-*)
|
---|
87 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
88 | # Reject names that are not valid shell variable names.
|
---|
89 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
90 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
91 | fi
|
---|
92 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
93 | case "$ac_option" in
|
---|
94 | *=*) ;;
|
---|
95 | *) ac_optarg=yes ;;
|
---|
96 | esac
|
---|
97 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
98 |
|
---|
99 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
100 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
101 | | --exec | --exe | --ex)
|
---|
102 | ac_prev=exec_prefix ;;
|
---|
103 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
104 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
105 | | --exec=* | --exe=* | --ex=*)
|
---|
106 | exec_prefix="$ac_optarg" ;;
|
---|
107 |
|
---|
108 | -gas | --gas | --ga | --g)
|
---|
109 | # Obsolete; use --with-gas.
|
---|
110 | with_gas=yes ;;
|
---|
111 |
|
---|
112 | -help | --help | --hel | --he)
|
---|
113 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
114 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
115 | cat << EOF
|
---|
116 | Usage: configure [options] [host]
|
---|
117 | Options: [defaults in brackets after descriptions]
|
---|
118 | Configuration:
|
---|
119 | --cache-file=FILE cache test results in FILE
|
---|
120 | --help print this message
|
---|
121 | --no-create do not create output files
|
---|
122 | --quiet, --silent do not print \`checking...' messages
|
---|
123 | --version print the version of autoconf that created configure
|
---|
124 | Directory and file names:
|
---|
125 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
126 | [$ac_default_prefix]
|
---|
127 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX
|
---|
128 | [same as prefix]
|
---|
129 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
130 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
131 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
132 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
133 | Host type:
|
---|
134 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
135 | --host=HOST configure for HOST [guessed]
|
---|
136 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
137 | Features and packages:
|
---|
138 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
139 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
140 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
141 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
142 | --x-includes=DIR X include files are in DIR
|
---|
143 | --x-libraries=DIR X library files are in DIR
|
---|
144 | --enable and --with options recognized:$ac_help
|
---|
145 | EOF
|
---|
146 | exit 0 ;;
|
---|
147 |
|
---|
148 | -host | --host | --hos | --ho)
|
---|
149 | ac_prev=host ;;
|
---|
150 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
151 | host="$ac_optarg" ;;
|
---|
152 |
|
---|
153 | -nfp | --nfp | --nf)
|
---|
154 | # Obsolete; use --without-fp.
|
---|
155 | with_fp=no ;;
|
---|
156 |
|
---|
157 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
158 | | --no-cr | --no-c)
|
---|
159 | no_create=yes ;;
|
---|
160 |
|
---|
161 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
162 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
163 | no_recursion=yes ;;
|
---|
164 |
|
---|
165 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
166 | ac_prev=prefix ;;
|
---|
167 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
168 | prefix="$ac_optarg" ;;
|
---|
169 |
|
---|
170 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
171 | | --program-pre | --program-pr | --program-p)
|
---|
172 | ac_prev=program_prefix ;;
|
---|
173 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
174 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
175 | program_prefix="$ac_optarg" ;;
|
---|
176 |
|
---|
177 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
178 | | --program-suf | --program-su | --program-s)
|
---|
179 | ac_prev=program_suffix ;;
|
---|
180 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
181 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
182 | program_suffix="$ac_optarg" ;;
|
---|
183 |
|
---|
184 | -program-transform-name | --program-transform-name \
|
---|
185 | | --program-transform-nam | --program-transform-na \
|
---|
186 | | --program-transform-n | --program-transform- \
|
---|
187 | | --program-transform | --program-transfor \
|
---|
188 | | --program-transfo | --program-transf \
|
---|
189 | | --program-trans | --program-tran \
|
---|
190 | | --progr-tra | --program-tr | --program-t)
|
---|
191 | ac_prev=program_transform_name ;;
|
---|
192 | -program-transform-name=* | --program-transform-name=* \
|
---|
193 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
194 | | --program-transform-n=* | --program-transform-=* \
|
---|
195 | | --program-transform=* | --program-transfor=* \
|
---|
196 | | --program-transfo=* | --program-transf=* \
|
---|
197 | | --program-trans=* | --program-tran=* \
|
---|
198 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
199 | program_transform_name="$ac_optarg" ;;
|
---|
200 |
|
---|
201 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
202 | | -silent | --silent | --silen | --sile | --sil)
|
---|
203 | silent=yes ;;
|
---|
204 |
|
---|
205 | -site | --site | --sit)
|
---|
206 | ac_prev=site ;;
|
---|
207 | -site=* | --site=* | --sit=*)
|
---|
208 | site="$ac_optarg" ;;
|
---|
209 |
|
---|
210 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
211 | ac_prev=srcdir ;;
|
---|
212 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
213 | srcdir="$ac_optarg" ;;
|
---|
214 |
|
---|
215 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
216 | ac_prev=target ;;
|
---|
217 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
218 | target="$ac_optarg" ;;
|
---|
219 |
|
---|
220 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
221 | verbose=yes ;;
|
---|
222 |
|
---|
223 | -version | --version | --versio | --versi | --vers)
|
---|
224 | echo "configure generated by autoconf version 2.4"
|
---|
225 | exit 0 ;;
|
---|
226 |
|
---|
227 | -with-* | --with-*)
|
---|
228 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
229 | # Reject names that are not valid shell variable names.
|
---|
230 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
231 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
232 | fi
|
---|
233 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
234 | case "$ac_option" in
|
---|
235 | *=*) ;;
|
---|
236 | *) ac_optarg=yes ;;
|
---|
237 | esac
|
---|
238 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
239 |
|
---|
240 | -without-* | --without-*)
|
---|
241 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
242 | # Reject names that are not valid shell variable names.
|
---|
243 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
244 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
245 | fi
|
---|
246 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
247 | eval "with_${ac_package}=no" ;;
|
---|
248 |
|
---|
249 | --x)
|
---|
250 | # Obsolete; use --with-x.
|
---|
251 | with_x=yes ;;
|
---|
252 |
|
---|
253 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
254 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
255 | ac_prev=x_includes ;;
|
---|
256 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
257 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
258 | x_includes="$ac_optarg" ;;
|
---|
259 |
|
---|
260 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
261 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
262 | ac_prev=x_libraries ;;
|
---|
263 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
264 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
265 | x_libraries="$ac_optarg" ;;
|
---|
266 |
|
---|
267 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
268 | ;;
|
---|
269 |
|
---|
270 | *)
|
---|
271 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
272 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
273 | fi
|
---|
274 | if test "x$nonopt" != xNONE; then
|
---|
275 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
276 | fi
|
---|
277 | nonopt="$ac_option"
|
---|
278 | ;;
|
---|
279 |
|
---|
280 | esac
|
---|
281 | done
|
---|
282 |
|
---|
283 | if test -n "$ac_prev"; then
|
---|
284 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
285 | fi
|
---|
286 |
|
---|
287 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
288 |
|
---|
289 | # File descriptor usage:
|
---|
290 | # 0 standard input
|
---|
291 | # 1 file creation
|
---|
292 | # 2 errors and warnings
|
---|
293 | # 3 some systems may open it to /dev/tty
|
---|
294 | # 4 used on the Kubota Titan
|
---|
295 | # 6 checking for... messages and results
|
---|
296 | # 5 compiler messages saved in config.log
|
---|
297 | if test "$silent" = yes; then
|
---|
298 | exec 6>/dev/null
|
---|
299 | else
|
---|
300 | exec 6>&1
|
---|
301 | fi
|
---|
302 | exec 5>./config.log
|
---|
303 |
|
---|
304 | echo "\
|
---|
305 | This file contains any messages produced by compilers while
|
---|
306 | running configure, to aid debugging if configure makes a mistake.
|
---|
307 | " 1>&5
|
---|
308 |
|
---|
309 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
310 | # Also quote any args containing shell metacharacters.
|
---|
311 | ac_configure_args=
|
---|
312 | for ac_arg
|
---|
313 | do
|
---|
314 | case "$ac_arg" in
|
---|
315 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
316 | | --no-cr | --no-c) ;;
|
---|
317 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
318 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
319 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
320 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
321 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
322 | esac
|
---|
323 | done
|
---|
324 |
|
---|
325 | # NLS nuisances.
|
---|
326 | # Only set LANG and LC_ALL to C if already set.
|
---|
327 | # These must not be set unconditionally because not all systems understand
|
---|
328 | # e.g. LANG=C (notably SCO).
|
---|
329 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
330 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
331 |
|
---|
332 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
333 | rm -rf conftest* confdefs.h
|
---|
334 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
335 | echo > confdefs.h
|
---|
336 |
|
---|
337 | # A filename unique to this package, relative to the directory that
|
---|
338 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
339 | ac_unique_file=src/text/mgquery.c
|
---|
340 |
|
---|
341 | # Find the source files, if location was not specified.
|
---|
342 | if test -z "$srcdir"; then
|
---|
343 | ac_srcdir_defaulted=yes
|
---|
344 | # Try the directory containing this script, then its parent.
|
---|
345 | ac_prog=$0
|
---|
346 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
347 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
348 | srcdir=$ac_confdir
|
---|
349 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
350 | srcdir=..
|
---|
351 | fi
|
---|
352 | else
|
---|
353 | ac_srcdir_defaulted=no
|
---|
354 | fi
|
---|
355 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
356 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
357 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
358 | else
|
---|
359 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
360 | fi
|
---|
361 | fi
|
---|
362 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
363 |
|
---|
364 | # Prefer explicitly selected file to automatically selected ones.
|
---|
365 | if test -z "$CONFIG_SITE"; then
|
---|
366 | if test "x$prefix" != xNONE; then
|
---|
367 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
368 | else
|
---|
369 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
370 | fi
|
---|
371 | fi
|
---|
372 | for ac_site_file in $CONFIG_SITE; do
|
---|
373 | if test -r "$ac_site_file"; then
|
---|
374 | echo "loading site script $ac_site_file"
|
---|
375 | . "$ac_site_file"
|
---|
376 | fi
|
---|
377 | done
|
---|
378 |
|
---|
379 | if test -r "$cache_file"; then
|
---|
380 | echo "loading cache $cache_file"
|
---|
381 | . $cache_file
|
---|
382 | else
|
---|
383 | echo "creating cache $cache_file"
|
---|
384 | > $cache_file
|
---|
385 | fi
|
---|
386 |
|
---|
387 | ac_ext=c
|
---|
388 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
389 | ac_cpp='$CPP $CPPFLAGS'
|
---|
390 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
|
---|
391 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
|
---|
392 |
|
---|
393 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
394 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
---|
395 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
396 | ac_n= ac_c='
|
---|
397 | ' ac_t=' '
|
---|
398 | else
|
---|
399 | ac_n=-n ac_c= ac_t=
|
---|
400 | fi
|
---|
401 | else
|
---|
402 | ac_n= ac_c='\c' ac_t=
|
---|
403 | fi
|
---|
404 |
|
---|
405 |
|
---|
406 |
|
---|
407 | if test "$program_transform_name" = s,x,x,; then
|
---|
408 | program_transform_name=
|
---|
409 | else
|
---|
410 | # Double any \ or $.
|
---|
411 | echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
|
---|
412 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
413 | rm -f conftestsed
|
---|
414 | fi
|
---|
415 | test "$program_prefix" != NONE &&
|
---|
416 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
417 | # Use a double $ so make ignores it.
|
---|
418 | test "$program_suffix" != NONE &&
|
---|
419 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
420 |
|
---|
421 | # sed with no file args requires a program.
|
---|
422 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
423 |
|
---|
424 |
|
---|
425 | PACKAGE=mg
|
---|
426 | VERSION=1.2
|
---|
427 |
|
---|
428 | cat >> confdefs.h <<EOF
|
---|
429 | #define PACKAGE "$PACKAGE"
|
---|
430 | EOF
|
---|
431 |
|
---|
432 | cat >> confdefs.h <<EOF
|
---|
433 | #define VERSION "$VERSION"
|
---|
434 | EOF
|
---|
435 |
|
---|
436 |
|
---|
437 |
|
---|
438 |
|
---|
439 | for ac_prog in $CCC c++ g++ gcc CC cxx
|
---|
440 | do
|
---|
441 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
442 | set dummy $ac_prog; ac_word=$2
|
---|
443 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
444 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
445 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
446 | else
|
---|
447 | if test -n "$CXX"; then
|
---|
448 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
449 | else
|
---|
450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
451 | for ac_dir in $PATH; do
|
---|
452 | test -z "$ac_dir" && ac_dir=.
|
---|
453 | if test -f $ac_dir/$ac_word; then
|
---|
454 | ac_cv_prog_CXX="$ac_prog"
|
---|
455 | break
|
---|
456 | fi
|
---|
457 | done
|
---|
458 | IFS="$ac_save_ifs"
|
---|
459 | fi
|
---|
460 | fi
|
---|
461 | CXX="$ac_cv_prog_CXX"
|
---|
462 | if test -n "$CXX"; then
|
---|
463 | echo "$ac_t""$CXX" 1>&6
|
---|
464 | else
|
---|
465 | echo "$ac_t""no" 1>&6
|
---|
466 | fi
|
---|
467 |
|
---|
468 | test -n "$CXX" && break
|
---|
469 | done
|
---|
470 | test -n "$CXX" || CXX="gcc"
|
---|
471 |
|
---|
472 |
|
---|
473 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
474 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
475 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
476 | else
|
---|
477 | cat > conftest.C <<EOF
|
---|
478 | #ifdef __GNUC__
|
---|
479 | yes;
|
---|
480 | #endif
|
---|
481 | EOF
|
---|
482 | if ${CXX-g++} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
|
---|
483 | ac_cv_prog_gxx=yes
|
---|
484 | else
|
---|
485 | ac_cv_prog_gxx=no
|
---|
486 | fi
|
---|
487 | fi
|
---|
488 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
489 | if test $ac_cv_prog_gxx = yes; then
|
---|
490 | GXX=yes
|
---|
491 | if test "${CXXFLAGS+set}" != set; then
|
---|
492 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
493 | if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
|
---|
494 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
495 | else
|
---|
496 | echo 'void f(){}' > conftest.cc
|
---|
497 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
498 | ac_cv_prog_gxx_g=yes
|
---|
499 | else
|
---|
500 | ac_cv_prog_gxx_g=no
|
---|
501 | fi
|
---|
502 | rm -f conftest*
|
---|
503 |
|
---|
504 | fi
|
---|
505 | echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
|
---|
506 | if test $ac_cv_prog_gxx_g = yes; then
|
---|
507 | CXXFLAGS="-g -O"
|
---|
508 | else
|
---|
509 | CXXFLAGS="-O"
|
---|
510 | fi
|
---|
511 | fi
|
---|
512 | else
|
---|
513 | GXX=
|
---|
514 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
---|
515 | fi
|
---|
516 |
|
---|
517 | for ac_prog in mawk gawk nawk awk
|
---|
518 | do
|
---|
519 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
520 | set dummy $ac_prog; ac_word=$2
|
---|
521 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
522 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
---|
523 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
524 | else
|
---|
525 | if test -n "$AWK"; then
|
---|
526 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
527 | else
|
---|
528 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
529 | for ac_dir in $PATH; do
|
---|
530 | test -z "$ac_dir" && ac_dir=.
|
---|
531 | if test -f $ac_dir/$ac_word; then
|
---|
532 | ac_cv_prog_AWK="$ac_prog"
|
---|
533 | break
|
---|
534 | fi
|
---|
535 | done
|
---|
536 | IFS="$ac_save_ifs"
|
---|
537 | fi
|
---|
538 | fi
|
---|
539 | AWK="$ac_cv_prog_AWK"
|
---|
540 | if test -n "$AWK"; then
|
---|
541 | echo "$ac_t""$AWK" 1>&6
|
---|
542 | else
|
---|
543 | echo "$ac_t""no" 1>&6
|
---|
544 | fi
|
---|
545 |
|
---|
546 | test -n "$AWK" && break
|
---|
547 | done
|
---|
548 |
|
---|
549 | for ac_prog in 'bison -y' byacc
|
---|
550 | do
|
---|
551 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
552 | set dummy $ac_prog; ac_word=$2
|
---|
553 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
554 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
---|
555 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
556 | else
|
---|
557 | if test -n "$YACC"; then
|
---|
558 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
559 | else
|
---|
560 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
561 | for ac_dir in $PATH; do
|
---|
562 | test -z "$ac_dir" && ac_dir=.
|
---|
563 | if test -f $ac_dir/$ac_word; then
|
---|
564 | ac_cv_prog_YACC="$ac_prog"
|
---|
565 | break
|
---|
566 | fi
|
---|
567 | done
|
---|
568 | IFS="$ac_save_ifs"
|
---|
569 | fi
|
---|
570 | fi
|
---|
571 | YACC="$ac_cv_prog_YACC"
|
---|
572 | if test -n "$YACC"; then
|
---|
573 | echo "$ac_t""$YACC" 1>&6
|
---|
574 | else
|
---|
575 | echo "$ac_t""no" 1>&6
|
---|
576 | fi
|
---|
577 |
|
---|
578 | test -n "$YACC" && break
|
---|
579 | done
|
---|
580 | test -n "$YACC" || YACC="yacc"
|
---|
581 |
|
---|
582 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
583 | set dummy gcc; ac_word=$2
|
---|
584 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
585 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
586 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
587 | else
|
---|
588 | if test -n "$CC"; then
|
---|
589 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
590 | else
|
---|
591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
592 | for ac_dir in $PATH; do
|
---|
593 | test -z "$ac_dir" && ac_dir=.
|
---|
594 | if test -f $ac_dir/$ac_word; then
|
---|
595 | ac_cv_prog_CC="gcc"
|
---|
596 | break
|
---|
597 | fi
|
---|
598 | done
|
---|
599 | IFS="$ac_save_ifs"
|
---|
600 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
|
---|
601 | fi
|
---|
602 | fi
|
---|
603 | CC="$ac_cv_prog_CC"
|
---|
604 | if test -n "$CC"; then
|
---|
605 | echo "$ac_t""$CC" 1>&6
|
---|
606 | else
|
---|
607 | echo "$ac_t""no" 1>&6
|
---|
608 | fi
|
---|
609 |
|
---|
610 |
|
---|
611 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
612 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
613 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
614 | else
|
---|
615 | cat > conftest.c <<EOF
|
---|
616 | #ifdef __GNUC__
|
---|
617 | yes;
|
---|
618 | #endif
|
---|
619 | EOF
|
---|
620 | if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
|
---|
621 | ac_cv_prog_gcc=yes
|
---|
622 | else
|
---|
623 | ac_cv_prog_gcc=no
|
---|
624 | fi
|
---|
625 | fi
|
---|
626 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
627 | if test $ac_cv_prog_gcc = yes; then
|
---|
628 | GCC=yes
|
---|
629 | if test "${CFLAGS+set}" != set; then
|
---|
630 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
631 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
|
---|
632 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
633 | else
|
---|
634 | echo 'void f(){}' > conftest.c
|
---|
635 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
636 | ac_cv_prog_gcc_g=yes
|
---|
637 | else
|
---|
638 | ac_cv_prog_gcc_g=no
|
---|
639 | fi
|
---|
640 | rm -f conftest*
|
---|
641 |
|
---|
642 | fi
|
---|
643 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
|
---|
644 | if test $ac_cv_prog_gcc_g = yes; then
|
---|
645 | CFLAGS="-g -O"
|
---|
646 | else
|
---|
647 | CFLAGS="-O"
|
---|
648 | fi
|
---|
649 | fi
|
---|
650 | else
|
---|
651 | GCC=
|
---|
652 | test "${CFLAGS+set}" = set || CFLAGS="-g"
|
---|
653 | fi
|
---|
654 |
|
---|
655 | ac_aux_dir=
|
---|
656 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
657 | if test -f $ac_dir/install-sh; then
|
---|
658 | ac_aux_dir=$ac_dir
|
---|
659 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
660 | break
|
---|
661 | elif test -f $ac_dir/install.sh; then
|
---|
662 | ac_aux_dir=$ac_dir
|
---|
663 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
664 | break
|
---|
665 | fi
|
---|
666 | done
|
---|
667 | if test -z "$ac_aux_dir"; then
|
---|
668 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
669 | fi
|
---|
670 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
671 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
672 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
673 |
|
---|
674 | # Find a good install program. We prefer a C program (faster),
|
---|
675 | # so one script is as good as another. But avoid the broken or
|
---|
676 | # incompatible versions:
|
---|
677 | # SysV /etc/install, /usr/sbin/install
|
---|
678 | # SunOS /usr/etc/install
|
---|
679 | # IRIX /sbin/install
|
---|
680 | # AIX /bin/install
|
---|
681 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
682 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
683 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
684 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
685 | if test -z "$INSTALL"; then
|
---|
686 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
687 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
688 | else
|
---|
689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
690 | for ac_dir in $PATH; do
|
---|
691 | # Account for people who put trailing slashes in PATH elements.
|
---|
692 | case "$ac_dir/" in
|
---|
693 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
694 | *)
|
---|
695 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
696 | for ac_prog in ginstall installbsd scoinst install; do
|
---|
697 | if test -f $ac_dir/$ac_prog; then
|
---|
698 | if test $ac_prog = install &&
|
---|
699 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
700 | # AIX install. It has an incompatible calling convention.
|
---|
701 | # OSF/1 installbsd also uses dspmsg, but is usable.
|
---|
702 | :
|
---|
703 | else
|
---|
704 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
705 | break 2
|
---|
706 | fi
|
---|
707 | fi
|
---|
708 | done
|
---|
709 | ;;
|
---|
710 | esac
|
---|
711 | done
|
---|
712 | IFS="$ac_save_ifs"
|
---|
713 | # As a last resort, use the slow shell script.
|
---|
714 | test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
|
---|
715 | fi
|
---|
716 | INSTALL="$ac_cv_path_install"
|
---|
717 | fi
|
---|
718 | echo "$ac_t""$INSTALL" 1>&6
|
---|
719 |
|
---|
720 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
721 | # It thinks the first close brace ends the variable substitution.
|
---|
722 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
723 |
|
---|
724 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
725 |
|
---|
726 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
727 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
728 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
729 | else
|
---|
730 | rm -f conftestdata
|
---|
731 | if ln -s X conftestdata 2>/dev/null
|
---|
732 | then
|
---|
733 | rm -f conftestdata
|
---|
734 | ac_cv_prog_LN_S="ln -s"
|
---|
735 | else
|
---|
736 | ac_cv_prog_LN_S=ln
|
---|
737 | fi
|
---|
738 | fi
|
---|
739 | LN_S="$ac_cv_prog_LN_S"
|
---|
740 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
741 | echo "$ac_t""yes" 1>&6
|
---|
742 | else
|
---|
743 | echo "$ac_t""no" 1>&6
|
---|
744 | fi
|
---|
745 |
|
---|
746 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
747 | set dummy ${MAKE-make}; ac_make=$2
|
---|
748 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
749 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
750 | else
|
---|
751 | cat > conftestmake <<\EOF
|
---|
752 | all:
|
---|
753 | @echo 'ac_maketemp="${MAKE}"'
|
---|
754 | EOF
|
---|
755 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
756 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
757 | if test -n "$ac_maketemp"; then
|
---|
758 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
759 | else
|
---|
760 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
761 | fi
|
---|
762 | rm -f conftestmake
|
---|
763 | fi
|
---|
764 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
765 | echo "$ac_t""yes" 1>&6
|
---|
766 | SET_MAKE=
|
---|
767 | else
|
---|
768 | echo "$ac_t""no" 1>&6
|
---|
769 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
770 | fi
|
---|
771 |
|
---|
772 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
773 | set dummy ranlib; ac_word=$2
|
---|
774 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
775 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
776 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
777 | else
|
---|
778 | if test -n "$RANLIB"; then
|
---|
779 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
780 | else
|
---|
781 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
782 | for ac_dir in $PATH; do
|
---|
783 | test -z "$ac_dir" && ac_dir=.
|
---|
784 | if test -f $ac_dir/$ac_word; then
|
---|
785 | ac_cv_prog_RANLIB="ranlib"
|
---|
786 | break
|
---|
787 | fi
|
---|
788 | done
|
---|
789 | IFS="$ac_save_ifs"
|
---|
790 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
791 | fi
|
---|
792 | fi
|
---|
793 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
794 | if test -n "$RANLIB"; then
|
---|
795 | echo "$ac_t""$RANLIB" 1>&6
|
---|
796 | else
|
---|
797 | echo "$ac_t""no" 1>&6
|
---|
798 | fi
|
---|
799 |
|
---|
800 |
|
---|
801 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
802 | # On Suns, sometimes $CPP names a directory.
|
---|
803 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
804 | CPP=
|
---|
805 | fi
|
---|
806 | if test -z "$CPP"; then
|
---|
807 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
808 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
809 | else
|
---|
810 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
811 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
812 | CPP="${CC-cc} -E"
|
---|
813 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
814 | # not just through cpp.
|
---|
815 | cat > conftest.$ac_ext <<EOF
|
---|
816 | #line 817 "configure"
|
---|
817 | #include "confdefs.h"
|
---|
818 | #include <assert.h>
|
---|
819 | Syntax Error
|
---|
820 | EOF
|
---|
821 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
822 | ac_err=`grep -v '^ *+' conftest.out`
|
---|
823 | if test -z "$ac_err"; then
|
---|
824 | :
|
---|
825 | else
|
---|
826 | echo "$ac_err" >&5
|
---|
827 | rm -rf conftest*
|
---|
828 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
829 | cat > conftest.$ac_ext <<EOF
|
---|
830 | #line 831 "configure"
|
---|
831 | #include "confdefs.h"
|
---|
832 | #include <assert.h>
|
---|
833 | Syntax Error
|
---|
834 | EOF
|
---|
835 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
836 | ac_err=`grep -v '^ *+' conftest.out`
|
---|
837 | if test -z "$ac_err"; then
|
---|
838 | :
|
---|
839 | else
|
---|
840 | echo "$ac_err" >&5
|
---|
841 | rm -rf conftest*
|
---|
842 | CPP=/lib/cpp
|
---|
843 | fi
|
---|
844 | rm -f conftest*
|
---|
845 | fi
|
---|
846 | rm -f conftest*
|
---|
847 | ac_cv_prog_CPP="$CPP"
|
---|
848 | fi
|
---|
849 | CPP="$ac_cv_prog_CPP"
|
---|
850 | else
|
---|
851 | ac_cv_prog_CPP="$CPP"
|
---|
852 | fi
|
---|
853 | echo "$ac_t""$CPP" 1>&6
|
---|
854 |
|
---|
855 | echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
---|
856 | cat > conftest.$ac_ext <<EOF
|
---|
857 | #line 858 "configure"
|
---|
858 | #include "confdefs.h"
|
---|
859 | #ifdef _AIX
|
---|
860 | yes
|
---|
861 | #endif
|
---|
862 |
|
---|
863 | EOF
|
---|
864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
865 | egrep "yes" >/dev/null 2>&1; then
|
---|
866 | rm -rf conftest*
|
---|
867 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
---|
868 | #define _ALL_SOURCE 1
|
---|
869 | EOF
|
---|
870 |
|
---|
871 | else
|
---|
872 | rm -rf conftest*
|
---|
873 | echo "$ac_t""no" 1>&6
|
---|
874 | fi
|
---|
875 | rm -f conftest*
|
---|
876 |
|
---|
877 |
|
---|
878 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
879 | if test -d /etc/conf/kconfig.d &&
|
---|
880 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
881 | then
|
---|
882 | echo "$ac_t""yes" 1>&6
|
---|
883 | ISC=yes # If later tests want to check for ISC.
|
---|
884 | cat >> confdefs.h <<\EOF
|
---|
885 | #define _POSIX_SOURCE 1
|
---|
886 | EOF
|
---|
887 |
|
---|
888 | if test "$GCC" = yes; then
|
---|
889 | CC="$CC -posix"
|
---|
890 | else
|
---|
891 | CC="$CC -Xp"
|
---|
892 | fi
|
---|
893 | else
|
---|
894 | echo "$ac_t""no" 1>&6
|
---|
895 | ISC=
|
---|
896 | fi
|
---|
897 |
|
---|
898 | ac_safe=`echo "minix/config.h" | tr './\055' '___'`
|
---|
899 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
|
---|
900 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
901 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
902 | else
|
---|
903 | cat > conftest.$ac_ext <<EOF
|
---|
904 | #line 905 "configure"
|
---|
905 | #include "confdefs.h"
|
---|
906 | #include <minix/config.h>
|
---|
907 | EOF
|
---|
908 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
909 | ac_err=`grep -v '^ *+' conftest.out`
|
---|
910 | if test -z "$ac_err"; then
|
---|
911 | rm -rf conftest*
|
---|
912 | eval "ac_cv_header_$ac_safe=yes"
|
---|
913 | else
|
---|
914 | echo "$ac_err" >&5
|
---|
915 | rm -rf conftest*
|
---|
916 | eval "ac_cv_header_$ac_safe=no"
|
---|
917 | fi
|
---|
918 | rm -f conftest*
|
---|
919 | fi
|
---|
920 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
921 | echo "$ac_t""yes" 1>&6
|
---|
922 | MINIX=yes
|
---|
923 | else
|
---|
924 | echo "$ac_t""no" 1>&6
|
---|
925 | MINIX=
|
---|
926 | fi
|
---|
927 |
|
---|
928 | if test "$MINIX" = yes; then
|
---|
929 | cat >> confdefs.h <<\EOF
|
---|
930 | #define _POSIX_SOURCE 1
|
---|
931 | EOF
|
---|
932 |
|
---|
933 | cat >> confdefs.h <<\EOF
|
---|
934 | #define _POSIX_1_SOURCE 2
|
---|
935 | EOF
|
---|
936 |
|
---|
937 | cat >> confdefs.h <<\EOF
|
---|
938 | #define _MINIX 1
|
---|
939 | EOF
|
---|
940 |
|
---|
941 | fi
|
---|
942 |
|
---|
943 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
|
---|
944 | if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
|
---|
945 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
946 | else
|
---|
947 | ac_cv_prog_cc_stdc=no
|
---|
948 | ac_save_CFLAGS="$CFLAGS"
|
---|
949 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
950 | # breaks some systems' header files.
|
---|
951 | # AIX -qlanglvl=ansi
|
---|
952 | # Ultrix and OSF/1 -std1
|
---|
953 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
954 | # SVR4 -Xc
|
---|
955 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
956 | do
|
---|
957 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
958 | cat > conftest.$ac_ext <<EOF
|
---|
959 | #line 960 "configure"
|
---|
960 | #include "confdefs.h"
|
---|
961 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
962 | choke me
|
---|
963 | #endif
|
---|
964 |
|
---|
965 | int main() { return 0; }
|
---|
966 | int t() {
|
---|
967 | int test (int i, double x);
|
---|
968 | struct s1 {int (*f) (int a);};
|
---|
969 | struct s2 {int (*f) (double a);};
|
---|
970 | ; return 0; }
|
---|
971 | EOF
|
---|
972 | if eval $ac_compile; then
|
---|
973 | rm -rf conftest*
|
---|
974 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
975 | fi
|
---|
976 | rm -f conftest*
|
---|
977 |
|
---|
978 | done
|
---|
979 | CFLAGS="$ac_save_CFLAGS"
|
---|
980 |
|
---|
981 | fi
|
---|
982 |
|
---|
983 | echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
|
---|
984 | case "x$ac_cv_prog_cc_stdc" in
|
---|
985 | x|xno) ;;
|
---|
986 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
987 | esac
|
---|
988 |
|
---|
989 |
|
---|
990 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
|
---|
991 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
992 | echo "$ac_t""yes" 1>&6
|
---|
993 | cat >> confdefs.h <<\EOF
|
---|
994 | #define PROTOTYPES 1
|
---|
995 | EOF
|
---|
996 |
|
---|
997 | U= ANSI2KNR=
|
---|
998 | else
|
---|
999 | echo "$ac_t""no" 1>&6
|
---|
1000 | U=_ ANSI2KNR=ansi2knr
|
---|
1001 | fi
|
---|
1002 |
|
---|
1003 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
1004 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
1005 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1006 | else
|
---|
1007 | cat > conftest.$ac_ext <<EOF
|
---|
1008 | #line 1009 "configure"
|
---|
1009 | #include "confdefs.h"
|
---|
1010 |
|
---|
1011 | int main() { return 0; }
|
---|
1012 | int t() {
|
---|
1013 |
|
---|
1014 | /* Ultrix mips cc rejects this. */
|
---|
1015 | typedef int charset[2]; const charset x;
|
---|
1016 | /* SunOS 4.1.1 cc rejects this. */
|
---|
1017 | char const *const *ccp;
|
---|
1018 | char **p;
|
---|
1019 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
1020 | struct point {int x, y;};
|
---|
1021 | static struct point const zero;
|
---|
1022 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
1023 | It does not let you subtract one const X* pointer from another in an arm
|
---|
1024 | of an if-expression whose if-part is not a constant expression */
|
---|
1025 | const char *g = "string";
|
---|
1026 | ccp = &g + (g ? g-g : 0);
|
---|
1027 | /* HPUX 7.0 cc rejects these. */
|
---|
1028 | ++ccp;
|
---|
1029 | p = (char**) ccp;
|
---|
1030 | ccp = (char const *const *) p;
|
---|
1031 | { /* SCO 3.2v4 cc rejects this. */
|
---|
1032 | char *t;
|
---|
1033 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
1034 |
|
---|
1035 | *t++ = 0;
|
---|
1036 | }
|
---|
1037 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
1038 | int x[] = {25, 17};
|
---|
1039 | const int *foo = &x[0];
|
---|
1040 | ++foo;
|
---|
1041 | }
|
---|
1042 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
1043 | typedef const int *iptr;
|
---|
1044 | iptr p = 0;
|
---|
1045 | ++p;
|
---|
1046 | }
|
---|
1047 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
1048 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
1049 | struct s { int j; const int *ap[3]; };
|
---|
1050 | struct s *b; b->j = 5;
|
---|
1051 | }
|
---|
1052 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
1053 | const int foo = 10;
|
---|
1054 | }
|
---|
1055 |
|
---|
1056 | ; return 0; }
|
---|
1057 | EOF
|
---|
1058 | if eval $ac_compile; then
|
---|
1059 | rm -rf conftest*
|
---|
1060 | ac_cv_c_const=yes
|
---|
1061 | else
|
---|
1062 | rm -rf conftest*
|
---|
1063 | ac_cv_c_const=no
|
---|
1064 | fi
|
---|
1065 | rm -f conftest*
|
---|
1066 |
|
---|
1067 | fi
|
---|
1068 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
1069 | if test $ac_cv_c_const = no; then
|
---|
1070 | cat >> confdefs.h <<\EOF
|
---|
1071 | #define const
|
---|
1072 | EOF
|
---|
1073 |
|
---|
1074 | fi
|
---|
1075 |
|
---|
1076 | # If we cannot run a trivial program, we must be cross compiling.
|
---|
1077 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
|
---|
1078 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
|
---|
1079 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1080 | else
|
---|
1081 | if test "$cross_compiling" = yes; then
|
---|
1082 | ac_cv_c_cross=yes
|
---|
1083 | else
|
---|
1084 | cat > conftest.$ac_ext <<EOF
|
---|
1085 | #line 1086 "configure"
|
---|
1086 | #include "confdefs.h"
|
---|
1087 | main(){return(0);}
|
---|
1088 | EOF
|
---|
1089 | eval $ac_link
|
---|
1090 | if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
---|
1091 | ac_cv_c_cross=no
|
---|
1092 | else
|
---|
1093 | ac_cv_c_cross=yes
|
---|
1094 | fi
|
---|
1095 | fi
|
---|
1096 | rm -fr conftest*
|
---|
1097 | fi
|
---|
1098 | cross_compiling=$ac_cv_c_cross
|
---|
1099 | echo "$ac_t""$ac_cv_c_cross" 1>&6
|
---|
1100 |
|
---|
1101 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1102 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1103 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1104 | else
|
---|
1105 | cat > conftest.$ac_ext <<EOF
|
---|
1106 | #line 1107 "configure"
|
---|
1107 | #include "confdefs.h"
|
---|
1108 | #include <stdlib.h>
|
---|
1109 | #include <stdarg.h>
|
---|
1110 | #include <string.h>
|
---|
1111 | #include <float.h>
|
---|
1112 | EOF
|
---|
1113 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1114 | ac_err=`grep -v '^ *+' conftest.out`
|
---|
1115 | if test -z "$ac_err"; then
|
---|
1116 | rm -rf conftest*
|
---|
1117 | ac_cv_header_stdc=yes
|
---|
1118 | else
|
---|
1119 | echo "$ac_err" >&5
|
---|
1120 | rm -rf conftest*
|
---|
1121 | ac_cv_header_stdc=no
|
---|
1122 | fi
|
---|
1123 | rm -f conftest*
|
---|
1124 |
|
---|
1125 | if test $ac_cv_header_stdc = yes; then
|
---|
1126 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1127 | cat > conftest.$ac_ext <<EOF
|
---|
1128 | #line 1129 "configure"
|
---|
1129 | #include "confdefs.h"
|
---|
1130 | #include <string.h>
|
---|
1131 | EOF
|
---|
1132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1133 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1134 | :
|
---|
1135 | else
|
---|
1136 | rm -rf conftest*
|
---|
1137 | ac_cv_header_stdc=no
|
---|
1138 | fi
|
---|
1139 | rm -f conftest*
|
---|
1140 |
|
---|
1141 | fi
|
---|
1142 |
|
---|
1143 | if test $ac_cv_header_stdc = yes; then
|
---|
1144 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1145 | cat > conftest.$ac_ext <<EOF
|
---|
1146 | #line 1147 "configure"
|
---|
1147 | #include "confdefs.h"
|
---|
1148 | #include <stdlib.h>
|
---|
1149 | EOF
|
---|
1150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1151 | egrep "free" >/dev/null 2>&1; then
|
---|
1152 | :
|
---|
1153 | else
|
---|
1154 | rm -rf conftest*
|
---|
1155 | ac_cv_header_stdc=no
|
---|
1156 | fi
|
---|
1157 | rm -f conftest*
|
---|
1158 |
|
---|
1159 | fi
|
---|
1160 |
|
---|
1161 | if test $ac_cv_header_stdc = yes; then
|
---|
1162 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1163 | if test "$cross_compiling" = yes; then
|
---|
1164 | ac_cv_header_stdc=no
|
---|
1165 | else
|
---|
1166 | cat > conftest.$ac_ext <<EOF
|
---|
1167 | #line 1168 "configure"
|
---|
1168 | #include "confdefs.h"
|
---|
1169 | #include <ctype.h>
|
---|
1170 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1171 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1172 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1173 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1174 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1175 | exit (0); }
|
---|
1176 |
|
---|
1177 | EOF
|
---|
1178 | eval $ac_link
|
---|
1179 | if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
---|
1180 | :
|
---|
1181 | else
|
---|
1182 | ac_cv_header_stdc=no
|
---|
1183 | fi
|
---|
1184 | fi
|
---|
1185 | rm -fr conftest*
|
---|
1186 | fi
|
---|
1187 | fi
|
---|
1188 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1189 | if test $ac_cv_header_stdc = yes; then
|
---|
1190 | cat >> confdefs.h <<\EOF
|
---|
1191 | #define STDC_HEADERS 1
|
---|
1192 | EOF
|
---|
1193 |
|
---|
1194 | fi
|
---|
1195 |
|
---|
1196 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
1197 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
1198 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1199 | else
|
---|
1200 | cat > conftest.$ac_ext <<EOF
|
---|
1201 | #line 1202 "configure"
|
---|
1202 | #include "confdefs.h"
|
---|
1203 | #include <sys/types.h>
|
---|
1204 | #if STDC_HEADERS
|
---|
1205 | #include <stdlib.h>
|
---|
1206 | #endif
|
---|
1207 | EOF
|
---|
1208 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1209 | egrep "off_t" >/dev/null 2>&1; then
|
---|
1210 | rm -rf conftest*
|
---|
1211 | ac_cv_type_off_t=yes
|
---|
1212 | else
|
---|
1213 | rm -rf conftest*
|
---|
1214 | ac_cv_type_off_t=no
|
---|
1215 | fi
|
---|
1216 | rm -f conftest*
|
---|
1217 |
|
---|
1218 | fi
|
---|
1219 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
1220 | if test $ac_cv_type_off_t = no; then
|
---|
1221 | cat >> confdefs.h <<\EOF
|
---|
1222 | #define off_t long
|
---|
1223 | EOF
|
---|
1224 |
|
---|
1225 | fi
|
---|
1226 |
|
---|
1227 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
1228 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
1229 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1230 | else
|
---|
1231 | cat > conftest.$ac_ext <<EOF
|
---|
1232 | #line 1233 "configure"
|
---|
1233 | #include "confdefs.h"
|
---|
1234 | #include <sys/types.h>
|
---|
1235 | #if STDC_HEADERS
|
---|
1236 | #include <stdlib.h>
|
---|
1237 | #endif
|
---|
1238 | EOF
|
---|
1239 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1240 | egrep "size_t" >/dev/null 2>&1; then
|
---|
1241 | rm -rf conftest*
|
---|
1242 | ac_cv_type_size_t=yes
|
---|
1243 | else
|
---|
1244 | rm -rf conftest*
|
---|
1245 | ac_cv_type_size_t=no
|
---|
1246 | fi
|
---|
1247 | rm -f conftest*
|
---|
1248 |
|
---|
1249 | fi
|
---|
1250 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
1251 | if test $ac_cv_type_size_t = no; then
|
---|
1252 | cat >> confdefs.h <<\EOF
|
---|
1253 | #define size_t unsigned
|
---|
1254 | EOF
|
---|
1255 |
|
---|
1256 | fi
|
---|
1257 |
|
---|
1258 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
1259 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
1260 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1261 | else
|
---|
1262 | cat > conftest.$ac_ext <<EOF
|
---|
1263 | #line 1264 "configure"
|
---|
1264 | #include "confdefs.h"
|
---|
1265 | #include <sys/types.h>
|
---|
1266 | #include <sys/time.h>
|
---|
1267 | #include <time.h>
|
---|
1268 | int main() { return 0; }
|
---|
1269 | int t() {
|
---|
1270 | struct tm *tp;
|
---|
1271 | ; return 0; }
|
---|
1272 | EOF
|
---|
1273 | if eval $ac_compile; then
|
---|
1274 | rm -rf conftest*
|
---|
1275 | ac_cv_header_time=yes
|
---|
1276 | else
|
---|
1277 | rm -rf conftest*
|
---|
1278 | ac_cv_header_time=no
|
---|
1279 | fi
|
---|
1280 | rm -f conftest*
|
---|
1281 |
|
---|
1282 | fi
|
---|
1283 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
1284 | if test $ac_cv_header_time = yes; then
|
---|
1285 | cat >> confdefs.h <<\EOF
|
---|
1286 | #define TIME_WITH_SYS_TIME 1
|
---|
1287 | EOF
|
---|
1288 |
|
---|
1289 | fi
|
---|
1290 |
|
---|
1291 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
---|
1292 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
---|
1293 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1294 | else
|
---|
1295 | cat > conftest.$ac_ext <<EOF
|
---|
1296 | #line 1297 "configure"
|
---|
1297 | #include "confdefs.h"
|
---|
1298 | #include <sys/types.h>
|
---|
1299 | #include <time.h>
|
---|
1300 | int main() { return 0; }
|
---|
1301 | int t() {
|
---|
1302 | struct tm *tp; tp->tm_sec;
|
---|
1303 | ; return 0; }
|
---|
1304 | EOF
|
---|
1305 | if eval $ac_compile; then
|
---|
1306 | rm -rf conftest*
|
---|
1307 | ac_cv_struct_tm=time.h
|
---|
1308 | else
|
---|
1309 | rm -rf conftest*
|
---|
1310 | ac_cv_struct_tm=sys/time.h
|
---|
1311 | fi
|
---|
1312 | rm -f conftest*
|
---|
1313 |
|
---|
1314 | fi
|
---|
1315 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
---|
1316 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
1317 | cat >> confdefs.h <<\EOF
|
---|
1318 | #define TM_IN_SYS_TIME 1
|
---|
1319 | EOF
|
---|
1320 |
|
---|
1321 | fi
|
---|
1322 |
|
---|
1323 |
|
---|
1324 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
1325 | cat > conftest.$ac_ext <<EOF
|
---|
1326 | #line 1327 "configure"
|
---|
1327 | #include "confdefs.h"
|
---|
1328 | #include <stdio.h>
|
---|
1329 |
|
---|
1330 | int main() { return 0; }
|
---|
1331 | int t() {
|
---|
1332 | FILE *rubbish = popen("yes", "r");
|
---|
1333 | ; return 0; }
|
---|
1334 | EOF
|
---|
1335 | if eval $ac_compile; then
|
---|
1336 | :
|
---|
1337 | else
|
---|
1338 | rm -rf conftest*
|
---|
1339 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
1340 | fi
|
---|
1341 | rm -f conftest*
|
---|
1342 |
|
---|
1343 | fi
|
---|
1344 |
|
---|
1345 |
|
---|
1346 | echo $ac_n "checking for -lm""... $ac_c" 1>&6
|
---|
1347 | if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then
|
---|
1348 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1349 | else
|
---|
1350 | ac_save_LIBS="$LIBS"
|
---|
1351 | LIBS="-lm $LIBS"
|
---|
1352 | cat > conftest.$ac_ext <<EOF
|
---|
1353 | #line 1354 "configure"
|
---|
1354 | #include "confdefs.h"
|
---|
1355 |
|
---|
1356 | int main() { return 0; }
|
---|
1357 | int t() {
|
---|
1358 | main()
|
---|
1359 | ; return 0; }
|
---|
1360 | EOF
|
---|
1361 | if eval $ac_link; then
|
---|
1362 | rm -rf conftest*
|
---|
1363 | eval "ac_cv_lib_m=yes"
|
---|
1364 | else
|
---|
1365 | rm -rf conftest*
|
---|
1366 | eval "ac_cv_lib_m=no"
|
---|
1367 | fi
|
---|
1368 | rm -f conftest*
|
---|
1369 | LIBS="$ac_save_LIBS"
|
---|
1370 |
|
---|
1371 | fi
|
---|
1372 | if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
|
---|
1373 | echo "$ac_t""yes" 1>&6
|
---|
1374 | ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
|
---|
1375 | cat >> confdefs.h <<EOF
|
---|
1376 | #define $ac_tr_lib 1
|
---|
1377 | EOF
|
---|
1378 |
|
---|
1379 | LIBS="-lm $LIBS"
|
---|
1380 |
|
---|
1381 | else
|
---|
1382 | echo "$ac_t""no" 1>&6
|
---|
1383 | fi
|
---|
1384 |
|
---|
1385 |
|
---|
1386 | ac_header_dirent=no
|
---|
1387 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
1388 | do
|
---|
1389 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
|
---|
1390 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
1391 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
1392 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1393 | else
|
---|
1394 | cat > conftest.$ac_ext <<EOF
|
---|
1395 | #line 1396 "configure"
|
---|
1396 | #include "confdefs.h"
|
---|
1397 | #include <sys/types.h>
|
---|
1398 | #include <$ac_hdr>
|
---|
1399 | int main() { return 0; }
|
---|
1400 | int t() {
|
---|
1401 | DIR *dirp = 0;
|
---|
1402 | ; return 0; }
|
---|
1403 | EOF
|
---|
1404 | if eval $ac_compile; then
|
---|
1405 | rm -rf conftest*
|
---|
1406 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
1407 | else
|
---|
1408 | rm -rf conftest*
|
---|
1409 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
1410 | fi
|
---|
1411 | rm -f conftest*
|
---|
1412 |
|
---|
1413 | fi
|
---|
1414 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
1415 | echo "$ac_t""yes" 1>&6
|
---|
1416 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
|
---|
1417 | cat >> confdefs.h <<EOF
|
---|
1418 | #define $ac_tr_hdr 1
|
---|
1419 | EOF
|
---|
1420 | ac_header_dirent=$ac_hdr; break
|
---|
1421 | else
|
---|
1422 | echo "$ac_t""no" 1>&6
|
---|
1423 | fi
|
---|
1424 | done
|
---|
1425 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
1426 | if test $ac_header_dirent = dirent.h; then
|
---|
1427 | echo $ac_n "checking for -ldir""... $ac_c" 1>&6
|
---|
1428 | if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
|
---|
1429 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1430 | else
|
---|
1431 | ac_save_LIBS="$LIBS"
|
---|
1432 | LIBS="-ldir $LIBS"
|
---|
1433 | cat > conftest.$ac_ext <<EOF
|
---|
1434 | #line 1435 "configure"
|
---|
1435 | #include "confdefs.h"
|
---|
1436 |
|
---|
1437 | int main() { return 0; }
|
---|
1438 | int t() {
|
---|
1439 | opendir()
|
---|
1440 | ; return 0; }
|
---|
1441 | EOF
|
---|
1442 | if eval $ac_link; then
|
---|
1443 | rm -rf conftest*
|
---|
1444 | eval "ac_cv_lib_dir=yes"
|
---|
1445 | else
|
---|
1446 | rm -rf conftest*
|
---|
1447 | eval "ac_cv_lib_dir=no"
|
---|
1448 | fi
|
---|
1449 | rm -f conftest*
|
---|
1450 | LIBS="$ac_save_LIBS"
|
---|
1451 |
|
---|
1452 | fi
|
---|
1453 | if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
|
---|
1454 | echo "$ac_t""yes" 1>&6
|
---|
1455 | LIBS="$LIBS -ldir"
|
---|
1456 | else
|
---|
1457 | echo "$ac_t""no" 1>&6
|
---|
1458 | fi
|
---|
1459 |
|
---|
1460 | else
|
---|
1461 | echo $ac_n "checking for -lx""... $ac_c" 1>&6
|
---|
1462 | if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
|
---|
1463 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1464 | else
|
---|
1465 | ac_save_LIBS="$LIBS"
|
---|
1466 | LIBS="-lx $LIBS"
|
---|
1467 | cat > conftest.$ac_ext <<EOF
|
---|
1468 | #line 1469 "configure"
|
---|
1469 | #include "confdefs.h"
|
---|
1470 |
|
---|
1471 | int main() { return 0; }
|
---|
1472 | int t() {
|
---|
1473 | opendir()
|
---|
1474 | ; return 0; }
|
---|
1475 | EOF
|
---|
1476 | if eval $ac_link; then
|
---|
1477 | rm -rf conftest*
|
---|
1478 | eval "ac_cv_lib_x=yes"
|
---|
1479 | else
|
---|
1480 | rm -rf conftest*
|
---|
1481 | eval "ac_cv_lib_x=no"
|
---|
1482 | fi
|
---|
1483 | rm -f conftest*
|
---|
1484 | LIBS="$ac_save_LIBS"
|
---|
1485 |
|
---|
1486 | fi
|
---|
1487 | if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
|
---|
1488 | echo "$ac_t""yes" 1>&6
|
---|
1489 | LIBS="$LIBS -lx"
|
---|
1490 | else
|
---|
1491 | echo "$ac_t""no" 1>&6
|
---|
1492 | fi
|
---|
1493 |
|
---|
1494 | fi
|
---|
1495 |
|
---|
1496 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1497 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1498 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1499 | else
|
---|
1500 | cat > conftest.$ac_ext <<EOF
|
---|
1501 | #line 1502 "configure"
|
---|
1502 | #include "confdefs.h"
|
---|
1503 | #include <stdlib.h>
|
---|
1504 | #include <stdarg.h>
|
---|
1505 | #include <string.h>
|
---|
1506 | #include <float.h>
|
---|
1507 | EOF
|
---|
1508 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1509 | ac_err=`grep -v '^ *+' conftest.out`
|
---|
1510 | if test -z "$ac_err"; then
|
---|
1511 | rm -rf conftest*
|
---|
1512 | ac_cv_header_stdc=yes
|
---|
1513 | else
|
---|
1514 | echo "$ac_err" >&5
|
---|
1515 | rm -rf conftest*
|
---|
1516 | ac_cv_header_stdc=no
|
---|
1517 | fi
|
---|
1518 | rm -f conftest*
|
---|
1519 |
|
---|
1520 | if test $ac_cv_header_stdc = yes; then
|
---|
1521 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1522 | cat > conftest.$ac_ext <<EOF
|
---|
1523 | #line 1524 "configure"
|
---|
1524 | #include "confdefs.h"
|
---|
1525 | #include <string.h>
|
---|
1526 | EOF
|
---|
1527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1528 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1529 | :
|
---|
1530 | else
|
---|
1531 | rm -rf conftest*
|
---|
1532 | ac_cv_header_stdc=no
|
---|
1533 | fi
|
---|
1534 | rm -f conftest*
|
---|
1535 |
|
---|
1536 | fi
|
---|
1537 |
|
---|
1538 | if test $ac_cv_header_stdc = yes; then
|
---|
1539 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1540 | cat > conftest.$ac_ext <<EOF
|
---|
1541 | #line 1542 "configure"
|
---|
1542 | #include "confdefs.h"
|
---|
1543 | #include <stdlib.h>
|
---|
1544 | EOF
|
---|
1545 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1546 | egrep "free" >/dev/null 2>&1; then
|
---|
1547 | :
|
---|
1548 | else
|
---|
1549 | rm -rf conftest*
|
---|
1550 | ac_cv_header_stdc=no
|
---|
1551 | fi
|
---|
1552 | rm -f conftest*
|
---|
1553 |
|
---|
1554 | fi
|
---|
1555 |
|
---|
1556 | if test $ac_cv_header_stdc = yes; then
|
---|
1557 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1558 | if test "$cross_compiling" = yes; then
|
---|
1559 | ac_cv_header_stdc=no
|
---|
1560 | else
|
---|
1561 | cat > conftest.$ac_ext <<EOF
|
---|
1562 | #line 1563 "configure"
|
---|
1563 | #include "confdefs.h"
|
---|
1564 | #include <ctype.h>
|
---|
1565 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1566 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1567 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1568 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1569 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1570 | exit (0); }
|
---|
1571 |
|
---|
1572 | EOF
|
---|
1573 | eval $ac_link
|
---|
1574 | if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
---|
1575 | :
|
---|
1576 | else
|
---|
1577 | ac_cv_header_stdc=no
|
---|
1578 | fi
|
---|
1579 | fi
|
---|
1580 | rm -fr conftest*
|
---|
1581 | fi
|
---|
1582 | fi
|
---|
1583 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1584 | if test $ac_cv_header_stdc = yes; then
|
---|
1585 | cat >> confdefs.h <<\EOF
|
---|
1586 | #define STDC_HEADERS 1
|
---|
1587 | EOF
|
---|
1588 |
|
---|
1589 | fi
|
---|
1590 |
|
---|
1591 | for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
1592 | do
|
---|
1593 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
|
---|
1594 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
1595 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1596 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1597 | else
|
---|
1598 | cat > conftest.$ac_ext <<EOF
|
---|
1599 | #line 1600 "configure"
|
---|
1600 | #include "confdefs.h"
|
---|
1601 | #include <$ac_hdr>
|
---|
1602 | EOF
|
---|
1603 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1604 | ac_err=`grep -v '^ *+' conftest.out`
|
---|
1605 | if test -z "$ac_err"; then
|
---|
1606 | rm -rf conftest*
|
---|
1607 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1608 | else
|
---|
1609 | echo "$ac_err" >&5
|
---|
1610 | rm -rf conftest*
|
---|
1611 | eval "ac_cv_header_$ac_safe=no"
|
---|
1612 | fi
|
---|
1613 | rm -f conftest*
|
---|
1614 | fi
|
---|
1615 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1616 | echo "$ac_t""yes" 1>&6
|
---|
1617 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
|
---|
1618 | cat >> confdefs.h <<EOF
|
---|
1619 | #define $ac_tr_hdr 1
|
---|
1620 | EOF
|
---|
1621 |
|
---|
1622 | else
|
---|
1623 | echo "$ac_t""no" 1>&6
|
---|
1624 | fi
|
---|
1625 | done
|
---|
1626 |
|
---|
1627 | cat > conftest.$ac_ext <<EOF
|
---|
1628 | #line 1629 "configure"
|
---|
1629 | #include "confdefs.h"
|
---|
1630 | #include <stdio.h>
|
---|
1631 | EOF
|
---|
1632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1633 | egrep "fread" >/dev/null 2>&1; then
|
---|
1634 | rm -rf conftest*
|
---|
1635 | cat >> confdefs.h <<\EOF
|
---|
1636 | #define HAVE_FREAD_DECL 1
|
---|
1637 | EOF
|
---|
1638 |
|
---|
1639 | fi
|
---|
1640 | rm -f conftest*
|
---|
1641 |
|
---|
1642 | cat > conftest.$ac_ext <<EOF
|
---|
1643 | #line 1644 "configure"
|
---|
1644 | #include "confdefs.h"
|
---|
1645 | #include <stdio.h>
|
---|
1646 | EOF
|
---|
1647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1648 | egrep "fgetc" >/dev/null 2>&1; then
|
---|
1649 | rm -rf conftest*
|
---|
1650 | cat >> confdefs.h <<\EOF
|
---|
1651 | #define HAVE_FGETC_DECL 1
|
---|
1652 | EOF
|
---|
1653 |
|
---|
1654 | fi
|
---|
1655 | rm -f conftest*
|
---|
1656 |
|
---|
1657 | cat > conftest.$ac_ext <<EOF
|
---|
1658 | #line 1659 "configure"
|
---|
1659 | #include "confdefs.h"
|
---|
1660 | #include <sys/procfs.h>
|
---|
1661 | EOF
|
---|
1662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1663 | egrep "pr_brksize" >/dev/null 2>&1; then
|
---|
1664 | rm -rf conftest*
|
---|
1665 | cat >> confdefs.h <<\EOF
|
---|
1666 | #define HAVE_PR_BRKSIZE 1
|
---|
1667 | EOF
|
---|
1668 |
|
---|
1669 | fi
|
---|
1670 | rm -f conftest*
|
---|
1671 |
|
---|
1672 |
|
---|
1673 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
1674 | # for constant arguments. Useless!
|
---|
1675 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
1676 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
1677 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1678 | else
|
---|
1679 | cat > conftest.$ac_ext <<EOF
|
---|
1680 | #line 1681 "configure"
|
---|
1681 | #include "confdefs.h"
|
---|
1682 | #include <alloca.h>
|
---|
1683 | int main() { return 0; }
|
---|
1684 | int t() {
|
---|
1685 | char *p = alloca(2 * sizeof(int));
|
---|
1686 | ; return 0; }
|
---|
1687 | EOF
|
---|
1688 | if eval $ac_link; then
|
---|
1689 | rm -rf conftest*
|
---|
1690 | ac_cv_header_alloca_h=yes
|
---|
1691 | else
|
---|
1692 | rm -rf conftest*
|
---|
1693 | ac_cv_header_alloca_h=no
|
---|
1694 | fi
|
---|
1695 | rm -f conftest*
|
---|
1696 |
|
---|
1697 | fi
|
---|
1698 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
1699 | if test $ac_cv_header_alloca_h = yes; then
|
---|
1700 | cat >> confdefs.h <<\EOF
|
---|
1701 | #define HAVE_ALLOCA_H 1
|
---|
1702 | EOF
|
---|
1703 |
|
---|
1704 | fi
|
---|
1705 |
|
---|
1706 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
1707 | if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
|
---|
1708 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1709 | else
|
---|
1710 | cat > conftest.$ac_ext <<EOF
|
---|
1711 | #line 1712 "configure"
|
---|
1712 | #include "confdefs.h"
|
---|
1713 |
|
---|
1714 | #ifdef __GNUC__
|
---|
1715 | # define alloca __builtin_alloca
|
---|
1716 | #else
|
---|
1717 | # if HAVE_ALLOCA_H
|
---|
1718 | # include <alloca.h>
|
---|
1719 | # else
|
---|
1720 | # ifdef _AIX
|
---|
1721 | #pragma alloca
|
---|
1722 | # else
|
---|
1723 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
1724 | char *alloca ();
|
---|
1725 | # endif
|
---|
1726 | # endif
|
---|
1727 | # endif
|
---|
1728 | #endif
|
---|
1729 |
|
---|
1730 | int main() { return 0; }
|
---|
1731 | int t() {
|
---|
1732 | char *p = (char *) alloca(1);
|
---|
1733 | ; return 0; }
|
---|
1734 | EOF
|
---|
1735 | if eval $ac_link; then
|
---|
1736 | rm -rf conftest*
|
---|
1737 | ac_cv_func_alloca=yes
|
---|
1738 | else
|
---|
1739 | rm -rf conftest*
|
---|
1740 | ac_cv_func_alloca=no
|
---|
1741 | fi
|
---|
1742 | rm -f conftest*
|
---|
1743 |
|
---|
1744 | fi
|
---|
1745 | echo "$ac_t""$ac_cv_func_alloca" 1>&6
|
---|
1746 | if test $ac_cv_func_alloca = yes; then
|
---|
1747 | cat >> confdefs.h <<\EOF
|
---|
1748 | #define HAVE_ALLOCA 1
|
---|
1749 | EOF
|
---|
1750 |
|
---|
1751 | fi
|
---|
1752 |
|
---|
1753 | if test $ac_cv_func_alloca = no; then
|
---|
1754 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
1755 | # that cause trouble. Some versions do not even contain alloca or
|
---|
1756 | # contain a buggy version. If you still want to use their alloca,
|
---|
1757 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
1758 | ALLOCA=alloca.o
|
---|
1759 | cat >> confdefs.h <<\EOF
|
---|
1760 | #define C_ALLOCA 1
|
---|
1761 | EOF
|
---|
1762 |
|
---|
1763 |
|
---|
1764 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
1765 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
1766 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1767 | else
|
---|
1768 | cat > conftest.$ac_ext <<EOF
|
---|
1769 | #line 1770 "configure"
|
---|
1770 | #include "confdefs.h"
|
---|
1771 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
1772 | webecray
|
---|
1773 | #else
|
---|
1774 | wenotbecray
|
---|
1775 | #endif
|
---|
1776 |
|
---|
1777 | EOF
|
---|
1778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1779 | egrep "webecray" >/dev/null 2>&1; then
|
---|
1780 | rm -rf conftest*
|
---|
1781 | ac_cv_os_cray=yes
|
---|
1782 | else
|
---|
1783 | rm -rf conftest*
|
---|
1784 | ac_cv_os_cray=no
|
---|
1785 | fi
|
---|
1786 | rm -f conftest*
|
---|
1787 |
|
---|
1788 | fi
|
---|
1789 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
1790 | if test $ac_cv_os_cray = yes; then
|
---|
1791 | for ac_func in _getb67 GETB67 getb67; do
|
---|
1792 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
1793 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
1794 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1795 | else
|
---|
1796 | cat > conftest.$ac_ext <<EOF
|
---|
1797 | #line 1798 "configure"
|
---|
1798 | #include "confdefs.h"
|
---|
1799 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1800 | which can conflict with char $ac_func(); below. */
|
---|
1801 | #include <assert.h>
|
---|
1802 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1803 | char $ac_func();
|
---|
1804 |
|
---|
1805 | int main() { return 0; }
|
---|
1806 | int t() {
|
---|
1807 |
|
---|
1808 | /* The GNU C library defines this for functions which it implements
|
---|
1809 | to always fail with ENOSYS. Some functions are actually named
|
---|
1810 | something starting with __ and the normal name is an alias. */
|
---|
1811 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
1812 | choke me
|
---|
1813 | #else
|
---|
1814 | $ac_func();
|
---|
1815 | #endif
|
---|
1816 |
|
---|
1817 | ; return 0; }
|
---|
1818 | EOF
|
---|
1819 | if eval $ac_link; then
|
---|
1820 | rm -rf conftest*
|
---|
1821 | eval "ac_cv_func_$ac_func=yes"
|
---|
1822 | else
|
---|
1823 | rm -rf conftest*
|
---|
1824 | eval "ac_cv_func_$ac_func=no"
|
---|
1825 | fi
|
---|
1826 | rm -f conftest*
|
---|
1827 |
|
---|
1828 | fi
|
---|
1829 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
1830 | echo "$ac_t""yes" 1>&6
|
---|
1831 | cat >> confdefs.h <<EOF
|
---|
1832 | #define CRAY_STACKSEG_END $ac_func
|
---|
1833 | EOF
|
---|
1834 |
|
---|
1835 | break
|
---|
1836 | else
|
---|
1837 | echo "$ac_t""no" 1>&6
|
---|
1838 | fi
|
---|
1839 |
|
---|
1840 | done
|
---|
1841 | fi
|
---|
1842 |
|
---|
1843 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
1844 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
1845 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1846 | else
|
---|
1847 | if test "$cross_compiling" = yes; then
|
---|
1848 | ac_cv_c_stack_direction=0
|
---|
1849 | else
|
---|
1850 | cat > conftest.$ac_ext <<EOF
|
---|
1851 | #line 1852 "configure"
|
---|
1852 | #include "confdefs.h"
|
---|
1853 | find_stack_direction ()
|
---|
1854 | {
|
---|
1855 | static char *addr = 0;
|
---|
1856 | auto char dummy;
|
---|
1857 | if (addr == 0)
|
---|
1858 | {
|
---|
1859 | addr = &dummy;
|
---|
1860 | return find_stack_direction ();
|
---|
1861 | }
|
---|
1862 | else
|
---|
1863 | return (&dummy > addr) ? 1 : -1;
|
---|
1864 | }
|
---|
1865 | main ()
|
---|
1866 | {
|
---|
1867 | exit (find_stack_direction() < 0);
|
---|
1868 | }
|
---|
1869 | EOF
|
---|
1870 | eval $ac_link
|
---|
1871 | if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
---|
1872 | ac_cv_c_stack_direction=1
|
---|
1873 | else
|
---|
1874 | ac_cv_c_stack_direction=-1
|
---|
1875 | fi
|
---|
1876 | fi
|
---|
1877 | rm -fr conftest*
|
---|
1878 | fi
|
---|
1879 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
1880 | cat >> confdefs.h <<EOF
|
---|
1881 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
1882 | EOF
|
---|
1883 |
|
---|
1884 | fi
|
---|
1885 |
|
---|
1886 | if test $ac_cv_prog_gcc = yes; then
|
---|
1887 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
---|
1888 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
---|
1889 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1890 | else
|
---|
1891 | ac_pattern="Autoconf.*'x'"
|
---|
1892 | cat > conftest.$ac_ext <<EOF
|
---|
1893 | #line 1894 "configure"
|
---|
1894 | #include "confdefs.h"
|
---|
1895 | #include <sgtty.h>
|
---|
1896 | Autoconf TIOCGETP
|
---|
1897 | EOF
|
---|
1898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1899 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
1900 | rm -rf conftest*
|
---|
1901 | ac_cv_prog_gcc_traditional=yes
|
---|
1902 | else
|
---|
1903 | rm -rf conftest*
|
---|
1904 | ac_cv_prog_gcc_traditional=no
|
---|
1905 | fi
|
---|
1906 | rm -f conftest*
|
---|
1907 |
|
---|
1908 |
|
---|
1909 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
1910 | cat > conftest.$ac_ext <<EOF
|
---|
1911 | #line 1912 "configure"
|
---|
1912 | #include "confdefs.h"
|
---|
1913 | #include <termio.h>
|
---|
1914 | Autoconf TCGETA
|
---|
1915 | EOF
|
---|
1916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1917 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
1918 | rm -rf conftest*
|
---|
1919 | ac_cv_prog_gcc_traditional=yes
|
---|
1920 | fi
|
---|
1921 | rm -f conftest*
|
---|
1922 |
|
---|
1923 | fi
|
---|
1924 | fi
|
---|
1925 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
---|
1926 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
1927 | CC="$CC -traditional"
|
---|
1928 | fi
|
---|
1929 | fi
|
---|
1930 |
|
---|
1931 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
---|
1932 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
---|
1933 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1934 | else
|
---|
1935 | cat > conftest.$ac_ext <<EOF
|
---|
1936 | #line 1937 "configure"
|
---|
1937 | #include "confdefs.h"
|
---|
1938 | #include <sys/types.h>
|
---|
1939 | #include <signal.h>
|
---|
1940 | #ifdef signal
|
---|
1941 | #undef signal
|
---|
1942 | #endif
|
---|
1943 | #ifdef __cplusplus
|
---|
1944 | extern "C"
|
---|
1945 | #endif
|
---|
1946 | void (*signal ()) ();
|
---|
1947 | int main() { return 0; }
|
---|
1948 | int t() {
|
---|
1949 | int i;
|
---|
1950 | ; return 0; }
|
---|
1951 | EOF
|
---|
1952 | if eval $ac_compile; then
|
---|
1953 | rm -rf conftest*
|
---|
1954 | ac_cv_type_signal=void
|
---|
1955 | else
|
---|
1956 | rm -rf conftest*
|
---|
1957 | ac_cv_type_signal=int
|
---|
1958 | fi
|
---|
1959 | rm -f conftest*
|
---|
1960 |
|
---|
1961 | fi
|
---|
1962 | echo "$ac_t""$ac_cv_type_signal" 1>&6
|
---|
1963 | cat >> confdefs.h <<EOF
|
---|
1964 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
1965 | EOF
|
---|
1966 |
|
---|
1967 |
|
---|
1968 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6
|
---|
1969 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
|
---|
1970 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1971 | else
|
---|
1972 | cat > conftest.$ac_ext <<EOF
|
---|
1973 | #line 1974 "configure"
|
---|
1974 | #include "confdefs.h"
|
---|
1975 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1976 | which can conflict with char vprintf(); below. */
|
---|
1977 | #include <assert.h>
|
---|
1978 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1979 | char vprintf();
|
---|
1980 |
|
---|
1981 | int main() { return 0; }
|
---|
1982 | int t() {
|
---|
1983 |
|
---|
1984 | /* The GNU C library defines this for functions which it implements
|
---|
1985 | to always fail with ENOSYS. Some functions are actually named
|
---|
1986 | something starting with __ and the normal name is an alias. */
|
---|
1987 | #if defined (__stub_vprintf) || defined (__stub___vprintf)
|
---|
1988 | choke me
|
---|
1989 | #else
|
---|
1990 | vprintf();
|
---|
1991 | #endif
|
---|
1992 |
|
---|
1993 | ; return 0; }
|
---|
1994 | EOF
|
---|
1995 | if eval $ac_link; then
|
---|
1996 | rm -rf conftest*
|
---|
1997 | eval "ac_cv_func_vprintf=yes"
|
---|
1998 | else
|
---|
1999 | rm -rf conftest*
|
---|
2000 | eval "ac_cv_func_vprintf=no"
|
---|
2001 | fi
|
---|
2002 | rm -f conftest*
|
---|
2003 |
|
---|
2004 | fi
|
---|
2005 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
|
---|
2006 | echo "$ac_t""yes" 1>&6
|
---|
2007 | cat >> confdefs.h <<\EOF
|
---|
2008 | #define HAVE_VPRINTF 1
|
---|
2009 | EOF
|
---|
2010 |
|
---|
2011 | else
|
---|
2012 | echo "$ac_t""no" 1>&6
|
---|
2013 | fi
|
---|
2014 |
|
---|
2015 | if test "$ac_cv_func_vprintf" != yes; then
|
---|
2016 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
|
---|
2017 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
|
---|
2018 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2019 | else
|
---|
2020 | cat > conftest.$ac_ext <<EOF
|
---|
2021 | #line 2022 "configure"
|
---|
2022 | #include "confdefs.h"
|
---|
2023 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2024 | which can conflict with char _doprnt(); below. */
|
---|
2025 | #include <assert.h>
|
---|
2026 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2027 | char _doprnt();
|
---|
2028 |
|
---|
2029 | int main() { return 0; }
|
---|
2030 | int t() {
|
---|
2031 |
|
---|
2032 | /* The GNU C library defines this for functions which it implements
|
---|
2033 | to always fail with ENOSYS. Some functions are actually named
|
---|
2034 | something starting with __ and the normal name is an alias. */
|
---|
2035 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
2036 | choke me
|
---|
2037 | #else
|
---|
2038 | _doprnt();
|
---|
2039 | #endif
|
---|
2040 |
|
---|
2041 | ; return 0; }
|
---|
2042 | EOF
|
---|
2043 | if eval $ac_link; then
|
---|
2044 | rm -rf conftest*
|
---|
2045 | eval "ac_cv_func__doprnt=yes"
|
---|
2046 | else
|
---|
2047 | rm -rf conftest*
|
---|
2048 | eval "ac_cv_func__doprnt=no"
|
---|
2049 | fi
|
---|
2050 | rm -f conftest*
|
---|
2051 |
|
---|
2052 | fi
|
---|
2053 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
|
---|
2054 | echo "$ac_t""yes" 1>&6
|
---|
2055 | cat >> confdefs.h <<\EOF
|
---|
2056 | #define HAVE_DOPRNT 1
|
---|
2057 | EOF
|
---|
2058 |
|
---|
2059 | else
|
---|
2060 | echo "$ac_t""no" 1>&6
|
---|
2061 | fi
|
---|
2062 |
|
---|
2063 | fi
|
---|
2064 |
|
---|
2065 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
|
---|
2066 | do
|
---|
2067 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2068 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2069 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2070 | else
|
---|
2071 | cat > conftest.$ac_ext <<EOF
|
---|
2072 | #line 2073 "configure"
|
---|
2073 | #include "confdefs.h"
|
---|
2074 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2075 | which can conflict with char $ac_func(); below. */
|
---|
2076 | #include <assert.h>
|
---|
2077 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2078 | char $ac_func();
|
---|
2079 |
|
---|
2080 | int main() { return 0; }
|
---|
2081 | int t() {
|
---|
2082 |
|
---|
2083 | /* The GNU C library defines this for functions which it implements
|
---|
2084 | to always fail with ENOSYS. Some functions are actually named
|
---|
2085 | something starting with __ and the normal name is an alias. */
|
---|
2086 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2087 | choke me
|
---|
2088 | #else
|
---|
2089 | $ac_func();
|
---|
2090 | #endif
|
---|
2091 |
|
---|
2092 | ; return 0; }
|
---|
2093 | EOF
|
---|
2094 | if eval $ac_link; then
|
---|
2095 | rm -rf conftest*
|
---|
2096 | eval "ac_cv_func_$ac_func=yes"
|
---|
2097 | else
|
---|
2098 | rm -rf conftest*
|
---|
2099 | eval "ac_cv_func_$ac_func=no"
|
---|
2100 | fi
|
---|
2101 | rm -f conftest*
|
---|
2102 |
|
---|
2103 | fi
|
---|
2104 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2105 | echo "$ac_t""yes" 1>&6
|
---|
2106 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
|
---|
2107 | cat >> confdefs.h <<EOF
|
---|
2108 | #define $ac_tr_func 1
|
---|
2109 | EOF
|
---|
2110 |
|
---|
2111 | else
|
---|
2112 | echo "$ac_t""no" 1>&6
|
---|
2113 | fi
|
---|
2114 | done
|
---|
2115 |
|
---|
2116 | for ac_func in ftruncate strstr strcasecmp
|
---|
2117 | do
|
---|
2118 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2119 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2120 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2121 | else
|
---|
2122 | cat > conftest.$ac_ext <<EOF
|
---|
2123 | #line 2124 "configure"
|
---|
2124 | #include "confdefs.h"
|
---|
2125 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2126 | which can conflict with char $ac_func(); below. */
|
---|
2127 | #include <assert.h>
|
---|
2128 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2129 | char $ac_func();
|
---|
2130 |
|
---|
2131 | int main() { return 0; }
|
---|
2132 | int t() {
|
---|
2133 |
|
---|
2134 | /* The GNU C library defines this for functions which it implements
|
---|
2135 | to always fail with ENOSYS. Some functions are actually named
|
---|
2136 | something starting with __ and the normal name is an alias. */
|
---|
2137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2138 | choke me
|
---|
2139 | #else
|
---|
2140 | $ac_func();
|
---|
2141 | #endif
|
---|
2142 |
|
---|
2143 | ; return 0; }
|
---|
2144 | EOF
|
---|
2145 | if eval $ac_link; then
|
---|
2146 | rm -rf conftest*
|
---|
2147 | eval "ac_cv_func_$ac_func=yes"
|
---|
2148 | else
|
---|
2149 | rm -rf conftest*
|
---|
2150 | eval "ac_cv_func_$ac_func=no"
|
---|
2151 | fi
|
---|
2152 | rm -f conftest*
|
---|
2153 |
|
---|
2154 | fi
|
---|
2155 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2156 | echo "$ac_t""yes" 1>&6
|
---|
2157 | :
|
---|
2158 | else
|
---|
2159 | echo "$ac_t""no" 1>&6
|
---|
2160 | LIBOBJS="$LIBOBJS ${ac_func}.o"
|
---|
2161 | fi
|
---|
2162 |
|
---|
2163 | done
|
---|
2164 |
|
---|
2165 |
|
---|
2166 |
|
---|
2167 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
2168 | # ---------------------------------------------------------------------------
|
---|
2169 | echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
|
---|
2170 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
2171 | echo "$ac_t""yes" 1>&6
|
---|
2172 | LIBOBJS="$LIBOBJS gmalloc.o"
|
---|
2173 | cat >> confdefs.h <<\EOF
|
---|
2174 | #define HAVE_VALLOC 1
|
---|
2175 | EOF
|
---|
2176 |
|
---|
2177 | else
|
---|
2178 | echo "$ac_t""no" 1>&6
|
---|
2179 | for ac_func in valloc
|
---|
2180 | do
|
---|
2181 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2182 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2183 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2184 | else
|
---|
2185 | cat > conftest.$ac_ext <<EOF
|
---|
2186 | #line 2187 "configure"
|
---|
2187 | #include "confdefs.h"
|
---|
2188 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2189 | which can conflict with char $ac_func(); below. */
|
---|
2190 | #include <assert.h>
|
---|
2191 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2192 | char $ac_func();
|
---|
2193 |
|
---|
2194 | int main() { return 0; }
|
---|
2195 | int t() {
|
---|
2196 |
|
---|
2197 | /* The GNU C library defines this for functions which it implements
|
---|
2198 | to always fail with ENOSYS. Some functions are actually named
|
---|
2199 | something starting with __ and the normal name is an alias. */
|
---|
2200 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2201 | choke me
|
---|
2202 | #else
|
---|
2203 | $ac_func();
|
---|
2204 | #endif
|
---|
2205 |
|
---|
2206 | ; return 0; }
|
---|
2207 | EOF
|
---|
2208 | if eval $ac_link; then
|
---|
2209 | rm -rf conftest*
|
---|
2210 | eval "ac_cv_func_$ac_func=yes"
|
---|
2211 | else
|
---|
2212 | rm -rf conftest*
|
---|
2213 | eval "ac_cv_func_$ac_func=no"
|
---|
2214 | fi
|
---|
2215 | rm -f conftest*
|
---|
2216 |
|
---|
2217 | fi
|
---|
2218 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2219 | echo "$ac_t""yes" 1>&6
|
---|
2220 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
|
---|
2221 | cat >> confdefs.h <<EOF
|
---|
2222 | #define $ac_tr_func 1
|
---|
2223 | EOF
|
---|
2224 |
|
---|
2225 | else
|
---|
2226 | echo "$ac_t""no" 1>&6
|
---|
2227 | fi
|
---|
2228 | done
|
---|
2229 |
|
---|
2230 | fi
|
---|
2231 |
|
---|
2232 | echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
|
---|
2233 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
2234 | withval="$with_dmalloc"
|
---|
2235 | if test -n "$withval"; then
|
---|
2236 | if test "$withval" = yes; then
|
---|
2237 | echo "$ac_t""yes" 1>&6
|
---|
2238 | cat >> confdefs.h <<\EOF
|
---|
2239 | #define WITH_DMALLOC 1
|
---|
2240 | EOF
|
---|
2241 |
|
---|
2242 | LIBS="$LIBS -ldmalloc"
|
---|
2243 | LDFLAGS="$LDFLAGS -g"
|
---|
2244 | else
|
---|
2245 | echo "$ac_t""no" 1>&6
|
---|
2246 | fi
|
---|
2247 | else
|
---|
2248 | echo "$ac_t""no" 1>&6
|
---|
2249 | fi
|
---|
2250 |
|
---|
2251 |
|
---|
2252 | echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
|
---|
2253 | # Check whether --with-regex or --without-regex was given.
|
---|
2254 | withval="$with_regex"
|
---|
2255 | if test -n "$withval"; then
|
---|
2256 | if test "$withval" = yes; then
|
---|
2257 | ac_with_regex=1
|
---|
2258 | echo "$ac_t""regex" 1>&6
|
---|
2259 | cat >> confdefs.h <<\EOF
|
---|
2260 | #define WITH_REGEX 1
|
---|
2261 | EOF
|
---|
2262 |
|
---|
2263 | LIBOBJS="$LIBOBJS regex.o"
|
---|
2264 | fi
|
---|
2265 | fi
|
---|
2266 |
|
---|
2267 | if test -z "$ac_with_regex"; then
|
---|
2268 | echo "$ac_t""rx" 1>&6
|
---|
2269 | echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
|
---|
2270 | if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
|
---|
2271 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2272 | else
|
---|
2273 | cat > conftest.$ac_ext <<EOF
|
---|
2274 | #line 2275 "configure"
|
---|
2275 | #include "confdefs.h"
|
---|
2276 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2277 | which can conflict with char re_rx_search(); below. */
|
---|
2278 | #include <assert.h>
|
---|
2279 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2280 | char re_rx_search();
|
---|
2281 |
|
---|
2282 | int main() { return 0; }
|
---|
2283 | int t() {
|
---|
2284 |
|
---|
2285 | /* The GNU C library defines this for functions which it implements
|
---|
2286 | to always fail with ENOSYS. Some functions are actually named
|
---|
2287 | something starting with __ and the normal name is an alias. */
|
---|
2288 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
2289 | choke me
|
---|
2290 | #else
|
---|
2291 | re_rx_search();
|
---|
2292 | #endif
|
---|
2293 |
|
---|
2294 | ; return 0; }
|
---|
2295 | EOF
|
---|
2296 | if eval $ac_link; then
|
---|
2297 | rm -rf conftest*
|
---|
2298 | eval "ac_cv_func_re_rx_search=yes"
|
---|
2299 | else
|
---|
2300 | rm -rf conftest*
|
---|
2301 | eval "ac_cv_func_re_rx_search=no"
|
---|
2302 | fi
|
---|
2303 | rm -f conftest*
|
---|
2304 |
|
---|
2305 | fi
|
---|
2306 | if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
|
---|
2307 | echo "$ac_t""yes" 1>&6
|
---|
2308 | :
|
---|
2309 | else
|
---|
2310 | echo "$ac_t""no" 1>&6
|
---|
2311 | LIBOBJS="$LIBOBJS rx.o"
|
---|
2312 | fi
|
---|
2313 |
|
---|
2314 | fi
|
---|
2315 |
|
---|
2316 |
|
---|
2317 | # ---------------------------------------------------------------------------
|
---|
2318 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
2319 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
2320 | fi
|
---|
2321 |
|
---|
2322 |
|
---|
2323 | # ---------------------------------------------------------------------------
|
---|
2324 |
|
---|
2325 | trap '' 1 2 15
|
---|
2326 | cat > confcache <<\EOF
|
---|
2327 | # This file is a shell script that caches the results of configure
|
---|
2328 | # tests run on this system so they can be shared between configure
|
---|
2329 | # scripts and configure runs. It is not useful on other systems.
|
---|
2330 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2331 | #
|
---|
2332 | # By default, configure uses ./config.cache as the cache file,
|
---|
2333 | # creating it if it does not exist already. You can give configure
|
---|
2334 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2335 | # what configure does when it calls configure scripts in
|
---|
2336 | # subdirectories, so they share the cache.
|
---|
2337 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2338 | # config.status only pays attention to the cache file if you give it the
|
---|
2339 | # --recheck option to rerun configure.
|
---|
2340 | #
|
---|
2341 | EOF
|
---|
2342 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2343 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2344 | (set) 2>&1 |
|
---|
2345 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
|
---|
2346 | >> confcache
|
---|
2347 | if cmp -s $cache_file confcache; then
|
---|
2348 | :
|
---|
2349 | else
|
---|
2350 | if test -w $cache_file; then
|
---|
2351 | echo "updating cache $cache_file"
|
---|
2352 | cat confcache > $cache_file
|
---|
2353 | else
|
---|
2354 | echo "not updating unwritable cache $cache_file"
|
---|
2355 | fi
|
---|
2356 | fi
|
---|
2357 | rm -f confcache
|
---|
2358 |
|
---|
2359 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
2360 |
|
---|
2361 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
2362 | # Let make expand exec_prefix.
|
---|
2363 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
2364 |
|
---|
2365 | # Any assignment to VPATH causes Sun make to only execute
|
---|
2366 | # the first set of double-colon rules, so remove it if not needed.
|
---|
2367 | # If there is a colon in the path, we need to keep it.
|
---|
2368 | if test "x$srcdir" = x.; then
|
---|
2369 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
2370 | fi
|
---|
2371 |
|
---|
2372 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
2373 |
|
---|
2374 | DEFS=-DHAVE_CONFIG_H
|
---|
2375 |
|
---|
2376 | # Without the "./", some shells look in PATH for config.status.
|
---|
2377 | : ${CONFIG_STATUS=./config.status}
|
---|
2378 |
|
---|
2379 | echo creating $CONFIG_STATUS
|
---|
2380 | rm -f $CONFIG_STATUS
|
---|
2381 | cat > $CONFIG_STATUS <<EOF
|
---|
2382 | #! /bin/sh
|
---|
2383 | # Generated automatically by configure.
|
---|
2384 | # Run this file to recreate the current configuration.
|
---|
2385 | # This directory was configured as follows,
|
---|
2386 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
2387 | #
|
---|
2388 | # $0 $ac_configure_args
|
---|
2389 | #
|
---|
2390 | # Compiler output produced by configure, useful for debugging
|
---|
2391 | # configure, is in ./config.log if it exists.
|
---|
2392 |
|
---|
2393 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
2394 | for ac_option
|
---|
2395 | do
|
---|
2396 | case "\$ac_option" in
|
---|
2397 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
2398 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
2399 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
2400 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
2401 | echo "$CONFIG_STATUS generated by autoconf version 2.4"
|
---|
2402 | exit 0 ;;
|
---|
2403 | -help | --help | --hel | --he | --h)
|
---|
2404 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
2405 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
2406 | esac
|
---|
2407 | done
|
---|
2408 |
|
---|
2409 | ac_given_srcdir=$srcdir
|
---|
2410 | ac_given_INSTALL="$INSTALL"
|
---|
2411 |
|
---|
2412 | trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile
|
---|
2413 | src/scripts/Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
2414 |
|
---|
2415 | # Protect against being on the right side of a sed subst in config.status.
|
---|
2416 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
|
---|
2417 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
---|
2418 | $ac_vpsub
|
---|
2419 | $extrasub
|
---|
2420 | s%@CFLAGS@%$CFLAGS%g
|
---|
2421 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
2422 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
2423 | s%@DEFS@%$DEFS%g
|
---|
2424 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
2425 | s%@LIBS@%$LIBS%g
|
---|
2426 | s%@exec_prefix@%$exec_prefix%g
|
---|
2427 | s%@prefix@%$prefix%g
|
---|
2428 | s%@program_transform_name@%$program_transform_name%g
|
---|
2429 | s%@PACKAGE@%$PACKAGE%g
|
---|
2430 | s%@VERSION@%$VERSION%g
|
---|
2431 | s%@CXX@%$CXX%g
|
---|
2432 | s%@AWK@%$AWK%g
|
---|
2433 | s%@YACC@%$YACC%g
|
---|
2434 | s%@CC@%$CC%g
|
---|
2435 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
2436 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
2437 | s%@LN_S@%$LN_S%g
|
---|
2438 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
2439 | s%@RANLIB@%$RANLIB%g
|
---|
2440 | s%@CPP@%$CPP%g
|
---|
2441 | s%@U@%$U%g
|
---|
2442 | s%@ANSI2KNR@%$ANSI2KNR%g
|
---|
2443 | s%@ALLOCA@%$ALLOCA%g
|
---|
2444 | s%@LIBOBJS@%$LIBOBJS%g
|
---|
2445 |
|
---|
2446 | CEOF
|
---|
2447 | EOF
|
---|
2448 | cat >> $CONFIG_STATUS <<EOF
|
---|
2449 |
|
---|
2450 | CONFIG_FILES=\${CONFIG_FILES-"Makefile src/text/Makefile src/images/Makefile
|
---|
2451 | src/scripts/Makefile lib/Makefile "}
|
---|
2452 | EOF
|
---|
2453 | cat >> $CONFIG_STATUS <<\EOF
|
---|
2454 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
2455 | # Support "outfile[:infile]", defaulting infile="outfile.in".
|
---|
2456 | case "$ac_file" in
|
---|
2457 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
|
---|
2458 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
2459 | *) ac_file_in="${ac_file}.in" ;;
|
---|
2460 | esac
|
---|
2461 |
|
---|
2462 | # Adjust relative srcdir, etc. for subdirectories.
|
---|
2463 |
|
---|
2464 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
2465 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
2466 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
2467 | # The file is in a subdirectory.
|
---|
2468 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
2469 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
2470 | # A "../" for each directory in $ac_dir_suffix.
|
---|
2471 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
2472 | else
|
---|
2473 | ac_dir_suffix= ac_dots=
|
---|
2474 | fi
|
---|
2475 |
|
---|
2476 | case "$ac_given_srcdir" in
|
---|
2477 | .) srcdir=.
|
---|
2478 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
2479 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
2480 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
2481 | *) # Relative path.
|
---|
2482 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
2483 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
2484 | esac
|
---|
2485 |
|
---|
2486 | case "$ac_given_INSTALL" in
|
---|
2487 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
2488 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
2489 | esac
|
---|
2490 | echo creating "$ac_file"
|
---|
2491 | rm -f "$ac_file"
|
---|
2492 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
2493 | case "$ac_file" in
|
---|
2494 | *Makefile*) ac_comsub="1i\\
|
---|
2495 | # $configure_input" ;;
|
---|
2496 | *) ac_comsub= ;;
|
---|
2497 | esac
|
---|
2498 | sed -e "$ac_comsub
|
---|
2499 | s%@configure_input@%$configure_input%g
|
---|
2500 | s%@srcdir@%$srcdir%g
|
---|
2501 | s%@top_srcdir@%$top_srcdir%g
|
---|
2502 | s%@INSTALL@%$INSTALL%g
|
---|
2503 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
|
---|
2504 | fi; done
|
---|
2505 | rm -f conftest.subs
|
---|
2506 |
|
---|
2507 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
2508 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
2509 | #
|
---|
2510 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
2511 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
2512 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
2513 | ac_dC='\3'
|
---|
2514 | ac_dD='%g'
|
---|
2515 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
2516 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
2517 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
2518 | ac_uC=' '
|
---|
2519 | ac_uD='\4%g'
|
---|
2520 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
2521 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
2522 | ac_eB='$%\1#\2define\3'
|
---|
2523 | ac_eC=' '
|
---|
2524 | ac_eD='%g'
|
---|
2525 |
|
---|
2526 | CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
|
---|
2527 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
2528 | # Support "outfile[:infile]", defaulting infile="outfile.in".
|
---|
2529 | case "$ac_file" in
|
---|
2530 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
|
---|
2531 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
2532 | *) ac_file_in="${ac_file}.in" ;;
|
---|
2533 | esac
|
---|
2534 |
|
---|
2535 | echo creating $ac_file
|
---|
2536 |
|
---|
2537 | rm -f conftest.frag conftest.in conftest.out
|
---|
2538 | cp $ac_given_srcdir/$ac_file_in conftest.in
|
---|
2539 |
|
---|
2540 | EOF
|
---|
2541 |
|
---|
2542 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
2543 | # the proper values into config.h.in to produce config.h. And first:
|
---|
2544 | # Protect against being on the right side of a sed subst in config.status.
|
---|
2545 | # Protect against being in an unquoted here document in config.status.
|
---|
2546 | rm -f conftest.vals
|
---|
2547 | cat > conftest.hdr <<\EOF
|
---|
2548 | s/[\\&%]/\\&/g
|
---|
2549 | s%[\\$`]%\\&%g
|
---|
2550 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
2551 | s%ac_d%ac_u%gp
|
---|
2552 | s%ac_u%ac_e%gp
|
---|
2553 | EOF
|
---|
2554 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
2555 | rm -f conftest.hdr
|
---|
2556 |
|
---|
2557 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
2558 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
2559 | # on some systems where configure will not decide to define it.
|
---|
2560 | cat >> conftest.vals <<\EOF
|
---|
2561 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
2562 | EOF
|
---|
2563 |
|
---|
2564 | # Break up conftest.vals because some shells have a limit on
|
---|
2565 | # the size of here documents, and old seds have small limits too.
|
---|
2566 | # Maximum number of lines to put in a single here document.
|
---|
2567 | ac_max_here_lines=12
|
---|
2568 |
|
---|
2569 | rm -f conftest.tail
|
---|
2570 | while :
|
---|
2571 | do
|
---|
2572 | ac_lines=`grep -c . conftest.vals`
|
---|
2573 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
2574 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
2575 | # Write a limited-size here document to conftest.frag.
|
---|
2576 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
2577 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
2578 | echo 'CEOF
|
---|
2579 | sed -f conftest.frag conftest.in > conftest.out
|
---|
2580 | rm -f conftest.in
|
---|
2581 | mv conftest.out conftest.in
|
---|
2582 | ' >> $CONFIG_STATUS
|
---|
2583 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
2584 | rm -f conftest.vals
|
---|
2585 | mv conftest.tail conftest.vals
|
---|
2586 | done
|
---|
2587 | rm -f conftest.vals
|
---|
2588 |
|
---|
2589 | cat >> $CONFIG_STATUS <<\EOF
|
---|
2590 | rm -f conftest.frag conftest.h
|
---|
2591 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
2592 | cat conftest.in >> conftest.h
|
---|
2593 | rm -f conftest.in
|
---|
2594 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
2595 | echo "$ac_file is unchanged"
|
---|
2596 | rm -f conftest.h
|
---|
2597 | else
|
---|
2598 | rm -f $ac_file
|
---|
2599 | mv conftest.h $ac_file
|
---|
2600 | fi
|
---|
2601 | fi; done
|
---|
2602 |
|
---|
2603 |
|
---|
2604 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
2605 | exit 0
|
---|
2606 | EOF
|
---|
2607 | chmod +x $CONFIG_STATUS
|
---|
2608 | rm -fr confdefs* $ac_clean_files
|
---|
2609 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
2610 |
|
---|