OSDN Git Service

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