]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprof/configure
* configure.in: Set version to 2.9.1.
[thirdparty/binutils-gdb.git] / gprof / configure
CommitLineData
7858d8dc
C
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
274e44ae 4# Generated automatically using autoconf version 2.12.1
8530ae8e 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7858d8dc
C
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
ba8e3a2e 14ac_help="$ac_help
86884cd1
ILT
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
274e44ae 18ac_help="$ac_help
86884cd1
ILT
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
274e44ae 22ac_help="$ac_help
86884cd1 23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
2f1fec47
ILT
24ac_help="$ac_help
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
7858d8dc
C
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
ba8e3a2e
ILT
49bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
7858d8dc
C
61
62# Initialize some other variables.
63subdirs=
ba8e3a2e 64MFLAGS= MAKEFLAGS=
c3de2a19 65SHELL=${CONFIG_SHELL-/bin/sh}
4947b15f
ILT
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
7858d8dc
C
68
69ac_prev=
70for ac_option
71do
72
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
78 fi
79
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
84
85 # Accept the important Cygnus configure options, so we can diagnose typos.
86
87 case "$ac_option" in
88
ba8e3a2e
ILT
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
93
94 -build | --build | --buil | --bui | --bu)
7858d8dc 95 ac_prev=build ;;
ba8e3a2e 96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7858d8dc
C
97 build="$ac_optarg" ;;
98
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
105
ba8e3a2e
ILT
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
111
7858d8dc
C
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
120
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
142
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
146
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
ba8e3a2e 162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7858d8dc 163 [same as prefix]
ba8e3a2e
ILT
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
7858d8dc
C
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
ba8e3a2e
ILT
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
183EOF
184 cat << EOF
7858d8dc
C
185Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
7858d8dc 196EOF
ba8e3a2e
ILT
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
199 fi
7858d8dc
C
200 exit 0 ;;
201
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
206
ba8e3a2e
ILT
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
213
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
218
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
223
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
230
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
239
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
244
7858d8dc
C
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
248
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
252
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
256
ba8e3a2e
ILT
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
265
7858d8dc
C
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
270
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
277
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
284
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
301
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
305
ba8e3a2e
ILT
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
311
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
322
7858d8dc
C
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
ba8e3a2e
ILT
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
7858d8dc
C
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
274e44ae 349 echo "configure generated by autoconf version 2.12.1"
7858d8dc
C
350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
ba8e3a2e 395 *)
7858d8dc
C
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406done
407
408if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423 exec 6>/dev/null
424else
425 exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448done
449
450# NLS nuisances.
4947b15f
ILT
451# Only set these to C if already set. These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
7858d8dc 455if test "${LANG+set}" = set; then LANG=C; export LANG; fi
4947b15f
ILT
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
7858d8dc
C
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=gprof.c
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
479 fi
480else
481 ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
504 fi
505done
506
507if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510else
511 echo "creating cache $cache_file"
512 > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ea2488ad
ILT
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4947b15f 520cross_compiling=$ac_cv_prog_cc_cross
7858d8dc
C
521
522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='
526' ac_t=' '
527 else
528 ac_n=-n ac_c= ac_t=
529 fi
530else
531 ac_n= ac_c='\c' ac_t=
532fi
533
534
535
2f1fec47
ILT
536ac_aux_dir=
537for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install-sh -c"
541 break
542 elif test -f $ac_dir/install.sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install.sh -c"
545 break
546 fi
547done
548if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550fi
551ac_config_guess=$ac_aux_dir/config.guess
552ac_config_sub=$ac_aux_dir/config.sub
553ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555
556# Do some error checking and defaulting for the host and target type.
557# The inputs are:
558# configure --host=HOST --target=TARGET --build=BUILD NONOPT
559#
560# The rules are:
561# 1. You are not allowed to specify --host, --target, and nonopt at the
562# same time.
563# 2. Host defaults to nonopt.
564# 3. If nonopt is not specified, then host defaults to the current host,
565# as determined by config.guess.
566# 4. Target and build default to nonopt.
567# 5. If nonopt is not specified, then target and build default to host.
568
569# The aliases save the names the user supplied, while $host etc.
570# will get canonicalized.
571case $host---$target---$nonopt in
572NONE---*---* | *---NONE---* | *---*---NONE) ;;
573*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
574esac
575
576
577# Make sure we can run config.sub.
274e44ae 578if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2f1fec47
ILT
579else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580fi
581
582echo $ac_n "checking host system type""... $ac_c" 1>&6
86884cd1 583echo "configure:584: checking host system type" >&5
2f1fec47
ILT
584
585host_alias=$host
586case "$host_alias" in
587NONE)
588 case $nonopt in
589 NONE)
274e44ae 590 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2f1fec47
ILT
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 fi ;;
593 *) host_alias=$nonopt ;;
594 esac ;;
595esac
596
274e44ae 597host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2f1fec47
ILT
598host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601echo "$ac_t""$host" 1>&6
602
603echo $ac_n "checking target system type""... $ac_c" 1>&6
86884cd1 604echo "configure:605: checking target system type" >&5
2f1fec47
ILT
605
606target_alias=$target
607case "$target_alias" in
608NONE)
609 case $nonopt in
610 NONE) target_alias=$host_alias ;;
611 *) target_alias=$nonopt ;;
612 esac ;;
613esac
614
274e44ae 615target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
2f1fec47
ILT
616target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619echo "$ac_t""$target" 1>&6
620
621echo $ac_n "checking build system type""... $ac_c" 1>&6
86884cd1 622echo "configure:623: checking build system type" >&5
2f1fec47
ILT
623
624build_alias=$build
625case "$build_alias" in
626NONE)
627 case $nonopt in
628 NONE) build_alias=$host_alias ;;
629 *) build_alias=$nonopt ;;
630 esac ;;
631esac
632
274e44ae 633build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2f1fec47
ILT
634build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637echo "$ac_t""$build" 1>&6
638
639test "$host_alias" != "$target_alias" &&
640 test "$program_prefix$program_suffix$program_transform_name" = \
641 NONENONEs,x,x, &&
642 program_prefix=${target_alias}-
643
644
645# Find a good install program. We prefer a C program (faster),
646# so one script is as good as another. But avoid the broken or
647# incompatible versions:
648# SysV /etc/install, /usr/sbin/install
649# SunOS /usr/etc/install
650# IRIX /sbin/install
651# AIX /bin/install
c3de2a19 652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2f1fec47
ILT
653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
655# ./install, which can be erroneously created by make from ./install.sh.
656echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
86884cd1 657echo "configure:658: checking for a BSD compatible install" >&5
2f1fec47
ILT
658if test -z "$INSTALL"; then
659if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
661else
662 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
663 for ac_dir in $PATH; do
664 # Account for people who put trailing slashes in PATH elements.
665 case "$ac_dir/" in
666 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
667 *)
668 # OSF1 and SCO ODT 3.0 have their own names for install.
c3de2a19
ILT
669 # Don't use installbsd from OSF since it installs stuff as root
670 # by default.
671 for ac_prog in ginstall scoinst install; do
2f1fec47
ILT
672 if test -f $ac_dir/$ac_prog; then
673 if test $ac_prog = install &&
674 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
675 # AIX install. It has an incompatible calling convention.
2f1fec47
ILT
676 :
677 else
678 ac_cv_path_install="$ac_dir/$ac_prog -c"
679 break 2
680 fi
681 fi
682 done
683 ;;
684 esac
685 done
686 IFS="$ac_save_IFS"
687
688fi
689 if test "${ac_cv_path_install+set}" = set; then
690 INSTALL="$ac_cv_path_install"
691 else
692 # As a last resort, use the slow shell script. We don't cache a
693 # path for INSTALL within a source directory, because that will
694 # break other packages using the cache if that directory is
695 # removed, or if the path is relative.
696 INSTALL="$ac_install_sh"
697 fi
698fi
699echo "$ac_t""$INSTALL" 1>&6
700
701# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
702# It thinks the first close brace ends the variable substitution.
703test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
704
705test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
706
707
708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
709
2f1fec47 710echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
86884cd1 711echo "configure:712: checking whether build environment is sane" >&5
2f1fec47
ILT
712# Just in case
713sleep 1
714echo timestamp > conftestfile
715# Do `set' in a subshell so we don't clobber the current shell's
716# arguments. Must try -L first in case configure is actually a
717# symlink; some systems play weird games with the mod time of symlinks
718# (eg FreeBSD returns the mod time of the symlink's containing
719# directory).
720if (
721 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
86884cd1 722 if test "$*" = "X"; then
2f1fec47
ILT
723 # -L didn't work.
724 set X `ls -t $srcdir/configure conftestfile`
725 fi
86884cd1
ILT
726 if test "$*" != "X $srcdir/configure conftestfile" \
727 && test "$*" != "X conftestfile $srcdir/configure"; then
728
729 # If neither matched, then we have a broken ls. This can happen
730 # if, for instance, CONFIG_SHELL is bash and it inherits a
731 # broken ls alias from the environment. This has actually
732 # happened. Such a system could not be considered "sane".
733 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
734alias in your environment" 1>&2; exit 1; }
735 fi
736
2f1fec47
ILT
737 test "$2" = conftestfile
738 )
739then
740 # Ok.
741 :
742else
743 { echo "configure: error: newly created file is older than distributed files!
744Check your system clock" 1>&2; exit 1; }
745fi
746rm -f conftest*
747echo "$ac_t""yes" 1>&6
748if test "$program_transform_name" = s,x,x,; then
749 program_transform_name=
750else
751 # Double any \ or $. echo might interpret backslashes.
752 cat <<\EOF_SED > conftestsed
753s,\\,\\\\,g; s,\$,$$,g
754EOF_SED
755 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
756 rm -f conftestsed
757fi
758test "$program_prefix" != NONE &&
759 program_transform_name="s,^,${program_prefix},; $program_transform_name"
760# Use a double $ so make ignores it.
761test "$program_suffix" != NONE &&
762 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
763
764# sed with no file args requires a program.
765test "$program_transform_name" = "" && program_transform_name="s,x,x,"
766
86884cd1
ILT
767echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
768echo "configure:769: checking whether ${MAKE-make} sets \${MAKE}" >&5
769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
770if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
772else
773 cat > conftestmake <<\EOF
774all:
775 @echo 'ac_maketemp="${MAKE}"'
776EOF
777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
778eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
779if test -n "$ac_maketemp"; then
780 eval ac_cv_prog_make_${ac_make}_set=yes
781else
782 eval ac_cv_prog_make_${ac_make}_set=no
783fi
784rm -f conftestmake
785fi
786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
787 echo "$ac_t""yes" 1>&6
788 SET_MAKE=
789else
790 echo "$ac_t""no" 1>&6
791 SET_MAKE="MAKE=${MAKE-make}"
792fi
793
794
795PACKAGE=gprof
796
0d3e84dd 797VERSION=2.9.1
86884cd1
ILT
798
799if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
800 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
801fi
802cat >> confdefs.h <<EOF
803#define PACKAGE "$PACKAGE"
804EOF
805
806cat >> confdefs.h <<EOF
807#define VERSION "$VERSION"
808EOF
809
810
811
2f1fec47
ILT
812missing_dir=`cd $ac_aux_dir && pwd`
813echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
86884cd1 814echo "configure:815: checking for working aclocal" >&5
2f1fec47
ILT
815# Run test in a subshell; some versions of sh will print an error if
816# an executable is not found, even if stderr is redirected.
50fb7977
ILT
817# Redirect stdin to placate older versions of autoconf. Sigh.
818if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
819 ACLOCAL=aclocal
820 echo "$ac_t""found" 1>&6
821else
822 ACLOCAL="$missing_dir/missing aclocal"
823 echo "$ac_t""missing" 1>&6
824fi
825
826echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
86884cd1 827echo "configure:828: checking for working autoconf" >&5
2f1fec47
ILT
828# Run test in a subshell; some versions of sh will print an error if
829# an executable is not found, even if stderr is redirected.
50fb7977
ILT
830# Redirect stdin to placate older versions of autoconf. Sigh.
831if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
832 AUTOCONF=autoconf
833 echo "$ac_t""found" 1>&6
834else
835 AUTOCONF="$missing_dir/missing autoconf"
836 echo "$ac_t""missing" 1>&6
837fi
838
839echo $ac_n "checking for working automake""... $ac_c" 1>&6
86884cd1 840echo "configure:841: checking for working automake" >&5
2f1fec47
ILT
841# Run test in a subshell; some versions of sh will print an error if
842# an executable is not found, even if stderr is redirected.
50fb7977
ILT
843# Redirect stdin to placate older versions of autoconf. Sigh.
844if (automake --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
845 AUTOMAKE=automake
846 echo "$ac_t""found" 1>&6
847else
848 AUTOMAKE="$missing_dir/missing automake"
849 echo "$ac_t""missing" 1>&6
850fi
851
852echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
86884cd1 853echo "configure:854: checking for working autoheader" >&5
2f1fec47
ILT
854# Run test in a subshell; some versions of sh will print an error if
855# an executable is not found, even if stderr is redirected.
50fb7977
ILT
856# Redirect stdin to placate older versions of autoconf. Sigh.
857if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
858 AUTOHEADER=autoheader
859 echo "$ac_t""found" 1>&6
860else
861 AUTOHEADER="$missing_dir/missing autoheader"
862 echo "$ac_t""missing" 1>&6
863fi
864
865echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
86884cd1 866echo "configure:867: checking for working makeinfo" >&5
2f1fec47
ILT
867# Run test in a subshell; some versions of sh will print an error if
868# an executable is not found, even if stderr is redirected.
50fb7977
ILT
869# Redirect stdin to placate older versions of autoconf. Sigh.
870if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
871 MAKEINFO=makeinfo
872 echo "$ac_t""found" 1>&6
873else
874 MAKEINFO="$missing_dir/missing makeinfo"
875 echo "$ac_t""missing" 1>&6
876fi
877
86884cd1
ILT
878
879
880# Check whether --enable-shared or --disable-shared was given.
881if test "${enable_shared+set}" = set; then
882 enableval="$enable_shared"
883 p=${PACKAGE-default}
884case "$enableval" in
885yes) enable_shared=yes ;;
886no) enable_shared=no ;;
887*)
888 enable_shared=no
889 # Look at the argument we got. We use all the common list separators.
890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
891 for pkg in $enableval; do
892 if test "X$pkg" = "X$p"; then
893 enable_shared=yes
894 fi
895 done
896 IFS="$ac_save_ifs"
897 ;;
898esac
2f1fec47 899else
86884cd1 900 enable_shared=yes
2f1fec47 901fi
86884cd1
ILT
902
903# Check whether --enable-static or --disable-static was given.
904if test "${enable_static+set}" = set; then
905 enableval="$enable_static"
906 p=${PACKAGE-default}
907case "$enableval" in
908yes) enable_static=yes ;;
909no) enable_static=no ;;
910*)
911 enable_static=no
912 # Look at the argument we got. We use all the common list separators.
913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
914 for pkg in $enableval; do
915 if test "X$pkg" = "X$p"; then
916 enable_static=yes
917 fi
918 done
919 IFS="$ac_save_ifs"
920 ;;
921esac
2f1fec47 922else
86884cd1 923 enable_static=yes
2f1fec47
ILT
924fi
925
fa1a1b32
ILT
926# Extract the first word of "ranlib", so it can be a program name with args.
927set dummy ranlib; ac_word=$2
928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
86884cd1 929echo "configure:930: checking for $ac_word" >&5
fa1a1b32
ILT
930if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
932else
933 if test -n "$RANLIB"; then
934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
935else
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
937 for ac_dir in $PATH; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_RANLIB="ranlib"
941 break
942 fi
943 done
944 IFS="$ac_save_ifs"
945 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
946fi
947fi
948RANLIB="$ac_cv_prog_RANLIB"
949if test -n "$RANLIB"; then
950 echo "$ac_t""$RANLIB" 1>&6
951else
952 echo "$ac_t""no" 1>&6
953fi
954
7858d8dc
C
955# Extract the first word of "gcc", so it can be a program name with args.
956set dummy gcc; ac_word=$2
957echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
86884cd1 958echo "configure:959: checking for $ac_word" >&5
7858d8dc
C
959if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
961else
962 if test -n "$CC"; then
963 ac_cv_prog_CC="$CC" # Let the user override the test.
964else
965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
966 for ac_dir in $PATH; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_CC="gcc"
970 break
971 fi
972 done
973 IFS="$ac_save_ifs"
7858d8dc
C
974fi
975fi
976CC="$ac_cv_prog_CC"
977if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
979else
980 echo "$ac_t""no" 1>&6
981fi
982
ea2488ad
ILT
983if test -z "$CC"; then
984 # Extract the first word of "cc", so it can be a program name with args.
985set dummy cc; ac_word=$2
986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
86884cd1 987echo "configure:988: checking for $ac_word" >&5
ea2488ad
ILT
988if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990else
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
993else
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
995 ac_prog_rejected=no
996 for ac_dir in $PATH; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1000 ac_prog_rejected=yes
1001 continue
1002 fi
1003 ac_cv_prog_CC="cc"
1004 break
1005 fi
1006 done
1007 IFS="$ac_save_ifs"
1008if test $ac_prog_rejected = yes; then
1009 # We found a bogon in the path, so make sure we never use it.
1010 set dummy $ac_cv_prog_CC
1011 shift
1012 if test $# -gt 0; then
1013 # We chose a different compiler from the bogus one.
1014 # However, it has the same basename, so the bogon will be chosen
1015 # first if we set CC to just the basename; use the full file name.
1016 shift
1017 set dummy "$ac_dir/$ac_word" "$@"
1018 shift
1019 ac_cv_prog_CC="$@"
1020 fi
1021fi
1022fi
1023fi
1024CC="$ac_cv_prog_CC"
1025if test -n "$CC"; then
1026 echo "$ac_t""$CC" 1>&6
1027else
1028 echo "$ac_t""no" 1>&6
1029fi
1030
1031 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1032fi
7858d8dc 1033
4947b15f 1034echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
86884cd1 1035echo "configure:1036: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
4947b15f
ILT
1036
1037ac_ext=c
1038# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1039ac_cpp='$CPP $CPPFLAGS'
1040ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1041ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1042cross_compiling=$ac_cv_prog_cc_cross
1043
1044cat > conftest.$ac_ext <<EOF
86884cd1 1045#line 1046 "configure"
4947b15f
ILT
1046#include "confdefs.h"
1047main(){return(0);}
1048EOF
86884cd1 1049if { (eval echo configure:1050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4947b15f
ILT
1050 ac_cv_prog_cc_works=yes
1051 # If we can't run a trivial program, we are probably using a cross compiler.
1052 if (./conftest; exit) 2>/dev/null; then
1053 ac_cv_prog_cc_cross=no
1054 else
1055 ac_cv_prog_cc_cross=yes
1056 fi
1057else
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1060 ac_cv_prog_cc_works=no
1061fi
1062rm -fr conftest*
1063
1064echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1065if test $ac_cv_prog_cc_works = no; then
1066 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1067fi
1068echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
86884cd1 1069echo "configure:1070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
4947b15f
ILT
1070echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1071cross_compiling=$ac_cv_prog_cc_cross
1072
7858d8dc 1073echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
86884cd1 1074echo "configure:1075: checking whether we are using GNU C" >&5
7858d8dc
C
1075if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077else
1078 cat > conftest.c <<EOF
1079#ifdef __GNUC__
1080 yes;
1081#endif
1082EOF
86884cd1 1083if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7858d8dc
C
1084 ac_cv_prog_gcc=yes
1085else
1086 ac_cv_prog_gcc=no
1087fi
1088fi
ba8e3a2e 1089
7858d8dc 1090echo "$ac_t""$ac_cv_prog_gcc" 1>&6
4947b15f 1091
7858d8dc
C
1092if test $ac_cv_prog_gcc = yes; then
1093 GCC=yes
4947b15f
ILT
1094 ac_test_CFLAGS="${CFLAGS+set}"
1095 ac_save_CFLAGS="$CFLAGS"
1096 CFLAGS=
1097 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
86884cd1 1098echo "configure:1099: checking whether ${CC-cc} accepts -g" >&5
4947b15f 1099if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7858d8dc
C
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101else
1102 echo 'void f(){}' > conftest.c
1103if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
4947b15f 1104 ac_cv_prog_cc_g=yes
7858d8dc 1105else
4947b15f 1106 ac_cv_prog_cc_g=no
7858d8dc
C
1107fi
1108rm -f conftest*
1109
1110fi
ba8e3a2e 1111
4947b15f
ILT
1112echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1113 if test "$ac_test_CFLAGS" = set; then
1114 CFLAGS="$ac_save_CFLAGS"
1115 elif test $ac_cv_prog_cc_g = yes; then
1116 CFLAGS="-g -O2"
1117 else
1118 CFLAGS="-O2"
7858d8dc
C
1119 fi
1120else
1121 GCC=
1122 test "${CFLAGS+set}" = set || CFLAGS="-g"
1123fi
1124
274e44ae
ILT
1125# Check whether --with-gnu-ld or --without-gnu-ld was given.
1126if test "${with_gnu_ld+set}" = set; then
1127 withval="$with_gnu_ld"
1128 test "$withval" = no || with_gnu_ld=yes
1129else
1130 with_gnu_ld=no
39c3964f 1131fi
274e44ae 1132
fa1a1b32
ILT
1133
1134ac_prog=ld
1135if test "$ac_cv_prog_gcc" = yes; then
1136 # Check if gcc -print-prog-name=ld gives a path.
1137 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
86884cd1 1138echo "configure:1139: checking for ld used by GCC" >&5
fa1a1b32
ILT
1139 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1140 case "$ac_prog" in
1141 # Accept absolute paths.
86884cd1 1142 /* | [A-Za-z]:\\*)
fa1a1b32
ILT
1143 test -z "$LD" && LD="$ac_prog"
1144 ;;
1145 "")
1146 # If it fails, then pretend we aren't using GCC.
1147 ac_prog=ld
1148 ;;
1149 *)
1150 # If it is relative, then search for the first ld in PATH.
1151 with_gnu_ld=unknown
1152 ;;
1153 esac
1154elif test "$with_gnu_ld" = yes; then
274e44ae 1155 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
86884cd1 1156echo "configure:1157: checking for GNU ld" >&5
274e44ae
ILT
1157else
1158 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
86884cd1 1159echo "configure:1160: checking for non-GNU ld" >&5
274e44ae
ILT
1160fi
1161if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163else
fa1a1b32 1164 if test -z "$LD"; then
274e44ae
ILT
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1166 for ac_dir in $PATH; do
1167 test -z "$ac_dir" && ac_dir=.
fa1a1b32
ILT
1168 if test -f "$ac_dir/$ac_prog"; then
1169 ac_cv_path_LD="$ac_dir/$ac_prog"
274e44ae
ILT
1170 # Check to see if the program is GNU ld. I'd rather use --version,
1171 # but apparently some GNU ld's only accept -v.
1172 # Break only if it was the GNU/non-GNU ld that we prefer.
fa1a1b32
ILT
1173 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1174 test "$with_gnu_ld" != no && break
274e44ae
ILT
1175 else
1176 test "$with_gnu_ld" != yes && break
1177 fi
1178 fi
1179 done
1180 IFS="$ac_save_ifs"
fa1a1b32 1181else
42a62317 1182 ac_cv_path_LD="$LD" # Let the user override the test with a path.
fa1a1b32 1183fi
274e44ae
ILT
1184fi
1185
1186LD="$ac_cv_path_LD"
1187if test -n "$LD"; then
1188 echo "$ac_t""$LD" 1>&6
1189else
1190 echo "$ac_t""no" 1>&6
1191fi
1192test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1193
fa1a1b32 1194echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
86884cd1 1195echo "configure:1196: checking if the linker ($LD) is GNU ld" >&5
274e44ae
ILT
1196if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198else
1199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
fa1a1b32 1200if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
274e44ae
ILT
1201 ac_cv_prog_gnu_ld=yes
1202else
1203 ac_cv_prog_gnu_ld=no
1204fi
1205fi
1206
1207echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1208
1209
fa1a1b32 1210echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
86884cd1 1211echo "configure:1212: checking for BSD-compatible nm" >&5
fa1a1b32
ILT
1212if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214else
1215 case "$NM" in
86884cd1 1216/* | [A-Za-z]:\\*)
fa1a1b32
ILT
1217 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1218 ;;
1219*)
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1221 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
86884cd1 1222 test -z "$ac_dir" && ac_dir=.
fa1a1b32
ILT
1223 if test -f $ac_dir/nm; then
1224 # Check to see if the nm accepts a BSD-compat flag.
86884cd1 1225 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
fa1a1b32 1226 # nm: unknown option "B" ignored
86884cd1 1227 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
fa1a1b32 1228 ac_cv_path_NM="$ac_dir/nm -B"
86884cd1 1229 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
fa1a1b32
ILT
1230 ac_cv_path_NM="$ac_dir/nm -p"
1231 else
1232 ac_cv_path_NM="$ac_dir/nm"
1233 fi
1234 break
1235 fi
1236 done
1237 IFS="$ac_save_ifs"
1238 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1239 ;;
1240esac
1241fi
1242
1243NM="$ac_cv_path_NM"
1244echo "$ac_t""$NM" 1>&6
1245
1246
274e44ae 1247echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
86884cd1 1248echo "configure:1249: checking whether ln -s works" >&5
274e44ae
ILT
1249if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251else
1252 rm -f conftestdata
1253if ln -s X conftestdata 2>/dev/null
1254then
1255 rm -f conftestdata
1256 ac_cv_prog_LN_S="ln -s"
1257else
1258 ac_cv_prog_LN_S=ln
1259fi
1260fi
1261LN_S="$ac_cv_prog_LN_S"
1262if test "$ac_cv_prog_LN_S" = "ln -s"; then
1263 echo "$ac_t""yes" 1>&6
1264else
1265 echo "$ac_t""no" 1>&6
1266fi
1267
274e44ae 1268# Always use our own libtool.
c3de2a19 1269LIBTOOL='$(SHELL) $(top_builddir)/libtool'
274e44ae 1270
86884cd1
ILT
1271# Check for any special flags to pass to ltconfig.
1272libtool_flags=
1273test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1274test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
274e44ae
ILT
1275test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1276test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1277test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1278
1279# Some flags need to be propagated to the compiler or linker for good
1280# libtool support.
1281case "$host" in
86884cd1 1282*-*-irix6*)
641146fe 1283 # Find out which ABI we are using.
86884cd1
ILT
1284 echo '#line 1285 "configure"' > conftest.$ac_ext
1285 if { (eval echo configure:1286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
641146fe
ILT
1286 case "`/usr/bin/file conftest.o`" in
1287 *32-bit*)
1288 LD="${LD-ld} -32"
fa1a1b32 1289 ;;
641146fe
ILT
1290 *N32*)
1291 LD="${LD-ld} -n32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -64"
fa1a1b32
ILT
1295 ;;
1296 esac
641146fe
ILT
1297 fi
1298 rm -rf conftest*
274e44ae
ILT
1299 ;;
1300
1301*-*-sco3.2v5*)
1302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1303 CFLAGS="$CFLAGS -belf"
1304 ;;
1305esac
1306
1307# Actually configure libtool. ac_aux_dir is where install-sh is found.
1308CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
fa1a1b32 1309LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
274e44ae
ILT
1310${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1311$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1312|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1313
1314
1315
1316
1317
1318
1319# Extract the first word of "gcc", so it can be a program name with args.
1320set dummy gcc; ac_word=$2
1321echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
86884cd1 1322echo "configure:1323: checking for $ac_word" >&5
274e44ae
ILT
1323if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325else
1326 if test -n "$CC"; then
1327 ac_cv_prog_CC="$CC" # Let the user override the test.
1328else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1330 for ac_dir in $PATH; do
1331 test -z "$ac_dir" && ac_dir=.
1332 if test -f $ac_dir/$ac_word; then
1333 ac_cv_prog_CC="gcc"
1334 break
1335 fi
1336 done
1337 IFS="$ac_save_ifs"
1338fi
1339fi
1340CC="$ac_cv_prog_CC"
1341if test -n "$CC"; then
1342 echo "$ac_t""$CC" 1>&6
1343else
1344 echo "$ac_t""no" 1>&6
1345fi
1346
1347if test -z "$CC"; then
1348 # Extract the first word of "cc", so it can be a program name with args.
1349set dummy cc; ac_word=$2
1350echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
86884cd1 1351echo "configure:1352: checking for $ac_word" >&5
274e44ae
ILT
1352if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1354else
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC="$CC" # Let the user override the test.
1357else
1358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1359 ac_prog_rejected=no
1360 for ac_dir in $PATH; do
1361 test -z "$ac_dir" && ac_dir=.
1362 if test -f $ac_dir/$ac_word; then
1363 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1364 ac_prog_rejected=yes
1365 continue
1366 fi
1367 ac_cv_prog_CC="cc"
1368 break
1369 fi
1370 done
1371 IFS="$ac_save_ifs"
1372if test $ac_prog_rejected = yes; then
1373 # We found a bogon in the path, so make sure we never use it.
1374 set dummy $ac_cv_prog_CC
1375 shift
1376 if test $# -gt 0; then
1377 # We chose a different compiler from the bogus one.
1378 # However, it has the same basename, so the bogon will be chosen
1379 # first if we set CC to just the basename; use the full file name.
1380 shift
1381 set dummy "$ac_dir/$ac_word" "$@"
1382 shift
1383 ac_cv_prog_CC="$@"
1384 fi
1385fi
1386fi
1387fi
1388CC="$ac_cv_prog_CC"
1389if test -n "$CC"; then
1390 echo "$ac_t""$CC" 1>&6
1391else
1392 echo "$ac_t""no" 1>&6
1393fi
1394
1395 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1396fi
1397
1398echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
86884cd1 1399echo "configure:1400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
274e44ae
ILT
1400
1401ac_ext=c
1402# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1403ac_cpp='$CPP $CPPFLAGS'
1404ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1405ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1406cross_compiling=$ac_cv_prog_cc_cross
1407
1408cat > conftest.$ac_ext <<EOF
86884cd1 1409#line 1410 "configure"
274e44ae
ILT
1410#include "confdefs.h"
1411main(){return(0);}
1412EOF
86884cd1 1413if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
274e44ae
ILT
1414 ac_cv_prog_cc_works=yes
1415 # If we can't run a trivial program, we are probably using a cross compiler.
1416 if (./conftest; exit) 2>/dev/null; then
1417 ac_cv_prog_cc_cross=no
39c3964f 1418 else
274e44ae 1419 ac_cv_prog_cc_cross=yes
39c3964f 1420 fi
274e44ae
ILT
1421else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 ac_cv_prog_cc_works=no
39c3964f 1425fi
274e44ae 1426rm -fr conftest*
39c3964f 1427
274e44ae
ILT
1428echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1429if test $ac_cv_prog_cc_works = no; then
1430 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1431fi
1432echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
86884cd1 1433echo "configure:1434: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
274e44ae
ILT
1434echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1435cross_compiling=$ac_cv_prog_cc_cross
39c3964f 1436
274e44ae 1437echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
86884cd1 1438echo "configure:1439: checking whether we are using GNU C" >&5
274e44ae
ILT
1439if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441else
1442 cat > conftest.c <<EOF
1443#ifdef __GNUC__
1444 yes;
1445#endif
1446EOF
86884cd1 1447if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
274e44ae
ILT
1448 ac_cv_prog_gcc=yes
1449else
1450 ac_cv_prog_gcc=no
1451fi
1452fi
1453
1454echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1455
1456if test $ac_cv_prog_gcc = yes; then
1457 GCC=yes
1458 ac_test_CFLAGS="${CFLAGS+set}"
1459 ac_save_CFLAGS="$CFLAGS"
1460 CFLAGS=
1461 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
86884cd1 1462echo "configure:1463: checking whether ${CC-cc} accepts -g" >&5
274e44ae
ILT
1463if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1465else
1466 echo 'void f(){}' > conftest.c
1467if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1468 ac_cv_prog_cc_g=yes
1469else
1470 ac_cv_prog_cc_g=no
1471fi
1472rm -f conftest*
1473
1474fi
1475
1476echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1477 if test "$ac_test_CFLAGS" = set; then
1478 CFLAGS="$ac_save_CFLAGS"
1479 elif test $ac_cv_prog_cc_g = yes; then
1480 CFLAGS="-g -O2"
1481 else
1482 CFLAGS="-O2"
1483 fi
1484else
1485 GCC=
1486 test "${CFLAGS+set}" = set || CFLAGS="-g"
1487fi
1488
1489
1490test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
39c3964f
JM
1491
1492
e3c0e00b 1493echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
86884cd1 1494echo "configure:1495: checking for POSIXized ISC" >&5
e3c0e00b
ILT
1495if test -d /etc/conf/kconfig.d &&
1496 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1497then
1498 echo "$ac_t""yes" 1>&6
1499 ISC=yes # If later tests want to check for ISC.
1500 cat >> confdefs.h <<\EOF
1501#define _POSIX_SOURCE 1
1502EOF
1503
1504 if test "$GCC" = yes; then
1505 CC="$CC -posix"
1506 else
1507 CC="$CC -Xp"
1508 fi
1509else
1510 echo "$ac_t""no" 1>&6
1511 ISC=
1512fi
1513
1514
22395d7e
ILT
1515case "${target}" in
1516*-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1517 cat >> confdefs.h <<\EOF
1518#define BSD44_FORMAT 1
1519EOF
1520
1521 ;;
1522esac
1523
2f1fec47 1524echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
86884cd1 1525echo "configure:1526: checking whether to enable maintainer-specific portions of Makefiles" >&5
2f1fec47
ILT
1526 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1527if test "${enable_maintainer_mode+set}" = set; then
1528 enableval="$enable_maintainer_mode"
1529 USE_MAINTAINER_MODE=$enableval
1530else
1531 USE_MAINTAINER_MODE=no
1532fi
1533
1534 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1535 if test $USE_MAINTAINER_MODE = yes; then
1536 MAINT=
1537 else
1538 MAINT='#M#'
1539 fi
1540
1541
50fb7977 1542echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
86884cd1 1543echo "configure:1544: checking for Cygwin32 environment" >&5
50fb7977 1544if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
2f1fec47
ILT
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546else
274e44ae 1547 cat > conftest.$ac_ext <<EOF
86884cd1 1548#line 1549 "configure"
274e44ae
ILT
1549#include "confdefs.h"
1550
1551int main() {
c3de2a19 1552return __CYGWIN32__;
274e44ae 1553; return 0; }
2f1fec47 1554EOF
86884cd1 1555if { (eval echo configure:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
274e44ae
ILT
1556 rm -rf conftest*
1557 am_cv_cygwin32=yes
2f1fec47 1558else
274e44ae
ILT
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1561 rm -rf conftest*
1562 am_cv_cygwin32=no
2f1fec47
ILT
1563fi
1564rm -f conftest*
274e44ae 1565rm -f conftest*
2f1fec47 1566fi
2f1fec47 1567
50fb7977 1568echo "$ac_t""$am_cv_cygwin32" 1>&6
274e44ae
ILT
1569CYGWIN32=
1570test "$am_cv_cygwin32" = yes && CYGWIN32=yes
c3de2a19 1571echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
86884cd1 1572echo "configure:1573: checking for Mingw32 environment" >&5
c3de2a19
ILT
1573if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1575else
1576 cat > conftest.$ac_ext <<EOF
86884cd1 1577#line 1578 "configure"
c3de2a19
ILT
1578#include "confdefs.h"
1579
1580int main() {
1581return __MINGW32__;
1582; return 0; }
1583EOF
86884cd1 1584if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c3de2a19
ILT
1585 rm -rf conftest*
1586 am_cv_mingw32=yes
1587else
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1590 rm -rf conftest*
1591 am_cv_mingw32=no
1592fi
1593rm -f conftest*
1594rm -f conftest*
1595fi
1596
1597echo "$ac_t""$am_cv_mingw32" 1>&6
1598MINGW32=
1599test "$am_cv_mingw32" = yes && MINGW32=yes
1600
274e44ae
ILT
1601
1602echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
86884cd1 1603echo "configure:1604: checking for executable suffix" >&5
274e44ae
ILT
1604if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1606else
86884cd1 1607 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
274e44ae
ILT
1608am_cv_exeext=.exe
1609else
1610cat > am_c_test.c << 'EOF'
1611int main() {
1612/* Nothing needed here */
1613}
1614EOF
1615${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1616am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1617rm -f am_c_test*
1618fi
1619
1620test x"${am_cv_exeext}" = x && am_cv_exeext=no
1621fi
1622EXEEXT=""
1623test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1624echo "$ac_t""${am_cv_exeext}" 1>&6
2f1fec47
ILT
1625
1626
7858d8dc
C
1627trap '' 1 2 15
1628cat > confcache <<\EOF
1629# This file is a shell script that caches the results of configure
1630# tests run on this system so they can be shared between configure
1631# scripts and configure runs. It is not useful on other systems.
1632# If it contains results you don't want to keep, you may remove or edit it.
1633#
1634# By default, configure uses ./config.cache as the cache file,
1635# creating it if it does not exist already. You can give configure
1636# the --cache-file=FILE option to use a different cache file; that is
1637# what configure does when it calls configure scripts in
1638# subdirectories, so they share the cache.
1639# Giving --cache-file=/dev/null disables caching, for debugging configure.
1640# config.status only pays attention to the cache file if you give it the
1641# --recheck option to rerun configure.
1642#
1643EOF
4947b15f
ILT
1644# The following way of writing the cache mishandles newlines in values,
1645# but we know of no workaround that is simple, portable, and efficient.
1646# So, don't put newlines in cache variables' values.
7858d8dc
C
1647# Ultrix sh set writes to stderr and can't be redirected directly,
1648# and sets the high bit in the cache file unless we assign to the vars.
1649(set) 2>&1 |
c3de2a19 1650 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4947b15f
ILT
1651 *ac_space=\ *)
1652 # `set' does not quote correctly, so add quotes (double-quote substitution
1653 # turns \\\\ into \\, and sed turns \\ into \).
1654 sed -n \
1655 -e "s/'/'\\\\''/g" \
1656 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1657 ;;
1658 *)
1659 # `set' quotes correctly as required by POSIX, so do not add quotes.
1660 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1661 ;;
1662 esac >> confcache
7858d8dc
C
1663if cmp -s $cache_file confcache; then
1664 :
1665else
1666 if test -w $cache_file; then
1667 echo "updating cache $cache_file"
1668 cat confcache > $cache_file
1669 else
1670 echo "not updating unwritable cache $cache_file"
1671 fi
1672fi
1673rm -f confcache
1674
1675trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1676
1677test "x$prefix" = xNONE && prefix=$ac_default_prefix
1678# Let make expand exec_prefix.
1679test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1680
1681# Any assignment to VPATH causes Sun make to only execute
1682# the first set of double-colon rules, so remove it if not needed.
1683# If there is a colon in the path, we need to keep it.
1684if test "x$srcdir" = x.; then
1685 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1686fi
1687
1688trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1689
274e44ae 1690DEFS=-DHAVE_CONFIG_H
7858d8dc
C
1691
1692# Without the "./", some shells look in PATH for config.status.
1693: ${CONFIG_STATUS=./config.status}
1694
1695echo creating $CONFIG_STATUS
1696rm -f $CONFIG_STATUS
1697cat > $CONFIG_STATUS <<EOF
1698#! /bin/sh
1699# Generated automatically by configure.
1700# Run this file to recreate the current configuration.
1701# This directory was configured as follows,
1702# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1703#
1704# $0 $ac_configure_args
1705#
1706# Compiler output produced by configure, useful for debugging
1707# configure, is in ./config.log if it exists.
1708
1709ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1710for ac_option
1711do
1712 case "\$ac_option" in
1713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1714 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1715 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1716 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
274e44ae 1717 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
7858d8dc
C
1718 exit 0 ;;
1719 -help | --help | --hel | --he | --h)
1720 echo "\$ac_cs_usage"; exit 0 ;;
1721 *) echo "\$ac_cs_usage"; exit 1 ;;
1722 esac
1723done
1724
1725ac_given_srcdir=$srcdir
39c3964f 1726ac_given_INSTALL="$INSTALL"
7858d8dc 1727
274e44ae 1728trap 'rm -fr `echo "Makefile gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
ba8e3a2e
ILT
1729EOF
1730cat >> $CONFIG_STATUS <<EOF
7858d8dc 1731
ba8e3a2e
ILT
1732# Protect against being on the right side of a sed subst in config.status.
1733sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1734 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7858d8dc
C
1735$ac_vpsub
1736$extrasub
c3de2a19 1737s%@SHELL@%$SHELL%g
7858d8dc
C
1738s%@CFLAGS@%$CFLAGS%g
1739s%@CPPFLAGS@%$CPPFLAGS%g
1740s%@CXXFLAGS@%$CXXFLAGS%g
1741s%@DEFS@%$DEFS%g
1742s%@LDFLAGS@%$LDFLAGS%g
1743s%@LIBS@%$LIBS%g
1744s%@exec_prefix@%$exec_prefix%g
1745s%@prefix@%$prefix%g
1746s%@program_transform_name@%$program_transform_name%g
ba8e3a2e
ILT
1747s%@bindir@%$bindir%g
1748s%@sbindir@%$sbindir%g
1749s%@libexecdir@%$libexecdir%g
1750s%@datadir@%$datadir%g
1751s%@sysconfdir@%$sysconfdir%g
1752s%@sharedstatedir@%$sharedstatedir%g
1753s%@localstatedir@%$localstatedir%g
1754s%@libdir@%$libdir%g
1755s%@includedir@%$includedir%g
1756s%@oldincludedir@%$oldincludedir%g
1757s%@infodir@%$infodir%g
1758s%@mandir@%$mandir%g
7858d8dc
C
1759s%@host@%$host%g
1760s%@host_alias@%$host_alias%g
1761s%@host_cpu@%$host_cpu%g
1762s%@host_vendor@%$host_vendor%g
1763s%@host_os@%$host_os%g
1764s%@target@%$target%g
1765s%@target_alias@%$target_alias%g
1766s%@target_cpu@%$target_cpu%g
1767s%@target_vendor@%$target_vendor%g
1768s%@target_os@%$target_os%g
1769s%@build@%$build%g
1770s%@build_alias@%$build_alias%g
1771s%@build_cpu@%$build_cpu%g
1772s%@build_vendor@%$build_vendor%g
1773s%@build_os@%$build_os%g
2f1fec47
ILT
1774s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1775s%@INSTALL_DATA@%$INSTALL_DATA%g
1776s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1777s%@PACKAGE@%$PACKAGE%g
1778s%@VERSION@%$VERSION%g
1779s%@ACLOCAL@%$ACLOCAL%g
1780s%@AUTOCONF@%$AUTOCONF%g
1781s%@AUTOMAKE@%$AUTOMAKE%g
1782s%@AUTOHEADER@%$AUTOHEADER%g
1783s%@MAKEINFO@%$MAKEINFO%g
1784s%@SET_MAKE@%$SET_MAKE%g
274e44ae 1785s%@RANLIB@%$RANLIB%g
fa1a1b32 1786s%@CC@%$CC%g
274e44ae 1787s%@LD@%$LD%g
fa1a1b32 1788s%@NM@%$NM%g
274e44ae
ILT
1789s%@LN_S@%$LN_S%g
1790s%@LIBTOOL@%$LIBTOOL%g
2f1fec47 1791s%@MAINT@%$MAINT%g
2f1fec47 1792s%@EXEEXT@%$EXEEXT%g
7858d8dc
C
1793
1794CEOF
1795EOF
4947b15f
ILT
1796
1797cat >> $CONFIG_STATUS <<\EOF
1798
1799# Split the substitutions into bite-sized pieces for seds with
1800# small command number limits, like on Digital OSF/1 and HP-UX.
1801ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1802ac_file=1 # Number of current file.
1803ac_beg=1 # First line for current file.
1804ac_end=$ac_max_sed_cmds # Line after last line for current file.
1805ac_more_lines=:
1806ac_sed_cmds=""
1807while $ac_more_lines; do
1808 if test $ac_beg -gt 1; then
1809 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1810 else
1811 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1812 fi
1813 if test ! -s conftest.s$ac_file; then
1814 ac_more_lines=false
1815 rm -f conftest.s$ac_file
1816 else
1817 if test -z "$ac_sed_cmds"; then
1818 ac_sed_cmds="sed -f conftest.s$ac_file"
1819 else
1820 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1821 fi
1822 ac_file=`expr $ac_file + 1`
1823 ac_beg=$ac_end
1824 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1825 fi
1826done
1827if test -z "$ac_sed_cmds"; then
1828 ac_sed_cmds=cat
1829fi
1830EOF
1831
7858d8dc
C
1832cat >> $CONFIG_STATUS <<EOF
1833
1834CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1835EOF
1836cat >> $CONFIG_STATUS <<\EOF
1837for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4947b15f 1838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7858d8dc 1839 case "$ac_file" in
4947b15f 1840 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7858d8dc
C
1841 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1842 *) ac_file_in="${ac_file}.in" ;;
1843 esac
1844
4947b15f 1845 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7858d8dc
C
1846
1847 # Remove last slash and all that follows it. Not all systems have dirname.
1848 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1849 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1850 # The file is in a subdirectory.
1851 test ! -d "$ac_dir" && mkdir "$ac_dir"
1852 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1853 # A "../" for each directory in $ac_dir_suffix.
1854 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1855 else
1856 ac_dir_suffix= ac_dots=
1857 fi
1858
1859 case "$ac_given_srcdir" in
1860 .) srcdir=.
1861 if test -z "$ac_dots"; then top_srcdir=.
1862 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1863 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1864 *) # Relative path.
1865 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1866 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1867 esac
1868
39c3964f
JM
1869 case "$ac_given_INSTALL" in
1870 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1871 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1872 esac
4947b15f 1873
7858d8dc
C
1874 echo creating "$ac_file"
1875 rm -f "$ac_file"
1876 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1877 case "$ac_file" in
1878 *Makefile*) ac_comsub="1i\\
1879# $configure_input" ;;
1880 *) ac_comsub= ;;
1881 esac
4947b15f
ILT
1882
1883 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7858d8dc
C
1884 sed -e "$ac_comsub
1885s%@configure_input@%$configure_input%g
1886s%@srcdir@%$srcdir%g
1887s%@top_srcdir@%$top_srcdir%g
39c3964f 1888s%@INSTALL@%$INSTALL%g
4947b15f 1889" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7858d8dc 1890fi; done
4947b15f 1891rm -f conftest.s*
7858d8dc 1892
274e44ae
ILT
1893# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1894# NAME is the cpp macro being defined and VALUE is the value it is being given.
1895#
1896# ac_d sets the value in "#define NAME VALUE" lines.
1897ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1898ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1899ac_dC='\3'
1900ac_dD='%g'
1901# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1902ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1903ac_uB='\([ ]\)%\1#\2define\3'
1904ac_uC=' '
1905ac_uD='\4%g'
1906# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1907ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1908ac_eB='$%\1#\2define\3'
1909ac_eC=' '
1910ac_eD='%g'
1911
1912if test "${CONFIG_HEADERS+set}" != set; then
4947b15f
ILT
1913EOF
1914cat >> $CONFIG_STATUS <<EOF
274e44ae
ILT
1915 CONFIG_HEADERS="gconfig.h:gconfig.in"
1916EOF
1917cat >> $CONFIG_STATUS <<\EOF
1918fi
1919for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1921 case "$ac_file" in
1922 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1923 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1924 *) ac_file_in="${ac_file}.in" ;;
1925 esac
1926
1927 echo creating $ac_file
1928
1929 rm -f conftest.frag conftest.in conftest.out
1930 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1931 cat $ac_file_inputs > conftest.in
1932
1933EOF
1934
1935# Transform confdefs.h into a sed script conftest.vals that substitutes
1936# the proper values into config.h.in to produce config.h. And first:
1937# Protect against being on the right side of a sed subst in config.status.
1938# Protect against being in an unquoted here document in config.status.
1939rm -f conftest.vals
1940cat > conftest.hdr <<\EOF
1941s/[\\&%]/\\&/g
1942s%[\\$`]%\\&%g
1943s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1944s%ac_d%ac_u%gp
1945s%ac_u%ac_e%gp
1946EOF
1947sed -n -f conftest.hdr confdefs.h > conftest.vals
1948rm -f conftest.hdr
1949
1950# This sed command replaces #undef with comments. This is necessary, for
1951# example, in the case of _POSIX_SOURCE, which is predefined and required
1952# on some systems where configure will not decide to define it.
1953cat >> conftest.vals <<\EOF
1954s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1955EOF
1956
1957# Break up conftest.vals because some shells have a limit on
1958# the size of here documents, and old seds have small limits too.
1959
1960rm -f conftest.tail
1961while :
1962do
1963 ac_lines=`grep -c . conftest.vals`
1964 # grep -c gives empty output for an empty file on some AIX systems.
1965 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1966 # Write a limited-size here document to conftest.frag.
1967 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1968 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1969 echo 'CEOF
1970 sed -f conftest.frag conftest.in > conftest.out
1971 rm -f conftest.in
1972 mv conftest.out conftest.in
1973' >> $CONFIG_STATUS
1974 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1975 rm -f conftest.vals
1976 mv conftest.tail conftest.vals
1977done
1978rm -f conftest.vals
1979
1980cat >> $CONFIG_STATUS <<\EOF
1981 rm -f conftest.frag conftest.h
1982 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1983 cat conftest.in >> conftest.h
1984 rm -f conftest.in
1985 if cmp -s $ac_file conftest.h 2>/dev/null; then
1986 echo "$ac_file is unchanged"
1987 rm -f conftest.h
1988 else
1989 # Remove last slash and all that follows it. Not all systems have dirname.
1990 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1992 # The file is in a subdirectory.
1993 test ! -d "$ac_dir" && mkdir "$ac_dir"
1994 fi
1995 rm -f $ac_file
1996 mv conftest.h $ac_file
1997 fi
1998fi; done
1999
2000EOF
2001cat >> $CONFIG_STATUS <<EOF
2002
7858d8dc 2003
4947b15f
ILT
2004EOF
2005cat >> $CONFIG_STATUS <<\EOF
274e44ae 2006test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7858d8dc
C
2007
2008exit 0
2009EOF
2010chmod +x $CONFIG_STATUS
2011rm -fr confdefs* $ac_clean_files
2012test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2013