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