source: trunk/src/binutils/opcodes/configure@ 10

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

Initial revision

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