source: trunk/src/binutils/configure@ 915

Last change on this file since 915 was 729, checked in by zap, 22 years ago

.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 139.0 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --disable-serial-[{host,target,build}-]configure
16 Don't force sequential configuration of
17 sub-packages for the host, target or build
18 machine, or of any sub-packages at all"
19ac_help="$ac_help
20 --enable-maintainer-mode enable make rules and dependencies not useful
21 (and sometimes confusing) to the casual installer"
22
23# Initialize some variables set by options.
24# The variables have the same names as the options, with
25# dashes changed to underlines.
26build=NONE
27cache_file=./config.cache
28exec_prefix=NONE
29host=NONE
30no_create=
31nonopt=NONE
32no_recursion=
33prefix=NONE
34program_prefix=NONE
35program_suffix=NONE
36program_transform_name=s,x,x,
37silent=
38site=
39srcdir=
40target=NONE
41verbose=
42x_includes=NONE
43x_libraries=NONE
44bindir='${exec_prefix}/bin'
45sbindir='${exec_prefix}/sbin'
46libexecdir='${exec_prefix}/libexec'
47datadir='${prefix}/share'
48sysconfdir='${prefix}/etc'
49sharedstatedir='${prefix}/com'
50localstatedir='${prefix}/var'
51libdir='${exec_prefix}/lib'
52includedir='${prefix}/include'
53oldincludedir='/usr/include'
54infodir='${prefix}/info'
55mandir='${prefix}/man'
56
57# Initialize some other variables.
58subdirs=
59MFLAGS= MAKEFLAGS=
60SHELL=${CONFIG_SHELL-/bin/sh}
61# Maximum number of lines to put in a shell here document.
62ac_max_here_lines=12
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
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
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]
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
178EOF
179 cat << EOF
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
191EOF
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.13"
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
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.
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.
450if test "${LANG+set}" = set; then LANG=C; export LANG; fi
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
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=move-if-change
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.
512ac_cpp='$CPP $CPPFLAGS'
513ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515cross_compiling=$ac_cv_prog_cc_cross
516
517ac_exeext=
518ac_objext=o
519if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='
523' ac_t=' '
524 else
525 ac_n=-n ac_c= ac_t=
526 fi
527else
528 ac_n= ac_c='\c' ac_t=
529fi
530
531echo $ac_n "checking for path separator""... $ac_c" 1>&6
532echo "configure:533: checking for path separator" >&5
533# Filter path to get backslahes into forwardslashes
534case "`uname -s 2> /dev/null`" in
535OS/2)
536 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
537 PATH_IFS=';'
538 ;;
539*)
540 PATH_IFS=':'
541 ;;
542esac
543echo "$ac_t""${PATH_IFS}" 1>&6
544
545echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
546echo "configure:547: checking for Cygwin environment" >&5
547if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
548 echo $ac_n "(cached) $ac_c" 1>&6
549else
550 cat > conftest.$ac_ext <<EOF
551#line 552 "configure"
552#include "confdefs.h"
553
554int main() {
555
556#ifndef __CYGWIN__
557#define __CYGWIN__ __CYGWIN32__
558#endif
559return __CYGWIN__;
560; return 0; }
561EOF
562if { (eval echo configure:563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
563 rm -rf conftest*
564 ac_cv_cygwin=yes
565else
566 echo "configure: failed program was:" >&5
567 cat conftest.$ac_ext >&5
568 rm -rf conftest*
569 ac_cv_cygwin=no
570fi
571rm -f conftest*
572rm -f conftest*
573fi
574
575echo "$ac_t""$ac_cv_cygwin" 1>&6
576CYGWIN=
577test "$ac_cv_cygwin" = yes && CYGWIN=yes
578echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
579echo "configure:580: checking for mingw32 environment" >&5
580if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
582else
583 cat > conftest.$ac_ext <<EOF
584#line 585 "configure"
585#include "confdefs.h"
586
587int main() {
588return __MINGW32__;
589; return 0; }
590EOF
591if { (eval echo configure:592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
592 rm -rf conftest*
593 ac_cv_mingw32=yes
594else
595 echo "configure: failed program was:" >&5
596 cat conftest.$ac_ext >&5
597 rm -rf conftest*
598 ac_cv_mingw32=no
599fi
600rm -f conftest*
601rm -f conftest*
602fi
603
604echo "$ac_t""$ac_cv_mingw32" 1>&6
605MINGW32=
606test "$ac_cv_mingw32" = yes && MINGW32=yes
607echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
608echo "configure:609: checking for EMX/OS2 environment" >&5
609if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
611else
612 : ${CC=gcc.exe}
613cat > conftest.$ac_ext <<EOF
614#line 615 "configure"
615#include "confdefs.h"
616
617int main() {
618return __EMX__;
619; return 0; }
620EOF
621if { (eval echo configure:622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
622 rm -rf conftest*
623 ac_cv_emxos2=yes
624else
625 echo "configure: failed program was:" >&5
626 cat conftest.$ac_ext >&5
627 rm -rf conftest*
628 ac_cv_emxos2=no
629fi
630rm -f conftest*
631rm -f conftest*
632fi
633
634echo "$ac_t""$ac_cv_emxos2" 1>&6
635if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
637else
638 if test "$ac_cv_emxos2" = yes ; then
639 ac_cv_libpre=
640else
641 ac_cv_libpre=lib
642fi
643
644fi
645
646EMXOS2=
647test "$ac_cv_emxos2" = yes && EMXOS2=yes
648
649
650
651echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
652echo "configure:653: checking for executable suffix" >&5
653if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
655else
656 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
657 ac_cv_exeext=.exe
658else
659 rm -f conftest*
660 echo 'int main () { return 0; }' > conftest.$ac_ext
661 ac_cv_exeext=
662 if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
663 for file in conftest.*; do
664 case $file in
665 *.c | *.o | *.obj) ;;
666 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
667 esac
668 done
669 else
670 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
671 fi
672 rm -f conftest*
673 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
674fi
675fi
676
677EXEEXT=""
678test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
679echo "$ac_t""${ac_cv_exeext}" 1>&6
680ac_exeext=$EXEEXT
681
682
683
684ac_aux_dir=
685for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
686 if test -f $ac_dir/install-sh; then
687 ac_aux_dir=$ac_dir
688 ac_install_sh="$ac_aux_dir/install-sh -c"
689 break
690 elif test -f $ac_dir/install.sh; then
691 ac_aux_dir=$ac_dir
692 ac_install_sh="$ac_aux_dir/install.sh -c"
693 break
694 fi
695done
696if test -z "$ac_aux_dir"; then
697 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
698fi
699ac_config_guess=$ac_aux_dir/config.guess
700ac_config_sub=$ac_aux_dir/config.sub
701ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
702
703
704# Do some error checking and defaulting for the host and target type.
705# The inputs are:
706# configure --host=HOST --target=TARGET --build=BUILD NONOPT
707#
708# The rules are:
709# 1. You are not allowed to specify --host, --target, and nonopt at the
710# same time.
711# 2. Host defaults to nonopt.
712# 3. If nonopt is not specified, then host defaults to the current host,
713# as determined by config.guess.
714# 4. Target and build default to nonopt.
715# 5. If nonopt is not specified, then target and build default to host.
716
717# The aliases save the names the user supplied, while $host etc.
718# will get canonicalized.
719case $host---$target---$nonopt in
720NONE---*---* | *---NONE---* | *---*---NONE) ;;
721*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
722esac
723
724
725# Make sure we can run config.sub.
726if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
727else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
728fi
729
730echo $ac_n "checking host system type""... $ac_c" 1>&6
731echo "configure:732: checking host system type" >&5
732
733host_alias=$host
734case "$host_alias" in
735NONE)
736 case $nonopt in
737 NONE)
738 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
739 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
740 fi ;;
741 *) host_alias=$nonopt ;;
742 esac ;;
743esac
744
745host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
746host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749echo "$ac_t""$host" 1>&6
750
751echo $ac_n "checking target system type""... $ac_c" 1>&6
752echo "configure:753: checking target system type" >&5
753
754target_alias=$target
755case "$target_alias" in
756NONE)
757 case $nonopt in
758 NONE) target_alias=$host_alias ;;
759 *) target_alias=$nonopt ;;
760 esac ;;
761esac
762
763target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
764target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767echo "$ac_t""$target" 1>&6
768
769echo $ac_n "checking build system type""... $ac_c" 1>&6
770echo "configure:771: checking build system type" >&5
771
772build_alias=$build
773case "$build_alias" in
774NONE)
775 case $nonopt in
776 NONE) build_alias=$host_alias ;;
777 *) build_alias=$nonopt ;;
778 esac ;;
779esac
780
781build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
782build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
783build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
784build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
785echo "$ac_t""$build" 1>&6
786
787test "$host_alias" != "$target_alias" &&
788 test "$program_prefix$program_suffix$program_transform_name" = \
789 NONENONEs,x,x, &&
790 program_prefix=${target_alias}-
791
792if test "$program_transform_name" = s,x,x,; then
793 program_transform_name=
794else
795 # Double any \ or $. echo might interpret backslashes.
796 cat <<\EOF_SED > conftestsed
797s,\\,\\\\,g; s,\$,$$,g
798EOF_SED
799 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
800 rm -f conftestsed
801fi
802test "$program_prefix" != NONE &&
803 program_transform_name="s,^,${program_prefix},; $program_transform_name"
804# Use a double $ so make ignores it.
805test "$program_suffix" != NONE &&
806 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
807
808# sed with no file args requires a program.
809test "$program_transform_name" = "" && program_transform_name="s,x,x,"
810
811
812# Autoconf M4 include file defining utility macros for complex Canadian
813# cross builds.
814
815####
816# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
817# or AC_INIT.
818# These demand that AC_CANONICAL_SYSTEM be called beforehand.
819
820####
821# NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
822# Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
823# Code is pretty much lifted from autoconf2.53.
824
825
826
827####
828# NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
829# Like AC_CHECK_TOOL, but requires the prefix if build!=host.
830
831
832
833####
834# NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
835# Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
836
837
838
839### we might need to use some other shell than /bin/sh for running subshells
840### If we are on Windows, search for the shell. This will permit people
841### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
842### without also having to set CONFIG_SHELL. This code will work when
843### using bash, which sets OSTYPE.
844case "${OSTYPE}" in
845*win32*)
846 if test x${CONFIG_SHELL} = x ; then
847 if test ! -f /bin/sh ; then
848 if test x${SHELL} != x && test -f ${SHELL} ; then
849 CONFIG_SHELL=${SHELL}