source: vendor/gcc/current/libf2c/libU77/configure

Last change on this file was 1391, checked in by bird, 21 years ago

GCC v3.3.3 sources.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 59.2 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31sitefile=
32srcdir=
33target=NONE
34verbose=
35x_includes=NONE
36x_libraries=NONE
37bindir='${exec_prefix}/bin'
38sbindir='${exec_prefix}/sbin'
39libexecdir='${exec_prefix}/libexec'
40datadir='${prefix}/share'
41sysconfdir='${prefix}/etc'
42sharedstatedir='${prefix}/com'
43localstatedir='${prefix}/var'
44libdir='${exec_prefix}/lib'
45includedir='${prefix}/include'
46oldincludedir='/usr/include'
47infodir='${prefix}/info'
48mandir='${prefix}/man'
49
50# Initialize some other variables.
51subdirs=
52MFLAGS= MAKEFLAGS=
53SHELL=${CONFIG_SHELL-/bin/sh}
54# Maximum number of lines to put in a shell here document.
55ac_max_here_lines=12
56
57ac_prev=
58for ac_option
59do
60
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
64 ac_prev=
65 continue
66 fi
67
68 case "$ac_option" in
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70 *) ac_optarg= ;;
71 esac
72
73 # Accept the important Cygnus configure options, so we can diagnose typos.
74
75 case "$ac_option" in
76
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 ac_prev=bindir ;;
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
81
82 -build | --build | --buil | --bui | --bu)
83 ac_prev=build ;;
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 build="$ac_optarg" ;;
86
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 ac_prev=cache_file ;;
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
93
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 ac_prev=datadir ;;
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 | --da=*)
98 datadir="$ac_optarg" ;;
99
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 fi
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
108
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 case "$ac_option" in
117 *=*) ;;
118 *) ac_optarg=yes ;;
119 esac
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
130
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
133 with_gas=yes ;;
134
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
138 cat << EOF
139Usage: configure [options] [host]
140Options: [defaults in brackets after descriptions]
141Configuration:
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --site-file=FILE use FILE as the site file
147 --version print the version of autoconf that created configure
148Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
172EOF
173 cat << EOF
174Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
185EOF
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
188 fi
189 exit 0 ;;
190
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
195
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
202
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
207
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
212
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
219
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
228
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
233
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
237
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
241
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
245
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
254
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
259
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
266
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
273
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
290
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
294
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
300
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
311
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
316
317 -site-file | --site-file | --site-fil | --site-fi | --site-f)
318 ac_prev=sitefile ;;
319 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
320 sitefile="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.13"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400done
401
402if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404fi
405
406trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408# File descriptor usage:
409# 0 standard input
410# 1 file creation
411# 2 errors and warnings
412# 3 some systems may open it to /dev/tty
413# 4 used on the Kubota Titan
414# 6 checking for... messages and results
415# 5 compiler messages saved in config.log
416if test "$silent" = yes; then
417 exec 6>/dev/null
418else
419 exec 6>&1
420fi
421exec 5>./config.log
422
423echo "\
424This file contains any messages produced by compilers while
425running configure, to aid debugging if configure makes a mistake.
426" 1>&5
427
428# Strip out --no-create and --no-recursion so they do not pile up.
429# Also quote any args containing shell metacharacters.
430ac_configure_args=
431for ac_arg
432do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442done
443
444# NLS nuisances.
445# Only set these to C if already set. These must not be set unconditionally
446# because not all systems understand e.g. LANG=C (notably SCO).
447# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448# Non-C LC_CTYPE values break the ctype check.
449if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
454# confdefs.h avoids OS command line length limits that DEFS can exceed.
455rm -rf conftest* confdefs.h
456# AIX cpp loses on an empty file, so make sure it contains at least a newline.
457echo > confdefs.h
458
459# A filename unique to this package, relative to the directory that
460# configure is in, which we can look for to find out if srcdir is correct.
461ac_unique_file=access_.c
462
463# Find the source files, if location was not specified.
464if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
467 ac_prog=$0
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 srcdir=$ac_confdir
471 if test ! -r $srcdir/$ac_unique_file; then
472 srcdir=..
473 fi
474else
475 ac_srcdir_defaulted=no
476fi
477if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 else
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 fi
483fi
484srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486# Prefer explicitly selected file to automatically selected ones.
487if test -z "$sitefile"; then
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 else
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 fi
494 fi
495else
496 CONFIG_SITE="$sitefile"
497fi
498for ac_site_file in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
501 . "$ac_site_file"
502 fi
503done
504
505if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
507 . $cache_file
508else
509 echo "creating cache $cache_file"
510 > $cache_file
511fi
512
513ac_ext=c
514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515ac_cpp='$CPP $CPPFLAGS'
516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518cross_compiling=$ac_cv_prog_cc_cross
519
520ac_exeext=
521ac_objext=o
522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='
526' ac_t=' '
527 else
528 ac_n=-n ac_c= ac_t=
529 fi
530else
531 ac_n= ac_c='\c' ac_t=
532fi
533
534
535
536
537
538
539# For g77 we'll set CC to point at the built gcc, but this will get it into
540# the makefiles
541# Extract the first word of "gcc", so it can be a program name with args.
542set dummy gcc; ac_word=$2
543echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
544echo "configure:545: checking for $ac_word" >&5
545if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
546 echo $ac_n "(cached) $ac_c" 1>&6
547else
548 if test -n "$CC"; then
549 ac_cv_prog_CC="$CC" # Let the user override the test.
550else
551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
552 ac_dummy="$PATH"
553 for ac_dir in $ac_dummy; do
554 test -z "$ac_dir" && ac_dir=.
555 if test -f $ac_dir/$ac_word; then
556 ac_cv_prog_CC="gcc"
557 break
558 fi
559 done
560 IFS="$ac_save_ifs"
561fi
562fi
563CC="$ac_cv_prog_CC"
564if test -n "$CC"; then
565 echo "$ac_t""$CC" 1>&6
566else
567 echo "$ac_t""no" 1>&6
568fi
569
570if test -z "$CC"; then
571 # Extract the first word of "cc", so it can be a program name with args.
572set dummy cc; ac_word=$2
573echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
574echo "configure:575: checking for $ac_word" >&5
575if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
577else
578 if test -n "$CC"; then
579 ac_cv_prog_CC="$CC" # Let the user override the test.
580else
581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
582 ac_prog_rejected=no
583 ac_dummy="$PATH"
584 for ac_dir in $ac_dummy; do
585 test -z "$ac_dir" && ac_dir=.
586 if test -f $ac_dir/$ac_word; then
587 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
588 ac_prog_rejected=yes
589 continue
590 fi
591 ac_cv_prog_CC="cc"
592 break
593 fi
594 done
595 IFS="$ac_save_ifs"
596if test $ac_prog_rejected = yes; then
597 # We found a bogon in the path, so make sure we never use it.
598 set dummy $ac_cv_prog_CC
599 shift
600 if test $# -gt 0; then
601 # We chose a different compiler from the bogus one.
602 # However, it has the same basename, so the bogon will be chosen
603 # first if we set CC to just the basename; use the full file name.
604 shift
605 set dummy "$ac_dir/$ac_word" "$@"
606 shift
607 ac_cv_prog_CC="$@"
608 fi
609fi
610fi
611fi
612CC="$ac_cv_prog_CC"
613if test -n "$CC"; then
614 echo "$ac_t""$CC" 1>&6
615else
616 echo "$ac_t""no" 1>&6
617fi
618
619 if test -z "$CC"; then
620 case "`uname -s`" in
621 *win32* | *WIN32*)
622 # Extract the first word of "cl", so it can be a program name with args.
623set dummy cl; ac_word=$2
624echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
625echo "configure:626: checking for $ac_word" >&5
626if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628else
629 if test -n "$CC"; then
630 ac_cv_prog_CC="$CC" # Let the user override the test.
631else
632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
633 ac_dummy="$PATH"
634 for ac_dir in $ac_dummy; do
635 test -z "$ac_dir" && ac_dir=.
636 if test -f $ac_dir/$ac_word; then
637 ac_cv_prog_CC="cl"
638 break
639 fi
640 done
641 IFS="$ac_save_ifs"
642fi
643fi
644CC="$ac_cv_prog_CC"
645if test -n "$CC"; then
646 echo "$ac_t""$CC" 1>&6
647else
648 echo "$ac_t""no" 1>&6
649fi
650 ;;
651 esac
652 fi
653 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
654fi
655
656
657echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
658echo "configure:659: checking whether we are using GNU C" >&5
659if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
661else
662 cat > conftest.c <<EOF
663#ifdef __GNUC__
664 yes;
665#endif
666EOF
667if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
668 ac_cv_prog_gcc=yes
669else
670 ac_cv_prog_gcc=no
671fi
672fi
673
674echo "$ac_t""$ac_cv_prog_gcc" 1>&6
675
676if test $ac_cv_prog_gcc = yes; then
677 GCC=yes
678else
679 GCC=
680fi
681
682ac_test_CFLAGS="${CFLAGS+set}"
683ac_save_CFLAGS="$CFLAGS"
684CFLAGS=
685echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
686echo "configure:687: checking whether ${CC-cc} accepts -g" >&5
687if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
689else
690 echo 'void f(){}' > conftest.c
691if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
692 ac_cv_prog_cc_g=yes
693else
694 ac_cv_prog_cc_g=no
695fi
696rm -f conftest*
697
698fi
699
700echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
701if test "$ac_test_CFLAGS" = set; then
702 CFLAGS="$ac_save_CFLAGS"
703elif test $ac_cv_prog_cc_g = yes; then
704 if test "$GCC" = yes; then
705 CFLAGS="-g -O2"
706 else
707 CFLAGS="-g"
708 fi
709else
710 if test "$GCC" = yes; then
711 CFLAGS="-O2"
712 else
713 CFLAGS=
714 fi
715fi
716
717
718# These defines are necessary to get 64-bit file size support.
719# NetBSD 1.4 header files does not support XOPEN_SOURCE == 600, but it
720# handles 64-bit file sizes without needing these defines.
721echo $ac_n "checking whether _XOPEN_SOURCE may be defined""... $ac_c" 1>&6
722echo "configure:723: checking whether _XOPEN_SOURCE may be defined" >&5
723cat > conftest.$ac_ext <<EOF
724#line 725 "configure"
725#include "confdefs.h"
726#define _XOPEN_SOURCE 600L
727#include <unistd.h>
728int main() {
729
730; return 0; }
731EOF
732if { (eval echo configure:733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
733 rm -rf conftest*
734 may_use_xopen_source=yes
735else
736 echo "configure: failed program was:" >&5
737 cat conftest.$ac_ext >&5
738 rm -rf conftest*
739 may_use_xopen_source=no
740fi
741rm -f conftest*
742echo "$ac_t""$may_use_xopen_source" 1>&6
743if test $may_use_xopen_source = yes; then
744 cat >> confdefs.h <<\EOF
745#define _XOPEN_SOURCE 600L
746EOF
747
748 # The following is needed by irix6.2 so that struct timeval is declared.
749 cat >> confdefs.h <<\EOF
750#define _XOPEN_SOURCE_EXTENDED 1
751EOF
752
753 # The following is needed by Solaris2.5.1 so that struct timeval is declared.
754 cat >> confdefs.h <<\EOF
755#define __EXTENSIONS__ 1
756EOF
757
758 cat >> confdefs.h <<\EOF
759#define _FILE_OFFSET_BITS 64
760EOF
761
762fi
763
764
765LIBTOOL='$(SHELL) ../libtool'
766
767
768if test "$CROSS";then
769 ac_cv_c_cross=yes
770else
771 ac_cv_c_cross=no
772fi
773
774test "$AR" || AR=ar
775
776echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
778set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
779if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781else
782 cat > conftestmake <<\EOF
783all:
784 @echo 'ac_maketemp="${MAKE}"'
785EOF
786# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
787eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
788if test -n "$ac_maketemp"; then
789 eval ac_cv_prog_make_${ac_make}_set=yes
790else
791 eval ac_cv_prog_make_${ac_make}_set=no
792fi
793rm -f conftestmake
794fi
795if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
796 echo "$ac_t""yes" 1>&6
797 SET_MAKE=
798else
799 echo "$ac_t""no" 1>&6
800 SET_MAKE="MAKE=${MAKE-make}"
801fi
802
803
804# Extract the first word of "chmod", so it can be a program name with args.
805set dummy chmod; ac_word=$2
806echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807echo "configure:808: checking for $ac_word" >&5
808if eval "test \"`echo '$''{'ac_cv_path_ac_cv_prog_chmod'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810else
811 case "$ac_cv_prog_chmod" in
812 /*)
813 ac_cv_path_ac_cv_prog_chmod="$ac_cv_prog_chmod" # Let the user override the test with a path.
814 ;;
815 ?:/*)
816 ac_cv_path_ac_cv_prog_chmod="$ac_cv_prog_chmod" # Let the user override the test with a dos path.
817 ;;
818 *)
819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 ac_dummy="$PATH"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
824 ac_cv_path_ac_cv_prog_chmod="$ac_dir/$ac_word"
825 break
826 fi
827 done
828 IFS="$ac_save_ifs"
829 test -z "$ac_cv_path_ac_cv_prog_chmod" && ac_cv_path_ac_cv_prog_chmod="no"
830 ;;
831esac
832fi
833ac_cv_prog_chmod="$ac_cv_path_ac_cv_prog_chmod"
834if test -n "$ac_cv_prog_chmod"; then
835 echo "$ac_t""$ac_cv_prog_chmod" 1>&6
836else
837 echo "$ac_t""no" 1>&6
838fi
839
840if test "$ac_cv_prog_chmod" != no || test "$CROSS"; then
841 MAYBES=chmod_.o
842 cat >> confdefs.h <<EOF
843#define CHMOD_PATH "$ac_cv_prog_chmod"
844EOF
845
846else
847 MAYBES=""
848fi
849
850echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
851echo "configure:852: checking how to run the C preprocessor" >&5
852# On Suns, sometimes $CPP names a directory.
853if test -n "$CPP" && test -d "$CPP"; then
854 CPP=
855fi
856if test -z "$CPP"; then
857if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
859else
860 # This must be in double quotes, not single quotes, because CPP may get
861 # substituted into the Makefile and "${CC-cc}" will confuse make.
862 CPP="${CC-cc} -E"
863 # On the NeXT, cc -E runs the code through the compiler's parser,
864 # not just through cpp.
865 cat > conftest.$ac_ext <<EOF
866#line 867 "configure"
867#include "confdefs.h"
868#include <assert.h>
869Syntax Error
870EOF
871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872{ (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
874if test -z "$ac_err"; then
875 :
876else
877 echo "$ac_err" >&5
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
880 rm -rf conftest*
881 CPP="${CC-cc} -E -traditional-cpp"
882 cat > conftest.$ac_ext <<EOF
883#line 884 "configure"
884#include "confdefs.h"
885#include <assert.h>
886Syntax Error
887EOF
888ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
889{ (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
890ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
891if test -z "$ac_err"; then
892 :
893else
894 echo "$ac_err" >&5
895 echo "configure: failed program was:" >&5
896 cat conftest.$ac_ext >&5
897 rm -rf conftest*
898 CPP="${CC-cc} -nologo -E"
899 cat > conftest.$ac_ext <<EOF
900#line 901 "configure"
901#include "confdefs.h"
902#include <assert.h>
903Syntax Error
904EOF
905ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
906{ (eval echo configure:907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
907ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
908if test -z "$ac_err"; then
909 :
910else
911 echo "$ac_err" >&5
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914 rm -rf conftest*
915 CPP=/lib/cpp
916fi
917rm -f conftest*
918fi
919rm -f conftest*
920fi
921rm -f conftest*
922 ac_cv_prog_CPP="$CPP"
923fi
924 CPP="$ac_cv_prog_CPP"
925else
926 ac_cv_prog_CPP="$CPP"
927fi
928echo "$ac_t""$CPP" 1>&6
929
930echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
931echo "configure:932: checking for ANSI C header files" >&5
932if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
934else
935 cat > conftest.$ac_ext <<EOF
936#line 937 "configure"
937#include "confdefs.h"
938#include <stdlib.h>
939#include <stdarg.h>
940#include <string.h>
941#include <float.h>
942EOF
943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946if test -z "$ac_err"; then
947 rm -rf conftest*
948 ac_cv_header_stdc=yes
949else
950 echo "$ac_err" >&5
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 rm -rf conftest*
954 ac_cv_header_stdc=no
955fi
956rm -f conftest*
957
958if test $ac_cv_header_stdc = yes; then
959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
960cat > conftest.$ac_ext <<EOF
961#line 962 "configure"
962#include "confdefs.h"
963#include <string.h>
964EOF
965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
966 egrep "memchr" >/dev/null 2>&1; then
967 :
968else
969 rm -rf conftest*
970 ac_cv_header_stdc=no
971fi
972rm -f conftest*
973
974fi
975
976if test $ac_cv_header_stdc = yes; then
977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
978cat > conftest.$ac_ext <<EOF
979#line 980 "configure"
980#include "confdefs.h"
981#include <stdlib.h>
982EOF
983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
984 egrep "free" >/dev/null 2>&1; then
985 :
986else
987 rm -rf conftest*
988 ac_cv_header_stdc=no
989fi
990rm -f conftest*
991
992fi
993
994if test $ac_cv_header_stdc = yes; then
995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
996if test "$cross_compiling" = yes; then
997 :
998else
999 cat > conftest.$ac_ext <<EOF
1000#line 1001 "configure"
1001#include "confdefs.h"
1002#include <ctype.h>
1003#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1004#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1005#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1006int main () { int i; for (i = 0; i < 256; i++)
1007if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1008exit (0); }
1009
1010EOF
1011if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1012then
1013 :
1014else
1015 echo "configure: failed program was:" >&5
1016 cat conftest.$ac_ext >&5
1017 rm -fr conftest*
1018 ac_cv_header_stdc=no
1019fi
1020rm -fr conftest*
1021fi
1022
1023fi
1024fi
1025
1026echo "$ac_t""$ac_cv_header_stdc" 1>&6
1027if test $ac_cv_header_stdc = yes; then
1028 cat >> confdefs.h <<\EOF
1029#define STDC_HEADERS 1
1030EOF
1031
1032fi
1033
1034echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1035echo "configure:1036: checking whether time.h and sys/time.h may both be included" >&5
1036if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038else
1039 cat > conftest.$ac_ext <<EOF
1040#line 1041 "configure"
1041#include "confdefs.h"
1042#include <sys/types.h>
1043#include <sys/time.h>
1044#include <time.h>
1045int main() {
1046struct tm *tp;
1047; return 0; }
1048EOF
1049if { (eval echo configure:1050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1050 rm -rf conftest*
1051 ac_cv_header_time=yes
1052else
1053 echo "configure: failed program was:" >&5
1054 cat conftest.$ac_ext >&5
1055 rm -rf conftest*
1056 ac_cv_header_time=no
1057fi
1058rm -f conftest*
1059fi
1060
1061echo "$ac_t""$ac_cv_header_time" 1>&6
1062if test $ac_cv_header_time = yes; then
1063 cat >> confdefs.h <<\EOF
1064#define TIME_WITH_SYS_TIME 1
1065EOF
1066
1067fi
1068
1069for ac_hdr in limits.h unistd.h sys/time.h string.h stdlib.h \
1070 sys/param.h sys/times.h
1071do
1072ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1073echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1074echo "configure:1075: checking for $ac_hdr" >&5
1075if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077else
1078 cat > conftest.$ac_ext <<EOF
1079#line 1080 "configure"
1080#include "confdefs.h"
1081#include <$ac_hdr>
1082EOF
1083ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084{ (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1086if test -z "$ac_err"; then
1087 rm -rf conftest*
1088 eval "ac_cv_header_$ac_safe=yes"
1089else
1090 echo "$ac_err" >&5
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1093 rm -rf conftest*
1094 eval "ac_cv_header_$ac_safe=no"
1095fi
1096rm -f conftest*
1097fi
1098if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1099 echo "$ac_t""yes" 1>&6
1100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1101 cat >> confdefs.h <<EOF
1102#define $ac_tr_hdr 1
1103EOF
1104
1105else
1106 echo "$ac_t""no" 1>&6
1107fi
1108done
1109
1110
1111echo $ac_n "checking for working const""... $ac_c" 1>&6
1112echo "configure:1113: checking for working const" >&5
1113if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115else
1116 cat > conftest.$ac_ext <<EOF
1117#line 1118 "configure"
1118#include "confdefs.h"
1119
1120int main() {
1121
1122/* Ultrix mips cc rejects this. */
1123typedef int charset[2]; const charset x;
1124/* SunOS 4.1.1 cc rejects this. */
1125char const *const *ccp;
1126char **p;
1127/* NEC SVR4.0.2 mips cc rejects this. */
1128struct point {int x, y;};
1129static struct point const zero = {0,0};
1130/* AIX XL C 1.02.0.0 rejects this.
1131 It does not let you subtract one const X* pointer from another in an arm
1132 of an if-expression whose if-part is not a constant expression */
1133const char *g = "string";
1134ccp = &g + (g ? g-g : 0);
1135/* HPUX 7.0 cc rejects these. */
1136++ccp;
1137p = (char**) ccp;
1138ccp = (char const *const *) p;
1139{ /* SCO 3.2v4 cc rejects this. */
1140 char *t;
1141 char const *s = 0 ? (char *) 0 : (char const *) 0;
1142
1143 *t++ = 0;
1144}
1145{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1146 int x[] = {25, 17};
1147 const int *foo = &x[0];
1148 ++foo;
1149}
1150{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1151 typedef const int *iptr;
1152 iptr p = 0;
1153 ++p;
1154}
1155{ /* AIX XL C 1.02.0.0 rejects this saying
1156 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1157 struct s { int j; const int *ap[3]; };
1158 struct s *b; b->j = 5;
1159}
1160{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1161 const int foo = 10;
1162}
1163
1164; return 0; }
1165EOF
1166if { (eval echo configure:1167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1167 rm -rf conftest*
1168 ac_cv_c_const=yes
1169else
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1172 rm -rf conftest*
1173 ac_cv_c_const=no
1174fi
1175rm -f conftest*
1176fi
1177
1178echo "$ac_t""$ac_cv_c_const" 1>&6
1179if test $ac_cv_c_const = no; then
1180 cat >> confdefs.h <<\EOF
1181#define const
1182EOF
1183
1184fi
1185
1186echo $ac_n "checking for size_t""... $ac_c" 1>&6
1187echo "configure:1188: checking for size_t" >&5
1188if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190else
1191 cat > conftest.$ac_ext <<EOF
1192#line 1193 "configure"
1193#include "confdefs.h"
1194#include <sys/types.h>
1195#if STDC_HEADERS
1196#include <stdlib.h>
1197#include <stddef.h>
1198#endif
1199EOF
1200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1201 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1202 rm -rf conftest*
1203 ac_cv_type_size_t=yes
1204else
1205 rm -rf conftest*
1206 ac_cv_type_size_t=no
1207fi
1208rm -f conftest*
1209
1210fi
1211echo "$ac_t""$ac_cv_type_size_t" 1>&6
1212if test $ac_cv_type_size_t = no; then
1213 cat >> confdefs.h <<\EOF
1214#define size_t unsigned
1215EOF
1216
1217fi
1218
1219echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1220echo "configure:1221: checking for mode_t" >&5
1221if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1223else
1224 cat > conftest.$ac_ext <<EOF
1225#line 1226 "configure"
1226#include "confdefs.h"
1227#include <sys/types.h>
1228#if STDC_HEADERS
1229#include <stdlib.h>
1230#include <stddef.h>
1231#endif
1232EOF
1233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1234 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1235 rm -rf conftest*
1236 ac_cv_type_mode_t=yes
1237else
1238 rm -rf conftest*
1239 ac_cv_type_mode_t=no
1240fi
1241rm -f conftest*
1242
1243fi
1244echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1245if test $ac_cv_type_mode_t = no; then
1246 cat >> confdefs.h <<\EOF
1247#define mode_t int
1248EOF
1249
1250fi
1251
1252
1253echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1254echo "configure:1255: checking for pid_t" >&5
1255if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1257else
1258 cat > conftest.$ac_ext <<EOF
1259#line 1260 "configure"
1260#include "confdefs.h"
1261#include <sys/types.h>
1262#if STDC_HEADERS
1263#include <stdlib.h>
1264#include <stddef.h>
1265#endif
1266EOF
1267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1268 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1269 rm -rf conftest*
1270 ac_cv_type_pid_t=yes
1271else
1272 rm -rf conftest*
1273 ac_cv_type_pid_t=no
1274fi
1275rm -f conftest*
1276
1277fi
1278echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1279if test $ac_cv_type_pid_t = no; then
1280 cat >> confdefs.h <<\EOF
1281#define pid_t int
1282EOF
1283
1284fi
1285
1286echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1287echo "configure:1288: checking for st_blksize in struct stat" >&5
1288if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1290else
1291 cat > conftest.$ac_ext <<EOF
1292#line 1293 "configure"
1293#include "confdefs.h"
1294#include <sys/types.h>
1295#include <sys/stat.h>
1296int main() {
1297struct stat s; s.st_blksize;
1298; return 0; }
1299EOF
1300if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1301 rm -rf conftest*
1302 ac_cv_struct_st_blksize=yes
1303else
1304 echo "configure: failed program was:" >&5
1305 cat conftest.$ac_ext >&5
1306 rm -rf conftest*
1307 ac_cv_struct_st_blksize=no
1308fi
1309rm -f conftest*
1310fi
1311
1312echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
1313if test $ac_cv_struct_st_blksize = yes; then
1314 cat >> confdefs.h <<\EOF
1315#define HAVE_ST_BLKSIZE 1
1316EOF
1317
1318fi
1319
1320echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1321echo "configure:1322: checking for st_blocks in struct stat" >&5
1322if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1324else
1325 cat > conftest.$ac_ext <<EOF
1326#line 1327 "configure"
1327#include "confdefs.h"
1328#include <sys/types.h>
1329#include <sys/stat.h>
1330int main() {
1331struct stat s; s.st_blocks;
1332; return 0; }
1333EOF
1334if { (eval echo configure:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1335 rm -rf conftest*
1336 ac_cv_struct_st_blocks=yes
1337else
1338 echo "configure: failed program was:" >&5
1339 cat conftest.$ac_ext >&5
1340 rm -rf conftest*
1341 ac_cv_struct_st_blocks=no
1342fi
1343rm -f conftest*
1344fi
1345
1346echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1347if test $ac_cv_struct_st_blocks = yes; then
1348 cat >> confdefs.h <<\EOF
1349#define HAVE_ST_BLOCKS 1
1350EOF
1351
1352else
1353 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
1354fi
1355
1356echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1357echo "configure:1358: checking for st_rdev in struct stat" >&5
1358if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361 cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure"
1363#include "confdefs.h"
1364#include <sys/types.h>
1365#include <sys/stat.h>
1366int main() {
1367struct stat s; s.st_rdev;
1368; return 0; }
1369EOF
1370if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1371 rm -rf conftest*
1372 ac_cv_struct_st_rdev=yes
1373else
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1376 rm -rf conftest*
1377 ac_cv_struct_st_rdev=no
1378fi
1379rm -f conftest*
1380fi
1381
1382echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1383if test $ac_cv_struct_st_rdev = yes; then
1384 cat >> confdefs.h <<\EOF
1385#define HAVE_ST_RDEV 1
1386EOF
1387
1388fi
1389
1390echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1391echo "configure:1392: checking whether struct tm is in sys/time.h or time.h" >&5
1392if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1394else
1395 cat > conftest.$ac_ext <<EOF
1396#line 1397 "configure"
1397#include "confdefs.h"
1398#include <sys/types.h>
1399#include <time.h>
1400int main() {
1401struct tm *tp; tp->tm_sec;
1402; return 0; }
1403EOF
1404if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405 rm -rf conftest*
1406 ac_cv_struct_tm=time.h
1407else
1408 echo "configure: failed program was:" >&5
1409 cat conftest.$ac_ext >&5
1410 rm -rf conftest*
1411 ac_cv_struct_tm=sys/time.h
1412fi
1413rm -f conftest*
1414fi
1415
1416echo "$ac_t""$ac_cv_struct_tm" 1>&6
1417if test $ac_cv_struct_tm = sys/time.h; then
1418 cat >> confdefs.h <<\EOF
1419#define TM_IN_SYS_TIME 1
1420EOF
1421
1422fi
1423
1424
1425echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6
1426echo "configure:1427: checking for gethostname in -lsocket" >&5
1427ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
1428if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430else
1431 ac_save_LIBS="$LIBS"
1432LIBS="-lsocket $LIBS"
1433cat > conftest.$ac_ext <<EOF
1434#line 1435 "configure"
1435#include "confdefs.h"
1436/* Override any gcc2 internal prototype to avoid an error. */
1437/* We use char because int might match the return type of a gcc2
1438 builtin and then its argument prototype would still apply. */
1439char gethostname();
1440
1441int main() {
1442gethostname()
1443; return 0; }
1444EOF
1445if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1446 rm -rf conftest*
1447 eval "ac_cv_lib_$ac_lib_var=yes"
1448else
1449 echo "configure: failed program was:" >&5
1450 cat conftest.$ac_ext >&5
1451 rm -rf conftest*
1452 eval "ac_cv_lib_$ac_lib_var=no"
1453fi
1454rm -f conftest*
1455LIBS="$ac_save_LIBS"
1456
1457fi
1458if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1459 echo "$ac_t""yes" 1>&6
1460 LIBS="$LIBS -lsocket"
1461else
1462 echo "$ac_t""no" 1>&6
1463fi
1464
1465
1466
1467for ac_func in symlink getcwd getwd lstat gethostname strerror clock \
1468 getrusage times alarm getlogin getgid getuid kill link ttyname
1469do
1470echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1471echo "configure:1472: checking for $ac_func" >&5
1472if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474else
1475 cat > conftest.$ac_ext <<EOF
1476#line 1477 "configure"
1477#include "confdefs.h"
1478/* System header to define __stub macros and hopefully few prototypes,
1479 which can conflict with char $ac_func(); below. */
1480#include <assert.h>
1481/* Override any gcc2 internal prototype to avoid an error. */
1482/* We use char because int might match the return type of a gcc2
1483 builtin and then its argument prototype would still apply. */
1484char $ac_func();
1485
1486int main() {
1487
1488/* The GNU C library defines this for functions which it implements
1489 to always fail with ENOSYS. Some functions are actually named
1490 something starting with __ and the normal name is an alias. */
1491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1492choke me
1493#else
1494$ac_func();
1495#endif
1496
1497; return 0; }
1498EOF
1499if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1500 rm -rf conftest*
1501 eval "ac_cv_func_$ac_func=yes"
1502else
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1505 rm -rf conftest*
1506 eval "ac_cv_func_$ac_func=no"
1507fi
1508rm -f conftest*
1509fi
1510
1511if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1512 echo "$ac_t""yes" 1>&6
1513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1514 cat >> confdefs.h <<EOF
1515#define $ac_tr_func 1
1516EOF
1517
1518else
1519 echo "$ac_t""no" 1>&6
1520fi
1521done
1522
1523
1524
1525 for ac_func in gettimeofday
1526do
1527echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1528echo "configure:1529: checking for $ac_func" >&5
1529if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531else
1532 cat > conftest.$ac_ext <<EOF
1533#line 1534 "configure"
1534#include "confdefs.h"
1535/* System header to define __stub macros and hopefully few prototypes,
1536 which can conflict with char $ac_func(); below. */
1537#include <assert.h>
1538/* Override any gcc2 internal prototype to avoid an error. */
1539/* We use char because int might match the return type of a gcc2
1540 builtin and then its argument prototype would still apply. */
1541char $ac_func();
1542
1543int main() {
1544
1545/* The GNU C library defines this for functions which it implements
1546 to always fail with ENOSYS. Some functions are actually named
1547 something starting with __ and the normal name is an alias. */
1548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1549choke me
1550#else
1551$ac_func();
1552#endif
1553
1554; return 0; }
1555EOF
1556if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1557 rm -rf conftest*
1558 eval "ac_cv_func_$ac_func=yes"
1559else
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1562 rm -rf conftest*
1563 eval "ac_cv_func_$ac_func=no"
1564fi
1565rm -f conftest*
1566fi
1567
1568if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1569 echo "$ac_t""yes" 1>&6
1570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1571 cat >> confdefs.h <<EOF
1572#define $ac_tr_func 1
1573EOF
1574
1575else
1576 echo "$ac_t""no" 1>&6
1577fi
1578done
1579
1580 if test "$ac_cv_func_gettimeofday" = yes; then
1581 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
1582echo "configure:1583: checking for struct timezone" >&5
1583if eval "test \"`echo '$''{'g77_cv_struct_timezone'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586 cat > conftest.$ac_ext <<EOF
1587#line 1588 "configure"
1588#include "confdefs.h"
1589#include <sys/time.h>
1590int main() {
1591struct timezone tz;
1592; return 0; }
1593EOF
1594if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1595 rm -rf conftest*
1596 g77_cv_struct_timezone=yes
1597else
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1600 rm -rf conftest*
1601 g77_cv_struct_timezone=no
1602fi
1603rm -f conftest*
1604fi
1605
1606echo "$ac_t""$g77_cv_struct_timezone" 1>&6
1607 if test $g77_cv_struct_timezone = yes; then
1608 if test "$cross_compiling" = yes; then
1609 cat >> confdefs.h <<\EOF
1610#define HAVE_TIMEZONE 1
1611EOF
1612
1613else
1614 cat > conftest.$ac_ext <<EOF
1615#line 1616 "configure"
1616#include "confdefs.h"
1617
1618#ifdef TIME_WITH_SYS_TIME
1619#include <sys/time.h>
1620#include <time.h>
1621#else
1622#ifdef HAVE_SYS_TIME_H
1623#include <sys/time.h>
1624#else
1625#include <time.h>
1626#endif
1627#endif
1628main ()
1629{
1630 struct timeval time;
1631 struct timezone dummy;
1632 if (gettimeofday (&time, &dummy))
1633 exit (1);
1634 else
1635 exit (0);
1636}
1637EOF
1638if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1639then
1640 cat >> confdefs.h <<\EOF
1641#define HAVE_TIMEZONE 1
1642EOF
1643
1644else
1645 echo "configure: failed program was:" >&5
1646 cat conftest.$ac_ext >&5
1647fi
1648rm -fr conftest*
1649fi
1650
1651 fi
1652
1653 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
1654echo "configure:1655: checking whether gettimeofday can accept two arguments" >&5
1655if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657else
1658 cat > conftest.$ac_ext <<EOF
1659#line 1660 "configure"
1660#include "confdefs.h"
1661
1662#ifdef TIME_WITH_SYS_TIME
1663#include <sys/time.h>
1664#include <time.h>
1665#else
1666#ifdef HAVE_SYS_TIME_H
1667#include <sys/time.h>
1668#else
1669#include <time.h>
1670#endif
1671#endif
1672
1673int main() {
1674
1675 struct timeval time;
1676#ifdef HAVE_TIMEZONE
1677 struct timezone dummy;
1678#define DUMMY &dummy
1679#else
1680#define DUMMY NULL
1681#endif
1682 gettimeofday (&time, DUMMY);
1683; return 0; }
1684EOF
1685if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1686 rm -rf conftest*
1687 emacs_cv_gettimeofday_two_arguments=yes
1688else
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1691 rm -rf conftest*
1692 emacs_cv_gettimeofday_two_arguments=no
1693fi
1694rm -f conftest*
1695fi
1696
1697echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
1698 if test $emacs_cv_gettimeofday_two_arguments = no; then
1699 cat >> confdefs.h <<\EOF
1700#define GETTIMEOFDAY_ONE_ARGUMENT 1
1701EOF
1702
1703 fi
1704 fi
1705
1706test $ac_cv_func_symlink = yes && MAYBES="$MAYBES symlnk_.o"
1707test $ac_cv_func_lstat = yes && MAYBES="$MAYBES lstat_.o"
1708test $ac_cv_func_gethostname = yes && MAYBES="$MAYBES hostnm_.o"
1709test $ac_cv_func_clock = yes && MAYBES="$MAYBES mclock_.o"
1710
1711
1712
1713
1714
1715
1716trap '' 1 2 15
1717cat > confcache <<\EOF
1718# This file is a shell script that caches the results of configure
1719# tests run on this system so they can be shared between configure
1720# scripts and configure runs. It is not useful on other systems.
1721# If it contains results you don't want to keep, you may remove or edit it.
1722#
1723# By default, configure uses ./config.cache as the cache file,
1724# creating it if it does not exist already. You can give configure
1725# the --cache-file=FILE option to use a different cache file; that is
1726# what configure does when it calls configure scripts in
1727# subdirectories, so they share the cache.
1728# Giving --cache-file=/dev/null disables caching, for debugging configure.
1729# config.status only pays attention to the cache file if you give it the
1730# --recheck option to rerun configure.
1731#
1732EOF
1733# The following way of writing the cache mishandles newlines in values,
1734# but we know of no workaround that is simple, portable, and efficient.
1735# So, don't put newlines in cache variables' values.
1736# Ultrix sh set writes to stderr and can't be redirected directly,
1737# and sets the high bit in the cache file unless we assign to the vars.
1738(set) 2>&1 |
1739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1740 *ac_space=\ *)
1741 # `set' does not quote correctly, so add quotes (double-quote substitution
1742 # turns \\\\ into \\, and sed turns \\ into \).
1743 sed -n \
1744 -e "s/'/'\\\\''/g" \
1745 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1746 ;;
1747 *)
1748 # `set' quotes correctly as required by POSIX, so do not add quotes.
1749 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1750 ;;
1751 esac >> confcache
1752if cmp -s $cache_file confcache; then
1753 :
1754else
1755 if test -w $cache_file; then
1756 echo "updating cache $cache_file"
1757 cat confcache > $cache_file
1758 else
1759 echo "not updating unwritable cache $cache_file"
1760 fi
1761fi
1762rm -f confcache
1763
1764trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1765
1766test "x$prefix" = xNONE && prefix=$ac_default_prefix
1767# Let make expand exec_prefix.
1768test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1769
1770# Any assignment to VPATH causes Sun make to only execute
1771# the first set of double-colon rules, so remove it if not needed.
1772# If there is a colon in the path, we need to keep it.
1773if test "x$srcdir" = x.; then
1774 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1775fi
1776
1777trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1778
1779DEFS=-DHAVE_CONFIG_H
1780
1781# Without the "./", some shells look in PATH for config.status.
1782: ${CONFIG_STATUS=./config.status}
1783
1784echo creating $CONFIG_STATUS
1785rm -f $CONFIG_STATUS
1786cat > $CONFIG_STATUS <<EOF
1787#! /bin/sh
1788# Generated automatically by configure.
1789# Run this file to recreate the current configuration.
1790# This directory was configured as follows,
1791# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1792#
1793# $0 $ac_configure_args
1794#
1795# Compiler output produced by configure, useful for debugging
1796# configure, is in ./config.log if it exists.
1797
1798ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1799for ac_option
1800do
1801 case "\$ac_option" in
1802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1803 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1804 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1805 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1806 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1807 exit 0 ;;
1808 -help | --help | --hel | --he | --h)
1809 echo "\$ac_cs_usage"; exit 0 ;;
1810 *) echo "\$ac_cs_usage"; exit 1 ;;
1811 esac
1812done
1813
1814ac_given_srcdir=$srcdir
1815
1816trap 'rm -fr `echo "Makefile config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1817EOF
1818cat >> $CONFIG_STATUS <<EOF
1819
1820# Protect against being on the right side of a sed subst in config.status.
1821sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1822 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1823$ac_vpsub
1824$extrasub
1825s%@SHELL@%$SHELL%g
1826s%@CFLAGS@%$CFLAGS%g
1827s%@CPPFLAGS@%$CPPFLAGS%g
1828s%@CXXFLAGS@%$CXXFLAGS%g
1829s%@FFLAGS@%$FFLAGS%g
1830s%@DEFS@%$DEFS%g
1831s%@LDFLAGS@%$LDFLAGS%g
1832s%@LIBS@%$LIBS%g
1833s%@exec_prefix@%$exec_prefix%g
1834s%@prefix@%$prefix%g
1835s%@program_transform_name@%$program_transform_name%g
1836s%@bindir@%$bindir%g
1837s%@sbindir@%$sbindir%g
1838s%@libexecdir@%$libexecdir%g
1839s%@datadir@%$datadir%g
1840s%@sysconfdir@%$sysconfdir%g
1841s%@sharedstatedir@%$sharedstatedir%g
1842s%@localstatedir@%$localstatedir%g
1843s%@libdir@%$libdir%g
1844s%@includedir@%$includedir%g
1845s%@oldincludedir@%$oldincludedir%g
1846s%@infodir@%$infodir%g
1847s%@mandir@%$mandir%g
1848s%@CC@%$CC%g
1849s%@LIBTOOL@%$LIBTOOL%g
1850s%@AR@%$AR%g
1851s%@SET_MAKE@%$SET_MAKE%g
1852s%@ac_cv_prog_chmod@%$ac_cv_prog_chmod%g
1853s%@CPP@%$CPP%g
1854s%@LIBOBJS@%$LIBOBJS%g
1855s%@MAYBES@%$MAYBES%g
1856s%@CROSS@%$CROSS%g
1857s%@RANLIB@%$RANLIB%g
1858s%@RANLIB_TEST@%$RANLIB_TEST%g
1859
1860CEOF
1861EOF
1862
1863cat >> $CONFIG_STATUS <<\EOF
1864
1865# Split the substitutions into bite-sized pieces for seds with
1866# small command number limits, like on Digital OSF/1 and HP-UX.
1867ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1868ac_file=1 # Number of current file.
1869ac_beg=1 # First line for current file.
1870ac_end=$ac_max_sed_cmds # Line after last line for current file.
1871ac_more_lines=:
1872ac_sed_cmds=""
1873while $ac_more_lines; do
1874 if test $ac_beg -gt 1; then
1875 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1876 else
1877 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1878 fi
1879 if test ! -s conftest.s$ac_file; then
1880 ac_more_lines=false
1881 rm -f conftest.s$ac_file
1882 else
1883 if test -z "$ac_sed_cmds"; then
1884 ac_sed_cmds="sed -f conftest.s$ac_file"
1885 else
1886 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1887 fi
1888 ac_file=`expr $ac_file + 1`
1889 ac_beg=$ac_end
1890 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1891 fi
1892done
1893if test -z "$ac_sed_cmds"; then
1894 ac_sed_cmds=cat
1895fi
1896EOF
1897
1898cat >> $CONFIG_STATUS <<EOF
1899
1900CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1901EOF
1902cat >> $CONFIG_STATUS <<\EOF
1903for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1905 case "$ac_file" in
1906 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1907 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1908 *) ac_file_in="${ac_file}.in" ;;
1909 esac
1910
1911 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1912
1913 # Remove last slash and all that follows it. Not all systems have dirname.
1914 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1915 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1916 # The file is in a subdirectory.
1917 test ! -d "$ac_dir" && mkdir "$ac_dir"
1918 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1919 # A "../" for each directory in $ac_dir_suffix.
1920 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1921 else
1922 ac_dir_suffix= ac_dots=
1923 fi
1924
1925 case "$ac_given_srcdir" in
1926 .) srcdir=.
1927 if test -z "$ac_dots"; then top_srcdir=.
1928 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1929 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1930 *) # Relative path.
1931 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1932 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1933 esac
1934
1935
1936 echo creating "$ac_file"
1937 rm -f "$ac_file"
1938 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1939 case "$ac_file" in
1940 *Makefile*) ac_comsub="1i\\
1941# $configure_input" ;;
1942 *) ac_comsub= ;;
1943 esac
1944
1945 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1946 sed -e "$ac_comsub
1947s%@configure_input@%$configure_input%g
1948s%@srcdir@%$srcdir%g
1949s%@top_srcdir@%$top_srcdir%g
1950" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1951fi; done
1952rm -f conftest.s*
1953
1954# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1955# NAME is the cpp macro being defined and VALUE is the value it is being given.
1956#
1957# ac_d sets the value in "#define NAME VALUE" lines.
1958ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1959ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1960ac_dC='\3'
1961ac_dD='%g'
1962# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1963ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1964ac_uB='\([ ]\)%\1#\2define\3'
1965ac_uC=' '
1966ac_uD='\4%g'
1967# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1968ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1969ac_eB='$%\1#\2define\3'
1970ac_eC=' '
1971ac_eD='%g'
1972
1973if test "${CONFIG_HEADERS+set}" != set; then
1974EOF
1975cat >> $CONFIG_STATUS <<EOF
1976 CONFIG_HEADERS="config.h:config.hin"
1977EOF
1978cat >> $CONFIG_STATUS <<\EOF
1979fi
1980for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1981 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1982 case "$ac_file" in
1983 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1984 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1985 *) ac_file_in="${ac_file}.in" ;;
1986 esac
1987
1988 echo creating $ac_file
1989
1990 rm -f conftest.frag conftest.in conftest.out
1991 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1992 cat $ac_file_inputs > conftest.in
1993
1994EOF
1995
1996# Transform confdefs.h into a sed script conftest.vals that substitutes
1997# the proper values into config.h.in to produce config.h. And first:
1998# Protect against being on the right side of a sed subst in config.status.
1999# Protect against being in an unquoted here document in config.status.
2000rm -f conftest.vals
2001cat > conftest.hdr <<\EOF
2002s/[\\&%]/\\&/g
2003s%[\\$`]%\\&%g
2004s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2005s%ac_d%ac_u%gp
2006s%ac_u%ac_e%gp
2007EOF
2008sed -n -f conftest.hdr confdefs.h > conftest.vals
2009rm -f conftest.hdr
2010
2011# This sed command replaces #undef with comments. This is necessary, for
2012# example, in the case of _POSIX_SOURCE, which is predefined and required
2013# on some systems where configure will not decide to define it.
2014cat >> conftest.vals <<\EOF
2015s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2016EOF
2017
2018# Break up conftest.vals because some shells have a limit on
2019# the size of here documents, and old seds have small limits too.
2020
2021rm -f conftest.tail
2022while :
2023do
2024 ac_lines=`grep -c . conftest.vals`
2025 # grep -c gives empty output for an empty file on some AIX systems.
2026 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2027 # Write a limited-size here document to conftest.frag.
2028 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2029 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2030 echo 'CEOF
2031 sed -f conftest.frag conftest.in > conftest.out
2032 rm -f conftest.in
2033 mv conftest.out conftest.in
2034' >> $CONFIG_STATUS
2035 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2036 rm -f conftest.vals
2037 mv conftest.tail conftest.vals
2038done
2039rm -f conftest.vals
2040
2041cat >> $CONFIG_STATUS <<\EOF
2042 rm -f conftest.frag conftest.h
2043 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2044 cat conftest.in >> conftest.h
2045 rm -f conftest.in
2046 if cmp -s $ac_file conftest.h 2>/dev/null; then
2047 echo "$ac_file is unchanged"
2048 rm -f conftest.h
2049 else
2050 # Remove last slash and all that follows it. Not all systems have dirname.
2051 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2052 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2053 # The file is in a subdirectory.
2054 test ! -d "$ac_dir" && mkdir "$ac_dir"
2055 fi
2056 rm -f $ac_file
2057 mv conftest.h $ac_file
2058 fi
2059fi; done
2060
2061EOF
2062cat >> $CONFIG_STATUS <<EOF
2063
2064EOF
2065cat >> $CONFIG_STATUS <<\EOF
2066
2067exit 0
2068EOF
2069chmod +x $CONFIG_STATUS
2070rm -fr confdefs* $ac_clean_files
2071test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2072
Note: See TracBrowser for help on using the repository browser.