source: trunk/indexers/mgpp/configure@ 8059

Last change on this file since 8059 was 8059, checked in by kjdon, 20 years ago

added in some new library checks to match the things that were added to config.h.in

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 99.8 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:
14ac_help="$ac_help
15 --with-dmalloc use dmalloc, as in
16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
17ac_help="$ac_help
18 --with-regex use older regex in lieu of GNU rx for matching"
19ac_help="$ac_help
20 --with-gnu-readline compile with GNU readline support"
21ac_help="$ac_help
22 --enable-override-longlong
23 overide use of long long with GCC"
24
25# Initialize some variables set by options.
26# The variables have the same names as the options, with
27# dashes changed to underlines.
28build=NONE
29cache_file=./config.cache
30exec_prefix=NONE
31host=NONE
32no_create=
33nonopt=NONE
34no_recursion=
35prefix=NONE
36program_prefix=NONE
37program_suffix=NONE
38program_transform_name=s,x,x,
39silent=
40site=
41srcdir=
42target=NONE
43verbose=
44x_includes=NONE
45x_libraries=NONE
46bindir='${exec_prefix}/bin'
47sbindir='${exec_prefix}/sbin'
48libexecdir='${exec_prefix}/libexec'
49datadir='${prefix}/share'
50sysconfdir='${prefix}/etc'
51sharedstatedir='${prefix}/com'
52localstatedir='${prefix}/var'
53libdir='${exec_prefix}/lib'
54includedir='${prefix}/include'
55oldincludedir='/usr/include'
56infodir='${prefix}/info'
57mandir='${prefix}/man'
58
59# Initialize some other variables.
60subdirs=
61MFLAGS= MAKEFLAGS=
62SHELL=${CONFIG_SHELL-/bin/sh}
63# Maximum number of lines to put in a shell here document.
64ac_max_here_lines=12
65
66ac_prev=
67for ac_option
68do
69
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
73 ac_prev=
74 continue
75 fi
76
77 case "$ac_option" in
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 *) ac_optarg= ;;
80 esac
81
82 # Accept the important Cygnus configure options, so we can diagnose typos.
83
84 case "$ac_option" in
85
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 ac_prev=bindir ;;
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
90
91 -build | --build | --buil | --bui | --bu)
92 ac_prev=build ;;
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 build="$ac_optarg" ;;
95
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 ac_prev=cache_file ;;
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
102
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 ac_prev=datadir ;;
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 | --da=*)
107 datadir="$ac_optarg" ;;
108
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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 eval "enable_${ac_feature}=no" ;;
117
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 fi
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 case "$ac_option" in
126 *=*) ;;
127 *) ac_optarg=yes ;;
128 esac
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
139
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
142 with_gas=yes ;;
143
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
147 cat << EOF
148Usage: configure [options] [host]
149Options: [defaults in brackets after descriptions]
150Configuration:
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
158 [$ac_default_prefix]
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 [same as prefix]
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
165 [PREFIX/share]
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 [PREFIX/com]
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
180EOF
181 cat << EOF
182Host type:
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
193EOF
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
196 fi
197 exit 0 ;;
198
199 -host | --host | --hos | --ho)
200 ac_prev=host ;;
201 -host=* | --host=* | --hos=* | --ho=*)
202 host="$ac_optarg" ;;
203
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
210
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 ac_prev=infodir ;;
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
215
216 -libdir | --libdir | --libdi | --libd)
217 ac_prev=libdir ;;
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
220
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
227
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
236
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 ac_prev=mandir ;;
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
241
242 -nfp | --nfp | --nf)
243 # Obsolete; use --without-fp.
244 with_fp=no ;;
245
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 | --no-cr | --no-c)
248 no_create=yes ;;
249
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 no_recursion=yes ;;
253
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
262
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 ac_prev=prefix ;;
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
267
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
274
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
281
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 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
298
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
301 silent=yes ;;
302
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 ac_prev=sbindir ;;
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 | --sbi=* | --sb=*)
307 sbindir="$ac_optarg" ;;
308
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
312 | --sha | --sh)
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 | --sha=* | --sh=*)
318 sharedstatedir="$ac_optarg" ;;
319
320 -site | --site | --sit)
321 ac_prev=site ;;
322 -site=* | --site=* | --sit=*)
323 site="$ac_optarg" ;;
324
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 ac_prev=srcdir ;;
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
329
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
336
337 -target | --target | --targe | --targ | --tar | --ta | --t)
338 ac_prev=target ;;
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
341
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 verbose=yes ;;
344
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
347 exit 0 ;;
348
349 -with-* | --with-*)
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 fi
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 case "$ac_option" in
357 *=*) ;;
358 *) ac_optarg=yes ;;
359 esac
360 eval "with_${ac_package}='$ac_optarg'" ;;
361
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 fi
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
370
371 --x)
372 # Obsolete; use --with-x.
373 with_x=yes ;;
374
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
381
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
388
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 ;;
391
392 *)
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 fi
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 fi
399 nonopt="$ac_option"
400 ;;
401
402 esac
403done
404
405if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407fi
408
409trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
411# File descriptor usage:
412# 0 standard input
413# 1 file creation
414# 2 errors and warnings
415# 3 some systems may open it to /dev/tty
416# 4 used on the Kubota Titan
417# 6 checking for... messages and results
418# 5 compiler messages saved in config.log
419if test "$silent" = yes; then
420 exec 6>/dev/null
421else
422 exec 6>&1
423fi
424exec 5>./config.log
425
426echo "\
427This file contains any messages produced by compilers while
428running configure, to aid debugging if configure makes a mistake.
429" 1>&5
430
431# Strip out --no-create and --no-recursion so they do not pile up.
432# Also quote any args containing shell metacharacters.
433ac_configure_args=
434for ac_arg
435do
436 case "$ac_arg" in
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 esac
445done
446
447# NLS nuisances.
448# Only set these to C if already set. These must not be set unconditionally
449# because not all systems understand e.g. LANG=C (notably SCO).
450# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451# Non-C LC_CTYPE values break the ctype check.
452if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456
457# confdefs.h avoids OS command line length limits that DEFS can exceed.
458rm -rf conftest* confdefs.h
459# AIX cpp loses on an empty file, so make sure it contains at least a newline.
460echo > confdefs.h
461
462# A filename unique to this package, relative to the directory that
463# configure is in, which we can look for to find out if srcdir is correct.
464ac_unique_file=text/MGQuery.cpp
465
466# Find the source files, if location was not specified.
467if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
470 ac_prog=$0
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 srcdir=$ac_confdir
474 if test ! -r $srcdir/$ac_unique_file; then
475 srcdir=..
476 fi
477else
478 ac_srcdir_defaulted=no
479fi
480if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 else
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 fi
486fi
487srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
489# Prefer explicitly selected file to automatically selected ones.
490if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 else
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 fi
496fi
497for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
500 . "$ac_site_file"
501 fi
502done
503
504if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
506 . $cache_file
507else
508 echo "creating cache $cache_file"
509 > $cache_file
510fi
511
512ac_ext=c
513# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514ac_cpp='$CPP $CPPFLAGS'
515ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517cross_compiling=$ac_cv_prog_cc_cross
518
519ac_exeext=
520ac_objext=o
521if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='
525' ac_t=' '
526 else
527 ac_n=-n ac_c= ac_t=
528 fi
529else
530 ac_n= ac_c='\c' ac_t=
531fi
532
533
534
535if test "$program_transform_name" = s,x,x,; then
536 program_transform_name=
537else
538 # Double any \ or $. echo might interpret backslashes.
539 cat <<\EOF_SED > conftestsed
540s,\\,\\\\,g; s,\$,$$,g
541EOF_SED
542 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
543 rm -f conftestsed
544fi
545test "$program_prefix" != NONE &&
546 program_transform_name="s,^,${program_prefix},; $program_transform_name"
547# Use a double $ so make ignores it.
548test "$program_suffix" != NONE &&
549 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
550
551# sed with no file args requires a program.
552test "$program_transform_name" = "" && program_transform_name="s,x,x,"
553
554
555PACKAGE=mgpp
556VERSION=1.3
557
558LDFLAGS=
559
560cat >> confdefs.h <<EOF
561#define PACKAGE "$PACKAGE"
562EOF
563
564cat >> confdefs.h <<EOF
565#define VERSION "$VERSION"
566EOF
567
568
569
570
571for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
572do
573# Extract the first word of "$ac_prog", so it can be a program name with args.
574set dummy $ac_prog; ac_word=$2
575echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
576echo "configure:577: checking for $ac_word" >&5
577if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
579else
580 if test -n "$CXX"; then
581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
582else
583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
584 ac_dummy="$PATH"
585 for ac_dir in $ac_dummy; do
586 test -z "$ac_dir" && ac_dir=.
587 if test -f $ac_dir/$ac_word; then
588 ac_cv_prog_CXX="$ac_prog"
589 break
590 fi
591 done
592 IFS="$ac_save_ifs"
593fi
594fi
595CXX="$ac_cv_prog_CXX"
596if test -n "$CXX"; then
597 echo "$ac_t""$CXX" 1>&6
598else
599 echo "$ac_t""no" 1>&6
600fi
601
602test -n "$CXX" && break
603done
604test -n "$CXX" || CXX="gcc"
605
606
607echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
608echo "configure:609: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
609
610ac_ext=C
611# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
612ac_cpp='$CXXCPP $CPPFLAGS'
613ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
614ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
615cross_compiling=$ac_cv_prog_cxx_cross
616
617cat > conftest.$ac_ext << EOF
618
619#line 620 "configure"
620#include "confdefs.h"
621
622int main(){return(0);}
623EOF
624if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
625 ac_cv_prog_cxx_works=yes
626 # If we can't run a trivial program, we are probably using a cross compiler.
627 if (./conftest; exit) 2>/dev/null; then
628 ac_cv_prog_cxx_cross=no
629 else
630 ac_cv_prog_cxx_cross=yes
631 fi
632else
633 echo "configure: failed program was:" >&5
634 cat conftest.$ac_ext >&5
635 ac_cv_prog_cxx_works=no
636fi
637rm -fr conftest*
638ac_ext=c
639# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
640ac_cpp='$CPP $CPPFLAGS'
641ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
642ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
643cross_compiling=$ac_cv_prog_cc_cross
644
645echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
646if test $ac_cv_prog_cxx_works = no; then
647 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
648fi
649echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
650echo "configure:651: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
651echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
652cross_compiling=$ac_cv_prog_cxx_cross
653
654echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
655echo "configure:656: checking whether we are using GNU C++" >&5
656if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
658else
659 cat > conftest.C <<EOF
660#ifdef __GNUC__
661 yes;
662#endif
663EOF
664if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
665 ac_cv_prog_gxx=yes
666else
667 ac_cv_prog_gxx=no
668fi
669fi
670
671echo "$ac_t""$ac_cv_prog_gxx" 1>&6
672
673if test $ac_cv_prog_gxx = yes; then
674 GXX=yes
675else
676 GXX=
677fi
678
679ac_test_CXXFLAGS="${CXXFLAGS+set}"
680ac_save_CXXFLAGS="$CXXFLAGS"
681CXXFLAGS=
682echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
683echo "configure:684: checking whether ${CXX-g++} accepts -g" >&5
684if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686else
687 echo 'void f(){}' > conftest.cc
688if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
689 ac_cv_prog_cxx_g=yes
690else
691 ac_cv_prog_cxx_g=no
692fi
693rm -f conftest*
694
695fi
696
697echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
698if test "$ac_test_CXXFLAGS" = set; then
699 CXXFLAGS="$ac_save_CXXFLAGS"
700elif test $ac_cv_prog_cxx_g = yes; then
701 if test "$GXX" = yes; then
702 CXXFLAGS="-g -O2"
703 else
704 CXXFLAGS="-g"
705 fi
706else
707 if test "$GXX" = yes; then
708 CXXFLAGS="-O2"
709 else
710 CXXFLAGS=
711 fi
712fi
713
714for ac_prog in mawk gawk nawk awk
715do
716# Extract the first word of "$ac_prog", so it can be a program name with args.
717set dummy $ac_prog; ac_word=$2
718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
719echo "configure:720: checking for $ac_word" >&5
720if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
722else
723 if test -n "$AWK"; then
724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
725else
726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
727 ac_dummy="$PATH"
728 for ac_dir in $ac_dummy; do
729 test -z "$ac_dir" && ac_dir=.
730 if test -f $ac_dir/$ac_word; then
731 ac_cv_prog_AWK="$ac_prog"
732 break
733 fi
734 done
735 IFS="$ac_save_ifs"
736fi
737fi
738AWK="$ac_cv_prog_AWK"
739if test -n "$AWK"; then
740 echo "$ac_t""$AWK" 1>&6
741else
742 echo "$ac_t""no" 1>&6
743fi
744
745test -n "$AWK" && break
746done
747
748for ac_prog in 'bison -y' byacc
749do
750# Extract the first word of "$ac_prog", so it can be a program name with args.
751set dummy $ac_prog; ac_word=$2
752echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
753echo "configure:754: checking for $ac_word" >&5
754if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
756else
757 if test -n "$YACC"; then
758 ac_cv_prog_YACC="$YACC" # Let the user override the test.
759else
760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
761 ac_dummy="$PATH"
762 for ac_dir in $ac_dummy; do
763 test -z "$ac_dir" && ac_dir=.
764 if test -f $ac_dir/$ac_word; then
765 ac_cv_prog_YACC="$ac_prog"
766 break
767 fi
768 done
769 IFS="$ac_save_ifs"
770fi
771fi
772YACC="$ac_cv_prog_YACC"
773if test -n "$YACC"; then
774 echo "$ac_t""$YACC" 1>&6
775else
776 echo "$ac_t""no" 1>&6
777fi
778
779test -n "$YACC" && break
780done
781test -n "$YACC" || YACC="yacc"
782
783# Extract the first word of "gcc", so it can be a program name with args.
784set dummy gcc; ac_word=$2
785echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786echo "configure:787: checking for $ac_word" >&5
787if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
789else
790 if test -n "$CC"; then
791 ac_cv_prog_CC="$CC" # Let the user override the test.
792else
793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
794 ac_dummy="$PATH"
795 for ac_dir in $ac_dummy; do
796 test -z "$ac_dir" && ac_dir=.
797 if test -f $ac_dir/$ac_word; then
798 ac_cv_prog_CC="gcc"
799 break
800 fi
801 done
802 IFS="$ac_save_ifs"
803fi
804fi
805CC="$ac_cv_prog_CC"
806if test -n "$CC"; then
807 echo "$ac_t""$CC" 1>&6
808else
809 echo "$ac_t""no" 1>&6
810fi
811
812if test -z "$CC"; then
813 # Extract the first word of "cc", so it can be a program name with args.
814set dummy cc; ac_word=$2
815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816echo "configure:817: checking for $ac_word" >&5
817if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
819else
820 if test -n "$CC"; then
821 ac_cv_prog_CC="$CC" # Let the user override the test.
822else
823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
824 ac_prog_rejected=no
825 ac_dummy="$PATH"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
830 ac_prog_rejected=yes
831 continue
832 fi
833 ac_cv_prog_CC="cc"
834 break
835 fi
836 done
837 IFS="$ac_save_ifs"
838if test $ac_prog_rejected = yes; then
839 # We found a bogon in the path, so make sure we never use it.
840 set dummy $ac_cv_prog_CC
841 shift
842 if test $# -gt 0; then
843 # We chose a different compiler from the bogus one.
844 # However, it has the same basename, so the bogon will be chosen
845 # first if we set CC to just the basename; use the full file name.
846 shift
847 set dummy "$ac_dir/$ac_word" "$@"
848 shift
849 ac_cv_prog_CC="$@"
850 fi
851fi
852fi
853fi
854CC="$ac_cv_prog_CC"
855if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
857else
858 echo "$ac_t""no" 1>&6
859fi
860
861 if test -z "$CC"; then
862 case "`uname -s`" in
863 *win32* | *WIN32*)
864 # Extract the first word of "cl", so it can be a program name with args.
865set dummy cl; ac_word=$2
866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867echo "configure:868: checking for $ac_word" >&5
868if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870else
871 if test -n "$CC"; then
872 ac_cv_prog_CC="$CC" # Let the user override the test.
873else
874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 ac_dummy="$PATH"
876 for ac_dir in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
879 ac_cv_prog_CC="cl"
880 break
881 fi
882 done
883 IFS="$ac_save_ifs"
884fi
885fi
886CC="$ac_cv_prog_CC"
887if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
889else
890 echo "$ac_t""no" 1>&6
891fi
892 ;;
893 esac
894 fi
895 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
896fi
897
898echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
899echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
900
901ac_ext=c
902# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
903ac_cpp='$CPP $CPPFLAGS'
904ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
905ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
906cross_compiling=$ac_cv_prog_cc_cross
907
908cat > conftest.$ac_ext << EOF
909
910#line 911 "configure"
911#include "confdefs.h"
912
913main(){return(0);}
914EOF
915if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
916 ac_cv_prog_cc_works=yes
917 # If we can't run a trivial program, we are probably using a cross compiler.
918 if (./conftest; exit) 2>/dev/null; then
919 ac_cv_prog_cc_cross=no
920 else
921 ac_cv_prog_cc_cross=yes
922 fi
923else
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 ac_cv_prog_cc_works=no
927fi
928rm -fr conftest*
929ac_ext=c
930# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
931ac_cpp='$CPP $CPPFLAGS'
932ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
933ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
934cross_compiling=$ac_cv_prog_cc_cross
935
936echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
937if test $ac_cv_prog_cc_works = no; then
938 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
939fi
940echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
941echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
942echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
943cross_compiling=$ac_cv_prog_cc_cross
944
945echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
946echo "configure:947: checking whether we are using GNU C" >&5
947if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949else
950 cat > conftest.c <<EOF
951#ifdef __GNUC__
952 yes;
953#endif
954EOF
955if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
956 ac_cv_prog_gcc=yes
957else
958 ac_cv_prog_gcc=no
959fi
960fi
961
962echo "$ac_t""$ac_cv_prog_gcc" 1>&6
963
964if test $ac_cv_prog_gcc = yes; then
965 GCC=yes
966else
967 GCC=
968fi
969
970ac_test_CFLAGS="${CFLAGS+set}"
971ac_save_CFLAGS="$CFLAGS"
972CFLAGS=
973echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
974echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
975if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977else
978 echo 'void f(){}' > conftest.c
979if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
980 ac_cv_prog_cc_g=yes
981else
982 ac_cv_prog_cc_g=no
983fi
984rm -f conftest*
985
986fi
987
988echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
989if test "$ac_test_CFLAGS" = set; then
990 CFLAGS="$ac_save_CFLAGS"
991elif test $ac_cv_prog_cc_g = yes; then
992 if test "$GCC" = yes; then
993 CFLAGS="-g -O2"
994 else
995 CFLAGS="-g"
996 fi
997else
998 if test "$GCC" = yes; then
999 CFLAGS="-O2"
1000 else
1001 CFLAGS=
1002 fi
1003fi
1004
1005ac_aux_dir=
1006for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1007 if test -f $ac_dir/install-sh; then
1008 ac_aux_dir=$ac_dir
1009 ac_install_sh="$ac_aux_dir/install-sh -c"
1010 break
1011 elif test -f $ac_dir/install.sh; then
1012 ac_aux_dir=$ac_dir
1013 ac_install_sh="$ac_aux_dir/install.sh -c"
1014 break
1015 fi
1016done
1017if test -z "$ac_aux_dir"; then
1018 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1019fi
1020ac_config_guess=$ac_aux_dir/config.guess
1021ac_config_sub=$ac_aux_dir/config.sub
1022ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1023
1024# Find a good install program. We prefer a C program (faster),
1025# so one script is as good as another. But avoid the broken or
1026# incompatible versions:
1027# SysV /etc/install, /usr/sbin/install
1028# SunOS /usr/etc/install
1029# IRIX /sbin/install
1030# AIX /bin/install
1031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1034# ./install, which can be erroneously created by make from ./install.sh.
1035echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1036echo "configure:1037: checking for a BSD compatible install" >&5
1037if test -z "$INSTALL"; then
1038if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040else
1041 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1042 for ac_dir in $PATH; do
1043 # Account for people who put trailing slashes in PATH elements.
1044 case "$ac_dir/" in
1045 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1046 *)
1047 # OSF1 and SCO ODT 3.0 have their own names for install.
1048 # Don't use installbsd from OSF since it installs stuff as root
1049 # by default.
1050 for ac_prog in ginstall scoinst install; do
1051 if test -f $ac_dir/$ac_prog; then
1052 if test $ac_prog = install &&
1053 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1054 # AIX install. It has an incompatible calling convention.
1055 :
1056 else
1057 ac_cv_path_install="$ac_dir/$ac_prog -c"
1058 break 2
1059 fi
1060 fi
1061 done
1062 ;;
1063 esac
1064 done
1065 IFS="$ac_save_IFS"
1066
1067fi
1068 if test "${ac_cv_path_install+set}" = set; then
1069 INSTALL="$ac_cv_path_install"
1070 else
1071 # As a last resort, use the slow shell script. We don't cache a
1072 # path for INSTALL within a source directory, because that will
1073 # break other packages using the cache if that directory is
1074 # removed, or if the path is relative.
1075 INSTALL="$ac_install_sh"
1076 fi
1077fi
1078echo "$ac_t""$INSTALL" 1>&6
1079
1080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1081# It thinks the first close brace ends the variable substitution.
1082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1083
1084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1085
1086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1087
1088echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1089echo "configure:1090: checking whether ln -s works" >&5
1090if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1092else
1093 rm -f conftestdata
1094if ln -s X conftestdata 2>/dev/null
1095then
1096 rm -f conftestdata
1097 ac_cv_prog_LN_S="ln -s"
1098else
1099 ac_cv_prog_LN_S=ln
1100fi
1101fi
1102LN_S="$ac_cv_prog_LN_S"
1103if test "$ac_cv_prog_LN_S" = "ln -s"; then
1104 echo "$ac_t""yes" 1>&6
1105else
1106 echo "$ac_t""no" 1>&6
1107fi
1108
1109echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1110echo "configure:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5
1111set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1112if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114else
1115 cat > conftestmake <<\EOF
1116all:
1117 @echo 'ac_maketemp="${MAKE}"'
1118EOF
1119# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1120eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1121if test -n "$ac_maketemp"; then
1122 eval ac_cv_prog_make_${ac_make}_set=yes
1123else
1124 eval ac_cv_prog_make_${ac_make}_set=no
1125fi
1126rm -f conftestmake
1127fi
1128if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1129 echo "$ac_t""yes" 1>&6
1130 SET_MAKE=
1131else
1132 echo "$ac_t""no" 1>&6
1133 SET_MAKE="MAKE=${MAKE-make}"
1134fi
1135
1136# Extract the first word of "ranlib", so it can be a program name with args.
1137set dummy ranlib; ac_word=$2
1138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1139echo "configure:1140: checking for $ac_word" >&5
1140if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1142else
1143 if test -n "$RANLIB"; then
1144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1145else
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 ac_dummy="$PATH"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_prog_RANLIB="ranlib"
1152 break
1153 fi
1154 done
1155 IFS="$ac_save_ifs"
1156 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1157fi
1158fi
1159RANLIB="$ac_cv_prog_RANLIB"
1160if test -n "$RANLIB"; then
1161 echo "$ac_t""$RANLIB" 1>&6
1162else
1163 echo "$ac_t""no" 1>&6
1164fi
1165
1166
1167echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1168echo "configure:1169: checking how to run the C preprocessor" >&5
1169# On Suns, sometimes $CPP names a directory.
1170if test -n "$CPP" && test -d "$CPP"; then
1171 CPP=
1172fi
1173if test -z "$CPP"; then
1174if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176else
1177 # This must be in double quotes, not single quotes, because CPP may get
1178 # substituted into the Makefile and "${CC-cc}" will confuse make.
1179 CPP="${CC-cc} -E"
1180 # On the NeXT, cc -E runs the code through the compiler's parser,
1181 # not just through cpp.
1182 cat > conftest.$ac_ext <<EOF
1183#line 1184 "configure"
1184#include "confdefs.h"
1185#include <assert.h>
1186Syntax Error
1187EOF
1188ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1189{ (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1190ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1191if test -z "$ac_err"; then
1192 :
1193else
1194 echo "$ac_err" >&5
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1197 rm -rf conftest*
1198 CPP="${CC-cc} -E -traditional-cpp"
1199 cat > conftest.$ac_ext <<EOF
1200#line 1201 "configure"
1201#include "confdefs.h"
1202#include <assert.h>
1203Syntax Error
1204EOF
1205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206{ (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208if test -z "$ac_err"; then
1209 :
1210else
1211 echo "$ac_err" >&5
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1214 rm -rf conftest*
1215 CPP="${CC-cc} -nologo -E"
1216 cat > conftest.$ac_ext <<EOF
1217#line 1218 "configure"
1218#include "confdefs.h"
1219#include <assert.h>
1220Syntax Error
1221EOF
1222ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223{ (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225if test -z "$ac_err"; then
1226 :
1227else
1228 echo "$ac_err" >&5
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1231 rm -rf conftest*
1232 CPP=/lib/cpp
1233fi
1234rm -f conftest*
1235fi
1236rm -f conftest*
1237fi
1238rm -f conftest*
1239 ac_cv_prog_CPP="$CPP"
1240fi
1241 CPP="$ac_cv_prog_CPP"
1242else
1243 ac_cv_prog_CPP="$CPP"
1244fi
1245echo "$ac_t""$CPP" 1>&6
1246
1247echo $ac_n "checking for AIX""... $ac_c" 1>&6
1248echo "configure:1249: checking for AIX" >&5
1249cat > conftest.$ac_ext <<EOF
1250#line 1251 "configure"
1251#include "confdefs.h"
1252#ifdef _AIX
1253 yes
1254#endif
1255
1256EOF
1257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1258 egrep "yes" >/dev/null 2>&1; then
1259 rm -rf conftest*
1260 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1261#define _ALL_SOURCE 1
1262EOF
1263
1264else
1265 rm -rf conftest*
1266 echo "$ac_t""no" 1>&6
1267fi
1268rm -f conftest*
1269
1270
1271echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1272echo "configure:1273: checking for POSIXized ISC" >&5
1273if test -d /etc/conf/kconfig.d &&
1274 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1275then
1276 echo "$ac_t""yes" 1>&6
1277 ISC=yes # If later tests want to check for ISC.
1278 cat >> confdefs.h <<\EOF
1279#define _POSIX_SOURCE 1
1280EOF
1281
1282 if test "$GCC" = yes; then
1283 CC="$CC -posix"
1284 else
1285 CC="$CC -Xp"
1286 fi
1287else
1288 echo "$ac_t""no" 1>&6
1289 ISC=
1290fi
1291
1292ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1293echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1294echo "configure:1295: checking for minix/config.h" >&5
1295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1297else
1298 cat > conftest.$ac_ext <<EOF
1299#line 1300 "configure"
1300#include "confdefs.h"
1301#include <minix/config.h>
1302EOF
1303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1304{ (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1306if test -z "$ac_err"; then
1307 rm -rf conftest*
1308 eval "ac_cv_header_$ac_safe=yes"
1309else
1310 echo "$ac_err" >&5
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1313 rm -rf conftest*
1314 eval "ac_cv_header_$ac_safe=no"
1315fi
1316rm -f conftest*
1317fi
1318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1319 echo "$ac_t""yes" 1>&6
1320 MINIX=yes
1321else
1322 echo "$ac_t""no" 1>&6
1323MINIX=
1324fi
1325
1326if test "$MINIX" = yes; then
1327 cat >> confdefs.h <<\EOF
1328#define _POSIX_SOURCE 1
1329EOF
1330
1331 cat >> confdefs.h <<\EOF
1332#define _POSIX_1_SOURCE 2
1333EOF
1334
1335 cat >> confdefs.h <<\EOF
1336#define _MINIX 1
1337EOF
1338
1339fi
1340
1341echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1342echo "configure:1343: checking for ${CC-cc} option to accept ANSI C" >&5
1343if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1345else
1346 ac_cv_prog_cc_stdc=no
1347ac_save_CFLAGS="$CFLAGS"
1348# Don't try gcc -ansi; that turns off useful extensions and
1349# breaks some systems' header files.
1350# AIX -qlanglvl=ansi
1351# Ultrix and OSF/1 -std1
1352# HP-UX -Aa -D_HPUX_SOURCE
1353# SVR4 -Xc
1354for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
1355do
1356 CFLAGS="$ac_save_CFLAGS $ac_arg"
1357 cat > conftest.$ac_ext <<EOF
1358#line 1359 "configure"
1359#include "confdefs.h"
1360#if !defined(__STDC__) || __STDC__ != 1
1361choke me
1362#endif
1363
1364int main() {
1365int test (int i, double x);
1366struct s1 {int (*f) (int a);};
1367struct s2 {int (*f) (double a);};
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_prog_cc_stdc="$ac_arg"; break
1373else
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1376fi
1377rm -f conftest*
1378done
1379CFLAGS="$ac_save_CFLAGS"
1380
1381fi
1382
1383echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
1384case "x$ac_cv_prog_cc_stdc" in
1385 x|xno) ;;
1386 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
1387esac
1388
1389
1390echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1391echo "configure:1392: checking for function prototypes" >&5
1392if test "$ac_cv_prog_cc_stdc" != no; then
1393 echo "$ac_t""yes" 1>&6
1394 cat >> confdefs.h <<\EOF
1395#define PROTOTYPES 1
1396EOF
1397
1398 U= ANSI2KNR=
1399else
1400 echo "$ac_t""no" 1>&6
1401 U=_ ANSI2KNR=ansi2knr
1402fi
1403
1404echo $ac_n "checking for working const""... $ac_c" 1>&6
1405echo "configure:1406: checking for working const" >&5
1406if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1408else
1409 cat > conftest.$ac_ext <<EOF
1410#line 1411 "configure"
1411#include "confdefs.h"
1412
1413int main() {
1414
1415/* Ultrix mips cc rejects this. */
1416typedef int charset[2]; const charset x;
1417/* SunOS 4.1.1 cc rejects this. */
1418char const *const *ccp;
1419char **p;
1420/* NEC SVR4.0.2 mips cc rejects this. */
1421struct point {int x, y;};
1422static struct point const zero = {0,0};
1423/* AIX XL C 1.02.0.0 rejects this.
1424 It does not let you subtract one const X* pointer from another in an arm
1425 of an if-expression whose if-part is not a constant expression */
1426const char *g = "string";
1427ccp = &g + (g ? g-g : 0);
1428/* HPUX 7.0 cc rejects these. */
1429++ccp;
1430p = (char**) ccp;
1431ccp = (char const *const *) p;
1432{ /* SCO 3.2v4 cc rejects this. */
1433 char *t;
1434 char const *s = 0 ? (char *) 0 : (char const *) 0;
1435
1436 *t++ = 0;
1437}
1438{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1439 int x[] = {25, 17};
1440 const int *foo = &x[0];
1441 ++foo;
1442}
1443{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1444 typedef const int *iptr;
1445 iptr p = 0;
1446 ++p;
1447}
1448{ /* AIX XL C 1.02.0.0 rejects this saying
1449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1450 struct s { int j; const int *ap[3]; };
1451 struct s *b; b->j = 5;
1452}
1453{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1454 const int foo = 10;
1455}
1456
1457; return 0; }
1458EOF
1459if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1460 rm -rf conftest*
1461 ac_cv_c_const=yes
1462else
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1465 rm -rf conftest*
1466 ac_cv_c_const=no
1467fi
1468rm -f conftest*
1469fi
1470
1471echo "$ac_t""$ac_cv_c_const" 1>&6
1472if test $ac_cv_c_const = no; then
1473 cat >> confdefs.h <<\EOF
1474#define const
1475EOF
1476
1477fi
1478
1479echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1480echo "configure:1481: checking for ANSI C header files" >&5
1481if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1483else
1484 cat > conftest.$ac_ext <<EOF
1485#line 1486 "configure"
1486#include "confdefs.h"
1487#include <stdlib.h>
1488#include <stdarg.h>
1489#include <string.h>
1490#include <float.h>
1491EOF
1492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1493{ (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1494ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1495if test -z "$ac_err"; then
1496 rm -rf conftest*
1497 ac_cv_header_stdc=yes
1498else
1499 echo "$ac_err" >&5
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1502 rm -rf conftest*
1503 ac_cv_header_stdc=no
1504fi
1505rm -f conftest*
1506
1507if test $ac_cv_header_stdc = yes; then
1508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1509cat > conftest.$ac_ext <<EOF
1510#line 1511 "configure"
1511#include "confdefs.h"
1512#include <string.h>
1513EOF
1514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1515 egrep "memchr" >/dev/null 2>&1; then
1516 :
1517else
1518 rm -rf conftest*
1519 ac_cv_header_stdc=no
1520fi
1521rm -f conftest*
1522
1523fi
1524
1525if test $ac_cv_header_stdc = yes; then
1526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1527cat > conftest.$ac_ext <<EOF
1528#line 1529 "configure"
1529#include "confdefs.h"
1530#include <stdlib.h>
1531EOF
1532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1533 egrep "free" >/dev/null 2>&1; then
1534 :
1535else
1536 rm -rf conftest*
1537 ac_cv_header_stdc=no
1538fi
1539rm -f conftest*
1540
1541fi
1542
1543if test $ac_cv_header_stdc = yes; then
1544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1545if test "$cross_compiling" = yes; then
1546 :
1547else
1548 cat > conftest.$ac_ext <<EOF
1549#line 1550 "configure"
1550#include "confdefs.h"
1551#include <ctype.h>
1552#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1553#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1554#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1555int main () { int i; for (i = 0; i < 256; i++)
1556if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1557exit (0); }
1558
1559EOF
1560if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1561then
1562 :
1563else
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1566 rm -fr conftest*
1567 ac_cv_header_stdc=no
1568fi
1569rm -fr conftest*
1570fi
1571
1572fi
1573fi
1574
1575echo "$ac_t""$ac_cv_header_stdc" 1>&6
1576if test $ac_cv_header_stdc = yes; then
1577 cat >> confdefs.h <<\EOF
1578#define STDC_HEADERS 1
1579EOF
1580
1581fi
1582
1583echo $ac_n "checking for off_t""... $ac_c" 1>&6
1584echo "configure:1585: checking for off_t" >&5
1585if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587else
1588 cat > conftest.$ac_ext <<EOF
1589#line 1590 "configure"
1590#include "confdefs.h"
1591#include <sys/types.h>
1592#if STDC_HEADERS
1593#include <stdlib.h>
1594#include <stddef.h>
1595#endif
1596EOF
1597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1598 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1599 rm -rf conftest*
1600 ac_cv_type_off_t=yes
1601else
1602 rm -rf conftest*
1603 ac_cv_type_off_t=no
1604fi
1605rm -f conftest*
1606
1607fi
1608echo "$ac_t""$ac_cv_type_off_t" 1>&6
1609if test $ac_cv_type_off_t = no; then
1610 cat >> confdefs.h <<\EOF
1611#define off_t long
1612EOF
1613
1614fi
1615
1616echo $ac_n "checking for size_t""... $ac_c" 1>&6
1617echo "configure:1618: checking for size_t" >&5
1618if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620else
1621 cat > conftest.$ac_ext <<EOF
1622#line 1623 "configure"
1623#include "confdefs.h"
1624#include <sys/types.h>
1625#if STDC_HEADERS
1626#include <stdlib.h>
1627#include <stddef.h>
1628#endif
1629EOF
1630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1631 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1632 rm -rf conftest*
1633 ac_cv_type_size_t=yes
1634else
1635 rm -rf conftest*
1636 ac_cv_type_size_t=no
1637fi
1638rm -f conftest*
1639
1640fi
1641echo "$ac_t""$ac_cv_type_size_t" 1>&6
1642if test $ac_cv_type_size_t = no; then
1643 cat >> confdefs.h <<\EOF
1644#define size_t unsigned
1645EOF
1646
1647fi
1648
1649echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1650echo "configure:1651: checking whether time.h and sys/time.h may both be included" >&5
1651if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1653else
1654 cat > conftest.$ac_ext <<EOF
1655#line 1656 "configure"
1656#include "confdefs.h"
1657#include <sys/types.h>
1658#include <sys/time.h>
1659#include <time.h>
1660int main() {
1661struct tm *tp;
1662; return 0; }
1663EOF
1664if { (eval echo configure:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 rm -rf conftest*
1666 ac_cv_header_time=yes
1667else
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1670 rm -rf conftest*
1671 ac_cv_header_time=no
1672fi
1673rm -f conftest*
1674fi
1675
1676echo "$ac_t""$ac_cv_header_time" 1>&6
1677if test $ac_cv_header_time = yes; then
1678 cat >> confdefs.h <<\EOF
1679#define TIME_WITH_SYS_TIME 1
1680EOF
1681
1682fi
1683
1684echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1685echo "configure:1686: checking whether struct tm is in sys/time.h or time.h" >&5
1686if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1688else
1689 cat > conftest.$ac_ext <<EOF
1690#line 1691 "configure"
1691#include "confdefs.h"
1692#include <sys/types.h>
1693#include <time.h>
1694int main() {
1695struct tm *tp; tp->tm_sec;
1696; return 0; }
1697EOF
1698if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1699 rm -rf conftest*
1700 ac_cv_struct_tm=time.h
1701else
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1704 rm -rf conftest*
1705 ac_cv_struct_tm=sys/time.h
1706fi
1707rm -f conftest*
1708fi
1709
1710echo "$ac_t""$ac_cv_struct_tm" 1>&6
1711if test $ac_cv_struct_tm = sys/time.h; then
1712 cat >> confdefs.h <<\EOF
1713#define TM_IN_SYS_TIME 1
1714EOF
1715
1716fi
1717
1718
1719if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
1720cat > conftest.$ac_ext <<EOF
1721#line 1722 "configure"
1722#include "confdefs.h"
1723#include <stdio.h>
1724
1725int main() {
1726 FILE *rubbish = popen("yes", "r");
1727; return 0; }
1728EOF
1729if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1730 :
1731else
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1734 rm -rf conftest*
1735 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
1736fi
1737rm -f conftest*
1738fi
1739
1740
1741echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
1742echo "configure:1743: checking for main in -lg" >&5
1743ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
1744if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747 ac_save_LIBS="$LIBS"
1748LIBS="-lg $LIBS"
1749cat > conftest.$ac_ext <<EOF
1750#line 1751 "configure"
1751#include "confdefs.h"
1752
1753int main() {
1754main()
1755; return 0; }
1756EOF
1757if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1758 rm -rf conftest*
1759 eval "ac_cv_lib_$ac_lib_var=yes"
1760else
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1763 rm -rf conftest*
1764 eval "ac_cv_lib_$ac_lib_var=no"
1765fi
1766rm -f conftest*
1767LIBS="$ac_save_LIBS"
1768
1769fi
1770if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1774 cat >> confdefs.h <<EOF
1775#define $ac_tr_lib 1
1776EOF
1777
1778 LIBS="-lg $LIBS"
1779
1780else
1781 echo "$ac_t""no" 1>&6
1782fi
1783
1784echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1785echo "configure:1786: checking for main in -lm" >&5
1786ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1789else
1790 ac_save_LIBS="$LIBS"
1791LIBS="-lm $LIBS"
1792cat > conftest.$ac_ext <<EOF
1793#line 1794 "configure"
1794#include "confdefs.h"
1795
1796int main() {
1797main()
1798; return 0; }
1799EOF
1800if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1801 rm -rf conftest*
1802 eval "ac_cv_lib_$ac_lib_var=yes"
1803else
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1806 rm -rf conftest*
1807 eval "ac_cv_lib_$ac_lib_var=no"
1808fi
1809rm -f conftest*
1810LIBS="$ac_save_LIBS"
1811
1812fi
1813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1814 echo "$ac_t""yes" 1>&6
1815 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1816 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1817 cat >> confdefs.h <<EOF
1818#define $ac_tr_lib 1
1819EOF
1820
1821 LIBS="-lm $LIBS"
1822
1823else
1824 echo "$ac_t""no" 1>&6
1825fi
1826
1827echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
1828echo "configure:1829: checking for main in -lstdc++" >&5
1829ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
1830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832else
1833 ac_save_LIBS="$LIBS"
1834LIBS="-lstdc++ $LIBS"
1835cat > conftest.$ac_ext <<EOF
1836#line 1837 "configure"
1837#include "confdefs.h"
1838
1839int main() {
1840main()
1841; return 0; }
1842EOF
1843if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1844 rm -rf conftest*
1845 eval "ac_cv_lib_$ac_lib_var=yes"
1846else
1847 echo "configure: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1849 rm -rf conftest*
1850 eval "ac_cv_lib_$ac_lib_var=no"
1851fi
1852rm -f conftest*
1853LIBS="$ac_save_LIBS"
1854
1855fi
1856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1857 echo "$ac_t""yes" 1>&6
1858 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1860 cat >> confdefs.h <<EOF
1861#define $ac_tr_lib 1
1862EOF
1863
1864 LIBS="-lstdc++ $LIBS"
1865
1866else
1867 echo "$ac_t""no" 1>&6
1868fi
1869
1870echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
1871echo "configure:1872: checking for main in -lcrypt" >&5
1872ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
1873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875else
1876 ac_save_LIBS="$LIBS"
1877LIBS="-lcrypt $LIBS"
1878cat > conftest.$ac_ext <<EOF
1879#line 1880 "configure"
1880#include "confdefs.h"
1881
1882int main() {
1883main()
1884; return 0; }
1885EOF
1886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 rm -rf conftest*
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1889else
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -rf conftest*
1893 eval "ac_cv_lib_$ac_lib_var=no"
1894fi
1895rm -f conftest*
1896LIBS="$ac_save_LIBS"
1897
1898fi
1899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1903 cat >> confdefs.h <<EOF
1904#define $ac_tr_lib 1
1905EOF
1906
1907 LIBS="-lcrypt $LIBS"
1908
1909else
1910 echo "$ac_t""no" 1>&6
1911fi
1912
1913
1914ac_header_dirent=no
1915for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1916do
1917ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1918echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1919echo "configure:1920: checking for $ac_hdr that defines DIR" >&5
1920if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1922else
1923 cat > conftest.$ac_ext <<EOF
1924#line 1925 "configure"
1925#include "confdefs.h"
1926#include <sys/types.h>
1927#include <$ac_hdr>
1928int main() {
1929DIR *dirp = 0;
1930; return 0; }
1931EOF
1932if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1933 rm -rf conftest*
1934 eval "ac_cv_header_dirent_$ac_safe=yes"
1935else
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 rm -rf conftest*
1939 eval "ac_cv_header_dirent_$ac_safe=no"
1940fi
1941rm -f conftest*
1942fi
1943if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1944 echo "$ac_t""yes" 1>&6
1945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1946 cat >> confdefs.h <<EOF
1947#define $ac_tr_hdr 1
1948EOF
1949 ac_header_dirent=$ac_hdr; break
1950else
1951 echo "$ac_t""no" 1>&6
1952fi
1953done
1954# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1955if test $ac_header_dirent = dirent.h; then
1956echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1957echo "configure:1958: checking for opendir in -ldir" >&5
1958ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1961else
1962 ac_save_LIBS="$LIBS"
1963LIBS="-ldir $LIBS"
1964cat > conftest.$ac_ext <<EOF
1965#line 1966 "configure"
1966#include "confdefs.h"
1967/* Override any gcc2 internal prototype to avoid an error. */
1968/* We use char because int might match the return type of a gcc2
1969 builtin and then its argument prototype would still apply. */
1970char opendir();
1971
1972int main() {
1973opendir()
1974; return 0; }
1975EOF
1976if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977 rm -rf conftest*
1978 eval "ac_cv_lib_$ac_lib_var=yes"
1979else
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 rm -rf conftest*
1983 eval "ac_cv_lib_$ac_lib_var=no"
1984fi
1985rm -f conftest*
1986LIBS="$ac_save_LIBS"
1987
1988fi
1989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1990 echo "$ac_t""yes" 1>&6
1991 LIBS="$LIBS -ldir"
1992else
1993 echo "$ac_t""no" 1>&6
1994fi
1995
1996else
1997echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1998echo "configure:1999: checking for opendir in -lx" >&5
1999ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2002else
2003 ac_save_LIBS="$LIBS"
2004LIBS="-lx $LIBS"
2005cat > conftest.$ac_ext <<EOF
2006#line 2007 "configure"
2007#include "confdefs.h"
2008/* Override any gcc2 internal prototype to avoid an error. */
2009/* We use char because int might match the return type of a gcc2
2010 builtin and then its argument prototype would still apply. */
2011char opendir();
2012
2013int main() {
2014opendir()
2015; return 0; }
2016EOF
2017if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2018 rm -rf conftest*
2019 eval "ac_cv_lib_$ac_lib_var=yes"
2020else
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 rm -rf conftest*
2024 eval "ac_cv_lib_$ac_lib_var=no"
2025fi
2026rm -f conftest*
2027LIBS="$ac_save_LIBS"
2028
2029fi
2030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 LIBS="$LIBS -lx"
2033else
2034 echo "$ac_t""no" 1>&6
2035fi
2036
2037fi
2038
2039echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2040echo "configure:2041: checking for ANSI C header files" >&5
2041if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2043else
2044 cat > conftest.$ac_ext <<EOF
2045#line 2046 "configure"
2046#include "confdefs.h"
2047#include <stdlib.h>
2048#include <stdarg.h>
2049#include <string.h>
2050#include <float.h>
2051EOF
2052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055if test -z "$ac_err"; then
2056 rm -rf conftest*
2057 ac_cv_header_stdc=yes
2058else
2059 echo "$ac_err" >&5
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2062 rm -rf conftest*
2063 ac_cv_header_stdc=no
2064fi
2065rm -f conftest*
2066
2067if test $ac_cv_header_stdc = yes; then
2068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2069cat > conftest.$ac_ext <<EOF
2070#line 2071 "configure"
2071#include "confdefs.h"
2072#include <string.h>
2073EOF
2074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2075 egrep "memchr" >/dev/null 2>&1; then
2076 :
2077else
2078 rm -rf conftest*
2079 ac_cv_header_stdc=no
2080fi
2081rm -f conftest*
2082
2083fi
2084
2085if test $ac_cv_header_stdc = yes; then
2086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2087cat > conftest.$ac_ext <<EOF
2088#line 2089 "configure"
2089#include "confdefs.h"
2090#include <stdlib.h>
2091EOF
2092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2093 egrep "free" >/dev/null 2>&1; then
2094 :
2095else
2096 rm -rf conftest*
2097 ac_cv_header_stdc=no
2098fi
2099rm -f conftest*
2100
2101fi
2102
2103if test $ac_cv_header_stdc = yes; then
2104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2105if test "$cross_compiling" = yes; then
2106 :
2107else
2108 cat > conftest.$ac_ext <<EOF
2109#line 2110 "configure"
2110#include "confdefs.h"
2111#include <ctype.h>
2112#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2113#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2114#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2115int main () { int i; for (i = 0; i < 256; i++)
2116if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2117exit (0); }
2118
2119EOF
2120if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2121then
2122 :
2123else
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2126 rm -fr conftest*
2127 ac_cv_header_stdc=no
2128fi
2129rm -fr conftest*
2130fi
2131
2132fi
2133fi
2134
2135echo "$ac_t""$ac_cv_header_stdc" 1>&6
2136if test $ac_cv_header_stdc = yes; then
2137 cat >> confdefs.h <<\EOF
2138#define STDC_HEADERS 1
2139EOF
2140
2141fi
2142
2143for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
2144do
2145ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2146echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2147echo "configure:2148: checking for $ac_hdr" >&5
2148if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150else
2151 cat > conftest.$ac_ext <<EOF
2152#line 2153 "configure"
2153#include "confdefs.h"
2154#include <$ac_hdr>
2155EOF
2156ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157{ (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159if test -z "$ac_err"; then
2160 rm -rf conftest*
2161 eval "ac_cv_header_$ac_safe=yes"
2162else
2163 echo "$ac_err" >&5
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 rm -rf conftest*
2167 eval "ac_cv_header_$ac_safe=no"
2168fi
2169rm -f conftest*
2170fi
2171if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2174 cat >> confdefs.h <<EOF
2175#define $ac_tr_hdr 1
2176EOF
2177
2178else
2179 echo "$ac_t""no" 1>&6
2180fi
2181done
2182
2183cat > conftest.$ac_ext <<EOF
2184#line 2185 "configure"
2185#include "confdefs.h"
2186#include <stdio.h>
2187EOF
2188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2189 egrep "fread" >/dev/null 2>&1; then
2190 rm -rf conftest*
2191 cat >> confdefs.h <<\EOF
2192#define HAVE_FREAD_DECL 1
2193EOF
2194
2195fi
2196rm -f conftest*
2197
2198cat > conftest.$ac_ext <<EOF
2199#line 2200 "configure"
2200#include "confdefs.h"
2201#include <stdio.h>
2202EOF
2203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2204 egrep "fgetc" >/dev/null 2>&1; then
2205 rm -rf conftest*
2206 cat >> confdefs.h <<\EOF
2207#define HAVE_FGETC_DECL 1
2208EOF
2209
2210fi
2211rm -f conftest*
2212
2213cat > conftest.$ac_ext <<EOF
2214#line 2215 "configure"
2215#include "confdefs.h"
2216#include <sys/procfs.h>
2217EOF
2218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2219 egrep "pr_brksize" >/dev/null 2>&1; then
2220 rm -rf conftest*
2221 cat >> confdefs.h <<\EOF
2222#define HAVE_PR_BRKSIZE 1
2223EOF
2224
2225fi
2226rm -f conftest*
2227
2228
2229# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2230# for constant arguments. Useless!
2231echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2232echo "configure:2233: checking for working alloca.h" >&5
2233if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235else
2236 cat > conftest.$ac_ext <<EOF
2237#line 2238 "configure"
2238#include "confdefs.h"
2239#include <alloca.h>
2240int main() {
2241char *p = alloca(2 * sizeof(int));
2242; return 0; }
2243EOF
2244if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 rm -rf conftest*
2246 ac_cv_header_alloca_h=yes
2247else
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2250 rm -rf conftest*
2251 ac_cv_header_alloca_h=no
2252fi
2253rm -f conftest*
2254fi
2255
2256echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2257if test $ac_cv_header_alloca_h = yes; then
2258 cat >> confdefs.h <<\EOF
2259#define HAVE_ALLOCA_H 1
2260EOF
2261
2262fi
2263
2264echo $ac_n "checking for alloca""... $ac_c" 1>&6
2265echo "configure:2266: checking for alloca" >&5
2266if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2268else
2269 cat > conftest.$ac_ext <<EOF
2270#line 2271 "configure"
2271#include "confdefs.h"
2272
2273#ifdef __GNUC__
2274# define alloca __builtin_alloca
2275#else
2276# ifdef _MSC_VER
2277# include <malloc.h>
2278# define alloca _alloca
2279# else
2280# if HAVE_ALLOCA_H
2281# include <alloca.h>
2282# else
2283# ifdef _AIX
2284 #pragma alloca
2285# else
2286# ifndef alloca /* predefined by HP cc +Olibcalls */
2287char *alloca ();
2288# endif
2289# endif
2290# endif
2291# endif
2292#endif
2293
2294int main() {
2295char *p = (char *) alloca(1);
2296; return 0; }
2297EOF
2298if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 rm -rf conftest*
2300 ac_cv_func_alloca_works=yes
2301else
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 rm -rf conftest*
2305 ac_cv_func_alloca_works=no
2306fi
2307rm -f conftest*
2308fi
2309
2310echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2311if test $ac_cv_func_alloca_works = yes; then
2312 cat >> confdefs.h <<\EOF
2313#define HAVE_ALLOCA 1
2314EOF
2315
2316fi
2317
2318if test $ac_cv_func_alloca_works = no; then
2319 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2320 # that cause trouble. Some versions do not even contain alloca or
2321 # contain a buggy version. If you still want to use their alloca,
2322 # use ar to extract alloca.o from them instead of compiling alloca.c.
2323 ALLOCA=alloca.${ac_objext}
2324 cat >> confdefs.h <<\EOF
2325#define C_ALLOCA 1
2326EOF
2327
2328
2329echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2330echo "configure:2331: checking whether alloca needs Cray hooks" >&5
2331if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333else
2334 cat > conftest.$ac_ext <<EOF
2335#line 2336 "configure"
2336#include "confdefs.h"
2337#if defined(CRAY) && ! defined(CRAY2)
2338webecray
2339#else
2340wenotbecray
2341#endif
2342
2343EOF
2344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2345 egrep "webecray" >/dev/null 2>&1; then
2346 rm -rf conftest*
2347 ac_cv_os_cray=yes
2348else
2349 rm -rf conftest*
2350 ac_cv_os_cray=no
2351fi
2352rm -f conftest*
2353
2354fi
2355
2356echo "$ac_t""$ac_cv_os_cray" 1>&6
2357if test $ac_cv_os_cray = yes; then
2358for ac_func in _getb67 GETB67 getb67; do
2359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2360echo "configure:2361: checking for $ac_func" >&5
2361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2363else
2364 cat > conftest.$ac_ext <<EOF
2365#line 2366 "configure"
2366#include "confdefs.h"
2367/* System header to define __stub macros and hopefully few prototypes,
2368 which can conflict with char $ac_func(); below. */
2369#include <assert.h>
2370/* Override any gcc2 internal prototype to avoid an error. */
2371/* We use char because int might match the return type of a gcc2
2372 builtin and then its argument prototype would still apply. */
2373char $ac_func();
2374
2375int main() {
2376
2377/* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2381choke me
2382#else
2383$ac_func();
2384#endif
2385
2386; return 0; }
2387EOF
2388if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 rm -rf conftest*
2390 eval "ac_cv_func_$ac_func=yes"
2391else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 eval "ac_cv_func_$ac_func=no"
2396fi
2397rm -f conftest*
2398fi
2399
2400if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 cat >> confdefs.h <<EOF
2403#define CRAY_STACKSEG_END $ac_func
2404EOF
2405
2406 break
2407else
2408 echo "$ac_t""no" 1>&6
2409fi
2410
2411done
2412fi
2413
2414echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2415echo "configure:2416: checking stack direction for C alloca" >&5
2416if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2418else
2419 if test "$cross_compiling" = yes; then
2420 ac_cv_c_stack_direction=0
2421else
2422 cat > conftest.$ac_ext <<EOF
2423#line 2424 "configure"
2424#include "confdefs.h"
2425find_stack_direction ()
2426{
2427 static char *addr = 0;
2428 auto char dummy;
2429 if (addr == 0)
2430 {
2431 addr = &dummy;
2432 return find_stack_direction ();
2433 }
2434 else
2435 return (&dummy > addr) ? 1 : -1;
2436}
2437main ()
2438{
2439 exit (find_stack_direction() < 0);
2440}
2441EOF
2442if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2443then
2444 ac_cv_c_stack_direction=1
2445else
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2448 rm -fr conftest*
2449 ac_cv_c_stack_direction=-1
2450fi
2451rm -fr conftest*
2452fi
2453
2454fi
2455
2456echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2457cat >> confdefs.h <<EOF
2458#define STACK_DIRECTION $ac_cv_c_stack_direction
2459EOF
2460
2461fi
2462
2463if test $ac_cv_prog_gcc = yes; then
2464 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2465echo "configure:2466: checking whether ${CC-cc} needs -traditional" >&5
2466if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2468else
2469 ac_pattern="Autoconf.*'x'"
2470 cat > conftest.$ac_ext <<EOF
2471#line 2472 "configure"
2472#include "confdefs.h"
2473#include <sgtty.h>
2474Autoconf TIOCGETP
2475EOF
2476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2477 egrep "$ac_pattern" >/dev/null 2>&1; then
2478 rm -rf conftest*
2479 ac_cv_prog_gcc_traditional=yes
2480else
2481 rm -rf conftest*
2482 ac_cv_prog_gcc_traditional=no
2483fi
2484rm -f conftest*
2485
2486
2487 if test $ac_cv_prog_gcc_traditional = no; then
2488 cat > conftest.$ac_ext <<EOF
2489#line 2490 "configure"
2490#include "confdefs.h"
2491#include <termio.h>
2492Autoconf TCGETA
2493EOF
2494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "$ac_pattern" >/dev/null 2>&1; then
2496 rm -rf conftest*
2497 ac_cv_prog_gcc_traditional=yes
2498fi
2499rm -f conftest*
2500
2501 fi
2502fi
2503
2504echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2505 if test $ac_cv_prog_gcc_traditional = yes; then
2506 CC="$CC -traditional"
2507 fi
2508fi
2509
2510echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2511echo "configure:2512: checking return type of signal handlers" >&5
2512if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2514else
2515 cat > conftest.$ac_ext <<EOF
2516#line 2517 "configure"
2517#include "confdefs.h"
2518#include <sys/types.h>
2519#include <signal.h>
2520#ifdef signal
2521#undef signal
2522#endif
2523#ifdef __cplusplus
2524extern "C" void (*signal (int, void (*)(int)))(int);
2525#else
2526void (*signal ()) ();
2527#endif
2528
2529int main() {
2530int i;
2531; return 0; }
2532EOF
2533if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2534 rm -rf conftest*
2535 ac_cv_type_signal=void
2536else
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2539 rm -rf conftest*
2540 ac_cv_type_signal=int
2541fi
2542rm -f conftest*
2543fi
2544
2545echo "$ac_t""$ac_cv_type_signal" 1>&6
2546cat >> confdefs.h <<EOF
2547#define RETSIGTYPE $ac_cv_type_signal
2548EOF
2549
2550
2551echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2552echo "configure:2553: checking for vprintf" >&5
2553if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2555else
2556 cat > conftest.$ac_ext <<EOF
2557#line 2558 "configure"
2558#include "confdefs.h"
2559/* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char vprintf(); below. */
2561#include <assert.h>
2562/* Override any gcc2 internal prototype to avoid an error. */
2563/* We use char because int might match the return type of a gcc2
2564 builtin and then its argument prototype would still apply. */
2565char vprintf();
2566
2567int main() {
2568
2569/* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572#if defined (__stub_vprintf) || defined (__stub___vprintf)
2573choke me
2574#else
2575vprintf();
2576#endif
2577
2578; return 0; }
2579EOF
2580if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2581 rm -rf conftest*
2582 eval "ac_cv_func_vprintf=yes"
2583else
2584 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2586 rm -rf conftest*
2587 eval "ac_cv_func_vprintf=no"
2588fi
2589rm -f conftest*
2590fi
2591
2592if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2594 cat >> confdefs.h <<\EOF
2595#define HAVE_VPRINTF 1
2596EOF
2597
2598else
2599 echo "$ac_t""no" 1>&6
2600fi
2601
2602if test "$ac_cv_func_vprintf" != yes; then
2603echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2604echo "configure:2605: checking for _doprnt" >&5
2605if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2607else
2608 cat > conftest.$ac_ext <<EOF
2609#line 2610 "configure"
2610#include "confdefs.h"
2611/* System header to define __stub macros and hopefully few prototypes,
2612 which can conflict with char _doprnt(); below. */
2613#include <assert.h>
2614/* Override any gcc2 internal prototype to avoid an error. */
2615/* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2617char _doprnt();
2618
2619int main() {
2620
2621/* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624#if defined (__stub__doprnt) || defined (__stub____doprnt)
2625choke me
2626#else
2627_doprnt();
2628#endif
2629
2630; return 0; }
2631EOF
2632if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2633 rm -rf conftest*
2634 eval "ac_cv_func__doprnt=yes"
2635else
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 rm -rf conftest*
2639 eval "ac_cv_func__doprnt=no"
2640fi
2641rm -f conftest*
2642fi
2643
2644if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 cat >> confdefs.h <<\EOF
2647#define HAVE_DOPRNT 1
2648EOF
2649
2650else
2651 echo "$ac_t""no" 1>&6
2652fi
2653
2654fi
2655
2656for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
2657do
2658echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2659echo "configure:2660: checking for $ac_func" >&5
2660if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2662else
2663 cat > conftest.$ac_ext <<EOF
2664#line 2665 "configure"
2665#include "confdefs.h"
2666/* System header to define __stub macros and hopefully few prototypes,
2667 which can conflict with char $ac_func(); below. */
2668#include <assert.h>
2669/* Override any gcc2 internal prototype to avoid an error. */
2670/* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2672char $ac_func();
2673
2674int main() {
2675
2676/* The GNU C library defines this for functions which it implements
2677 to always fail with ENOSYS. Some functions are actually named
2678 something starting with __ and the normal name is an alias. */
2679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2680choke me
2681#else
2682$ac_func();
2683#endif
2684
2685; return 0; }
2686EOF
2687if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2688 rm -rf conftest*
2689 eval "ac_cv_func_$ac_func=yes"
2690else
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 eval "ac_cv_func_$ac_func=no"
2695fi
2696rm -f conftest*
2697fi
2698
2699if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2702 cat >> confdefs.h <<EOF
2703#define $ac_tr_func 1
2704EOF
2705
2706else
2707 echo "$ac_t""no" 1>&6
2708fi
2709done
2710
2711for ac_func in ftruncate strstr strcasecmp
2712do
2713echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2714echo "configure:2715: checking for $ac_func" >&5
2715if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717else
2718 cat > conftest.$ac_ext <<EOF
2719#line 2720 "configure"
2720#include "confdefs.h"
2721/* System header to define __stub macros and hopefully few prototypes,
2722 which can conflict with char $ac_func(); below. */
2723#include <assert.h>
2724/* Override any gcc2 internal prototype to avoid an error. */
2725/* We use char because int might match the return type of a gcc2
2726 builtin and then its argument prototype would still apply. */
2727char $ac_func();
2728
2729int main() {
2730
2731/* The GNU C library defines this for functions which it implements
2732 to always fail with ENOSYS. Some functions are actually named
2733 something starting with __ and the normal name is an alias. */
2734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2735choke me
2736#else
2737$ac_func();
2738#endif
2739
2740; return 0; }
2741EOF
2742if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743 rm -rf conftest*
2744 eval "ac_cv_func_$ac_func=yes"
2745else
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2748 rm -rf conftest*
2749 eval "ac_cv_func_$ac_func=no"
2750fi
2751rm -f conftest*
2752fi
2753
2754if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2755 echo "$ac_t""yes" 1>&6
2756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2757 cat >> confdefs.h <<EOF
2758#define $ac_tr_func 1
2759EOF
2760
2761else
2762 echo "$ac_t""no" 1>&6
2763LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2764fi
2765done
2766
2767
2768
2769
2770echo $ac_n "checking for textdomain ""... $ac_c" 1>&6
2771echo "configure:2772: checking for textdomain " >&5
2772if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774else
2775 cat > conftest.$ac_ext <<EOF
2776#line 2777 "configure"
2777#include "confdefs.h"
2778/* System header to define __stub macros and hopefully few prototypes,
2779 which can conflict with char textdomain (); below. */
2780#include <assert.h>
2781/* Override any gcc2 internal prototype to avoid an error. */
2782/* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
2784char textdomain ();
2785
2786int main() {
2787
2788/* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791#if defined (__stub_textdomain ) || defined (__stub___textdomain )
2792choke me
2793#else
2794textdomain ();
2795#endif
2796
2797; return 0; }
2798EOF
2799if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2800 rm -rf conftest*
2801 eval "ac_cv_func_textdomain =yes"
2802else
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2805 rm -rf conftest*
2806 eval "ac_cv_func_textdomain =no"
2807fi
2808rm -f conftest*
2809fi
2810
2811if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 cat >> confdefs.h <<\EOF
2814#define ENABLE_NLS 1
2815EOF
2816
2817else
2818 echo "$ac_t""no" 1>&6
2819fi
2820
2821
2822# *** Custom checking (based on GNU tar configure.in) ***
2823# ---------------------------------------------------------------------------
2824echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
2825echo "configure:2826: checking for HP-UX needing gmalloc" >&5
2826if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
2827 echo "$ac_t""yes" 1>&6
2828 LIBOBJS="$LIBOBJS gmalloc.o"
2829 cat >> confdefs.h <<\EOF
2830#define HAVE_VALLOC 1
2831EOF
2832
2833else
2834 echo "$ac_t""no" 1>&6
2835 for ac_func in valloc
2836do
2837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2838echo "configure:2839: checking for $ac_func" >&5
2839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2841else
2842 cat > conftest.$ac_ext <<EOF
2843#line 2844 "configure"
2844#include "confdefs.h"
2845/* System header to define __stub macros and hopefully few prototypes,
2846 which can conflict with char $ac_func(); below. */
2847#include <assert.h>
2848/* Override any gcc2 internal prototype to avoid an error. */
2849/* We use char because int might match the return type of a gcc2
2850 builtin and then its argument prototype would still apply. */
2851char $ac_func();
2852
2853int main() {
2854
2855/* The GNU C library defines this for functions which it implements
2856 to always fail with ENOSYS. Some functions are actually named
2857 something starting with __ and the normal name is an alias. */
2858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2859choke me
2860#else
2861$ac_func();
2862#endif
2863
2864; return 0; }
2865EOF
2866if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2867 rm -rf conftest*
2868 eval "ac_cv_func_$ac_func=yes"
2869else
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -rf conftest*
2873 eval "ac_cv_func_$ac_func=no"
2874fi
2875rm -f conftest*
2876fi
2877
2878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2879 echo "$ac_t""yes" 1>&6
2880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2881 cat >> confdefs.h <<EOF
2882#define $ac_tr_func 1
2883EOF
2884
2885else
2886 echo "$ac_t""no" 1>&6
2887fi
2888done
2889
2890fi
2891
2892echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
2893echo "configure:2894: checking if malloc debugging is wanted" >&5
2894# Check whether --with-dmalloc or --without-dmalloc was given.
2895if test "${with_dmalloc+set}" = set; then
2896 withval="$with_dmalloc"
2897 if test "$withval" = yes; then
2898 echo "$ac_t""yes" 1>&6
2899 cat >> confdefs.h <<\EOF
2900#define WITH_DMALLOC 1
2901EOF
2902
2903 LIBS="$LIBS -ldmalloc"
2904 LDFLAGS="$LDFLAGS -g"
2905else
2906 echo "$ac_t""no" 1>&6
2907fi
2908else
2909 echo "$ac_t""no" 1>&6
2910fi
2911
2912
2913echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
2914echo "configure:2915: checking which of rx or regex is wanted" >&5
2915# Check whether --with-regex or --without-regex was given.
2916if test "${with_regex+set}" = set; then
2917 withval="$with_regex"
2918 if test "$withval" = yes; then
2919 ac_with_regex=1
2920 echo "$ac_t""regex" 1>&6
2921 cat >> confdefs.h <<\EOF
2922#define WITH_REGEX 1
2923EOF
2924
2925 LIBOBJS="$LIBOBJS regex.o"
2926fi
2927fi
2928
2929if test -z "$ac_with_regex"; then
2930 echo "$ac_t""rx" 1>&6
2931 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
2932echo "configure:2933: checking for re_rx_search" >&5
2933if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2935else
2936 cat > conftest.$ac_ext <<EOF
2937#line 2938 "configure"
2938#include "confdefs.h"
2939/* System header to define __stub macros and hopefully few prototypes,
2940 which can conflict with char re_rx_search(); below. */
2941#include <assert.h>
2942/* Override any gcc2 internal prototype to avoid an error. */
2943/* We use char because int might match the return type of a gcc2
2944 builtin and then its argument prototype would still apply. */
2945char re_rx_search();
2946
2947int main() {
2948
2949/* The GNU C library defines this for functions which it implements
2950 to always fail with ENOSYS. Some functions are actually named
2951 something starting with __ and the normal name is an alias. */
2952#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
2953choke me
2954#else
2955re_rx_search();
2956#endif
2957
2958; return 0; }
2959EOF
2960if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2961 rm -rf conftest*
2962 eval "ac_cv_func_re_rx_search=yes"
2963else
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 rm -rf conftest*
2967 eval "ac_cv_func_re_rx_search=no"
2968fi
2969rm -f conftest*
2970fi
2971
2972if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2974 :
2975else
2976 echo "$ac_t""no" 1>&6
2977echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6
2978echo "configure:2979: checking size of unsigned char *" >&5
2979if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981else
2982 if test "$cross_compiling" = yes; then
2983 ac_cv_sizeof_unsigned_char_p=unsigned char *
2984else
2985 cat > conftest.$ac_ext <<EOF
2986#line 2987 "configure"
2987#include "confdefs.h"
2988#include <stdio.h>
2989main()
2990{
2991 FILE *f=fopen("conftestval", "w");
2992 if (!f) exit(1);
2993 fprintf(f, "%d\n", sizeof(unsigned char *));
2994 exit(0);
2995}
2996EOF
2997if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2998then
2999 ac_cv_sizeof_unsigned_char_p=`cat conftestval`
3000else
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 rm -fr conftest*
3004 ac_cv_sizeof_unsigned_char_p=0
3005fi
3006rm -fr conftest*
3007fi
3008
3009fi
3010echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6
3011cat >> confdefs.h <<EOF
3012#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
3013EOF
3014
3015
3016 if test "$ac_cv_sizeof_unsigned_char_p" = 8
3017 then
3018 echo "configure: warning: I'm forcing you to use regex because I can't
3019 find a local rx library and the one included with this
3020 distribution doesn't work on 64-bit machines like yours" 1>&2
3021 LIBOBJS="$LIBOBJS regex.o"
3022 else
3023 LIBOBJS="$LIBOBJS rx.o"
3024 fi
3025
3026fi
3027
3028fi
3029
3030echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6
3031echo "configure:3032: checking whether GNU readline requested" >&5
3032 # Check whether --with-gnu_readline or --without-gnu_readline was given.
3033if test "${with_gnu_readline+set}" = set; then
3034 withval="$with_gnu_readline"
3035 if test "$withval" = yes; then
3036 echo "$ac_t""yes" 1>&6
3037 ac_with_gnu_readline=1
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041else
3042 echo "$ac_t""no" 1>&6
3043fi
3044
3045
3046 if test -n "$ac_with_gnu_readline"; then
3047 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
3048echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
3049echo "configure:3050: checking for readline/readline.h" >&5
3050if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3052else
3053 cat > conftest.$ac_ext <<EOF
3054#line 3055 "configure"
3055#include "confdefs.h"
3056#include <readline/readline.h>
3057EOF
3058ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3059{ (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3060ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3061if test -z "$ac_err"; then
3062 rm -rf conftest*
3063 eval "ac_cv_header_$ac_safe=yes"
3064else
3065 echo "$ac_err" >&5
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3068 rm -rf conftest*
3069 eval "ac_cv_header_$ac_safe=no"
3070fi
3071rm -f conftest*
3072fi
3073if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3074 echo "$ac_t""yes" 1>&6
3075 ac_mg_readline_header_found=1
3076else
3077 echo "$ac_t""no" 1>&6
3078echo "configure: warning: Can't find GNU readline headers; configuring without \
3079GNU readline support" 1>&2
3080fi
3081
3082 if test -n "$ac_mg_readline_header_found"; then
3083 # first check whether we can find the readline library itself
3084 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
3085echo "configure:3086: checking for main in -lreadline" >&5
3086ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
3087if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3089else
3090 ac_save_LIBS="$LIBS"
3091LIBS="-lreadline $LIBS"
3092cat > conftest.$ac_ext <<EOF
3093#line 3094 "configure"
3094#include "confdefs.h"
3095
3096int main() {
3097main()
3098; return 0; }
3099EOF
3100if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3101 rm -rf conftest*
3102 eval "ac_cv_lib_$ac_lib_var=yes"
3103else
3104 echo "configure: failed program was:" >&5
3105 cat conftest.$ac_ext >&5
3106 rm -rf conftest*
3107 eval "ac_cv_lib_$ac_lib_var=no"
3108fi
3109rm -f conftest*
3110LIBS="$ac_save_LIBS"
3111
3112fi
3113if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3114 echo "$ac_t""yes" 1>&6
3115 ac_mg_readline_lib_found=1
3116 cat >> confdefs.h <<\EOF
3117#define WITH_GNU_READLINE 1
3118EOF
3119
3120 LIBS="$LIBS -lreadline"
3121else
3122 echo "$ac_t""no" 1>&6
3123echo "configure: warning: Can't find GNU readline library; configuring without \
3124GNU readline support" 1>&2
3125fi
3126
3127 if test -n "$ac_mg_readline_lib_found"; then
3128 # on some systems, readline needs curses. It is difficult to
3129 # determine whether this is necessary on the current system,
3130 # since other undefined symbols can be turned up by an
3131 # AC_CHECK_LIB(readline, readline) test that are actually defined
3132 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
3133 # we just bung it on and hope for the best.
3134 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
3135echo "configure:3136: checking for main in -lcurses" >&5
3136ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
3137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3139else
3140 ac_save_LIBS="$LIBS"
3141LIBS="-lcurses $LIBS"
3142cat > conftest.$ac_ext <<EOF
3143#line 3144 "configure"
3144#include "confdefs.h"
3145
3146int main() {
3147main()
3148; return 0; }
3149EOF
3150if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3151 rm -rf conftest*
3152 eval "ac_cv_lib_$ac_lib_var=yes"
3153else
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3156 rm -rf conftest*
3157 eval "ac_cv_lib_$ac_lib_var=no"
3158fi
3159rm -f conftest*
3160LIBS="$ac_save_LIBS"
3161
3162fi
3163if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3164 echo "$ac_t""yes" 1>&6
3165 LIBS="$LIBS -lcurses"
3166else
3167 echo "$ac_t""no" 1>&6
3168fi
3169
3170 fi
3171 fi
3172 fi
3173
3174
3175# ---------------------------------------------------------------------------
3176if test "$ac_cv_func_alloca" = 'no'; then
3177 LIBOBJS="$LIBOBJS xmalloc.o error.o"
3178fi
3179
3180
3181# ---------------------------------------------------------------------------
3182# see if the user wants to override use of long long
3183# Check whether --enable-override-longlong or --disable-override-longlong was given.
3184if test "${enable_override_longlong+set}" = set; then
3185 enableval="$enable_override_longlong"
3186 cat >> confdefs.h <<\EOF
3187#define DISABLE_LONG_LONG 1
3188EOF
3189
3190fi
3191
3192
3193# ---------------------------------------------------------------------------
3194
3195trap '' 1 2 15
3196cat > confcache <<\EOF
3197# This file is a shell script that caches the results of configure
3198# tests run on this system so they can be shared between configure
3199# scripts and configure runs. It is not useful on other systems.
3200# If it contains results you don't want to keep, you may remove or edit it.
3201#
3202# By default, configure uses ./config.cache as the cache file,
3203# creating it if it does not exist already. You can give configure
3204# the --cache-file=FILE option to use a different cache file; that is
3205# what configure does when it calls configure scripts in
3206# subdirectories, so they share the cache.
3207# Giving --cache-file=/dev/null disables caching, for debugging configure.
3208# config.status only pays attention to the cache file if you give it the
3209# --recheck option to rerun configure.
3210#
3211EOF
3212# The following way of writing the cache mishandles newlines in values,
3213# but we know of no workaround that is simple, portable, and efficient.
3214# So, don't put newlines in cache variables' values.
3215# Ultrix sh set writes to stderr and can't be redirected directly,
3216# and sets the high bit in the cache file unless we assign to the vars.
3217(set) 2>&1 |
3218 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3219 *ac_space=\ *)
3220 # `set' does not quote correctly, so add quotes (double-quote substitution
3221 # turns \\\\ into \\, and sed turns \\ into \).
3222 sed -n \
3223 -e "s/'/'\\\\''/g" \
3224 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3225 ;;
3226 *)
3227 # `set' quotes correctly as required by POSIX, so do not add quotes.
3228 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3229 ;;
3230 esac >> confcache
3231if cmp -s $cache_file confcache; then
3232 :
3233else
3234 if test -w $cache_file; then
3235 echo "updating cache $cache_file"
3236 cat confcache > $cache_file
3237 else
3238 echo "not updating unwritable cache $cache_file"
3239 fi
3240fi
3241rm -f confcache
3242
3243trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3244
3245test "x$prefix" = xNONE && prefix=$ac_default_prefix
3246# Let make expand exec_prefix.
3247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3248
3249# Any assignment to VPATH causes Sun make to only execute
3250# the first set of double-colon rules, so remove it if not needed.
3251# If there is a colon in the path, we need to keep it.
3252if test "x$srcdir" = x.; then
3253 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3254fi
3255
3256trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3257
3258DEFS=-DHAVE_CONFIG_H
3259
3260# Without the "./", some shells look in PATH for config.status.
3261: ${CONFIG_STATUS=./config.status}
3262
3263echo creating $CONFIG_STATUS
3264rm -f $CONFIG_STATUS
3265cat > $CONFIG_STATUS <<EOF
3266#! /bin/sh
3267# Generated automatically by configure.
3268# Run this file to recreate the current configuration.
3269# This directory was configured as follows,
3270# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3271#
3272# $0 $ac_configure_args
3273#
3274# Compiler output produced by configure, useful for debugging
3275# configure, is in ./config.log if it exists.
3276
3277ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3278for ac_option
3279do
3280 case "\$ac_option" in
3281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3282 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3283 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3284 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3285 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3286 exit 0 ;;
3287 -help | --help | --hel | --he | --h)
3288 echo "\$ac_cs_usage"; exit 0 ;;
3289 *) echo "\$ac_cs_usage"; exit 1 ;;
3290 esac
3291done
3292
3293ac_given_srcdir=$srcdir
3294ac_given_INSTALL="$INSTALL"
3295
3296trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile
3297 jni/Makefile java/org/greenstone/mgpp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3298EOF
3299cat >> $CONFIG_STATUS <<EOF
3300
3301# Protect against being on the right side of a sed subst in config.status.
3302sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3303 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3304$ac_vpsub
3305$extrasub
3306s%@SHELL@%$SHELL%g
3307s%@CFLAGS@%$CFLAGS%g
3308s%@CPPFLAGS@%$CPPFLAGS%g
3309s%@CXXFLAGS@%$CXXFLAGS%g
3310s%@FFLAGS@%$FFLAGS%g
3311s%@DEFS@%$DEFS%g
3312s%@LDFLAGS@%$LDFLAGS%g
3313s%@LIBS@%$LIBS%g
3314s%@exec_prefix@%$exec_prefix%g
3315s%@prefix@%$prefix%g
3316s%@program_transform_name@%$program_transform_name%g
3317s%@bindir@%$bindir%g
3318s%@sbindir@%$sbindir%g
3319s%@libexecdir@%$libexecdir%g
3320s%@datadir@%$datadir%g
3321s%@sysconfdir@%$sysconfdir%g
3322s%@sharedstatedir@%$sharedstatedir%g
3323s%@localstatedir@%$localstatedir%g
3324s%@libdir@%$libdir%g
3325s%@includedir@%$includedir%g
3326s%@oldincludedir@%$oldincludedir%g
3327s%@infodir@%$infodir%g
3328s%@mandir@%$mandir%g
3329s%@PACKAGE@%$PACKAGE%g
3330s%@VERSION@%$VERSION%g
3331s%@CXX@%$CXX%g
3332s%@AWK@%$AWK%g
3333s%@YACC@%$YACC%g
3334s%@CC@%$CC%g
3335s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3336s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3337s%@INSTALL_DATA@%$INSTALL_DATA%g
3338s%@LN_S@%$LN_S%g
3339s%@SET_MAKE@%$SET_MAKE%g
3340s%@RANLIB@%$RANLIB%g
3341s%@CPP@%$CPP%g
3342s%@U@%$U%g
3343s%@ANSI2KNR@%$ANSI2KNR%g
3344s%@ALLOCA@%$ALLOCA%g
3345s%@LIBOBJS@%$LIBOBJS%g
3346
3347CEOF
3348EOF
3349
3350cat >> $CONFIG_STATUS <<\EOF
3351
3352# Split the substitutions into bite-sized pieces for seds with
3353# small command number limits, like on Digital OSF/1 and HP-UX.
3354ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3355ac_file=1 # Number of current file.
3356ac_beg=1 # First line for current file.
3357ac_end=$ac_max_sed_cmds # Line after last line for current file.
3358ac_more_lines=:
3359ac_sed_cmds=""
3360while $ac_more_lines; do
3361 if test $ac_beg -gt 1; then
3362 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3363 else
3364 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3365 fi
3366 if test ! -s conftest.s$ac_file; then
3367 ac_more_lines=false
3368 rm -f conftest.s$ac_file
3369 else
3370 if test -z "$ac_sed_cmds"; then
3371 ac_sed_cmds="sed -f conftest.s$ac_file"
3372 else
3373 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3374 fi
3375 ac_file=`expr $ac_file + 1`
3376 ac_beg=$ac_end
3377 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3378 fi
3379done
3380if test -z "$ac_sed_cmds"; then
3381 ac_sed_cmds=cat
3382fi
3383EOF
3384
3385cat >> $CONFIG_STATUS <<EOF
3386
3387CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile
3388 jni/Makefile java/org/greenstone/mgpp/Makefile"}
3389EOF
3390cat >> $CONFIG_STATUS <<\EOF
3391for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3393 case "$ac_file" in
3394 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3396 *) ac_file_in="${ac_file}.in" ;;
3397 esac
3398
3399 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3400
3401 # Remove last slash and all that follows it. Not all systems have dirname.
3402 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3404 # The file is in a subdirectory.
3405 test ! -d "$ac_dir" && mkdir "$ac_dir"
3406 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3407 # A "../" for each directory in $ac_dir_suffix.
3408 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3409 else
3410 ac_dir_suffix= ac_dots=
3411 fi
3412
3413 case "$ac_given_srcdir" in
3414 .) srcdir=.
3415 if test -z "$ac_dots"; then top_srcdir=.
3416 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3417 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3418 *) # Relative path.
3419 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3420 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3421 esac
3422
3423 case "$ac_given_INSTALL" in
3424 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3425 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3426 esac
3427
3428 echo creating "$ac_file"
3429 rm -f "$ac_file"
3430 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3431 case "$ac_file" in
3432 *Makefile*) ac_comsub="1i\\
3433# $configure_input" ;;
3434 *) ac_comsub= ;;
3435 esac
3436
3437 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3438 sed -e "$ac_comsub
3439s%@configure_input@%$configure_input%g
3440s%@srcdir@%$srcdir%g
3441s%@top_srcdir@%$top_srcdir%g
3442s%@INSTALL@%$INSTALL%g
3443" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3444fi; done
3445rm -f conftest.s*
3446
3447# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3448# NAME is the cpp macro being defined and VALUE is the value it is being given.
3449#
3450# ac_d sets the value in "#define NAME VALUE" lines.
3451ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3452ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3453ac_dC='\3'
3454ac_dD='%g'
3455# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3456ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3457ac_uB='\([ ]\)%\1#\2define\3'
3458ac_uC=' '
3459ac_uD='\4%g'
3460# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3461ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3462ac_eB='$%\1#\2define\3'
3463ac_eC=' '
3464ac_eD='%g'
3465
3466if test "${CONFIG_HEADERS+set}" != set; then
3467EOF
3468cat >> $CONFIG_STATUS <<EOF
3469 CONFIG_HEADERS="config.h"
3470EOF
3471cat >> $CONFIG_STATUS <<\EOF
3472fi
3473for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3475 case "$ac_file" in
3476 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3478 *) ac_file_in="${ac_file}.in" ;;
3479 esac
3480
3481 echo creating $ac_file
3482
3483 rm -f conftest.frag conftest.in conftest.out
3484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3485 cat $ac_file_inputs > conftest.in
3486
3487EOF
3488
3489# Transform confdefs.h into a sed script conftest.vals that substitutes
3490# the proper values into config.h.in to produce config.h. And first:
3491# Protect against being on the right side of a sed subst in config.status.
3492# Protect against being in an unquoted here document in config.status.
3493rm -f conftest.vals
3494cat > conftest.hdr <<\EOF
3495s/[\\&%]/\\&/g
3496s%[\\$`]%\\&%g
3497s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3498s%ac_d%ac_u%gp
3499s%ac_u%ac_e%gp
3500EOF
3501sed -n -f conftest.hdr confdefs.h > conftest.vals
3502rm -f conftest.hdr
3503
3504# This sed command replaces #undef with comments. This is necessary, for
3505# example, in the case of _POSIX_SOURCE, which is predefined and required
3506# on some systems where configure will not decide to define it.
3507cat >> conftest.vals <<\EOF
3508s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3509EOF
3510
3511# Break up conftest.vals because some shells have a limit on
3512# the size of here documents, and old seds have small limits too.
3513
3514rm -f conftest.tail
3515while :
3516do
3517 ac_lines=`grep -c . conftest.vals`
3518 # grep -c gives empty output for an empty file on some AIX systems.
3519 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3520 # Write a limited-size here document to conftest.frag.
3521 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3522 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3523 echo 'CEOF
3524 sed -f conftest.frag conftest.in > conftest.out
3525 rm -f conftest.in
3526 mv conftest.out conftest.in
3527' >> $CONFIG_STATUS
3528 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3529 rm -f conftest.vals
3530 mv conftest.tail conftest.vals
3531done
3532rm -f conftest.vals
3533
3534cat >> $CONFIG_STATUS <<\EOF
3535 rm -f conftest.frag conftest.h
3536 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3537 cat conftest.in >> conftest.h
3538 rm -f conftest.in
3539 if cmp -s $ac_file conftest.h 2>/dev/null; then
3540 echo "$ac_file is unchanged"
3541 rm -f conftest.h
3542 else
3543 # Remove last slash and all that follows it. Not all systems have dirname.
3544 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3545 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3546 # The file is in a subdirectory.
3547 test ! -d "$ac_dir" && mkdir "$ac_dir"
3548 fi
3549 rm -f $ac_file
3550 mv conftest.h $ac_file
3551 fi
3552fi; done
3553
3554EOF
3555cat >> $CONFIG_STATUS <<EOF
3556
3557EOF
3558cat >> $CONFIG_STATUS <<\EOF
3559test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3560exit 0
3561EOF
3562chmod +x $CONFIG_STATUS
3563rm -fr confdefs* $ac_clean_files
3564test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3565
Note: See TracBrowser for help on using the repository browser.