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