source: trunk/src/binutils/ld/configure@ 717

Last change on this file since 717 was 619, checked in by bird, 22 years ago

Regenerated configure files after 2.14 join.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 162.2 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27 --with-lib-path=dir1:dir2... set default LIB_PATH"
28ac_help="$ac_help
29 --enable-targets alternative target configurations"
30ac_help="$ac_help
31 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
32ac_help="$ac_help
33 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
34ac_help="$ac_help
35 --enable-build-warnings enable build-time compiler warnings if gcc is used"
36ac_help="$ac_help
37 --disable-nls do not use Native Language Support"
38ac_help="$ac_help
39 --with-included-gettext use the GNU gettext library included here"
40ac_help="$ac_help
41 --enable-maintainer-mode enable make rules and dependencies not useful
42 (and sometimes confusing) to the casual installer"
43
44# Initialize some variables set by options.
45# The variables have the same names as the options, with
46# dashes changed to underlines.
47build=NONE
48cache_file=./config.cache
49exec_prefix=NONE
50host=NONE
51no_create=
52nonopt=NONE
53no_recursion=
54prefix=NONE
55program_prefix=NONE
56program_suffix=NONE
57program_transform_name=s,x,x,
58silent=
59site=
60srcdir=
61target=NONE
62verbose=
63x_includes=NONE
64x_libraries=NONE
65bindir='${exec_prefix}/bin'
66sbindir='${exec_prefix}/sbin'
67libexecdir='${exec_prefix}/libexec'
68datadir='${prefix}/share'
69sysconfdir='${prefix}/etc'
70sharedstatedir='${prefix}/com'
71localstatedir='${prefix}/var'
72libdir='${exec_prefix}/lib'
73includedir='${prefix}/include'
74oldincludedir='/usr/include'
75infodir='${prefix}/info'
76mandir='${prefix}/man'
77
78# Initialize some other variables.
79subdirs=
80MFLAGS= MAKEFLAGS=
81SHELL=${CONFIG_SHELL-/bin/sh}
82# Maximum number of lines to put in a shell here document.
83ac_max_here_lines=12
84
85ac_prev=
86for ac_option
87do
88
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
92 ac_prev=
93 continue
94 fi
95
96 case "$ac_option" in
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 *) ac_optarg= ;;
99 esac
100
101 # Accept the important Cygnus configure options, so we can diagnose typos.
102
103 case "$ac_option" in
104
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 ac_prev=bindir ;;
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
109
110 -build | --build | --buil | --bui | --bu)
111 ac_prev=build ;;
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
114
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
121
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 ac_prev=datadir ;;
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 | --da=*)
126 datadir="$ac_optarg" ;;
127
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 fi
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
136
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 fi
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 case "$ac_option" in
145 *=*) ;;
146 *) ac_optarg=yes ;;
147 esac
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
149
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
158
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
161 with_gas=yes ;;
162
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
166 cat << EOF
167Usage: configure [options] [host]
168Options: [defaults in brackets after descriptions]
169Configuration:
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
177 [$ac_default_prefix]
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 [same as prefix]
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
184 [PREFIX/share]
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 [PREFIX/com]
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
199EOF
200 cat << EOF
201Host type:
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
212EOF
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
215 fi
216 exit 0 ;;
217
218 -host | --host | --hos | --ho)
219 ac_prev=host ;;
220 -host=* | --host=* | --hos=* | --ho=*)
221 host="$ac_optarg" ;;
222
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
229
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 ac_prev=infodir ;;
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
234
235 -libdir | --libdir | --libdi | --libd)
236 ac_prev=libdir ;;
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
239
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
246
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
255
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 ac_prev=mandir ;;
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
260
261 -nfp | --nfp | --nf)
262 # Obsolete; use --without-fp.
263 with_fp=no ;;
264
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 | --no-cr | --no-c)
267 no_create=yes ;;
268
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 no_recursion=yes ;;
272
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
281
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 ac_prev=prefix ;;
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
286
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
293
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
300
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
317
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
320 silent=yes ;;
321
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 ac_prev=sbindir ;;
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 | --sbi=* | --sb=*)
326 sbindir="$ac_optarg" ;;
327
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
331 | --sha | --sh)
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 | --sha=* | --sh=*)
337 sharedstatedir="$ac_optarg" ;;
338
339 -site | --site | --sit)
340 ac_prev=site ;;
341 -site=* | --site=* | --sit=*)
342 site="$ac_optarg" ;;
343
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 ac_prev=srcdir ;;
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
348
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
355
356 -target | --target | --targe | --targ | --tar | --ta | --t)
357 ac_prev=target ;;
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
360
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 verbose=yes ;;
363
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.13"
366 exit 0 ;;
367
368 -with-* | --with-*)
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 fi
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 case "$ac_option" in
376 *=*) ;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "with_${ac_package}='$ac_optarg'" ;;
380
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 fi
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
389
390 --x)
391 # Obsolete; use --with-x.
392 with_x=yes ;;
393
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
400
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
407
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 ;;
410
411 *)
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 fi
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 fi
418 nonopt="$ac_option"
419 ;;
420
421 esac
422done
423
424if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426fi
427
428trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429
430# File descriptor usage:
431# 0 standard input
432# 1 file creation
433# 2 errors and warnings
434# 3 some systems may open it to /dev/tty
435# 4 used on the Kubota Titan
436# 6 checking for... messages and results
437# 5 compiler messages saved in config.log
438if test "$silent" = yes; then
439 exec 6>/dev/null
440else
441 exec 6>&1
442fi
443exec 5>./config.log
444
445echo "\
446This file contains any messages produced by compilers while
447running configure, to aid debugging if configure makes a mistake.
448" 1>&5
449
450# Strip out --no-create and --no-recursion so they do not pile up.
451# Also quote any args containing shell metacharacters.
452ac_configure_args=
453for ac_arg
454do
455 case "$ac_arg" in
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 esac
464done
465
466# NLS nuisances.
467# Only set these to C if already set. These must not be set unconditionally
468# because not all systems understand e.g. LANG=C (notably SCO).
469# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470# Non-C LC_CTYPE values break the ctype check.
471if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475
476# confdefs.h avoids OS command line length limits that DEFS can exceed.
477rm -rf conftest* confdefs.h
478# AIX cpp loses on an empty file, so make sure it contains at least a newline.
479echo > confdefs.h
480
481# A filename unique to this package, relative to the directory that
482# configure is in, which we can look for to find out if srcdir is correct.
483ac_unique_file=ldmain.c
484
485# Find the source files, if location was not specified.
486if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
489 ac_prog=$0
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 srcdir=$ac_confdir
493 if test ! -r $srcdir/$ac_unique_file; then
494 srcdir=..
495 fi
496else
497 ac_srcdir_defaulted=no
498fi
499if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 else
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 fi
505fi
506srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507
508# Prefer explicitly selected file to automatically selected ones.
509if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 else
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 fi
515fi
516for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
519 . "$ac_site_file"
520 fi
521done
522
523if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
525 . $cache_file
526else
527 echo "creating cache $cache_file"
528 > $cache_file
529fi
530
531ac_ext=c
532# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533ac_cpp='$CPP $CPPFLAGS'
534ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536cross_compiling=$ac_cv_prog_cc_cross
537
538ac_exeext=
539ac_objext=o
540if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543 ac_n= ac_c='
544' ac_t=' '
545 else
546 ac_n=-n ac_c= ac_t=
547 fi
548else
549 ac_n= ac_c='\c' ac_t=
550fi
551
552echo $ac_n "checking for path separator""... $ac_c" 1>&6
553echo "configure:554: checking for path separator" >&5
554# Filter path to get backslahes into forwardslashes
555case "`uname -s 2> /dev/null`" in
556OS/2)
557 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
558 PATH_IFS=';'
559 ;;
560*)
561 PATH_IFS=':'
562 ;;
563esac
564echo "$ac_t""${PATH_IFS}" 1>&6
565
566echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
567echo "configure:568: checking for Cygwin environment" >&5
568if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
570else
571 cat > conftest.$ac_ext <<EOF
572#line 573 "configure"
573#include "confdefs.h"
574
575int main() {
576
577#ifndef __CYGWIN__
578#define __CYGWIN__ __CYGWIN32__
579#endif
580return __CYGWIN__;
581; return 0; }
582EOF
583if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
584 rm -rf conftest*
585 ac_cv_cygwin=yes
586else
587 echo "configure: failed program was:" >&5
588 cat conftest.$ac_ext >&5
589 rm -rf conftest*
590 ac_cv_cygwin=no
591fi
592rm -f conftest*
593rm -f conftest*
594fi
595
596echo "$ac_t""$ac_cv_cygwin" 1>&6
597CYGWIN=
598test "$ac_cv_cygwin" = yes && CYGWIN=yes
599echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
600echo "configure:601: checking for mingw32 environment" >&5
601if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
603else
604 cat > conftest.$ac_ext <<EOF
605#line 606 "configure"
606#include "confdefs.h"
607
608int main() {
609return __MINGW32__;
610; return 0; }
611EOF
612if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
613 rm -rf conftest*
614 ac_cv_mingw32=yes
615else
616 echo "configure: failed program was:" >&5
617 cat conftest.$ac_ext >&5
618 rm -rf conftest*
619 ac_cv_mingw32=no
620fi
621rm -f conftest*
622rm -f conftest*
623fi
624
625echo "$ac_t""$ac_cv_mingw32" 1>&6
626MINGW32=
627test "$ac_cv_mingw32" = yes && MINGW32=yes
628echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
629echo "configure:630: checking for EMX/OS2 environment" >&5
630if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
632else
633 : ${CC=gcc.exe}
634cat > conftest.$ac_ext <<EOF
635#line 636 "configure"
636#include "confdefs.h"
637
638int main() {
639return __EMX__;
640; return 0; }
641EOF
642if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
643 rm -rf conftest*
644 ac_cv_emxos2=yes
645else
646 echo "configure: failed program was:" >&5
647 cat conftest.$ac_ext >&5
648 rm -rf conftest*
649 ac_cv_emxos2=no
650fi
651rm -f conftest*
652rm -f conftest*
653fi
654
655echo "$ac_t""$ac_cv_emxos2" 1>&6
656if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
658else
659 if test "$ac_cv_emxos2" = yes ; then
660 ac_cv_libpre=
661else
662 ac_cv_libpre=lib
663fi
664
665fi
666
667EMXOS2=
668test "$ac_cv_emxos2" = yes && EMXOS2=yes
669
670
671
672echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
673echo "configure:674: checking for executable suffix" >&5
674if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676else
677 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
678 ac_cv_exeext=.exe
679else
680 rm -f conftest*
681 echo 'int main () { return 0; }' > conftest.$ac_ext
682 ac_cv_exeext=
683 if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
684 for file in conftest.*; do
685 case $file in
686 *.c | *.o | *.obj) ;;
687 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
688 esac
689 done
690 else
691 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
692 fi
693 rm -f conftest*
694 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
695fi
696fi
697
698EXEEXT=""
699test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
700echo "$ac_t""${ac_cv_exeext}" 1>&6
701ac_exeext=$EXEEXT
702
703
704
705ac_aux_dir=
706for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
707 if test -f $ac_dir/install-sh; then
708 ac_aux_dir=$ac_dir
709 ac_install_sh="$ac_aux_dir/install-sh -c"
710 break
711 elif test -f $ac_dir/install.sh; then
712 ac_aux_dir=$ac_dir
713 ac_install_sh="$ac_aux_dir/install.sh -c"
714 break
715 fi
716done
717if test -z "$ac_aux_dir"; then
718 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
719fi
720ac_config_guess=$ac_aux_dir/config.guess
721ac_config_sub=$ac_aux_dir/config.sub
722ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
723
724
725# Do some error checking and defaulting for the host and target type.
726# The inputs are:
727# configure --host=HOST --target=TARGET --build=BUILD NONOPT
728#
729# The rules are:
730# 1. You are not allowed to specify --host, --target, and nonopt at the
731# same time.
732# 2. Host defaults to nonopt.
733# 3. If nonopt is not specified, then host defaults to the current host,
734# as determined by config.guess.
735# 4. Target and build default to nonopt.
736# 5. If nonopt is not specified, then target and build default to host.
737
738# The aliases save the names the user supplied, while $host etc.
739# will get canonicalized.
740case $host---$target---$nonopt in
741NONE---*---* | *---NONE---* | *---*---NONE) ;;
742*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
743esac
744
745
746# Make sure we can run config.sub.
747if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
748else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749fi
750
751echo $ac_n "checking host system type""... $ac_c" 1>&6
752echo "configure:753: checking host system type" >&5
753
754host_alias=$host
755case "$host_alias" in
756NONE)
757 case $nonopt in
758 NONE)
759 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
760 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
761 fi ;;
762 *) host_alias=$nonopt ;;
763 esac ;;
764esac
765
766host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
767host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
768host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
769host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
770echo "$ac_t""$host" 1>&6
771
772echo $ac_n "checking target system type""... $ac_c" 1>&6
773echo "configure:774: checking target system type" >&5
774
775target_alias=$target
776case "$target_alias" in
777NONE)
778 case $nonopt in
779 NONE) target_alias=$host_alias ;;
780 *) target_alias=$nonopt ;;
781 esac ;;
782esac
783
784target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
785target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
786target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
787target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788echo "$ac_t""$target" 1>&6
789
790echo $ac_n "checking build system type""... $ac_c" 1>&6
791echo "configure:792: checking build system type" >&5
792
793build_alias=$build
794case "$build_alias" in
795NONE)
796 case $nonopt in
797 NONE) build_alias=$host_alias ;;
798 *) build_alias=$nonopt ;;
799 esac ;;
800esac
801
802build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
803build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
804build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
805build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
806echo "$ac_t""$build" 1>&6
807
808test "$host_alias" != "$target_alias" &&
809 test "$program_prefix$program_suffix$program_transform_name" = \
810 NONENONEs,x,x, &&
811 program_prefix=${target_alias}-
812
813
814 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
815echo "configure:816: checking for strerror in -lcposix" >&5
816ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
817if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
819else
820 ac_save_LIBS="$LIBS"
821LIBS="-lcposix $LIBS"
822cat > conftest.$ac_ext <<EOF
823#line 824 "configure"
824#include "confdefs.h"
825/* Override any gcc2 internal prototype to avoid an error. */
826/* We use char because int might match the return type of a gcc2
827 builtin and then its argument prototype would still apply. */
828char strerror();
829
830int main() {
831strerror()
832; return 0; }
833EOF
834if { (eval echo configure:835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
835 rm -rf conftest*
836 eval "ac_cv_lib_$ac_lib_var=yes"
837else
838 echo "configure: failed program was:" >&5
839 cat conftest.$ac_ext >&5
840 rm -rf conftest*
841 eval "ac_cv_lib_$ac_lib_var=no"
842fi
843rm -f conftest*
844LIBS="$ac_save_LIBS"
845
846fi
847if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
848 echo "$ac_t""yes" 1>&6
849 LIBS="$LIBS -lcposix"
850else
851 echo "$ac_t""no" 1>&6
852fi
853
854
855
856
857BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
858# Find a good install program. We prefer a C program (faster),
859# so one script is as good as another. But avoid the broken or
860# incompatible versions:
861# SysV /etc/install, /usr/sbin/install
862# SunOS /usr/etc/install
863# IRIX /sbin/install
864# AIX /bin/install
865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
868# ./install, which can be erroneously created by make from ./install.sh.
869echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
870echo "configure:871: checking for a BSD compatible install" >&5
871if test -z "$INSTALL"; then
872if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
874else
875 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
876 for ac_dir in $PATH; do
877 # Account for people who put trailing slashes in PATH elements.
878 case "$ac_dir/" in
879 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
880 # We reject the install program from OS/2 or W3.1
881 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
882 *)
883 # OSF1 and SCO ODT 3.0 have their own names for install.
884 # Don't use installbsd from OSF since it installs stuff as root
885 # by default.
886 for ac_prog in ginstall scoinst install; do
887 if test -f $ac_dir/$ac_prog$ac_exeext; then
888 if test $ac_prog = install &&
889 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
890 # AIX install. It has an incompatible calling convention.
891 :
892 else
893 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
894 break 2
895 fi
896 fi
897 done
898 ;;
899 esac
900 done
901 IFS="$ac_save_IFS"
902
903fi
904 if test "${ac_cv_path_install+set}" = set; then
905 INSTALL="$ac_cv_path_install"
906 else
907 # As a last resort, use the slow shell script. We don't cache a
908 # path for INSTALL within a source directory, because that will
909 # break other packages using the cache if that directory is
910 # removed, or if the path is relative.
911 INSTALL="$ac_install_sh"
912 fi
913fi
914echo "$ac_t""$INSTALL" 1>&6
915
916# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
917# It thinks the first close brace ends the variable substitution.
918test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
919
920test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
921
922test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
923
924echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
925echo "configure:926: checking whether build environment is sane" >&5
926# Just in case
927sleep 1
928echo timestamp > conftestfile
929# Do `set' in a subshell so we don't clobber the current shell's
930# arguments. Must try -L first in case configure is actually a
931# symlink; some systems play weird games with the mod time of symlinks
932# (eg FreeBSD returns the mod time of the symlink's containing
933# directory).
934if (
935 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
936 if test "$*" = "X"; then
937 # -L didn't work.
938 set X `ls -t $srcdir/configure conftestfile`
939 fi
940 if test "$*" != "X $srcdir/configure conftestfile" \
941 && test "$*" != "X conftestfile $srcdir/configure"; then
942
943 # If neither matched, then we have a broken ls. This can happen
944 # if, for instance, CONFIG_SHELL is bash and it inherits a
945 # broken ls alias from the environment. This has actually
946 # happened. Such a system could not be considered "sane".
947 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
948alias in your environment" 1>&2; exit 1; }
949 fi
950
951 test "$2" = conftestfile
952 )
953then
954 # Ok.
955 :
956else
957 { echo "configure: error: newly created file is older than distributed files!
958Check your system clock" 1>&2; exit 1; }
959fi
960rm -f conftest*
961echo "$ac_t""yes" 1>&6
962if test "$program_transform_name" = s,x,x,; then
963 program_transform_name=
964else
965 # Double any \ or $. echo might interpret backslashes.
966 cat <<\EOF_SED > conftestsed
967s,\\,\\\\,g; s,\$,$$,g
968EOF_SED
969 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
970 rm -f conftestsed
971fi
972test "$program_prefix" != NONE &&
973 program_transform_name="s,^,${program_prefix},; $program_transform_name"
974# Use a double $ so make ignores it.
975test "$program_suffix" != NONE &&
976 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
977
978# sed with no file args requires a program.
979test "$program_transform_name" = "" && program_transform_name="s,x,x,"
980
981echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
982echo "configure:983: checking whether ${MAKE-make} sets \${MAKE}" >&5
983set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
984if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
986else
987 cat > conftestmake <<\EOF
988all:
989 @echo 'ac_maketemp="${MAKE}"'
990EOF
991# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
992eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
993if test -n "$ac_maketemp"; then
994 eval ac_cv_prog_make_${ac_make}_set=yes
995else
996 eval ac_cv_prog_make_${ac_make}_set=no
997fi
998rm -f conftestmake
999fi
1000if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1001 echo "$ac_t""yes" 1>&6
1002 SET_MAKE=
1003else
1004 echo "$ac_t""no" 1>&6
1005 SET_MAKE="MAKE=${MAKE-make}"
1006fi
1007
1008
1009PACKAGE=ld
1010
1011VERSION=${BFD_VERSION}
1012
1013if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1014 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1015fi
1016cat >> confdefs.h <<EOF
1017#define PACKAGE "$PACKAGE"
1018EOF
1019
1020cat >> confdefs.h <<EOF
1021#define VERSION "$VERSION"
1022EOF
1023
1024
1025
1026missing_dir=`cd $ac_aux_dir && pwd`
1027echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1028echo "configure:1029: checking for working aclocal" >&5
1029# Run test in a subshell; some versions of sh will print an error if
1030# an executable is not found, even if stderr is redirected.
1031# Redirect stdin to placate older versions of autoconf. Sigh.
1032if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1033 ACLOCAL=aclocal
1034 echo "$ac_t""found" 1>&6
1035else
1036 ACLOCAL="$missing_dir/missing aclocal"
1037 echo "$ac_t""missing" 1>&6
1038fi
1039
1040echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1041echo "configure:1042: checking for working autoconf" >&5
1042# Run test in a subshell; some versions of sh will print an error if
1043# an executable is not found, even if stderr is redirected.
1044# Redirect stdin to placate older versions of autoconf. Sigh.
1045if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1046 AUTOCONF=autoconf
1047 echo "$ac_t""found" 1>&6
1048else
1049 AUTOCONF="$missing_dir/missing autoconf"
1050 echo "$ac_t""missing" 1>&6
1051fi
1052
1053echo $ac_n "checking for working automake""... $ac_c" 1>&6
1054echo "configure:1055: checking for working automake" >&5
1055# Run test in a subshell; some versions of sh will print an error if
1056# an executable is not found, even if stderr is redirected.
1057# Redirect stdin to placate older versions of autoconf. Sigh.
1058if (automake --version) < /dev/null > /dev/null 2>&1; then
1059 AUTOMAKE=automake
1060 echo "$ac_t""found" 1>&6
1061else
1062 AUTOMAKE="$missing_dir/missing automake"
1063 echo "$ac_t""missing" 1>&6
1064fi
1065
1066echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1067echo "configure:1068: checking for working autoheader" >&5
1068# Run test in a subshell; some versions of sh will print an error if
1069# an executable is not found, even if stderr is redirected.
1070# Redirect stdin to placate older versions of autoconf. Sigh.
1071if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1072 AUTOHEADER=autoheader
1073 echo "$ac_t""found" 1>&6
1074else
1075 AUTOHEADER="$missing_dir/missing autoheader"
1076 echo "$ac_t""missing" 1>&6
1077fi
1078
1079echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1080echo "configure:1081: checking for working makeinfo" >&5
1081# Run test in a subshell; some versions of sh will print an error if
1082# an executable is not found, even if stderr is redirected.
1083# Redirect stdin to placate older versions of autoconf. Sigh.
1084if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1085 MAKEINFO=makeinfo
1086 echo "$ac_t""found" 1>&6
1087else
1088 MAKEINFO="$missing_dir/missing makeinfo"
1089 echo "$ac_t""missing" 1>&6
1090fi
1091
1092
1093
1094# Check whether --enable-shared or --disable-shared was given.
1095if test "${enable_shared+set}" = set; then
1096 enableval="$enable_shared"
1097 p=${PACKAGE-default}
1098case $enableval in
1099yes) enable_shared=yes ;;
1100no) enable_shared=no ;;
1101*)
1102 enable_shared=no
1103 # Look at the argument we got. We use all the common list separators.
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1105 for pkg in $enableval; do
1106 if test "X$pkg" = "X$p"; then
1107 enable_shared=yes
1108 fi
1109 done
1110 IFS="$ac_save_ifs"
1111 ;;
1112esac
1113else
1114 enable_shared=yes
1115fi
1116
1117# Check whether --enable-static or --disable-static was given.
1118if test "${enable_static+set}" = set; then
1119 enableval="$enable_static"
1120 p=${PACKAGE-default}
1121case $enableval in
1122yes) enable_static=yes ;;
1123no) enable_static=no ;;
1124*)
1125 enable_static=no
1126 # Look at the argument we got. We use all the common list separators.
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1128 for pkg in $enableval; do
1129 if test "X$pkg" = "X$p"; then
1130 enable_static=yes
1131 fi
1132 done
1133 IFS="$ac_save_ifs"
1134 ;;
1135esac
1136else
1137 enable_static=yes
1138fi
1139
1140# Check whether --enable-fast-install or --disable-fast-install was given.
1141if test "${enable_fast_install+set}" = set; then
1142 enableval="$enable_fast_install"
1143 p=${PACKAGE-default}
1144case $enableval in
1145yes) enable_fast_install=yes ;;
1146no) enable_fast_install=no ;;
1147*)
1148 enable_fast_install=no
1149 # Look at the argument we got. We use all the common list separators.
1150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1151 for pkg in $enableval; do
1152 if test "X$pkg" = "X$p"; then
1153 enable_fast_install=yes
1154 fi
1155 done
1156 IFS="$ac_save_ifs"
1157 ;;
1158esac
1159else
1160 enable_fast_install=yes
1161fi
1162
1163# Extract the first word of "gcc", so it can be a program name with args.
1164set dummy gcc; ac_word=$2
1165echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166echo "configure:1167: checking for $ac_word" >&5
1167if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169else
1170 if test -n "$CC"; then
1171 ac_cv_prog_CC="$CC" # Let the user override the test.
1172else
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1174 ac_dummy="$PATH"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word -o \
1178 -f $ac_dir/$ac_word$ac_exeext ; then
1179 ac_cv_prog_CC="gcc"
1180 break
1181 fi
1182 done
1183 IFS="$ac_save_ifs"
1184fi
1185fi
1186CC="$ac_cv_prog_CC"
1187if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1189else
1190 echo "$ac_t""no" 1>&6
1191fi
1192
1193if test -z "$CC"; then
1194 # Extract the first word of "cc", so it can be a program name with args.
1195set dummy cc; ac_word=$2
1196echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197echo "configure:1198: checking for $ac_word" >&5
1198if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200else
1201 if test -n "$CC"; then
1202 ac_cv_prog_CC="$CC" # Let the user override the test.
1203else
1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1205 ac_prog_rejected=no
1206 ac_dummy="$PATH"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word -o \
1210 -f $ac_dir/$ac_word$ac_exeext ; then
1211 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
1212 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
1213 ac_prog_rejected=yes
1214 continue
1215 fi
1216 ac_cv_prog_CC="cc"
1217 break
1218 fi
1219 done
1220 IFS="$ac_save_ifs"
1221if test $ac_prog_rejected = yes; then
1222 # We found a bogon in the path, so make sure we never use it.
1223 set dummy $ac_cv_prog_CC
1224 shift
1225 if test $# -gt 0; then
1226 # We chose a different compiler from the bogus one.
1227 # However, it has the same basename, so the bogon will be chosen
1228 # first if we set CC to just the basename; use the full file name.
1229 shift
1230 set dummy "$ac_dir/$ac_word" "$@"
1231 shift
1232 ac_cv_prog_CC="$@"
1233 fi
1234fi
1235fi
1236fi
1237CC="$ac_cv_prog_CC"
1238if test -n "$CC"; then
1239 echo "$ac_t""$CC" 1>&6
1240else
1241 echo "$ac_t""no" 1>&6
1242fi
1243
1244 if test -z "$CC"; then
1245 case "`uname -s`" in
1246 *win32* | *WIN32*)
1247 # Extract the first word of "cl", so it can be a program name with args.
1248set dummy cl; ac_word=$2
1249echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250echo "configure:1251: checking for $ac_word" >&5
1251if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256else
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1258 ac_dummy="$PATH"
1259 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word -o \
1262 -f $ac_dir/$ac_word$ac_exeext ; then
1263 ac_cv_prog_CC="cl"
1264 break
1265 fi
1266 done
1267 IFS="$ac_save_ifs"
1268fi
1269fi
1270CC="$ac_cv_prog_CC"
1271if test -n "$CC"; then
1272 echo "$ac_t""$CC" 1>&6
1273else
1274 echo "$ac_t""no" 1>&6
1275fi
1276 ;;
1277 esac
1278 fi
1279 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1280fi
1281
1282echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1283echo "configure:1284: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1284
1285ac_ext=c
1286# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1287ac_cpp='$CPP $CPPFLAGS'
1288ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1289ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1290cross_compiling=$ac_cv_prog_cc_cross
1291
1292cat > conftest.$ac_ext << EOF
1293
1294#line 1295 "configure"
1295#include "confdefs.h"
1296
1297main(){return(0);}
1298EOF
1299if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1300 ac_cv_prog_cc_works=yes
1301 # If we can't run a trivial program, we are probably using a cross compiler.
1302 if (./conftest; exit) 2>/dev/null; then
1303 ac_cv_prog_cc_cross=no
1304 else
1305 ac_cv_prog_cc_cross=yes
1306 fi
1307else
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1310 ac_cv_prog_cc_works=no
1311fi
1312rm -fr conftest*
1313ac_ext=c
1314# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1315ac_cpp='$CPP $CPPFLAGS'
1316ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1317ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1318cross_compiling=$ac_cv_prog_cc_cross
1319
1320echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1321if test $ac_cv_prog_cc_works = no; then
1322 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1323fi
1324echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1325echo "configure:1326: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1326echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1327cross_compiling=$ac_cv_prog_cc_cross
1328
1329echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1330echo "configure:1331: checking whether we are using GNU C" >&5
1331if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333else
1334 cat > conftest.c <<EOF
1335#ifdef __GNUC__
1336 yes;
1337#endif
1338EOF
1339if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1340 ac_cv_prog_gcc=yes
1341else
1342 ac_cv_prog_gcc=no
1343fi
1344fi
1345
1346echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1347
1348if test $ac_cv_prog_gcc = yes; then
1349 GCC=yes
1350else
1351 GCC=
1352fi
1353
1354ac_test_CFLAGS="${CFLAGS+set}"
1355ac_save_CFLAGS="$CFLAGS"
1356CFLAGS=
1357echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1358echo "configure:1359: checking whether ${CC-cc} accepts -g" >&5
1359if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361else
1362 echo 'void f(){}' > conftest.c
1363if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1364 ac_cv_prog_cc_g=yes
1365else
1366 ac_cv_prog_cc_g=no
1367fi
1368rm -f conftest*
1369
1370fi
1371
1372echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1373if test "$ac_test_CFLAGS" = set; then
1374 CFLAGS="$ac_save_CFLAGS"
1375elif test $ac_cv_prog_cc_g = yes; then
1376 if test "$GCC" = yes; then
1377 CFLAGS="-g -O2"
1378 else
1379 CFLAGS="-g"
1380 fi
1381else
1382 if test "$GCC" = yes; then
1383 CFLAGS="-O2"
1384 else
1385 CFLAGS=
1386 fi
1387fi
1388
1389# Check whether --with-gnu-ld or --without-gnu-ld was given.
1390if test "${with_gnu_ld+set}" = set; then
1391 withval="$with_gnu_ld"
1392 test "$withval" = no || with_gnu_ld=yes
1393else
1394 with_gnu_ld=no
1395fi
1396
1397ac_prog=ld
1398if test "$GCC" = yes; then
1399 # Check if gcc -print-prog-name=ld gives a path.
1400 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1401echo "configure:1402: checking for ld used by GCC" >&5
1402 case $host in
1403 *-*-mingw*)
1404 # gcc leaves a trailing carriage return which upsets mingw
1405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1406 *)
1407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1408 esac
1409 case $ac_prog in
1410 # Accept absolute paths.
1411 [\\/]* | [A-Za-z]:[\\/]*)
1412 re_direlt='/[^/][^/]*/\.\./'
1413 # Canonicalize the path of ld
1414 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1415 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1416 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1417 done
1418 test -z "$LD" && LD="$ac_prog"
1419 ;;
1420 "")
1421 # If it fails, then pretend we aren't using GCC.
1422 ac_prog=ld
1423 ;;
1424 *)
1425 # If it is relative, then search for the first ld in PATH.
1426 with_gnu_ld=unknown
1427 ;;
1428 esac
1429elif test "$with_gnu_ld" = yes; then
1430 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1431echo "configure:1432: checking for GNU ld" >&5
1432else
1433 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1434echo "configure:1435: checking for non-GNU ld" >&5
1435fi
1436if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1438else
1439 if test -z "$LD"; then
1440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1441 for ac_dir in $PATH; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1444 lt_cv_path_LD="$ac_dir/$ac_prog"
1445 # Check to see if the program is GNU ld. I'd rather use --version,
1446 # but apparently some GNU ld's only accept -v.
1447 # Break only if it was the GNU/non-GNU ld that we prefer.
1448 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1449 test "$with_gnu_ld" != no && break
1450 else
1451 test "$with_gnu_ld" != yes && break
1452 fi
1453 fi
1454 done
1455 IFS="$ac_save_ifs"
1456else
1457 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1458fi
1459fi
1460
1461LD="$lt_cv_path_LD"
1462if test -n "$LD"; then
1463 echo "$ac_t""$LD" 1>&6
1464else
1465 echo "$ac_t""no" 1>&6
1466fi
1467test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1468echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1469echo "configure:1470: checking if the linker ($LD) is GNU ld" >&5
1470if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472else
1473 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1474if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1475 lt_cv_prog_gnu_ld=yes
1476else
1477 lt_cv_prog_gnu_ld=no
1478fi
1479fi
1480
1481echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1482with_gnu_ld=$lt_cv_prog_gnu_ld
1483
1484
1485echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1486echo "configure:1487: checking for $LD option to reload object files" >&5
1487if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1489else
1490 lt_cv_ld_reload_flag='-r'
1491fi
1492
1493echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1494reload_flag=$lt_cv_ld_reload_flag
1495test -n "$reload_flag" && reload_flag=" $reload_flag"
1496
1497echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1498echo "configure:1499: checking for BSD-compatible nm" >&5
1499if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1501else
1502 if test -n "$NM"; then
1503 # Let the user override the test.
1504 lt_cv_path_NM="$NM"
1505else
1506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1507 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1508 test -z "$ac_dir" && ac_dir=.
1509 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1510 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1511 # Check to see if the nm accepts a BSD-compat flag.
1512 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1513 # nm: unknown option "B" ignored
1514 # Tru64's nm complains that /dev/null is an invalid object file
1515 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1516 lt_cv_path_NM="$tmp_nm -B"
1517 break
1518 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1519 lt_cv_path_NM="$tmp_nm -p"
1520 break
1521 else
1522 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1523 continue # so that we can try to find one that supports BSD flags
1524 fi
1525 fi
1526 done
1527 IFS="$ac_save_ifs"
1528 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1529fi
1530fi
1531
1532NM="$lt_cv_path_NM"
1533echo "$ac_t""$NM" 1>&6
1534
1535echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1536echo "configure:1537: checking whether ln -s works" >&5
1537if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1539else
1540 rm -f conftestdata
1541if ln -s X conftestdata 2>/dev/null
1542then
1543 rm -f conftestdata
1544 ac_cv_prog_LN_S="ln -s"
1545else
1546 echo A > conftestdata;
1547 if ln conftestdata conftestdata2 2>/dev/null; then
1548 ac_cv_prog_LN_S=ln
1549 else
1550 ac_cv_prog_LN_S=cp
1551 fi
1552fi
1553rm -f conftestdata*
1554fi
1555LN_S="$ac_cv_prog_LN_S"
1556if test "$ac_cv_prog_LN_S" = "ln -s"; then
1557 echo "$ac_t""yes" 1>&6
1558else
1559 echo "$ac_t""no" 1>&6
1560fi
1561
1562echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1563echo "configure:1564: checking how to recognise dependant libraries" >&5
1564if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566else
1567 lt_cv_file_magic_cmd='$MAGIC_CMD'
1568lt_cv_file_magic_test_file=
1569lt_cv_deplibs_check_method='unknown'
1570# Need to set the preceding variable on all platforms that support
1571# interlibrary dependencies.
1572# 'none' -- dependencies not supported.
1573# `unknown' -- same as none, but documents that we really don't know.
1574# 'pass_all' -- all dependencies passed with no checks.
1575# 'test_compile' -- check by making test program.
1576# 'file_magic [regex]' -- check by looking for files in library path
1577# which responds to the $file_magic_cmd with a given egrep regex.
1578# If you have `file' or equivalent on your system and you're not sure
1579# whether `pass_all' will *always* work, you probably want this one.
1580
1581case $host_os in
1582aix*)
1583 lt_cv_deplibs_check_method=pass_all
1584 ;;
1585
1586beos*)
1587 lt_cv_deplibs_check_method=pass_all
1588 ;;
1589
1590bsdi4*)
1591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1592 lt_cv_file_magic_cmd='/usr/bin/file -L'
1593 lt_cv_file_magic_test_file=/shlib/libc.so
1594 ;;
1595
1596cygwin* | mingw* |pw32*)
1597 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1598 lt_cv_file_magic_cmd='$OBJDUMP -f'
1599 ;;
1600
1601darwin* | rhapsody*)
1602 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1603 lt_cv_file_magic_cmd='/usr/bin/file -L'
1604 case "$host_os" in
1605 rhapsody* | darwin1.012)
1606 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1607 ;;
1608 *) # Darwin 1.3 on
1609 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1610 ;;
1611 esac
1612 ;;
1613
1614freebsd* )
1615 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1616 case $host_cpu in
1617 i*86 )
1618 # Not sure whether the presence of OpenBSD here was a mistake.
1619 # Let's accept both of them until this is cleared up.
1620 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1621 lt_cv_file_magic_cmd=/usr/bin/file
1622 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1623 ;;
1624 esac
1625 else
1626 lt_cv_deplibs_check_method=pass_all
1627 fi
1628 ;;
1629
1630gnu*)
1631 lt_cv_deplibs_check_method=pass_all
1632 ;;
1633
1634hpux10.20*|hpux11*)
1635 case $host_cpu in
1636 hppa*)
1637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1638 lt_cv_file_magic_cmd=/usr/bin/file
1639 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1640 ;;
1641 ia64*)
1642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1643 lt_cv_file_magic_cmd=/usr/bin/file
1644 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1645 ;;
1646 esac
1647 ;;
1648
1649irix5* | irix6*)
1650 case $host_os in
1651 irix5*)
1652 # this will be overridden with pass_all, but let us keep it just in case
1653 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1654 ;;
1655 *)
1656 case $LD in
1657 *-32|*"-32 ") libmagic=32-bit;;
1658 *-n32|*"-n32 ") libmagic=N32;;
1659 *-64|*"-64 ") libmagic=64-bit;;
1660 *) libmagic=never-match;;
1661 esac
1662 # this will be overridden with pass_all, but let us keep it just in case
1663 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1664 ;;
1665 esac
1666 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1667 lt_cv_deplibs_check_method=pass_all
1668 ;;
1669
1670# This must be Linux ELF.
1671linux-gnu*)
1672 case $host_cpu in
1673 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1674 lt_cv_deplibs_check_method=pass_all ;;
1675 *)
1676 # glibc up to 2.1.1 does not perform some relocations on ARM
1677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1678 esac
1679 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1680 ;;
1681
1682netbsd*)
1683 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1684 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1685 else
1686 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1687 fi
1688 ;;
1689
1690os2*)
1691 lt_cv_deplibs_check_method=pass_all
1692 ;;
1693
1694newsos6)
1695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1696 lt_cv_file_magic_cmd=/usr/bin/file
1697 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1698 ;;
1699
1700osf3* | osf4* | osf5*)
1701 # this will be overridden with pass_all, but let us keep it just in case
1702 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1703 lt_cv_file_magic_test_file=/shlib/libc.so
1704 lt_cv_deplibs_check_method=pass_all
1705 ;;
1706
1707sco3.2v5*)
1708 lt_cv_deplibs_check_method=pass_all
1709 ;;
1710
1711solaris*)
1712 lt_cv_deplibs_check_method=pass_all
1713 lt_cv_file_magic_test_file=/lib/libc.so
1714 ;;
1715
1716sysv5uw[78]* | sysv4*uw2*)
1717 lt_cv_deplibs_check_method=pass_all
1718 ;;
1719
1720sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1721 case $host_vendor in
1722 ncr)
1723 lt_cv_deplibs_check_method=pass_all
1724 ;;
1725 motorola)
1726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1728 ;;
1729 esac
1730 ;;
1731esac
1732
1733fi
1734
1735echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1736file_magic_cmd=$lt_cv_file_magic_cmd
1737deplibs_check_method=$lt_cv_deplibs_check_method
1738
1739echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1740echo "configure:1741: checking for object suffix" >&5
1741if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743else
1744 rm -f conftest*
1745echo 'int i = 1;' > conftest.$ac_ext
1746if { (eval echo configure:1747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1747 for ac_file in conftest.*; do
1748 case $ac_file in
1749 *.c) ;;
1750 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1751 esac
1752 done
1753else
1754 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1755fi
1756rm -f conftest*
1757fi
1758
1759echo "$ac_t""$ac_cv_objext" 1>&6
1760OBJEXT=$ac_cv_objext
1761ac_objext=$ac_cv_objext
1762
1763if test $host != $build; then
1764 ac_tool_prefix=${host_alias}-
1765else
1766 ac_tool_prefix=
1767fi
1768
1769# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1770
1771# Only perform the check for file, if the check method requires it
1772case $deplibs_check_method in
1773file_magic*)
1774 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1775 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1776echo "configure:1777: checking for ${ac_tool_prefix}file" >&5
1777if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779else
1780 case $MAGIC_CMD in
1781 /*)
1782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1783 ;;
1784 ?:/*)
1785 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1786 ;;
1787 *)
1788 ac_save_MAGIC_CMD="$MAGIC_CMD"
1789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1790 ac_dummy="/usr/bin:$PATH"
1791 for ac_dir in $ac_dummy; do
1792 test -z "$ac_dir" && ac_dir=.
1793 if test -f $ac_dir/${ac_tool_prefix}file; then
1794 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1795 if test -n "$file_magic_test_file"; then
1796 case $deplibs_check_method in
1797 "file_magic "*)
1798 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1800 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1801 egrep "$file_magic_regex" > /dev/null; then
1802 :
1803 else
1804 cat <<EOF 1>&2
1805
1806*** Warning: the command libtool uses to detect shared libraries,
1807*** $file_magic_cmd, produces output that libtool cannot recognize.
1808*** The result is that libtool may fail to recognize shared libraries
1809*** as such. This will affect the creation of libtool libraries that
1810*** depend on shared libraries, but programs linked with such libtool
1811*** libraries will work regardless of this problem. Nevertheless, you
1812*** may want to report the problem to your system manager and/or to
1813*** bug-libtool@gnu.org
1814
1815EOF
1816 fi ;;
1817 esac
1818 fi
1819 break
1820 fi
1821 done
1822 IFS="$ac_save_ifs"
1823 MAGIC_CMD="$ac_save_MAGIC_CMD"
1824 ;;
1825esac
1826fi
1827
1828MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1829if test -n "$MAGIC_CMD"; then
1830 echo "$ac_t""$MAGIC_CMD" 1>&6
1831else
1832 echo "$ac_t""no" 1>&6
1833fi
1834
1835if test -z "$lt_cv_path_MAGIC_CMD"; then
1836 if test -n "$ac_tool_prefix"; then
1837 echo $ac_n "checking for file""... $ac_c" 1>&6
1838echo "configure:1839: checking for file" >&5
1839if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841else
1842 case $MAGIC_CMD in
1843 /*)
1844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1845 ;;
1846 ?:/*)
1847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1848 ;;
1849 *)
1850 ac_save_MAGIC_CMD="$MAGIC_CMD"
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1852 ac_dummy="/usr/bin:$PATH"
1853 for ac_dir in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f $ac_dir/file; then
1856 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1857 if test -n "$file_magic_test_file"; then
1858 case $deplibs_check_method in
1859 "file_magic "*)
1860 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1863 egrep "$file_magic_regex" > /dev/null; then
1864 :
1865 else
1866 cat <<EOF 1>&2
1867
1868*** Warning: the command libtool uses to detect shared libraries,
1869*** $file_magic_cmd, produces output that libtool cannot recognize.
1870*** The result is that libtool may fail to recognize shared libraries
1871*** as such. This will affect the creation of libtool libraries that
1872*** depend on shared libraries, but programs linked with such libtool
1873*** libraries will work regardless of this problem. Nevertheless, you
1874*** may want to report the problem to your system manager and/or to
1875*** bug-libtool@gnu.org
1876
1877EOF
1878 fi ;;
1879 esac
1880 fi
1881 break
1882 fi
1883 done
1884 IFS="$ac_save_ifs"
1885 MAGIC_CMD="$ac_save_MAGIC_CMD"
1886 ;;
1887esac
1888fi
1889
1890MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1891if test -n "$MAGIC_CMD"; then
1892 echo "$ac_t""$MAGIC_CMD" 1>&6
1893else
1894 echo "$ac_t""no" 1>&6
1895fi
1896
1897 else
1898 MAGIC_CMD=:
1899 fi
1900fi
1901
1902 fi
1903 ;;
1904esac
1905
1906# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1907set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1908echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1909echo "configure:1910: checking for $ac_word" >&5
1910if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1912else
1913 if test -n "$RANLIB"; then
1914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1915else
1916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1917 ac_dummy="$PATH"
1918 for ac_dir in $ac_dummy; do
1919 test -z "$ac_dir" && ac_dir=.
1920 if test -f $ac_dir/$ac_word -o \
1921 -f $ac_dir/$ac_word$ac_exeext ; then
1922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1923 break
1924 fi
1925 done
1926 IFS="$ac_save_ifs"
1927fi
1928fi
1929RANLIB="$ac_cv_prog_RANLIB"
1930if test -n "$RANLIB"; then
1931 echo "$ac_t""$RANLIB" 1>&6
1932else
1933 echo "$ac_t""no" 1>&6
1934fi
1935
1936
1937if test -z "$ac_cv_prog_RANLIB"; then
1938if test -n "$ac_tool_prefix"; then
1939 # Extract the first word of "ranlib", so it can be a program name with args.
1940set dummy ranlib; ac_word=$2
1941echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1942echo "configure:1943: checking for $ac_word" >&5
1943if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945else
1946 if test -n "$RANLIB"; then
1947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1948else
1949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1950 ac_dummy="$PATH"
1951 for ac_dir in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir=.
1953 if test -f $ac_dir/$ac_word -o \
1954 -f $ac_dir/$ac_word$ac_exeext ; then
1955 ac_cv_prog_RANLIB="ranlib"
1956 break
1957 fi
1958 done
1959 IFS="$ac_save_ifs"
1960 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1961fi
1962fi
1963RANLIB="$ac_cv_prog_RANLIB"
1964if test -n "$RANLIB"; then
1965 echo "$ac_t""$RANLIB" 1>&6
1966else
1967 echo "$ac_t""no" 1>&6
1968fi
1969
1970else
1971 RANLIB=":"
1972fi
1973fi
1974
1975# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1976set dummy ${ac_tool_prefix}strip; 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_STRIP'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1981else
1982 if test -n "$STRIP"; then
1983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1984else
1985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_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 -o \
1990 -f $ac_dir/$ac_word$ac_exeext ; then
1991 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1992 break
1993 fi
1994 done
1995 IFS="$ac_save_ifs"
1996fi
1997fi
1998STRIP="$ac_cv_prog_STRIP"
1999if test -n "$STRIP"; then
2000 echo "$ac_t""$STRIP" 1>&6
2001else
2002 echo "$ac_t""no" 1>&6
2003fi
2004
2005
2006if test -z "$ac_cv_prog_STRIP"; then
2007if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "strip", so it can be a program name with args.
2009set dummy strip; ac_word=$2
2010echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2011echo "configure:2012: checking for $ac_word" >&5
2012if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2014else
2015 if test -n "$STRIP"; then
2016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2017else
2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2019 ac_dummy="$PATH"
2020 for ac_dir in $ac_dummy; do
2021 test -z "$ac_dir" && ac_dir=.
2022 if test -f $ac_dir/$ac_word -o \
2023 -f $ac_dir/$ac_word$ac_exeext ; then
2024 ac_cv_prog_STRIP="strip"
2025 break
2026 fi
2027 done
2028 IFS="$ac_save_ifs"
2029 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2030fi
2031fi
2032STRIP="$ac_cv_prog_STRIP"
2033if test -n "$STRIP"; then
2034 echo "$ac_t""$STRIP" 1>&6
2035else
2036 echo "$ac_t""no" 1>&6
2037fi
2038
2039else
2040 STRIP=":"
2041fi
2042fi
2043
2044
2045# Check for any special flags to pass to ltconfig.
2046libtool_flags="--cache-file=$cache_file"
2047test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2048test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2049test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2050test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2051test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2052
2053
2054# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2055if test "${enable_libtool_lock+set}" = set; then
2056 enableval="$enable_libtool_lock"
2057 :
2058fi
2059
2060test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2061test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2062
2063# Check whether --with-pic or --without-pic was given.
2064if test "${with_pic+set}" = set; then
2065 withval="$with_pic"
2066 pic_mode="$withval"
2067else
2068 pic_mode=default
2069fi
2070
2071test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2072test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2073
2074# Some flags need to be propagated to the compiler or linker for good
2075# libtool support.
2076case $host in
2077*-*-irix6*)
2078 # Find out which ABI we are using.
2079 echo '#line 2080 "configure"' > conftest.$ac_ext
2080 if { (eval echo configure:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2081 if test "$lt_cv_prog_gnu_ld" = yes; then
2082 case `/usr/bin/file conftest.$ac_objext` in
2083 *32-bit*)
2084 LD="${LD-ld} -melf32bsmip"
2085 ;;
2086 *N32*)
2087 LD="${LD-ld} -melf32bmipn32"
2088 ;;
2089 *64-bit*)
2090 LD="${LD-ld} -melf64bmip"
2091 ;;
2092 esac
2093 else
2094 case `/usr/bin/file conftest.$ac_objext` in
2095 *32-bit*)
2096 LD="${LD-ld} -32"
2097 ;;
2098 *N32*)
2099 LD="${LD-ld} -n32"
2100 ;;
2101 *64-bit*)
2102 LD="${LD-ld} -64"
2103 ;;
2104 esac
2105 fi
2106 fi
2107 rm -rf conftest*
2108 ;;
2109
2110ia64-*-hpux*)
2111 # Find out which ABI we are using.
2112 echo 'int i;' > conftest.$ac_ext
2113 if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2114 case "`/usr/bin/file conftest.o`" in
2115 *ELF-32*)
2116 HPUX_IA64_MODE="32"
2117 ;;
2118 *ELF-64*)
2119 HPUX_IA64_MODE="64"
2120 ;;
2121 esac
2122 fi
2123 rm -rf conftest*
2124 ;;
2125
2126*-*-sco3.2v5*)
2127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2128 SAVE_CFLAGS="$CFLAGS"
2129 CFLAGS="$CFLAGS -belf"
2130 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2131echo "configure:2132: checking whether the C compiler needs -belf" >&5
2132if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2134else
2135
2136 ac_ext=c
2137# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2138ac_cpp='$CPP $CPPFLAGS'
2139ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2140ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2141cross_compiling=$ac_cv_prog_cc_cross
2142
2143 cat > conftest.$ac_ext <<EOF
2144#line 2145 "configure"
2145#include "confdefs.h"
2146
2147int main() {
2148
2149; return 0; }
2150EOF
2151if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2152 rm -rf conftest*
2153 lt_cv_cc_needs_belf=yes
2154else
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 rm -rf conftest*
2158 lt_cv_cc_needs_belf=no
2159fi
2160rm -f conftest*
2161 ac_ext=c
2162# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2163ac_cpp='$CPP $CPPFLAGS'
2164ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2165ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2166cross_compiling=$ac_cv_prog_cc_cross
2167
2168fi
2169
2170echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2171 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2172 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2173 CFLAGS="$SAVE_CFLAGS"
2174 fi
2175 ;;
2176
2177
2178esac
2179
2180
2181# Save cache, so that ltconfig can load it
2182cat > confcache <<\EOF
2183# This file is a shell script that caches the results of configure
2184# tests run on this system so they can be shared between configure
2185# scripts and configure runs. It is not useful on other systems.
2186# If it contains results you don't want to keep, you may remove or edit it.
2187#
2188# By default, configure uses ./config.cache as the cache file,
2189# creating it if it does not exist already. You can give configure
2190# the --cache-file=FILE option to use a different cache file; that is
2191# what configure does when it calls configure scripts in
2192# subdirectories, so they share the cache.
2193# Giving --cache-file=/dev/null disables caching, for debugging configure.
2194# config.status only pays attention to the cache file if you give it the
2195# --recheck option to rerun configure.
2196#
2197EOF
2198# The following way of writing the cache mishandles newlines in values,
2199# but we know of no workaround that is simple, portable, and efficient.
2200# So, don't put newlines in cache variables' values.
2201# Ultrix sh set writes to stderr and can't be redirected directly,
2202# and sets the high bit in the cache file unless we assign to the vars.
2203(set) 2>&1 |
2204 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2205 *ac_space=\ *)
2206 # `set' does not quote correctly, so add quotes (double-quote substitution
2207 # turns \\\\ into \\, and sed turns \\ into \).
2208 sed -n \
2209 -e "s/'/'\\\\''/g" \
2210 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2211 ;;
2212 *)
2213 # `set' quotes correctly as required by POSIX, so do not add quotes.
2214 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2215 ;;
2216 esac >> confcache
2217if cmp -s $cache_file confcache; then
2218 :
2219else
2220 if test -w $cache_file; then
2221 echo "updating cache $cache_file"
2222 cat confcache > $cache_file
2223 else
2224 echo "not updating unwritable cache $cache_file"
2225 fi
2226fi
2227rm -f confcache
2228
2229
2230# Actually configure libtool. ac_aux_dir is where install-sh is found.
2231AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2232MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2233LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2234AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2235objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2236deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2237${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2238$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2239|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2240
2241# Reload cache, that may have been modified by ltconfig
2242if test -r "$cache_file"; then
2243 echo "loading cache $cache_file"
2244 . $cache_file
2245else
2246 echo "creating cache $cache_file"
2247 > $cache_file
2248fi
2249
2250
2251# This can be used to rebuild libtool when needed
2252LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2253
2254# Always use our own libtool.
2255LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2256
2257# Redirect the config.log output again, so that the ltconfig log is not
2258# clobbered by the next message.
2259exec 5>>./config.log
2260
2261
2262
2263
2264
2265
2266
2267# Check whether --with-lib-path or --without-lib-path was given.
2268if test "${with_lib_path+set}" = set; then
2269 withval="$with_lib_path"
2270 LIB_PATH=$withval
2271fi
2272
2273# Check whether --enable-targets or --disable-targets was given.
2274if test "${enable_targets+set}" = set; then
2275 enableval="$enable_targets"
2276 case "${enableval}" in
2277 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2278 ;;
2279 no) enable_targets= ;;
2280 *) enable_targets=$enableval ;;
2281esac
2282fi
2283# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2284if test "${enable_64_bit_bfd+set}" = set; then
2285 enableval="$enable_64_bit_bfd"
2286 case "${enableval}" in
2287 yes) want64=true ;;
2288 no) want64=false ;;
2289 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2290esac
2291else
2292 want64=false
2293fi
2294
2295# Check whether --with-sysroot or --without-sysroot was given.
2296if test "${with_sysroot+set}" = set; then
2297 withval="$with_sysroot"
2298
2299 case ${with_sysroot} in
2300 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
2301 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
2302 esac
2303
2304 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
2305 use_sysroot=yes
2306
2307 if test "x$exec_prefix" = xNONE; then
2308 if test "x$prefix" = xNONE; then
2309 test_prefix=/usr/local
2310 else
2311 test_prefix=$prefix
2312 fi
2313 else
2314 test_prefix=$exec_prefix
2315 fi
2316 case ${TARGET_SYSTEM_ROOT} in
2317 "${test_prefix}"|"${test_prefix}/"*|\
2318 '${exec_prefix}'|'${exec_prefix}/'*)
2319 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
2320 TARGET_SYSTEM_ROOT_DEFINE="$t"
2321 ;;
2322 esac
2323
2324else
2325
2326 use_sysroot=no
2327 TARGET_SYSTEM_ROOT=
2328 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
2329
2330fi
2331
2332
2333
2334
2335
2336build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2337# Check whether --enable-build-warnings or --disable-build-warnings was given.
2338if test "${enable_build_warnings+set}" = set; then
2339 enableval="$enable_build_warnings"
2340 case "${enableval}" in
2341 yes) ;;
2342 no) build_warnings="-w";;
2343 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2344 build_warnings="${build_warnings} ${t}";;
2345 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2346 build_warnings="${t} ${build_warnings}";;
2347 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2348esac
2349if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2350 echo "Setting warning flags = $build_warnings" 6>&1
2351fi
2352fi
2353WARN_CFLAGS=""
2354if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2355 WARN_CFLAGS="${build_warnings}"
2356fi
2357
2358
2359
2360
2361
2362
2363if test -z "$target" ; then
2364 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2365fi
2366if test -z "$host" ; then
2367 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2368fi
2369
2370# host-specific stuff:
2371
2372# Extract the first word of "gcc", so it can be a program name with args.
2373set dummy gcc; ac_word=$2
2374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2375echo "configure:2376: checking for $ac_word" >&5
2376if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2378else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381else
2382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2383 ac_dummy="$PATH"
2384 for ac_dir in $ac_dummy; do
2385 test -z "$ac_dir" && ac_dir=.
2386 if test -f $ac_dir/$ac_word -o \
2387 -f $ac_dir/$ac_word$ac_exeext ; then
2388 ac_cv_prog_CC="gcc"
2389 break
2390 fi
2391 done
2392 IFS="$ac_save_ifs"
2393fi
2394fi
2395CC="$ac_cv_prog_CC"
2396if test -n "$CC"; then
2397 echo "$ac_t""$CC" 1>&6
2398else
2399 echo "$ac_t""no" 1>&6
2400fi
2401
2402if test -z "$CC"; then
2403 # Extract the first word of "cc", so it can be a program name with args.
2404set dummy cc; ac_word=$2
2405echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2406echo "configure:2407: checking for $ac_word" >&5
2407if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412else
2413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2414 ac_prog_rejected=no
2415 ac_dummy="$PATH"
2416 for ac_dir in $ac_dummy; do
2417 test -z "$ac_dir" && ac_dir=.
2418 if test -f $ac_dir/$ac_word -o \
2419 -f $ac_dir/$ac_word$ac_exeext ; then
2420 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
2421 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
2422 ac_prog_rejected=yes
2423 continue
2424 fi
2425 ac_cv_prog_CC="cc"
2426 break
2427 fi
2428 done
2429 IFS="$ac_save_ifs"
2430if test $ac_prog_rejected = yes; then
2431 # We found a bogon in the path, so make sure we never use it.
2432 set dummy $ac_cv_prog_CC
2433 shift
2434 if test $# -gt 0; then
2435 # We chose a different compiler from the bogus one.
2436 # However, it has the same basename, so the bogon will be chosen
2437 # first if we set CC to just the basename; use the full file name.
2438 shift
2439 set dummy "$ac_dir/$ac_word" "$@"
2440 shift
2441 ac_cv_prog_CC="$@"
2442 fi
2443fi
2444fi
2445fi
2446CC="$ac_cv_prog_CC"
2447if test -n "$CC"; then
2448 echo "$ac_t""$CC" 1>&6
2449else
2450 echo "$ac_t""no" 1>&6
2451fi
2452
2453 if test -z "$CC"; then
2454 case "`uname -s`" in
2455 *win32* | *WIN32*)
2456 # Extract the first word of "cl", so it can be a program name with args.
2457set dummy cl; ac_word=$2
2458echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2459echo "configure:2460: checking for $ac_word" >&5
2460if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2462else
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2465else
2466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2467 ac_dummy="$PATH"
2468 for ac_dir in $ac_dummy; do
2469 test -z "$ac_dir" && ac_dir=.
2470 if test -f $ac_dir/$ac_word -o \
2471 -f $ac_dir/$ac_word$ac_exeext ; then
2472 ac_cv_prog_CC="cl"
2473 break
2474 fi
2475 done
2476 IFS="$ac_save_ifs"
2477fi
2478fi
2479CC="$ac_cv_prog_CC"
2480if test -n "$CC"; then
2481 echo "$ac_t""$CC" 1>&6
2482else
2483 echo "$ac_t""no" 1>&6
2484fi
2485 ;;
2486 esac
2487 fi
2488 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2489fi
2490
2491echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2492echo "configure:2493: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2493
2494ac_ext=c
2495# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2496ac_cpp='$CPP $CPPFLAGS'
2497ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2498ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2499cross_compiling=$ac_cv_prog_cc_cross
2500
2501cat > conftest.$ac_ext << EOF
2502
2503#line 2504 "configure"
2504#include "confdefs.h"
2505
2506main(){return(0);}
2507EOF
2508if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2509 ac_cv_prog_cc_works=yes
2510 # If we can't run a trivial program, we are probably using a cross compiler.
2511 if (./conftest; exit) 2>/dev/null; then
2512 ac_cv_prog_cc_cross=no
2513 else
2514 ac_cv_prog_cc_cross=yes
2515 fi
2516else
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 ac_cv_prog_cc_works=no
2520fi
2521rm -fr conftest*
2522ac_ext=c
2523# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2526ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2527cross_compiling=$ac_cv_prog_cc_cross
2528
2529echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2530if test $ac_cv_prog_cc_works = no; then
2531 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2532fi
2533echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2534echo "configure:2535: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2535echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2536cross_compiling=$ac_cv_prog_cc_cross
2537
2538echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2539echo "configure:2540: checking whether we are using GNU C" >&5
2540if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2542else
2543 cat > conftest.c <<EOF
2544#ifdef __GNUC__
2545 yes;
2546#endif
2547EOF
2548if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2549 ac_cv_prog_gcc=yes
2550else
2551 ac_cv_prog_gcc=no
2552fi
2553fi
2554
2555echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2556
2557if test $ac_cv_prog_gcc = yes; then
2558 GCC=yes
2559else
2560 GCC=
2561fi
2562
2563ac_test_CFLAGS="${CFLAGS+set}"
2564ac_save_CFLAGS="$CFLAGS"
2565CFLAGS=
2566echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2567echo "configure:2568: checking whether ${CC-cc} accepts -g" >&5
2568if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2570else
2571 echo 'void f(){}' > conftest.c
2572if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2573 ac_cv_prog_cc_g=yes
2574else
2575 ac_cv_prog_cc_g=no
2576fi
2577rm -f conftest*
2578
2579fi
2580
2581echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2582if test "$ac_test_CFLAGS" = set; then
2583 CFLAGS="$ac_save_CFLAGS"
2584elif test $ac_cv_prog_cc_g = yes; then
2585 if test "$GCC" = yes; then
2586 CFLAGS="-g -O2"
2587 else
2588 CFLAGS="-g"
2589 fi
2590else
2591 if test "$GCC" = yes; then
2592 CFLAGS="-O2"
2593 else
2594 CFLAGS=
2595 fi
2596fi
2597
2598# Find a good install program. We prefer a C program (faster),
2599# so one script is as good as another. But avoid the broken or
2600# incompatible versions:
2601# SysV /etc/install, /usr/sbin/install
2602# SunOS /usr/etc/install
2603# IRIX /sbin/install
2604# AIX /bin/install
2605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2608# ./install, which can be erroneously created by make from ./install.sh.
2609echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2610echo "configure:2611: checking for a BSD compatible install" >&5
2611if test -z "$INSTALL"; then
2612if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2614else
2615 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
2616 for ac_dir in $PATH; do
2617 # Account for people who put trailing slashes in PATH elements.
2618 case "$ac_dir/" in
2619 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2620 # We reject the install program from OS/2 or W3.1
2621 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
2622 *)
2623 # OSF1 and SCO ODT 3.0 have their own names for install.
2624 # Don't use installbsd from OSF since it installs stuff as root
2625 # by default.
2626 for ac_prog in ginstall scoinst install; do
2627 if test -f $ac_dir/$ac_prog$ac_exeext; then
2628 if test $ac_prog = install &&
2629 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2630 # AIX install. It has an incompatible calling convention.
2631 :
2632 else
2633 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
2634 break 2
2635 fi
2636 fi
2637 done
2638 ;;
2639 esac
2640 done
2641 IFS="$ac_save_IFS"
2642
2643fi
2644 if test "${ac_cv_path_install+set}" = set; then
2645 INSTALL="$ac_cv_path_install"
2646 else
2647 # As a last resort, use the slow shell script. We don't cache a
2648 # path for INSTALL within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the path is relative.
2651 INSTALL="$ac_install_sh"
2652 fi
2653fi
2654echo "$ac_t""$INSTALL" 1>&6
2655
2656# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2657# It thinks the first close brace ends the variable substitution.
2658test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2659
2660test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2661
2662test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2663
2664
2665ALL_LINGUAS="fr sv tr es da"
2666echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2667echo "configure:2668: checking how to run the C preprocessor" >&5
2668# On Suns, sometimes $CPP names a directory.
2669if test -n "$CPP" && test -d "$CPP"; then
2670 CPP=
2671fi
2672if test -z "$CPP"; then
2673if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675else
2676 # This must be in double quotes, not single quotes, because CPP may get
2677 # substituted into the Makefile and "${CC-cc}" will confuse make.
2678 CPP="${CC-cc} -E"
2679 # On the NeXT, cc -E runs the code through the compiler's parser,
2680 # not just through cpp.
2681 cat > conftest.$ac_ext <<EOF
2682#include <sys/types.h>
2683#line 2684 "configure"
2684#include "confdefs.h"
2685#include <assert.h>
2686Syntax Error
2687EOF
2688ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2689{ (eval echo configure:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2690ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2691if test -z "$ac_err"; then
2692 :
2693else
2694 echo "$ac_err" >&5
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2697 rm -rf conftest*
2698 CPP="${CC-cc} -E -traditional-cpp"
2699 cat > conftest.$ac_ext <<EOF
2700#include <sys/types.h>
2701#line 2702 "configure"
2702#include "confdefs.h"
2703#include <assert.h>
2704Syntax Error
2705EOF
2706ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707{ (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709if test -z "$ac_err"; then
2710 :
2711else
2712 echo "$ac_err" >&5
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2715 rm -rf conftest*
2716 CPP="${CC-cc} -nologo -E"
2717 cat > conftest.$ac_ext <<EOF
2718#include <sys/types.h>
2719#line 2720 "configure"
2720#include "confdefs.h"
2721#include <assert.h>
2722Syntax Error
2723EOF
2724ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725{ (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727if test -z "$ac_err"; then
2728 :
2729else
2730 echo "$ac_err" >&5
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2733 rm -rf conftest*
2734 CPP=/lib/cpp
2735fi
2736rm -f conftest*
2737fi
2738rm -f conftest*
2739fi
2740rm -f conftest*
2741 ac_cv_prog_CPP="$CPP"
2742fi
2743 CPP="$ac_cv_prog_CPP"
2744else
2745 ac_cv_prog_CPP="$CPP"
2746fi
2747echo "$ac_t""$CPP" 1>&6
2748
2749# Extract the first word of "ranlib", so it can be a program name with args.
2750set dummy ranlib; ac_word=$2
2751echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2752echo "configure:2753: checking for $ac_word" >&5
2753if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2755else
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758else
2759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2760 ac_dummy="$PATH"
2761 for ac_dir in $ac_dummy; do
2762 test -z "$ac_dir" && ac_dir=.
2763 if test -f $ac_dir/$ac_word -o \
2764 -f $ac_dir/$ac_word$ac_exeext ; then
2765 ac_cv_prog_RANLIB="ranlib"
2766 break
2767 fi
2768 done
2769 IFS="$ac_save_ifs"
2770 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2771fi
2772fi
2773RANLIB="$ac_cv_prog_RANLIB"
2774if test -n "$RANLIB"; then
2775 echo "$ac_t""$RANLIB" 1>&6
2776else
2777 echo "$ac_t""no" 1>&6
2778fi
2779
2780echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2781echo "configure:2782: checking for ANSI C header files" >&5
2782if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784else
2785 cat > conftest.$ac_ext <<EOF
2786#include <sys/types.h>
2787#line 2788 "configure"
2788#include "confdefs.h"
2789#include <stdlib.h>
2790#include <stdarg.h>
2791#include <string.h>
2792#include <float.h>
2793EOF
2794ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2795{ (eval echo configure:2796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2796ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2797if test -z "$ac_err"; then
2798 rm -rf conftest*
2799 ac_cv_header_stdc=yes
2800else
2801 echo "$ac_err" >&5
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 rm -rf conftest*
2805 ac_cv_header_stdc=no
2806fi
2807rm -f conftest*
2808
2809if test $ac_cv_header_stdc = yes; then
2810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2811cat > conftest.$ac_ext <<EOF
2812#line 2813 "configure"
2813#include "confdefs.h"
2814#include <string.h>
2815EOF
2816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2817 egrep "memchr" >/dev/null 2>&1; then
2818 :
2819else
2820 rm -rf conftest*
2821 ac_cv_header_stdc=no
2822fi
2823rm -f conftest*
2824
2825fi
2826
2827if test $ac_cv_header_stdc = yes; then
2828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2829cat > conftest.$ac_ext <<EOF
2830#line 2831 "configure"
2831#include "confdefs.h"
2832#include <stdlib.h>
2833EOF
2834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835 egrep "free" >/dev/null 2>&1; then
2836 :
2837else
2838 rm -rf conftest*
2839 ac_cv_header_stdc=no
2840fi
2841rm -f conftest*
2842
2843fi
2844
2845if test $ac_cv_header_stdc = yes; then
2846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2847if test "$cross_compiling" = yes; then
2848 :
2849else
2850 cat > conftest.$ac_ext <<EOF
2851#line 2852 "configure"
2852#include "confdefs.h"
2853#include <ctype.h>
2854#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2855#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2857int main () { int i; for (i = 0; i < 256; i++)
2858if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2859exit (0); }
2860
2861EOF
2862if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2863then
2864 :
2865else
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 rm -fr conftest*
2869 ac_cv_header_stdc=no
2870fi
2871rm -fr conftest*
2872fi
2873
2874fi
2875fi
2876
2877echo "$ac_t""$ac_cv_header_stdc" 1>&6
2878if test $ac_cv_header_stdc = yes; then
2879 cat >> confdefs.h <<\EOF
2880#define STDC_HEADERS 1
2881EOF
2882
2883fi
2884
2885echo $ac_n "checking for working const""... $ac_c" 1>&6
2886echo "configure:2887: checking for working const" >&5
2887if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889else
2890 cat > conftest.$ac_ext <<EOF
2891#line 2892 "configure"
2892#include "confdefs.h"
2893
2894int main() {
2895
2896/* Ultrix mips cc rejects this. */
2897typedef int charset[2]; const charset x;
2898/* SunOS 4.1.1 cc rejects this. */
2899char const *const *ccp;
2900char **p;
2901/* NEC SVR4.0.2 mips cc rejects this. */
2902struct point {int x, y;};
2903static struct point const zero = {0,0};
2904/* AIX XL C 1.02.0.0 rejects this.
2905 It does not let you subtract one const X* pointer from another in an arm
2906 of an if-expression whose if-part is not a constant expression */
2907const char *g = "string";
2908ccp = &g + (g ? g-g : 0);
2909/* HPUX 7.0 cc rejects these. */
2910++ccp;
2911p = (char**) ccp;
2912ccp = (char const *const *) p;
2913{ /* SCO 3.2v4 cc rejects this. */
2914 char *t;
2915 char const *s = 0 ? (char *) 0 : (char const *) 0;
2916
2917 *t++ = 0;
2918}
2919{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2920 int x[] = {25, 17};
2921 const int *foo = &x[0];
2922 ++foo;
2923}
2924{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2925 typedef const int *iptr;
2926 iptr p = 0;
2927 ++p;
2928}
2929{ /* AIX XL C 1.02.0.0 rejects this saying
2930 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2931 struct s { int j; const int *ap[3]; };
2932 struct s *b; b->j = 5;
2933}
2934{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2935 const int foo = 10;
2936}
2937
2938; return 0; }
2939EOF
2940if { (eval echo configure:2941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2941 rm -rf conftest*
2942 ac_cv_c_const=yes
2943else
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 rm -rf conftest*
2947 ac_cv_c_const=no
2948fi
2949rm -f conftest*
2950fi
2951
2952echo "$ac_t""$ac_cv_c_const" 1>&6
2953if test $ac_cv_c_const = no; then
2954 cat >> confdefs.h <<\EOF
2955#define const
2956EOF
2957
2958fi
2959
2960echo $ac_n "checking for inline""... $ac_c" 1>&6
2961echo "configure:2962: checking for inline" >&5
2962if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2964else
2965 ac_cv_c_inline=no
2966for ac_kw in inline __inline__ __inline; do
2967 cat > conftest.$ac_ext <<EOF
2968#line 2969 "configure"
2969#include "confdefs.h"
2970
2971int main() {
2972} $ac_kw foo() {
2973; return 0; }
2974EOF
2975if { (eval echo configure:2976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2976 rm -rf conftest*
2977 ac_cv_c_inline=$ac_kw; break
2978else
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2981fi
2982rm -f conftest*
2983done
2984
2985fi
2986
2987echo "$ac_t""$ac_cv_c_inline" 1>&6
2988case "$ac_cv_c_inline" in
2989 inline | yes) ;;
2990 no) cat >> confdefs.h <<\EOF
2991#define inline
2992EOF
2993 ;;
2994 *) cat >> confdefs.h <<EOF
2995#define inline $ac_cv_c_inline
2996EOF
2997 ;;
2998esac
2999
3000echo $ac_n "checking for off_t""... $ac_c" 1>&6
3001echo "configure:3002: checking for off_t" >&5
3002if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3004else
3005 cat > conftest.$ac_ext <<EOF
3006#line 3007 "configure"
3007#include "confdefs.h"
3008#include <sys/types.h>
3009#if STDC_HEADERS
3010#include <stdlib.h>
3011#include <stddef.h>
3012#endif
3013EOF
3014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3016 rm -rf conftest*
3017 ac_cv_type_off_t=yes
3018else
3019 rm -rf conftest*
3020 ac_cv_type_off_t=no
3021fi
3022rm -f conftest*
3023
3024fi
3025echo "$ac_t""$ac_cv_type_off_t" 1>&6
3026if test $ac_cv_type_off_t = no; then
3027 cat >> confdefs.h <<\EOF
3028#define off_t long
3029EOF
3030
3031fi
3032
3033echo $ac_n "checking for size_t""... $ac_c" 1>&6
3034echo "configure:3035: checking for size_t" >&5
3035if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3037else
3038 cat > conftest.$ac_ext <<EOF
3039#line 3040 "configure"
3040#include "confdefs.h"
3041#include <sys/types.h>
3042#if STDC_HEADERS
3043#include <stdlib.h>
3044#include <stddef.h>
3045#endif
3046EOF
3047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3048 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3049 rm -rf conftest*
3050 ac_cv_type_size_t=yes
3051else
3052 rm -rf conftest*
3053 ac_cv_type_size_t=no
3054fi
3055rm -f conftest*
3056
3057fi
3058echo "$ac_t""$ac_cv_type_size_t" 1>&6
3059if test $ac_cv_type_size_t = no; then
3060 cat >> confdefs.h <<\EOF
3061#define size_t unsigned
3062EOF
3063
3064fi
3065
3066# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3067# for constant arguments. Useless!
3068echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3069echo "configure:3070: checking for working alloca.h" >&5
3070if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3072else
3073 cat > conftest.$ac_ext <<EOF
3074#line 3075 "configure"
3075#include "confdefs.h"
3076#include <alloca.h>
3077int main() {
3078char *p = alloca(2 * sizeof(int));
3079; return 0; }
3080EOF
3081if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3082 rm -rf conftest*
3083 ac_cv_header_alloca_h=yes
3084else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -rf conftest*
3088 ac_cv_header_alloca_h=no
3089fi
3090rm -f conftest*
3091fi
3092
3093echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3094if test $ac_cv_header_alloca_h = yes; then
3095 cat >> confdefs.h <<\EOF
3096#define HAVE_ALLOCA_H 1
3097EOF
3098
3099fi
3100
3101echo $ac_n "checking for alloca""... $ac_c" 1>&6
3102echo "configure:3103: checking for alloca" >&5
3103if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105else
3106 cat > conftest.$ac_ext <<EOF
3107#line 3108 "configure"
3108#include "confdefs.h"
3109
3110#ifdef __GNUC__
3111# define alloca __builtin_alloca
3112#else
3113# ifdef _MSC_VER
3114# include <malloc.h>
3115# define alloca _alloca
3116# else
3117# if HAVE_ALLOCA_H
3118# include <alloca.h>
3119# else
3120# ifdef _AIX
3121 #pragma alloca
3122# else
3123# ifndef alloca /* predefined by HP cc +Olibcalls */
3124char *alloca ();
3125# endif
3126# endif
3127# endif
3128# endif
3129#endif
3130
3131int main() {
3132char *p = (char *) alloca(1);
3133; return 0; }
3134EOF
3135if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3136 rm -rf conftest*
3137 ac_cv_func_alloca_works=yes
3138else
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 ac_cv_func_alloca_works=no
3143fi
3144rm -f conftest*
3145fi
3146
3147echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3148if test $ac_cv_func_alloca_works = yes; then
3149 cat >> confdefs.h <<\EOF
3150#define HAVE_ALLOCA 1
3151EOF
3152
3153fi
3154
3155if test $ac_cv_func_alloca_works = no; then
3156 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3157 # that cause trouble. Some versions do not even contain alloca or
3158 # contain a buggy version. If you still want to use their alloca,
3159 # use ar to extract alloca.o from them instead of compiling alloca.c.
3160 ALLOCA=alloca.${ac_objext}
3161 cat >> confdefs.h <<\EOF
3162#define C_ALLOCA 1
3163EOF
3164
3165
3166echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3167echo "configure:3168: checking whether alloca needs Cray hooks" >&5
3168if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3170else
3171 cat > conftest.$ac_ext <<EOF
3172#line 3173 "configure"
3173#include "confdefs.h"
3174#if defined(CRAY) && ! defined(CRAY2)
3175webecray
3176#else
3177wenotbecray
3178#endif
3179
3180EOF
3181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 egrep "webecray" >/dev/null 2>&1; then
3183 rm -rf conftest*
3184 ac_cv_os_cray=yes
3185else
3186 rm -rf conftest*
3187 ac_cv_os_cray=no
3188fi
3189rm -f conftest*
3190
3191fi
3192
3193echo "$ac_t""$ac_cv_os_cray" 1>&6
3194if test $ac_cv_os_cray = yes; then
3195for ac_func in _getb67 GETB67 getb67; do
3196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3197echo "configure:3198: checking for $ac_func" >&5
3198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3200else
3201 cat > conftest.$ac_ext <<EOF
3202#line 3203 "configure"
3203#include "confdefs.h"
3204/* System header to define __stub macros and hopefully few prototypes,
3205 which can conflict with char $ac_func(); below. */
3206#include <assert.h>
3207/* Override any gcc2 internal prototype to avoid an error. */
3208/* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3210char $ac_func();
3211
3212int main() {
3213
3214/* The GNU C library defines this for functions which it implements
3215 to always fail with ENOSYS. Some functions are actually named
3216 something starting with __ and the normal name is an alias. */
3217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3218choke me
3219#else
3220$ac_func();
3221#endif
3222
3223; return 0; }
3224EOF
3225if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3226 rm -rf conftest*
3227 eval "ac_cv_func_$ac_func=yes"
3228else
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3231 rm -rf conftest*
3232 eval "ac_cv_func_$ac_func=no"
3233fi
3234rm -f conftest*
3235fi
3236
3237if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3238 echo "$ac_t""yes" 1>&6
3239 cat >> confdefs.h <<EOF
3240#define CRAY_STACKSEG_END $ac_func
3241EOF
3242
3243 break
3244else
3245 echo "$ac_t""no" 1>&6
3246fi
3247
3248done
3249fi
3250
3251echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3252echo "configure:3253: checking stack direction for C alloca" >&5
3253if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3255else
3256 if test "$cross_compiling" = yes; then
3257 ac_cv_c_stack_direction=0
3258else
3259 cat > conftest.$ac_ext <<EOF
3260#line 3261 "configure"
3261#include "confdefs.h"
3262find_stack_direction ()
3263{
3264 static char *addr = 0;
3265 auto char dummy;
3266 if (addr == 0)
3267 {
3268 addr = &dummy;
3269 return find_stack_direction ();
3270 }
3271 else
3272 return (&dummy > addr) ? 1 : -1;
3273}
3274main ()
3275{
3276 exit (find_stack_direction() < 0);
3277}
3278EOF
3279if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3280then
3281 ac_cv_c_stack_direction=1
3282else
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -fr conftest*
3286 ac_cv_c_stack_direction=-1
3287fi
3288rm -fr conftest*
3289fi
3290
3291fi
3292
3293echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3294cat >> confdefs.h <<EOF
3295#define STACK_DIRECTION $ac_cv_c_stack_direction
3296EOF
3297
3298fi
3299
3300for ac_hdr in unistd.h
3301do
3302ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3303echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3304echo "configure:3305: checking for $ac_hdr" >&5
3305if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3307else
3308 cat > conftest.$ac_ext <<EOF
3309#include <sys/types.h>
3310#line 3311 "configure"
3311#include "confdefs.h"
3312#include <$ac_hdr>
3313EOF
3314ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315{ (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317if test -z "$ac_err"; then
3318 rm -rf conftest*
3319 eval "ac_cv_header_$ac_safe=yes"
3320else
3321 echo "$ac_err" >&5
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 rm -rf conftest*
3325 eval "ac_cv_header_$ac_safe=no"
3326fi
3327rm -f conftest*
3328fi
3329if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3332 cat >> confdefs.h <<EOF
3333#define $ac_tr_hdr 1
3334EOF
3335
3336else
3337 echo "$ac_t""no" 1>&6
3338fi
3339done
3340
3341for ac_func in getpagesize
3342do
3343echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3344echo "configure:3345: checking for $ac_func" >&5
3345if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3347else
3348 cat > conftest.$ac_ext <<EOF
3349#line 3350 "configure"
3350#include "confdefs.h"
3351/* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char $ac_func(); below. */
3353#include <assert.h>
3354/* Override any gcc2 internal prototype to avoid an error. */
3355/* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357char $ac_func();
3358
3359int main() {
3360
3361/* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3365choke me
3366#else
3367$ac_func();
3368#endif
3369
3370; return 0; }
3371EOF
3372if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 rm -rf conftest*
3374 eval "ac_cv_func_$ac_func=yes"
3375else
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 rm -rf conftest*
3379 eval "ac_cv_func_$ac_func=no"
3380fi
3381rm -f conftest*
3382fi
3383
3384if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3387 cat >> confdefs.h <<EOF
3388#define $ac_tr_func 1
3389EOF
3390
3391else
3392 echo "$ac_t""no" 1>&6
3393fi
3394done
3395
3396echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3397echo "configure:3398: checking for working mmap" >&5
3398if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3400else
3401 if test "$cross_compiling" = yes; then
3402 ac_cv_func_mmap_fixed_mapped=no
3403else
3404 cat > conftest.$ac_ext <<EOF
3405#line 3406 "configure"
3406#include "confdefs.h"
3407
3408/* Thanks to Mike Haertel and Jim Avera for this test.
3409 Here is a matrix of mmap possibilities:
3410 mmap private not fixed
3411 mmap private fixed at somewhere currently unmapped
3412 mmap private fixed at somewhere already mapped
3413 mmap shared not fixed
3414 mmap shared fixed at somewhere currently unmapped
3415 mmap shared fixed at somewhere already mapped
3416 For private mappings, we should verify that changes cannot be read()
3417 back from the file, nor mmap's back from the file at a different
3418 address. (There have been systems where private was not correctly
3419 implemented like the infamous i386 svr4.0, and systems where the
3420 VM page cache was not coherent with the filesystem buffer cache
3421 like early versions of FreeBSD and possibly contemporary NetBSD.)
3422 For shared mappings, we should conversely verify that changes get
3423 propogated back to all the places they're supposed to be.
3424
3425 Grep wants private fixed already mapped.
3426 The main things grep needs to know about mmap are:
3427 * does it exist and is it safe to write into the mmap'd area
3428 * how to use it (BSD variants) */
3429#include <sys/types.h>
3430#include <fcntl.h>
3431#include <sys/mman.h>
3432
3433/* This mess was copied from the GNU getpagesize.h. */
3434#ifndef HAVE_GETPAGESIZE
3435# ifdef HAVE_UNISTD_H
3436# include <unistd.h>
3437# endif
3438
3439/* Assume that all systems that can run configure have sys/param.h. */
3440# ifndef HAVE_SYS_PARAM_H
3441# define HAVE_SYS_PARAM_H 1
3442# endif
3443
3444# ifdef _SC_PAGESIZE
3445# define getpagesize() sysconf(_SC_PAGESIZE)
3446# else /* no _SC_PAGESIZE */
3447# ifdef HAVE_SYS_PARAM_H
3448# include <sys/param.h>
3449# ifdef EXEC_PAGESIZE
3450# define getpagesize() EXEC_PAGESIZE
3451# else /* no EXEC_PAGESIZE */
3452# ifdef NBPG
3453# define getpagesize() NBPG * CLSIZE
3454# ifndef CLSIZE
3455# define CLSIZE 1
3456# endif /* no CLSIZE */
3457# else /* no NBPG */
3458# ifdef NBPC
3459# define getpagesize() NBPC
3460# else /* no NBPC */
3461# ifdef PAGESIZE
3462# define getpagesize() PAGESIZE
3463# endif /* PAGESIZE */
3464# endif /* no NBPC */
3465# endif /* no NBPG */
3466# endif /* no EXEC_PAGESIZE */
3467# else /* no HAVE_SYS_PARAM_H */
3468# define getpagesize() 8192 /* punt totally */
3469# endif /* no HAVE_SYS_PARAM_H */
3470# endif /* no _SC_PAGESIZE */
3471
3472#endif /* no HAVE_GETPAGESIZE */
3473
3474#ifdef __cplusplus
3475extern "C" { void *malloc(unsigned); }
3476#else
3477char *malloc();
3478#endif
3479
3480int
3481main()
3482{
3483 char *data, *data2, *data3;
3484 int i, pagesize;
3485 int fd;
3486
3487 pagesize = getpagesize();
3488
3489 /*
3490 * First, make a file with some known garbage in it.
3491 */
3492 data = malloc(pagesize);
3493 if (!data)
3494 exit(1);
3495 for (i = 0; i < pagesize; ++i)
3496 *(data + i) = rand();
3497 umask(0);
3498 fd = creat("conftestmmap", 0600);
3499 if (fd < 0)
3500 exit(1);
3501 if (write(fd, data, pagesize) != pagesize)
3502 exit(1);
3503 close(fd);
3504
3505 /*
3506 * Next, try to mmap the file at a fixed address which
3507 * already has something else allocated at it. If we can,
3508 * also make sure that we see the same garbage.
3509 */
3510 fd = open("conftestmmap", O_RDWR);
3511 if (fd < 0)
3512 exit(1);
3513 data2 = malloc(2 * pagesize);
3514 if (!data2)
3515 exit(1);
3516 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3517 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3518 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3519 exit(1);
3520 for (i = 0; i < pagesize; ++i)
3521 if (*(data + i) != *(data2 + i))
3522 exit(1);
3523
3524 /*
3525 * Finally, make sure that changes to the mapped area
3526 * do not percolate back to the file as seen by read().
3527 * (This is a bug on some variants of i386 svr4.0.)
3528 */
3529 for (i = 0; i < pagesize; ++i)
3530 *(data2 + i) = *(data2 + i) + 1;
3531 data3 = malloc(pagesize);
3532 if (!data3)
3533 exit(1);
3534 if (read(fd, data3, pagesize) != pagesize)
3535 exit(1);
3536 for (i = 0; i < pagesize; ++i)
3537 if (*(data + i) != *(data3 + i))
3538 exit(1);
3539 close(fd);
3540 unlink("conftestmmap");
3541 exit(0);
3542}
3543
3544EOF
3545if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3546then
3547 ac_cv_func_mmap_fixed_mapped=yes
3548else
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3551 rm -fr conftest*
3552 ac_cv_func_mmap_fixed_mapped=no
3553fi
3554rm -fr conftest*
3555fi
3556
3557fi
3558
3559echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3560if test $ac_cv_func_mmap_fixed_mapped = yes; then
3561 cat >> confdefs.h <<\EOF
3562#define HAVE_MMAP 1
3563EOF
3564
3565fi
3566
3567
3568 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3569unistd.h values.h sys/param.h
3570do
3571ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3572echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3573echo "configure:3574: checking for $ac_hdr" >&5
3574if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3576else
3577 cat > conftest.$ac_ext <<EOF
3578#include <sys/types.h>
3579#line 3580 "configure"
3580#include "confdefs.h"
3581#include <$ac_hdr>
3582EOF
3583ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3584{ (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3585ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3586if test -z "$ac_err"; then
3587 rm -rf conftest*
3588 eval "ac_cv_header_$ac_safe=yes"
3589else
3590 echo "$ac_err" >&5
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 rm -rf conftest*
3594 eval "ac_cv_header_$ac_safe=no"
3595fi
3596rm -f conftest*
3597fi
3598if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3601 cat >> confdefs.h <<EOF
3602#define $ac_tr_hdr 1
3603EOF
3604
3605else
3606 echo "$ac_t""no" 1>&6
3607fi
3608done
3609
3610 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3611__argz_count __argz_stringify __argz_next
3612do
3613echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3614echo "configure:3615: checking for $ac_func" >&5
3615if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617else
3618 cat > conftest.$ac_ext <<EOF
3619#line 3620 "configure"
3620#include "confdefs.h"
3621/* System header to define __stub macros and hopefully few prototypes,
3622 which can conflict with char $ac_func(); below. */
3623#include <assert.h>
3624/* Override any gcc2 internal prototype to avoid an error. */
3625/* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3627char $ac_func();
3628
3629int main() {
3630
3631/* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3635choke me
3636#else
3637$ac_func();
3638#endif
3639
3640; return 0; }
3641EOF
3642if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 rm -rf conftest*
3644 eval "ac_cv_func_$ac_func=yes"
3645else
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3648 rm -rf conftest*
3649 eval "ac_cv_func_$ac_func=no"
3650fi
3651rm -f conftest*
3652fi
3653
3654if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3657 cat >> confdefs.h <<EOF
3658#define $ac_tr_func 1
3659EOF
3660
3661else
3662 echo "$ac_t""no" 1>&6
3663fi
3664done
3665
3666
3667 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3668 for ac_func in stpcpy
3669do
3670echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3671echo "configure:3672: checking for $ac_func" >&5
3672if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674else
3675 cat > conftest.$ac_ext <<EOF
3676#line 3677 "configure"
3677#include "confdefs.h"
3678/* System header to define __stub macros and hopefully few prototypes,
3679 which can conflict with char $ac_func(); below. */
3680#include <assert.h>
3681/* Override any gcc2 internal prototype to avoid an error. */
3682/* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3684char $ac_func();
3685
3686int main() {
3687
3688/* The GNU C library defines this for functions which it implements
3689 to always fail with ENOSYS. Some functions are actually named
3690 something starting with __ and the normal name is an alias. */
3691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3692choke me
3693#else
3694$ac_func();
3695#endif
3696
3697; return 0; }
3698EOF
3699if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3700 rm -rf conftest*
3701 eval "ac_cv_func_$ac_func=yes"
3702else
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705 rm -rf conftest*
3706 eval "ac_cv_func_$ac_func=no"
3707fi
3708rm -f conftest*
3709fi
3710
3711if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3712 echo "$ac_t""yes" 1>&6
3713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3714 cat >> confdefs.h <<EOF
3715#define $ac_tr_func 1
3716EOF
3717
3718else
3719 echo "$ac_t""no" 1>&6
3720fi
3721done
3722
3723 fi
3724 if test "${ac_cv_func_stpcpy}" = "yes"; then
3725 cat >> confdefs.h <<\EOF
3726#define HAVE_STPCPY 1
3727EOF
3728
3729 fi
3730
3731 if test $ac_cv_header_locale_h = yes; then
3732 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3733echo "configure:3734: checking for LC_MESSAGES" >&5
3734if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3736else
3737 cat > conftest.$ac_ext <<EOF
3738#line 3739 "configure"
3739#include "confdefs.h"
3740#include <locale.h>
3741int main() {
3742return LC_MESSAGES
3743; return 0; }
3744EOF
3745if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 rm -rf conftest*
3747 am_cv_val_LC_MESSAGES=yes
3748else
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 am_cv_val_LC_MESSAGES=no
3753fi
3754rm -f conftest*
3755fi
3756
3757echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3758 if test $am_cv_val_LC_MESSAGES = yes; then
3759 cat >> confdefs.h <<\EOF
3760#define HAVE_LC_MESSAGES 1
3761EOF
3762
3763 fi
3764 fi
3765 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3766echo "configure:3767: checking whether NLS is requested" >&5
3767 # Check whether --enable-nls or --disable-nls was given.
3768if test "${enable_nls+set}" = set; then
3769 enableval="$enable_nls"
3770 USE_NLS=$enableval
3771else
3772 USE_NLS=yes
3773fi
3774
3775 echo "$ac_t""$USE_NLS" 1>&6
3776
3777
3778 USE_INCLUDED_LIBINTL=no
3779
3780 if test "$USE_NLS" = "yes"; then
3781 cat >> confdefs.h <<\EOF
3782#define ENABLE_NLS 1
3783EOF
3784
3785 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3786echo "configure:3787: checking whether included gettext is requested" >&5
3787 # Check whether --with-included-gettext or --without-included-gettext was given.
3788if test "${with_included_gettext+set}" = set; then
3789 withval="$with_included_gettext"
3790 nls_cv_force_use_gnu_gettext=$withval
3791else
3792 nls_cv_force_use_gnu_gettext=no
3793fi
3794
3795 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3796
3797 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3798 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3799 nls_cv_header_intl=
3800 nls_cv_header_libgt=
3801 CATOBJEXT=NONE
3802
3803 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3804echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3805echo "configure:3806: checking for libintl.h" >&5
3806if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3808else
3809 cat > conftest.$ac_ext <<EOF
3810#include <sys/types.h>
3811#line 3812 "configure"
3812#include "confdefs.h"
3813#include <libintl.h>
3814EOF
3815ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3816{ (eval echo configure:3817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3817ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3818if test -z "$ac_err"; then
3819 rm -rf conftest*
3820 eval "ac_cv_header_$ac_safe=yes"
3821else
3822 echo "$ac_err" >&5
3823 echo "configure: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3825 rm -rf conftest*
3826 eval "ac_cv_header_$ac_safe=no"
3827fi
3828rm -f conftest*
3829fi
3830if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3832 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3833echo "configure:3834: checking for gettext in libc" >&5
3834if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836else
3837 cat > conftest.$ac_ext <<EOF
3838#line 3839 "configure"
3839#include "confdefs.h"
3840#include <libintl.h>
3841int main() {
3842return (int) gettext ("")
3843; return 0; }
3844EOF
3845if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3846 rm -rf conftest*
3847 gt_cv_func_gettext_libc=yes
3848else
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 rm -rf conftest*
3852 gt_cv_func_gettext_libc=no
3853fi
3854rm -f conftest*
3855fi
3856
3857echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3858
3859 if test "$gt_cv_func_gettext_libc" != "yes"; then
3860 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3861echo "configure:3862: checking for bindtextdomain in -lintl" >&5
3862ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3863if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865else
3866 ac_save_LIBS="$LIBS"
3867LIBS="-lintl $LIBS"
3868cat > conftest.$ac_ext <<EOF
3869#line 3870 "configure"
3870#include "confdefs.h"
3871/* Override any gcc2 internal prototype to avoid an error. */
3872/* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874char bindtextdomain();
3875
3876int main() {
3877bindtextdomain()
3878; return 0; }
3879EOF
3880if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 rm -rf conftest*
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3883else
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 rm -rf conftest*
3887 eval "ac_cv_lib_$ac_lib_var=no"
3888fi
3889rm -f conftest*
3890LIBS="$ac_save_LIBS"
3891
3892fi
3893if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3896echo "configure:3897: checking for gettext in libintl" >&5
3897if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3899else
3900 cat > conftest.$ac_ext <<EOF
3901#line 3902 "configure"
3902#include "confdefs.h"
3903
3904int main() {
3905return (int) gettext ("")
3906; return 0; }
3907EOF
3908if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3909 rm -rf conftest*
3910 gt_cv_func_gettext_libintl=yes
3911else
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 rm -rf conftest*
3915 gt_cv_func_gettext_libintl=no
3916fi
3917rm -f conftest*
3918fi
3919
3920echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3921else
3922 echo "$ac_t""no" 1>&6
3923fi
3924
3925 fi
3926
3927 if test "$gt_cv_func_gettext_libc" = "yes" \
3928 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3929 cat >> confdefs.h <<\EOF
3930#define HAVE_GETTEXT 1
3931EOF
3932
3933 # Extract the first word of "msgfmt", so it can be a program name with args.
3934set dummy msgfmt; ac_word=$2
3935echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3936echo "configure:3937: checking for $ac_word" >&5
3937if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3939else
3940 case "$MSGFMT" in
3941 /*)
3942 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3943 ;;
3944 *)
3945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
3946 for ac_dir in $PATH; do
3947 test -z "$ac_dir" && ac_dir=.
3948 if test -f $ac_dir/$ac_word; then
3949 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3950 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3951 break
3952 fi
3953 fi
3954 done
3955 IFS="$ac_save_ifs"
3956 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3957 ;;
3958esac
3959fi
3960MSGFMT="$ac_cv_path_MSGFMT"
3961if test -n "$MSGFMT"; then
3962 echo "$ac_t""$MSGFMT" 1>&6
3963else
3964 echo "$ac_t""no" 1>&6
3965fi
3966 if test "$MSGFMT" != "no"; then
3967 for ac_func in dcgettext
3968do
3969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3970echo "configure:3971: checking for $ac_func" >&5
3971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3973else
3974 cat > conftest.$ac_ext <<EOF
3975#line 3976 "configure"
3976#include "confdefs.h"
3977/* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char $ac_func(); below. */
3979#include <assert.h>
3980/* Override any gcc2 internal prototype to avoid an error. */
3981/* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3983char $ac_func();
3984
3985int main() {
3986
3987/* The GNU C library defines this for functions which it implements
3988 to always fail with ENOSYS. Some functions are actually named
3989 something starting with __ and the normal name is an alias. */
3990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3991choke me
3992#else
3993$ac_func();
3994#endif
3995
3996; return 0; }
3997EOF
3998if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 rm -rf conftest*
4000 eval "ac_cv_func_$ac_func=yes"
4001else
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4004 rm -rf conftest*
4005 eval "ac_cv_func_$ac_func=no"
4006fi
4007rm -f conftest*
4008fi
4009
4010if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4013 cat >> confdefs.h <<EOF
4014#define $ac_tr_func 1
4015EOF
4016
4017else
4018 echo "$ac_t""no" 1>&6
4019fi
4020done
4021
4022 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4023set dummy gmsgfmt; ac_word=$2
4024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4025echo "configure:4026: checking for $ac_word" >&5
4026if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4028else
4029 case "$GMSGFMT" in
4030 /* | [a-zA-Z]:*)
4031 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4032 ;;
4033 ?:/*)
4034 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4035 ;;
4036 *)
4037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4038 ac_dummy="$PATH"
4039 for ac_dir in $ac_dummy; do
4040 test -z "$ac_dir" && ac_dir=.
4041 if test -f $ac_dir/$ac_word; then
4042 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4043 break
4044 fi
4045 if test -f $ac_dir/$ac_word$ac_exeext; then
4046 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
4047 break
4048 fi
4049 done
4050 IFS="$ac_save_ifs"
4051 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4052 ;;
4053esac
4054fi
4055GMSGFMT="$ac_cv_path_GMSGFMT"
4056if test -n "$GMSGFMT"; then
4057 echo "$ac_t""$GMSGFMT" 1>&6
4058else
4059 echo "$ac_t""no" 1>&6
4060fi
4061
4062 # Extract the first word of "xgettext", so it can be a program name with args.
4063set dummy xgettext; ac_word=$2
4064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4065echo "configure:4066: checking for $ac_word" >&5
4066if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4068else
4069 case "$XGETTEXT" in
4070 /*)
4071 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4072 ;;
4073 *)
4074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4075 for ac_dir in $PATH; do
4076 test -z "$ac_dir" && ac_dir=.
4077 if test -f $ac_dir/$ac_word; then
4078 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4079 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4080 break
4081 fi
4082 fi
4083 done
4084 IFS="$ac_save_ifs"
4085 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4086 ;;
4087esac
4088fi
4089XGETTEXT="$ac_cv_path_XGETTEXT"
4090if test -n "$XGETTEXT"; then
4091 echo "$ac_t""$XGETTEXT" 1>&6
4092else
4093 echo "$ac_t""no" 1>&6
4094fi
4095
4096 cat > conftest.$ac_ext <<EOF
4097#line 4098 "configure"
4098#include "confdefs.h"
4099
4100int main() {
4101extern int _nl_msg_cat_cntr;
4102 return _nl_msg_cat_cntr
4103; return 0; }
4104EOF
4105if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4106 rm -rf conftest*
4107 CATOBJEXT=.gmo
4108 DATADIRNAME=share
4109else
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4112 rm -rf conftest*
4113 CATOBJEXT=.mo
4114 DATADIRNAME=lib
4115fi
4116rm -f conftest*
4117 INSTOBJEXT=.mo
4118 fi
4119 fi
4120
4121else
4122 echo "$ac_t""no" 1>&6
4123fi
4124
4125
4126
4127 if test "$CATOBJEXT" = "NONE"; then
4128 nls_cv_use_gnu_gettext=yes
4129 fi
4130 fi
4131
4132 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4133 INTLOBJS="\$(GETTOBJS)"
4134 # Extract the first word of "msgfmt", so it can be a program name with args.
4135set dummy msgfmt; ac_word=$2
4136echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4137echo "configure:4138: checking for $ac_word" >&5
4138if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4140else
4141 case "$MSGFMT" in
4142 /*)
4143 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4144 ;;
4145 *)
4146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4147 for ac_dir in $PATH; do
4148 test -z "$ac_dir" && ac_dir=.
4149 if test -f $ac_dir/$ac_word; then
4150 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4151 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4152 break
4153 fi
4154 fi
4155 done
4156 IFS="$ac_save_ifs"
4157 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4158 ;;
4159esac
4160fi
4161MSGFMT="$ac_cv_path_MSGFMT"
4162if test -n "$MSGFMT"; then
4163 echo "$ac_t""$MSGFMT" 1>&6
4164else
4165 echo "$ac_t""no" 1>&6
4166fi
4167
4168 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4169set dummy gmsgfmt; ac_word=$2
4170echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4171echo "configure:4172: checking for $ac_word" >&5
4172if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4174else
4175 case "$GMSGFMT" in
4176 /* | [a-zA-Z]:*)
4177 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4178 ;;
4179 ?:/*)
4180 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4181 ;;
4182 *)
4183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4184 ac_dummy="$PATH"
4185 for ac_dir in $ac_dummy; do
4186 test -z "$ac_dir" && ac_dir=.
4187 if test -f $ac_dir/$ac_word; then
4188 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4189 break
4190 fi
4191 if test -f $ac_dir/$ac_word$ac_exeext; then
4192 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
4193 break
4194 fi
4195 done
4196 IFS="$ac_save_ifs"
4197 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4198 ;;
4199esac
4200fi
4201GMSGFMT="$ac_cv_path_GMSGFMT"
4202if test -n "$GMSGFMT"; then
4203 echo "$ac_t""$GMSGFMT" 1>&6
4204else
4205 echo "$ac_t""no" 1>&6
4206fi
4207
4208 # Extract the first word of "xgettext", so it can be a program name with args.
4209set dummy xgettext; ac_word=$2
4210echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4211echo "configure:4212: checking for $ac_word" >&5
4212if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4214else
4215 case "$XGETTEXT" in
4216 /*)
4217 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4218 ;;
4219 *)
4220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4221 for ac_dir in $PATH; do
4222 test -z "$ac_dir" && ac_dir=.
4223 if test -f $ac_dir/$ac_word; then
4224 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4225 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4226 break
4227 fi
4228 fi
4229 done
4230 IFS="$ac_save_ifs"
4231 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4232 ;;
4233esac
4234fi
4235XGETTEXT="$ac_cv_path_XGETTEXT"
4236if test -n "$XGETTEXT"; then
4237 echo "$ac_t""$XGETTEXT" 1>&6
4238else
4239 echo "$ac_t""no" 1>&6
4240fi
4241
4242
4243 USE_INCLUDED_LIBINTL=yes
4244 CATOBJEXT=.gmo
4245 INSTOBJEXT=.mo
4246 DATADIRNAME=share
4247 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4248 INTLLIBS=$INTLDEPS
4249 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4250 nls_cv_header_intl=libintl.h
4251 nls_cv_header_libgt=libgettext.h
4252 fi
4253
4254 if test "$XGETTEXT" != ":"; then
4255 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4256 : ;
4257 else
4258 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4259 XGETTEXT=":"
4260 fi
4261 fi
4262
4263 # We need to process the po/ directory.
4264 POSUB=po
4265 else
4266 DATADIRNAME=share
4267 nls_cv_header_intl=libintl.h
4268 nls_cv_header_libgt=libgettext.h
4269 fi
4270
4271 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4272 # because some of the sources are only built for this goal.
4273 if test "$PACKAGE" = gettext; then
4274 USE_NLS=yes
4275 USE_INCLUDED_LIBINTL=yes
4276 fi
4277
4278 for lang in $ALL_LINGUAS; do
4279 GMOFILES="$GMOFILES $lang.gmo"
4280 POFILES="$POFILES $lang.po"
4281 done
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296 if test "x$CATOBJEXT" != "x"; then
4297 if test "x$ALL_LINGUAS" = "x"; then
4298 LINGUAS=
4299 else
4300 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4301echo "configure:4302: checking for catalogs to be installed" >&5
4302 NEW_LINGUAS=
4303 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4304 case "$ALL_LINGUAS" in
4305 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4306 esac
4307 done
4308 LINGUAS=$NEW_LINGUAS
4309 echo "$ac_t""$LINGUAS" 1>&6
4310 fi
4311
4312 if test -n "$LINGUAS"; then
4313 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4314 fi
4315 fi
4316
4317 if test $ac_cv_header_locale_h = yes; then
4318 INCLUDE_LOCALE_H="#include <locale.h>"
4319 else
4320 INCLUDE_LOCALE_H="\
4321/* The system does not provide the header <locale.h>. Take care yourself. */"
4322 fi
4323
4324
4325 if test -f $srcdir/po2tbl.sed.in; then
4326 if test "$CATOBJEXT" = ".cat"; then
4327 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4328echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4329echo "configure:4330: checking for linux/version.h" >&5
4330if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332else
4333 cat > conftest.$ac_ext <<EOF
4334#include <sys/types.h>
4335#line 4336 "configure"
4336#include "confdefs.h"
4337#include <linux/version.h>
4338EOF
4339ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4340{ (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4341ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4342if test -z "$ac_err"; then
4343 rm -rf conftest*
4344 eval "ac_cv_header_$ac_safe=yes"
4345else
4346 echo "$ac_err" >&5
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4349 rm -rf conftest*
4350 eval "ac_cv_header_$ac_safe=no"
4351fi
4352rm -f conftest*
4353fi
4354if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 msgformat=linux
4357else
4358 echo "$ac_t""no" 1>&6
4359msgformat=xopen
4360fi
4361
4362
4363 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4364 fi
4365 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4366 $srcdir/po2tbl.sed.in > po2tbl.sed
4367 fi
4368
4369 if test "$PACKAGE" = "gettext"; then
4370 GT_NO="#NO#"
4371 GT_YES=
4372 else
4373 GT_NO=
4374 GT_YES="#YES#"
4375 fi
4376
4377
4378
4379 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4380
4381
4382 l=
4383
4384
4385 if test -f $srcdir/po/POTFILES.in; then
4386 test -d po || mkdir po
4387 if test "x$srcdir" != "x."; then
4388 if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
4389 posrcprefix="$srcdir/"
4390 else
4391 posrcprefix="../$srcdir/"
4392 fi
4393 else
4394 posrcprefix="../"
4395 fi
4396 rm -f po/POTFILES
4397 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4398 < $srcdir/po/POTFILES.in > po/POTFILES
4399 fi
4400
4401
4402
4403
4404
4405echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4406echo "configure:4407: checking for executable suffix" >&5
4407if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4409else
4410 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4411 ac_cv_exeext=.exe
4412else
4413 rm -f conftest*
4414 echo 'int main () { return 0; }' > conftest.$ac_ext
4415 ac_cv_exeext=
4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4417 for file in conftest.*; do
4418 case $file in
4419 *.c | *.o | *.obj) ;;
4420 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4421 esac
4422 done
4423 else
4424 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4425 fi
4426 rm -f conftest*
4427 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4428fi
4429fi
4430
4431EXEEXT=""
4432test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4433echo "$ac_t""${ac_cv_exeext}" 1>&6
4434ac_exeext=$EXEEXT
4435
4436
4437for ac_prog in 'bison -y' byacc
4438do
4439# Extract the first word of "$ac_prog", so it can be a program name with args.
4440set dummy $ac_prog; ac_word=$2
4441echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4442echo "configure:4443: checking for $ac_word" >&5
4443if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4445else
4446 if test -n "$YACC"; then
4447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4448else
4449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4450 ac_dummy="$PATH"
4451 for ac_dir in $ac_dummy; do
4452 test -z "$ac_dir" && ac_dir=.
4453 if test -f $ac_dir/$ac_word -o \
4454 -f $ac_dir/$ac_word$ac_exeext ; then
4455 ac_cv_prog_YACC="$ac_prog"
4456 break
4457 fi
4458 done
4459 IFS="$ac_save_ifs"
4460fi
4461fi
4462YACC="$ac_cv_prog_YACC"
4463if test -n "$YACC"; then
4464 echo "$ac_t""$YACC" 1>&6
4465else
4466 echo "$ac_t""no" 1>&6
4467fi
4468
4469test -n "$YACC" && break
4470done
4471test -n "$YACC" || YACC="yacc"
4472
4473missing_dir=`cd $ac_aux_dir && pwd`
4474for ac_prog in flex lex
4475do
4476# Extract the first word of "$ac_prog", so it can be a program name with args.
4477set dummy $ac_prog; ac_word=$2
4478echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4479echo "configure:4480: checking for $ac_word" >&5
4480if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482else
4483 if test -n "$LEX"; then
4484 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4485else
4486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4487 ac_dummy="$PATH"
4488 for ac_dir in $ac_dummy; do
4489 test -z "$ac_dir" && ac_dir=.
4490 if test -f $ac_dir/$ac_word -o \
4491 -f $ac_dir/$ac_word$ac_exeext ; then
4492 ac_cv_prog_LEX="$ac_prog"
4493 break
4494 fi
4495 done
4496 IFS="$ac_save_ifs"
4497fi
4498fi
4499LEX="$ac_cv_prog_LEX"
4500if test -n "$LEX"; then
4501 echo "$ac_t""$LEX" 1>&6
4502else
4503 echo "$ac_t""no" 1>&6
4504fi
4505
4506test -n "$LEX" && break
4507done
4508test -n "$LEX" || LEX=""$missing_dir/missing flex""
4509
4510# Extract the first word of "flex", so it can be a program name with args.
4511set dummy flex; ac_word=$2
4512echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4513echo "configure:4514: checking for $ac_word" >&5
4514if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4516else
4517 if test -n "$LEX"; then
4518 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4519else
4520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4521 ac_dummy="$PATH"
4522 for ac_dir in $ac_dummy; do
4523 test -z "$ac_dir" && ac_dir=.
4524 if test -f $ac_dir/$ac_word -o \
4525 -f $ac_dir/$ac_word$ac_exeext ; then
4526 ac_cv_prog_LEX="flex"
4527 break
4528 fi
4529 done
4530 IFS="$ac_save_ifs"
4531 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4532fi
4533fi
4534LEX="$ac_cv_prog_LEX"
4535if test -n "$LEX"; then
4536 echo "$ac_t""$LEX" 1>&6
4537else
4538 echo "$ac_t""no" 1>&6
4539fi
4540
4541if test -z "$LEXLIB"
4542then
4543 case "$LEX" in
4544 flex*) ac_lib=fl ;;
4545 *) ac_lib=l ;;
4546 esac
4547 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4548echo "configure:4549: checking for yywrap in -l$ac_lib" >&5
4549ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4550if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4552else
4553 ac_save_LIBS="$LIBS"
4554LIBS="-l$ac_lib $LIBS"
4555cat > conftest.$ac_ext <<EOF
4556#line 4557 "configure"
4557#include "confdefs.h"
4558/* Override any gcc2 internal prototype to avoid an error. */
4559/* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4561char yywrap();
4562
4563int main() {
4564yywrap()
4565; return 0; }
4566EOF
4567if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4568 rm -rf conftest*
4569 eval "ac_cv_lib_$ac_lib_var=yes"
4570else
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 rm -rf conftest*
4574 eval "ac_cv_lib_$ac_lib_var=no"
4575fi
4576rm -f conftest*
4577LIBS="$ac_save_LIBS"
4578
4579fi
4580if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 LEXLIB="-l$ac_lib"
4583else
4584 echo "$ac_t""no" 1>&6
4585fi
4586
4587fi
4588
4589echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4590echo "configure:4591: checking lex output file root" >&5
4591if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593else
4594 # The minimal lex program is just a single line: %%. But some broken lexes
4595# (Solaris, I think it was) want two %% lines, so accommodate them.
4596echo '%%
4597%%' | $LEX
4598if test -f lex.yy.c; then
4599 ac_cv_prog_lex_root=lex.yy
4600elif test -f lexyy.c; then
4601 ac_cv_prog_lex_root=lexyy
4602else
4603 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4604fi
4605fi
4606
4607echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4608LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4609
4610echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4611echo "configure:4612: checking whether yytext is a pointer" >&5
4612if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4614else
4615 # POSIX says lex can declare yytext either as a pointer or an array; the
4616# default is implementation-dependent. Figure out which it is, since
4617# not all implementations provide the %pointer and %array declarations.
4618ac_cv_prog_lex_yytext_pointer=no
4619echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4620ac_save_LIBS="$LIBS"
4621LIBS="$LIBS $LEXLIB"
4622cat > conftest.$ac_ext <<EOF
4623#line 4624 "configure"
4624#include "confdefs.h"
4625`cat $LEX_OUTPUT_ROOT.c`
4626int main() {
4627
4628; return 0; }
4629EOF
4630if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4631 rm -rf conftest*
4632 ac_cv_prog_lex_yytext_pointer=yes
4633else
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4636fi
4637rm -f conftest*
4638LIBS="$ac_save_LIBS"
4639rm -f "${LEX_OUTPUT_ROOT}.c"
4640
4641fi
4642
4643echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4644if test $ac_cv_prog_lex_yytext_pointer = yes; then
4645 cat >> confdefs.h <<\EOF
4646#define YYTEXT_POINTER 1
4647EOF
4648
4649fi
4650
4651
4652echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4653echo "configure:4654: checking whether to enable maintainer-specific portions of Makefiles" >&5
4654 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4655if test "${enable_maintainer_mode+set}" = set; then
4656 enableval="$enable_maintainer_mode"
4657 USE_MAINTAINER_MODE=$enableval
4658else
4659 USE_MAINTAINER_MODE=no
4660fi
4661
4662 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4663
4664
4665if test $USE_MAINTAINER_MODE = yes; then
4666 MAINTAINER_MODE_TRUE=
4667 MAINTAINER_MODE_FALSE='#'
4668else
4669 MAINTAINER_MODE_TRUE='#'
4670 MAINTAINER_MODE_FALSE=
4671fi
4672 MAINT=$MAINTAINER_MODE_TRUE
4673
4674
4675
4676. ${srcdir}/configure.host
4677
4678
4679
4680
4681
4682
4683for ac_hdr in string.h strings.h stdlib.h unistd.h
4684do
4685ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4686echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4687echo "configure:4688: checking for $ac_hdr" >&5
4688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4690else
4691 cat > conftest.$ac_ext <<EOF
4692#include <sys/types.h>
4693#line 4694 "configure"
4694#include "confdefs.h"
4695#include <$ac_hdr>
4696EOF
4697ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4698{ (eval echo configure:4699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4699ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4700if test -z "$ac_err"; then
4701 rm -rf conftest*
4702 eval "ac_cv_header_$ac_safe=yes"
4703else
4704 echo "$ac_err" >&5
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4707 rm -rf conftest*
4708 eval "ac_cv_header_$ac_safe=no"
4709fi
4710rm -f conftest*
4711fi
4712if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4715 cat >> confdefs.h <<EOF
4716#define $ac_tr_hdr 1
4717EOF
4718
4719else
4720 echo "$ac_t""no" 1>&6
4721fi
4722done
4723
4724for ac_func in sbrk realpath
4725do
4726echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4727echo "configure:4728: checking for $ac_func" >&5
4728if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4730else
4731 cat > conftest.$ac_ext <<EOF
4732#line 4733 "configure"
4733#include "confdefs.h"
4734/* System header to define __stub macros and hopefully few prototypes,
4735 which can conflict with char $ac_func(); below. */
4736#include <assert.h>
4737/* Override any gcc2 internal prototype to avoid an error. */
4738/* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4740char $ac_func();
4741
4742int main() {
4743
4744/* The GNU C library defines this for functions which it implements
4745 to always fail with ENOSYS. Some functions are actually named
4746 something starting with __ and the normal name is an alias. */
4747#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4748choke me
4749#else
4750$ac_func();
4751#endif
4752
4753; return 0; }
4754EOF
4755if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 rm -rf conftest*
4757 eval "ac_cv_func_$ac_func=yes"
4758else
4759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4761 rm -rf conftest*
4762 eval "ac_cv_func_$ac_func=no"
4763fi
4764rm -f conftest*
4765fi
4766
4767if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4770 cat >> confdefs.h <<EOF
4771#define $ac_tr_func 1
4772EOF
4773
4774else
4775 echo "$ac_t""no" 1>&6
4776fi
4777done
4778
4779ac_header_dirent=no
4780for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4781do
4782ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4783echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4784echo "configure:4785: checking for $ac_hdr that defines DIR" >&5
4785if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4787else
4788 cat > conftest.$ac_ext <<EOF
4789#line 4790 "configure"
4790#include "confdefs.h"
4791#include <sys/types.h>
4792#include <$ac_hdr>
4793int main() {
4794DIR *dirp = 0;
4795; return 0; }
4796EOF
4797if { (eval echo configure:4798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4798 rm -rf conftest*
4799 eval "ac_cv_header_dirent_$ac_safe=yes"
4800else
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4803 rm -rf conftest*
4804 eval "ac_cv_header_dirent_$ac_safe=no"
4805fi
4806rm -f conftest*
4807fi
4808if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4809 echo "$ac_t""yes" 1>&6
4810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4811 cat >> confdefs.h <<EOF
4812#define $ac_tr_hdr 1
4813EOF
4814 ac_header_dirent=$ac_hdr; break
4815else
4816 echo "$ac_t""no" 1>&6
4817fi
4818done
4819# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4820if test $ac_header_dirent = dirent.h; then
4821echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4822echo "configure:4823: checking for opendir in -ldir" >&5
4823ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4826else
4827 ac_save_LIBS="$LIBS"
4828LIBS="-ldir $LIBS"
4829cat > conftest.$ac_ext <<EOF
4830#line 4831 "configure"
4831#include "confdefs.h"
4832/* Override any gcc2 internal prototype to avoid an error. */
4833/* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4835char opendir();
4836
4837int main() {
4838opendir()
4839; return 0; }
4840EOF
4841if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 rm -rf conftest*
4843 eval "ac_cv_lib_$ac_lib_var=yes"
4844else
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 rm -rf conftest*
4848 eval "ac_cv_lib_$ac_lib_var=no"
4849fi
4850rm -f conftest*
4851LIBS="$ac_save_LIBS"
4852
4853fi
4854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4856 LIBS="$LIBS -ldir"
4857else
4858 echo "$ac_t""no" 1>&6
4859fi
4860
4861else
4862echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4863echo "configure:4864: checking for opendir in -lx" >&5
4864ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4865if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4867else
4868 ac_save_LIBS="$LIBS"
4869LIBS="-lx $LIBS"
4870cat > conftest.$ac_ext <<EOF
4871#line 4872 "configure"
4872#include "confdefs.h"
4873/* Override any gcc2 internal prototype to avoid an error. */
4874/* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876char opendir();
4877
4878int main() {
4879opendir()
4880; return 0; }
4881EOF
4882if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 rm -rf conftest*
4884 eval "ac_cv_lib_$ac_lib_var=yes"
4885else
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 rm -rf conftest*
4889 eval "ac_cv_lib_$ac_lib_var=no"
4890fi
4891rm -f conftest*
4892LIBS="$ac_save_LIBS"
4893
4894fi
4895if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 LIBS="$LIBS -lx"
4898else
4899 echo "$ac_t""no" 1>&6
4900fi
4901
4902fi
4903
4904
4905
4906case "${host}" in
4907*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*)
4908 cat >> confdefs.h <<\EOF
4909#define USE_BINARY_FOPEN 1
4910EOF
4911 ;;
4912esac
4913
4914echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4915echo "configure:4916: checking whether strstr must be declared" >&5
4916if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4918else
4919 cat > conftest.$ac_ext <<EOF
4920#line 4921 "configure"
4921#include "confdefs.h"
4922
4923#include <stdio.h>
4924#ifdef HAVE_STRING_H
4925#include <string.h>
4926#else
4927#ifdef HAVE_STRINGS_H
4928#include <strings.h>
4929#endif
4930#endif
4931#ifdef HAVE_STDLIB_H
4932#include <stdlib.h>
4933#endif
4934#ifdef HAVE_UNISTD_H
4935#include <unistd.h>
4936#endif
4937int main() {
4938char *(*pfn) = (char *(*)) strstr
4939; return 0; }
4940EOF
4941if { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4942 rm -rf conftest*
4943 bfd_cv_decl_needed_strstr=no
4944else
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4947 rm -rf conftest*
4948 bfd_cv_decl_needed_strstr=yes
4949fi
4950rm -f conftest*
4951fi
4952
4953echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4954if test $bfd_cv_decl_needed_strstr = yes; then
4955 cat >> confdefs.h <<\EOF
4956#define NEED_DECLARATION_STRSTR 1
4957EOF
4958
4959fi
4960
4961echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4962echo "configure:4963: checking whether free must be declared" >&5
4963if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4965else
4966 cat > conftest.$ac_ext <<EOF
4967#line 4968 "configure"
4968#include "confdefs.h"
4969
4970#include <stdio.h>
4971#ifdef HAVE_STRING_H
4972#include <string.h>
4973#else
4974#ifdef HAVE_STRINGS_H
4975#include <strings.h>
4976#endif
4977#endif
4978#ifdef HAVE_STDLIB_H
4979#include <stdlib.h>
4980#endif
4981#ifdef HAVE_UNISTD_H
4982#include <unistd.h>
4983#endif
4984int main() {
4985char *(*pfn) = (char *(*)) free
4986; return 0; }
4987EOF
4988if { (eval echo configure:4989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4989 rm -rf conftest*
4990 bfd_cv_decl_needed_free=no
4991else
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 rm -rf conftest*
4995 bfd_cv_decl_needed_free=yes
4996fi
4997rm -f conftest*
4998fi
4999
5000echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5001if test $bfd_cv_decl_needed_free = yes; then
5002 cat >> confdefs.h <<\EOF
5003#define NEED_DECLARATION_FREE 1
5004EOF
5005
5006fi
5007
5008echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5009echo "configure:5010: checking whether sbrk must be declared" >&5
5010if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5012else
5013 cat > conftest.$ac_ext <<EOF
5014#line 5015 "configure"
5015#include "confdefs.h"
5016
5017#include <stdio.h>
5018#ifdef HAVE_STRING_H
5019#include <string.h>
5020#else
5021#ifdef HAVE_STRINGS_H
5022#include <strings.h>
5023#endif
5024#endif
5025#ifdef HAVE_STDLIB_H
5026#include <stdlib.h>
5027#endif
5028#ifdef HAVE_UNISTD_H
5029#include <unistd.h>
5030#endif
5031int main() {
5032char *(*pfn) = (char *(*)) sbrk
5033; return 0; }
5034EOF
5035if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5036 rm -rf conftest*
5037 bfd_cv_decl_needed_sbrk=no
5038else
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5041 rm -rf conftest*
5042 bfd_cv_decl_needed_sbrk=yes
5043fi
5044rm -f conftest*
5045fi
5046
5047echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5048if test $bfd_cv_decl_needed_sbrk = yes; then
5049 cat >> confdefs.h <<\EOF
5050#define NEED_DECLARATION_SBRK 1
5051EOF
5052
5053fi
5054
5055echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5056echo "configure:5057: checking whether getenv must be declared" >&5
5057if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5059else
5060 cat > conftest.$ac_ext <<EOF
5061#line 5062 "configure"
5062#include "confdefs.h"
5063
5064#include <stdio.h>
5065#ifdef HAVE_STRING_H
5066#include <string.h>
5067#else
5068#ifdef HAVE_STRINGS_H
5069#include <strings.h>
5070#endif
5071#endif
5072#ifdef HAVE_STDLIB_H
5073#include <stdlib.h>
5074#endif
5075#ifdef HAVE_UNISTD_H
5076#include <unistd.h>
5077#endif
5078int main() {
5079char *(*pfn) = (char *(*)) getenv
5080; return 0; }
5081EOF
5082if { (eval echo configure:5083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5083 rm -rf conftest*
5084 bfd_cv_decl_needed_getenv=no
5085else
5086 echo "configure: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5088 rm -rf conftest*
5089 bfd_cv_decl_needed_getenv=yes
5090fi
5091rm -f conftest*
5092fi
5093
5094echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5095if test $bfd_cv_decl_needed_getenv = yes; then
5096 cat >> confdefs.h <<\EOF
5097#define NEED_DECLARATION_GETENV 1
5098EOF
5099
5100fi
5101
5102echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5103echo "configure:5104: checking whether environ must be declared" >&5
5104if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5106else
5107 cat > conftest.$ac_ext <<EOF
5108#line 5109 "configure"
5109#include "confdefs.h"
5110
5111#include <stdio.h>
5112#ifdef HAVE_STRING_H
5113#include <string.h>
5114#else
5115#ifdef HAVE_STRINGS_H
5116#include <strings.h>
5117#endif
5118#endif
5119#ifdef HAVE_STDLIB_H
5120#include <stdlib.h>
5121#endif
5122#ifdef HAVE_UNISTD_H
5123#include <unistd.h>
5124#endif
5125int main() {
5126char *(*pfn) = (char *(*)) environ
5127; return 0; }
5128EOF
5129if { (eval echo configure:5130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5130 rm -rf conftest*
5131 bfd_cv_decl_needed_environ=no
5132else
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5135 rm -rf conftest*
5136 bfd_cv_decl_needed_environ=yes
5137fi
5138rm -f conftest*
5139fi
5140
5141echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5142if test $bfd_cv_decl_needed_environ = yes; then
5143 cat >> confdefs.h <<\EOF
5144#define NEED_DECLARATION_ENVIRON 1
5145EOF
5146
5147fi
5148
5149
5150# When converting linker scripts into strings for use in emulation
5151# files, use astring.sed if the compiler supports ANSI string
5152# concatenation, or ostring.sed otherwise. This is to support the
5153# broken Microsoft MSVC compiler, which limits the length of string
5154# constants, while still supporting pre-ANSI compilers which do not
5155# support string concatenation.
5156echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
5157echo "configure:5158: checking whether ANSI C string concatenation works" >&5
5158if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5160else
5161 cat > conftest.$ac_ext <<EOF
5162#line 5163 "configure"
5163#include "confdefs.h"
5164
5165int main() {
5166char *a = "a" "a";
5167; return 0; }
5168EOF
5169if { (eval echo configure:5170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5170 rm -rf conftest*
5171 ld_cv_string_concatenation=yes
5172else
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 rm -rf conftest*
5176 ld_cv_string_concatenation=no
5177fi
5178rm -f conftest*
5179fi
5180
5181echo "$ac_t""$ld_cv_string_concatenation" 1>&6
5182if test "$ld_cv_string_concatenation" = "yes"; then
5183 STRINGIFY=astring.sed
5184else
5185 STRINGIFY=ostring.sed
5186fi
5187
5188
5189# target-specific stuff:
5190
5191all_targets=
5192EMUL=
5193all_emuls=
5194all_emul_extras=
5195all_libpath=
5196
5197rm -f tdirs
5198
5199for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5200do
5201 if test "$targ_alias" = "all"; then
5202 all_targets=true
5203 else
5204 # Canonicalize the secondary target names.
5205 result=`$ac_config_sub $targ_alias 2>/dev/null`
5206 if test -n "$result"; then
5207 targ=$result
5208 else
5209 targ=$targ_alias
5210 fi
5211
5212 . ${srcdir}/configure.tgt
5213
5214 if test "$targ" = "$target"; then
5215 EMUL=$targ_emul
5216 fi
5217
5218 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
5219 case " $all_emuls " in
5220 *" e${i}.o "*) ;;
5221 *)
5222 all_emuls="$all_emuls e${i}.o"
5223 eval result=\$tdir_$i
5224 test -z "$result" && result=$targ_alias
5225 echo tdir_$i=$result >> tdirs
5226 ;;
5227 esac
5228 done
5229
5230 for i in $targ_emul $targ_extra_libpath; do
5231 case " $all_libpath " in
5232 *" ${i} "*) ;;
5233 *)
5234 if test -z "$all_libpath"; then
5235 all_libpath=${i}
5236 else
5237 all_libpath="$all_libpath ${i}"
5238 fi
5239 ;;
5240 esac
5241 done
5242
5243 for i in $targ_extra_ofiles; do
5244 case " $all_emul_extras " in
5245 *" ${i} "*) ;;
5246 *)
5247 all_emul_extras="$all_emul_extras ${i}"
5248 ;;
5249 esac
5250 done
5251 fi
5252done
5253
5254
5255
5256TDIRS=tdirs
5257
5258
5259if test x${all_targets} = xtrue; then
5260 if test x${want64} = xtrue; then
5261 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5262 else
5263 EMULATION_OFILES='$(ALL_EMULATIONS)'
5264 fi
5265 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
5266else
5267 EMULATION_OFILES=$all_emuls
5268 EMUL_EXTRA_OFILES=$all_emul_extras
5269fi
5270
5271
5272
5273
5274EMULATION_LIBPATH=$all_libpath
5275
5276
5277if test x${enable_static} = xno; then
5278 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5279else
5280 TESTBFDLIB="../bfd/.libs/libbfd.a"
5281fi
5282
5283
5284target_vendor=${target_vendor=$host_vendor}
5285case "$target_vendor" in
5286 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
5287 *) EXTRA_SHLIB_EXTENSION= ;;
5288esac
5289if test x${EXTRA_SHLIB_EXTENSION} != x ; then
5290 cat >> confdefs.h <<EOF
5291#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5292EOF
5293
5294fi
5295
5296trap '' 1 2 15
5297cat > confcache <<\EOF
5298# This file is a shell script that caches the results of configure
5299# tests run on this system so they can be shared between configure
5300# scripts and configure runs. It is not useful on other systems.
5301# If it contains results you don't want to keep, you may remove or edit it.
5302#
5303# By default, configure uses ./config.cache as the cache file,
5304# creating it if it does not exist already. You can give configure
5305# the --cache-file=FILE option to use a different cache file; that is
5306# what configure does when it calls configure scripts in
5307# subdirectories, so they share the cache.
5308# Giving --cache-file=/dev/null disables caching, for debugging configure.
5309# config.status only pays attention to the cache file if you give it the
5310# --recheck option to rerun configure.
5311#
5312EOF
5313# The following way of writing the cache mishandles newlines in values,
5314# but we know of no workaround that is simple, portable, and efficient.
5315# So, don't put newlines in cache variables' values.
5316# Ultrix sh set writes to stderr and can't be redirected directly,
5317# and sets the high bit in the cache file unless we assign to the vars.
5318(set) 2>&1 |
5319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5320 *ac_space=\ *)
5321 # `set' does not quote correctly, so add quotes (double-quote substitution
5322 # turns \\\\ into \\, and sed turns \\ into \).
5323 sed -n \
5324 -e "s/'/'\\\\''/g" \
5325 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5326 ;;
5327 *)
5328 # `set' quotes correctly as required by POSIX, so do not add quotes.
5329 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5330 ;;
5331 esac >> confcache
5332if cmp -s $cache_file confcache; then
5333 :
5334else
5335 if test -w $cache_file; then
5336 echo "updating cache $cache_file"
5337 cat confcache > $cache_file
5338 else
5339 echo "not updating unwritable cache $cache_file"
5340 fi
5341fi
5342rm -f confcache
5343
5344trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5345
5346test "x$prefix" = xNONE && prefix=$ac_default_prefix
5347# Let make expand exec_prefix.
5348test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5349
5350# Any assignment to VPATH causes Sun make to only execute
5351# the first set of double-colon rules, so remove it if not needed.
5352# If there is a colon in the path, we need to keep it.
5353if test "x$srcdir" = x.; then
5354 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5355fi
5356
5357trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5358
5359DEFS=-DHAVE_CONFIG_H
5360
5361# Without the "./", some shells look in PATH for config.status.
5362: ${CONFIG_STATUS=./config.status}
5363
5364echo creating $CONFIG_STATUS
5365rm -f $CONFIG_STATUS
5366cat > $CONFIG_STATUS <<EOF
5367#! /bin/sh
5368# Generated automatically by configure.
5369# Run this file to recreate the current configuration.
5370# This directory was configured as follows,
5371EOF
5372echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
5373cat >> $CONFIG_STATUS <<EOF
5374# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5375#
5376# $0 $ac_configure_args
5377#
5378# Compiler output produced by configure, useful for debugging
5379# configure, is in ./config.log if it exists.
5380
5381ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5382for ac_option
5383do
5384 case "\$ac_option" in
5385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5386 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5387 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5388 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5389 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5390 exit 0 ;;
5391 -help | --help | --hel | --he | --h)
5392 echo "\$ac_cs_usage"; exit 0 ;;
5393 *) echo "\$ac_cs_usage"; exit 1 ;;
5394 esac
5395done
5396
5397ac_given_srcdir=$srcdir
5398ac_given_INSTALL="$INSTALL"
5399PATHIFS="$PATH_IFS"
5400
5401trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5402EOF
5403cat >> $CONFIG_STATUS <<EOF
5404
5405# Protect against being on the right side of a sed subst in config.status.
5406sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5407 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5408$ac_vpsub
5409$extrasub
5410s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
5411s%@SHELL@%$SHELL%g
5412s%@CFLAGS@%$CFLAGS%g
5413s%@CPPFLAGS@%$CPPFLAGS%g
5414s%@CXXFLAGS@%$CXXFLAGS%g
5415s%@FFLAGS@%$FFLAGS%g
5416s%@DEFS@%$DEFS%g
5417s%@LDFLAGS@%$LDFLAGS%g
5418s%@LIBS@%$LIBS%g
5419s%@exec_prefix@%$exec_prefix%g
5420s%@prefix@%$prefix%g
5421s%@program_transform_name@%$program_transform_name%g
5422s%@bindir@%$bindir%g
5423s%@sbindir@%$sbindir%g
5424s%@libexecdir@%$libexecdir%g
5425s%@datadir@%$datadir%g
5426s%@sysconfdir@%$sysconfdir%g
5427s%@sharedstatedir@%$sharedstatedir%g
5428s%@localstatedir@%$localstatedir%g
5429s%@libdir@%$libdir%g
5430s%@includedir@%$includedir%g
5431s%@oldincludedir@%$oldincludedir%g
5432s%@infodir@%$infodir%g
5433s%@mandir@%$mandir%g
5434s%@PATH_IFS@%$PATH_IFS%g
5435s%@EXEEXT@%$EXEEXT%g
5436s%@host@%$host%g
5437s%@host_alias@%$host_alias%g
5438s%@host_cpu@%$host_cpu%g
5439s%@host_vendor@%$host_vendor%g
5440s%@host_os@%$host_os%g
5441s%@target@%$target%g
5442s%@target_alias@%$target_alias%g
5443s%@target_cpu@%$target_cpu%g
5444s%@target_vendor@%$target_vendor%g
5445s%@target_os@%$target_os%g
5446s%@build@%$build%g
5447s%@build_alias@%$build_alias%g
5448s%@build_cpu@%$build_cpu%g
5449s%@build_vendor@%$build_vendor%g
5450s%@build_os@%$build_os%g
5451s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5452s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5453s%@INSTALL_DATA@%$INSTALL_DATA%g
5454s%@PACKAGE@%$PACKAGE%g
5455s%@VERSION@%$VERSION%g
5456s%@ACLOCAL@%$ACLOCAL%g
5457s%@AUTOCONF@%$AUTOCONF%g
5458s%@AUTOMAKE@%$AUTOMAKE%g
5459s%@AUTOHEADER@%$AUTOHEADER%g
5460s%@MAKEINFO@%$MAKEINFO%g
5461s%@SET_MAKE@%$SET_MAKE%g
5462s%@CC@%$CC%g
5463s%@LN_S@%$LN_S%g
5464s%@OBJEXT@%$OBJEXT%g
5465s%@RANLIB@%$RANLIB%g
5466s%@STRIP@%$STRIP%g
5467s%@LIBTOOL@%$LIBTOOL%g
5468s%@use_sysroot@%$use_sysroot%g
5469s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
5470s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
5471s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5472s%@CPP@%$CPP%g
5473s%@ALLOCA@%$ALLOCA%g
5474s%@USE_NLS@%$USE_NLS%g
5475s%@MSGFMT@%$MSGFMT%g
5476s%@GMSGFMT@%$GMSGFMT%g
5477s%@XGETTEXT@%$XGETTEXT%g
5478s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5479s%@CATALOGS@%$CATALOGS%g
5480s%@CATOBJEXT@%$CATOBJEXT%g
5481s%@DATADIRNAME@%$DATADIRNAME%g
5482s%@GMOFILES@%$GMOFILES%g
5483s%@INSTOBJEXT@%$INSTOBJEXT%g
5484s%@INTLDEPS@%$INTLDEPS%g
5485s%@INTLLIBS@%$INTLLIBS%g
5486s%@INTLOBJS@%$INTLOBJS%g
5487s%@POFILES@%$POFILES%g
5488s%@POSUB@%$POSUB%g
5489s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5490s%@GT_NO@%$GT_NO%g
5491s%@GT_YES@%$GT_YES%g
5492s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5493s%@l@%$l%g
5494s%@YACC@%$YACC%g
5495s%@LEX@%$LEX%g
5496s%@LEXLIB@%$LEXLIB%g
5497s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5498s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5499s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5500s%@MAINT@%$MAINT%g
5501s%@HDEFINES@%$HDEFINES%g
5502s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5503s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5504s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5505s%@STRINGIFY@%$STRINGIFY%g
5506s%@EMUL@%$EMUL%g
5507/@TDIRS@/r $TDIRS
5508s%@TDIRS@%%g
5509s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5510s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5511s%@LIB_PATH@%$LIB_PATH%g
5512s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5513s%@TESTBFDLIB@%$TESTBFDLIB%g
5514
5515CEOF
5516EOF
5517
5518cat >> $CONFIG_STATUS <<\EOF
5519
5520# Split the substitutions into bite-sized pieces for seds with
5521# small command number limits, like on Digital OSF/1 and HP-UX.
5522ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5523ac_file=1 # Number of current file.
5524ac_beg=1 # First line for current file.
5525ac_end=$ac_max_sed_cmds # Line after last line for current file.
5526ac_more_lines=:
5527ac_sed_cmds=""
5528while $ac_more_lines; do
5529 if test $ac_beg -gt 1; then
5530 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5531 else
5532 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5533 fi
5534 if test ! -s conftest.s$ac_file; then
5535 ac_more_lines=false
5536 rm -f conftest.s$ac_file
5537 else
5538 if test -z "$ac_sed_cmds"; then
5539 ac_sed_cmds="sed -f conftest.s$ac_file"
5540 else
5541 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5542 fi
5543 ac_file=`expr $ac_file + 1`
5544 ac_beg=$ac_end
5545 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5546 fi
5547done
5548if test -z "$ac_sed_cmds"; then
5549 ac_sed_cmds=cat
5550fi
5551EOF
5552
5553cat >> $CONFIG_STATUS <<EOF
5554
5555CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5556EOF
5557cat >> $CONFIG_STATUS <<\EOF
5558for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5559 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5560 case "$ac_file" in
5561 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5562 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5563 *) ac_file_in="${ac_file}.in" ;;
5564 esac
5565
5566 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5567
5568 # Remove last slash and all that follows it. Not all systems have dirname.
5569 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5570 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5571 # The file is in a subdirectory.
5572 test ! -d "$ac_dir" && mkdir "$ac_dir"
5573 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5574 # A "../" for each directory in $ac_dir_suffix.
5575 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5576 else
5577 ac_dir_suffix= ac_dots=
5578 fi
5579
5580 case "$ac_given_srcdir" in
5581 .) srcdir=.
5582 if test -z "$ac_dots"; then top_srcdir=.
5583 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5584 /* | [A-Za-z]:*)
5585 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5586 *) # Relative path.
5587 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5588 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5589 esac
5590
5591 case "$ac_given_INSTALL" in
5592 [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
5593 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5594 esac
5595
5596 echo creating "$ac_file"
5597 rm -f "$ac_file"
5598 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5599 case "$ac_file" in
5600 *Makefile*) ac_comsub="1i\\
5601# $configure_input" ;;
5602 *) ac_comsub= ;;
5603 esac
5604
5605 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
5606 sed -e "$ac_comsub
5607s%@configure_input@%$configure_input%g
5608s%@srcdir@%$srcdir%g
5609s%@top_srcdir@%$top_srcdir%g
5610s%@INSTALL@%$INSTALL%g
5611" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5612fi; done
5613rm -f conftest.s*
5614
5615# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5616# NAME is the cpp macro being defined and VALUE is the value it is being given.
5617#
5618# ac_d sets the value in "#define NAME VALUE" lines.
5619ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5620ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5621ac_dC='\3'
5622ac_dD='%g'
5623# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5624ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5625ac_uB='\([ ]\)%\1#\2define\3'
5626ac_uC=' '
5627ac_uD='\4%g'
5628# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5629ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5630ac_eB='$%\1#\2define\3'
5631ac_eC=' '
5632ac_eD='%g'
5633
5634if test "${CONFIG_HEADERS+set}" != set; then
5635EOF
5636cat >> $CONFIG_STATUS <<EOF
5637 CONFIG_HEADERS="config.h:config.in"
5638EOF
5639cat >> $CONFIG_STATUS <<\EOF
5640fi
5641for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5642 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5643 case "$ac_file" in
5644 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5645 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5646 *) ac_file_in="${ac_file}.in" ;;
5647 esac
5648
5649 echo creating $ac_file
5650
5651 rm -f conftest.frag conftest.in conftest.out
5652# kso the other way around might work better with drive letters and such.
5653# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5654 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
5655 cat $ac_file_inputs > conftest.in
5656
5657EOF
5658
5659# Transform confdefs.h into a sed script conftest.vals that substitutes
5660# the proper values into config.h.in to produce config.h. And first:
5661# Protect against being on the right side of a sed subst in config.status.
5662# Protect against being in an unquoted here document in config.status.
5663rm -f conftest.vals
5664cat > conftest.hdr <<\EOF
5665s/[\\&%]/\\&/g
5666s%[\\$`]%\\&%g
5667s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5668s%ac_d%ac_u%gp
5669s%ac_u%ac_e%gp
5670EOF
5671sed -n -f conftest.hdr confdefs.h > conftest.vals
5672rm -f conftest.hdr
5673
5674# This sed command replaces #undef with comments. This is necessary, for
5675# example, in the case of _POSIX_SOURCE, which is predefined and required
5676# on some systems where configure will not decide to define it.
5677cat >> conftest.vals <<\EOF
5678s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5679EOF
5680
5681# Break up conftest.vals because some shells have a limit on
5682# the size of here documents, and old seds have small limits too.
5683
5684rm -f conftest.tail
5685while :
5686do
5687 ac_lines=`grep -c . conftest.vals`
5688 # grep -c gives empty output for an empty file on some AIX systems.
5689 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5690 # Write a limited-size here document to conftest.frag.
5691 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5692 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5693 echo 'CEOF
5694 sed -f conftest.frag conftest.in > conftest.out
5695 rm -f conftest.in
5696 mv conftest.out conftest.in
5697' >> $CONFIG_STATUS
5698 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5699 rm -f conftest.vals
5700 mv conftest.tail conftest.vals
5701done
5702rm -f conftest.vals
5703
5704cat >> $CONFIG_STATUS <<\EOF
5705 rm -f conftest.frag conftest.h
5706 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5707 cat conftest.in >> conftest.h
5708 rm -f conftest.in
5709 if cmp -s $ac_file conftest.h 2>/dev/null; then
5710 echo "$ac_file is unchanged"
5711 rm -f conftest.h
5712 else
5713 # Remove last slash and all that follows it. Not all systems have dirname.
5714 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5715 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5716 # The file is in a subdirectory.
5717 test ! -d "$ac_dir" && mkdir "$ac_dir"
5718 fi
5719 rm -f $ac_file
5720 mv conftest.h $ac_file
5721 fi
5722fi; done
5723
5724EOF
5725cat >> $CONFIG_STATUS <<EOF
5726
5727
5728EOF
5729cat >> $CONFIG_STATUS <<\EOF
5730test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5731sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5732exit 0
5733EOF
5734chmod +x $CONFIG_STATUS
5735rm -fr confdefs* $ac_clean_files
5736test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5737
Note: See TracBrowser for help on using the repository browser.