2001-05-28 Philip Blundell <philb@gnu.org>
[binutils.git] / gprof / configure
blob4d55fcd608e2ea9feddd595cc25abb94c960a00f
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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"
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'
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
78 ac_prev=
79 for ac_option
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
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
94 # Accept the important Cygnus configure options, so we can diagnose typos.
96 case "$ac_option" in
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 ac_prev=bindir ;;
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
104 ac_prev=build ;;
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
154 with_gas=yes ;;
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
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
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
210 exit 0 ;;
212 -host | --host | --hos | --ho)
213 ac_prev=host ;;
214 -host=* | --host=* | --hos=* | --ho=*)
215 host="$ac_optarg" ;;
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" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 ac_prev=infodir ;;
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
230 ac_prev=libdir ;;
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
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" ;;
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" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 ac_prev=mandir ;;
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
255 -nfp | --nfp | --nf)
256 # Obsolete; use --without-fp.
257 with_fp=no ;;
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 | --no-cr | --no-c)
261 no_create=yes ;;
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 ;;
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" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 ac_prev=prefix ;;
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
314 silent=yes ;;
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" ;;
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" ;;
333 -site | --site | --sit)
334 ac_prev=site ;;
335 -site=* | --site=* | --sit=*)
336 site="$ac_optarg" ;;
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" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 ac_prev=srcdir ;;
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
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" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
356 ac_prev=target ;;
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 verbose=yes ;;
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
365 exit 0 ;;
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; }
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'" ;;
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; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
389 --x)
390 # Obsolete; use --with-x.
391 with_x=yes ;;
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" ;;
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" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
417 nonopt="$ac_option"
420 esac
421 done
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
442 exec 5>./config.log
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
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
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
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
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
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
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=..
495 else
496 ac_srcdir_defaulted=no
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; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
516 else
517 CONFIG_SITE="$sitefile"
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"
524 done
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
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
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=
551 else
552 ac_n= ac_c='\c' ac_t=
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"
564 int main() {
566 #ifndef __CYGWIN__
567 #define __CYGWIN__ __CYGWIN32__
568 #endif
569 return __CYGWIN__;
570 ; return 0; }
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
581 rm -f conftest*
582 rm -f conftest*
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"
597 int main() {
598 return __MINGW32__;
599 ; return 0; }
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
610 rm -f conftest*
611 rm -f conftest*
614 echo "$ac_t""$ac_cv_mingw32" 1>&6
615 MINGW32=
616 test "$ac_cv_mingw32" = yes && MINGW32=yes
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
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; }
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.
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
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.
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
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; }
665 echo $ac_n "checking host system type""... $ac_c" 1>&6
666 echo "configure:667: checking host system type" >&5
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
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
686 echo $ac_n "checking target system type""... $ac_c" 1>&6
687 echo "configure:688: checking target system type" >&5
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
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
704 echo $ac_n "checking build system type""... $ac_c" 1>&6
705 echo "configure:706: checking build system type" >&5
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
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
722 test "$host_alias" != "$target_alias" &&
723 test "$program_prefix$program_suffix$program_transform_name" = \
724 NONENONEs,x,x, &&
725 program_prefix=${target_alias}-
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
745 done
746 IFS="$ac_save_ifs"
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
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
777 ac_cv_prog_CC="cc"
778 break
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="$@"
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
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
826 done
827 IFS="$ac_save_ifs"
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
837 esac
839 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
852 cat > conftest.$ac_ext << EOF
854 #line 855 "configure"
855 #include "confdefs.h"
857 main(){return(0);}
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
867 else
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
870 ac_cv_prog_cc_works=no
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
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; }
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
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
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
906 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
908 if test $ac_cv_prog_gcc = yes; then
909 GCC=yes
910 else
911 GCC=
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
928 rm -f conftest*
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"
941 else
942 if test "$GCC" = yes; then
943 CFLAGS="-O2"
944 else
945 CFLAGS=
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
960 if test "$GCC" = yes; then
961 CC="$CC -posix"
962 else
963 CC="$CC -Xp"
965 else
966 echo "$ac_t""no" 1>&6
967 ISC=
971 # Find a good install program. We prefer a C program (faster),
972 # so one script is as good as another. But avoid the broken or
973 # incompatible versions:
974 # SysV /etc/install, /usr/sbin/install
975 # SunOS /usr/etc/install
976 # IRIX /sbin/install
977 # AIX /bin/install
978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
981 # ./install, which can be erroneously created by make from ./install.sh.
982 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
983 echo "configure:984: checking for a BSD compatible install" >&5
984 if test -z "$INSTALL"; then
985 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
987 else
988 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
989 for ac_dir in $PATH; do
990 # Account for people who put trailing slashes in PATH elements.
991 case "$ac_dir/" in
992 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
994 # OSF1 and SCO ODT 3.0 have their own names for install.
995 # Don't use installbsd from OSF since it installs stuff as root
996 # by default.
997 for ac_prog in ginstall scoinst install; do
998 if test -f $ac_dir/$ac_prog; then
999 if test $ac_prog = install &&
1000 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1001 # AIX install. It has an incompatible calling convention.
1003 else
1004 ac_cv_path_install="$ac_dir/$ac_prog -c"
1005 break 2
1008 done
1010 esac
1011 done
1012 IFS="$ac_save_IFS"
1015 if test "${ac_cv_path_install+set}" = set; then
1016 INSTALL="$ac_cv_path_install"
1017 else
1018 # As a last resort, use the slow shell script. We don't cache a
1019 # path for INSTALL within a source directory, because that will
1020 # break other packages using the cache if that directory is
1021 # removed, or if the path is relative.
1022 INSTALL="$ac_install_sh"
1025 echo "$ac_t""$INSTALL" 1>&6
1027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1028 # It thinks the first close brace ends the variable substitution.
1029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1035 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether build environment is sane" >&5
1037 # Just in case
1038 sleep 1
1039 echo timestamp > conftestfile
1040 # Do `set' in a subshell so we don't clobber the current shell's
1041 # arguments. Must try -L first in case configure is actually a
1042 # symlink; some systems play weird games with the mod time of symlinks
1043 # (eg FreeBSD returns the mod time of the symlink's containing
1044 # directory).
1045 if (
1046 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1047 if test "$*" = "X"; then
1048 # -L didn't work.
1049 set X `ls -t $srcdir/configure conftestfile`
1051 if test "$*" != "X $srcdir/configure conftestfile" \
1052 && test "$*" != "X conftestfile $srcdir/configure"; then
1054 # If neither matched, then we have a broken ls. This can happen
1055 # if, for instance, CONFIG_SHELL is bash and it inherits a
1056 # broken ls alias from the environment. This has actually
1057 # happened. Such a system could not be considered "sane".
1058 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1059 alias in your environment" 1>&2; exit 1; }
1062 test "$2" = conftestfile
1064 then
1065 # Ok.
1067 else
1068 { echo "configure: error: newly created file is older than distributed files!
1069 Check your system clock" 1>&2; exit 1; }
1071 rm -f conftest*
1072 echo "$ac_t""yes" 1>&6
1073 if test "$program_transform_name" = s,x,x,; then
1074 program_transform_name=
1075 else
1076 # Double any \ or $. echo might interpret backslashes.
1077 cat <<\EOF_SED > conftestsed
1078 s,\\,\\\\,g; s,\$,$$,g
1079 EOF_SED
1080 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1081 rm -f conftestsed
1083 test "$program_prefix" != NONE &&
1084 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1085 # Use a double $ so make ignores it.
1086 test "$program_suffix" != NONE &&
1087 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1089 # sed with no file args requires a program.
1090 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1092 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether ${MAKE-make} sets \${MAKE}" >&5
1094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1095 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097 else
1098 cat > conftestmake <<\EOF
1099 all:
1100 @echo 'ac_maketemp="${MAKE}"'
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105 eval ac_cv_prog_make_${ac_make}_set=yes
1106 else
1107 eval ac_cv_prog_make_${ac_make}_set=no
1109 rm -f conftestmake
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1113 SET_MAKE=
1114 else
1115 echo "$ac_t""no" 1>&6
1116 SET_MAKE="MAKE=${MAKE-make}"
1120 PACKAGE=gprof
1122 VERSION=2.11
1124 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1125 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1127 cat >> confdefs.h <<EOF
1128 #define PACKAGE "$PACKAGE"
1131 cat >> confdefs.h <<EOF
1132 #define VERSION "$VERSION"
1137 missing_dir=`cd $ac_aux_dir && pwd`
1138 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1139 echo "configure:1140: checking for working aclocal" >&5
1140 # Run test in a subshell; some versions of sh will print an error if
1141 # an executable is not found, even if stderr is redirected.
1142 # Redirect stdin to placate older versions of autoconf. Sigh.
1143 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1144 ACLOCAL=aclocal
1145 echo "$ac_t""found" 1>&6
1146 else
1147 ACLOCAL="$missing_dir/missing aclocal"
1148 echo "$ac_t""missing" 1>&6
1151 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1152 echo "configure:1153: checking for working autoconf" >&5
1153 # Run test in a subshell; some versions of sh will print an error if
1154 # an executable is not found, even if stderr is redirected.
1155 # Redirect stdin to placate older versions of autoconf. Sigh.
1156 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1157 AUTOCONF=autoconf
1158 echo "$ac_t""found" 1>&6
1159 else
1160 AUTOCONF="$missing_dir/missing autoconf"
1161 echo "$ac_t""missing" 1>&6
1164 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1165 echo "configure:1166: checking for working automake" >&5
1166 # Run test in a subshell; some versions of sh will print an error if
1167 # an executable is not found, even if stderr is redirected.
1168 # Redirect stdin to placate older versions of autoconf. Sigh.
1169 if (automake --version) < /dev/null > /dev/null 2>&1; then
1170 AUTOMAKE=automake
1171 echo "$ac_t""found" 1>&6
1172 else
1173 AUTOMAKE="$missing_dir/missing automake"
1174 echo "$ac_t""missing" 1>&6
1177 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1178 echo "configure:1179: checking for working autoheader" >&5
1179 # Run test in a subshell; some versions of sh will print an error if
1180 # an executable is not found, even if stderr is redirected.
1181 # Redirect stdin to placate older versions of autoconf. Sigh.
1182 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1183 AUTOHEADER=autoheader
1184 echo "$ac_t""found" 1>&6
1185 else
1186 AUTOHEADER="$missing_dir/missing autoheader"
1187 echo "$ac_t""missing" 1>&6
1190 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1191 echo "configure:1192: checking for working makeinfo" >&5
1192 # Run test in a subshell; some versions of sh will print an error if
1193 # an executable is not found, even if stderr is redirected.
1194 # Redirect stdin to placate older versions of autoconf. Sigh.
1195 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1196 MAKEINFO=makeinfo
1197 echo "$ac_t""found" 1>&6
1198 else
1199 MAKEINFO="$missing_dir/missing makeinfo"
1200 echo "$ac_t""missing" 1>&6
1205 # Check whether --enable-shared or --disable-shared was given.
1206 if test "${enable_shared+set}" = set; then
1207 enableval="$enable_shared"
1208 p=${PACKAGE-default}
1209 case "$enableval" in
1210 yes) enable_shared=yes ;;
1211 no) enable_shared=no ;;
1213 enable_shared=no
1214 # Look at the argument we got. We use all the common list separators.
1215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1216 for pkg in $enableval; do
1217 if test "X$pkg" = "X$p"; then
1218 enable_shared=yes
1220 done
1221 IFS="$ac_save_ifs"
1223 esac
1224 else
1225 enable_shared=yes
1228 # Check whether --enable-static or --disable-static was given.
1229 if test "${enable_static+set}" = set; then
1230 enableval="$enable_static"
1231 p=${PACKAGE-default}
1232 case "$enableval" in
1233 yes) enable_static=yes ;;
1234 no) enable_static=no ;;
1236 enable_static=no
1237 # Look at the argument we got. We use all the common list separators.
1238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1239 for pkg in $enableval; do
1240 if test "X$pkg" = "X$p"; then
1241 enable_static=yes
1243 done
1244 IFS="$ac_save_ifs"
1246 esac
1247 else
1248 enable_static=yes
1251 # Check whether --enable-fast-install or --disable-fast-install was given.
1252 if test "${enable_fast_install+set}" = set; then
1253 enableval="$enable_fast_install"
1254 p=${PACKAGE-default}
1255 case "$enableval" in
1256 yes) enable_fast_install=yes ;;
1257 no) enable_fast_install=no ;;
1259 enable_fast_install=no
1260 # Look at the argument we got. We use all the common list separators.
1261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1262 for pkg in $enableval; do
1263 if test "X$pkg" = "X$p"; then
1264 enable_fast_install=yes
1266 done
1267 IFS="$ac_save_ifs"
1269 esac
1270 else
1271 enable_fast_install=yes
1274 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1275 if test "${with_gnu_ld+set}" = set; then
1276 withval="$with_gnu_ld"
1277 test "$withval" = no || with_gnu_ld=yes
1278 else
1279 with_gnu_ld=no
1282 ac_prog=ld
1283 if test "$ac_cv_prog_gcc" = yes; then
1284 # Check if gcc -print-prog-name=ld gives a path.
1285 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1286 echo "configure:1287: checking for ld used by GCC" >&5
1287 case $host in
1288 *-*-mingw*)
1289 # gcc leaves a trailing carriage return which upsets mingw
1290 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1292 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1293 esac
1294 case "$ac_prog" in
1295 # Accept absolute paths.
1296 [\\/]* | [A-Za-z]:[\\/]*)
1297 re_direlt='/[^/][^/]*/\.\./'
1298 # Canonicalize the path of ld
1299 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1300 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1301 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1302 done
1303 test -z "$LD" && LD="$ac_prog"
1306 # If it fails, then pretend we aren't using GCC.
1307 ac_prog=ld
1310 # If it is relative, then search for the first ld in PATH.
1311 with_gnu_ld=unknown
1313 esac
1314 elif test "$with_gnu_ld" = yes; then
1315 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1316 echo "configure:1317: checking for GNU ld" >&5
1317 else
1318 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1319 echo "configure:1320: checking for non-GNU ld" >&5
1321 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324 if test -z "$LD"; then
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1326 for ac_dir in $PATH; do
1327 test -z "$ac_dir" && ac_dir=.
1328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1329 ac_cv_path_LD="$ac_dir/$ac_prog"
1330 # Check to see if the program is GNU ld. I'd rather use --version,
1331 # but apparently some GNU ld's only accept -v.
1332 # Break only if it was the GNU/non-GNU ld that we prefer.
1333 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1334 test "$with_gnu_ld" != no && break
1335 else
1336 test "$with_gnu_ld" != yes && break
1339 done
1340 IFS="$ac_save_ifs"
1341 else
1342 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1346 LD="$ac_cv_path_LD"
1347 if test -n "$LD"; then
1348 echo "$ac_t""$LD" 1>&6
1349 else
1350 echo "$ac_t""no" 1>&6
1352 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1353 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1354 echo "configure:1355: checking if the linker ($LD) is GNU ld" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357 else
1358 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1359 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1360 ac_cv_prog_gnu_ld=yes
1361 else
1362 ac_cv_prog_gnu_ld=no
1366 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1367 with_gnu_ld=$ac_cv_prog_gnu_ld
1370 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $LD option to reload object files" >&5
1372 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 lt_cv_ld_reload_flag='-r'
1378 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1379 reload_flag=$lt_cv_ld_reload_flag
1380 test -n "$reload_flag" && reload_flag=" $reload_flag"
1382 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1383 echo "configure:1384: checking for BSD-compatible nm" >&5
1384 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1386 else
1387 if test -n "$NM"; then
1388 # Let the user override the test.
1389 ac_cv_path_NM="$NM"
1390 else
1391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1392 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1393 test -z "$ac_dir" && ac_dir=.
1394 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1395 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1396 # Check to see if the nm accepts a BSD-compat flag.
1397 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1398 # nm: unknown option "B" ignored
1399 # Tru64's nm complains that /dev/null is an invalid object file
1400 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1401 ac_cv_path_NM="$tmp_nm -B"
1402 break
1403 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1404 ac_cv_path_NM="$tmp_nm -p"
1405 break
1406 else
1407 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1408 continue # so that we can try to find one that supports BSD flags
1411 done
1412 IFS="$ac_save_ifs"
1413 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1417 NM="$ac_cv_path_NM"
1418 echo "$ac_t""$NM" 1>&6
1420 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether ln -s works" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425 rm -f conftestdata
1426 if ln -s X conftestdata 2>/dev/null
1427 then
1428 rm -f conftestdata
1429 ac_cv_prog_LN_S="ln -s"
1430 else
1431 ac_cv_prog_LN_S=ln
1434 LN_S="$ac_cv_prog_LN_S"
1435 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1436 echo "$ac_t""yes" 1>&6
1437 else
1438 echo "$ac_t""no" 1>&6
1441 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1442 echo "configure:1443: checking how to recognise dependant libraries" >&5
1443 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1445 else
1446 lt_cv_file_magic_cmd='$MAGIC_CMD'
1447 lt_cv_file_magic_test_file=
1448 lt_cv_deplibs_check_method='unknown'
1449 # Need to set the preceding variable on all platforms that support
1450 # interlibrary dependencies.
1451 # 'none' -- dependencies not supported.
1452 # `unknown' -- same as none, but documents that we really don't know.
1453 # 'pass_all' -- all dependencies passed with no checks.
1454 # 'test_compile' -- check by making test program.
1455 # 'file_magic [regex]' -- check by looking for files in library path
1456 # which responds to the $file_magic_cmd with a given egrep regex.
1457 # If you have `file' or equivalent on your system and you're not sure
1458 # whether `pass_all' will *always* work, you probably want this one.
1460 case "$host_os" in
1461 aix4*)
1462 lt_cv_deplibs_check_method=pass_all
1465 beos*)
1466 lt_cv_deplibs_check_method=pass_all
1469 bsdi4*)
1470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1471 lt_cv_file_magic_cmd='/usr/bin/file -L'
1472 lt_cv_file_magic_test_file=/shlib/libc.so
1475 cygwin* | mingw* |pw32*)
1476 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1477 lt_cv_file_magic_cmd='$OBJDUMP -f'
1480 freebsd* )
1481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1482 case "$host_cpu" in
1483 i*86 )
1484 # Not sure whether the presence of OpenBSD here was a mistake.
1485 # Let's accept both of them until this is cleared up.
1486 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1487 lt_cv_file_magic_cmd=/usr/bin/file
1488 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1490 esac
1491 else
1492 lt_cv_deplibs_check_method=pass_all
1496 gnu*)
1497 lt_cv_deplibs_check_method=pass_all
1500 hpux10.20*)
1501 # TODO: Does this work for hpux-11 too?
1502 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1503 lt_cv_file_magic_cmd=/usr/bin/file
1504 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1507 irix5* | irix6*)
1508 case "$host_os" in
1509 irix5*)
1510 # this will be overridden with pass_all, but let us keep it just in case
1511 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1514 case "$LD" in
1515 *-32|*"-32 ") libmagic=32-bit;;
1516 *-n32|*"-n32 ") libmagic=N32;;
1517 *-64|*"-64 ") libmagic=64-bit;;
1518 *) libmagic=never-match;;
1519 esac
1520 # this will be overridden with pass_all, but let us keep it just in case
1521 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1523 esac
1524 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1525 lt_cv_deplibs_check_method=pass_all
1528 # This must be Linux ELF.
1529 linux-gnu*)
1530 case "$host_cpu" in
1531 alpha* | i*86 | powerpc* | sparc* | ia64* )
1532 lt_cv_deplibs_check_method=pass_all ;;
1534 # glibc up to 2.1.1 does not perform some relocations on ARM
1535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1536 esac
1537 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1540 netbsd*)
1541 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1542 else
1543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1544 lt_cv_file_magic_cmd='/usr/bin/file -L'
1545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1549 osf3* | osf4* | osf5*)
1550 # this will be overridden with pass_all, but let us keep it just in case
1551 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1552 lt_cv_file_magic_test_file=/shlib/libc.so
1553 lt_cv_deplibs_check_method=pass_all
1556 sco3.2v5*)
1557 lt_cv_deplibs_check_method=pass_all
1560 solaris*)
1561 lt_cv_deplibs_check_method=pass_all
1562 lt_cv_file_magic_test_file=/lib/libc.so
1565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1566 case "$host_vendor" in
1567 ncr)
1568 lt_cv_deplibs_check_method=pass_all
1570 motorola)
1571 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]'
1572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1574 esac
1576 esac
1580 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1581 file_magic_cmd=$lt_cv_file_magic_cmd
1582 deplibs_check_method=$lt_cv_deplibs_check_method
1584 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1585 echo "configure:1586: checking for object suffix" >&5
1586 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 rm -f conftest*
1590 echo 'int i = 1;' > conftest.$ac_ext
1591 if { (eval echo configure:1592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1592 for ac_file in conftest.*; do
1593 case $ac_file in
1594 *.c) ;;
1595 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1596 esac
1597 done
1598 else
1599 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1601 rm -f conftest*
1604 echo "$ac_t""$ac_cv_objext" 1>&6
1605 OBJEXT=$ac_cv_objext
1606 ac_objext=$ac_cv_objext
1610 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1611 echo "configure:1612: checking for executable suffix" >&5
1612 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1614 else
1615 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1616 ac_cv_exeext=.exe
1617 else
1618 rm -f conftest*
1619 echo 'int main () { return 0; }' > conftest.$ac_ext
1620 ac_cv_exeext=
1621 if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1622 for file in conftest.*; do
1623 case $file in
1624 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1625 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1626 esac
1627 done
1628 else
1629 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1631 rm -f conftest*
1632 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1636 EXEEXT=""
1637 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1638 echo "$ac_t""${ac_cv_exeext}" 1>&6
1639 ac_exeext=$EXEEXT
1641 if test $host != $build; then
1642 ac_tool_prefix=${host_alias}-
1643 else
1644 ac_tool_prefix=
1647 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1649 # Only perform the check for file, if the check method requires it
1650 case "$deplibs_check_method" in
1651 file_magic*)
1652 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1653 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1654 echo "configure:1655: checking for ${ac_tool_prefix}file" >&5
1655 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658 case "$MAGIC_CMD" in
1660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1662 ?:/*)
1663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1666 ac_save_MAGIC_CMD="$MAGIC_CMD"
1667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1668 ac_dummy="/usr/bin:$PATH"
1669 for ac_dir in $ac_dummy; do
1670 test -z "$ac_dir" && ac_dir=.
1671 if test -f $ac_dir/${ac_tool_prefix}file; then
1672 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1673 if test -n "$file_magic_test_file"; then
1674 case "$deplibs_check_method" in
1675 "file_magic "*)
1676 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1679 egrep "$file_magic_regex" > /dev/null; then
1681 else
1682 cat <<EOF 1>&2
1684 *** Warning: the command libtool uses to detect shared libraries,
1685 *** $file_magic_cmd, produces output that libtool cannot recognize.
1686 *** The result is that libtool may fail to recognize shared libraries
1687 *** as such. This will affect the creation of libtool libraries that
1688 *** depend on shared libraries, but programs linked with such libtool
1689 *** libraries will work regardless of this problem. Nevertheless, you
1690 *** may want to report the problem to your system manager and/or to
1691 *** bug-libtool@gnu.org
1694 fi ;;
1695 esac
1697 break
1699 done
1700 IFS="$ac_save_ifs"
1701 MAGIC_CMD="$ac_save_MAGIC_CMD"
1703 esac
1706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1707 if test -n "$MAGIC_CMD"; then
1708 echo "$ac_t""$MAGIC_CMD" 1>&6
1709 else
1710 echo "$ac_t""no" 1>&6
1713 if test -z "$lt_cv_path_MAGIC_CMD"; then
1714 if test -n "$ac_tool_prefix"; then
1715 echo $ac_n "checking for file""... $ac_c" 1>&6
1716 echo "configure:1717: checking for file" >&5
1717 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719 else
1720 case "$MAGIC_CMD" in
1722 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1724 ?:/*)
1725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1728 ac_save_MAGIC_CMD="$MAGIC_CMD"
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1730 ac_dummy="/usr/bin:$PATH"
1731 for ac_dir in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir=.
1733 if test -f $ac_dir/file; then
1734 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1735 if test -n "$file_magic_test_file"; then
1736 case "$deplibs_check_method" in
1737 "file_magic "*)
1738 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1741 egrep "$file_magic_regex" > /dev/null; then
1743 else
1744 cat <<EOF 1>&2
1746 *** Warning: the command libtool uses to detect shared libraries,
1747 *** $file_magic_cmd, produces output that libtool cannot recognize.
1748 *** The result is that libtool may fail to recognize shared libraries
1749 *** as such. This will affect the creation of libtool libraries that
1750 *** depend on shared libraries, but programs linked with such libtool
1751 *** libraries will work regardless of this problem. Nevertheless, you
1752 *** may want to report the problem to your system manager and/or to
1753 *** bug-libtool@gnu.org
1756 fi ;;
1757 esac
1759 break
1761 done
1762 IFS="$ac_save_ifs"
1763 MAGIC_CMD="$ac_save_MAGIC_CMD"
1765 esac
1768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1769 if test -n "$MAGIC_CMD"; then
1770 echo "$ac_t""$MAGIC_CMD" 1>&6
1771 else
1772 echo "$ac_t""no" 1>&6
1775 else
1776 MAGIC_CMD=:
1782 esac
1784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791 if test -n "$RANLIB"; then
1792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1793 else
1794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1795 ac_dummy="$PATH"
1796 for ac_dir in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1800 break
1802 done
1803 IFS="$ac_save_ifs"
1806 RANLIB="$ac_cv_prog_RANLIB"
1807 if test -n "$RANLIB"; then
1808 echo "$ac_t""$RANLIB" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1814 if test -z "$ac_cv_prog_RANLIB"; then
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "ranlib", so it can be a program name with args.
1817 set dummy ranlib; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823 if test -n "$RANLIB"; then
1824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1825 else
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1827 ac_dummy="$PATH"
1828 for ac_dir in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir=.
1830 if test -f $ac_dir/$ac_word; then
1831 ac_cv_prog_RANLIB="ranlib"
1832 break
1834 done
1835 IFS="$ac_save_ifs"
1836 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1839 RANLIB="$ac_cv_prog_RANLIB"
1840 if test -n "$RANLIB"; then
1841 echo "$ac_t""$RANLIB" 1>&6
1842 else
1843 echo "$ac_t""no" 1>&6
1846 else
1847 RANLIB=":"
1851 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}strip; ac_word=$2
1853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_word" >&5
1855 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858 if test -n "$STRIP"; then
1859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1860 else
1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1862 ac_dummy="$PATH"
1863 for ac_dir in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1867 break
1869 done
1870 IFS="$ac_save_ifs"
1873 STRIP="$ac_cv_prog_STRIP"
1874 if test -n "$STRIP"; then
1875 echo "$ac_t""$STRIP" 1>&6
1876 else
1877 echo "$ac_t""no" 1>&6
1881 if test -z "$ac_cv_prog_STRIP"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1886 echo "configure:1887: checking for $ac_word" >&5
1887 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890 if test -n "$STRIP"; then
1891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1892 else
1893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1894 ac_dummy="$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word; then
1898 ac_cv_prog_STRIP="strip"
1899 break
1901 done
1902 IFS="$ac_save_ifs"
1903 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1906 STRIP="$ac_cv_prog_STRIP"
1907 if test -n "$STRIP"; then
1908 echo "$ac_t""$STRIP" 1>&6
1909 else
1910 echo "$ac_t""no" 1>&6
1913 else
1914 STRIP=":"
1919 # Check for any special flags to pass to ltconfig.
1920 libtool_flags="--cache-file=$cache_file"
1921 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1922 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1923 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1924 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1925 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1928 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1929 if test "${enable_libtool_lock+set}" = set; then
1930 enableval="$enable_libtool_lock"
1934 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1935 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1937 # Check whether --with-pic or --without-pic was given.
1938 if test "${with_pic+set}" = set; then
1939 withval="$with_pic"
1940 pic_mode="$withval"
1941 else
1942 pic_mode=default
1945 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1946 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1948 # Some flags need to be propagated to the compiler or linker for good
1949 # libtool support.
1950 case "$host" in
1951 *-*-irix6*)
1952 # Find out which ABI we are using.
1953 echo '#line 1954 "configure"' > conftest.$ac_ext
1954 if { (eval echo configure:1955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1955 case "`/usr/bin/file conftest.o`" in
1956 *32-bit*)
1957 LD="${LD-ld} -32"
1959 *N32*)
1960 LD="${LD-ld} -n32"
1962 *64-bit*)
1963 LD="${LD-ld} -64"
1965 esac
1967 rm -rf conftest*
1970 *-*-sco3.2v5*)
1971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1972 SAVE_CFLAGS="$CFLAGS"
1973 CFLAGS="$CFLAGS -belf"
1974 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1975 echo "configure:1976: checking whether the C compiler needs -belf" >&5
1976 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978 else
1980 ac_ext=c
1981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1982 ac_cpp='$CPP $CPPFLAGS'
1983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1985 cross_compiling=$ac_cv_prog_cc_cross
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1991 int main() {
1993 ; return 0; }
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1996 rm -rf conftest*
1997 lt_cv_cc_needs_belf=yes
1998 else
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -rf conftest*
2002 lt_cv_cc_needs_belf=no
2004 rm -f conftest*
2005 ac_ext=c
2006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2010 cross_compiling=$ac_cv_prog_cc_cross
2014 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2017 CFLAGS="$SAVE_CFLAGS"
2022 esac
2025 # Save cache, so that ltconfig can load it
2026 cat > confcache <<\EOF
2027 # This file is a shell script that caches the results of configure
2028 # tests run on this system so they can be shared between configure
2029 # scripts and configure runs. It is not useful on other systems.
2030 # If it contains results you don't want to keep, you may remove or edit it.
2032 # By default, configure uses ./config.cache as the cache file,
2033 # creating it if it does not exist already. You can give configure
2034 # the --cache-file=FILE option to use a different cache file; that is
2035 # what configure does when it calls configure scripts in
2036 # subdirectories, so they share the cache.
2037 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2038 # config.status only pays attention to the cache file if you give it the
2039 # --recheck option to rerun configure.
2042 # The following way of writing the cache mishandles newlines in values,
2043 # but we know of no workaround that is simple, portable, and efficient.
2044 # So, don't put newlines in cache variables' values.
2045 # Ultrix sh set writes to stderr and can't be redirected directly,
2046 # and sets the high bit in the cache file unless we assign to the vars.
2047 (set) 2>&1 |
2048 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2049 *ac_space=\ *)
2050 # `set' does not quote correctly, so add quotes (double-quote substitution
2051 # turns \\\\ into \\, and sed turns \\ into \).
2052 sed -n \
2053 -e "s/'/'\\\\''/g" \
2054 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2057 # `set' quotes correctly as required by POSIX, so do not add quotes.
2058 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2060 esac >> confcache
2061 if cmp -s $cache_file confcache; then
2063 else
2064 if test -w $cache_file; then
2065 echo "updating cache $cache_file"
2066 cat confcache > $cache_file
2067 else
2068 echo "not updating unwritable cache $cache_file"
2071 rm -f confcache
2074 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2075 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2076 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2077 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2078 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2079 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2080 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2081 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2082 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2083 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2085 # Reload cache, that may have been modified by ltconfig
2086 if test -r "$cache_file"; then
2087 echo "loading cache $cache_file"
2088 . $cache_file
2089 else
2090 echo "creating cache $cache_file"
2091 > $cache_file
2095 # This can be used to rebuild libtool when needed
2096 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2098 # Always use our own libtool.
2099 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2101 # Redirect the config.log output again, so that the ltconfig log is not
2102 # clobbered by the next message.
2103 exec 5>>./config.log
2116 # Extract the first word of "gcc", so it can be a program name with args.
2117 set dummy gcc; ac_word=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5
2120 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123 if test -n "$CC"; then
2124 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 else
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 ac_dummy="$PATH"
2128 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 if test -f $ac_dir/$ac_word; then
2131 ac_cv_prog_CC="gcc"
2132 break
2134 done
2135 IFS="$ac_save_ifs"
2138 CC="$ac_cv_prog_CC"
2139 if test -n "$CC"; then
2140 echo "$ac_t""$CC" 1>&6
2141 else
2142 echo "$ac_t""no" 1>&6
2145 if test -z "$CC"; then
2146 # Extract the first word of "cc", so it can be a program name with args.
2147 set dummy cc; ac_word=$2
2148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_word" >&5
2150 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2157 ac_prog_rejected=no
2158 ac_dummy="$PATH"
2159 for ac_dir in $ac_dummy; do
2160 test -z "$ac_dir" && ac_dir=.
2161 if test -f $ac_dir/$ac_word; then
2162 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2163 ac_prog_rejected=yes
2164 continue
2166 ac_cv_prog_CC="cc"
2167 break
2169 done
2170 IFS="$ac_save_ifs"
2171 if test $ac_prog_rejected = yes; then
2172 # We found a bogon in the path, so make sure we never use it.
2173 set dummy $ac_cv_prog_CC
2174 shift
2175 if test $# -gt 0; then
2176 # We chose a different compiler from the bogus one.
2177 # However, it has the same basename, so the bogon will be chosen
2178 # first if we set CC to just the basename; use the full file name.
2179 shift
2180 set dummy "$ac_dir/$ac_word" "$@"
2181 shift
2182 ac_cv_prog_CC="$@"
2187 CC="$ac_cv_prog_CC"
2188 if test -n "$CC"; then
2189 echo "$ac_t""$CC" 1>&6
2190 else
2191 echo "$ac_t""no" 1>&6
2194 if test -z "$CC"; then
2195 case "`uname -s`" in
2196 *win32* | *WIN32*)
2197 # Extract the first word of "cl", so it can be a program name with args.
2198 set dummy cl; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 if test -n "$CC"; then
2205 ac_cv_prog_CC="$CC" # Let the user override the test.
2206 else
2207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 ac_dummy="$PATH"
2209 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 if test -f $ac_dir/$ac_word; then
2212 ac_cv_prog_CC="cl"
2213 break
2215 done
2216 IFS="$ac_save_ifs"
2219 CC="$ac_cv_prog_CC"
2220 if test -n "$CC"; then
2221 echo "$ac_t""$CC" 1>&6
2222 else
2223 echo "$ac_t""no" 1>&6
2226 esac
2228 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2231 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2234 ac_ext=c
2235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2239 cross_compiling=$ac_cv_prog_cc_cross
2241 cat > conftest.$ac_ext << EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2246 main(){return(0);}
2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2249 ac_cv_prog_cc_works=yes
2250 # If we can't run a trivial program, we are probably using a cross compiler.
2251 if (./conftest; exit) 2>/dev/null; then
2252 ac_cv_prog_cc_cross=no
2253 else
2254 ac_cv_prog_cc_cross=yes
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 ac_cv_prog_cc_works=no
2261 rm -fr conftest*
2262 ac_ext=c
2263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2267 cross_compiling=$ac_cv_prog_cc_cross
2269 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2270 if test $ac_cv_prog_cc_works = no; then
2271 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2273 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2274 echo "configure:2275: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2275 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2276 cross_compiling=$ac_cv_prog_cc_cross
2278 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2279 echo "configure:2280: checking whether we are using GNU C" >&5
2280 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283 cat > conftest.c <<EOF
2284 #ifdef __GNUC__
2285 yes;
2286 #endif
2288 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2289 ac_cv_prog_gcc=yes
2290 else
2291 ac_cv_prog_gcc=no
2295 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2297 if test $ac_cv_prog_gcc = yes; then
2298 GCC=yes
2299 else
2300 GCC=
2303 ac_test_CFLAGS="${CFLAGS+set}"
2304 ac_save_CFLAGS="$CFLAGS"
2305 CFLAGS=
2306 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2307 echo "configure:2308: checking whether ${CC-cc} accepts -g" >&5
2308 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2310 else
2311 echo 'void f(){}' > conftest.c
2312 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2313 ac_cv_prog_cc_g=yes
2314 else
2315 ac_cv_prog_cc_g=no
2317 rm -f conftest*
2321 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2322 if test "$ac_test_CFLAGS" = set; then
2323 CFLAGS="$ac_save_CFLAGS"
2324 elif test $ac_cv_prog_cc_g = yes; then
2325 if test "$GCC" = yes; then
2326 CFLAGS="-g -O2"
2327 else
2328 CFLAGS="-g"
2330 else
2331 if test "$GCC" = yes; then
2332 CFLAGS="-O2"
2333 else
2334 CFLAGS=
2338 # Find a good install program. We prefer a C program (faster),
2339 # so one script is as good as another. But avoid the broken or
2340 # incompatible versions:
2341 # SysV /etc/install, /usr/sbin/install
2342 # SunOS /usr/etc/install
2343 # IRIX /sbin/install
2344 # AIX /bin/install
2345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348 # ./install, which can be erroneously created by make from ./install.sh.
2349 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2350 echo "configure:2351: checking for a BSD compatible install" >&5
2351 if test -z "$INSTALL"; then
2352 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2354 else
2355 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2356 for ac_dir in $PATH; do
2357 # Account for people who put trailing slashes in PATH elements.
2358 case "$ac_dir/" in
2359 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2361 # OSF1 and SCO ODT 3.0 have their own names for install.
2362 # Don't use installbsd from OSF since it installs stuff as root
2363 # by default.
2364 for ac_prog in ginstall scoinst install; do
2365 if test -f $ac_dir/$ac_prog; then
2366 if test $ac_prog = install &&
2367 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2370 else
2371 ac_cv_path_install="$ac_dir/$ac_prog -c"
2372 break 2
2375 done
2377 esac
2378 done
2379 IFS="$ac_save_IFS"
2382 if test "${ac_cv_path_install+set}" = set; then
2383 INSTALL="$ac_cv_path_install"
2384 else
2385 # As a last resort, use the slow shell script. We don't cache a
2386 # path for INSTALL within a source directory, because that will
2387 # break other packages using the cache if that directory is
2388 # removed, or if the path is relative.
2389 INSTALL="$ac_install_sh"
2392 echo "$ac_t""$INSTALL" 1>&6
2394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2395 # It thinks the first close brace ends the variable substitution.
2396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2400 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2403 for ac_func in setmode
2405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2406 echo "configure:2407: checking for $ac_func" >&5
2407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409 else
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 /* System header to define __stub macros and hopefully few prototypes,
2414 which can conflict with char $ac_func(); below. */
2415 #include <assert.h>
2416 /* Override any gcc2 internal prototype to avoid an error. */
2417 /* We use char because int might match the return type of a gcc2
2418 builtin and then its argument prototype would still apply. */
2419 char $ac_func();
2421 int main() {
2423 /* The GNU C library defines this for functions which it implements
2424 to always fail with ENOSYS. Some functions are actually named
2425 something starting with __ and the normal name is an alias. */
2426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2427 choke me
2428 #else
2429 $ac_func();
2430 #endif
2432 ; return 0; }
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435 rm -rf conftest*
2436 eval "ac_cv_func_$ac_func=yes"
2437 else
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -rf conftest*
2441 eval "ac_cv_func_$ac_func=no"
2443 rm -f conftest*
2446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2449 cat >> confdefs.h <<EOF
2450 #define $ac_tr_func 1
2453 else
2454 echo "$ac_t""no" 1>&6
2456 done
2459 ALL_LINGUAS=
2460 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2461 echo "configure:2462: checking how to run the C preprocessor" >&5
2462 # On Suns, sometimes $CPP names a directory.
2463 if test -n "$CPP" && test -d "$CPP"; then
2464 CPP=
2466 if test -z "$CPP"; then
2467 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 # This must be in double quotes, not single quotes, because CPP may get
2471 # substituted into the Makefile and "${CC-cc}" will confuse make.
2472 CPP="${CC-cc} -E"
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp.
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <assert.h>
2479 Syntax Error
2481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2486 else
2487 echo "$ac_err" >&5
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 rm -rf conftest*
2491 CPP="${CC-cc} -E -traditional-cpp"
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 #include <assert.h>
2496 Syntax Error
2498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2503 else
2504 echo "$ac_err" >&5
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 CPP="${CC-cc} -nologo -E"
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 #include <assert.h>
2513 Syntax Error
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2520 else
2521 echo "$ac_err" >&5
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -rf conftest*
2525 CPP=/lib/cpp
2527 rm -f conftest*
2529 rm -f conftest*
2531 rm -f conftest*
2532 ac_cv_prog_CPP="$CPP"
2534 CPP="$ac_cv_prog_CPP"
2535 else
2536 ac_cv_prog_CPP="$CPP"
2538 echo "$ac_t""$CPP" 1>&6
2540 # Extract the first word of "ranlib", so it can be a program name with args.
2541 set dummy ranlib; ac_word=$2
2542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_word" >&5
2544 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 if test -n "$RANLIB"; then
2548 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2549 else
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2551 ac_dummy="$PATH"
2552 for ac_dir in $ac_dummy; do
2553 test -z "$ac_dir" && ac_dir=.
2554 if test -f $ac_dir/$ac_word; then
2555 ac_cv_prog_RANLIB="ranlib"
2556 break
2558 done
2559 IFS="$ac_save_ifs"
2560 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2563 RANLIB="$ac_cv_prog_RANLIB"
2564 if test -n "$RANLIB"; then
2565 echo "$ac_t""$RANLIB" 1>&6
2566 else
2567 echo "$ac_t""no" 1>&6
2570 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2571 echo "configure:2572: checking for ANSI C header files" >&5
2572 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2574 else
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <stdlib.h>
2579 #include <stdarg.h>
2580 #include <string.h>
2581 #include <float.h>
2583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2587 rm -rf conftest*
2588 ac_cv_header_stdc=yes
2589 else
2590 echo "$ac_err" >&5
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 ac_cv_header_stdc=no
2596 rm -f conftest*
2598 if test $ac_cv_header_stdc = yes; then
2599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 #include <string.h>
2605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2606 egrep "memchr" >/dev/null 2>&1; then
2608 else
2609 rm -rf conftest*
2610 ac_cv_header_stdc=no
2612 rm -f conftest*
2616 if test $ac_cv_header_stdc = yes; then
2617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 #include <stdlib.h>
2623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2624 egrep "free" >/dev/null 2>&1; then
2626 else
2627 rm -rf conftest*
2628 ac_cv_header_stdc=no
2630 rm -f conftest*
2634 if test $ac_cv_header_stdc = yes; then
2635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2636 if test "$cross_compiling" = yes; then
2638 else
2639 cat > conftest.$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <ctype.h>
2643 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2644 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2646 int main () { int i; for (i = 0; i < 256; i++)
2647 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2648 exit (0); }
2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2652 then
2654 else
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2657 rm -fr conftest*
2658 ac_cv_header_stdc=no
2660 rm -fr conftest*
2666 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2667 if test $ac_cv_header_stdc = yes; then
2668 cat >> confdefs.h <<\EOF
2669 #define STDC_HEADERS 1
2674 echo $ac_n "checking for working const""... $ac_c" 1>&6
2675 echo "configure:2676: checking for working const" >&5
2676 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2678 else
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2683 int main() {
2685 /* Ultrix mips cc rejects this. */
2686 typedef int charset[2]; const charset x;
2687 /* SunOS 4.1.1 cc rejects this. */
2688 char const *const *ccp;
2689 char **p;
2690 /* NEC SVR4.0.2 mips cc rejects this. */
2691 struct point {int x, y;};
2692 static struct point const zero = {0,0};
2693 /* AIX XL C 1.02.0.0 rejects this.
2694 It does not let you subtract one const X* pointer from another in an arm
2695 of an if-expression whose if-part is not a constant expression */
2696 const char *g = "string";
2697 ccp = &g + (g ? g-g : 0);
2698 /* HPUX 7.0 cc rejects these. */
2699 ++ccp;
2700 p = (char**) ccp;
2701 ccp = (char const *const *) p;
2702 { /* SCO 3.2v4 cc rejects this. */
2703 char *t;
2704 char const *s = 0 ? (char *) 0 : (char const *) 0;
2706 *t++ = 0;
2708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2709 int x[] = {25, 17};
2710 const int *foo = &x[0];
2711 ++foo;
2713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2714 typedef const int *iptr;
2715 iptr p = 0;
2716 ++p;
2718 { /* AIX XL C 1.02.0.0 rejects this saying
2719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2720 struct s { int j; const int *ap[3]; };
2721 struct s *b; b->j = 5;
2723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2724 const int foo = 10;
2727 ; return 0; }
2729 if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 rm -rf conftest*
2731 ac_cv_c_const=yes
2732 else
2733 echo "configure: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 rm -rf conftest*
2736 ac_cv_c_const=no
2738 rm -f conftest*
2741 echo "$ac_t""$ac_cv_c_const" 1>&6
2742 if test $ac_cv_c_const = no; then
2743 cat >> confdefs.h <<\EOF
2744 #define const
2749 echo $ac_n "checking for inline""... $ac_c" 1>&6
2750 echo "configure:2751: checking for inline" >&5
2751 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754 ac_cv_c_inline=no
2755 for ac_kw in inline __inline__ __inline; do
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2760 int main() {
2761 } $ac_kw foo() {
2762 ; return 0; }
2764 if { (eval echo configure:2765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2765 rm -rf conftest*
2766 ac_cv_c_inline=$ac_kw; break
2767 else
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 rm -f conftest*
2772 done
2776 echo "$ac_t""$ac_cv_c_inline" 1>&6
2777 case "$ac_cv_c_inline" in
2778 inline | yes) ;;
2779 no) cat >> confdefs.h <<\EOF
2780 #define inline
2783 *) cat >> confdefs.h <<EOF
2784 #define inline $ac_cv_c_inline
2787 esac
2789 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2790 echo "configure:2791: checking for off_t" >&5
2791 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <sys/types.h>
2798 #if STDC_HEADERS
2799 #include <stdlib.h>
2800 #include <stddef.h>
2801 #endif
2803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2804 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2805 rm -rf conftest*
2806 ac_cv_type_off_t=yes
2807 else
2808 rm -rf conftest*
2809 ac_cv_type_off_t=no
2811 rm -f conftest*
2814 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2815 if test $ac_cv_type_off_t = no; then
2816 cat >> confdefs.h <<\EOF
2817 #define off_t long
2822 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2823 echo "configure:2824: checking for size_t" >&5
2824 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2826 else
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 #include <sys/types.h>
2831 #if STDC_HEADERS
2832 #include <stdlib.h>
2833 #include <stddef.h>
2834 #endif
2836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2837 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2838 rm -rf conftest*
2839 ac_cv_type_size_t=yes
2840 else
2841 rm -rf conftest*
2842 ac_cv_type_size_t=no
2844 rm -f conftest*
2847 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2848 if test $ac_cv_type_size_t = no; then
2849 cat >> confdefs.h <<\EOF
2850 #define size_t unsigned
2855 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2856 # for constant arguments. Useless!
2857 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2858 echo "configure:2859: checking for working alloca.h" >&5
2859 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2861 else
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2865 #include <alloca.h>
2866 int main() {
2867 char *p = alloca(2 * sizeof(int));
2868 ; return 0; }
2870 if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2871 rm -rf conftest*
2872 ac_cv_header_alloca_h=yes
2873 else
2874 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2876 rm -rf conftest*
2877 ac_cv_header_alloca_h=no
2879 rm -f conftest*
2882 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2883 if test $ac_cv_header_alloca_h = yes; then
2884 cat >> confdefs.h <<\EOF
2885 #define HAVE_ALLOCA_H 1
2890 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2891 echo "configure:2892: checking for alloca" >&5
2892 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2899 #ifdef __GNUC__
2900 # define alloca __builtin_alloca
2901 #else
2902 # ifdef _MSC_VER
2903 # include <malloc.h>
2904 # define alloca _alloca
2905 # else
2906 # if HAVE_ALLOCA_H
2907 # include <alloca.h>
2908 # else
2909 # ifdef _AIX
2910 #pragma alloca
2911 # else
2912 # ifndef alloca /* predefined by HP cc +Olibcalls */
2913 char *alloca ();
2914 # endif
2915 # endif
2916 # endif
2917 # endif
2918 #endif
2920 int main() {
2921 char *p = (char *) alloca(1);
2922 ; return 0; }
2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2925 rm -rf conftest*
2926 ac_cv_func_alloca_works=yes
2927 else
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 rm -rf conftest*
2931 ac_cv_func_alloca_works=no
2933 rm -f conftest*
2936 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2937 if test $ac_cv_func_alloca_works = yes; then
2938 cat >> confdefs.h <<\EOF
2939 #define HAVE_ALLOCA 1
2944 if test $ac_cv_func_alloca_works = no; then
2945 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2946 # that cause trouble. Some versions do not even contain alloca or
2947 # contain a buggy version. If you still want to use their alloca,
2948 # use ar to extract alloca.o from them instead of compiling alloca.c.
2949 ALLOCA=alloca.${ac_objext}
2950 cat >> confdefs.h <<\EOF
2951 #define C_ALLOCA 1
2955 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2956 echo "configure:2957: checking whether alloca needs Cray hooks" >&5
2957 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #if defined(CRAY) && ! defined(CRAY2)
2964 webecray
2965 #else
2966 wenotbecray
2967 #endif
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 egrep "webecray" >/dev/null 2>&1; then
2972 rm -rf conftest*
2973 ac_cv_os_cray=yes
2974 else
2975 rm -rf conftest*
2976 ac_cv_os_cray=no
2978 rm -f conftest*
2982 echo "$ac_t""$ac_cv_os_cray" 1>&6
2983 if test $ac_cv_os_cray = yes; then
2984 for ac_func in _getb67 GETB67 getb67; do
2985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2986 echo "configure:2987: checking for $ac_func" >&5
2987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2989 else
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 /* System header to define __stub macros and hopefully few prototypes,
2994 which can conflict with char $ac_func(); below. */
2995 #include <assert.h>
2996 /* Override any gcc2 internal prototype to avoid an error. */
2997 /* We use char because int might match the return type of a gcc2
2998 builtin and then its argument prototype would still apply. */
2999 char $ac_func();
3001 int main() {
3003 /* The GNU C library defines this for functions which it implements
3004 to always fail with ENOSYS. Some functions are actually named
3005 something starting with __ and the normal name is an alias. */
3006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3007 choke me
3008 #else
3009 $ac_func();
3010 #endif
3012 ; return 0; }
3014 if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3015 rm -rf conftest*
3016 eval "ac_cv_func_$ac_func=yes"
3017 else
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 rm -rf conftest*
3021 eval "ac_cv_func_$ac_func=no"
3023 rm -f conftest*
3026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 cat >> confdefs.h <<EOF
3029 #define CRAY_STACKSEG_END $ac_func
3032 break
3033 else
3034 echo "$ac_t""no" 1>&6
3037 done
3040 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3041 echo "configure:3042: checking stack direction for C alloca" >&5
3042 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3044 else
3045 if test "$cross_compiling" = yes; then
3046 ac_cv_c_stack_direction=0
3047 else
3048 cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3051 find_stack_direction ()
3053 static char *addr = 0;
3054 auto char dummy;
3055 if (addr == 0)
3057 addr = &dummy;
3058 return find_stack_direction ();
3060 else
3061 return (&dummy > addr) ? 1 : -1;
3063 main ()
3065 exit (find_stack_direction() < 0);
3068 if { (eval echo configure:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3069 then
3070 ac_cv_c_stack_direction=1
3071 else
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3074 rm -fr conftest*
3075 ac_cv_c_stack_direction=-1
3077 rm -fr conftest*
3082 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3083 cat >> confdefs.h <<EOF
3084 #define STACK_DIRECTION $ac_cv_c_stack_direction
3089 for ac_hdr in unistd.h
3091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_hdr" >&5
3094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3096 else
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 #include <$ac_hdr>
3102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3103 { (eval echo configure:3104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3105 if test -z "$ac_err"; then
3106 rm -rf conftest*
3107 eval "ac_cv_header_$ac_safe=yes"
3108 else
3109 echo "$ac_err" >&5
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3112 rm -rf conftest*
3113 eval "ac_cv_header_$ac_safe=no"
3115 rm -f conftest*
3117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3120 cat >> confdefs.h <<EOF
3121 #define $ac_tr_hdr 1
3124 else
3125 echo "$ac_t""no" 1>&6
3127 done
3129 for ac_func in getpagesize
3131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_func" >&5
3133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3135 else
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* System header to define __stub macros and hopefully few prototypes,
3140 which can conflict with char $ac_func(); below. */
3141 #include <assert.h>
3142 /* Override any gcc2 internal prototype to avoid an error. */
3143 /* We use char because int might match the return type of a gcc2
3144 builtin and then its argument prototype would still apply. */
3145 char $ac_func();
3147 int main() {
3149 /* The GNU C library defines this for functions which it implements
3150 to always fail with ENOSYS. Some functions are actually named
3151 something starting with __ and the normal name is an alias. */
3152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3153 choke me
3154 #else
3155 $ac_func();
3156 #endif
3158 ; return 0; }
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3161 rm -rf conftest*
3162 eval "ac_cv_func_$ac_func=yes"
3163 else
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3166 rm -rf conftest*
3167 eval "ac_cv_func_$ac_func=no"
3169 rm -f conftest*
3172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3173 echo "$ac_t""yes" 1>&6
3174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3175 cat >> confdefs.h <<EOF
3176 #define $ac_tr_func 1
3179 else
3180 echo "$ac_t""no" 1>&6
3182 done
3184 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3185 echo "configure:3186: checking for working mmap" >&5
3186 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3189 if test "$cross_compiling" = yes; then
3190 ac_cv_func_mmap_fixed_mapped=no
3191 else
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3196 /* Thanks to Mike Haertel and Jim Avera for this test.
3197 Here is a matrix of mmap possibilities:
3198 mmap private not fixed
3199 mmap private fixed at somewhere currently unmapped
3200 mmap private fixed at somewhere already mapped
3201 mmap shared not fixed
3202 mmap shared fixed at somewhere currently unmapped
3203 mmap shared fixed at somewhere already mapped
3204 For private mappings, we should verify that changes cannot be read()
3205 back from the file, nor mmap's back from the file at a different
3206 address. (There have been systems where private was not correctly
3207 implemented like the infamous i386 svr4.0, and systems where the
3208 VM page cache was not coherent with the filesystem buffer cache
3209 like early versions of FreeBSD and possibly contemporary NetBSD.)
3210 For shared mappings, we should conversely verify that changes get
3211 propogated back to all the places they're supposed to be.
3213 Grep wants private fixed already mapped.
3214 The main things grep needs to know about mmap are:
3215 * does it exist and is it safe to write into the mmap'd area
3216 * how to use it (BSD variants) */
3217 #include <sys/types.h>
3218 #include <fcntl.h>
3219 #include <sys/mman.h>
3221 /* This mess was copied from the GNU getpagesize.h. */
3222 #ifndef HAVE_GETPAGESIZE
3223 # ifdef HAVE_UNISTD_H
3224 # include <unistd.h>
3225 # endif
3227 /* Assume that all systems that can run configure have sys/param.h. */
3228 # ifndef HAVE_SYS_PARAM_H
3229 # define HAVE_SYS_PARAM_H 1
3230 # endif
3232 # ifdef _SC_PAGESIZE
3233 # define getpagesize() sysconf(_SC_PAGESIZE)
3234 # else /* no _SC_PAGESIZE */
3235 # ifdef HAVE_SYS_PARAM_H
3236 # include <sys/param.h>
3237 # ifdef EXEC_PAGESIZE
3238 # define getpagesize() EXEC_PAGESIZE
3239 # else /* no EXEC_PAGESIZE */
3240 # ifdef NBPG
3241 # define getpagesize() NBPG * CLSIZE
3242 # ifndef CLSIZE
3243 # define CLSIZE 1
3244 # endif /* no CLSIZE */
3245 # else /* no NBPG */
3246 # ifdef NBPC
3247 # define getpagesize() NBPC
3248 # else /* no NBPC */
3249 # ifdef PAGESIZE
3250 # define getpagesize() PAGESIZE
3251 # endif /* PAGESIZE */
3252 # endif /* no NBPC */
3253 # endif /* no NBPG */
3254 # endif /* no EXEC_PAGESIZE */
3255 # else /* no HAVE_SYS_PARAM_H */
3256 # define getpagesize() 8192 /* punt totally */
3257 # endif /* no HAVE_SYS_PARAM_H */
3258 # endif /* no _SC_PAGESIZE */
3260 #endif /* no HAVE_GETPAGESIZE */
3262 #ifdef __cplusplus
3263 extern "C" { void *malloc(unsigned); }
3264 #else
3265 char *malloc();
3266 #endif
3269 main()
3271 char *data, *data2, *data3;
3272 int i, pagesize;
3273 int fd;
3275 pagesize = getpagesize();
3278 * First, make a file with some known garbage in it.
3280 data = malloc(pagesize);
3281 if (!data)
3282 exit(1);
3283 for (i = 0; i < pagesize; ++i)
3284 *(data + i) = rand();
3285 umask(0);
3286 fd = creat("conftestmmap", 0600);
3287 if (fd < 0)
3288 exit(1);
3289 if (write(fd, data, pagesize) != pagesize)
3290 exit(1);
3291 close(fd);
3294 * Next, try to mmap the file at a fixed address which
3295 * already has something else allocated at it. If we can,
3296 * also make sure that we see the same garbage.
3298 fd = open("conftestmmap", O_RDWR);
3299 if (fd < 0)
3300 exit(1);
3301 data2 = malloc(2 * pagesize);
3302 if (!data2)
3303 exit(1);
3304 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3305 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3306 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3307 exit(1);
3308 for (i = 0; i < pagesize; ++i)
3309 if (*(data + i) != *(data2 + i))
3310 exit(1);
3313 * Finally, make sure that changes to the mapped area
3314 * do not percolate back to the file as seen by read().
3315 * (This is a bug on some variants of i386 svr4.0.)
3317 for (i = 0; i < pagesize; ++i)
3318 *(data2 + i) = *(data2 + i) + 1;
3319 data3 = malloc(pagesize);
3320 if (!data3)
3321 exit(1);
3322 if (read(fd, data3, pagesize) != pagesize)
3323 exit(1);
3324 for (i = 0; i < pagesize; ++i)
3325 if (*(data + i) != *(data3 + i))
3326 exit(1);
3327 close(fd);
3328 unlink("conftestmmap");
3329 exit(0);
3333 if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3334 then
3335 ac_cv_func_mmap_fixed_mapped=yes
3336 else
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -fr conftest*
3340 ac_cv_func_mmap_fixed_mapped=no
3342 rm -fr conftest*
3347 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3348 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3349 cat >> confdefs.h <<\EOF
3350 #define HAVE_MMAP 1
3356 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3357 unistd.h values.h sys/param.h
3359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_hdr" >&5
3362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3364 else
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <$ac_hdr>
3370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3371 { (eval echo configure:3372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3373 if test -z "$ac_err"; then
3374 rm -rf conftest*
3375 eval "ac_cv_header_$ac_safe=yes"
3376 else
3377 echo "$ac_err" >&5
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 rm -rf conftest*
3381 eval "ac_cv_header_$ac_safe=no"
3383 rm -f conftest*
3385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_hdr 1
3392 else
3393 echo "$ac_t""no" 1>&6
3395 done
3397 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3398 __argz_count __argz_stringify __argz_next
3400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_func" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3404 else
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* System header to define __stub macros and hopefully few prototypes,
3409 which can conflict with char $ac_func(); below. */
3410 #include <assert.h>
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3414 char $ac_func();
3416 int main() {
3418 /* The GNU C library defines this for functions which it implements
3419 to always fail with ENOSYS. Some functions are actually named
3420 something starting with __ and the normal name is an alias. */
3421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3422 choke me
3423 #else
3424 $ac_func();
3425 #endif
3427 ; return 0; }
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 rm -rf conftest*
3431 eval "ac_cv_func_$ac_func=yes"
3432 else
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3435 rm -rf conftest*
3436 eval "ac_cv_func_$ac_func=no"
3438 rm -f conftest*
3441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3444 cat >> confdefs.h <<EOF
3445 #define $ac_tr_func 1
3448 else
3449 echo "$ac_t""no" 1>&6
3451 done
3454 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3455 for ac_func in stpcpy
3457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_func" >&5
3459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func(); below. */
3467 #include <assert.h>
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char $ac_func();
3473 int main() {
3475 /* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479 choke me
3480 #else
3481 $ac_func();
3482 #endif
3484 ; return 0; }
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3487 rm -rf conftest*
3488 eval "ac_cv_func_$ac_func=yes"
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 eval "ac_cv_func_$ac_func=no"
3495 rm -f conftest*
3498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3501 cat >> confdefs.h <<EOF
3502 #define $ac_tr_func 1
3505 else
3506 echo "$ac_t""no" 1>&6
3508 done
3511 if test "${ac_cv_func_stpcpy}" = "yes"; then
3512 cat >> confdefs.h <<\EOF
3513 #define HAVE_STPCPY 1
3518 if test $ac_cv_header_locale_h = yes; then
3519 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3520 echo "configure:3521: checking for LC_MESSAGES" >&5
3521 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3523 else
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <locale.h>
3528 int main() {
3529 return LC_MESSAGES
3530 ; return 0; }
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 rm -rf conftest*
3534 am_cv_val_LC_MESSAGES=yes
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 am_cv_val_LC_MESSAGES=no
3541 rm -f conftest*
3544 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3545 if test $am_cv_val_LC_MESSAGES = yes; then
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_LC_MESSAGES 1
3552 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3553 echo "configure:3554: checking whether NLS is requested" >&5
3554 # Check whether --enable-nls or --disable-nls was given.
3555 if test "${enable_nls+set}" = set; then
3556 enableval="$enable_nls"
3557 USE_NLS=$enableval
3558 else
3559 USE_NLS=yes
3562 echo "$ac_t""$USE_NLS" 1>&6
3565 USE_INCLUDED_LIBINTL=no
3567 if test "$USE_NLS" = "yes"; then
3568 cat >> confdefs.h <<\EOF
3569 #define ENABLE_NLS 1
3572 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3573 echo "configure:3574: checking whether included gettext is requested" >&5
3574 # Check whether --with-included-gettext or --without-included-gettext was given.
3575 if test "${with_included_gettext+set}" = set; then
3576 withval="$with_included_gettext"
3577 nls_cv_force_use_gnu_gettext=$withval
3578 else
3579 nls_cv_force_use_gnu_gettext=no
3582 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3584 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3585 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3586 nls_cv_header_intl=
3587 nls_cv_header_libgt=
3588 CATOBJEXT=NONE
3590 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3591 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3592 echo "configure:3593: checking for libintl.h" >&5
3593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3595 else
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <libintl.h>
3601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3602 { (eval echo configure:3603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3604 if test -z "$ac_err"; then
3605 rm -rf conftest*
3606 eval "ac_cv_header_$ac_safe=yes"
3607 else
3608 echo "$ac_err" >&5
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 rm -rf conftest*
3612 eval "ac_cv_header_$ac_safe=no"
3614 rm -f conftest*
3616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3619 echo "configure:3620: checking for gettext in libc" >&5
3620 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3622 else
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <libintl.h>
3627 int main() {
3628 return (int) gettext ("")
3629 ; return 0; }
3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3632 rm -rf conftest*
3633 gt_cv_func_gettext_libc=yes
3634 else
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3637 rm -rf conftest*
3638 gt_cv_func_gettext_libc=no
3640 rm -f conftest*
3643 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3645 if test "$gt_cv_func_gettext_libc" != "yes"; then
3646 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3647 echo "configure:3648: checking for bindtextdomain in -lintl" >&5
3648 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3651 else
3652 ac_save_LIBS="$LIBS"
3653 LIBS="-lintl $LIBS"
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3660 char bindtextdomain();
3662 int main() {
3663 bindtextdomain()
3664 ; return 0; }
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3667 rm -rf conftest*
3668 eval "ac_cv_lib_$ac_lib_var=yes"
3669 else
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3672 rm -rf conftest*
3673 eval "ac_cv_lib_$ac_lib_var=no"
3675 rm -f conftest*
3676 LIBS="$ac_save_LIBS"
3679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3682 echo "configure:3683: checking for gettext in libintl" >&5
3683 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3685 else
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3690 int main() {
3691 return (int) gettext ("")
3692 ; return 0; }
3694 if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 rm -rf conftest*
3696 gt_cv_func_gettext_libintl=yes
3697 else
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
3701 gt_cv_func_gettext_libintl=no
3703 rm -f conftest*
3706 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3707 else
3708 echo "$ac_t""no" 1>&6
3713 if test "$gt_cv_func_gettext_libc" = "yes" \
3714 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3715 cat >> confdefs.h <<\EOF
3716 #define HAVE_GETTEXT 1
3719 # Extract the first word of "msgfmt", so it can be a program name with args.
3720 set dummy msgfmt; ac_word=$2
3721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3722 echo "configure:3723: checking for $ac_word" >&5
3723 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3725 else
3726 case "$MSGFMT" in
3728 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3732 for ac_dir in $PATH; do
3733 test -z "$ac_dir" && ac_dir=.
3734 if test -f $ac_dir/$ac_word; then
3735 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3736 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3737 break
3740 done
3741 IFS="$ac_save_ifs"
3742 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3744 esac
3746 MSGFMT="$ac_cv_path_MSGFMT"
3747 if test -n "$MSGFMT"; then
3748 echo "$ac_t""$MSGFMT" 1>&6
3749 else
3750 echo "$ac_t""no" 1>&6
3752 if test "$MSGFMT" != "no"; then
3753 for ac_func in dcgettext
3755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_func" >&5
3757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3759 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* System header to define __stub macros and hopefully few prototypes,
3764 which can conflict with char $ac_func(); below. */
3765 #include <assert.h>
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3769 char $ac_func();
3771 int main() {
3773 /* The GNU C library defines this for functions which it implements
3774 to always fail with ENOSYS. Some functions are actually named
3775 something starting with __ and the normal name is an alias. */
3776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3777 choke me
3778 #else
3779 $ac_func();
3780 #endif
3782 ; return 0; }
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 rm -rf conftest*
3786 eval "ac_cv_func_$ac_func=yes"
3787 else
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3790 rm -rf conftest*
3791 eval "ac_cv_func_$ac_func=no"
3793 rm -f conftest*
3796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3799 cat >> confdefs.h <<EOF
3800 #define $ac_tr_func 1
3803 else
3804 echo "$ac_t""no" 1>&6
3806 done
3808 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3809 set dummy gmsgfmt; ac_word=$2
3810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3811 echo "configure:3812: checking for $ac_word" >&5
3812 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3814 else
3815 case "$GMSGFMT" in
3817 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3819 ?:/*)
3820 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3824 ac_dummy="$PATH"
3825 for ac_dir in $ac_dummy; do
3826 test -z "$ac_dir" && ac_dir=.
3827 if test -f $ac_dir/$ac_word; then
3828 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3829 break
3831 done
3832 IFS="$ac_save_ifs"
3833 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3835 esac
3837 GMSGFMT="$ac_cv_path_GMSGFMT"
3838 if test -n "$GMSGFMT"; then
3839 echo "$ac_t""$GMSGFMT" 1>&6
3840 else
3841 echo "$ac_t""no" 1>&6
3844 # Extract the first word of "xgettext", so it can be a program name with args.
3845 set dummy xgettext; ac_word=$2
3846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3847 echo "configure:3848: checking for $ac_word" >&5
3848 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3850 else
3851 case "$XGETTEXT" in
3853 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3857 for ac_dir in $PATH; do
3858 test -z "$ac_dir" && ac_dir=.
3859 if test -f $ac_dir/$ac_word; then
3860 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3861 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3862 break
3865 done
3866 IFS="$ac_save_ifs"
3867 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3869 esac
3871 XGETTEXT="$ac_cv_path_XGETTEXT"
3872 if test -n "$XGETTEXT"; then
3873 echo "$ac_t""$XGETTEXT" 1>&6
3874 else
3875 echo "$ac_t""no" 1>&6
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3882 int main() {
3883 extern int _nl_msg_cat_cntr;
3884 return _nl_msg_cat_cntr
3885 ; return 0; }
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 rm -rf conftest*
3889 CATOBJEXT=.gmo
3890 DATADIRNAME=share
3891 else
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3894 rm -rf conftest*
3895 CATOBJEXT=.mo
3896 DATADIRNAME=lib
3898 rm -f conftest*
3899 INSTOBJEXT=.mo
3903 else
3904 echo "$ac_t""no" 1>&6
3909 if test "$CATOBJEXT" = "NONE"; then
3910 nls_cv_use_gnu_gettext=yes
3914 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3915 INTLOBJS="\$(GETTOBJS)"
3916 # Extract the first word of "msgfmt", so it can be a program name with args.
3917 set dummy msgfmt; ac_word=$2
3918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_word" >&5
3920 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3922 else
3923 case "$MSGFMT" in
3925 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3929 for ac_dir in $PATH; do
3930 test -z "$ac_dir" && ac_dir=.
3931 if test -f $ac_dir/$ac_word; then
3932 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3933 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3934 break
3937 done
3938 IFS="$ac_save_ifs"
3939 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3941 esac
3943 MSGFMT="$ac_cv_path_MSGFMT"
3944 if test -n "$MSGFMT"; then
3945 echo "$ac_t""$MSGFMT" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3950 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3951 set dummy gmsgfmt; ac_word=$2
3952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_word" >&5
3954 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3956 else
3957 case "$GMSGFMT" in
3959 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3961 ?:/*)
3962 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3966 ac_dummy="$PATH"
3967 for ac_dir in $ac_dummy; do
3968 test -z "$ac_dir" && ac_dir=.
3969 if test -f $ac_dir/$ac_word; then
3970 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3971 break
3973 done
3974 IFS="$ac_save_ifs"
3975 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3977 esac
3979 GMSGFMT="$ac_cv_path_GMSGFMT"
3980 if test -n "$GMSGFMT"; then
3981 echo "$ac_t""$GMSGFMT" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3986 # Extract the first word of "xgettext", so it can be a program name with args.
3987 set dummy xgettext; ac_word=$2
3988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_word" >&5
3990 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992 else
3993 case "$XGETTEXT" in
3995 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3999 for ac_dir in $PATH; do
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f $ac_dir/$ac_word; then
4002 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4003 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4004 break
4007 done
4008 IFS="$ac_save_ifs"
4009 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4011 esac
4013 XGETTEXT="$ac_cv_path_XGETTEXT"
4014 if test -n "$XGETTEXT"; then
4015 echo "$ac_t""$XGETTEXT" 1>&6
4016 else
4017 echo "$ac_t""no" 1>&6
4021 USE_INCLUDED_LIBINTL=yes
4022 CATOBJEXT=.gmo
4023 INSTOBJEXT=.mo
4024 DATADIRNAME=share
4025 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4026 INTLLIBS=$INTLDEPS
4027 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4028 nls_cv_header_intl=libintl.h
4029 nls_cv_header_libgt=libgettext.h
4032 if test "$XGETTEXT" != ":"; then
4033 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4035 else
4036 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4037 XGETTEXT=":"
4041 # We need to process the po/ directory.
4042 POSUB=po
4043 else
4044 DATADIRNAME=share
4045 nls_cv_header_intl=libintl.h
4046 nls_cv_header_libgt=libgettext.h
4049 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4050 # because some of the sources are only built for this goal.
4051 if test "$PACKAGE" = gettext; then
4052 USE_NLS=yes
4053 USE_INCLUDED_LIBINTL=yes
4056 for lang in $ALL_LINGUAS; do
4057 GMOFILES="$GMOFILES $lang.gmo"
4058 POFILES="$POFILES $lang.po"
4059 done
4074 if test "x$CATOBJEXT" != "x"; then
4075 if test "x$ALL_LINGUAS" = "x"; then
4076 LINGUAS=
4077 else
4078 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4079 echo "configure:4080: checking for catalogs to be installed" >&5
4080 NEW_LINGUAS=
4081 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4082 case "$ALL_LINGUAS" in
4083 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4084 esac
4085 done
4086 LINGUAS=$NEW_LINGUAS
4087 echo "$ac_t""$LINGUAS" 1>&6
4090 if test -n "$LINGUAS"; then
4091 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4095 if test $ac_cv_header_locale_h = yes; then
4096 INCLUDE_LOCALE_H="#include <locale.h>"
4097 else
4098 INCLUDE_LOCALE_H="\
4099 /* The system does not provide the header <locale.h>. Take care yourself. */"
4103 if test -f $srcdir/po2tbl.sed.in; then
4104 if test "$CATOBJEXT" = ".cat"; then
4105 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4106 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4107 echo "configure:4108: checking for linux/version.h" >&5
4108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110 else
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <linux/version.h>
4116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4117 { (eval echo configure:4118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4119 if test -z "$ac_err"; then
4120 rm -rf conftest*
4121 eval "ac_cv_header_$ac_safe=yes"
4122 else
4123 echo "$ac_err" >&5
4124 echo "configure: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4126 rm -rf conftest*
4127 eval "ac_cv_header_$ac_safe=no"
4129 rm -f conftest*
4131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 msgformat=linux
4134 else
4135 echo "$ac_t""no" 1>&6
4136 msgformat=xopen
4140 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4142 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4143 $srcdir/po2tbl.sed.in > po2tbl.sed
4146 if test "$PACKAGE" = "gettext"; then
4147 GT_NO="#NO#"
4148 GT_YES=
4149 else
4150 GT_NO=
4151 GT_YES="#YES#"
4156 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4162 if test -d $srcdir/po; then
4163 test -d po || mkdir po
4164 if test "x$srcdir" != "x."; then
4165 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4166 posrcprefix="$srcdir/"
4167 else
4168 posrcprefix="../$srcdir/"
4170 else
4171 posrcprefix="../"
4173 rm -f po/POTFILES
4174 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4175 < $srcdir/po/POTFILES.in > po/POTFILES
4179 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4180 echo "configure:4181: checking whether to enable maintainer-specific portions of Makefiles" >&5
4181 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4182 if test "${enable_maintainer_mode+set}" = set; then
4183 enableval="$enable_maintainer_mode"
4184 USE_MAINTAINER_MODE=$enableval
4185 else
4186 USE_MAINTAINER_MODE=no
4189 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4192 if test $USE_MAINTAINER_MODE = yes; then
4193 MAINTAINER_MODE_TRUE=
4194 MAINTAINER_MODE_FALSE='#'
4195 else
4196 MAINTAINER_MODE_TRUE='#'
4197 MAINTAINER_MODE_FALSE=
4199 MAINT=$MAINTAINER_MODE_TRUE
4204 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4205 echo "configure:4206: checking for executable suffix" >&5
4206 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4208 else
4209 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4210 ac_cv_exeext=.exe
4211 else
4212 rm -f conftest*
4213 echo 'int main () { return 0; }' > conftest.$ac_ext
4214 ac_cv_exeext=
4215 if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4216 for file in conftest.*; do
4217 case $file in
4218 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4219 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4220 esac
4221 done
4222 else
4223 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4225 rm -f conftest*
4226 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4230 EXEEXT=""
4231 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4232 echo "$ac_t""${ac_cv_exeext}" 1>&6
4233 ac_exeext=$EXEEXT
4236 build_warnings="-W -Wall"
4237 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4238 if test "${enable_build_warnings+set}" = set; then
4239 enableval="$enable_build_warnings"
4240 case "${enableval}" in
4241 yes) ;;
4242 no) build_warnings="-w";;
4243 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4244 build_warnings="${build_warnings} ${t}";;
4245 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4246 build_warnings="${t} ${build_warnings}";;
4247 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4248 esac
4249 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4250 echo "Setting warning flags = $build_warnings" 6>&1
4253 WARN_CFLAGS=""
4254 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4255 WARN_CFLAGS="${build_warnings}"
4259 trap '' 1 2 15
4260 cat > confcache <<\EOF
4261 # This file is a shell script that caches the results of configure
4262 # tests run on this system so they can be shared between configure
4263 # scripts and configure runs. It is not useful on other systems.
4264 # If it contains results you don't want to keep, you may remove or edit it.
4266 # By default, configure uses ./config.cache as the cache file,
4267 # creating it if it does not exist already. You can give configure
4268 # the --cache-file=FILE option to use a different cache file; that is
4269 # what configure does when it calls configure scripts in
4270 # subdirectories, so they share the cache.
4271 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4272 # config.status only pays attention to the cache file if you give it the
4273 # --recheck option to rerun configure.
4276 # The following way of writing the cache mishandles newlines in values,
4277 # but we know of no workaround that is simple, portable, and efficient.
4278 # So, don't put newlines in cache variables' values.
4279 # Ultrix sh set writes to stderr and can't be redirected directly,
4280 # and sets the high bit in the cache file unless we assign to the vars.
4281 (set) 2>&1 |
4282 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4283 *ac_space=\ *)
4284 # `set' does not quote correctly, so add quotes (double-quote substitution
4285 # turns \\\\ into \\, and sed turns \\ into \).
4286 sed -n \
4287 -e "s/'/'\\\\''/g" \
4288 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4291 # `set' quotes correctly as required by POSIX, so do not add quotes.
4292 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4294 esac >> confcache
4295 if cmp -s $cache_file confcache; then
4297 else
4298 if test -w $cache_file; then
4299 echo "updating cache $cache_file"
4300 cat confcache > $cache_file
4301 else
4302 echo "not updating unwritable cache $cache_file"
4305 rm -f confcache
4307 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4310 # Let make expand exec_prefix.
4311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4313 # Any assignment to VPATH causes Sun make to only execute
4314 # the first set of double-colon rules, so remove it if not needed.
4315 # If there is a colon in the path, we need to keep it.
4316 if test "x$srcdir" = x.; then
4317 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4320 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4322 DEFS=-DHAVE_CONFIG_H
4324 # Without the "./", some shells look in PATH for config.status.
4325 : ${CONFIG_STATUS=./config.status}
4327 echo creating $CONFIG_STATUS
4328 rm -f $CONFIG_STATUS
4329 cat > $CONFIG_STATUS <<EOF
4330 #! /bin/sh
4331 # Generated automatically by configure.
4332 # Run this file to recreate the current configuration.
4333 # This directory was configured as follows,
4334 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4336 # $0 $ac_configure_args
4338 # Compiler output produced by configure, useful for debugging
4339 # configure, is in ./config.log if it exists.
4341 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4342 for ac_option
4344 case "\$ac_option" in
4345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4346 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4347 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4348 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4349 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4350 exit 0 ;;
4351 -help | --help | --hel | --he | --h)
4352 echo "\$ac_cs_usage"; exit 0 ;;
4353 *) echo "\$ac_cs_usage"; exit 1 ;;
4354 esac
4355 done
4357 ac_given_srcdir=$srcdir
4358 ac_given_INSTALL="$INSTALL"
4360 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 cat >> $CONFIG_STATUS <<EOF
4364 # Protect against being on the right side of a sed subst in config.status.
4365 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4366 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4367 $ac_vpsub
4368 $extrasub
4369 s%@SHELL@%$SHELL%g
4370 s%@CFLAGS@%$CFLAGS%g
4371 s%@CPPFLAGS@%$CPPFLAGS%g
4372 s%@CXXFLAGS@%$CXXFLAGS%g
4373 s%@FFLAGS@%$FFLAGS%g
4374 s%@DEFS@%$DEFS%g
4375 s%@LDFLAGS@%$LDFLAGS%g
4376 s%@LIBS@%$LIBS%g
4377 s%@exec_prefix@%$exec_prefix%g
4378 s%@prefix@%$prefix%g
4379 s%@program_transform_name@%$program_transform_name%g
4380 s%@bindir@%$bindir%g
4381 s%@sbindir@%$sbindir%g
4382 s%@libexecdir@%$libexecdir%g
4383 s%@datadir@%$datadir%g
4384 s%@sysconfdir@%$sysconfdir%g
4385 s%@sharedstatedir@%$sharedstatedir%g
4386 s%@localstatedir@%$localstatedir%g
4387 s%@libdir@%$libdir%g
4388 s%@includedir@%$includedir%g
4389 s%@oldincludedir@%$oldincludedir%g
4390 s%@infodir@%$infodir%g
4391 s%@mandir@%$mandir%g
4392 s%@host@%$host%g
4393 s%@host_alias@%$host_alias%g
4394 s%@host_cpu@%$host_cpu%g
4395 s%@host_vendor@%$host_vendor%g
4396 s%@host_os@%$host_os%g
4397 s%@target@%$target%g
4398 s%@target_alias@%$target_alias%g
4399 s%@target_cpu@%$target_cpu%g
4400 s%@target_vendor@%$target_vendor%g
4401 s%@target_os@%$target_os%g
4402 s%@build@%$build%g
4403 s%@build_alias@%$build_alias%g
4404 s%@build_cpu@%$build_cpu%g
4405 s%@build_vendor@%$build_vendor%g
4406 s%@build_os@%$build_os%g
4407 s%@CC@%$CC%g
4408 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4409 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4410 s%@INSTALL_DATA@%$INSTALL_DATA%g
4411 s%@PACKAGE@%$PACKAGE%g
4412 s%@VERSION@%$VERSION%g
4413 s%@ACLOCAL@%$ACLOCAL%g
4414 s%@AUTOCONF@%$AUTOCONF%g
4415 s%@AUTOMAKE@%$AUTOMAKE%g
4416 s%@AUTOHEADER@%$AUTOHEADER%g
4417 s%@MAKEINFO@%$MAKEINFO%g
4418 s%@SET_MAKE@%$SET_MAKE%g
4419 s%@LN_S@%$LN_S%g
4420 s%@OBJEXT@%$OBJEXT%g
4421 s%@EXEEXT@%$EXEEXT%g
4422 s%@RANLIB@%$RANLIB%g
4423 s%@STRIP@%$STRIP%g
4424 s%@LIBTOOL@%$LIBTOOL%g
4425 s%@CPP@%$CPP%g
4426 s%@ALLOCA@%$ALLOCA%g
4427 s%@USE_NLS@%$USE_NLS%g
4428 s%@MSGFMT@%$MSGFMT%g
4429 s%@GMSGFMT@%$GMSGFMT%g
4430 s%@XGETTEXT@%$XGETTEXT%g
4431 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4432 s%@CATALOGS@%$CATALOGS%g
4433 s%@CATOBJEXT@%$CATOBJEXT%g
4434 s%@DATADIRNAME@%$DATADIRNAME%g
4435 s%@GMOFILES@%$GMOFILES%g
4436 s%@INSTOBJEXT@%$INSTOBJEXT%g
4437 s%@INTLDEPS@%$INTLDEPS%g
4438 s%@INTLLIBS@%$INTLLIBS%g
4439 s%@INTLOBJS@%$INTLOBJS%g
4440 s%@POFILES@%$POFILES%g
4441 s%@POSUB@%$POSUB%g
4442 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4443 s%@GT_NO@%$GT_NO%g
4444 s%@GT_YES@%$GT_YES%g
4445 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4446 s%@l@%$l%g
4447 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4448 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4449 s%@MAINT@%$MAINT%g
4450 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4452 CEOF
4455 cat >> $CONFIG_STATUS <<\EOF
4457 # Split the substitutions into bite-sized pieces for seds with
4458 # small command number limits, like on Digital OSF/1 and HP-UX.
4459 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4460 ac_file=1 # Number of current file.
4461 ac_beg=1 # First line for current file.
4462 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4463 ac_more_lines=:
4464 ac_sed_cmds=""
4465 while $ac_more_lines; do
4466 if test $ac_beg -gt 1; then
4467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4468 else
4469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4471 if test ! -s conftest.s$ac_file; then
4472 ac_more_lines=false
4473 rm -f conftest.s$ac_file
4474 else
4475 if test -z "$ac_sed_cmds"; then
4476 ac_sed_cmds="sed -f conftest.s$ac_file"
4477 else
4478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4480 ac_file=`expr $ac_file + 1`
4481 ac_beg=$ac_end
4482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4484 done
4485 if test -z "$ac_sed_cmds"; then
4486 ac_sed_cmds=cat
4490 cat >> $CONFIG_STATUS <<EOF
4492 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4494 cat >> $CONFIG_STATUS <<\EOF
4495 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4497 case "$ac_file" in
4498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4500 *) ac_file_in="${ac_file}.in" ;;
4501 esac
4503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4505 # Remove last slash and all that follows it. Not all systems have dirname.
4506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4508 # The file is in a subdirectory.
4509 test ! -d "$ac_dir" && mkdir "$ac_dir"
4510 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4511 # A "../" for each directory in $ac_dir_suffix.
4512 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4513 else
4514 ac_dir_suffix= ac_dots=
4517 case "$ac_given_srcdir" in
4518 .) srcdir=.
4519 if test -z "$ac_dots"; then top_srcdir=.
4520 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4521 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4522 *) # Relative path.
4523 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4524 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4525 esac
4527 case "$ac_given_INSTALL" in
4528 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4529 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4530 esac
4532 echo creating "$ac_file"
4533 rm -f "$ac_file"
4534 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4535 case "$ac_file" in
4536 *Makefile*) ac_comsub="1i\\
4537 # $configure_input" ;;
4538 *) ac_comsub= ;;
4539 esac
4541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4542 sed -e "$ac_comsub
4543 s%@configure_input@%$configure_input%g
4544 s%@srcdir@%$srcdir%g
4545 s%@top_srcdir@%$top_srcdir%g
4546 s%@INSTALL@%$INSTALL%g
4547 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4548 fi; done
4549 rm -f conftest.s*
4551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4554 # ac_d sets the value in "#define NAME VALUE" lines.
4555 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4556 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4557 ac_dC='\3'
4558 ac_dD='%g'
4559 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4560 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4561 ac_uB='\([ ]\)%\1#\2define\3'
4562 ac_uC=' '
4563 ac_uD='\4%g'
4564 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4565 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4566 ac_eB='$%\1#\2define\3'
4567 ac_eC=' '
4568 ac_eD='%g'
4570 if test "${CONFIG_HEADERS+set}" != set; then
4572 cat >> $CONFIG_STATUS <<EOF
4573 CONFIG_HEADERS="gconfig.h:gconfig.in"
4575 cat >> $CONFIG_STATUS <<\EOF
4577 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4579 case "$ac_file" in
4580 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4581 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4582 *) ac_file_in="${ac_file}.in" ;;
4583 esac
4585 echo creating $ac_file
4587 rm -f conftest.frag conftest.in conftest.out
4588 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4589 cat $ac_file_inputs > conftest.in
4593 # Transform confdefs.h into a sed script conftest.vals that substitutes
4594 # the proper values into config.h.in to produce config.h. And first:
4595 # Protect against being on the right side of a sed subst in config.status.
4596 # Protect against being in an unquoted here document in config.status.
4597 rm -f conftest.vals
4598 cat > conftest.hdr <<\EOF
4599 s/[\\&%]/\\&/g
4600 s%[\\$`]%\\&%g
4601 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4602 s%ac_d%ac_u%gp
4603 s%ac_u%ac_e%gp
4605 sed -n -f conftest.hdr confdefs.h > conftest.vals
4606 rm -f conftest.hdr
4608 # This sed command replaces #undef with comments. This is necessary, for
4609 # example, in the case of _POSIX_SOURCE, which is predefined and required
4610 # on some systems where configure will not decide to define it.
4611 cat >> conftest.vals <<\EOF
4612 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4615 # Break up conftest.vals because some shells have a limit on
4616 # the size of here documents, and old seds have small limits too.
4618 rm -f conftest.tail
4619 while :
4621 ac_lines=`grep -c . conftest.vals`
4622 # grep -c gives empty output for an empty file on some AIX systems.
4623 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4624 # Write a limited-size here document to conftest.frag.
4625 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4626 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4627 echo 'CEOF
4628 sed -f conftest.frag conftest.in > conftest.out
4629 rm -f conftest.in
4630 mv conftest.out conftest.in
4631 ' >> $CONFIG_STATUS
4632 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4633 rm -f conftest.vals
4634 mv conftest.tail conftest.vals
4635 done
4636 rm -f conftest.vals
4638 cat >> $CONFIG_STATUS <<\EOF
4639 rm -f conftest.frag conftest.h
4640 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4641 cat conftest.in >> conftest.h
4642 rm -f conftest.in
4643 if cmp -s $ac_file conftest.h 2>/dev/null; then
4644 echo "$ac_file is unchanged"
4645 rm -f conftest.h
4646 else
4647 # Remove last slash and all that follows it. Not all systems have dirname.
4648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4650 # The file is in a subdirectory.
4651 test ! -d "$ac_dir" && mkdir "$ac_dir"
4653 rm -f $ac_file
4654 mv conftest.h $ac_file
4656 fi; done
4659 cat >> $CONFIG_STATUS <<EOF
4663 cat >> $CONFIG_STATUS <<\EOF
4664 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4665 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4666 exit 0
4668 chmod +x $CONFIG_STATUS
4669 rm -fr confdefs* $ac_clean_files
4670 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1