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