]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
check for Norcroft bug ; // comment remover portability
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13
TT
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.
c45f211e 6#
dfac8a13
TT
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 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17ac_help="$ac_help
18 --with-target-subdir=SUBDIR Configuring in a subdirectory"
19ac_help="$ac_help
20 --with-cross-host=HOST Configuring with a cross compiler"
21ac_help="$ac_help
22 --enable-multilib build many library versions (default)"
23ac_help="$ac_help
24 --enable-shared[=PKGS] build shared libraries [default=yes]"
25ac_help="$ac_help
26 --enable-static[=PKGS] build static libraries [default=yes]"
27ac_help="$ac_help
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29ac_help="$ac_help
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31ac_help="$ac_help
32 --disable-libtool-lock force libtool not to do file locking"
33
34# Initialize some variables set by options.
35# The variables have the same names as the options, with
36# dashes changed to underlines.
37build=NONE
38cache_file=./config.cache
39exec_prefix=NONE
40host=NONE
41no_create=
42nonopt=NONE
43no_recursion=
44prefix=NONE
45program_prefix=NONE
46program_suffix=NONE
47program_transform_name=s,x,x,
48silent=
49site=
50srcdir=
51target=NONE
52verbose=
53x_includes=NONE
54x_libraries=NONE
55bindir='${exec_prefix}/bin'
56sbindir='${exec_prefix}/sbin'
57libexecdir='${exec_prefix}/libexec'
58datadir='${prefix}/share'
59sysconfdir='${prefix}/etc'
60sharedstatedir='${prefix}/com'
61localstatedir='${prefix}/var'
62libdir='${exec_prefix}/lib'
63includedir='${prefix}/include'
64oldincludedir='/usr/include'
65infodir='${prefix}/info'
66mandir='${prefix}/man'
67
68# Initialize some other variables.
69subdirs=
70MFLAGS= MAKEFLAGS=
71SHELL=${CONFIG_SHELL-/bin/sh}
72# Maximum number of lines to put in a shell here document.
73ac_max_here_lines=12
74
75ac_prev=
76for ac_option
77do
78
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
82 ac_prev=
83 continue
84 fi
85
86 case "$ac_option" in
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 *) ac_optarg= ;;
89 esac
90
91 # Accept the important Cygnus configure options, so we can diagnose typos.
92
93 case "$ac_option" in
94
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 ac_prev=bindir ;;
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
99
100 -build | --build | --buil | --bui | --bu)
101 ac_prev=build ;;
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
104
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
111
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 ac_prev=datadir ;;
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 | --da=*)
116 datadir="$ac_optarg" ;;
117
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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 eval "enable_${ac_feature}=no" ;;
126
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 fi
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 case "$ac_option" in
135 *=*) ;;
136 *) ac_optarg=yes ;;
137 esac
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
148
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
151 with_gas=yes ;;
152
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
156 cat << EOF
157Usage: configure [options] [host]
158Options: [defaults in brackets after descriptions]
159Configuration:
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
167 [$ac_default_prefix]
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 [same as prefix]
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
174 [PREFIX/share]
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 [PREFIX/com]
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
189EOF
190 cat << EOF
191Host type:
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
202EOF
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
205 fi
206 exit 0 ;;
207
208 -host | --host | --hos | --ho)
209 ac_prev=host ;;
210 -host=* | --host=* | --hos=* | --ho=*)
211 host="$ac_optarg" ;;
212
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
219
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 ac_prev=infodir ;;
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
224
225 -libdir | --libdir | --libdi | --libd)
226 ac_prev=libdir ;;
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
229
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
236
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
245
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 ac_prev=mandir ;;
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
250
251 -nfp | --nfp | --nf)
252 # Obsolete; use --without-fp.
253 with_fp=no ;;
254
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 | --no-cr | --no-c)
257 no_create=yes ;;
258
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 no_recursion=yes ;;
262
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
271
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 ac_prev=prefix ;;
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
276
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
283
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
290
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
307
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
310 silent=yes ;;
311
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 ac_prev=sbindir ;;
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 | --sbi=* | --sb=*)
316 sbindir="$ac_optarg" ;;
317
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
321 | --sha | --sh)
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 | --sha=* | --sh=*)
327 sharedstatedir="$ac_optarg" ;;
328
329 -site | --site | --sit)
330 ac_prev=site ;;
331 -site=* | --site=* | --sit=*)
332 site="$ac_optarg" ;;
333
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 ac_prev=srcdir ;;
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
338
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
345
346 -target | --target | --targe | --targ | --tar | --ta | --t)
347 ac_prev=target ;;
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
350
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 verbose=yes ;;
353
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
356 exit 0 ;;
357
358 -with-* | --with-*)
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 fi
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 case "$ac_option" in
366 *=*) ;;
367 *) ac_optarg=yes ;;
368 esac
369 eval "with_${ac_package}='$ac_optarg'" ;;
370
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 fi
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
379
380 --x)
381 # Obsolete; use --with-x.
382 with_x=yes ;;
383
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
390
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
397
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 ;;
400
401 *)
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 fi
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 fi
408 nonopt="$ac_option"
409 ;;
410
411 esac
412done
413
414if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416fi
417
418trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
420# File descriptor usage:
421# 0 standard input
422# 1 file creation
423# 2 errors and warnings
424# 3 some systems may open it to /dev/tty
425# 4 used on the Kubota Titan
426# 6 checking for... messages and results
427# 5 compiler messages saved in config.log
428if test "$silent" = yes; then
429 exec 6>/dev/null
430else
431 exec 6>&1
432fi
433exec 5>./config.log
434
435echo "\
436This file contains any messages produced by compilers while
437running configure, to aid debugging if configure makes a mistake.
438" 1>&5
439
440# Strip out --no-create and --no-recursion so they do not pile up.
441# Also quote any args containing shell metacharacters.
442ac_configure_args=
443for ac_arg
c45f211e 444do
dfac8a13
TT
445 case "$ac_arg" in
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 esac
454done
455
456# NLS nuisances.
457# Only set these to C if already set. These must not be set unconditionally
458# because not all systems understand e.g. LANG=C (notably SCO).
459# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460# Non-C LC_CTYPE values break the ctype check.
461if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465
466# confdefs.h avoids OS command line length limits that DEFS can exceed.
467rm -rf conftest* confdefs.h
468# AIX cpp loses on an empty file, so make sure it contains at least a newline.
469echo > confdefs.h
470
471# A filename unique to this package, relative to the directory that
472# configure is in, which we can look for to find out if srcdir is correct.
473ac_unique_file=zlib.h
474
475# Find the source files, if location was not specified.
476if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
479 ac_prog=$0
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 srcdir=$ac_confdir
483 if test ! -r $srcdir/$ac_unique_file; then
484 srcdir=..
485 fi
486else
487 ac_srcdir_defaulted=no
488fi
489if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 else
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 fi
495fi
496srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498# Prefer explicitly selected file to automatically selected ones.
499if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 else
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 fi
505fi
506for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
509 . "$ac_site_file"
510 fi
511done
512
513if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
515 . $cache_file
516else
517 echo "creating cache $cache_file"
518 > $cache_file
519fi
520
521ac_ext=c
522# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523ac_cpp='$CPP $CPPFLAGS'
524ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526cross_compiling=$ac_cv_prog_cc_cross
527
528ac_exeext=
529ac_objext=o
530if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='
534' ac_t=' '
535 else
536 ac_n=-n ac_c= ac_t=
537 fi
538else
539 ac_n= ac_c='\c' ac_t=
540fi
541
542
543ac_aux_dir=
544for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
546 ac_aux_dir=$ac_dir
547 ac_install_sh="$ac_aux_dir/install-sh -c"
548 break
549 elif test -f $ac_dir/install.sh; then
550 ac_aux_dir=$ac_dir
551 ac_install_sh="$ac_aux_dir/install.sh -c"
552 break
553 fi
554done
555if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557fi
558ac_config_guess=$ac_aux_dir/config.guess
559ac_config_sub=$ac_aux_dir/config.sub
560ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561
562
563# Do some error checking and defaulting for the host and target type.
564# The inputs are:
565# configure --host=HOST --target=TARGET --build=BUILD NONOPT
566#
567# The rules are:
568# 1. You are not allowed to specify --host, --target, and nonopt at the
569# same time.
570# 2. Host defaults to nonopt.
571# 3. If nonopt is not specified, then host defaults to the current host,
572# as determined by config.guess.
573# 4. Target and build default to nonopt.
574# 5. If nonopt is not specified, then target and build default to host.
575
576# The aliases save the names the user supplied, while $host etc.
577# will get canonicalized.
578case $host---$target---$nonopt in
579NONE---*---* | *---NONE---* | *---*---NONE) ;;
580*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581esac
582
583
584# Make sure we can run config.sub.
585if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587fi
588
589echo $ac_n "checking host system type""... $ac_c" 1>&6
590echo "configure:591: checking host system type" >&5
591
592host_alias=$host
593case "$host_alias" in
594NONE)
595 case $nonopt in
596 NONE)
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599 fi ;;
600 *) host_alias=$nonopt ;;
601 esac ;;
602esac
603
604host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608echo "$ac_t""$host" 1>&6
609
610echo $ac_n "checking target system type""... $ac_c" 1>&6
611echo "configure:612: checking target system type" >&5
612
613target_alias=$target
614case "$target_alias" in
615NONE)
616 case $nonopt in
617 NONE) target_alias=$host_alias ;;
618 *) target_alias=$nonopt ;;
619 esac ;;
620esac
621
622target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626echo "$ac_t""$target" 1>&6
627
628echo $ac_n "checking build system type""... $ac_c" 1>&6
629echo "configure:630: checking build system type" >&5
630
631build_alias=$build
632case "$build_alias" in
633NONE)
634 case $nonopt in
635 NONE) build_alias=$host_alias ;;
636 *) build_alias=$nonopt ;;
637 esac ;;
638esac
639
640build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644echo "$ac_t""$build" 1>&6
645
646test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
648 NONENONEs,x,x, &&
649 program_prefix=${target_alias}-
650
651# Find a good install program. We prefer a C program (faster),
652# so one script is as good as another. But avoid the broken or
653# incompatible versions:
654# SysV /etc/install, /usr/sbin/install
655# SunOS /usr/etc/install
656# IRIX /sbin/install
657# AIX /bin/install
658# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
659# AFS /usr/afsws/bin/install, which mishandles nonexistent args
660# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
661# ./install, which can be erroneously created by make from ./install.sh.
662echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
663echo "configure:664: checking for a BSD compatible install" >&5
664if test -z "$INSTALL"; then
665if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667else
668 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
669 for ac_dir in $PATH; do
670 # Account for people who put trailing slashes in PATH elements.
671 case "$ac_dir/" in
672 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
673 *)
674 # OSF1 and SCO ODT 3.0 have their own names for install.
675 # Don't use installbsd from OSF since it installs stuff as root
676 # by default.
677 for ac_prog in ginstall scoinst install; do
678 if test -f $ac_dir/$ac_prog; then
679 if test $ac_prog = install &&
680 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
681 # AIX install. It has an incompatible calling convention.
682 :
683 else
684 ac_cv_path_install="$ac_dir/$ac_prog -c"
685 break 2
686 fi
687 fi
688 done
689 ;;
690 esac
691 done
692 IFS="$ac_save_IFS"
693
694fi
695 if test "${ac_cv_path_install+set}" = set; then
696 INSTALL="$ac_cv_path_install"
697 else
698 # As a last resort, use the slow shell script. We don't cache a
699 # path for INSTALL within a source directory, because that will
700 # break other packages using the cache if that directory is
701 # removed, or if the path is relative.
702 INSTALL="$ac_install_sh"
703 fi
704fi
705echo "$ac_t""$INSTALL" 1>&6
706
707# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
708# It thinks the first close brace ends the variable substitution.
709test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
710
711test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
712
713test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
714
715echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
716echo "configure:717: checking whether build environment is sane" >&5
717# Just in case
718sleep 1
719echo timestamp > conftestfile
720# Do `set' in a subshell so we don't clobber the current shell's
721# arguments. Must try -L first in case configure is actually a
722# symlink; some systems play weird games with the mod time of symlinks
723# (eg FreeBSD returns the mod time of the symlink's containing
724# directory).
725if (
726 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
727 if test "$*" = "X"; then
728 # -L didn't work.
729 set X `ls -t $srcdir/configure conftestfile`
730 fi
731 if test "$*" != "X $srcdir/configure conftestfile" \
732 && test "$*" != "X conftestfile $srcdir/configure"; then
733
734 # If neither matched, then we have a broken ls. This can happen
735 # if, for instance, CONFIG_SHELL is bash and it inherits a
736 # broken ls alias from the environment. This has actually
737 # happened. Such a system could not be considered "sane".
738 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
739alias in your environment" 1>&2; exit 1; }
740 fi
741
742 test "$2" = conftestfile
743 )
744then
745 # Ok.
746 :
747else
748 { echo "configure: error: newly created file is older than distributed files!
749Check your system clock" 1>&2; exit 1; }
750fi
751rm -f conftest*
752echo "$ac_t""yes" 1>&6
753if test "$program_transform_name" = s,x,x,; then
754 program_transform_name=
755else
756 # Double any \ or $. echo might interpret backslashes.
757 cat <<\EOF_SED > conftestsed
758s,\\,\\\\,g; s,\$,$$,g
759EOF_SED
760 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
761 rm -f conftestsed
762fi
763test "$program_prefix" != NONE &&
764 program_transform_name="s,^,${program_prefix},; $program_transform_name"
765# Use a double $ so make ignores it.
766test "$program_suffix" != NONE &&
767 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
768
769# sed with no file args requires a program.
770test "$program_transform_name" = "" && program_transform_name="s,x,x,"
771
772echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
773echo "configure:774: checking whether ${MAKE-make} sets \${MAKE}" >&5
774set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
775if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777else
778 cat > conftestmake <<\EOF
779all:
780 @echo 'ac_maketemp="${MAKE}"'
781EOF
782# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
783eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
784if test -n "$ac_maketemp"; then
785 eval ac_cv_prog_make_${ac_make}_set=yes
786else
787 eval ac_cv_prog_make_${ac_make}_set=no
788fi
789rm -f conftestmake
790fi
791if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
792 echo "$ac_t""yes" 1>&6
793 SET_MAKE=
794else
795 echo "$ac_t""no" 1>&6
796 SET_MAKE="MAKE=${MAKE-make}"
797fi
798
799
800PACKAGE=zlib
801
802VERSION=1.1.3
803
804if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
805 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
806fi
807cat >> confdefs.h <<EOF
808#define PACKAGE "$PACKAGE"
809EOF
810
811cat >> confdefs.h <<EOF
812#define VERSION "$VERSION"
813EOF
814
815
816
817missing_dir=`cd $ac_aux_dir && pwd`
818echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
819echo "configure:820: checking for working aclocal" >&5
820# Run test in a subshell; some versions of sh will print an error if
821# an executable is not found, even if stderr is redirected.
822# Redirect stdin to placate older versions of autoconf. Sigh.
823if (aclocal --version) < /dev/null > /dev/null 2>&1; then
824 ACLOCAL=aclocal
825 echo "$ac_t""found" 1>&6
826else
827 ACLOCAL="$missing_dir/missing aclocal"
828 echo "$ac_t""missing" 1>&6
829fi
830
831echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
832echo "configure:833: checking for working autoconf" >&5
833# Run test in a subshell; some versions of sh will print an error if
834# an executable is not found, even if stderr is redirected.
835# Redirect stdin to placate older versions of autoconf. Sigh.
836if (autoconf --version) < /dev/null > /dev/null 2>&1; then
837 AUTOCONF=autoconf
838 echo "$ac_t""found" 1>&6
839else
840 AUTOCONF="$missing_dir/missing autoconf"
841 echo "$ac_t""missing" 1>&6
842fi
843
844echo $ac_n "checking for working automake""... $ac_c" 1>&6
845echo "configure:846: checking for working automake" >&5
846# Run test in a subshell; some versions of sh will print an error if
847# an executable is not found, even if stderr is redirected.
848# Redirect stdin to placate older versions of autoconf. Sigh.
849if (automake --version) < /dev/null > /dev/null 2>&1; then
850 AUTOMAKE=automake
851 echo "$ac_t""found" 1>&6
852else
853 AUTOMAKE="$missing_dir/missing automake"
854 echo "$ac_t""missing" 1>&6
855fi
856
857echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
858echo "configure:859: checking for working autoheader" >&5
859# Run test in a subshell; some versions of sh will print an error if
860# an executable is not found, even if stderr is redirected.
861# Redirect stdin to placate older versions of autoconf. Sigh.
862if (autoheader --version) < /dev/null > /dev/null 2>&1; then
863 AUTOHEADER=autoheader
864 echo "$ac_t""found" 1>&6
865else
866 AUTOHEADER="$missing_dir/missing autoheader"
867 echo "$ac_t""missing" 1>&6
868fi
869
870echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
871echo "configure:872: checking for working makeinfo" >&5
872# Run test in a subshell; some versions of sh will print an error if
873# an executable is not found, even if stderr is redirected.
874# Redirect stdin to placate older versions of autoconf. Sigh.
875if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
876 MAKEINFO=makeinfo
877 echo "$ac_t""found" 1>&6
878else
879 MAKEINFO="$missing_dir/missing makeinfo"
880 echo "$ac_t""missing" 1>&6
881fi
882
883
884
885echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
886echo "configure:887: checking whether to enable maintainer-specific portions of Makefiles" >&5
887 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
888if test "${enable_maintainer_mode+set}" = set; then
889 enableval="$enable_maintainer_mode"
890 USE_MAINTAINER_MODE=$enableval
891else
892 USE_MAINTAINER_MODE=no
893fi
894
895 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
896
897
898if test $USE_MAINTAINER_MODE = yes; then
899 MAINTAINER_MODE_TRUE=
900 MAINTAINER_MODE_FALSE='#'
901else
902 MAINTAINER_MODE_TRUE='#'
903 MAINTAINER_MODE_FALSE=
904fi
905 MAINT=$MAINTAINER_MODE_TRUE
906
907
908echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
909echo "configure:910: checking for Cygwin environment" >&5
910if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
912else
913 cat > conftest.$ac_ext <<EOF
914#line 915 "configure"
915#include "confdefs.h"
916
917int main() {
918
919#ifndef __CYGWIN__
920#define __CYGWIN__ __CYGWIN32__
921#endif
922return __CYGWIN__;
923; return 0; }
924EOF
925if { (eval echo configure:926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
926 rm -rf conftest*
927 ac_cv_cygwin=yes
928else
929 echo "configure: failed program was:" >&5
930 cat conftest.$ac_ext >&5
931 rm -rf conftest*
932 ac_cv_cygwin=no
933fi
934rm -f conftest*
935rm -f conftest*
936fi
937
938echo "$ac_t""$ac_cv_cygwin" 1>&6
939CYGWIN=
940test "$ac_cv_cygwin" = yes && CYGWIN=yes
941echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
942echo "configure:943: checking for mingw32 environment" >&5
943if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
945else
946 cat > conftest.$ac_ext <<EOF
947#line 948 "configure"
948#include "confdefs.h"
949
950int main() {
951return __MINGW32__;
952; return 0; }
953EOF
954if { (eval echo configure:955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
955 rm -rf conftest*
956 ac_cv_mingw32=yes
957else
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 rm -rf conftest*
961 ac_cv_mingw32=no
962fi
963rm -f conftest*
964rm -f conftest*
965fi
966
967echo "$ac_t""$ac_cv_mingw32" 1>&6
968MINGW32=
969test "$ac_cv_mingw32" = yes && MINGW32=yes
970
971
972echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
973echo "configure:974: checking for executable suffix" >&5
974if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976else
977 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
978 ac_cv_exeext=.exe
979else
980 rm -f conftest*
981 echo 'int main () { return 0; }' > conftest.$ac_ext
982 ac_cv_exeext=
983 if { (eval echo configure:984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
984 for file in conftest.*; do
985 case $file in
986 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
987 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
988 esac
989 done
990 else
991 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
992 fi
993 rm -f conftest*
994 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
995fi
996fi
997
998EXEEXT=""
999test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1000echo "$ac_t""${ac_cv_exeext}" 1>&6
1001ac_exeext=$EXEEXT
1002
1003
1004ac_aux_dir=
1005for ac_dir in .. $srcdir/..; do
1006 if test -f $ac_dir/install-sh; then
1007 ac_aux_dir=$ac_dir
1008 ac_install_sh="$ac_aux_dir/install-sh -c"
1009 break
1010 elif test -f $ac_dir/install.sh; then
1011 ac_aux_dir=$ac_dir
1012 ac_install_sh="$ac_aux_dir/install.sh -c"
1013 break
1014 fi
1015done
1016if test -z "$ac_aux_dir"; then
1017 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
1018fi
1019ac_config_guess=$ac_aux_dir/config.guess
1020ac_config_sub=$ac_aux_dir/config.sub
1021ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1022
1023
1024# Check whether --with-target-subdir or --without-target-subdir was given.
1025if test "${with_target_subdir+set}" = set; then
1026 withval="$with_target_subdir"
1027 :
1028fi
1029
1030# Check whether --with-cross-host or --without-cross-host was given.
1031if test "${with_cross_host+set}" = set; then
1032 withval="$with_cross_host"
1033 :
1034fi
1035
1036
1037# Check whether --enable-multilib or --disable-multilib was given.
1038if test "${enable_multilib+set}" = set; then
1039 enableval="$enable_multilib"
1040 case "${enableval}" in
1041 yes) multilib=yes ;;
1042 no) multilib=no ;;
1043 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1044 esac
1045else
1046 multilib=yes
1047fi
1048
1049
1050if test "${srcdir}" = "."; then
1051 if test "${with_target_subdir}" != "."; then
1052 zlib_basedir="${srcdir}/${with_multisrctop}../"
1053 else
1054 zlib_basedir="${srcdir}/${with_multisrctop}"
1055 fi
1056else
1057 zlib_basedir="${srcdir}/"
1058fi
1059
1060
1061# Extract the first word of "gcc", so it can be a program name with args.
1062set dummy gcc; ac_word=$2
1063echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064echo "configure:1065: checking for $ac_word" >&5
1065if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067else
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC="$CC" # Let the user override the test.
1070else
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1072 ac_dummy="$PATH"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_CC="gcc"
1077 break
1078 fi
1079 done
1080 IFS="$ac_save_ifs"
1081fi
1082fi
1083CC="$ac_cv_prog_CC"
1084if test -n "$CC"; then
1085 echo "$ac_t""$CC" 1>&6
1086else
1087 echo "$ac_t""no" 1>&6
1088fi
1089
1090if test -z "$CC"; then
1091 # Extract the first word of "cc", so it can be a program name with args.
1092set dummy cc; ac_word=$2
1093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094echo "configure:1095: checking for $ac_word" >&5
1095if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097else
1098 if test -n "$CC"; then
1099 ac_cv_prog_CC="$CC" # Let the user override the test.
1100else
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 ac_prog_rejected=no
1103 ac_dummy="$PATH"
1104 for ac_dir in $ac_dummy; do
1105 test -z "$ac_dir" && ac_dir=.
1106 if test -f $ac_dir/$ac_word; then
1107 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1108 ac_prog_rejected=yes
1109 continue
1110 fi
1111 ac_cv_prog_CC="cc"
1112 break
1113 fi
1114 done
1115 IFS="$ac_save_ifs"
1116if test $ac_prog_rejected = yes; then
1117 # We found a bogon in the path, so make sure we never use it.
1118 set dummy $ac_cv_prog_CC
1119 shift
1120 if test $# -gt 0; then
1121 # We chose a different compiler from the bogus one.
1122 # However, it has the same basename, so the bogon will be chosen
1123 # first if we set CC to just the basename; use the full file name.
1124 shift
1125 set dummy "$ac_dir/$ac_word" "$@"
1126 shift
1127 ac_cv_prog_CC="$@"
1128 fi
1129fi
1130fi
1131fi
1132CC="$ac_cv_prog_CC"
1133if test -n "$CC"; then
1134 echo "$ac_t""$CC" 1>&6
1135else
1136 echo "$ac_t""no" 1>&6
1137fi
1138
1139 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1140fi
1141
1142echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1143echo "configure:1144: checking whether we are using GNU C" >&5
1144if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146else
1147 cat > conftest.c <<EOF
1148#ifdef __GNUC__
1149 yes;
1150#endif
1151EOF
1152if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1153 ac_cv_prog_gcc=yes
1154else
1155 ac_cv_prog_gcc=no
1156fi
1157fi
1158
1159echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1160
1161if test $ac_cv_prog_gcc = yes; then
1162 GCC=yes
1163 ac_test_CFLAGS="${CFLAGS+set}"
1164 ac_save_CFLAGS="$CFLAGS"
1165 CFLAGS=
1166 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1167echo "configure:1168: checking whether ${CC-cc} accepts -g" >&5
1168if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170else
1171 echo 'void f(){}' > conftest.c
1172if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1173 ac_cv_prog_cc_g=yes
1174else
1175 ac_cv_prog_cc_g=no
1176fi
1177rm -f conftest*
1178
1179fi
1180
1181echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1182 if test "$ac_test_CFLAGS" = set; then
1183 CFLAGS="$ac_save_CFLAGS"
1184 elif test $ac_cv_prog_cc_g = yes; then
1185 CFLAGS="-g -O2"
1186 else
1187 CFLAGS="-O2"
1188 fi
1189else
1190 GCC=
1191 test "${CFLAGS+set}" = set || CFLAGS="-g"
1192fi
1193
1194# Check whether --enable-shared or --disable-shared was given.
1195if test "${enable_shared+set}" = set; then
1196 enableval="$enable_shared"
1197 p=${PACKAGE-default}
1198case "$enableval" in
1199yes) enable_shared=yes ;;
1200no) enable_shared=no ;;
1201*)
1202 enable_shared=no
1203 # Look at the argument we got. We use all the common list separators.
1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1205 for pkg in $enableval; do
1206 if test "X$pkg" = "X$p"; then
1207 enable_shared=yes
1208 fi
1209 done
1210 IFS="$ac_save_ifs"
1211 ;;
1212esac
1213else
1214 enable_shared=yes
1215fi
1216
1217# Check whether --enable-static or --disable-static was given.
1218if test "${enable_static+set}" = set; then
1219 enableval="$enable_static"
1220 p=${PACKAGE-default}
1221case "$enableval" in
1222yes) enable_static=yes ;;
1223no) enable_static=no ;;
1224*)
1225 enable_static=no
1226 # Look at the argument we got. We use all the common list separators.
1227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1228 for pkg in $enableval; do
1229 if test "X$pkg" = "X$p"; then
1230 enable_static=yes
1231 fi
1232 done
1233 IFS="$ac_save_ifs"
1234 ;;
1235esac
1236else
1237 enable_static=yes
1238fi
1239
1240# Check whether --enable-fast-install or --disable-fast-install was given.
1241if test "${enable_fast_install+set}" = set; then
1242 enableval="$enable_fast_install"
1243 p=${PACKAGE-default}
1244case "$enableval" in
1245yes) enable_fast_install=yes ;;
1246no) enable_fast_install=no ;;
1247*)
1248 enable_fast_install=no
1249 # Look at the argument we got. We use all the common list separators.
1250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1251 for pkg in $enableval; do
1252 if test "X$pkg" = "X$p"; then
1253 enable_fast_install=yes
1254 fi
1255 done
1256 IFS="$ac_save_ifs"
1257 ;;
1258esac
1259else
1260 enable_fast_install=yes
1261fi
1262
1263# Extract the first word of "ranlib", so it can be a program name with args.
1264set dummy ranlib; ac_word=$2
1265echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266echo "configure:1267: checking for $ac_word" >&5
1267if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269else
1270 if test -n "$RANLIB"; then
1271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1272else
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 ac_dummy="$PATH"
1275 for ac_dir in $ac_dummy; do
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_prog_RANLIB="ranlib"
1279 break
1280 fi
1281 done
1282 IFS="$ac_save_ifs"
1283 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1284fi
1285fi
1286RANLIB="$ac_cv_prog_RANLIB"
1287if test -n "$RANLIB"; then
1288 echo "$ac_t""$RANLIB" 1>&6
1289else
1290 echo "$ac_t""no" 1>&6
1291fi
1292
1293# Extract the first word of "gcc", so it can be a program name with args.
1294set dummy gcc; ac_word=$2
1295echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296echo "configure:1297: checking for $ac_word" >&5
1297if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299else
1300 if test -n "$CC"; then
1301 ac_cv_prog_CC="$CC" # Let the user override the test.
1302else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1304 ac_dummy="$PATH"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_CC="gcc"
1309 break
1310 fi
1311 done
1312 IFS="$ac_save_ifs"
1313fi
1314fi
1315CC="$ac_cv_prog_CC"
1316if test -n "$CC"; then
1317 echo "$ac_t""$CC" 1>&6
1318else
1319 echo "$ac_t""no" 1>&6
1320fi
1321
1322if test -z "$CC"; then
1323 # Extract the first word of "cc", so it can be a program name with args.
1324set dummy cc; ac_word=$2
1325echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1326echo "configure:1327: checking for $ac_word" >&5
1327if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1329else
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1332else
1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1334 ac_prog_rejected=no
1335 ac_dummy="$PATH"
1336 for ac_dir in $ac_dummy; do
1337 test -z "$ac_dir" && ac_dir=.
1338 if test -f $ac_dir/$ac_word; then
1339 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1340 ac_prog_rejected=yes
1341 continue
1342 fi
1343 ac_cv_prog_CC="cc"
1344 break
1345 fi
1346 done
1347 IFS="$ac_save_ifs"
1348if test $ac_prog_rejected = yes; then
1349 # We found a bogon in the path, so make sure we never use it.
1350 set dummy $ac_cv_prog_CC
1351 shift
1352 if test $# -gt 0; then
1353 # We chose a different compiler from the bogus one.
1354 # However, it has the same basename, so the bogon will be chosen
1355 # first if we set CC to just the basename; use the full file name.
1356 shift
1357 set dummy "$ac_dir/$ac_word" "$@"
1358 shift
1359 ac_cv_prog_CC="$@"
1360 fi
1361fi
1362fi
1363fi
1364CC="$ac_cv_prog_CC"
1365if test -n "$CC"; then
1366 echo "$ac_t""$CC" 1>&6
1367else
1368 echo "$ac_t""no" 1>&6
1369fi
1370
1371 if test -z "$CC"; then
1372 case "`uname -s`" in
1373 *win32* | *WIN32*)
1374 # Extract the first word of "cl", so it can be a program name with args.
1375set dummy cl; ac_word=$2
1376echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377echo "configure:1378: checking for $ac_word" >&5
1378if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1380else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383else
1384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1385 ac_dummy="$PATH"
1386 for ac_dir in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir=.
1388 if test -f $ac_dir/$ac_word; then
1389 ac_cv_prog_CC="cl"
1390 break
1391 fi
1392 done
1393 IFS="$ac_save_ifs"
1394fi
1395fi
1396CC="$ac_cv_prog_CC"
1397if test -n "$CC"; then
1398 echo "$ac_t""$CC" 1>&6
1399else
1400 echo "$ac_t""no" 1>&6
1401fi
1402 ;;
1403 esac
1404 fi
1405 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1406fi
1407
1408echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1409echo "configure:1410: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1410
1411ac_ext=c
1412# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1413ac_cpp='$CPP $CPPFLAGS'
1414ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1415ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1416cross_compiling=$ac_cv_prog_cc_cross
1417
1418cat > conftest.$ac_ext << EOF
1419
1420#line 1421 "configure"
1421#include "confdefs.h"
1422
1423main(){return(0);}
1424EOF
1425if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1426 ac_cv_prog_cc_works=yes
1427 # If we can't run a trivial program, we are probably using a cross compiler.
1428 if (./conftest; exit) 2>/dev/null; then
1429 ac_cv_prog_cc_cross=no
1430 else
1431 ac_cv_prog_cc_cross=yes
1432 fi
1433else
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1436 ac_cv_prog_cc_works=no
1437fi
1438rm -fr conftest*
1439ac_ext=c
1440# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1441ac_cpp='$CPP $CPPFLAGS'
1442ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1443ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1444cross_compiling=$ac_cv_prog_cc_cross
1445
1446echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1447if test $ac_cv_prog_cc_works = no; then
1448 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1449fi
1450echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1451echo "configure:1452: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1452echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1453cross_compiling=$ac_cv_prog_cc_cross
1454
1455echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1456echo "configure:1457: checking whether we are using GNU C" >&5
1457if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459else
1460 cat > conftest.c <<EOF
1461#ifdef __GNUC__
1462 yes;
1463#endif
1464EOF
1465if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1466 ac_cv_prog_gcc=yes
1467else
1468 ac_cv_prog_gcc=no
1469fi
1470fi
1471
1472echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1473
1474if test $ac_cv_prog_gcc = yes; then
1475 GCC=yes
1476else
1477 GCC=
1478fi
1479
1480ac_test_CFLAGS="${CFLAGS+set}"
1481ac_save_CFLAGS="$CFLAGS"
1482CFLAGS=
1483echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1484echo "configure:1485: checking whether ${CC-cc} accepts -g" >&5
1485if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1487else
1488 echo 'void f(){}' > conftest.c
1489if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1490 ac_cv_prog_cc_g=yes
1491else
1492 ac_cv_prog_cc_g=no
1493fi
1494rm -f conftest*
1495
1496fi
1497
1498echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1499if test "$ac_test_CFLAGS" = set; then
1500 CFLAGS="$ac_save_CFLAGS"
1501elif test $ac_cv_prog_cc_g = yes; then
1502 if test "$GCC" = yes; then
1503 CFLAGS="-g -O2"
1504 else
1505 CFLAGS="-g"
1506 fi
1507else
1508 if test "$GCC" = yes; then
1509 CFLAGS="-O2"
1510 else
1511 CFLAGS=
1512 fi
1513fi
1514
1515# Check whether --with-gnu-ld or --without-gnu-ld was given.
1516if test "${with_gnu_ld+set}" = set; then
1517 withval="$with_gnu_ld"
1518 test "$withval" = no || with_gnu_ld=yes
1519else
1520 with_gnu_ld=no
1521fi
1522
1523ac_prog=ld
1524if test "$ac_cv_prog_gcc" = yes; then
1525 # Check if gcc -print-prog-name=ld gives a path.
1526 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1527echo "configure:1528: checking for ld used by GCC" >&5
1528 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1529 case "$ac_prog" in
1530 # Accept absolute paths.
1531 /* | [A-Za-z]:[\\/]*)
1532 re_direlt='/[^/][^/]*/\.\./'
1533 # Canonicalize the path of ld
1534 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1535 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1536 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1537 done
1538 test -z "$LD" && LD="$ac_prog"
1539 ;;
1540 "")
1541 # If it fails, then pretend we aren't using GCC.
1542 ac_prog=ld
1543 ;;
1544 *)
1545 # If it is relative, then search for the first ld in PATH.
1546 with_gnu_ld=unknown
1547 ;;
1548 esac
1549elif test "$with_gnu_ld" = yes; then
1550 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1551echo "configure:1552: checking for GNU ld" >&5
1552else
1553 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1554echo "configure:1555: checking for non-GNU ld" >&5
1555fi
1556if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558else
1559 if test -z "$LD"; then
1560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1561 for ac_dir in $PATH; do
1562 test -z "$ac_dir" && ac_dir=.
1563 if test -f "$ac_dir/$ac_prog"; then
1564 ac_cv_path_LD="$ac_dir/$ac_prog"
1565 # Check to see if the program is GNU ld. I'd rather use --version,
1566 # but apparently some GNU ld's only accept -v.
1567 # Break only if it was the GNU/non-GNU ld that we prefer.
1568 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1569 test "$with_gnu_ld" != no && break
1570 else
1571 test "$with_gnu_ld" != yes && break
1572 fi
1573 fi
1574 done
1575 IFS="$ac_save_ifs"
1576else
1577 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1578fi
1579fi
1580
1581LD="$ac_cv_path_LD"
1582if test -n "$LD"; then
1583 echo "$ac_t""$LD" 1>&6
1584else
1585 echo "$ac_t""no" 1>&6
1586fi
1587test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1588
1589echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1590echo "configure:1591: checking if the linker ($LD) is GNU ld" >&5
1591if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593else
1594 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1595if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1596 ac_cv_prog_gnu_ld=yes
1597else
1598 ac_cv_prog_gnu_ld=no
1599fi
1600fi
1601
1602echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1603
1604
1605echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1606echo "configure:1607: checking for BSD-compatible nm" >&5
1607if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1609else
1610 if test -n "$NM"; then
1611 # Let the user override the test.
1612 ac_cv_path_NM="$NM"
1613else
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1615 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1616 test -z "$ac_dir" && ac_dir=.
1617 if test -f $ac_dir/nm; then
1618 # Check to see if the nm accepts a BSD-compat flag.
1619 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1620 # nm: unknown option "B" ignored
1621 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1622 ac_cv_path_NM="$ac_dir/nm -B"
1623 break
1624 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1625 ac_cv_path_NM="$ac_dir/nm -p"
1626 break
1627 else
1628 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1629 continue # so that we can try to find one that supports BSD flags
1630 fi
1631 fi
1632 done
1633 IFS="$ac_save_ifs"
1634 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1635fi
1636fi
1637
1638NM="$ac_cv_path_NM"
1639echo "$ac_t""$NM" 1>&6
1640
1641
1642# Check for command to grab the raw symbol name followed by C symbol from nm.
1643echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1644echo "configure:1645: checking command to parse $NM output" >&5
1645if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1647else
1648 # These are sane defaults that work on at least a few old systems.
1649# {They come from Ultrix. What could be older than Ultrix?!! ;)}
1650
1651# Character class describing NM global symbol codes.
1652ac_symcode='[BCDEGRST]'
1653
1654# Regexp to match symbols that can be accessed directly from C.
1655ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1656
1657# Transform the above into a raw symbol and a C symbol.
1658ac_symxfrm='\1 \2\3 \3'
1659
1660# Transform an extracted symbol line into a proper C declaration
1661ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1662
1663# Define system-specific variables.
1664case "$host_os" in
1665aix*)
1666 ac_symcode='[BCDT]'
1667 ;;
1668cygwin* | mingw*)
1669 ac_symcode='[ABCDGISTW]'
1670 ;;
1671hpux*)
1672 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1673 ;;
1674irix*)
1675 ac_symcode='[BCDEGRST]'
1676 ;;
1677solaris*)
1678 ac_symcode='[BDT]'
1679 ;;
1680esac
1681
1682# If we're using GNU nm, then use its standard symbol codes.
1683if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1684 ac_symcode='[ABCDGISTW]'
1685fi
1686
1687# Try without a prefix undercore, then with it.
1688for ac_symprfx in "" "_"; do
1689
1690 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1691
1692 # Check to see that the pipe works correctly.
1693 ac_pipe_works=no
1694 rm -f conftest.$ac_ext
1695 cat > conftest.$ac_ext <<EOF
1696#ifdef __cplusplus
1697extern "C" {
1698#endif
1699char nm_test_var;
1700void nm_test_func(){}
1701#ifdef __cplusplus
1702}
1703#endif
1704int main(){nm_test_var='a';nm_test_func;return 0;}
1705EOF
1706
1707 if { (eval echo configure:1708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1708 # Now try to grab the symbols.
1709 ac_nlist=conftest.nm
1710
1711 if { (eval echo configure:1712: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1712
1713 # Try sorting and uniquifying the output.
1714 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1715 mv -f "$ac_nlist"T "$ac_nlist"
1716 else
1717 rm -f "$ac_nlist"T
1718 fi
1719
1720 # Make sure that we snagged all the symbols we need.
1721 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1722 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1723 cat <<EOF > conftest.c
1724#ifdef __cplusplus
1725extern "C" {
1726#endif
1727
1728EOF
1729 # Now generate the symbol file.
1730 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1731
1732 cat <<EOF >> conftest.c
1733#if defined (__STDC__) && __STDC__
1734# define lt_ptr_t void *
1735#else
1736# define lt_ptr_t char *
1737# define const
1738#endif
1739
1740/* The mapping between symbol names and symbols. */
1741const struct {
1742 const char *name;
1743 lt_ptr_t address;
1744}
1745lt_preloaded_symbols[] =
1746{
1747EOF
1748 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1749 cat <<\EOF >> conftest.c
1750 {0, (lt_ptr_t) 0}
1751};
1752
1753#ifdef __cplusplus
1754}
1755#endif
1756EOF
1757 # Now try linking the two files.
1758 mv conftest.$ac_objext conftestm.$ac_objext
1759 ac_save_LIBS="$LIBS"
1760 ac_save_CFLAGS="$CFLAGS"
1761 LIBS="conftestm.$ac_objext"
1762 CFLAGS="$CFLAGS$no_builtin_flag"
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1764 ac_pipe_works=yes
1765 else
1766 echo "configure: failed program was:" >&5
1767 cat conftest.c >&5
1768 fi
1769 LIBS="$ac_save_LIBS"
1770 CFLAGS="$ac_save_CFLAGS"
1771 else
1772 echo "cannot find nm_test_func in $ac_nlist" >&5
1773 fi
1774 else
1775 echo "cannot find nm_test_var in $ac_nlist" >&5
1776 fi
1777 else
1778 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1779 fi
1780 else
1781 echo "$progname: failed program was:" >&5
1782 cat conftest.c >&5
1783 fi
1784 rm -rf conftest*
1785
1786 # Do not use the global_symbol_pipe unless it works.
1787 if test "$ac_pipe_works" = yes; then
1788 if test x"$ac_symprfx" = x"_"; then
1789 ac_cv_sys_symbol_underscore=yes
1790 else
1791 ac_cv_sys_symbol_underscore=no
1792 fi
1793 break
1794 else
1795 ac_cv_sys_global_symbol_pipe=
1796 fi
1797done
1798
1799fi
1800
1801
1802ac_result=yes
1803if test -z "$ac_cv_sys_global_symbol_pipe"; then
1804 ac_result=no
1805fi
1806echo "$ac_t""$ac_result" 1>&6
1807
1808echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1809echo "configure:1810: checking for _ prefix in compiled symbols" >&5
1810if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812else
1813 ac_cv_sys_symbol_underscore=no
1814cat > conftest.$ac_ext <<EOF
1815void nm_test_func(){}
1816int main(){nm_test_func;return 0;}
1817EOF
1818if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 # Now try to grab the symbols.
1820 ac_nlist=conftest.nm
1821 if { (eval echo configure:1822: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1822 # See whether the symbols have a leading underscore.
1823 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1824 ac_cv_sys_symbol_underscore=yes
1825 else
1826 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1827 :
1828 else
1829 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1830 fi
1831 fi
1832 else
1833 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1834 fi
1835else
1836 echo "configure: failed program was:" >&5
1837 cat conftest.c >&5
1838fi
1839rm -rf conftest*
1840
1841fi
1842
1843echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1844USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1845
1846echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1847echo "configure:1848: checking whether ln -s works" >&5
1848if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1850else
1851 rm -f conftestdata
1852if ln -s X conftestdata 2>/dev/null
1853then
1854 rm -f conftestdata
1855 ac_cv_prog_LN_S="ln -s"
1856else
1857 ac_cv_prog_LN_S=ln
1858fi
1859fi
1860LN_S="$ac_cv_prog_LN_S"
1861if test "$ac_cv_prog_LN_S" = "ln -s"; then
1862 echo "$ac_t""yes" 1>&6
1863else
1864 echo "$ac_t""no" 1>&6
1865fi
1866
1867if test $host != $build; then
1868 ac_tool_prefix=${host_alias}-
1869else
1870 ac_tool_prefix=
1871fi
1872
1873
1874# Check for any special flags to pass to ltconfig.
1875libtool_flags="--cache-file=$cache_file"
1876test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1877test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1878test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1879test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
1880test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1881test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1882test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1883
1884# Some flags need to be propagated to the compiler or linker for good
1885# libtool support.
1886case "$host" in
1887*-*-irix6*)
1888 # Find out which ABI we are using.
1889 echo '#line 1890 "configure"' > conftest.$ac_ext
1890 if { (eval echo configure:1891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1891 case "`/usr/bin/file conftest.o`" in
1892 *32-bit*)
1893 LD="${LD-ld} -32"
1894 ;;
1895 *N32*)
1896 LD="${LD-ld} -n32"
1897 ;;
1898 *64-bit*)
1899 LD="${LD-ld} -64"
1900 ;;
c45f211e 1901 esac
dfac8a13
TT
1902 fi
1903 rm -rf conftest*
1904 ;;
1905
1906*-*-sco3.2v5*)
1907 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1908 SAVE_CFLAGS="$CFLAGS"
1909 CFLAGS="$CFLAGS -belf"
1910 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1911echo "configure:1912: checking whether the C compiler needs -belf" >&5
1912if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914else
1915 cat > conftest.$ac_ext <<EOF
1916#line 1917 "configure"
1917#include "confdefs.h"
c45f211e 1918
dfac8a13
TT
1919int main() {
1920
1921; return 0; }
c45f211e 1922EOF
dfac8a13
TT
1923if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1924 rm -rf conftest*
1925 lt_cv_cc_needs_belf=yes
1926else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 lt_cv_cc_needs_belf=no
1931fi
1932rm -f conftest*
1933fi
1934
1935echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1936 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1937 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1938 CFLAGS="$SAVE_CFLAGS"
1939 fi
1940 ;;
1941
1942*-*-cygwin*)
1943 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1944set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1946echo "configure:1947: checking for $ac_word" >&5
1947if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949else
1950 if test -n "$DLLTOOL"; then
1951 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1952else
1953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1954 ac_dummy="$PATH"
1955 for ac_dir in $ac_dummy; do
1956 test -z "$ac_dir" && ac_dir=.
1957 if test -f $ac_dir/$ac_word; then
1958 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1959 break
1960 fi
1961 done
1962 IFS="$ac_save_ifs"
1963fi
1964fi
1965DLLTOOL="$ac_cv_prog_DLLTOOL"
1966if test -n "$DLLTOOL"; then
1967 echo "$ac_t""$DLLTOOL" 1>&6
1968else
1969 echo "$ac_t""no" 1>&6
1970fi
1971
1972
1973if test -z "$ac_cv_prog_DLLTOOL"; then
1974if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "dlltool", so it can be a program name with args.
1976set dummy dlltool; ac_word=$2
1977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1978echo "configure:1979: checking for $ac_word" >&5
1979if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1981else
1982 if test -n "$DLLTOOL"; then
1983 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1984else
1985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1986 ac_dummy="$PATH"
1987 for ac_dir in $ac_dummy; do
1988 test -z "$ac_dir" && ac_dir=.
1989 if test -f $ac_dir/$ac_word; then
1990 ac_cv_prog_DLLTOOL="dlltool"
1991 break
1992 fi
1993 done
1994 IFS="$ac_save_ifs"
1995 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1996fi
1997fi
1998DLLTOOL="$ac_cv_prog_DLLTOOL"
1999if test -n "$DLLTOOL"; then
2000 echo "$ac_t""$DLLTOOL" 1>&6
2001else
2002 echo "$ac_t""no" 1>&6
2003fi
2004
2005else
2006 DLLTOOL="false"
2007fi
2008fi
2009
2010# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2011set dummy ${ac_tool_prefix}as; ac_word=$2
2012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2013echo "configure:2014: checking for $ac_word" >&5
2014if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2016else
2017 if test -n "$AS"; then
2018 ac_cv_prog_AS="$AS" # Let the user override the test.
2019else
2020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2021 ac_dummy="$PATH"
2022 for ac_dir in $ac_dummy; do
2023 test -z "$ac_dir" && ac_dir=.
2024 if test -f $ac_dir/$ac_word; then
2025 ac_cv_prog_AS="${ac_tool_prefix}as"
2026 break
2027 fi
2028 done
2029 IFS="$ac_save_ifs"
2030fi
2031fi
2032AS="$ac_cv_prog_AS"
2033if test -n "$AS"; then
2034 echo "$ac_t""$AS" 1>&6
2035else
2036 echo "$ac_t""no" 1>&6
2037fi
2038
2039
2040if test -z "$ac_cv_prog_AS"; then
2041if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "as", so it can be a program name with args.
2043set dummy as; ac_word=$2
2044echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045echo "configure:2046: checking for $ac_word" >&5
2046if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048else
2049 if test -n "$AS"; then
2050 ac_cv_prog_AS="$AS" # Let the user override the test.
2051else
2052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2053 ac_dummy="$PATH"
2054 for ac_dir in $ac_dummy; do
2055 test -z "$ac_dir" && ac_dir=.
2056 if test -f $ac_dir/$ac_word; then
2057 ac_cv_prog_AS="as"
2058 break
2059 fi
2060 done
2061 IFS="$ac_save_ifs"
2062 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2063fi
2064fi
2065AS="$ac_cv_prog_AS"
2066if test -n "$AS"; then
2067 echo "$ac_t""$AS" 1>&6
2068else
2069 echo "$ac_t""no" 1>&6
2070fi
2071
2072else
2073 AS="false"
2074fi
2075fi
2076
2077
2078 ;;
c45f211e 2079
c45f211e
TT
2080esac
2081
dfac8a13
TT
2082# enable the --disable-libtool-lock switch
2083
2084# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2085if test "${enable_libtool_lock+set}" = set; then
2086 enableval="$enable_libtool_lock"
2087 need_locks=$enableval
c45f211e 2088else
dfac8a13
TT
2089 need_locks=yes
2090fi
2091
2092
2093if test x"$need_locks" = xno; then
2094 libtool_flags="$libtool_flags --disable-lock"
c45f211e
TT
2095fi
2096
dfac8a13
TT
2097
2098# Save cache, so that ltconfig can load it
2099cat > confcache <<\EOF
2100# This file is a shell script that caches the results of configure
2101# tests run on this system so they can be shared between configure
2102# scripts and configure runs. It is not useful on other systems.
2103# If it contains results you don't want to keep, you may remove or edit it.
2104#
2105# By default, configure uses ./config.cache as the cache file,
2106# creating it if it does not exist already. You can give configure
2107# the --cache-file=FILE option to use a different cache file; that is
2108# what configure does when it calls configure scripts in
2109# subdirectories, so they share the cache.
2110# Giving --cache-file=/dev/null disables caching, for debugging configure.
2111# config.status only pays attention to the cache file if you give it the
2112# --recheck option to rerun configure.
2113#
2114EOF
2115# The following way of writing the cache mishandles newlines in values,
2116# but we know of no workaround that is simple, portable, and efficient.
2117# So, don't put newlines in cache variables' values.
2118# Ultrix sh set writes to stderr and can't be redirected directly,
2119# and sets the high bit in the cache file unless we assign to the vars.
2120(set) 2>&1 |
2121 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2122 *ac_space=\ *)
2123 # `set' does not quote correctly, so add quotes (double-quote substitution
2124 # turns \\\\ into \\, and sed turns \\ into \).
2125 sed -n \
2126 -e "s/'/'\\\\''/g" \
2127 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2128 ;;
2129 *)
2130 # `set' quotes correctly as required by POSIX, so do not add quotes.
2131 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2132 ;;
2133 esac >> confcache
2134if cmp -s $cache_file confcache; then
2135 :
2136else
2137 if test -w $cache_file; then
2138 echo "updating cache $cache_file"
2139 cat confcache > $cache_file
c45f211e 2140 else
dfac8a13 2141 echo "not updating unwritable cache $cache_file"
c45f211e
TT
2142 fi
2143fi
dfac8a13
TT
2144rm -f confcache
2145
2146
2147# Actually configure libtool. ac_aux_dir is where install-sh is found.
2148CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2149LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2150DLLTOOL="$DLLTOOL" AS="$AS" \
2151${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2152$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2153|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2154
2155# Reload cache, that may have been modified by ltconfig
2156if test -r "$cache_file"; then
2157 echo "loading cache $cache_file"
2158 . $cache_file
2159else
2160 echo "creating cache $cache_file"
2161 > $cache_file
2162fi
2163
2164
2165# This can be used to rebuild libtool when needed
2166LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2167
2168# Always use our own libtool.
2169LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2170
2171# Redirect the config.log output again, so that the ltconfig log is not
2172# clobbered by the next message.
2173exec 5>>./config.log
2174
2175
2176if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2177 COMPPATH=.
2178else
2179 COMPPATH=..
2180fi
2181
2182
2183
2184if test -n "$with_cross_host"; then
2185 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2186 # may not work correctly, because the compiler may not be able to
2187 # link executables.
2188
2189 # We assume newlib. This lets us hard-code the functions we know
2190 # we'll have.
2191 cat >> confdefs.h <<\EOF
2192#define HAVE_MEMCPY 1
2193EOF
2194
2195 cat >> confdefs.h <<\EOF
2196#define HAVE_STRERROR 1
2197EOF
2198
2199else
2200 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2201echo "configure:2202: checking how to run the C preprocessor" >&5
2202# On Suns, sometimes $CPP names a directory.
2203if test -n "$CPP" && test -d "$CPP"; then
2204 CPP=
2205fi
2206if test -z "$CPP"; then
2207if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209else
2210 # This must be in double quotes, not single quotes, because CPP may get
2211 # substituted into the Makefile and "${CC-cc}" will confuse make.
2212 CPP="${CC-cc} -E"
2213 # On the NeXT, cc -E runs the code through the compiler's parser,
2214 # not just through cpp.
2215 cat > conftest.$ac_ext <<EOF
2216#line 2217 "configure"
2217#include "confdefs.h"
2218#include <assert.h>
2219Syntax Error
2220EOF
2221ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222{ (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224if test -z "$ac_err"; then
2225 :
2226else
2227 echo "$ac_err" >&5
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2230 rm -rf conftest*
2231 CPP="${CC-cc} -E -traditional-cpp"
2232 cat > conftest.$ac_ext <<EOF
2233#line 2234 "configure"
2234#include "confdefs.h"
2235#include <assert.h>
2236Syntax Error
2237EOF
2238ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239{ (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241if test -z "$ac_err"; then
2242 :
2243else
2244 echo "$ac_err" >&5
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 rm -rf conftest*
2248 CPP="${CC-cc} -nologo -E"
2249 cat > conftest.$ac_ext <<EOF
2250#line 2251 "configure"
2251#include "confdefs.h"
2252#include <assert.h>
2253Syntax Error
2254EOF
2255ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256{ (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2258if test -z "$ac_err"; then
2259 :
2260else
2261 echo "$ac_err" >&5
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2264 rm -rf conftest*
2265 CPP=/lib/cpp
2266fi
2267rm -f conftest*
2268fi
2269rm -f conftest*
2270fi
2271rm -f conftest*
2272 ac_cv_prog_CPP="$CPP"
2273fi
2274 CPP="$ac_cv_prog_CPP"
2275else
2276 ac_cv_prog_CPP="$CPP"
2277fi
2278echo "$ac_t""$CPP" 1>&6
2279
2280for ac_hdr in unistd.h
2281do
2282ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2283echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2284echo "configure:2285: checking for $ac_hdr" >&5
2285if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2287else
2288 cat > conftest.$ac_ext <<EOF
2289#line 2290 "configure"
2290#include "confdefs.h"
2291#include <$ac_hdr>
2292EOF
2293ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2294{ (eval echo configure:2295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2295ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2296if test -z "$ac_err"; then
2297 rm -rf conftest*
2298 eval "ac_cv_header_$ac_safe=yes"
2299else
2300 echo "$ac_err" >&5
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 rm -rf conftest*
2304 eval "ac_cv_header_$ac_safe=no"
2305fi
2306rm -f conftest*
2307fi
2308if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2311 cat >> confdefs.h <<EOF
2312#define $ac_tr_hdr 1
2313EOF
2314
2315else
2316 echo "$ac_t""no" 1>&6
c45f211e 2317fi
dfac8a13
TT
2318done
2319
2320for ac_func in getpagesize
2321do
2322echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2323echo "configure:2324: checking for $ac_func" >&5
2324if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326else
2327 cat > conftest.$ac_ext <<EOF
2328#line 2329 "configure"
2329#include "confdefs.h"
2330/* System header to define __stub macros and hopefully few prototypes,
2331 which can conflict with char $ac_func(); below. */
2332#include <assert.h>
2333/* Override any gcc2 internal prototype to avoid an error. */
2334/* We use char because int might match the return type of a gcc2
2335 builtin and then its argument prototype would still apply. */
2336char $ac_func();
2337
2338int main() {
2339
2340/* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2344choke me
2345#else
2346$ac_func();
2347#endif
c45f211e 2348
dfac8a13 2349; return 0; }
c45f211e 2350EOF
dfac8a13
TT
2351if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352 rm -rf conftest*
2353 eval "ac_cv_func_$ac_func=yes"
c45f211e 2354else
dfac8a13
TT
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 rm -rf conftest*
2358 eval "ac_cv_func_$ac_func=no"
2359fi
2360rm -f conftest*
c45f211e
TT
2361fi
2362
dfac8a13
TT
2363if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2366 cat >> confdefs.h <<EOF
2367#define $ac_tr_func 1
c45f211e 2368EOF
dfac8a13 2369
c45f211e 2370else
dfac8a13 2371 echo "$ac_t""no" 1>&6
c45f211e 2372fi
dfac8a13
TT
2373done
2374
2375echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2376echo "configure:2377: checking for working mmap" >&5
2377if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2379else
2380 if test "$cross_compiling" = yes; then
2381 ac_cv_func_mmap_fixed_mapped=no
2382else
2383 cat > conftest.$ac_ext <<EOF
2384#line 2385 "configure"
2385#include "confdefs.h"
2386
2387/* Thanks to Mike Haertel and Jim Avera for this test.
2388 Here is a matrix of mmap possibilities:
2389 mmap private not fixed
2390 mmap private fixed at somewhere currently unmapped
2391 mmap private fixed at somewhere already mapped
2392 mmap shared not fixed
2393 mmap shared fixed at somewhere currently unmapped
2394 mmap shared fixed at somewhere already mapped
2395 For private mappings, we should verify that changes cannot be read()
2396 back from the file, nor mmap's back from the file at a different
2397 address. (There have been systems where private was not correctly
2398 implemented like the infamous i386 svr4.0, and systems where the
2399 VM page cache was not coherent with the filesystem buffer cache
2400 like early versions of FreeBSD and possibly contemporary NetBSD.)
2401 For shared mappings, we should conversely verify that changes get
2402 propogated back to all the places they're supposed to be.
c45f211e 2403
dfac8a13
TT
2404 Grep wants private fixed already mapped.
2405 The main things grep needs to know about mmap are:
2406 * does it exist and is it safe to write into the mmap'd area
2407 * how to use it (BSD variants) */
c45f211e 2408#include <sys/types.h>
dfac8a13 2409#include <fcntl.h>
c45f211e 2410#include <sys/mman.h>
dfac8a13
TT
2411
2412/* This mess was copied from the GNU getpagesize.h. */
2413#ifndef HAVE_GETPAGESIZE
2414# ifdef HAVE_UNISTD_H
2415# include <unistd.h>
2416# endif
2417
2418/* Assume that all systems that can run configure have sys/param.h. */
2419# ifndef HAVE_SYS_PARAM_H
2420# define HAVE_SYS_PARAM_H 1
2421# endif
2422
2423# ifdef _SC_PAGESIZE
2424# define getpagesize() sysconf(_SC_PAGESIZE)
2425# else /* no _SC_PAGESIZE */
2426# ifdef HAVE_SYS_PARAM_H
2427# include <sys/param.h>
2428# ifdef EXEC_PAGESIZE
2429# define getpagesize() EXEC_PAGESIZE
2430# else /* no EXEC_PAGESIZE */
2431# ifdef NBPG
2432# define getpagesize() NBPG * CLSIZE
2433# ifndef CLSIZE
2434# define CLSIZE 1
2435# endif /* no CLSIZE */
2436# else /* no NBPG */
2437# ifdef NBPC
2438# define getpagesize() NBPC
2439# else /* no NBPC */
2440# ifdef PAGESIZE
2441# define getpagesize() PAGESIZE
2442# endif /* PAGESIZE */
2443# endif /* no NBPC */
2444# endif /* no NBPG */
2445# endif /* no EXEC_PAGESIZE */
2446# else /* no HAVE_SYS_PARAM_H */
2447# define getpagesize() 8192 /* punt totally */
2448# endif /* no HAVE_SYS_PARAM_H */
2449# endif /* no _SC_PAGESIZE */
2450
2451#endif /* no HAVE_GETPAGESIZE */
2452
2453#ifdef __cplusplus
2454extern "C" { void *malloc(unsigned); }
2455#else
2456char *malloc();
2457#endif
2458
2459int
2460main()
2461{
2462 char *data, *data2, *data3;
2463 int i, pagesize;
2464 int fd;
2465
2466 pagesize = getpagesize();
2467
2468 /*
2469 * First, make a file with some known garbage in it.
2470 */
2471 data = malloc(pagesize);
2472 if (!data)
2473 exit(1);
2474 for (i = 0; i < pagesize; ++i)
2475 *(data + i) = rand();
2476 umask(0);
2477 fd = creat("conftestmmap", 0600);
2478 if (fd < 0)
2479 exit(1);
2480 if (write(fd, data, pagesize) != pagesize)
2481 exit(1);
2482 close(fd);
2483
2484 /*
2485 * Next, try to mmap the file at a fixed address which
2486 * already has something else allocated at it. If we can,
2487 * also make sure that we see the same garbage.
2488 */
2489 fd = open("conftestmmap", O_RDWR);
2490 if (fd < 0)
2491 exit(1);
2492 data2 = malloc(2 * pagesize);
2493 if (!data2)
2494 exit(1);
2495 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2496 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2497 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2498 exit(1);
2499 for (i = 0; i < pagesize; ++i)
2500 if (*(data + i) != *(data2 + i))
2501 exit(1);
2502
2503 /*
2504 * Finally, make sure that changes to the mapped area
2505 * do not percolate back to the file as seen by read().
2506 * (This is a bug on some variants of i386 svr4.0.)
2507 */
2508 for (i = 0; i < pagesize; ++i)
2509 *(data2 + i) = *(data2 + i) + 1;
2510 data3 = malloc(pagesize);
2511 if (!data3)
2512 exit(1);
2513 if (read(fd, data3, pagesize) != pagesize)
2514 exit(1);
2515 for (i = 0; i < pagesize; ++i)
2516 if (*(data + i) != *(data3 + i))
2517 exit(1);
2518 close(fd);
2519 unlink("conftestmmap");
2520 exit(0);
c45f211e 2521}
dfac8a13
TT
2522
2523EOF
2524if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2525then
2526 ac_cv_func_mmap_fixed_mapped=yes
2527else
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2530 rm -fr conftest*
2531 ac_cv_func_mmap_fixed_mapped=no
2532fi
2533rm -fr conftest*
2534fi
2535
2536fi
2537
2538echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2539if test $ac_cv_func_mmap_fixed_mapped = yes; then
2540 cat >> confdefs.h <<\EOF
2541#define HAVE_MMAP 1
2542EOF
2543
2544fi
2545
2546 for ac_func in memcpy strerror
2547do
2548echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2549echo "configure:2550: checking for $ac_func" >&5
2550if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 cat > conftest.$ac_ext <<EOF
2554#line 2555 "configure"
2555#include "confdefs.h"
2556/* System header to define __stub macros and hopefully few prototypes,
2557 which can conflict with char $ac_func(); below. */
2558#include <assert.h>
2559/* Override any gcc2 internal prototype to avoid an error. */
2560/* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562char $ac_func();
2563
2564int main() {
2565
2566/* The GNU C library defines this for functions which it implements
2567 to always fail with ENOSYS. Some functions are actually named
2568 something starting with __ and the normal name is an alias. */
2569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2570choke me
2571#else
2572$ac_func();
2573#endif
2574
2575; return 0; }
2576EOF
2577if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2578 rm -rf conftest*
2579 eval "ac_cv_func_$ac_func=yes"
2580else
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 rm -rf conftest*
2584 eval "ac_cv_func_$ac_func=no"
2585fi
2586rm -f conftest*
2587fi
2588
2589if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2592 cat >> confdefs.h <<EOF
2593#define $ac_tr_func 1
2594EOF
2595
2596else
2597 echo "$ac_t""no" 1>&6
2598fi
2599done
2600
2601fi
2602
2603for ac_hdr in unistd.h
2604do
2605ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2606echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2607echo "configure:2608: checking for $ac_hdr" >&5
2608if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2610else
2611 cat > conftest.$ac_ext <<EOF
2612#line 2613 "configure"
2613#include "confdefs.h"
2614#include <$ac_hdr>
2615EOF
2616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2617{ (eval echo configure:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2619if test -z "$ac_err"; then
2620 rm -rf conftest*
2621 eval "ac_cv_header_$ac_safe=yes"
2622else
2623 echo "$ac_err" >&5
2624 echo "configure: failed program was:" >&5
2625 cat conftest.$ac_ext >&5
2626 rm -rf conftest*
2627 eval "ac_cv_header_$ac_safe=no"
2628fi
2629rm -f conftest*
2630fi
2631if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2634 cat >> confdefs.h <<EOF
2635#define $ac_tr_hdr 1
2636EOF
2637
2638else
2639 echo "$ac_t""no" 1>&6
2640fi
2641done
2642
2643
2644if test "${multilib}" = "yes"; then
2645 multilib_arg="--enable-multilib"
2646else
2647 multilib_arg=
2648fi
2649
2650trap '' 1 2 15
2651cat > confcache <<\EOF
2652# This file is a shell script that caches the results of configure
2653# tests run on this system so they can be shared between configure
2654# scripts and configure runs. It is not useful on other systems.
2655# If it contains results you don't want to keep, you may remove or edit it.
2656#
2657# By default, configure uses ./config.cache as the cache file,
2658# creating it if it does not exist already. You can give configure
2659# the --cache-file=FILE option to use a different cache file; that is
2660# what configure does when it calls configure scripts in
2661# subdirectories, so they share the cache.
2662# Giving --cache-file=/dev/null disables caching, for debugging configure.
2663# config.status only pays attention to the cache file if you give it the
2664# --recheck option to rerun configure.
2665#
c45f211e 2666EOF
dfac8a13
TT
2667# The following way of writing the cache mishandles newlines in values,
2668# but we know of no workaround that is simple, portable, and efficient.
2669# So, don't put newlines in cache variables' values.
2670# Ultrix sh set writes to stderr and can't be redirected directly,
2671# and sets the high bit in the cache file unless we assign to the vars.
2672(set) 2>&1 |
2673 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2674 *ac_space=\ *)
2675 # `set' does not quote correctly, so add quotes (double-quote substitution
2676 # turns \\\\ into \\, and sed turns \\ into \).
2677 sed -n \
2678 -e "s/'/'\\\\''/g" \
2679 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2680 ;;
2681 *)
2682 # `set' quotes correctly as required by POSIX, so do not add quotes.
2683 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2684 ;;
2685 esac >> confcache
2686if cmp -s $cache_file confcache; then
2687 :
c45f211e 2688else
dfac8a13
TT
2689 if test -w $cache_file; then
2690 echo "updating cache $cache_file"
2691 cat confcache > $cache_file
2692 else
2693 echo "not updating unwritable cache $cache_file"
2694 fi
2695fi
2696rm -f confcache
2697
2698trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2699
2700test "x$prefix" = xNONE && prefix=$ac_default_prefix
2701# Let make expand exec_prefix.
2702test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2703
2704# Any assignment to VPATH causes Sun make to only execute
2705# the first set of double-colon rules, so remove it if not needed.
2706# If there is a colon in the path, we need to keep it.
2707if test "x$srcdir" = x.; then
2708 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
c45f211e
TT
2709fi
2710
dfac8a13
TT
2711trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2712
2713# Transform confdefs.h into DEFS.
2714# Protect against shell expansion while executing Makefile rules.
2715# Protect against Makefile macro expansion.
2716cat > conftest.defs <<\EOF
2717s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2718s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2719s%\[%\\&%g
2720s%\]%\\&%g
2721s%\$%$$%g
2722EOF
2723DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2724rm -f conftest.defs
2725
2726
2727# Without the "./", some shells look in PATH for config.status.
2728: ${CONFIG_STATUS=./config.status}
2729
2730echo creating $CONFIG_STATUS
2731rm -f $CONFIG_STATUS
2732cat > $CONFIG_STATUS <<EOF
2733#! /bin/sh
2734# Generated automatically by configure.
2735# Run this file to recreate the current configuration.
2736# This directory was configured as follows,
2737# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2738#
2739# $0 $ac_configure_args
2740#
2741# Compiler output produced by configure, useful for debugging
2742# configure, is in ./config.log if it exists.
2743
2744ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2745for ac_option
2746do
2747 case "\$ac_option" in
2748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2749 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2750 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2751 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2752 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2753 exit 0 ;;
2754 -help | --help | --hel | --he | --h)
2755 echo "\$ac_cs_usage"; exit 0 ;;
2756 *) echo "\$ac_cs_usage"; exit 1 ;;
2757 esac
2758done
2759
2760ac_given_srcdir=$srcdir
2761ac_given_INSTALL="$INSTALL"
2762
2763trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2764EOF
2765cat >> $CONFIG_STATUS <<EOF
2766
2767# Protect against being on the right side of a sed subst in config.status.
2768sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2769 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2770$ac_vpsub
2771$extrasub
2772s%@SHELL@%$SHELL%g
2773s%@CFLAGS@%$CFLAGS%g
2774s%@CPPFLAGS@%$CPPFLAGS%g
2775s%@CXXFLAGS@%$CXXFLAGS%g
2776s%@FFLAGS@%$FFLAGS%g
2777s%@DEFS@%$DEFS%g
2778s%@LDFLAGS@%$LDFLAGS%g
2779s%@LIBS@%$LIBS%g
2780s%@exec_prefix@%$exec_prefix%g
2781s%@prefix@%$prefix%g
2782s%@program_transform_name@%$program_transform_name%g
2783s%@bindir@%$bindir%g
2784s%@sbindir@%$sbindir%g
2785s%@libexecdir@%$libexecdir%g
2786s%@datadir@%$datadir%g
2787s%@sysconfdir@%$sysconfdir%g
2788s%@sharedstatedir@%$sharedstatedir%g
2789s%@localstatedir@%$localstatedir%g
2790s%@libdir@%$libdir%g
2791s%@includedir@%$includedir%g
2792s%@oldincludedir@%$oldincludedir%g
2793s%@infodir@%$infodir%g
2794s%@mandir@%$mandir%g
2795s%@host@%$host%g
2796s%@host_alias@%$host_alias%g
2797s%@host_cpu@%$host_cpu%g
2798s%@host_vendor@%$host_vendor%g
2799s%@host_os@%$host_os%g
2800s%@target@%$target%g
2801s%@target_alias@%$target_alias%g
2802s%@target_cpu@%$target_cpu%g
2803s%@target_vendor@%$target_vendor%g
2804s%@target_os@%$target_os%g
2805s%@build@%$build%g
2806s%@build_alias@%$build_alias%g
2807s%@build_cpu@%$build_cpu%g
2808s%@build_vendor@%$build_vendor%g
2809s%@build_os@%$build_os%g
2810s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2811s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2812s%@INSTALL_DATA@%$INSTALL_DATA%g
2813s%@PACKAGE@%$PACKAGE%g
2814s%@VERSION@%$VERSION%g
2815s%@ACLOCAL@%$ACLOCAL%g
2816s%@AUTOCONF@%$AUTOCONF%g
2817s%@AUTOMAKE@%$AUTOMAKE%g
2818s%@AUTOHEADER@%$AUTOHEADER%g
2819s%@MAKEINFO@%$MAKEINFO%g
2820s%@SET_MAKE@%$SET_MAKE%g
2821s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2822s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2823s%@MAINT@%$MAINT%g
2824s%@EXEEXT@%$EXEEXT%g
2825s%@zlib_basedir@%$zlib_basedir%g
2826s%@CC@%$CC%g
2827s%@RANLIB@%$RANLIB%g
2828s%@LD@%$LD%g
2829s%@NM@%$NM%g
2830s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
2831s%@LN_S@%$LN_S%g
2832s%@DLLTOOL@%$DLLTOOL%g
2833s%@AS@%$AS%g
2834s%@LIBTOOL@%$LIBTOOL%g
2835s%@COMPPATH@%$COMPPATH%g
2836s%@CPP@%$CPP%g
2837
2838CEOF
2839EOF
2840
2841cat >> $CONFIG_STATUS <<\EOF
2842
2843# Split the substitutions into bite-sized pieces for seds with
2844# small command number limits, like on Digital OSF/1 and HP-UX.
2845ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2846ac_file=1 # Number of current file.
2847ac_beg=1 # First line for current file.
2848ac_end=$ac_max_sed_cmds # Line after last line for current file.
2849ac_more_lines=:
2850ac_sed_cmds=""
2851while $ac_more_lines; do
2852 if test $ac_beg -gt 1; then
2853 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2854 else
2855 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2856 fi
2857 if test ! -s conftest.s$ac_file; then
2858 ac_more_lines=false
2859 rm -f conftest.s$ac_file
2860 else
2861 if test -z "$ac_sed_cmds"; then
2862 ac_sed_cmds="sed -f conftest.s$ac_file"
c45f211e 2863 else
dfac8a13
TT
2864 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2865 fi
2866 ac_file=`expr $ac_file + 1`
2867 ac_beg=$ac_end
2868 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2869 fi
2870done
2871if test -z "$ac_sed_cmds"; then
2872 ac_sed_cmds=cat
2873fi
2874EOF
2875
2876cat >> $CONFIG_STATUS <<EOF
2877
2878CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2879EOF
2880cat >> $CONFIG_STATUS <<\EOF
2881for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2882 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2883 case "$ac_file" in
2884 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2885 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2886 *) ac_file_in="${ac_file}.in" ;;
2887 esac
2888
2889 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2890
2891 # Remove last slash and all that follows it. Not all systems have dirname.
2892 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2893 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2894 # The file is in a subdirectory.
2895 test ! -d "$ac_dir" && mkdir "$ac_dir"
2896 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2897 # A "../" for each directory in $ac_dir_suffix.
2898 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2899 else
2900 ac_dir_suffix= ac_dots=
2901 fi
2902
2903 case "$ac_given_srcdir" in
2904 .) srcdir=.
2905 if test -z "$ac_dots"; then top_srcdir=.
2906 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2907 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2908 *) # Relative path.
2909 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2910 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2911 esac
2912
2913 case "$ac_given_INSTALL" in
2914 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2915 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2916 esac
2917
2918 echo creating "$ac_file"
2919 rm -f "$ac_file"
2920 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2921 case "$ac_file" in
2922 *Makefile*) ac_comsub="1i\\
2923# $configure_input" ;;
2924 *) ac_comsub= ;;
2925 esac
2926
2927 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2928 sed -e "$ac_comsub
2929s%@configure_input@%$configure_input%g
2930s%@srcdir@%$srcdir%g
2931s%@top_srcdir@%$top_srcdir%g
2932s%@INSTALL@%$INSTALL%g
2933" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2934fi; done
2935rm -f conftest.s*
2936
2937EOF
2938cat >> $CONFIG_STATUS <<EOF
2939srcdir=${srcdir}
2940host=${host}
2941target=${target}
2942with_multisubdir=${with_multisubdir}
2943ac_configure_args="${multilib_arg} ${ac_configure_args}"
2944CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2945zlib_basedir=${zlib_basedir}
2946CC="${CC}"
2947CXX="${CXX}"
2948
2949EOF
2950cat >> $CONFIG_STATUS <<\EOF
2951if test -n "$CONFIG_FILES"; then
2952 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
2953fi
2954exit 0
2955EOF
2956chmod +x $CONFIG_STATUS
2957rm -fr confdefs* $ac_clean_files
2958test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
c45f211e 2959