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