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