source: branches/libc-0.6/src/binutils/opcodes/configure

Last change on this file was 1853, checked in by bird, 20 years ago

regenerated (intl)

  • Property cvs2svn:cvs-rev set to 1.9
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 154.1 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=no]"
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 --enable-targets alternative target configurations"
28ac_help="$ac_help
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
30ac_help="$ac_help
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
32ac_help="$ac_help
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
35ac_help="$ac_help
36 --enable-install-libbfd controls installation of libbfd and related headers"
37ac_help="$ac_help
38 --disable-nls do not use Native Language Support"
39ac_help="$ac_help
40 --with-included-gettext use the GNU gettext library included here"
41ac_help="$ac_help
42 --enable-cgen-maint[=dir] build cgen generated files"
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=z8k-dis.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# Extract the first word of "gcc", so it can be a program name with args.
814set dummy gcc; ac_word=$2
815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816echo "configure:817: checking for $ac_word" >&5
817if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
819else
820 if test -n "$CC"; then
821 ac_cv_prog_CC="$CC" # Let the user override the test.
822else
823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
824 ac_dummy="$PATH"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word -o \
828 -f $ac_dir/$ac_word$ac_exeext ; then
829 ac_cv_prog_CC="gcc"
830 break
831 fi
832 done
833 IFS="$ac_save_ifs"
834fi
835fi
836CC="$ac_cv_prog_CC"
837if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
839else
840 echo "$ac_t""no" 1>&6
841fi
842
843if test -z "$CC"; then
844 # Extract the first word of "cc", so it can be a program name with args.
845set dummy cc; ac_word=$2
846echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847echo "configure:848: checking for $ac_word" >&5
848if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
850else
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
853else
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
855 ac_prog_rejected=no
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word -o \
860 -f $ac_dir/$ac_word$ac_exeext ; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
862 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
863 ac_prog_rejected=yes
864 continue
865 fi
866 ac_cv_prog_CC="cc"
867 break
868 fi
869 done
870 IFS="$ac_save_ifs"
871if test $ac_prog_rejected = yes; then
872 # We found a bogon in the path, so make sure we never use it.
873 set dummy $ac_cv_prog_CC
874 shift
875 if test $# -gt 0; then
876 # We chose a different compiler from the bogus one.
877 # However, it has the same basename, so the bogon will be chosen
878 # first if we set CC to just the basename; use the full file name.
879 shift
880 set dummy "$ac_dir/$ac_word" "$@"
881 shift
882 ac_cv_prog_CC="$@"
883 fi
884fi
885fi
886fi
887CC="$ac_cv_prog_CC"
888if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
890else
891 echo "$ac_t""no" 1>&6
892fi
893
894 if test -z "$CC"; then
895 case "`uname -s`" in
896 *win32* | *WIN32*)
897 # Extract the first word of "cl", so it can be a program name with args.
898set dummy cl; ac_word=$2
899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900echo "configure:901: checking for $ac_word" >&5
901if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
903else
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
906else
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
908 ac_dummy="$PATH"
909 for ac_dir in $ac_dummy; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word -o \
912 -f $ac_dir/$ac_word$ac_exeext ; then
913 ac_cv_prog_CC="cl"
914 break
915 fi
916 done
917 IFS="$ac_save_ifs"
918fi
919fi
920CC="$ac_cv_prog_CC"
921if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
923else
924 echo "$ac_t""no" 1>&6
925fi
926 ;;
927 esac
928 fi
929 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930fi
931
932echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
933echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934
935ac_ext=c
936# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937ac_cpp='$CPP $CPPFLAGS'
938ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940cross_compiling=$ac_cv_prog_cc_cross
941
942cat > conftest.$ac_ext << EOF
943
944#line 945 "configure"
945#include "confdefs.h"
946
947main(){return(0);}
948EOF
949if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
950 ac_cv_prog_cc_works=yes
951 # If we can't run a trivial program, we are probably using a cross compiler.
952 if (./conftest; exit) 2>/dev/null; then
953 ac_cv_prog_cc_cross=no
954 else
955 ac_cv_prog_cc_cross=yes
956 fi
957else
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 ac_cv_prog_cc_works=no
961fi
962rm -fr conftest*
963ac_ext=c
964# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965ac_cpp='$CPP $CPPFLAGS'
966ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968cross_compiling=$ac_cv_prog_cc_cross
969
970echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
971if test $ac_cv_prog_cc_works = no; then
972 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
973fi
974echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
975echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
976echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
977cross_compiling=$ac_cv_prog_cc_cross
978
979echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
980echo "configure:981: checking whether we are using GNU C" >&5
981if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
983else
984 cat > conftest.c <<EOF
985#ifdef __GNUC__
986 yes;
987#endif
988EOF
989if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
990 ac_cv_prog_gcc=yes
991else
992 ac_cv_prog_gcc=no
993fi
994fi
995
996echo "$ac_t""$ac_cv_prog_gcc" 1>&6
997
998if test $ac_cv_prog_gcc = yes; then
999 GCC=yes
1000else
1001 GCC=
1002fi
1003
1004ac_test_CFLAGS="${CFLAGS+set}"
1005ac_save_CFLAGS="$CFLAGS"
1006CFLAGS=
1007echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1008echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
1009if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011else
1012 echo 'void f(){}' > conftest.c
1013if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1014 ac_cv_prog_cc_g=yes
1015else
1016 ac_cv_prog_cc_g=no
1017fi
1018rm -f conftest*
1019
1020fi
1021
1022echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1023if test "$ac_test_CFLAGS" = set; then
1024 CFLAGS="$ac_save_CFLAGS"
1025elif test $ac_cv_prog_cc_g = yes; then
1026 if test "$GCC" = yes; then
1027 CFLAGS="-g -O2"
1028 else
1029 CFLAGS="-g"
1030 fi
1031else
1032 if test "$GCC" = yes; then
1033 CFLAGS="-O2"
1034 else
1035 CFLAGS=
1036 fi
1037fi
1038
1039echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1040echo "configure:1041: checking for POSIXized ISC" >&5
1041if test -d /etc/conf/kconfig.d &&
1042 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1043then
1044 echo "$ac_t""yes" 1>&6
1045 ISC=yes # If later tests want to check for ISC.
1046 cat >> confdefs.h <<\EOF
1047#define _POSIX_SOURCE 1
1048EOF
1049
1050 if test "$GCC" = yes; then
1051 CC="$CC -posix"
1052 else
1053 CC="$CC -Xp"
1054 fi
1055else
1056 echo "$ac_t""no" 1>&6
1057 ISC=
1058fi
1059
1060
1061# We currently only use the version number for the name of any shared
1062# library. For user convenience, we always use the same version
1063# number that BFD is using.
1064BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
1065
1066am__api_version="1.4"
1067# Find a good install program. We prefer a C program (faster),
1068# so one script is as good as another. But avoid the broken or
1069# incompatible versions:
1070# SysV /etc/install, /usr/sbin/install
1071# SunOS /usr/etc/install
1072# IRIX /sbin/install
1073# AIX /bin/install
1074# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1075# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1076# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1077# ./install, which can be erroneously created by make from ./install.sh.
1078echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1079echo "configure:1080: checking for a BSD compatible install" >&5
1080if test -z "$INSTALL"; then
1081if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083else
1084 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1085 for ac_dir in $PATH; do
1086 # Account for people who put trailing slashes in PATH elements.
1087 case "$ac_dir/" in
1088 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1089 # We reject the install program from OS/2 or W3.1
1090 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1091 *)
1092 # OSF1 and SCO ODT 3.0 have their own names for install.
1093 # Don't use installbsd from OSF since it installs stuff as root
1094 # by default.
1095 for ac_prog in ginstall scoinst install; do
1096 if test -f $ac_dir/$ac_prog$ac_exeext; then
1097 if test $ac_prog = install &&
1098 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1099 # AIX install. It has an incompatible calling convention.
1100 :
1101 else
1102 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1103 break 2
1104 fi
1105 fi
1106 done
1107 ;;
1108 esac
1109 done
1110 IFS="$ac_save_IFS"
1111
1112fi
1113 if test "${ac_cv_path_install+set}" = set; then
1114 INSTALL="$ac_cv_path_install"
1115 else
1116 # As a last resort, use the slow shell script. We don't cache a
1117 # path for INSTALL within a source directory, because that will
1118 # break other packages using the cache if that directory is
1119 # removed, or if the path is relative.
1120 INSTALL="$ac_install_sh"
1121 fi
1122fi
1123echo "$ac_t""$INSTALL" 1>&6
1124
1125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1126# It thinks the first close brace ends the variable substitution.
1127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1128
1129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1130
1131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1132
1133echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1134echo "configure:1135: checking whether build environment is sane" >&5
1135# Just in case
1136sleep 1
1137echo timestamp > conftestfile
1138# Do `set' in a subshell so we don't clobber the current shell's
1139# arguments. Must try -L first in case configure is actually a
1140# symlink; some systems play weird games with the mod time of symlinks
1141# (eg FreeBSD returns the mod time of the symlink's containing
1142# directory).
1143if (
1144 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1145 if test "$*" = "X"; then
1146 # -L didn't work.
1147 set X `ls -t $srcdir/configure conftestfile`
1148 fi
1149 if test "$*" != "X $srcdir/configure conftestfile" \
1150 && test "$*" != "X conftestfile $srcdir/configure"; then
1151
1152 # If neither matched, then we have a broken ls. This can happen
1153 # if, for instance, CONFIG_SHELL is bash and it inherits a
1154 # broken ls alias from the environment. This has actually
1155 # happened. Such a system could not be considered "sane".
1156 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1157alias in your environment" 1>&2; exit 1; }
1158 fi
1159
1160 test "$2" = conftestfile
1161 )
1162then
1163 # Ok.
1164 :
1165else
1166 { echo "configure: error: newly created file is older than distributed files!
1167Check your system clock" 1>&2; exit 1; }
1168fi
1169rm -f conftest*
1170echo "$ac_t""yes" 1>&6
1171if test "$program_transform_name" = s,x,x,; then
1172 program_transform_name=
1173else
1174 # Double any \ or $. echo might interpret backslashes.
1175 cat <<\EOF_SED > conftestsed
1176s,\\,\\\\,g; s,\$,$$,g
1177EOF_SED
1178 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1179 rm -f conftestsed
1180fi
1181test "$program_prefix" != NONE &&
1182 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1183# Use a double $ so make ignores it.
1184test "$program_suffix" != NONE &&
1185 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1186
1187# sed with no file args requires a program.
1188test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1189
1190echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1191echo "configure:1192: checking whether ${MAKE-make} sets \${MAKE}" >&5
1192set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1193if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195else
1196 cat > conftestmake <<\EOF
1197all:
1198 @echo 'ac_maketemp="${MAKE}"'
1199EOF
1200# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1201eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1202if test -n "$ac_maketemp"; then
1203 eval ac_cv_prog_make_${ac_make}_set=yes
1204else
1205 eval ac_cv_prog_make_${ac_make}_set=no
1206fi
1207rm -f conftestmake
1208fi
1209if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1210 echo "$ac_t""yes" 1>&6
1211 SET_MAKE=
1212else
1213 echo "$ac_t""no" 1>&6
1214 SET_MAKE="MAKE=${MAKE-make}"
1215fi
1216
1217
1218PACKAGE=opcodes
1219
1220VERSION=${BFD_VERSION}
1221
1222if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1223 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1224fi
1225cat >> confdefs.h <<EOF
1226#define PACKAGE "$PACKAGE"
1227EOF
1228
1229cat >> confdefs.h <<EOF
1230#define VERSION "$VERSION"
1231EOF
1232
1233
1234
1235missing_dir=`cd $ac_aux_dir && pwd`
1236echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1237echo "configure:1238: checking for working aclocal-${am__api_version}" >&5
1238# Run test in a subshell; some versions of sh will print an error if
1239# an executable is not found, even if stderr is redirected.
1240# Redirect stdin to placate older versions of autoconf. Sigh.
1241if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1242 ACLOCAL=aclocal-${am__api_version}
1243 echo "$ac_t""found" 1>&6
1244else
1245 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1246 echo "$ac_t""missing" 1>&6
1247fi
1248
1249echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1250echo "configure:1251: checking for working autoconf" >&5
1251# Run test in a subshell; some versions of sh will print an error if
1252# an executable is not found, even if stderr is redirected.
1253# Redirect stdin to placate older versions of autoconf. Sigh.
1254if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1255 AUTOCONF=autoconf
1256 echo "$ac_t""found" 1>&6
1257else
1258 AUTOCONF="$missing_dir/missing autoconf"
1259 echo "$ac_t""missing" 1>&6
1260fi
1261
1262echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1263echo "configure:1264: checking for working automake-${am__api_version}" >&5
1264# Run test in a subshell; some versions of sh will print an error if
1265# an executable is not found, even if stderr is redirected.
1266# Redirect stdin to placate older versions of autoconf. Sigh.
1267if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1268 AUTOMAKE=automake-${am__api_version}
1269 echo "$ac_t""found" 1>&6
1270else
1271 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1272 echo "$ac_t""missing" 1>&6
1273fi
1274
1275echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1276echo "configure:1277: checking for working autoheader" >&5
1277# Run test in a subshell; some versions of sh will print an error if
1278# an executable is not found, even if stderr is redirected.
1279# Redirect stdin to placate older versions of autoconf. Sigh.
1280if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1281 AUTOHEADER=autoheader
1282 echo "$ac_t""found" 1>&6
1283else
1284 AUTOHEADER="$missing_dir/missing autoheader"
1285 echo "$ac_t""missing" 1>&6
1286fi
1287
1288echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1289echo "configure:1290: checking for working makeinfo" >&5
1290# Run test in a subshell; some versions of sh will print an error if
1291# an executable is not found, even if stderr is redirected.
1292# Redirect stdin to placate older versions of autoconf. Sigh.
1293if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1294 MAKEINFO=makeinfo
1295 echo "$ac_t""found" 1>&6
1296else
1297 MAKEINFO="$missing_dir/missing makeinfo"
1298 echo "$ac_t""missing" 1>&6
1299fi
1300
1301
1302
1303if test $host != $build; then
1304 ac_tool_prefix=${host_alias}-
1305else
1306 ac_tool_prefix=
1307fi
1308
1309# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1310set dummy ${ac_tool_prefix}ar; ac_word=$2
1311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312echo "configure:1313: checking for $ac_word" >&5
1313if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1315else
1316 if test -n "$AR"; then
1317 ac_cv_prog_AR="$AR" # Let the user override the test.
1318else
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1320 ac_dummy="$PATH"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word -o \
1324 -f $ac_dir/$ac_word$ac_exeext ; then
1325 ac_cv_prog_AR="${ac_tool_prefix}ar"
1326 break
1327 fi
1328 done
1329 IFS="$ac_save_ifs"
1330 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1331fi
1332fi
1333AR="$ac_cv_prog_AR"
1334if test -n "$AR"; then
1335 echo "$ac_t""$AR" 1>&6
1336else
1337 echo "$ac_t""no" 1>&6
1338fi
1339
1340
1341
1342# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1343set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1344echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345echo "configure:1346: checking for $ac_word" >&5
1346if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348else
1349 if test -n "$RANLIB"; then
1350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1351else
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1353 ac_dummy="$PATH"
1354 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/$ac_word -o \
1357 -f $ac_dir/$ac_word$ac_exeext ; then
1358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1359 break
1360 fi
1361 done
1362 IFS="$ac_save_ifs"
1363fi
1364fi
1365RANLIB="$ac_cv_prog_RANLIB"
1366if test -n "$RANLIB"; then
1367 echo "$ac_t""$RANLIB" 1>&6
1368else
1369 echo "$ac_t""no" 1>&6
1370fi
1371
1372
1373if test -z "$ac_cv_prog_RANLIB"; then
1374if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "ranlib", so it can be a program name with args.
1376set dummy ranlib; ac_word=$2
1377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378echo "configure:1379: checking for $ac_word" >&5
1379if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1381else
1382 if test -n "$RANLIB"; then
1383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1384else
1385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1386 ac_dummy="$PATH"
1387 for ac_dir in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word -o \
1390 -f $ac_dir/$ac_word$ac_exeext ; then
1391 ac_cv_prog_RANLIB="ranlib"
1392 break
1393 fi
1394 done
1395 IFS="$ac_save_ifs"
1396 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1397fi
1398fi
1399RANLIB="$ac_cv_prog_RANLIB"
1400if test -n "$RANLIB"; then
1401 echo "$ac_t""$RANLIB" 1>&6
1402else
1403 echo "$ac_t""no" 1>&6
1404fi
1405
1406else
1407 RANLIB=":"
1408fi
1409fi
1410
1411
1412# Check whether --enable-shared or --disable-shared was given.
1413if test "${enable_shared+set}" = set; then
1414 enableval="$enable_shared"
1415 p=${PACKAGE-default}
1416case $enableval in
1417yes) enable_shared=yes ;;
1418no) enable_shared=no ;;
1419*)
1420 enable_shared=no
1421 # Look at the argument we got. We use all the common list separators.
1422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1423 for pkg in $enableval; do
1424 if test "X$pkg" = "X$p"; then
1425 enable_shared=yes
1426 fi
1427 done
1428 IFS="$ac_save_ifs"
1429 ;;
1430esac
1431else
1432 enable_shared=no
1433fi
1434
1435
1436# Check whether --enable-static or --disable-static was given.
1437if test "${enable_static+set}" = set; then
1438 enableval="$enable_static"
1439 p=${PACKAGE-default}
1440case $enableval in
1441yes) enable_static=yes ;;
1442no) enable_static=no ;;
1443*)
1444 enable_static=no
1445 # Look at the argument we got. We use all the common list separators.
1446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1447 for pkg in $enableval; do
1448 if test "X$pkg" = "X$p"; then
1449 enable_static=yes
1450 fi
1451 done
1452 IFS="$ac_save_ifs"
1453 ;;
1454esac
1455else
1456 enable_static=yes
1457fi
1458
1459# Check whether --enable-fast-install or --disable-fast-install was given.
1460if test "${enable_fast_install+set}" = set; then
1461 enableval="$enable_fast_install"
1462 p=${PACKAGE-default}
1463case $enableval in
1464yes) enable_fast_install=yes ;;
1465no) enable_fast_install=no ;;
1466*)
1467 enable_fast_install=no
1468 # Look at the argument we got. We use all the common list separators.
1469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1470 for pkg in $enableval; do
1471 if test "X$pkg" = "X$p"; then
1472 enable_fast_install=yes
1473 fi
1474 done
1475 IFS="$ac_save_ifs"
1476 ;;
1477esac
1478else
1479 enable_fast_install=yes
1480fi
1481
1482# Check whether --with-gnu-ld or --without-gnu-ld was given.
1483if test "${with_gnu_ld+set}" = set; then
1484 withval="$with_gnu_ld"
1485 test "$withval" = no || with_gnu_ld=yes
1486else
1487 with_gnu_ld=no
1488fi
1489
1490ac_prog=ld
1491if test "$GCC" = yes; then
1492 # Check if gcc -print-prog-name=ld gives a path.
1493 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1494echo "configure:1495: checking for ld used by GCC" >&5
1495 case $host in
1496 *-*-mingw*)
1497 # gcc leaves a trailing carriage return which upsets mingw
1498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1499 *)
1500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1501 esac
1502 case $ac_prog in
1503 # Accept absolute paths.
1504 [\\/]* | [A-Za-z]:[\\/]*)
1505 re_direlt='/[^/][^/]*/\.\./'
1506 # Canonicalize the path of ld
1507 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1508 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1509 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1510 done
1511 test -z "$LD" && LD="$ac_prog"
1512 ;;
1513 "")
1514 # If it fails, then pretend we aren't using GCC.
1515 ac_prog=ld
1516 ;;
1517 *)
1518 # If it is relative, then search for the first ld in PATH.
1519 with_gnu_ld=unknown
1520 ;;
1521 esac
1522elif test "$with_gnu_ld" = yes; then
1523 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1524echo "configure:1525: checking for GNU ld" >&5
1525else
1526 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1527echo "configure:1528: checking for non-GNU ld" >&5
1528fi
1529if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531else
1532 if test -z "$LD"; then
1533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1534 for ac_dir in $PATH; do
1535 test -z "$ac_dir" && ac_dir=.
1536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1537 lt_cv_path_LD="$ac_dir/$ac_prog"
1538 # Check to see if the program is GNU ld. I'd rather use --version,
1539 # but apparently some GNU ld's only accept -v.
1540 # Break only if it was the GNU/non-GNU ld that we prefer.
1541 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1542 test "$with_gnu_ld" != no && break
1543 else
1544 test "$with_gnu_ld" != yes && break
1545 fi
1546 fi
1547 done
1548 IFS="$ac_save_ifs"
1549else
1550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1551fi
1552fi
1553
1554LD="$lt_cv_path_LD"
1555if test -n "$LD"; then
1556 echo "$ac_t""$LD" 1>&6
1557else
1558 echo "$ac_t""no" 1>&6
1559fi
1560test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1561echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1562echo "configure:1563: checking if the linker ($LD) is GNU ld" >&5
1563if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565else
1566 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1567if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1568 lt_cv_prog_gnu_ld=yes
1569else
1570 lt_cv_prog_gnu_ld=no
1571fi
1572fi
1573
1574echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1575with_gnu_ld=$lt_cv_prog_gnu_ld
1576
1577
1578echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1579echo "configure:1580: checking for $LD option to reload object files" >&5
1580if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1582else
1583 lt_cv_ld_reload_flag='-r'
1584fi
1585
1586echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1587reload_flag=$lt_cv_ld_reload_flag
1588test -n "$reload_flag" && reload_flag=" $reload_flag"
1589
1590echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1591echo "configure:1592: checking for BSD-compatible nm" >&5
1592if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594else
1595 if test -n "$NM"; then
1596 # Let the user override the test.
1597 lt_cv_path_NM="$NM"
1598else
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1600 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1601 test -z "$ac_dir" && ac_dir=.
1602 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1603 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1604 # Check to see if the nm accepts a BSD-compat flag.
1605 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1606 # nm: unknown option "B" ignored
1607 # Tru64's nm complains that /dev/null is an invalid object file
1608 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1609 lt_cv_path_NM="$tmp_nm -B"
1610 break
1611 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1612 lt_cv_path_NM="$tmp_nm -p"
1613 break
1614 else
1615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1616 continue # so that we can try to find one that supports BSD flags
1617 fi
1618 fi
1619 done
1620 IFS="$ac_save_ifs"
1621 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1622fi
1623fi
1624
1625NM="$lt_cv_path_NM"
1626echo "$ac_t""$NM" 1>&6
1627
1628echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1629echo "configure:1630: checking whether ln -s works" >&5
1630if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1632else
1633 rm -f conftestdata
1634if ln -s X conftestdata 2>/dev/null
1635then
1636 rm -f conftestdata
1637 ac_cv_prog_LN_S="ln -s"
1638else
1639 echo A > conftestdata;
1640 if ln conftestdata conftestdata2 2>/dev/null; then
1641 ac_cv_prog_LN_S=ln
1642 else
1643 ac_cv_prog_LN_S=cp
1644 fi
1645fi
1646rm -f conftestdata*
1647fi
1648LN_S="$ac_cv_prog_LN_S"
1649if test "$ac_cv_prog_LN_S" = "ln -s"; then
1650 echo "$ac_t""yes" 1>&6
1651else
1652 echo "$ac_t""no" 1>&6
1653fi
1654
1655echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1656echo "configure:1657: checking how to recognise dependant libraries" >&5
1657if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1659else
1660 lt_cv_file_magic_cmd='$MAGIC_CMD'
1661lt_cv_file_magic_test_file=
1662lt_cv_deplibs_check_method='unknown'
1663# Need to set the preceding variable on all platforms that support
1664# interlibrary dependencies.
1665# 'none' -- dependencies not supported.
1666# `unknown' -- same as none, but documents that we really don't know.
1667# 'pass_all' -- all dependencies passed with no checks.
1668# 'test_compile' -- check by making test program.
1669# 'file_magic [regex]' -- check by looking for files in library path
1670# which responds to the $file_magic_cmd with a given egrep regex.
1671# If you have `file' or equivalent on your system and you're not sure
1672# whether `pass_all' will *always* work, you probably want this one.
1673
1674case $host_os in
1675aix*)
1676 lt_cv_deplibs_check_method=pass_all
1677 ;;
1678
1679beos*)
1680 lt_cv_deplibs_check_method=pass_all
1681 ;;
1682
1683bsdi4*)
1684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1685 lt_cv_file_magic_cmd='/usr/bin/file -L'
1686 lt_cv_file_magic_test_file=/shlib/libc.so
1687 ;;
1688
1689cygwin* | mingw* |pw32*)
1690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1691 lt_cv_file_magic_cmd='$OBJDUMP -f'
1692 ;;
1693
1694darwin* | rhapsody*)
1695 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1696 lt_cv_file_magic_cmd='/usr/bin/file -L'
1697 case "$host_os" in
1698 rhapsody* | darwin1.012)
1699 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1700 ;;
1701 *) # Darwin 1.3 on
1702 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1703 ;;
1704 esac
1705 ;;
1706
1707freebsd* )
1708 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1709 case $host_cpu in
1710 i*86 )
1711 # Not sure whether the presence of OpenBSD here was a mistake.
1712 # Let's accept both of them until this is cleared up.
1713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1714 lt_cv_file_magic_cmd=/usr/bin/file
1715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1716 ;;
1717 esac
1718 else
1719 lt_cv_deplibs_check_method=pass_all
1720 fi
1721 ;;
1722
1723gnu*)
1724 lt_cv_deplibs_check_method=pass_all
1725 ;;
1726
1727hpux10.20*|hpux11*)
1728 case $host_cpu in
1729 hppa*)
1730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1731 lt_cv_file_magic_cmd=/usr/bin/file
1732 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1733 ;;
1734 ia64*)
1735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1736 lt_cv_file_magic_cmd=/usr/bin/file
1737 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1738 ;;
1739 esac
1740 ;;
1741
1742irix5* | irix6*)
1743 case $host_os in
1744 irix5*)
1745 # this will be overridden with pass_all, but let us keep it just in case
1746 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1747 ;;
1748 *)
1749 case $LD in
1750 *-32|*"-32 ") libmagic=32-bit;;
1751 *-n32|*"-n32 ") libmagic=N32;;
1752 *-64|*"-64 ") libmagic=64-bit;;
1753 *) libmagic=never-match;;
1754 esac
1755 # this will be overridden with pass_all, but let us keep it just in case
1756 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1757 ;;
1758 esac
1759 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1760 lt_cv_deplibs_check_method=pass_all
1761 ;;
1762
1763# This must be Linux ELF.
1764linux-gnu*)
1765 case $host_cpu in
1766 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1767 lt_cv_deplibs_check_method=pass_all ;;
1768 *)
1769 # glibc up to 2.1.1 does not perform some relocations on ARM
1770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1771 esac
1772 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1773 ;;
1774
1775netbsd*)
1776 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1777 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1778 else
1779 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1780 fi
1781 ;;
1782
1783newsos6)
1784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1785 lt_cv_file_magic_cmd=/usr/bin/file
1786 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1787 ;;
1788
1789os2*)
1790 lt_cv_deplibs_check_method=pass_all
1791 ;;
1792
1793osf3* | osf4* | osf5*)
1794 # this will be overridden with pass_all, but let us keep it just in case
1795 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1796 lt_cv_file_magic_test_file=/shlib/libc.so
1797 lt_cv_deplibs_check_method=pass_all
1798 ;;
1799
1800sco3.2v5*)
1801 lt_cv_deplibs_check_method=pass_all
1802 ;;
1803
1804solaris*)
1805 lt_cv_deplibs_check_method=pass_all
1806 lt_cv_file_magic_test_file=/lib/libc.so
1807 ;;
1808
1809sysv5uw[78]* | sysv4*uw2*)
1810 lt_cv_deplibs_check_method=pass_all
1811 ;;
1812
1813sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1814 case $host_vendor in
1815 ncr)
1816 lt_cv_deplibs_check_method=pass_all
1817 ;;
1818 motorola)
1819 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]'
1820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1821 ;;
1822 esac
1823 ;;
1824esac
1825
1826fi
1827
1828echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1829file_magic_cmd=$lt_cv_file_magic_cmd
1830deplibs_check_method=$lt_cv_deplibs_check_method
1831
1832echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1833echo "configure:1834: checking for object suffix" >&5
1834if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836else
1837 rm -f conftest*
1838echo 'int i = 1;' > conftest.$ac_ext
1839if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1840 for ac_file in conftest.*; do
1841 case $ac_file in
1842 *.c) ;;
1843 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1844 esac
1845 done
1846else
1847 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1848fi
1849rm -f conftest*
1850fi
1851
1852echo "$ac_t""$ac_cv_objext" 1>&6
1853OBJEXT=$ac_cv_objext
1854ac_objext=$ac_cv_objext
1855
1856# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1857
1858# Only perform the check for file, if the check method requires it
1859case $deplibs_check_method in
1860file_magic*)
1861 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1862 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1863echo "configure:1864: checking for ${ac_tool_prefix}file" >&5
1864if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866else
1867 case $MAGIC_CMD in
1868 /*)
1869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1870 ;;
1871 ?:/*)
1872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1873 ;;
1874 *)
1875 ac_save_MAGIC_CMD="$MAGIC_CMD"
1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1877 ac_dummy="/usr/bin:$PATH"
1878 for ac_dir in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir=.
1880 if test -f $ac_dir/${ac_tool_prefix}file; then
1881 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1882 if test -n "$file_magic_test_file"; then
1883 case $deplibs_check_method in
1884 "file_magic "*)
1885 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1888 egrep "$file_magic_regex" > /dev/null; then
1889 :
1890 else
1891 cat <<EOF 1>&2
1892
1893*** Warning: the command libtool uses to detect shared libraries,
1894*** $file_magic_cmd, produces output that libtool cannot recognize.
1895*** The result is that libtool may fail to recognize shared libraries
1896*** as such. This will affect the creation of libtool libraries that
1897*** depend on shared libraries, but programs linked with such libtool
1898*** libraries will work regardless of this problem. Nevertheless, you
1899*** may want to report the problem to your system manager and/or to
1900*** bug-libtool@gnu.org
1901
1902EOF
1903 fi ;;
1904 esac
1905 fi
1906 break
1907 fi
1908 done
1909 IFS="$ac_save_ifs"
1910 MAGIC_CMD="$ac_save_MAGIC_CMD"
1911 ;;
1912esac
1913fi
1914
1915MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1916if test -n "$MAGIC_CMD"; then
1917 echo "$ac_t""$MAGIC_CMD" 1>&6
1918else
1919 echo "$ac_t""no" 1>&6
1920fi
1921
1922if test -z "$lt_cv_path_MAGIC_CMD"; then
1923 if test -n "$ac_tool_prefix"; then
1924 echo $ac_n "checking for file""... $ac_c" 1>&6
1925echo "configure:1926: checking for file" >&5
1926if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1928else
1929 case $MAGIC_CMD in
1930 /*)
1931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1932 ;;
1933 ?:/*)
1934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1935 ;;
1936 *)
1937 ac_save_MAGIC_CMD="$MAGIC_CMD"
1938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1939 ac_dummy="/usr/bin:$PATH"
1940 for ac_dir in $ac_dummy; do
1941 test -z "$ac_dir" && ac_dir=.
1942 if test -f $ac_dir/file; then
1943 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1944 if test -n "$file_magic_test_file"; then
1945 case $deplibs_check_method in
1946 "file_magic "*)
1947 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1950 egrep "$file_magic_regex" > /dev/null; then
1951 :
1952 else
1953 cat <<EOF 1>&2
1954
1955*** Warning: the command libtool uses to detect shared libraries,
1956*** $file_magic_cmd, produces output that libtool cannot recognize.
1957*** The result is that libtool may fail to recognize shared libraries
1958*** as such. This will affect the creation of libtool libraries that
1959*** depend on shared libraries, but programs linked with such libtool
1960*** libraries will work regardless of this problem. Nevertheless, you
1961*** may want to report the problem to your system manager and/or to
1962*** bug-libtool@gnu.org
1963
1964EOF
1965 fi ;;
1966 esac
1967 fi
1968 break
1969 fi
1970 done
1971 IFS="$ac_save_ifs"
1972 MAGIC_CMD="$ac_save_MAGIC_CMD"
1973 ;;
1974esac
1975fi
1976
1977MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1978if test -n "$MAGIC_CMD"; then
1979 echo "$ac_t""$MAGIC_CMD" 1>&6
1980else
1981 echo "$ac_t""no" 1>&6
1982fi
1983
1984 else
1985 MAGIC_CMD=:
1986 fi
1987fi
1988
1989 fi
1990 ;;
1991esac
1992
1993# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1996echo "configure:1997: checking for $ac_word" >&5
1997if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
1999else
2000 if test -n "$RANLIB"; then
2001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2002else
2003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2004 ac_dummy="$PATH"
2005 for ac_dir in $ac_dummy; do
2006 test -z "$ac_dir" && ac_dir=.
2007 if test -f $ac_dir/$ac_word -o \
2008 -f $ac_dir/$ac_word$ac_exeext ; then
2009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2010 break
2011 fi
2012 done
2013 IFS="$ac_save_ifs"
2014fi
2015fi
2016RANLIB="$ac_cv_prog_RANLIB"
2017if test -n "$RANLIB"; then
2018 echo "$ac_t""$RANLIB" 1>&6
2019else
2020 echo "$ac_t""no" 1>&6
2021fi
2022
2023
2024if test -z "$ac_cv_prog_RANLIB"; then
2025if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "ranlib", so it can be a program name with args.
2027set dummy ranlib; ac_word=$2
2028echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029echo "configure:2030: checking for $ac_word" >&5
2030if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2032else
2033 if test -n "$RANLIB"; then
2034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2035else
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2037 ac_dummy="$PATH"
2038 for ac_dir in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir=.
2040 if test -f $ac_dir/$ac_word -o \
2041 -f $ac_dir/$ac_word$ac_exeext ; then
2042 ac_cv_prog_RANLIB="ranlib"
2043 break
2044 fi
2045 done
2046 IFS="$ac_save_ifs"
2047 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2048fi
2049fi
2050RANLIB="$ac_cv_prog_RANLIB"
2051if test -n "$RANLIB"; then
2052 echo "$ac_t""$RANLIB" 1>&6
2053else
2054 echo "$ac_t""no" 1>&6
2055fi
2056
2057else
2058 RANLIB=":"
2059fi
2060fi
2061
2062# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2063set dummy ${ac_tool_prefix}strip; ac_word=$2
2064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065echo "configure:2066: checking for $ac_word" >&5
2066if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068else
2069 if test -n "$STRIP"; then
2070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2071else
2072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2073 ac_dummy="$PATH"
2074 for ac_dir in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir=.
2076 if test -f $ac_dir/$ac_word -o \
2077 -f $ac_dir/$ac_word$ac_exeext ; then
2078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2079 break
2080 fi
2081 done
2082 IFS="$ac_save_ifs"
2083fi
2084fi
2085STRIP="$ac_cv_prog_STRIP"
2086if test -n "$STRIP"; then
2087 echo "$ac_t""$STRIP" 1>&6
2088else
2089 echo "$ac_t""no" 1>&6
2090fi
2091
2092
2093if test -z "$ac_cv_prog_STRIP"; then
2094if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "strip", so it can be a program name with args.
2096set dummy strip; ac_word=$2
2097echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2098echo "configure:2099: checking for $ac_word" >&5
2099if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101else
2102 if test -n "$STRIP"; then
2103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2104else
2105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2106 ac_dummy="$PATH"
2107 for ac_dir in $ac_dummy; do
2108 test -z "$ac_dir" && ac_dir=.
2109 if test -f $ac_dir/$ac_word -o \
2110 -f $ac_dir/$ac_word$ac_exeext ; then
2111 ac_cv_prog_STRIP="strip"
2112 break
2113 fi
2114 done
2115 IFS="$ac_save_ifs"
2116 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2117fi
2118fi
2119STRIP="$ac_cv_prog_STRIP"
2120if test -n "$STRIP"; then
2121 echo "$ac_t""$STRIP" 1>&6
2122else
2123 echo "$ac_t""no" 1>&6
2124fi
2125
2126else
2127 STRIP=":"
2128fi
2129fi
2130
2131
2132# Check for any special flags to pass to ltconfig.
2133libtool_flags="--cache-file=$cache_file"
2134test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2135test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2136test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2137test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2138test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2139
2140
2141# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2142if test "${enable_libtool_lock+set}" = set; then
2143 enableval="$enable_libtool_lock"
2144 :
2145fi
2146
2147test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2148test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2149
2150# Check whether --with-pic or --without-pic was given.
2151if test "${with_pic+set}" = set; then
2152 withval="$with_pic"
2153 pic_mode="$withval"
2154else
2155 pic_mode=default
2156fi
2157
2158test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2159test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2160
2161# Some flags need to be propagated to the compiler or linker for good
2162# libtool support.
2163case $host in
2164*-*-irix6*)
2165 # Find out which ABI we are using.
2166 echo '#line 2167 "configure"' > conftest.$ac_ext
2167 if { (eval echo configure:2168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2168 if test "$lt_cv_prog_gnu_ld" = yes; then
2169 case `/usr/bin/file conftest.$ac_objext` in
2170 *32-bit*)
2171 LD="${LD-ld} -melf32bsmip"
2172 ;;
2173 *N32*)
2174 LD="${LD-ld} -melf32bmipn32"
2175 ;;
2176 *64-bit*)
2177 LD="${LD-ld} -melf64bmip"
2178 ;;
2179 esac
2180 else
2181 case `/usr/bin/file conftest.$ac_objext` in
2182 *32-bit*)
2183 LD="${LD-ld} -32"
2184 ;;
2185 *N32*)
2186 LD="${LD-ld} -n32"
2187 ;;
2188 *64-bit*)
2189 LD="${LD-ld} -64"
2190 ;;
2191 esac
2192 fi
2193 fi
2194 rm -rf conftest*
2195 ;;
2196
2197ia64-*-hpux*)
2198 # Find out which ABI we are using.
2199 echo 'int i;' > conftest.$ac_ext
2200 if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 case "`/usr/bin/file conftest.o`" in
2202 *ELF-32*)
2203 HPUX_IA64_MODE="32"
2204 ;;
2205 *ELF-64*)
2206 HPUX_IA64_MODE="64"
2207 ;;
2208 esac
2209 fi
2210 rm -rf conftest*
2211 ;;
2212
2213*-*-sco3.2v5*)
2214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2215 SAVE_CFLAGS="$CFLAGS"
2216 CFLAGS="$CFLAGS -belf"
2217 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2218echo "configure:2219: checking whether the C compiler needs -belf" >&5
2219if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221else
2222
2223 ac_ext=c
2224# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2225ac_cpp='$CPP $CPPFLAGS'
2226ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2227ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2228cross_compiling=$ac_cv_prog_cc_cross
2229
2230 cat > conftest.$ac_ext <<EOF
2231#line 2232 "configure"
2232#include "confdefs.h"
2233
2234int main() {
2235
2236; return 0; }
2237EOF
2238if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239 rm -rf conftest*
2240 lt_cv_cc_needs_belf=yes
2241else
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 rm -rf conftest*
2245 lt_cv_cc_needs_belf=no
2246fi
2247rm -f conftest*
2248 ac_ext=c
2249# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2250ac_cpp='$CPP $CPPFLAGS'
2251ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2252ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2253cross_compiling=$ac_cv_prog_cc_cross
2254
2255fi
2256
2257echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2258 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2259 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2260 CFLAGS="$SAVE_CFLAGS"
2261 fi
2262 ;;
2263
2264
2265esac
2266
2267
2268# Save cache, so that ltconfig can load it
2269cat > confcache <<\EOF
2270# This file is a shell script that caches the results of configure
2271# tests run on this system so they can be shared between configure
2272# scripts and configure runs. It is not useful on other systems.
2273# If it contains results you don't want to keep, you may remove or edit it.
2274#
2275# By default, configure uses ./config.cache as the cache file,
2276# creating it if it does not exist already. You can give configure
2277# the --cache-file=FILE option to use a different cache file; that is
2278# what configure does when it calls configure scripts in
2279# subdirectories, so they share the cache.
2280# Giving --cache-file=/dev/null disables caching, for debugging configure.
2281# config.status only pays attention to the cache file if you give it the
2282# --recheck option to rerun configure.
2283#
2284EOF
2285# The following way of writing the cache mishandles newlines in values,
2286# but we know of no workaround that is simple, portable, and efficient.
2287# So, don't put newlines in cache variables' values.
2288# Ultrix sh set writes to stderr and can't be redirected directly,
2289# and sets the high bit in the cache file unless we assign to the vars.
2290(set) 2>&1 |
2291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2292 *ac_space=\ *)
2293 # `set' does not quote correctly, so add quotes (double-quote substitution
2294 # turns \\\\ into \\, and sed turns \\ into \).
2295 sed -n \
2296 -e "s/'/'\\\\''/g" \
2297 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2298 ;;
2299 *)
2300 # `set' quotes correctly as required by POSIX, so do not add quotes.
2301 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2302 ;;
2303 esac >> confcache
2304if cmp -s $cache_file confcache; then
2305 :
2306else
2307 if test -w $cache_file; then
2308 echo "updating cache $cache_file"
2309 cat confcache > $cache_file
2310 else
2311 echo "not updating unwritable cache $cache_file"
2312 fi
2313fi
2314rm -f confcache
2315
2316
2317# Actually configure libtool. ac_aux_dir is where install-sh is found.
2318AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2319MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2320LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2321AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2322objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2323deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2324${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2325$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2326|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2327
2328# Reload cache, that may have been modified by ltconfig
2329if test -r "$cache_file"; then
2330 echo "loading cache $cache_file"
2331 . $cache_file
2332else
2333 echo "creating cache $cache_file"
2334 > $cache_file
2335fi
2336
2337
2338# This can be used to rebuild libtool when needed
2339LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2340
2341# Always use our own libtool.
2342LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2343
2344# Redirect the config.log output again, so that the ltconfig log is not
2345# clobbered by the next message.
2346exec 5>>./config.log
2347
2348
2349
2350
2351
2352
2353
2354# Check whether --enable-targets or --disable-targets was given.
2355if test "${enable_targets+set}" = set; then
2356 enableval="$enable_targets"
2357 case "${enableval}" in
2358 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2359 ;;
2360 no) enable_targets= ;;
2361 *) enable_targets=$enableval ;;
2362esac
2363fi
2364# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2365if test "${enable_commonbfdlib+set}" = set; then
2366 enableval="$enable_commonbfdlib"
2367 case "${enableval}" in
2368 yes) commonbfdlib=true ;;
2369 no) commonbfdlib=false ;;
2370 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2371esac
2372fi
2373
2374build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2375# Check whether --enable-build-warnings or --disable-build-warnings was given.
2376if test "${enable_build_warnings+set}" = set; then
2377 enableval="$enable_build_warnings"
2378 case "${enableval}" in
2379 yes) ;;
2380 no) build_warnings="-w";;
2381 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2382 build_warnings="${build_warnings} ${t}";;
2383 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2384 build_warnings="${t} ${build_warnings}";;
2385 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2386esac
2387if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2388 echo "Setting warning flags = $build_warnings" 6>&1
2389fi
2390fi
2391WARN_CFLAGS=""
2392if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2393 WARN_CFLAGS="${build_warnings}"
2394fi
2395
2396
2397
2398
2399
2400
2401if test -z "$target" ; then
2402 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2403fi
2404
2405echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2406echo "configure:2407: checking whether to enable maintainer-specific portions of Makefiles" >&5
2407 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2408if test "${enable_maintainer_mode+set}" = set; then
2409 enableval="$enable_maintainer_mode"
2410 USE_MAINTAINER_MODE=$enableval
2411else
2412 USE_MAINTAINER_MODE=no
2413fi
2414
2415 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2416
2417
2418if test $USE_MAINTAINER_MODE = yes; then
2419 MAINTAINER_MODE_TRUE=
2420 MAINTAINER_MODE_FALSE='#'
2421else
2422 MAINTAINER_MODE_TRUE='#'
2423 MAINTAINER_MODE_FALSE=
2424fi
2425 MAINT=$MAINTAINER_MODE_TRUE
2426
2427
2428echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2429echo "configure:2430: checking whether to install libbfd" >&5
2430 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2431if test "${enable_install_libbfd+set}" = set; then
2432 enableval="$enable_install_libbfd"
2433 install_libbfd_p=$enableval
2434else
2435 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
2436 install_libbfd_p=yes
2437 else
2438 install_libbfd_p=no
2439 fi
2440fi
2441
2442 echo "$ac_t""$install_libbfd_p" 1>&6
2443
2444
2445if test $install_libbfd_p = yes; then
2446 INSTALL_LIBBFD_TRUE=
2447 INSTALL_LIBBFD_FALSE='#'
2448else
2449 INSTALL_LIBBFD_TRUE='#'
2450 INSTALL_LIBBFD_FALSE=
2451fi
2452 # libbfd.a is a host library containing target dependent code
2453 bfdlibdir='$(libdir)'
2454 bfdincludedir='$(includedir)'
2455 if test "${host}" != "${target}"; then
2456 bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2457 bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2458 fi
2459
2460
2461
2462
2463
2464
2465
2466echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2467echo "configure:2468: checking for executable suffix" >&5
2468if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2470else
2471 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
2472 ac_cv_exeext=.exe
2473else
2474 rm -f conftest*
2475 echo 'int main () { return 0; }' > conftest.$ac_ext
2476 ac_cv_exeext=
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2478 for file in conftest.*; do
2479 case $file in
2480 *.c | *.o | *.obj) ;;
2481 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2482 esac
2483 done
2484 else
2485 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2486 fi
2487 rm -f conftest*
2488 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2489fi
2490fi
2491
2492EXEEXT=""
2493test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2494echo "$ac_t""${ac_cv_exeext}" 1>&6
2495ac_exeext=$EXEEXT
2496
2497
2498# host-specific stuff:
2499
2500# Extract the first word of "gcc", so it can be a program name with args.
2501set dummy gcc; ac_word=$2
2502echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2503echo "configure:2504: checking for $ac_word" >&5
2504if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509else
2510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2511 ac_dummy="$PATH"
2512 for ac_dir in $ac_dummy; do
2513 test -z "$ac_dir" && ac_dir=.
2514 if test -f $ac_dir/$ac_word -o \
2515 -f $ac_dir/$ac_word$ac_exeext ; then
2516 ac_cv_prog_CC="gcc"
2517 break
2518 fi
2519 done
2520 IFS="$ac_save_ifs"
2521fi
2522fi
2523CC="$ac_cv_prog_CC"
2524if test -n "$CC"; then
2525 echo "$ac_t""$CC" 1>&6
2526else
2527 echo "$ac_t""no" 1>&6
2528fi
2529
2530if test -z "$CC"; then
2531 # Extract the first word of "cc", so it can be a program name with args.
2532set dummy cc; ac_word=$2
2533echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2534echo "configure:2535: checking for $ac_word" >&5
2535if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2537else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
2541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2542 ac_prog_rejected=no
2543 ac_dummy="$PATH"
2544 for ac_dir in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir=.
2546 if test -f $ac_dir/$ac_word -o \
2547 -f $ac_dir/$ac_word$ac_exeext ; then
2548 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
2549 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
2550 ac_prog_rejected=yes
2551 continue
2552 fi
2553 ac_cv_prog_CC="cc"
2554 break
2555 fi
2556 done
2557 IFS="$ac_save_ifs"
2558if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2561 shift
2562 if test $# -gt 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2566 shift
2567 set dummy "$ac_dir/$ac_word" "$@"
2568 shift
2569 ac_cv_prog_CC="$@"
2570 fi
2571fi
2572fi
2573fi
2574CC="$ac_cv_prog_CC"
2575if test -n "$CC"; then
2576 echo "$ac_t""$CC" 1>&6
2577else
2578 echo "$ac_t""no" 1>&6
2579fi
2580
2581 if test -z "$CC"; then
2582 case "`uname -s`" in
2583 *win32* | *WIN32*)
2584 # Extract the first word of "cl", so it can be a program name with args.
2585set dummy cl; ac_word=$2
2586echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587echo "configure:2588: checking for $ac_word" >&5
2588if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2590else
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2593else
2594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2595 ac_dummy="$PATH"
2596 for ac_dir in $ac_dummy; do
2597 test -z "$ac_dir" && ac_dir=.
2598 if test -f $ac_dir/$ac_word -o \
2599 -f $ac_dir/$ac_word$ac_exeext ; then
2600 ac_cv_prog_CC="cl"
2601 break
2602 fi
2603 done
2604 IFS="$ac_save_ifs"
2605fi
2606fi
2607CC="$ac_cv_prog_CC"
2608if test -n "$CC"; then
2609 echo "$ac_t""$CC" 1>&6
2610else
2611 echo "$ac_t""no" 1>&6
2612fi
2613 ;;
2614 esac
2615 fi
2616 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2617fi
2618
2619echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2620echo "configure:2621: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2621
2622ac_ext=c
2623# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2624ac_cpp='$CPP $CPPFLAGS'
2625ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2626ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2627cross_compiling=$ac_cv_prog_cc_cross
2628
2629cat > conftest.$ac_ext << EOF
2630
2631#line 2632 "configure"
2632#include "confdefs.h"
2633
2634main(){return(0);}
2635EOF
2636if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 ac_cv_prog_cc_works=yes
2638 # If we can't run a trivial program, we are probably using a cross compiler.
2639 if (./conftest; exit) 2>/dev/null; then
2640 ac_cv_prog_cc_cross=no
2641 else
2642 ac_cv_prog_cc_cross=yes
2643 fi
2644else
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 ac_cv_prog_cc_works=no
2648fi
2649rm -fr conftest*
2650ac_ext=c
2651# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2652ac_cpp='$CPP $CPPFLAGS'
2653ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2654ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2655cross_compiling=$ac_cv_prog_cc_cross
2656
2657echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2658if test $ac_cv_prog_cc_works = no; then
2659 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2660fi
2661echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2662echo "configure:2663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2663echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2664cross_compiling=$ac_cv_prog_cc_cross
2665
2666echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2667echo "configure:2668: checking whether we are using GNU C" >&5
2668if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2670else
2671 cat > conftest.c <<EOF
2672#ifdef __GNUC__
2673 yes;
2674#endif
2675EOF
2676if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2677 ac_cv_prog_gcc=yes
2678else
2679 ac_cv_prog_gcc=no
2680fi
2681fi
2682
2683echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2684
2685if test $ac_cv_prog_gcc = yes; then
2686 GCC=yes
2687else
2688 GCC=
2689fi
2690
2691ac_test_CFLAGS="${CFLAGS+set}"
2692ac_save_CFLAGS="$CFLAGS"
2693CFLAGS=
2694echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2695echo "configure:2696: checking whether ${CC-cc} accepts -g" >&5
2696if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2698else
2699 echo 'void f(){}' > conftest.c
2700if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2701 ac_cv_prog_cc_g=yes
2702else
2703 ac_cv_prog_cc_g=no
2704fi
2705rm -f conftest*
2706
2707fi
2708
2709echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2710if test "$ac_test_CFLAGS" = set; then
2711 CFLAGS="$ac_save_CFLAGS"
2712elif test $ac_cv_prog_cc_g = yes; then
2713 if test "$GCC" = yes; then
2714 CFLAGS="-g -O2"
2715 else
2716 CFLAGS="-g"
2717 fi
2718else
2719 if test "$GCC" = yes; then
2720 CFLAGS="-O2"
2721 else
2722 CFLAGS=
2723 fi
2724fi
2725
2726
2727ALL_LINGUAS="fr sv es da de id pt_BR ro"
2728echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2729echo "configure:2730: checking how to run the C preprocessor" >&5
2730# On Suns, sometimes $CPP names a directory.
2731if test -n "$CPP" && test -d "$CPP"; then
2732 CPP=
2733fi
2734if test -z "$CPP"; then
2735if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2737else
2738 # This must be in double quotes, not single quotes, because CPP may get
2739 # substituted into the Makefile and "${CC-cc}" will confuse make.
2740 CPP="${CC-cc} -E"
2741 # On the NeXT, cc -E runs the code through the compiler's parser,
2742 # not just through cpp.
2743 cat > conftest.$ac_ext <<EOF
2744#include <sys/types.h>
2745#line 2746 "configure"
2746#include "confdefs.h"
2747#include <assert.h>
2748Syntax Error
2749EOF
2750ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751{ (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753if test -z "$ac_err"; then
2754 :
2755else
2756 echo "$ac_err" >&5
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2759 rm -rf conftest*
2760 CPP="${CC-cc} -E -traditional-cpp"
2761 cat > conftest.$ac_ext <<EOF
2762#include <sys/types.h>
2763#line 2764 "configure"
2764#include "confdefs.h"
2765#include <assert.h>
2766Syntax Error
2767EOF
2768ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2769{ (eval echo configure:2770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2770ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2771if test -z "$ac_err"; then
2772 :
2773else
2774 echo "$ac_err" >&5
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 rm -rf conftest*
2778 CPP="${CC-cc} -nologo -E"
2779 cat > conftest.$ac_ext <<EOF
2780#include <sys/types.h>
2781#line 2782 "configure"
2782#include "confdefs.h"
2783#include <assert.h>
2784Syntax Error
2785EOF
2786ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787{ (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789if test -z "$ac_err"; then
2790 :
2791else
2792 echo "$ac_err" >&5
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 rm -rf conftest*
2796 CPP=/lib/cpp
2797fi
2798rm -f conftest*
2799fi
2800rm -f conftest*
2801fi
2802rm -f conftest*
2803 ac_cv_prog_CPP="$CPP"
2804fi
2805 CPP="$ac_cv_prog_CPP"
2806else
2807 ac_cv_prog_CPP="$CPP"
2808fi
2809echo "$ac_t""$CPP" 1>&6
2810
2811# Extract the first word of "ranlib", so it can be a program name with args.
2812set dummy ranlib; ac_word=$2
2813echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2814echo "configure:2815: checking for $ac_word" >&5
2815if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2817else
2818 if test -n "$RANLIB"; then
2819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2820else
2821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2822 ac_dummy="$PATH"
2823 for ac_dir in $ac_dummy; do
2824 test -z "$ac_dir" && ac_dir=.
2825 if test -f $ac_dir/$ac_word -o \
2826 -f $ac_dir/$ac_word$ac_exeext ; then
2827 ac_cv_prog_RANLIB="ranlib"
2828 break
2829 fi
2830 done
2831 IFS="$ac_save_ifs"
2832 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2833fi
2834fi
2835RANLIB="$ac_cv_prog_RANLIB"
2836if test -n "$RANLIB"; then
2837 echo "$ac_t""$RANLIB" 1>&6
2838else
2839 echo "$ac_t""no" 1>&6
2840fi
2841
2842echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2843echo "configure:2844: checking for ANSI C header files" >&5
2844if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2846else
2847 cat > conftest.$ac_ext <<EOF
2848#include <sys/types.h>
2849#line 2850 "configure"
2850#include "confdefs.h"
2851#include <stdlib.h>
2852#include <stdarg.h>
2853#include <string.h>
2854#include <float.h>
2855EOF
2856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2857{ (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2859if test -z "$ac_err"; then
2860 rm -rf conftest*
2861 ac_cv_header_stdc=yes
2862else
2863 echo "$ac_err" >&5
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2866 rm -rf conftest*
2867 ac_cv_header_stdc=no
2868fi
2869rm -f conftest*
2870
2871if test $ac_cv_header_stdc = yes; then
2872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2873cat > conftest.$ac_ext <<EOF
2874#line 2875 "configure"
2875#include "confdefs.h"
2876#include <string.h>
2877EOF
2878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "memchr" >/dev/null 2>&1; then
2880 :
2881else
2882 rm -rf conftest*
2883 ac_cv_header_stdc=no
2884fi
2885rm -f conftest*
2886
2887fi
2888
2889if test $ac_cv_header_stdc = yes; then
2890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2891cat > conftest.$ac_ext <<EOF
2892#line 2893 "configure"
2893#include "confdefs.h"
2894#include <stdlib.h>
2895EOF
2896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2897 egrep "free" >/dev/null 2>&1; then
2898 :
2899else
2900 rm -rf conftest*
2901 ac_cv_header_stdc=no
2902fi
2903rm -f conftest*
2904
2905fi
2906
2907if test $ac_cv_header_stdc = yes; then
2908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2909if test "$cross_compiling" = yes; then
2910 :
2911else
2912 cat > conftest.$ac_ext <<EOF
2913#line 2914 "configure"
2914#include "confdefs.h"
2915#include <ctype.h>
2916#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2917#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2918#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2919int main () { int i; for (i = 0; i < 256; i++)
2920if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2921exit (0); }
2922
2923EOF
2924if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2925then
2926 :
2927else
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 rm -fr conftest*
2931 ac_cv_header_stdc=no
2932fi
2933rm -fr conftest*
2934fi
2935
2936fi
2937fi
2938
2939echo "$ac_t""$ac_cv_header_stdc" 1>&6
2940if test $ac_cv_header_stdc = yes; then
2941 cat >> confdefs.h <<\EOF
2942#define STDC_HEADERS 1
2943EOF
2944
2945fi
2946
2947echo $ac_n "checking for working const""... $ac_c" 1>&6
2948echo "configure:2949: checking for working const" >&5
2949if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2951else
2952 cat > conftest.$ac_ext <<EOF
2953#line 2954 "configure"
2954#include "confdefs.h"
2955
2956int main() {
2957
2958/* Ultrix mips cc rejects this. */
2959typedef int charset[2]; const charset x;
2960/* SunOS 4.1.1 cc rejects this. */
2961char const *const *ccp;
2962char **p;
2963/* NEC SVR4.0.2 mips cc rejects this. */
2964struct point {int x, y;};
2965static struct point const zero = {0,0};
2966/* AIX XL C 1.02.0.0 rejects this.
2967 It does not let you subtract one const X* pointer from another in an arm
2968 of an if-expression whose if-part is not a constant expression */
2969const char *g = "string";
2970ccp = &g + (g ? g-g : 0);
2971/* HPUX 7.0 cc rejects these. */
2972++ccp;
2973p = (char**) ccp;
2974ccp = (char const *const *) p;
2975{ /* SCO 3.2v4 cc rejects this. */
2976 char *t;
2977 char const *s = 0 ? (char *) 0 : (char const *) 0;
2978
2979 *t++ = 0;
2980}
2981{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2982 int x[] = {25, 17};
2983 const int *foo = &x[0];
2984 ++foo;
2985}
2986{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2987 typedef const int *iptr;
2988 iptr p = 0;
2989 ++p;
2990}
2991{ /* AIX XL C 1.02.0.0 rejects this saying
2992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2993 struct s { int j; const int *ap[3]; };
2994 struct s *b; b->j = 5;
2995}
2996{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2997 const int foo = 10;
2998}
2999
3000; return 0; }
3001EOF
3002if { (eval echo configure:3003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3003 rm -rf conftest*
3004 ac_cv_c_const=yes
3005else
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3008 rm -rf conftest*
3009 ac_cv_c_const=no
3010fi
3011rm -f conftest*
3012fi
3013
3014echo "$ac_t""$ac_cv_c_const" 1>&6
3015if test $ac_cv_c_const = no; then
3016 cat >> confdefs.h <<\EOF
3017#define const
3018EOF
3019
3020fi
3021
3022echo $ac_n "checking for inline""... $ac_c" 1>&6
3023echo "configure:3024: checking for inline" >&5
3024if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026else
3027 ac_cv_c_inline=no
3028for ac_kw in inline __inline__ __inline; do
3029 cat > conftest.$ac_ext <<EOF
3030#line 3031 "configure"
3031#include "confdefs.h"
3032
3033int main() {
3034} $ac_kw foo() {
3035; return 0; }
3036EOF
3037if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 rm -rf conftest*
3039 ac_cv_c_inline=$ac_kw; break
3040else
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3043fi
3044rm -f conftest*
3045done
3046
3047fi
3048
3049echo "$ac_t""$ac_cv_c_inline" 1>&6
3050case "$ac_cv_c_inline" in
3051 inline | yes) ;;
3052 no) cat >> confdefs.h <<\EOF
3053#define inline
3054EOF
3055 ;;
3056 *) cat >> confdefs.h <<EOF
3057#define inline $ac_cv_c_inline
3058EOF
3059 ;;
3060esac
3061
3062echo $ac_n "checking for off_t""... $ac_c" 1>&6
3063echo "configure:3064: checking for off_t" >&5
3064if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066else
3067 cat > conftest.$ac_ext <<EOF
3068#line 3069 "configure"
3069#include "confdefs.h"
3070#include <sys/types.h>
3071#if STDC_HEADERS
3072#include <stdlib.h>
3073#include <stddef.h>
3074#endif
3075EOF
3076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3077 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3078 rm -rf conftest*
3079 ac_cv_type_off_t=yes
3080else
3081 rm -rf conftest*
3082 ac_cv_type_off_t=no
3083fi
3084rm -f conftest*
3085
3086fi
3087echo "$ac_t""$ac_cv_type_off_t" 1>&6
3088if test $ac_cv_type_off_t = no; then
3089 cat >> confdefs.h <<\EOF
3090#define off_t long
3091EOF
3092
3093fi
3094
3095echo $ac_n "checking for size_t""... $ac_c" 1>&6
3096echo "configure:3097: checking for size_t" >&5
3097if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099else
3100 cat > conftest.$ac_ext <<EOF
3101#line 3102 "configure"
3102#include "confdefs.h"
3103#include <sys/types.h>
3104#if STDC_HEADERS
3105#include <stdlib.h>
3106#include <stddef.h>
3107#endif
3108EOF
3109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3110 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3111 rm -rf conftest*
3112 ac_cv_type_size_t=yes
3113else
3114 rm -rf conftest*
3115 ac_cv_type_size_t=no
3116fi
3117rm -f conftest*
3118
3119fi
3120echo "$ac_t""$ac_cv_type_size_t" 1>&6
3121if test $ac_cv_type_size_t = no; then
3122 cat >> confdefs.h <<\EOF
3123#define size_t unsigned
3124EOF
3125
3126fi
3127
3128# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3129# for constant arguments. Useless!
3130echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3131echo "configure:3132: checking for working alloca.h" >&5
3132if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3134else
3135 cat > conftest.$ac_ext <<EOF
3136#line 3137 "configure"
3137#include "confdefs.h"
3138#include <alloca.h>
3139int main() {
3140char *p = alloca(2 * sizeof(int));
3141; return 0; }
3142EOF
3143if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3144 rm -rf conftest*
3145 ac_cv_header_alloca_h=yes
3146else
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3149 rm -rf conftest*
3150 ac_cv_header_alloca_h=no
3151fi
3152rm -f conftest*
3153fi
3154
3155echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3156if test $ac_cv_header_alloca_h = yes; then
3157 cat >> confdefs.h <<\EOF
3158#define HAVE_ALLOCA_H 1
3159EOF
3160
3161fi
3162
3163echo $ac_n "checking for alloca""... $ac_c" 1>&6
3164echo "configure:3165: checking for alloca" >&5
3165if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3167else
3168 cat > conftest.$ac_ext <<EOF
3169#line 3170 "configure"
3170#include "confdefs.h"
3171
3172#ifdef __GNUC__
3173# define alloca __builtin_alloca
3174#else
3175# ifdef _MSC_VER
3176# include <malloc.h>
3177# define alloca _alloca
3178# else
3179# if HAVE_ALLOCA_H
3180# include <alloca.h>
3181# else
3182# ifdef _AIX
3183 #pragma alloca
3184# else
3185# ifndef alloca /* predefined by HP cc +Olibcalls */
3186char *alloca ();
3187# endif
3188# endif
3189# endif
3190# endif
3191#endif
3192
3193int main() {
3194char *p = (char *) alloca(1);
3195; return 0; }
3196EOF
3197if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3198 rm -rf conftest*
3199 ac_cv_func_alloca_works=yes
3200else
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3203 rm -rf conftest*
3204 ac_cv_func_alloca_works=no
3205fi
3206rm -f conftest*
3207fi
3208
3209echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3210if test $ac_cv_func_alloca_works = yes; then
3211 cat >> confdefs.h <<\EOF
3212#define HAVE_ALLOCA 1
3213EOF
3214
3215fi
3216
3217if test $ac_cv_func_alloca_works = no; then
3218 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3219 # that cause trouble. Some versions do not even contain alloca or
3220 # contain a buggy version. If you still want to use their alloca,
3221 # use ar to extract alloca.o from them instead of compiling alloca.c.
3222 ALLOCA=alloca.${ac_objext}
3223 cat >> confdefs.h <<\EOF
3224#define C_ALLOCA 1
3225EOF
3226
3227
3228echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3229echo "configure:3230: checking whether alloca needs Cray hooks" >&5
3230if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3232else
3233 cat > conftest.$ac_ext <<EOF
3234#line 3235 "configure"
3235#include "confdefs.h"
3236#if defined(CRAY) && ! defined(CRAY2)
3237webecray
3238#else
3239wenotbecray
3240#endif
3241
3242EOF
3243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3244 egrep "webecray" >/dev/null 2>&1; then
3245 rm -rf conftest*
3246 ac_cv_os_cray=yes
3247else
3248 rm -rf conftest*
3249 ac_cv_os_cray=no
3250fi
3251rm -f conftest*
3252
3253fi
3254
3255echo "$ac_t""$ac_cv_os_cray" 1>&6
3256if test $ac_cv_os_cray = yes; then
3257for ac_func in _getb67 GETB67 getb67; do
3258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3259echo "configure:3260: checking for $ac_func" >&5
3260if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3262else
3263 cat > conftest.$ac_ext <<EOF
3264#line 3265 "configure"
3265#include "confdefs.h"
3266/* System header to define __stub macros and hopefully few prototypes,
3267 which can conflict with char $ac_func(); below. */
3268#include <assert.h>
3269/* Override any gcc2 internal prototype to avoid an error. */
3270/* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3272char $ac_func();
3273
3274int main() {
3275
3276/* The GNU C library defines this for functions which it implements
3277 to always fail with ENOSYS. Some functions are actually named
3278 something starting with __ and the normal name is an alias. */
3279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3280choke me
3281#else
3282$ac_func();
3283#endif
3284
3285; return 0; }
3286EOF
3287if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3288 rm -rf conftest*
3289 eval "ac_cv_func_$ac_func=yes"
3290else
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3293 rm -rf conftest*
3294 eval "ac_cv_func_$ac_func=no"
3295fi
3296rm -f conftest*
3297fi
3298
3299if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3300 echo "$ac_t""yes" 1>&6
3301 cat >> confdefs.h <<EOF
3302#define CRAY_STACKSEG_END $ac_func
3303EOF
3304
3305 break
3306else
3307 echo "$ac_t""no" 1>&6
3308fi
3309
3310done
3311fi
3312
3313echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3314echo "configure:3315: checking stack direction for C alloca" >&5
3315if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317else
3318 if test "$cross_compiling" = yes; then
3319 ac_cv_c_stack_direction=0
3320else
3321 cat > conftest.$ac_ext <<EOF
3322#line 3323 "configure"
3323#include "confdefs.h"
3324find_stack_direction ()
3325{
3326 static char *addr = 0;
3327 auto char dummy;
3328 if (addr == 0)
3329 {
3330 addr = &dummy;
3331 return find_stack_direction ();
3332 }
3333 else
3334 return (&dummy > addr) ? 1 : -1;
3335}
3336main ()
3337{
3338 exit (find_stack_direction() < 0);
3339}
3340EOF
3341if { (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3342then
3343 ac_cv_c_stack_direction=1
3344else
3345 echo "configure: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3347 rm -fr conftest*
3348 ac_cv_c_stack_direction=-1
3349fi
3350rm -fr conftest*
3351fi
3352
3353fi
3354
3355echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3356cat >> confdefs.h <<EOF
3357#define STACK_DIRECTION $ac_cv_c_stack_direction
3358EOF
3359
3360fi
3361
3362for ac_hdr in unistd.h
3363do
3364ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3365echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3366echo "configure:3367: checking for $ac_hdr" >&5
3367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3369else
3370 cat > conftest.$ac_ext <<EOF
3371#include <sys/types.h>
3372#line 3373 "configure"
3373#include "confdefs.h"
3374#include <$ac_hdr>
3375EOF
3376ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3377{ (eval echo configure:3378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3378ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3379if test -z "$ac_err"; then
3380 rm -rf conftest*
3381 eval "ac_cv_header_$ac_safe=yes"
3382else
3383 echo "$ac_err" >&5
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3386 rm -rf conftest*
3387 eval "ac_cv_header_$ac_safe=no"
3388fi
3389rm -f conftest*
3390fi
3391if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3394 cat >> confdefs.h <<EOF
3395#define $ac_tr_hdr 1
3396EOF
3397
3398else
3399 echo "$ac_t""no" 1>&6
3400fi
3401done
3402
3403for ac_func in getpagesize
3404do
3405echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406echo "configure:3407: checking for $ac_func" >&5
3407if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3409else
3410 cat > conftest.$ac_ext <<EOF
3411#line 3412 "configure"
3412#include "confdefs.h"
3413/* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char $ac_func(); below. */
3415#include <assert.h>
3416/* Override any gcc2 internal prototype to avoid an error. */
3417/* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3419char $ac_func();
3420
3421int main() {
3422
3423/* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3427choke me
3428#else
3429$ac_func();
3430#endif
3431
3432; return 0; }
3433EOF
3434if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3435 rm -rf conftest*
3436 eval "ac_cv_func_$ac_func=yes"
3437else
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3440 rm -rf conftest*
3441 eval "ac_cv_func_$ac_func=no"
3442fi
3443rm -f conftest*
3444fi
3445
3446if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449 cat >> confdefs.h <<EOF
3450#define $ac_tr_func 1
3451EOF
3452
3453else
3454 echo "$ac_t""no" 1>&6
3455fi
3456done
3457
3458echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3459echo "configure:3460: checking for working mmap" >&5
3460if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462else
3463 if test "$cross_compiling" = yes; then
3464 ac_cv_func_mmap_fixed_mapped=no
3465else
3466 cat > conftest.$ac_ext <<EOF
3467#line 3468 "configure"
3468#include "confdefs.h"
3469
3470/* Thanks to Mike Haertel and Jim Avera for this test.
3471 Here is a matrix of mmap possibilities:
3472 mmap private not fixed
3473 mmap private fixed at somewhere currently unmapped
3474 mmap private fixed at somewhere already mapped
3475 mmap shared not fixed
3476 mmap shared fixed at somewhere currently unmapped
3477 mmap shared fixed at somewhere already mapped
3478 For private mappings, we should verify that changes cannot be read()
3479 back from the file, nor mmap's back from the file at a different
3480 address. (There have been systems where private was not correctly
3481 implemented like the infamous i386 svr4.0, and systems where the
3482 VM page cache was not coherent with the filesystem buffer cache
3483 like early versions of FreeBSD and possibly contemporary NetBSD.)
3484 For shared mappings, we should conversely verify that changes get
3485 propogated back to all the places they're supposed to be.
3486
3487 Grep wants private fixed already mapped.
3488 The main things grep needs to know about mmap are:
3489 * does it exist and is it safe to write into the mmap'd area
3490 * how to use it (BSD variants) */
3491#include <sys/types.h>
3492#include <fcntl.h>
3493#include <sys/mman.h>
3494
3495/* This mess was copied from the GNU getpagesize.h. */
3496#ifndef HAVE_GETPAGESIZE
3497# ifdef HAVE_UNISTD_H
3498# include <unistd.h>
3499# endif
3500
3501/* Assume that all systems that can run configure have sys/param.h. */
3502# ifndef HAVE_SYS_PARAM_H
3503# define HAVE_SYS_PARAM_H 1
3504# endif
3505
3506# ifdef _SC_PAGESIZE
3507# define getpagesize() sysconf(_SC_PAGESIZE)
3508# else /* no _SC_PAGESIZE */
3509# ifdef HAVE_SYS_PARAM_H
3510# include <sys/param.h>
3511# ifdef EXEC_PAGESIZE
3512# define getpagesize() EXEC_PAGESIZE
3513# else /* no EXEC_PAGESIZE */
3514# ifdef NBPG
3515# define getpagesize() NBPG * CLSIZE
3516# ifndef CLSIZE
3517# define CLSIZE 1
3518# endif /* no CLSIZE */
3519# else /* no NBPG */
3520# ifdef NBPC
3521# define getpagesize() NBPC
3522# else /* no NBPC */
3523# ifdef PAGESIZE
3524# define getpagesize() PAGESIZE
3525# endif /* PAGESIZE */
3526# endif /* no NBPC */
3527# endif /* no NBPG */
3528# endif /* no EXEC_PAGESIZE */
3529# else /* no HAVE_SYS_PARAM_H */
3530# define getpagesize() 8192 /* punt totally */
3531# endif /* no HAVE_SYS_PARAM_H */
3532# endif /* no _SC_PAGESIZE */
3533
3534#endif /* no HAVE_GETPAGESIZE */
3535
3536#ifdef __cplusplus
3537extern "C" { void *malloc(unsigned); }
3538#else
3539char *malloc();
3540#endif
3541
3542int
3543main()
3544{
3545 char *data, *data2, *data3;
3546 int i, pagesize;
3547 int fd;
3548
3549 pagesize = getpagesize();
3550
3551 /*
3552 * First, make a file with some known garbage in it.
3553 */
3554 data = malloc(pagesize);
3555 if (!data)
3556 exit(1);
3557 for (i = 0; i < pagesize; ++i)
3558 *(data + i) = rand();
3559 umask(0);
3560 fd = creat("conftestmmap", 0600);
3561 if (fd < 0)
3562 exit(1);
3563 if (write(fd, data, pagesize) != pagesize)
3564 exit(1);
3565 close(fd);
3566
3567 /*
3568 * Next, try to mmap the file at a fixed address which
3569 * already has something else allocated at it. If we can,
3570 * also make sure that we see the same garbage.
3571 */
3572 fd = open("conftestmmap", O_RDWR);
3573 if (fd < 0)
3574 exit(1);
3575 data2 = malloc(2 * pagesize);
3576 if (!data2)
3577 exit(1);
3578 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3579 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3580 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3581 exit(1);
3582 for (i = 0; i < pagesize; ++i)
3583 if (*(data + i) != *(data2 + i))
3584 exit(1);
3585
3586 /*
3587 * Finally, make sure that changes to the mapped area
3588 * do not percolate back to the file as seen by read().
3589 * (This is a bug on some variants of i386 svr4.0.)
3590 */
3591 for (i = 0; i < pagesize; ++i)
3592 *(data2 + i) = *(data2 + i) + 1;
3593 data3 = malloc(pagesize);
3594 if (!data3)
3595 exit(1);
3596 if (read(fd, data3, pagesize) != pagesize)
3597 exit(1);
3598 for (i = 0; i < pagesize; ++i)
3599 if (*(data + i) != *(data3 + i))
3600 exit(1);
3601 close(fd);
3602 unlink("conftestmmap");
3603 exit(0);
3604}
3605
3606EOF
3607if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3608then
3609 ac_cv_func_mmap_fixed_mapped=yes
3610else
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -fr conftest*
3614 ac_cv_func_mmap_fixed_mapped=no
3615fi
3616rm -fr conftest*
3617fi
3618
3619fi
3620
3621echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3622if test $ac_cv_func_mmap_fixed_mapped = yes; then
3623 cat >> confdefs.h <<\EOF
3624#define HAVE_MMAP 1
3625EOF
3626
3627fi
3628
3629
3630 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3631unistd.h values.h sys/param.h
3632do
3633ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3634echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3635echo "configure:3636: checking for $ac_hdr" >&5
3636if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3638else
3639 cat > conftest.$ac_ext <<EOF
3640#include <sys/types.h>
3641#line 3642 "configure"
3642#include "confdefs.h"
3643#include <$ac_hdr>
3644EOF
3645ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3646{ (eval echo configure:3647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3647ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3648if test -z "$ac_err"; then
3649 rm -rf conftest*
3650 eval "ac_cv_header_$ac_safe=yes"
3651else
3652 echo "$ac_err" >&5
3653 echo "configure: failed program was:" >&5
3654 cat conftest.$ac_ext >&5
3655 rm -rf conftest*
3656 eval "ac_cv_header_$ac_safe=no"
3657fi
3658rm -f conftest*
3659fi
3660if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3661 echo "$ac_t""yes" 1>&6
3662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3663 cat >> confdefs.h <<EOF
3664#define $ac_tr_hdr 1
3665EOF
3666
3667else
3668 echo "$ac_t""no" 1>&6
3669fi
3670done
3671
3672 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3673__argz_count __argz_stringify __argz_next
3674do
3675echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3676echo "configure:3677: checking for $ac_func" >&5
3677if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679else
3680 cat > conftest.$ac_ext <<EOF
3681#line 3682 "configure"
3682#include "confdefs.h"
3683/* System header to define __stub macros and hopefully few prototypes,
3684 which can conflict with char $ac_func(); below. */
3685#include <assert.h>
3686/* Override any gcc2 internal prototype to avoid an error. */
3687/* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3689char $ac_func();
3690
3691int main() {
3692
3693/* The GNU C library defines this for functions which it implements
3694 to always fail with ENOSYS. Some functions are actually named
3695 something starting with __ and the normal name is an alias. */
3696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3697choke me
3698#else
3699$ac_func();
3700#endif
3701
3702; return 0; }
3703EOF
3704if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3705 rm -rf conftest*
3706 eval "ac_cv_func_$ac_func=yes"
3707else
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 rm -rf conftest*
3711 eval "ac_cv_func_$ac_func=no"
3712fi
3713rm -f conftest*
3714fi
3715
3716if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3717 echo "$ac_t""yes" 1>&6
3718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3719 cat >> confdefs.h <<EOF
3720#define $ac_tr_func 1
3721EOF
3722
3723else
3724 echo "$ac_t""no" 1>&6
3725fi
3726done
3727
3728
3729 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3730 for ac_func in stpcpy
3731do
3732echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3733echo "configure:3734: checking for $ac_func" >&5
3734if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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/* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char $ac_func(); below. */
3742#include <assert.h>
3743/* Override any gcc2 internal prototype to avoid an error. */
3744/* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3746char $ac_func();
3747
3748int main() {
3749
3750/* The GNU C library defines this for functions which it implements
3751 to always fail with ENOSYS. Some functions are actually named
3752 something starting with __ and the normal name is an alias. */
3753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3754choke me
3755#else
3756$ac_func();
3757#endif
3758
3759; return 0; }
3760EOF
3761if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3762 rm -rf conftest*
3763 eval "ac_cv_func_$ac_func=yes"
3764else
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3767 rm -rf conftest*
3768 eval "ac_cv_func_$ac_func=no"
3769fi
3770rm -f conftest*
3771fi
3772
3773if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3776 cat >> confdefs.h <<EOF
3777#define $ac_tr_func 1
3778EOF
3779
3780else
3781 echo "$ac_t""no" 1>&6
3782fi
3783done
3784
3785 fi
3786 if test "${ac_cv_func_stpcpy}" = "yes"; then
3787 cat >> confdefs.h <<\EOF
3788#define HAVE_STPCPY 1
3789EOF
3790
3791 fi
3792
3793 if test $ac_cv_header_locale_h = yes; then
3794 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3795echo "configure:3796: checking for LC_MESSAGES" >&5
3796if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3798else
3799 cat > conftest.$ac_ext <<EOF
3800#line 3801 "configure"
3801#include "confdefs.h"
3802#include <locale.h>
3803int main() {
3804return LC_MESSAGES
3805; return 0; }
3806EOF
3807if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808 rm -rf conftest*
3809 am_cv_val_LC_MESSAGES=yes
3810else
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3813 rm -rf conftest*
3814 am_cv_val_LC_MESSAGES=no
3815fi
3816rm -f conftest*
3817fi
3818
3819echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3820 if test $am_cv_val_LC_MESSAGES = yes; then
3821 cat >> confdefs.h <<\EOF
3822#define HAVE_LC_MESSAGES 1
3823EOF
3824
3825 fi
3826 fi
3827 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3828echo "configure:3829: checking whether NLS is requested" >&5
3829 # Check whether --enable-nls or --disable-nls was given.
3830if test "${enable_nls+set}" = set; then
3831 enableval="$enable_nls"
3832 USE_NLS=$enableval
3833else
3834 USE_NLS=yes
3835fi
3836
3837 echo "$ac_t""$USE_NLS" 1>&6
3838
3839
3840 USE_INCLUDED_LIBINTL=no
3841
3842 if test "$USE_NLS" = "yes"; then
3843 cat >> confdefs.h <<\EOF
3844#define ENABLE_NLS 1
3845EOF
3846
3847 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3848echo "configure:3849: checking whether included gettext is requested" >&5
3849 # Check whether --with-included-gettext or --without-included-gettext was given.
3850if test "${with_included_gettext+set}" = set; then
3851 withval="$with_included_gettext"
3852 nls_cv_force_use_gnu_gettext=$withval
3853else
3854 nls_cv_force_use_gnu_gettext=no
3855fi
3856
3857 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3858
3859 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3860 echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5
3861 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3862 nls_cv_header_intl=
3863 nls_cv_header_libgt=
3864 CATOBJEXT=NONE
3865
3866 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3867echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3868echo "configure:3869: checking for libintl.h" >&5
3869if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871else
3872 cat > conftest.$ac_ext <<EOF
3873#include <sys/types.h>
3874#line 3875 "configure"
3875#include "confdefs.h"
3876#include <libintl.h>
3877EOF
3878ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3879{ (eval echo configure:3880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3880ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3881if test -z "$ac_err"; then
3882 rm -rf conftest*
3883 eval "ac_cv_header_$ac_safe=yes"
3884else
3885 echo "$ac_err" >&5
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3888 rm -rf conftest*
3889 eval "ac_cv_header_$ac_safe=no"
3890fi
3891rm -f conftest*
3892fi
3893if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3896echo "configure:3897: checking for gettext in libc" >&5
3897if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+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#include <libintl.h>
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_libc=yes
3911else
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 rm -rf conftest*
3915 gt_cv_func_gettext_libc=no
3916fi
3917rm -f conftest*
3918fi
3919
3920echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3921
3922 if test "$gt_cv_func_gettext_libc" != "yes"; then
3923 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3924echo "configure:3925: checking for bindtextdomain in -lintl" >&5
3925ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3926if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3928else
3929 ac_save_LIBS="$LIBS"
3930LIBS="-lintl $LIBS"
3931cat > conftest.$ac_ext <<EOF
3932#line 3933 "configure"
3933#include "confdefs.h"
3934/* Override any gcc2 internal prototype to avoid an error. */
3935/* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937char bindtextdomain();
3938
3939int main() {
3940bindtextdomain()
3941; return 0; }
3942EOF
3943if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3944 rm -rf conftest*
3945 eval "ac_cv_lib_$ac_lib_var=yes"
3946else
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3949 rm -rf conftest*
3950 eval "ac_cv_lib_$ac_lib_var=no"
3951fi
3952rm -f conftest*
3953LIBS="$ac_save_LIBS"
3954
3955fi
3956if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3958 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3959echo "configure:3960: checking for gettext in libintl" >&5
3960if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3962else
3963 ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
3964 cat > conftest.$ac_ext <<EOF
3965#line 3966 "configure"
3966#include "confdefs.h"
3967#include <libintl.h>
3968int main() {
3969return (int) gettext ("")
3970; return 0; }
3971EOF
3972if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 rm -rf conftest*
3974 gt_cv_func_gettext_libintl=yes
3975else
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3978 rm -rf conftest*
3979 gt_cv_func_gettext_libintl=no
3980fi
3981rm -f conftest*
3982 LIBS="$ac_save_LIBS";
3983fi
3984
3985echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3986else
3987 echo "$ac_t""no" 1>&6
3988fi
3989
3990 fi
3991
3992 if test "$gt_cv_func_gettext_libc" = "yes" \
3993 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3994 cat >> confdefs.h <<\EOF
3995#define HAVE_GETTEXT 1
3996EOF
3997
3998 # Extract the first word of "msgfmt", so it can be a program name with args.
3999set dummy msgfmt; ac_word=$2
4000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4001echo "configure:4002: checking for $ac_word" >&5
4002if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004else
4005 case "$MSGFMT" in
4006 [/\\]*|[a-zA-Z]:*)
4007 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4008 ;;
4009 *)
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4011 for ac_dir in $PATH; do
4012 test -z "$ac_dir" && ac_dir=.
4013 if test -f $ac_dir/$ac_word; then
4014 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4015 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4016 break
4017 fi
4018 fi
4019 ac_word_saved="$ac_word"
4020 ac_word=$ac_word$ac_cv_exeext
4021 if test -f $ac_dir/$ac_word; then
4022 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4023 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4024 break
4025 fi
4026 fi
4027 ac_word="$ac_word_saved"
4028 done
4029 IFS="$ac_save_ifs"
4030 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4031 ;;
4032esac
4033fi
4034MSGFMT="$ac_cv_path_MSGFMT"
4035if test -n "$MSGFMT"; then
4036 echo "$ac_t""$MSGFMT" 1>&6
4037else
4038 echo "$ac_t""no" 1>&6
4039fi
4040 if test "$MSGFMT" != "no"; then
4041 for ac_func in dcgettext
4042do
4043echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4044echo "configure:4045: checking for $ac_func" >&5
4045if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4047else
4048 cat > conftest.$ac_ext <<EOF
4049#line 4050 "configure"
4050#include "confdefs.h"
4051/* System header to define __stub macros and hopefully few prototypes,
4052 which can conflict with char $ac_func(); below. */
4053#include <assert.h>
4054/* Override any gcc2 internal prototype to avoid an error. */
4055/* We use char because int might match the return type of a gcc2
4056 builtin and then its argument prototype would still apply. */
4057char $ac_func();
4058
4059int main() {
4060
4061/* The GNU C library defines this for functions which it implements
4062 to always fail with ENOSYS. Some functions are actually named
4063 something starting with __ and the normal name is an alias. */
4064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4065choke me
4066#else
4067$ac_func();
4068#endif
4069
4070; return 0; }
4071EOF
4072if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4073 rm -rf conftest*
4074 eval "ac_cv_func_$ac_func=yes"
4075else
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4078 rm -rf conftest*
4079 eval "ac_cv_func_$ac_func=no"
4080fi
4081rm -f conftest*
4082fi
4083
4084if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4085 echo "$ac_t""yes" 1>&6
4086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4087 cat >> confdefs.h <<EOF
4088#define $ac_tr_func 1
4089EOF
4090
4091else
4092 echo "$ac_t""no" 1>&6
4093fi
4094done
4095
4096 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4097set dummy gmsgfmt; ac_word=$2
4098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4099echo "configure:4100: checking for $ac_word" >&5
4100if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4102else
4103 case "$GMSGFMT" in
4104 [/\\]* | [a-zA-Z]:*)
4105 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4106 ;;
4107 ?:/*)
4108 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4109 ;;
4110 *)
4111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4112 ac_dummy="$PATH"
4113 for ac_dir in $ac_dummy; do
4114 test -z "$ac_dir" && ac_dir=.
4115 if test -f $ac_dir/$ac_word; then
4116 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4117 break
4118 fi
4119 if test -f $ac_dir/$ac_word$ac_exeext; then
4120 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
4121 break
4122 fi
4123 done
4124 IFS="$ac_save_ifs"
4125 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4126 ;;
4127esac
4128fi
4129GMSGFMT="$ac_cv_path_GMSGFMT"
4130if test -n "$GMSGFMT"; then
4131 echo "$ac_t""$GMSGFMT" 1>&6
4132else
4133 echo "$ac_t""no" 1>&6
4134fi
4135
4136 # Extract the first word of "xgettext", so it can be a program name with args.
4137set dummy xgettext; ac_word=$2
4138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4139echo "configure:4140: checking for $ac_word" >&5
4140if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143 case "$XGETTEXT" in
4144 [/\\]*|[a-zA-Z]:*)
4145 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4146 ;;
4147 *)
4148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4149 for ac_dir in $PATH; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/$ac_word; then
4152 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4153 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4154 break
4155 fi
4156 fi
4157 ac_word_saved="$ac_word"
4158 ac_word=$ac_word$ac_cv_exeext
4159 if test -f $ac_dir/$ac_word; then
4160 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4161 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4162 break
4163 fi
4164 fi
4165 ac_word="$ac_word_saved"
4166 done
4167 IFS="$ac_save_ifs"
4168 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4169 ;;
4170esac
4171fi
4172XGETTEXT="$ac_cv_path_XGETTEXT"
4173if test -n "$XGETTEXT"; then
4174 echo "$ac_t""$XGETTEXT" 1>&6
4175else
4176 echo "$ac_t""no" 1>&6
4177fi
4178
4179
4180 cat > conftest.$ac_ext <<EOF
4181#line 4182 "configure"
4182#include "confdefs.h"
4183
4184int main() {
4185extern int _nl_msg_cat_cntr;
4186 return _nl_msg_cat_cntr
4187; return 0; }
4188EOF
4189if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4190 rm -rf conftest*
4191 CATOBJEXT=.gmo
4192 DATADIRNAME=share
4193else
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 rm -rf conftest*
4197 CATOBJEXT=.mo
4198 DATADIRNAME=lib
4199fi
4200rm -f conftest*
4201 INSTOBJEXT=.mo
4202 fi
4203 fi
4204
4205else
4206 echo "$ac_t""no" 1>&6
4207fi
4208
4209
4210
4211 if test "$CATOBJEXT" = "NONE"; then
4212 nls_cv_use_gnu_gettext=yes
4213 echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5
4214 fi
4215 fi
4216
4217 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4218 INTLOBJS="\$(GETTOBJS)"
4219 # Extract the first word of "msgfmt", so it can be a program name with args.
4220set dummy msgfmt; ac_word=$2
4221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4222echo "configure:4223: checking for $ac_word" >&5
4223if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225else
4226 case "$MSGFMT" in
4227 [/\\]*|[a-zA-Z]:*)
4228 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4229 ;;
4230 *)
4231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4232 for ac_dir in $PATH; do
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f $ac_dir/$ac_word; then
4235 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4236 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4237 break
4238 fi
4239 fi
4240 ac_word_saved="$ac_word"
4241 ac_word=$ac_word$ac_cv_exeext
4242 if test -f $ac_dir/$ac_word; then
4243 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4244 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4245 break
4246 fi
4247 fi
4248 ac_word="$ac_word_saved"
4249 done
4250 IFS="$ac_save_ifs"
4251 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4252 ;;
4253esac
4254fi
4255MSGFMT="$ac_cv_path_MSGFMT"
4256if test -n "$MSGFMT"; then
4257 echo "$ac_t""$MSGFMT" 1>&6
4258else
4259 echo "$ac_t""no" 1>&6
4260fi
4261
4262 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4263set dummy gmsgfmt; ac_word=$2
4264echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4265echo "configure:4266: checking for $ac_word" >&5
4266if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4268else
4269 case "$GMSGFMT" in
4270 [/\\]* | [a-zA-Z]:*)
4271 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4272 ;;
4273 ?:/*)
4274 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4275 ;;
4276 *)
4277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4278 ac_dummy="$PATH"
4279 for ac_dir in $ac_dummy; do
4280 test -z "$ac_dir" && ac_dir=.
4281 if test -f $ac_dir/$ac_word; then
4282 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4283 break
4284 fi
4285 if test -f $ac_dir/$ac_word$ac_exeext; then
4286 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
4287 break
4288 fi
4289 done
4290 IFS="$ac_save_ifs"
4291 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4292 ;;
4293esac
4294fi
4295GMSGFMT="$ac_cv_path_GMSGFMT"
4296if test -n "$GMSGFMT"; then
4297 echo "$ac_t""$GMSGFMT" 1>&6
4298else
4299 echo "$ac_t""no" 1>&6
4300fi
4301
4302 # Extract the first word of "xgettext", so it can be a program name with args.
4303set dummy xgettext; ac_word=$2
4304echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4305echo "configure:4306: checking for $ac_word" >&5
4306if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4308else
4309 case "$XGETTEXT" in
4310 [/\\]*|[a-zA-Z]:*)
4311 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4312 ;;
4313 *)
4314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4315 for ac_dir in $PATH; do
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f $ac_dir/$ac_word; then
4318 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4319 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4320 break
4321 fi
4322 fi
4323 ac_word_saved="$ac_word"
4324 ac_word=$ac_word$ac_cv_exeext
4325 if test -f $ac_dir/$ac_word; then
4326 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4327 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4328 break
4329 fi
4330 fi
4331 ac_word="$ac_word_saved"
4332 done
4333 IFS="$ac_save_ifs"
4334 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4335 ;;
4336esac
4337fi
4338XGETTEXT="$ac_cv_path_XGETTEXT"
4339if test -n "$XGETTEXT"; then
4340 echo "$ac_t""$XGETTEXT" 1>&6
4341else
4342 echo "$ac_t""no" 1>&6
4343fi
4344
4345
4346 USE_INCLUDED_LIBINTL=yes
4347 CATOBJEXT=.gmo
4348 INSTOBJEXT=.mo
4349 DATADIRNAME=share
4350 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4351 INTLLIBS=$INTLDEPS
4352 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4353 nls_cv_header_intl=libintl.h
4354 nls_cv_header_libgt=libgettext.h
4355 fi
4356
4357 if test "$XGETTEXT" != ":"; then
4358 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4359 : ;
4360 else
4361 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4362 XGETTEXT=":"
4363 fi
4364 fi
4365
4366 # We need to process the po/ directory.
4367 POSUB=po
4368 else
4369 DATADIRNAME=share
4370 nls_cv_header_intl=libintl.h
4371 nls_cv_header_libgt=libgettext.h
4372 fi
4373
4374 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4375 # because some of the sources are only built for this goal.
4376 if test "$PACKAGE" = gettext; then
4377 USE_NLS=yes
4378 USE_INCLUDED_LIBINTL=yes
4379 fi
4380
4381 for lang in $ALL_LINGUAS; do
4382 GMOFILES="$GMOFILES $lang.gmo"
4383 POFILES="$POFILES $lang.po"
4384 done
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399 if test "x$CATOBJEXT" != "x"; then
4400 if test "x$ALL_LINGUAS" = "x"; then
4401 LINGUAS=
4402 else
4403 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4404echo "configure:4405: checking for catalogs to be installed" >&5
4405 NEW_LINGUAS=
4406 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4407 case "$ALL_LINGUAS" in
4408 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4409 esac
4410 done
4411 LINGUAS=$NEW_LINGUAS
4412 echo "$ac_t""$LINGUAS" 1>&6
4413 fi
4414
4415 if test -n "$LINGUAS"; then
4416 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4417 fi
4418 fi
4419
4420 if test $ac_cv_header_locale_h = yes; then
4421 INCLUDE_LOCALE_H="#include <locale.h>"
4422 else
4423 INCLUDE_LOCALE_H="\
4424/* The system does not provide the header <locale.h>. Take care yourself. */"
4425 fi
4426
4427
4428 if test -f $srcdir/po2tbl.sed.in; then
4429 if test "$CATOBJEXT" = ".cat"; then
4430 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4431echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4432echo "configure:4433: checking for linux/version.h" >&5
4433if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4435else
4436 cat > conftest.$ac_ext <<EOF
4437#include <sys/types.h>
4438#line 4439 "configure"
4439#include "confdefs.h"
4440#include <linux/version.h>
4441EOF
4442ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4443{ (eval echo configure:4444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4444ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4445if test -z "$ac_err"; then
4446 rm -rf conftest*
4447 eval "ac_cv_header_$ac_safe=yes"
4448else
4449 echo "$ac_err" >&5
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 rm -rf conftest*
4453 eval "ac_cv_header_$ac_safe=no"
4454fi
4455rm -f conftest*
4456fi
4457if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 msgformat=linux
4460else
4461 echo "$ac_t""no" 1>&6
4462msgformat=xopen
4463fi
4464
4465
4466 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4467 fi
4468 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4469 $srcdir/po2tbl.sed.in > po2tbl.sed
4470 fi
4471
4472 if test "$PACKAGE" = "gettext"; then
4473 GT_NO="#NO#"
4474 GT_YES=
4475 else
4476 GT_NO=
4477 GT_YES="#YES#"
4478 fi
4479
4480
4481
4482 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4483
4484
4485 l=
4486
4487
4488 if test -f $srcdir/po/POTFILES.in; then
4489 test -d po || mkdir po
4490 if test "x$srcdir" != "x."; then
4491 if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
4492 posrcprefix="$srcdir/"
4493 else
4494 posrcprefix="../$srcdir/"
4495 fi
4496 else
4497 posrcprefix="../"
4498 fi
4499 rm -f po/POTFILES
4500 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4501 < $srcdir/po/POTFILES.in > po/POTFILES
4502 fi
4503
4504
4505. ${srcdir}/../bfd/configure.host
4506
4507# Put a plausible default for CC_FOR_BUILD in Makefile.
4508if test -z "$CC_FOR_BUILD"; then
4509 if test "x$cross_compiling" = "xno"; then
4510 CC_FOR_BUILD='$(CC)'
4511 else
4512 CC_FOR_BUILD=gcc
4513 fi
4514fi
4515
4516# Also set EXEEXT_FOR_BUILD.
4517if test "x$cross_compiling" = "xno"; then
4518 EXEEXT_FOR_BUILD='$(EXEEXT)'
4519else
4520 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4521echo "configure:4522: checking for build system executable suffix" >&5
4522if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4524else
4525 rm -f conftest*
4526 echo 'int main () { return 0; }' > conftest.c
4527 bfd_cv_build_exeext=
4528 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4529 for file in conftest.*; do
4530 case $file in
4531 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4532 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 rm -f conftest*
4536 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4537fi
4538
4539echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4540 EXEEXT_FOR_BUILD=""
4541 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4542fi
4543
4544
4545
4546# Find a good install program. We prefer a C program (faster),
4547# so one script is as good as another. But avoid the broken or
4548# incompatible versions:
4549# SysV /etc/install, /usr/sbin/install
4550# SunOS /usr/etc/install
4551# IRIX /sbin/install
4552# AIX /bin/install
4553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4556# ./install, which can be erroneously created by make from ./install.sh.
4557echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4558echo "configure:4559: checking for a BSD compatible install" >&5
4559if test -z "$INSTALL"; then
4560if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4562else
4563 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
4564 for ac_dir in $PATH; do
4565 # Account for people who put trailing slashes in PATH elements.
4566 case "$ac_dir/" in
4567 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4568 # We reject the install program from OS/2 or W3.1
4569 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
4570 *)
4571 # OSF1 and SCO ODT 3.0 have their own names for install.
4572 # Don't use installbsd from OSF since it installs stuff as root
4573 # by default.
4574 for ac_prog in ginstall scoinst install; do
4575 if test -f $ac_dir/$ac_prog$ac_exeext; then
4576 if test $ac_prog = install &&
4577 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4578 # AIX install. It has an incompatible calling convention.
4579 :
4580 else
4581 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
4582 break 2
4583 fi
4584 fi
4585 done
4586 ;;
4587 esac
4588 done
4589 IFS="$ac_save_IFS"
4590
4591fi
4592 if test "${ac_cv_path_install+set}" = set; then
4593 INSTALL="$ac_cv_path_install"
4594 else
4595 # As a last resort, use the slow shell script. We don't cache a
4596 # path for INSTALL within a source directory, because that will
4597 # break other packages using the cache if that directory is
4598 # removed, or if the path is relative.
4599 INSTALL="$ac_install_sh"
4600 fi
4601fi
4602echo "$ac_t""$INSTALL" 1>&6
4603
4604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4605# It thinks the first close brace ends the variable substitution.
4606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4607
4608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4609
4610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4611
4612
4613for ac_hdr in string.h strings.h stdlib.h
4614do
4615ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4616echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4617echo "configure:4618: checking for $ac_hdr" >&5
4618if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4620else
4621 cat > conftest.$ac_ext <<EOF
4622#include <sys/types.h>
4623#line 4624 "configure"
4624#include "confdefs.h"
4625#include <$ac_hdr>
4626EOF
4627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4628{ (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4630if test -z "$ac_err"; then
4631 rm -rf conftest*
4632 eval "ac_cv_header_$ac_safe=yes"
4633else
4634 echo "$ac_err" >&5
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4637 rm -rf conftest*
4638 eval "ac_cv_header_$ac_safe=no"
4639fi
4640rm -f conftest*
4641fi
4642if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4645 cat >> confdefs.h <<EOF
4646#define $ac_tr_hdr 1
4647EOF
4648
4649else
4650 echo "$ac_t""no" 1>&6
4651fi
4652done
4653
4654
4655cgen_maint=no
4656cgendir='$(srcdir)/../cgen'
4657
4658# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4659if test "${enable_cgen_maint+set}" = set; then
4660 enableval="$enable_cgen_maint"
4661 case "${enableval}" in
4662 yes) cgen_maint=yes ;;
4663 no) cgen_maint=no ;;
4664 *)
4665 # argument is cgen install directory (not implemented yet).
4666 # Having a `share' directory might be more appropriate for the .scm,
4667 # .cpu, etc. files.
4668 cgen_maint=yes
4669 cgendir=${cgen_maint}/lib/cgen
4670 ;;
4671esac
4672fi
4673
4674
4675if test x${cgen_maint} = xyes; then
4676 CGEN_MAINT_TRUE=
4677 CGEN_MAINT_FALSE='#'
4678else
4679 CGEN_MAINT_TRUE='#'
4680 CGEN_MAINT_FALSE=
4681fi
4682
4683
4684using_cgen=no
4685
4686# Horrible hacks to build DLLs on Windows.
4687WIN32LDFLAGS=
4688WIN32LIBADD=
4689case "${host}" in
4690*-*-cygwin*)
4691 if test "$enable_shared" = "yes"; then
4692 WIN32LDFLAGS="-no-undefined"
4693 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4694 fi
4695 ;;
4696*-*-os2*)
4697 if test "$enable_shared" = "yes"; then
4698 WIN32LDFLAGS="-no-undefined"
4699 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty"
4700# WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl"
4701 fi
4702 ;;
4703esac
4704
4705
4706
4707# target-specific stuff:
4708
4709# Canonicalize the secondary target names.
4710if test -n "$enable_targets" ; then
4711 for targ in `echo $enable_targets | sed 's/,/ /g'`
4712 do
4713 result=`$ac_config_sub $targ 2>/dev/null`
4714 if test -n "$result" ; then
4715 canon_targets="$canon_targets $result"
4716 else
4717 # Allow targets that config.sub doesn't recognize, like "all".
4718 canon_targets="$canon_targets $targ"
4719 fi
4720 done
4721fi
4722
4723all_targets=false
4724selarchs=
4725for targ in $target $canon_targets
4726do
4727 if test "x$targ" = "xall" ; then
4728 all_targets=true
4729 else
4730 . $srcdir/../bfd/config.bfd
4731 selarchs="$selarchs $targ_archs"
4732 fi
4733done
4734
4735# Utility var, documents generic cgen support files.
4736
4737cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4738
4739# We don't do any links based on the target system, just makefile config.
4740
4741if test x${all_targets} = xfalse ; then
4742
4743 # Target architecture .o files.
4744 ta=
4745
4746 for arch in $selarchs
4747 do
4748 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4749 archdefs="$archdefs -DARCH_$ad"
4750 case "$arch" in
4751 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
4752 bfd_alliant_arch) ;;
4753 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
4754 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
4755 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
4756 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4757 bfd_convex_arch) ;;
4758 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
4759 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
4760 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
4761 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
4762 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
4763 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4764 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4765 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4766 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
4767 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
4768 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
4769 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4770 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
4771 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
4772 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
4773 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
4774 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4775 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4776 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4777 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4778 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
4779 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4780 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
4781 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4782 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4783 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
4784 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4785 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
4786 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
4787 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
4788 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
4789 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4790 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4791 bfd_pyramid_arch) ;;
4792 bfd_romp_arch) ;;
4793 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4794 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
4795 bfd_sh_arch)
4796 # We can't decide what we want just from the CPU family.
4797 # We want SH5 support unless a specific version of sh is
4798 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
4799 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
4800 for t in $target $canon_targets; do
4801 case $t in
4802 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
4803 sh-*-linux* | shl-*-linux*)
4804 ta="$ta sh64-dis.lo sh64-opc.lo"
4805 archdefs="$archdefs -DINCLUDE_SHMEDIA"
4806 break;;
4807 esac;
4808 done
4809 ta="$ta sh-dis.lo" ;;
4810 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4811 bfd_tahoe_arch) ;;
4812 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4813 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
4814 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4815 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4816 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4817 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4818 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4819 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4820 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4821 bfd_we32k_arch) ;;
4822 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
4823 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
4824 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4825 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
4826
4827 "") ;;
4828 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4829 esac
4830 done
4831
4832 if test $using_cgen = yes ; then
4833 ta="$ta $cgen_files"
4834 fi
4835
4836 # Weed out duplicate .o files.
4837 f=""
4838 for i in $ta ; do
4839 case " $f " in
4840 *" $i "*) ;;
4841 *) f="$f $i" ;;
4842 esac
4843 done
4844 ta="$f"
4845
4846 # And duplicate -D flags.
4847 f=""
4848 for i in $archdefs ; do
4849 case " $f " in
4850 *" $i "*) ;;
4851 *) f="$f $i" ;;
4852 esac
4853 done
4854 archdefs="$f"
4855
4856 BFD_MACHINES="$ta"
4857
4858else # all_targets is true
4859 archdefs=-DARCH_all
4860 BFD_MACHINES='$(ALL_MACHINES)'
4861fi
4862
4863
4864
4865
4866trap '' 1 2 15
4867cat > confcache <<\EOF
4868# This file is a shell script that caches the results of configure
4869# tests run on this system so they can be shared between configure
4870# scripts and configure runs. It is not useful on other systems.
4871# If it contains results you don't want to keep, you may remove or edit it.
4872#
4873# By default, configure uses ./config.cache as the cache file,
4874# creating it if it does not exist already. You can give configure
4875# the --cache-file=FILE option to use a different cache file; that is
4876# what configure does when it calls configure scripts in
4877# subdirectories, so they share the cache.
4878# Giving --cache-file=/dev/null disables caching, for debugging configure.
4879# config.status only pays attention to the cache file if you give it the
4880# --recheck option to rerun configure.
4881#
4882EOF
4883# The following way of writing the cache mishandles newlines in values,
4884# but we know of no workaround that is simple, portable, and efficient.
4885# So, don't put newlines in cache variables' values.
4886# Ultrix sh set writes to stderr and can't be redirected directly,
4887# and sets the high bit in the cache file unless we assign to the vars.
4888(set) 2>&1 |
4889 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4890 *ac_space=\ *)
4891 # `set' does not quote correctly, so add quotes (double-quote substitution
4892 # turns \\\\ into \\, and sed turns \\ into \).
4893 sed -n \
4894 -e "s/'/'\\\\''/g" \
4895 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4896 ;;
4897 *)
4898 # `set' quotes correctly as required by POSIX, so do not add quotes.
4899 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4900 ;;
4901 esac >> confcache
4902if cmp -s $cache_file confcache; then
4903 :
4904else
4905 if test -w $cache_file; then
4906 echo "updating cache $cache_file"
4907 cat confcache > $cache_file
4908 else
4909 echo "not updating unwritable cache $cache_file"
4910 fi
4911fi
4912rm -f confcache
4913
4914trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4915
4916test "x$prefix" = xNONE && prefix=$ac_default_prefix
4917# Let make expand exec_prefix.
4918test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4919
4920# Any assignment to VPATH causes Sun make to only execute
4921# the first set of double-colon rules, so remove it if not needed.
4922# If there is a colon in the path, we need to keep it.
4923if test "x$srcdir" = x.; then
4924 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4925fi
4926
4927trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4928
4929DEFS=-DHAVE_CONFIG_H
4930
4931# Without the "./", some shells look in PATH for config.status.
4932: ${CONFIG_STATUS=./config.status}
4933
4934echo creating $CONFIG_STATUS
4935rm -f $CONFIG_STATUS
4936cat > $CONFIG_STATUS <<EOF
4937#! /bin/sh
4938# Generated automatically by configure.
4939# Run this file to recreate the current configuration.
4940# This directory was configured as follows,
4941EOF
4942echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
4943cat >> $CONFIG_STATUS <<EOF
4944# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4945#
4946# $0 $ac_configure_args
4947#
4948# Compiler output produced by configure, useful for debugging
4949# configure, is in ./config.log if it exists.
4950
4951ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4952for ac_option
4953do
4954 case "\$ac_option" in
4955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4956 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4957 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4958 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4959 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4960 exit 0 ;;
4961 -help | --help | --hel | --he | --h)
4962 echo "\$ac_cs_usage"; exit 0 ;;
4963 *) echo "\$ac_cs_usage"; exit 1 ;;
4964 esac
4965done
4966
4967ac_given_srcdir=$srcdir
4968ac_given_INSTALL="$INSTALL"
4969PATHIFS="$PATH_IFS"
4970
4971trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4972EOF
4973cat >> $CONFIG_STATUS <<EOF
4974
4975# Protect against being on the right side of a sed subst in config.status.
4976sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4977 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4978$ac_vpsub
4979$extrasub
4980s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
4981s%@SHELL@%$SHELL%g
4982s%@CFLAGS@%$CFLAGS%g
4983s%@CPPFLAGS@%$CPPFLAGS%g
4984s%@CXXFLAGS@%$CXXFLAGS%g
4985s%@FFLAGS@%$FFLAGS%g
4986s%@DEFS@%$DEFS%g
4987s%@LDFLAGS@%$LDFLAGS%g
4988s%@LIBS@%$LIBS%g
4989s%@exec_prefix@%$exec_prefix%g
4990s%@prefix@%$prefix%g
4991s%@program_transform_name@%$program_transform_name%g
4992s%@bindir@%$bindir%g
4993s%@sbindir@%$sbindir%g
4994s%@libexecdir@%$libexecdir%g
4995s%@datadir@%$datadir%g
4996s%@sysconfdir@%$sysconfdir%g
4997s%@sharedstatedir@%$sharedstatedir%g
4998s%@localstatedir@%$localstatedir%g
4999s%@libdir@%$libdir%g
5000s%@includedir@%$includedir%g
5001s%@oldincludedir@%$oldincludedir%g
5002s%@infodir@%$infodir%g
5003s%@mandir@%$mandir%g
5004s%@PATH_IFS@%$PATH_IFS%g
5005s%@EXEEXT@%$EXEEXT%g
5006s%@host@%$host%g
5007s%@host_alias@%$host_alias%g
5008s%@host_cpu@%$host_cpu%g
5009s%@host_vendor@%$host_vendor%g
5010s%@host_os@%$host_os%g
5011s%@target@%$target%g
5012s%@target_alias@%$target_alias%g
5013s%@target_cpu@%$target_cpu%g
5014s%@target_vendor@%$target_vendor%g
5015s%@target_os@%$target_os%g
5016s%@build@%$build%g
5017s%@build_alias@%$build_alias%g
5018s%@build_cpu@%$build_cpu%g
5019s%@build_vendor@%$build_vendor%g
5020s%@build_os@%$build_os%g
5021s%@CC@%$CC%g
5022s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5023s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5024s%@INSTALL_DATA@%$INSTALL_DATA%g
5025s%@PACKAGE@%$PACKAGE%g
5026s%@VERSION@%$VERSION%g
5027s%@ACLOCAL@%$ACLOCAL%g
5028s%@AUTOCONF@%$AUTOCONF%g
5029s%@AUTOMAKE@%$AUTOMAKE%g
5030s%@AUTOHEADER@%$AUTOHEADER%g
5031s%@MAKEINFO@%$MAKEINFO%g
5032s%@SET_MAKE@%$SET_MAKE%g
5033s%@AR@%$AR%g
5034s%@RANLIB@%$RANLIB%g
5035s%@LN_S@%$LN_S%g
5036s%@OBJEXT@%$OBJEXT%g
5037s%@STRIP@%$STRIP%g
5038s%@LIBTOOL@%$LIBTOOL%g
5039s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5040s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5041s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5042s%@MAINT@%$MAINT%g
5043s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
5044s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
5045s%@bfdlibdir@%$bfdlibdir%g
5046s%@bfdincludedir@%$bfdincludedir%g
5047s%@CPP@%$CPP%g
5048s%@ALLOCA@%$ALLOCA%g
5049s%@USE_NLS@%$USE_NLS%g
5050s%@MSGFMT@%$MSGFMT%g
5051s%@GMSGFMT@%$GMSGFMT%g
5052s%@XGETTEXT@%$XGETTEXT%g
5053s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5054s%@CATALOGS@%$CATALOGS%g
5055s%@CATOBJEXT@%$CATOBJEXT%g
5056s%@DATADIRNAME@%$DATADIRNAME%g
5057s%@GMOFILES@%$GMOFILES%g
5058s%@INSTOBJEXT@%$INSTOBJEXT%g
5059s%@INTLDEPS@%$INTLDEPS%g
5060s%@INTLLIBS@%$INTLLIBS%g
5061s%@INTLOBJS@%$INTLOBJS%g
5062s%@POFILES@%$POFILES%g
5063s%@POSUB@%$POSUB%g
5064s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5065s%@GT_NO@%$GT_NO%g
5066s%@GT_YES@%$GT_YES%g
5067s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5068s%@l@%$l%g
5069s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5070s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5071s%@HDEFINES@%$HDEFINES%g
5072s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
5073s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
5074s%@cgendir@%$cgendir%g
5075s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5076s%@WIN32LIBADD@%$WIN32LIBADD%g
5077s%@archdefs@%$archdefs%g
5078s%@BFD_MACHINES@%$BFD_MACHINES%g
5079
5080CEOF
5081EOF
5082
5083cat >> $CONFIG_STATUS <<\EOF
5084
5085# Split the substitutions into bite-sized pieces for seds with
5086# small command number limits, like on Digital OSF/1 and HP-UX.
5087ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5088ac_file=1 # Number of current file.
5089ac_beg=1 # First line for current file.
5090ac_end=$ac_max_sed_cmds # Line after last line for current file.
5091ac_more_lines=:
5092ac_sed_cmds=""
5093while $ac_more_lines; do
5094 if test $ac_beg -gt 1; then
5095 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5096 else
5097 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5098 fi
5099 if test ! -s conftest.s$ac_file; then
5100 ac_more_lines=false
5101 rm -f conftest.s$ac_file
5102 else
5103 if test -z "$ac_sed_cmds"; then
5104 ac_sed_cmds="sed -f conftest.s$ac_file"
5105 else
5106 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5107 fi
5108 ac_file=`expr $ac_file + 1`
5109 ac_beg=$ac_end
5110 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5111 fi
5112done
5113if test -z "$ac_sed_cmds"; then
5114 ac_sed_cmds=cat
5115fi
5116EOF
5117
5118cat >> $CONFIG_STATUS <<EOF
5119
5120CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5121EOF
5122cat >> $CONFIG_STATUS <<\EOF
5123for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5125 case "$ac_file" in
5126 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5127 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5128 *) ac_file_in="${ac_file}.in" ;;
5129 esac
5130
5131 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5132
5133 # Remove last slash and all that follows it. Not all systems have dirname.
5134 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5135 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5136 # The file is in a subdirectory.
5137 test ! -d "$ac_dir" && mkdir "$ac_dir"
5138 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5139 # A "../" for each directory in $ac_dir_suffix.
5140 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5141 else
5142 ac_dir_suffix= ac_dots=
5143 fi
5144
5145 case "$ac_given_srcdir" in
5146 .) srcdir=.
5147 if test -z "$ac_dots"; then top_srcdir=.
5148 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5149 [/\\]* | [a-zA-Z]:*)
5150 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5151 *) # Relative path.
5152 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5153 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5154 esac
5155
5156 case "$ac_given_INSTALL" in
5157 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
5158 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5159 esac
5160
5161 echo creating "$ac_file"
5162 rm -f "$ac_file"
5163 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5164 case "$ac_file" in
5165 *Makefile*) ac_comsub="1i\\
5166# $configure_input" ;;
5167 *) ac_comsub= ;;
5168 esac
5169
5170 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
5171 sed -e "$ac_comsub
5172s%@configure_input@%$configure_input%g
5173s%@srcdir@%$srcdir%g
5174s%@top_srcdir@%$top_srcdir%g
5175s%@INSTALL@%$INSTALL%g
5176" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5177fi; done
5178rm -f conftest.s*
5179
5180# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5181# NAME is the cpp macro being defined and VALUE is the value it is being given.
5182#
5183# ac_d sets the value in "#define NAME VALUE" lines.
5184ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5185ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5186ac_dC='\3'
5187ac_dD='%g'
5188# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5189ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5190ac_uB='\([ ]\)%\1#\2define\3'
5191ac_uC=' '
5192ac_uD='\4%g'
5193# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5194ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5195ac_eB='$%\1#\2define\3'
5196ac_eC=' '
5197ac_eD='%g'
5198
5199if test "${CONFIG_HEADERS+set}" != set; then
5200EOF
5201cat >> $CONFIG_STATUS <<EOF
5202 CONFIG_HEADERS="config.h:config.in"
5203EOF
5204cat >> $CONFIG_STATUS <<\EOF
5205fi
5206for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5207 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5208 case "$ac_file" in
5209 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5210 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5211 *) ac_file_in="${ac_file}.in" ;;
5212 esac
5213
5214 echo creating $ac_file
5215
5216 rm -f conftest.frag conftest.in conftest.out
5217# kso the other way around might work better with drive letters and such.
5218# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5219 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
5220 cat $ac_file_inputs > conftest.in
5221
5222EOF
5223
5224# Transform confdefs.h into a sed script conftest.vals that substitutes
5225# the proper values into config.h.in to produce config.h. And first:
5226# Protect against being on the right side of a sed subst in config.status.
5227# Protect against being in an unquoted here document in config.status.
5228rm -f conftest.vals
5229cat > conftest.hdr <<\EOF
5230s/[\\&%]/\\&/g
5231s%[\\$`]%\\&%g
5232s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5233s%ac_d%ac_u%gp
5234s%ac_u%ac_e%gp
5235EOF
5236sed -n -f conftest.hdr confdefs.h > conftest.vals
5237rm -f conftest.hdr
5238
5239# This sed command replaces #undef with comments. This is necessary, for
5240# example, in the case of _POSIX_SOURCE, which is predefined and required
5241# on some systems where configure will not decide to define it.
5242cat >> conftest.vals <<\EOF
5243s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5244EOF
5245
5246# Break up conftest.vals because some shells have a limit on
5247# the size of here documents, and old seds have small limits too.
5248
5249rm -f conftest.tail
5250while :
5251do
5252 ac_lines=`grep -c . conftest.vals`
5253 # grep -c gives empty output for an empty file on some AIX systems.
5254 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5255 # Write a limited-size here document to conftest.frag.
5256 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5257 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5258 echo 'CEOF
5259 sed -f conftest.frag conftest.in > conftest.out
5260 rm -f conftest.in
5261 mv conftest.out conftest.in
5262' >> $CONFIG_STATUS
5263 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5264 rm -f conftest.vals
5265 mv conftest.tail conftest.vals
5266done
5267rm -f conftest.vals
5268
5269cat >> $CONFIG_STATUS <<\EOF
5270 rm -f conftest.frag conftest.h
5271 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5272 cat conftest.in >> conftest.h
5273 rm -f conftest.in
5274 if cmp -s $ac_file conftest.h 2>/dev/null; then
5275 echo "$ac_file is unchanged"
5276 rm -f conftest.h
5277 else
5278 # Remove last slash and all that follows it. Not all systems have dirname.
5279 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5281 # The file is in a subdirectory.
5282 test ! -d "$ac_dir" && mkdir "$ac_dir"
5283 fi
5284 rm -f $ac_file
5285 mv conftest.h $ac_file
5286 fi
5287fi; done
5288
5289EOF
5290cat >> $CONFIG_STATUS <<EOF
5291
5292
5293EOF
5294cat >> $CONFIG_STATUS <<\EOF
5295test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5296sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5297exit 0
5298EOF
5299chmod +x $CONFIG_STATUS
5300rm -fr confdefs* $ac_clean_files
5301test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5302
Note: See TracBrowser for help on using the repository browser.