source: trunk/src/gcc/libf2c/libU77/configure@ 80

Last change on this file since 80 was 80, checked in by bird, 23 years ago

Regenerated configure on OS/2.

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