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