Correct ordering of args for cmov insn.
[deliverable/binutils-gdb.git] / gprof / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16 ac_help="$ac_help
17 --enable-shared build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]"
20 ac_help="$ac_help
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
23
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
57
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 # Maximum number of lines to put in a shell here document.
62 ac_max_here_lines=12
63
64 ac_prev=
65 for ac_option
66 do
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
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)
90 ac_prev=build ;;
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
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
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
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
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
148 Configuration:
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
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
156 [$ac_default_prefix]
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 [same as prefix]
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]
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
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
178 EOF
179 cat << EOF
180 Host 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]
184 Features 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
191 EOF
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
194 fi
195 exit 0 ;;
196
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
201
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
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
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
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
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
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
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
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)
344 echo "configure generated by autoconf version 2.12.1"
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
390 *)
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
401 done
402
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 fi
406
407 trap '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
417 if test "$silent" = yes; then
418 exec 6>/dev/null
419 else
420 exec 6>&1
421 fi
422 exec 5>./config.log
423
424 echo "\
425 This file contains any messages produced by compilers while
426 running 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.
431 ac_configure_args=
432 for ac_arg
433 do
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
443 done
444
445 # NLS nuisances.
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.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
454
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 echo > 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.
462 ac_unique_file=gprof.c
463
464 # Find the source files, if location was not specified.
465 if 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
475 else
476 ac_srcdir_defaulted=no
477 fi
478 if 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
484 fi
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
487 # Prefer explicitly selected file to automatically selected ones.
488 if 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
494 fi
495 for 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
500 done
501
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
504 . $cache_file
505 else
506 echo "creating cache $cache_file"
507 > $cache_file
508 fi
509
510 ac_ext=c
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
516
517 if (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
525 else
526 ac_n= ac_c='\c' ac_t=
527 fi
528
529
530
531 ac_aux_dir=
532 for 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
542 done
543 if 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; }
545 fi
546 ac_config_guess=$ac_aux_dir/config.guess
547 ac_config_sub=$ac_aux_dir/config.sub
548 ac_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.
566 case $host---$target---$nonopt in
567 NONE---*---* | *---NONE---* | *---*---NONE) ;;
568 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
569 esac
570
571
572 # Make sure we can run config.sub.
573 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
574 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
575 fi
576
577 echo $ac_n "checking host system type""... $ac_c" 1>&6
578 echo "configure:579: checking host system type" >&5
579
580 host_alias=$host
581 case "$host_alias" in
582 NONE)
583 case $nonopt in
584 NONE)
585 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
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 ;;
590 esac
591
592 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
593 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
594 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
595 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
596 echo "$ac_t""$host" 1>&6
597
598 echo $ac_n "checking target system type""... $ac_c" 1>&6
599 echo "configure:600: checking target system type" >&5
600
601 target_alias=$target
602 case "$target_alias" in
603 NONE)
604 case $nonopt in
605 NONE) target_alias=$host_alias ;;
606 *) target_alias=$nonopt ;;
607 esac ;;
608 esac
609
610 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
611 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
612 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
613 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
614 echo "$ac_t""$target" 1>&6
615
616 echo $ac_n "checking build system type""... $ac_c" 1>&6
617 echo "configure:618: checking build system type" >&5
618
619 build_alias=$build
620 case "$build_alias" in
621 NONE)
622 case $nonopt in
623 NONE) build_alias=$host_alias ;;
624 *) build_alias=$nonopt ;;
625 esac ;;
626 esac
627
628 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
629 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$build" 1>&6
633
634 test "$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.
650 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
651 echo "configure:652: checking for a BSD compatible install" >&5
652 if test -z "$INSTALL"; then
653 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
655 else
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
681 fi
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
691 fi
692 echo "$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.
696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
697
698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
699
700
701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
702
703
704 PACKAGE=gprof
705
706 VERSION=2.8.2
707
708 if 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; }
710 fi
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
713 EOF
714
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
717 EOF
718
719 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
720 echo "configure:721: checking whether build environment is sane" >&5
721 # Just in case
722 sleep 1
723 echo 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).
729 if (
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 )
737 then
738 # Ok.
739 :
740 else
741 { echo "configure: error: newly created file is older than distributed files!
742 Check your system clock" 1>&2; exit 1; }
743 fi
744 rm -f conftest*
745 echo "$ac_t""yes" 1>&6
746 if test "$program_transform_name" = s,x,x,; then
747 program_transform_name=
748 else
749 # Double any \ or $. echo might interpret backslashes.
750 cat <<\EOF_SED > conftestsed
751 s,\\,\\\\,g; s,\$,$$,g
752 EOF_SED
753 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
754 rm -f conftestsed
755 fi
756 test "$program_prefix" != NONE &&
757 program_transform_name="s,^,${program_prefix},; $program_transform_name"
758 # Use a double $ so make ignores it.
759 test "$program_suffix" != NONE &&
760 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
761
762 # sed with no file args requires a program.
763 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
764
765 missing_dir=`cd $ac_aux_dir && pwd`
766 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
767 echo "configure:768: checking for working aclocal" >&5
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.
770 # Redirect stdin to placate older versions of autoconf. Sigh.
771 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
772 ACLOCAL=aclocal
773 echo "$ac_t""found" 1>&6
774 else
775 ACLOCAL="$missing_dir/missing aclocal"
776 echo "$ac_t""missing" 1>&6
777 fi
778
779 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
780 echo "configure:781: checking for working autoconf" >&5
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.
783 # Redirect stdin to placate older versions of autoconf. Sigh.
784 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
785 AUTOCONF=autoconf
786 echo "$ac_t""found" 1>&6
787 else
788 AUTOCONF="$missing_dir/missing autoconf"
789 echo "$ac_t""missing" 1>&6
790 fi
791
792 echo $ac_n "checking for working automake""... $ac_c" 1>&6
793 echo "configure:794: checking for working automake" >&5
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.
796 # Redirect stdin to placate older versions of autoconf. Sigh.
797 if (automake --version) < /dev/null > /dev/null 2>&1; then
798 AUTOMAKE=automake
799 echo "$ac_t""found" 1>&6
800 else
801 AUTOMAKE="$missing_dir/missing automake"
802 echo "$ac_t""missing" 1>&6
803 fi
804
805 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
806 echo "configure:807: checking for working autoheader" >&5
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.
809 # Redirect stdin to placate older versions of autoconf. Sigh.
810 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
811 AUTOHEADER=autoheader
812 echo "$ac_t""found" 1>&6
813 else
814 AUTOHEADER="$missing_dir/missing autoheader"
815 echo "$ac_t""missing" 1>&6
816 fi
817
818 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
819 echo "configure:820: checking for working makeinfo" >&5
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.
822 # Redirect stdin to placate older versions of autoconf. Sigh.
823 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
824 MAKEINFO=makeinfo
825 echo "$ac_t""found" 1>&6
826 else
827 MAKEINFO="$missing_dir/missing makeinfo"
828 echo "$ac_t""missing" 1>&6
829 fi
830
831 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
832 echo "configure:833: checking whether ${MAKE-make} sets \${MAKE}" >&5
833 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
834 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836 else
837 cat > conftestmake <<\EOF
838 all:
839 @echo 'ac_maketemp="${MAKE}"'
840 EOF
841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
842 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
843 if test -n "$ac_maketemp"; then
844 eval ac_cv_prog_make_${ac_make}_set=yes
845 else
846 eval ac_cv_prog_make_${ac_make}_set=no
847 fi
848 rm -f conftestmake
849 fi
850 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
851 echo "$ac_t""yes" 1>&6
852 SET_MAKE=
853 else
854 echo "$ac_t""no" 1>&6
855 SET_MAKE="MAKE=${MAKE-make}"
856 fi
857
858
859 # Extract the first word of "gcc", so it can be a program name with args.
860 set dummy gcc; ac_word=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865 else
866 if test -n "$CC"; then
867 ac_cv_prog_CC="$CC" # Let the user override the test.
868 else
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"
878 fi
879 fi
880 CC="$ac_cv_prog_CC"
881 if test -n "$CC"; then
882 echo "$ac_t""$CC" 1>&6
883 else
884 echo "$ac_t""no" 1>&6
885 fi
886
887 if test -z "$CC"; then
888 # Extract the first word of "cc", so it can be a program name with args.
889 set dummy cc; ac_word=$2
890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
891 echo "configure:892: checking for $ac_word" >&5
892 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
894 else
895 if test -n "$CC"; then
896 ac_cv_prog_CC="$CC" # Let the user override the test.
897 else
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"
912 if 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
925 fi
926 fi
927 fi
928 CC="$ac_cv_prog_CC"
929 if test -n "$CC"; then
930 echo "$ac_t""$CC" 1>&6
931 else
932 echo "$ac_t""no" 1>&6
933 fi
934
935 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
936 fi
937
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
940
941 ac_ext=c
942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943 ac_cpp='$CPP $CPPFLAGS'
944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946 cross_compiling=$ac_cv_prog_cc_cross
947
948 cat > conftest.$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
951 main(){return(0);}
952 EOF
953 if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
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
961 else
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 ac_cv_prog_cc_works=no
965 fi
966 rm -fr conftest*
967
968 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
969 if 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; }
971 fi
972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
974 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
975 cross_compiling=$ac_cv_prog_cc_cross
976
977 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
978 echo "configure:979: checking whether we are using GNU C" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
981 else
982 cat > conftest.c <<EOF
983 #ifdef __GNUC__
984 yes;
985 #endif
986 EOF
987 if { 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
988 ac_cv_prog_gcc=yes
989 else
990 ac_cv_prog_gcc=no
991 fi
992 fi
993
994 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
995
996 if test $ac_cv_prog_gcc = yes; then
997 GCC=yes
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
1002 echo "configure:1003: checking whether ${CC-cc} accepts -g" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1005 else
1006 echo 'void f(){}' > conftest.c
1007 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1008 ac_cv_prog_cc_g=yes
1009 else
1010 ac_cv_prog_cc_g=no
1011 fi
1012 rm -f conftest*
1013
1014 fi
1015
1016 echo "$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"
1023 fi
1024 else
1025 GCC=
1026 test "${CFLAGS+set}" = set || CFLAGS="-g"
1027 fi
1028
1029 # Extract the first word of "ranlib", so it can be a program name with args.
1030 set dummy ranlib; ac_word=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036 if test -n "$RANLIB"; then
1037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1038 else
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1040 for ac_dir in $PATH; do
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
1046 done
1047 IFS="$ac_save_ifs"
1048 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1049 fi
1050 fi
1051 RANLIB="$ac_cv_prog_RANLIB"
1052 if test -n "$RANLIB"; then
1053 echo "$ac_t""$RANLIB" 1>&6
1054 else
1055 echo "$ac_t""no" 1>&6
1056 fi
1057
1058 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1059 if test "${with_gnu_ld+set}" = set; then
1060 withval="$with_gnu_ld"
1061 test "$withval" = no || with_gnu_ld=yes
1062 else
1063 with_gnu_ld=no
1064 fi
1065
1066 if test "$with_gnu_ld" = yes; then
1067 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1068 echo "configure:1069: checking for GNU ld" >&5
1069 else
1070 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1071 echo "configure:1072: checking for non-GNU ld" >&5
1072 fi
1073 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 case "$LD" in
1077 /*)
1078 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1079 ;;
1080 *)
1081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1082 for ac_dir in $PATH; do
1083 test -z "$ac_dir" && ac_dir=.
1084 if test -f "$ac_dir/ld"; then
1085 ac_cv_path_LD="$ac_dir/ld"
1086 # Check to see if the program is GNU ld. I'd rather use --version,
1087 # but apparently some GNU ld's only accept -v.
1088 # Break only if it was the GNU/non-GNU ld that we prefer.
1089 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1090 test "$with_gnu_ld" = yes && break
1091 else
1092 test "$with_gnu_ld" != yes && break
1093 fi
1094 fi
1095 done
1096 IFS="$ac_save_ifs"
1097 ;;
1098 esac
1099 fi
1100
1101 LD="$ac_cv_path_LD"
1102 if test -n "$LD"; then
1103 echo "$ac_t""$LD" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1106 fi
1107 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1108
1109 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether we are using GNU ld" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1113 else
1114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1115 if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1116 ac_cv_prog_gnu_ld=yes
1117 else
1118 ac_cv_prog_gnu_ld=no
1119 fi
1120 fi
1121
1122 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1123
1124
1125 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1126 echo "configure:1127: checking whether ln -s works" >&5
1127 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1129 else
1130 rm -f conftestdata
1131 if ln -s X conftestdata 2>/dev/null
1132 then
1133 rm -f conftestdata
1134 ac_cv_prog_LN_S="ln -s"
1135 else
1136 ac_cv_prog_LN_S=ln
1137 fi
1138 fi
1139 LN_S="$ac_cv_prog_LN_S"
1140 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1141 echo "$ac_t""yes" 1>&6
1142 else
1143 echo "$ac_t""no" 1>&6
1144 fi
1145
1146
1147
1148
1149
1150
1151
1152 # Always use our own libtool.
1153 LIBTOOL='$(top_builddir)/libtool'
1154
1155
1156 # Check whether --enable-shared or --disable-shared was given.
1157 if test "${enable_shared+set}" = set; then
1158 enableval="$enable_shared"
1159 if test "$enableval" = no; then
1160 enable_shared=no
1161 else
1162 enable_shared=yes
1163 fi
1164 fi
1165
1166 libtool_shared=
1167 test "$enable_shared" = no && libtool_shared=" --disable-shared"
1168
1169 # Check whether --enable-static or --disable-static was given.
1170 if test "${enable_static+set}" = set; then
1171 enableval="$enable_static"
1172 if test "$enableval" = no; then
1173 enable_static=no
1174 else
1175 enable_static=yes
1176 fi
1177 fi
1178
1179 libtool_static=
1180 test "$enable_static" = no && libtool_static=" --disable-static"
1181
1182 libtool_flags="$libtool_shared$libtool_static"
1183 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1184 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1185 test "$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.
1189 case "$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 ;;
1206 esac
1207
1208 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1209 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1210 LD="$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.
1221 set dummy gcc; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 if test -n "$CC"; then
1228 ac_cv_prog_CC="$CC" # Let the user override the test.
1229 else
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"
1239 fi
1240 fi
1241 CC="$ac_cv_prog_CC"
1242 if test -n "$CC"; then
1243 echo "$ac_t""$CC" 1>&6
1244 else
1245 echo "$ac_t""no" 1>&6
1246 fi
1247
1248 if test -z "$CC"; then
1249 # Extract the first word of "cc", so it can be a program name with args.
1250 set dummy cc; ac_word=$2
1251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1252 echo "configure:1253: checking for $ac_word" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 if test -n "$CC"; then
1257 ac_cv_prog_CC="$CC" # Let the user override the test.
1258 else
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"
1273 if 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
1286 fi
1287 fi
1288 fi
1289 CC="$ac_cv_prog_CC"
1290 if test -n "$CC"; then
1291 echo "$ac_t""$CC" 1>&6
1292 else
1293 echo "$ac_t""no" 1>&6
1294 fi
1295
1296 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1297 fi
1298
1299 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1301
1302 ac_ext=c
1303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1306 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1307 cross_compiling=$ac_cv_prog_cc_cross
1308
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 main(){return(0);}
1313 EOF
1314 if { (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
1319 else
1320 ac_cv_prog_cc_cross=yes
1321 fi
1322 else
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1325 ac_cv_prog_cc_works=no
1326 fi
1327 rm -fr conftest*
1328
1329 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1330 if 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; }
1332 fi
1333 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1334 echo "configure:1335: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1335 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1336 cross_compiling=$ac_cv_prog_cc_cross
1337
1338 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1339 echo "configure:1340: checking whether we are using GNU C" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343 cat > conftest.c <<EOF
1344 #ifdef __GNUC__
1345 yes;
1346 #endif
1347 EOF
1348 if { 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
1350 else
1351 ac_cv_prog_gcc=no
1352 fi
1353 fi
1354
1355 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1356
1357 if 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
1363 echo "configure:1364: checking whether ${CC-cc} accepts -g" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1366 else
1367 echo 'void f(){}' > conftest.c
1368 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1369 ac_cv_prog_cc_g=yes
1370 else
1371 ac_cv_prog_cc_g=no
1372 fi
1373 rm -f conftest*
1374
1375 fi
1376
1377 echo "$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
1385 else
1386 GCC=
1387 test "${CFLAGS+set}" = set || CFLAGS="-g"
1388 fi
1389
1390
1391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1392
1393
1394 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1395 echo "configure:1396: checking for POSIXized ISC" >&5
1396 if test -d /etc/conf/kconfig.d &&
1397 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1398 then
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
1403 EOF
1404
1405 if test "$GCC" = yes; then
1406 CC="$CC -posix"
1407 else
1408 CC="$CC -Xp"
1409 fi
1410 else
1411 echo "$ac_t""no" 1>&6
1412 ISC=
1413 fi
1414
1415
1416 case "${target}" in
1417 alpha-*-*) MY_TARGET=alpha ;;
1418 i[3456]86-*-*) MY_TARGET=i386 ;;
1419 sparc-*-*) MY_TARGET=sparc ;;
1420 tahoe-*-*) MY_TARGET=tahoe ;;
1421 vax-*-*) MY_TARGET=vax ;;
1422 ns32k-*-*) MY_TARGET=ns532;;
1423 *-*-*) MY_TARGET=dummy ;;
1424 esac
1425
1426
1427
1428 case "${target}" in
1429 *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1430 cat >> confdefs.h <<\EOF
1431 #define BSD44_FORMAT 1
1432 EOF
1433
1434 ;;
1435 esac
1436
1437 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether to enable maintainer-specific portions of Makefiles" >&5
1439 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1440 if test "${enable_maintainer_mode+set}" = set; then
1441 enableval="$enable_maintainer_mode"
1442 USE_MAINTAINER_MODE=$enableval
1443 else
1444 USE_MAINTAINER_MODE=no
1445 fi
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
1455 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1456 echo "configure:1457: checking for Cygwin32 environment" >&5
1457 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463
1464 int main() {
1465 int main () { return __CYGWIN32__; }
1466 ; return 0; }
1467 EOF
1468 if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1469 rm -rf conftest*
1470 am_cv_cygwin32=yes
1471 else
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1474 rm -rf conftest*
1475 am_cv_cygwin32=no
1476 fi
1477 rm -f conftest*
1478 rm -f conftest*
1479 fi
1480
1481 echo "$ac_t""$am_cv_cygwin32" 1>&6
1482 CYGWIN32=
1483 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1484
1485 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1486 echo "configure:1487: checking for executable suffix" >&5
1487 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1489 else
1490 if test "$CYGWIN32" = yes; then
1491 am_cv_exeext=.exe
1492 else
1493 cat > am_c_test.c << 'EOF'
1494 int main() {
1495 /* Nothing needed here */
1496 }
1497 EOF
1498 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1499 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1500 rm -f am_c_test*
1501 fi
1502
1503 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1504 fi
1505 EXEEXT=""
1506 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1507 echo "$ac_t""${am_cv_exeext}" 1>&6
1508
1509
1510 trap '' 1 2 15
1511 cat > 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 #
1526 EOF
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.
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 |
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
1546 if cmp -s $cache_file confcache; then
1547 :
1548 else
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
1555 fi
1556 rm -f confcache
1557
1558 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1559
1560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1561 # Let make expand exec_prefix.
1562 test "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.
1567 if test "x$srcdir" = x.; then
1568 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1569 fi
1570
1571 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1572
1573 DEFS=-DHAVE_CONFIG_H
1574
1575 # Without the "./", some shells look in PATH for config.status.
1576 : ${CONFIG_STATUS=./config.status}
1577
1578 echo creating $CONFIG_STATUS
1579 rm -f $CONFIG_STATUS
1580 cat > $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
1592 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1593 for ac_option
1594 do
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)
1600 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
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
1606 done
1607
1608 ac_given_srcdir=$srcdir
1609 ac_given_INSTALL="$INSTALL"
1610
1611 trap 'rm -fr `echo "Makefile gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1612 EOF
1613 cat >> $CONFIG_STATUS <<EOF
1614
1615 # Protect against being on the right side of a sed subst in config.status.
1616 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1617 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1618 $ac_vpsub
1619 $extrasub
1620 s%@CFLAGS@%$CFLAGS%g
1621 s%@CPPFLAGS@%$CPPFLAGS%g
1622 s%@CXXFLAGS@%$CXXFLAGS%g
1623 s%@DEFS@%$DEFS%g
1624 s%@LDFLAGS@%$LDFLAGS%g
1625 s%@LIBS@%$LIBS%g
1626 s%@exec_prefix@%$exec_prefix%g
1627 s%@prefix@%$prefix%g
1628 s%@program_transform_name@%$program_transform_name%g
1629 s%@bindir@%$bindir%g
1630 s%@sbindir@%$sbindir%g
1631 s%@libexecdir@%$libexecdir%g
1632 s%@datadir@%$datadir%g
1633 s%@sysconfdir@%$sysconfdir%g
1634 s%@sharedstatedir@%$sharedstatedir%g
1635 s%@localstatedir@%$localstatedir%g
1636 s%@libdir@%$libdir%g
1637 s%@includedir@%$includedir%g
1638 s%@oldincludedir@%$oldincludedir%g
1639 s%@infodir@%$infodir%g
1640 s%@mandir@%$mandir%g
1641 s%@host@%$host%g
1642 s%@host_alias@%$host_alias%g
1643 s%@host_cpu@%$host_cpu%g
1644 s%@host_vendor@%$host_vendor%g
1645 s%@host_os@%$host_os%g
1646 s%@target@%$target%g
1647 s%@target_alias@%$target_alias%g
1648 s%@target_cpu@%$target_cpu%g
1649 s%@target_vendor@%$target_vendor%g
1650 s%@target_os@%$target_os%g
1651 s%@build@%$build%g
1652 s%@build_alias@%$build_alias%g
1653 s%@build_cpu@%$build_cpu%g
1654 s%@build_vendor@%$build_vendor%g
1655 s%@build_os@%$build_os%g
1656 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1657 s%@INSTALL_DATA@%$INSTALL_DATA%g
1658 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1659 s%@PACKAGE@%$PACKAGE%g
1660 s%@VERSION@%$VERSION%g
1661 s%@ACLOCAL@%$ACLOCAL%g
1662 s%@AUTOCONF@%$AUTOCONF%g
1663 s%@AUTOMAKE@%$AUTOMAKE%g
1664 s%@AUTOHEADER@%$AUTOHEADER%g
1665 s%@MAKEINFO@%$MAKEINFO%g
1666 s%@SET_MAKE@%$SET_MAKE%g
1667 s%@CC@%$CC%g
1668 s%@RANLIB@%$RANLIB%g
1669 s%@LD@%$LD%g
1670 s%@LN_S@%$LN_S%g
1671 s%@LIBTOOL@%$LIBTOOL%g
1672 s%@MY_TARGET@%$MY_TARGET%g
1673 s%@MAINT@%$MAINT%g
1674 s%@EXEEXT@%$EXEEXT%g
1675
1676 CEOF
1677 EOF
1678
1679 cat >> $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.
1683 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1684 ac_file=1 # Number of current file.
1685 ac_beg=1 # First line for current file.
1686 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1687 ac_more_lines=:
1688 ac_sed_cmds=""
1689 while $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
1708 done
1709 if test -z "$ac_sed_cmds"; then
1710 ac_sed_cmds=cat
1711 fi
1712 EOF
1713
1714 cat >> $CONFIG_STATUS <<EOF
1715
1716 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1717 EOF
1718 cat >> $CONFIG_STATUS <<\EOF
1719 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1721 case "$ac_file" in
1722 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1723 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1724 *) ac_file_in="${ac_file}.in" ;;
1725 esac
1726
1727 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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
1751 case "$ac_given_INSTALL" in
1752 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1753 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1754 esac
1755
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
1764
1765 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1766 sed -e "$ac_comsub
1767 s%@configure_input@%$configure_input%g
1768 s%@srcdir@%$srcdir%g
1769 s%@top_srcdir@%$top_srcdir%g
1770 s%@INSTALL@%$INSTALL%g
1771 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1772 fi; done
1773 rm -f conftest.s*
1774
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.
1779 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1780 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1781 ac_dC='\3'
1782 ac_dD='%g'
1783 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1784 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1785 ac_uB='\([ ]\)%\1#\2define\3'
1786 ac_uC=' '
1787 ac_uD='\4%g'
1788 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1789 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1790 ac_eB='$%\1#\2define\3'
1791 ac_eC=' '
1792 ac_eD='%g'
1793
1794 if test "${CONFIG_HEADERS+set}" != set; then
1795 EOF
1796 cat >> $CONFIG_STATUS <<EOF
1797 CONFIG_HEADERS="gconfig.h:gconfig.in"
1798 EOF
1799 cat >> $CONFIG_STATUS <<\EOF
1800 fi
1801 for 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
1815 EOF
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.
1821 rm -f conftest.vals
1822 cat > conftest.hdr <<\EOF
1823 s/[\\&%]/\\&/g
1824 s%[\\$`]%\\&%g
1825 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1826 s%ac_d%ac_u%gp
1827 s%ac_u%ac_e%gp
1828 EOF
1829 sed -n -f conftest.hdr confdefs.h > conftest.vals
1830 rm -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.
1835 cat >> conftest.vals <<\EOF
1836 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1837 EOF
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
1842 rm -f conftest.tail
1843 while :
1844 do
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
1859 done
1860 rm -f conftest.vals
1861
1862 cat >> $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
1880 fi; done
1881
1882 EOF
1883 cat >> $CONFIG_STATUS <<EOF
1884
1885
1886 EOF
1887 cat >> $CONFIG_STATUS <<\EOF
1888 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
1889
1890 exit 0
1891 EOF
1892 chmod +x $CONFIG_STATUS
1893 rm -fr confdefs* $ac_clean_files
1894 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1895
This page took 0.075397 seconds and 4 git commands to generate.