source: Sophya/trunk/ArchTOIPipe/configure@ 1745

Last change on this file since 1745 was 1745, checked in by aubourg, 24 years ago

install target

  • Property svn:executable set to *
File size: 64.7 KB
RevLine 
[1407]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 --with-sophya Compile and link with SOPHYA"
16
17# Initialize some variables set by options.
18# The variables have the same names as the options, with
19# dashes changed to underlines.
20build=NONE
21cache_file=./config.cache
22exec_prefix=NONE
23host=NONE
24no_create=
25nonopt=NONE
26no_recursion=
27prefix=NONE
28program_prefix=NONE
29program_suffix=NONE
30program_transform_name=s,x,x,
31silent=
32site=
33srcdir=
34target=NONE
35verbose=
36x_includes=NONE
37x_libraries=NONE
38bindir='${exec_prefix}/bin'
39sbindir='${exec_prefix}/sbin'
40libexecdir='${exec_prefix}/libexec'
41datadir='${prefix}/share'
42sysconfdir='${prefix}/etc'
43sharedstatedir='${prefix}/com'
44localstatedir='${prefix}/var'
45libdir='${exec_prefix}/lib'
46includedir='${prefix}/include'
47oldincludedir='/usr/include'
48infodir='${prefix}/info'
49mandir='${prefix}/man'
50
51# Initialize some other variables.
52subdirs=
53MFLAGS= MAKEFLAGS=
54SHELL=${CONFIG_SHELL-/bin/sh}
55# Maximum number of lines to put in a shell here document.
56ac_max_here_lines=12
57
58ac_prev=
59for ac_option
60do
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
140Usage: configure [options] [host]
141Options: [defaults in brackets after descriptions]
142Configuration:
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
148Directory 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
172EOF
173 cat << EOF
174Host 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]
178Features 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
185EOF
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
395done
396
397if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399fi
400
401trap '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
411if test "$silent" = yes; then
412 exec 6>/dev/null
413else
414 exec 6>&1
415fi
416exec 5>./config.log
417
418echo "\
419This file contains any messages produced by compilers while
420running 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.
425ac_configure_args=
426for ac_arg
427do
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
437done
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.
444if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447if 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.
450rm -rf conftest* confdefs.h
451# AIX cpp loses on an empty file, so make sure it contains at least a newline.
452echo > 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.
[1477]456ac_unique_file=kernel/toi.cc
[1407]457
458# Find the source files, if location was not specified.
459if 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
469else
470 ac_srcdir_defaulted=no
471fi
472if 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
478fi
479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481# Prefer explicitly selected file to automatically selected ones.
482if 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
488fi
489for 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
494done
495
496if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
498 . $cache_file
499else
500 echo "creating cache $cache_file"
501 > $cache_file
502fi
503
504ac_ext=c
505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506ac_cpp='$CPP $CPPFLAGS'
507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509cross_compiling=$ac_cv_prog_cc_cross
510
511ac_exeext=
512ac_objext=o
513if (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
521else
522 ac_n= ac_c='\c' ac_t=
523fi
524
525
526
527
528# Check whether --with-sophya or --without-sophya was given.
529if test "${with_sophya+set}" = set; then
530 withval="$with_sophya"
531 use_sophya=1
532else
533 use_sophya=0
534fi
535
536
537
538
539if test `uname` = OSF1 -a -z "$CXX"; then
540 if test -x /usr/bin/cxx; then
541 echo "using cxx on alpha"
542 CXX=cxx
543 export CXX
544 fi
545fi
546
[1732]547if test `uname` = Linux -a -f /usr/bin/g++; then
[1745]548 CXX=/usr/bin/g++
[1732]549fi
550
[1477]551# Extract the first word of "gcc", so it can be a program name with args.
552set dummy gcc; ac_word=$2
553echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]554echo "configure:555: checking for $ac_word" >&5
[1477]555if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
556 echo $ac_n "(cached) $ac_c" 1>&6
557else
558 if test -n "$CC"; then
559 ac_cv_prog_CC="$CC" # Let the user override the test.
560else
561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
562 ac_dummy="$PATH"
563 for ac_dir in $ac_dummy; do
564 test -z "$ac_dir" && ac_dir=.
565 if test -f $ac_dir/$ac_word; then
566 ac_cv_prog_CC="gcc"
567 break
568 fi
569 done
570 IFS="$ac_save_ifs"
571fi
572fi
573CC="$ac_cv_prog_CC"
574if test -n "$CC"; then
575 echo "$ac_t""$CC" 1>&6
576else
577 echo "$ac_t""no" 1>&6
578fi
579
580if test -z "$CC"; then
581 # Extract the first word of "cc", so it can be a program name with args.
582set dummy cc; ac_word=$2
583echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]584echo "configure:585: checking for $ac_word" >&5
[1477]585if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
587else
588 if test -n "$CC"; then
589 ac_cv_prog_CC="$CC" # Let the user override the test.
590else
591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
592 ac_prog_rejected=no
593 ac_dummy="$PATH"
594 for ac_dir in $ac_dummy; do
595 test -z "$ac_dir" && ac_dir=.
596 if test -f $ac_dir/$ac_word; then
597 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
598 ac_prog_rejected=yes
599 continue
600 fi
601 ac_cv_prog_CC="cc"
602 break
603 fi
604 done
605 IFS="$ac_save_ifs"
606if test $ac_prog_rejected = yes; then
607 # We found a bogon in the path, so make sure we never use it.
608 set dummy $ac_cv_prog_CC
609 shift
610 if test $# -gt 0; then
611 # We chose a different compiler from the bogus one.
612 # However, it has the same basename, so the bogon will be chosen
613 # first if we set CC to just the basename; use the full file name.
614 shift
615 set dummy "$ac_dir/$ac_word" "$@"
616 shift
617 ac_cv_prog_CC="$@"
618 fi
619fi
620fi
621fi
622CC="$ac_cv_prog_CC"
623if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
625else
626 echo "$ac_t""no" 1>&6
627fi
628
629 if test -z "$CC"; then
630 case "`uname -s`" in
631 *win32* | *WIN32*)
632 # Extract the first word of "cl", so it can be a program name with args.
633set dummy cl; ac_word=$2
634echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]635echo "configure:636: checking for $ac_word" >&5
[1477]636if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
638else
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
641else
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
643 ac_dummy="$PATH"
644 for ac_dir in $ac_dummy; do
645 test -z "$ac_dir" && ac_dir=.
646 if test -f $ac_dir/$ac_word; then
647 ac_cv_prog_CC="cl"
648 break
649 fi
650 done
651 IFS="$ac_save_ifs"
652fi
653fi
654CC="$ac_cv_prog_CC"
655if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
657else
658 echo "$ac_t""no" 1>&6
659fi
660 ;;
661 esac
662 fi
663 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
664fi
665
666echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
[1732]667echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
[1477]668
669ac_ext=c
670# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
671ac_cpp='$CPP $CPPFLAGS'
672ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
673ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
674cross_compiling=$ac_cv_prog_cc_cross
675
676cat > conftest.$ac_ext << EOF
677
[1732]678#line 679 "configure"
[1477]679#include "confdefs.h"
680
681main(){return(0);}
682EOF
[1732]683if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1477]684 ac_cv_prog_cc_works=yes
685 # If we can't run a trivial program, we are probably using a cross compiler.
686 if (./conftest; exit) 2>/dev/null; then
687 ac_cv_prog_cc_cross=no
688 else
689 ac_cv_prog_cc_cross=yes
690 fi
691else
692 echo "configure: failed program was:" >&5
693 cat conftest.$ac_ext >&5
694 ac_cv_prog_cc_works=no
695fi
696rm -fr conftest*
697ac_ext=c
698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
699ac_cpp='$CPP $CPPFLAGS'
700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
701ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
702cross_compiling=$ac_cv_prog_cc_cross
703
704echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
705if test $ac_cv_prog_cc_works = no; then
706 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
707fi
708echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
[1732]709echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
[1477]710echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
711cross_compiling=$ac_cv_prog_cc_cross
712
713echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
[1732]714echo "configure:715: checking whether we are using GNU C" >&5
[1477]715if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
717else
718 cat > conftest.c <<EOF
719#ifdef __GNUC__
720 yes;
721#endif
722EOF
[1732]723if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
[1477]724 ac_cv_prog_gcc=yes
725else
726 ac_cv_prog_gcc=no
727fi
728fi
729
730echo "$ac_t""$ac_cv_prog_gcc" 1>&6
731
732if test $ac_cv_prog_gcc = yes; then
733 GCC=yes
734else
735 GCC=
736fi
737
738ac_test_CFLAGS="${CFLAGS+set}"
739ac_save_CFLAGS="$CFLAGS"
740CFLAGS=
741echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
[1732]742echo "configure:743: checking whether ${CC-cc} accepts -g" >&5
[1477]743if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
745else
746 echo 'void f(){}' > conftest.c
747if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
748 ac_cv_prog_cc_g=yes
749else
750 ac_cv_prog_cc_g=no
751fi
752rm -f conftest*
753
754fi
755
756echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
757if test "$ac_test_CFLAGS" = set; then
758 CFLAGS="$ac_save_CFLAGS"
759elif test $ac_cv_prog_cc_g = yes; then
760 if test "$GCC" = yes; then
761 CFLAGS="-g -O2"
762 else
763 CFLAGS="-g"
764 fi
765else
766 if test "$GCC" = yes; then
767 CFLAGS="-O2"
768 else
769 CFLAGS=
770 fi
771fi
772
[1407]773for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
774do
775# Extract the first word of "$ac_prog", so it can be a program name with args.
776set dummy $ac_prog; ac_word=$2
777echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]778echo "configure:779: checking for $ac_word" >&5
[1407]779if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781else
782 if test -n "$CXX"; then
783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
784else
785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
786 ac_dummy="$PATH"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 ac_cv_prog_CXX="$ac_prog"
791 break
792 fi
793 done
794 IFS="$ac_save_ifs"
795fi
796fi
797CXX="$ac_cv_prog_CXX"
798if test -n "$CXX"; then
799 echo "$ac_t""$CXX" 1>&6
800else
801 echo "$ac_t""no" 1>&6
802fi
803
804test -n "$CXX" && break
805done
806test -n "$CXX" || CXX="gcc"
807
808
809echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
[1732]810echo "configure:811: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
[1407]811
812ac_ext=C
813# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814ac_cpp='$CXXCPP $CPPFLAGS'
815ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817cross_compiling=$ac_cv_prog_cxx_cross
818
819cat > conftest.$ac_ext << EOF
820
[1732]821#line 822 "configure"
[1407]822#include "confdefs.h"
823
824int main(){return(0);}
825EOF
[1732]826if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1407]827 ac_cv_prog_cxx_works=yes
828 # If we can't run a trivial program, we are probably using a cross compiler.
829 if (./conftest; exit) 2>/dev/null; then
830 ac_cv_prog_cxx_cross=no
831 else
832 ac_cv_prog_cxx_cross=yes
833 fi
834else
835 echo "configure: failed program was:" >&5
836 cat conftest.$ac_ext >&5
837 ac_cv_prog_cxx_works=no
838fi
839rm -fr conftest*
840ac_ext=c
841# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842ac_cpp='$CPP $CPPFLAGS'
843ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845cross_compiling=$ac_cv_prog_cc_cross
846
847echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
848if test $ac_cv_prog_cxx_works = no; then
849 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
850fi
851echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
[1732]852echo "configure:853: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
[1407]853echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
854cross_compiling=$ac_cv_prog_cxx_cross
855
856echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
[1732]857echo "configure:858: checking whether we are using GNU C++" >&5
[1407]858if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860else
861 cat > conftest.C <<EOF
862#ifdef __GNUC__
863 yes;
864#endif
865EOF
[1732]866if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
[1407]867 ac_cv_prog_gxx=yes
868else
869 ac_cv_prog_gxx=no
870fi
871fi
872
873echo "$ac_t""$ac_cv_prog_gxx" 1>&6
874
875if test $ac_cv_prog_gxx = yes; then
876 GXX=yes
877else
878 GXX=
879fi
880
881ac_test_CXXFLAGS="${CXXFLAGS+set}"
882ac_save_CXXFLAGS="$CXXFLAGS"
883CXXFLAGS=
884echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
[1732]885echo "configure:886: checking whether ${CXX-g++} accepts -g" >&5
[1407]886if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
888else
889 echo 'void f(){}' > conftest.cc
890if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
891 ac_cv_prog_cxx_g=yes
892else
893 ac_cv_prog_cxx_g=no
894fi
895rm -f conftest*
896
897fi
898
899echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
900if test "$ac_test_CXXFLAGS" = set; then
901 CXXFLAGS="$ac_save_CXXFLAGS"
902elif test $ac_cv_prog_cxx_g = yes; then
903 if test "$GXX" = yes; then
904 CXXFLAGS="-g -O2"
905 else
906 CXXFLAGS="-g"
907 fi
908else
909 if test "$GXX" = yes; then
910 CXXFLAGS="-O2"
911 else
912 CXXFLAGS=
913 fi
914fi
915
[1706]916# Extract the first word of "ar", so it can be a program name with args.
917set dummy ar; ac_word=$2
918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]919echo "configure:920: checking for $ac_word" >&5
[1706]920if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
922else
923 case "$AR" in
924 /*)
925 ac_cv_path_AR="$AR" # Let the user override the test with a path.
926 ;;
927 ?:/*)
928 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
929 ;;
930 *)
931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
932 ac_dummy="/usr/bin:$PATH"
933 for ac_dir in $ac_dummy; do
934 test -z "$ac_dir" && ac_dir=.
935 if test -f $ac_dir/$ac_word; then
936 ac_cv_path_AR="$ac_dir/$ac_word"
937 break
938 fi
939 done
940 IFS="$ac_save_ifs"
941 test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
942 ;;
943esac
944fi
945AR="$ac_cv_path_AR"
946if test -n "$AR"; then
947 echo "$ac_t""$AR" 1>&6
948else
949 echo "$ac_t""no" 1>&6
950fi
951
[1707]952# Extract the first word of "ranlib", so it can be a program name with args.
953set dummy ranlib; ac_word=$2
954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]955echo "configure:956: checking for $ac_word" >&5
[1707]956if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958else
959 case "$RANLIB" in
960 /*)
961 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
962 ;;
963 ?:/*)
964 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
965 ;;
966 *)
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 ac_dummy="/usr/bin:$PATH"
969 for ac_dir in $ac_dummy; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_path_RANLIB="$ac_dir/$ac_word"
973 break
974 fi
975 done
976 IFS="$ac_save_ifs"
977 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib"
978 ;;
979esac
980fi
981RANLIB="$ac_cv_path_RANLIB"
982if test -n "$RANLIB"; then
983 echo "$ac_t""$RANLIB" 1>&6
984else
985 echo "$ac_t""no" 1>&6
986fi
987
[1745]988ac_aux_dir=
989for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
990 if test -f $ac_dir/install-sh; then
991 ac_aux_dir=$ac_dir
992 ac_install_sh="$ac_aux_dir/install-sh -c"
993 break
994 elif test -f $ac_dir/install.sh; then
995 ac_aux_dir=$ac_dir
996 ac_install_sh="$ac_aux_dir/install.sh -c"
997 break
998 fi
999done
1000if test -z "$ac_aux_dir"; then
1001 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1002fi
1003ac_config_guess=$ac_aux_dir/config.guess
1004ac_config_sub=$ac_aux_dir/config.sub
1005ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
[1407]1006
[1745]1007# Find a good install program. We prefer a C program (faster),
1008# so one script is as good as another. But avoid the broken or
1009# incompatible versions:
1010# SysV /etc/install, /usr/sbin/install
1011# SunOS /usr/etc/install
1012# IRIX /sbin/install
1013# AIX /bin/install
1014# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1015# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1016# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1017# ./install, which can be erroneously created by make from ./install.sh.
1018echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1019echo "configure:1020: checking for a BSD compatible install" >&5
1020if test -z "$INSTALL"; then
1021if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1023else
1024 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1025 for ac_dir in $PATH; do
1026 # Account for people who put trailing slashes in PATH elements.
1027 case "$ac_dir/" in
1028 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1029 *)
1030 # OSF1 and SCO ODT 3.0 have their own names for install.
1031 # Don't use installbsd from OSF since it installs stuff as root
1032 # by default.
1033 for ac_prog in ginstall scoinst install; do
1034 if test -f $ac_dir/$ac_prog; then
1035 if test $ac_prog = install &&
1036 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1037 # AIX install. It has an incompatible calling convention.
1038 :
1039 else
1040 ac_cv_path_install="$ac_dir/$ac_prog -c"
1041 break 2
1042 fi
1043 fi
1044 done
1045 ;;
1046 esac
1047 done
1048 IFS="$ac_save_IFS"
1049
1050fi
1051 if test "${ac_cv_path_install+set}" = set; then
1052 INSTALL="$ac_cv_path_install"
1053 else
1054 # As a last resort, use the slow shell script. We don't cache a
1055 # path for INSTALL within a source directory, because that will
1056 # break other packages using the cache if that directory is
1057 # removed, or if the path is relative.
1058 INSTALL="$ac_install_sh"
1059 fi
1060fi
1061echo "$ac_t""$INSTALL" 1>&6
1062
1063# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1064# It thinks the first close brace ends the variable substitution.
1065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1066
1067test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1068
1069test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1070
1071
[1692]1072if test $GCC = "yes"; then
1073 gcc=$CC
1074else
1075 gcc=gcc
1076fi
1077
1078
[1407]1079echo $ac_n "checking size of short""... $ac_c" 1>&6
[1745]1080echo "configure:1081: checking size of short" >&5
[1407]1081if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083else
1084 if test "$cross_compiling" = yes; then
1085 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1086else
1087 cat > conftest.$ac_ext <<EOF
[1745]1088#line 1089 "configure"
[1407]1089#include "confdefs.h"
1090#include <stdio.h>
1091main()
1092{
1093 FILE *f=fopen("conftestval", "w");
1094 if (!f) exit(1);
1095 fprintf(f, "%d\n", sizeof(short));
1096 exit(0);
1097}
1098EOF
[1745]1099if { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1100then
1101 ac_cv_sizeof_short=`cat conftestval`
1102else
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1105 rm -fr conftest*
1106 ac_cv_sizeof_short=0
1107fi
1108rm -fr conftest*
1109fi
1110
1111fi
1112echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1113cat >> confdefs.h <<EOF
1114#define SIZEOF_SHORT $ac_cv_sizeof_short
1115EOF
1116
1117
1118echo $ac_n "checking size of int""... $ac_c" 1>&6
[1745]1119echo "configure:1120: checking size of int" >&5
[1407]1120if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 if test "$cross_compiling" = yes; then
1124 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1125else
1126 cat > conftest.$ac_ext <<EOF
[1745]1127#line 1128 "configure"
[1407]1128#include "confdefs.h"
1129#include <stdio.h>
1130main()
1131{
1132 FILE *f=fopen("conftestval", "w");
1133 if (!f) exit(1);
1134 fprintf(f, "%d\n", sizeof(int));
1135 exit(0);
1136}
1137EOF
[1745]1138if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1139then
1140 ac_cv_sizeof_int=`cat conftestval`
1141else
1142 echo "configure: failed program was:" >&5
1143 cat conftest.$ac_ext >&5
1144 rm -fr conftest*
1145 ac_cv_sizeof_int=0
1146fi
1147rm -fr conftest*
1148fi
1149
1150fi
1151echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1152cat >> confdefs.h <<EOF
1153#define SIZEOF_INT $ac_cv_sizeof_int
1154EOF
1155
1156
1157echo $ac_n "checking size of long""... $ac_c" 1>&6
[1745]1158echo "configure:1159: checking size of long" >&5
[1407]1159if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1161else
1162 if test "$cross_compiling" = yes; then
1163 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1164else
1165 cat > conftest.$ac_ext <<EOF
[1745]1166#line 1167 "configure"
[1407]1167#include "confdefs.h"
1168#include <stdio.h>
1169main()
1170{
1171 FILE *f=fopen("conftestval", "w");
1172 if (!f) exit(1);
1173 fprintf(f, "%d\n", sizeof(long));
1174 exit(0);
1175}
1176EOF
[1745]1177if { (eval echo configure:1178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1178then
1179 ac_cv_sizeof_long=`cat conftestval`
1180else
1181 echo "configure: failed program was:" >&5
1182 cat conftest.$ac_ext >&5
1183 rm -fr conftest*
1184 ac_cv_sizeof_long=0
1185fi
1186rm -fr conftest*
1187fi
1188
1189fi
1190echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1191cat >> confdefs.h <<EOF
1192#define SIZEOF_LONG $ac_cv_sizeof_long
1193EOF
1194
1195
[1663]1196echo $ac_n "checking size of long long""... $ac_c" 1>&6
[1745]1197echo "configure:1198: checking size of long long" >&5
[1663]1198if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200else
1201 if test "$cross_compiling" = yes; then
1202 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1203else
1204 cat > conftest.$ac_ext <<EOF
[1745]1205#line 1206 "configure"
[1663]1206#include "confdefs.h"
1207#include <stdio.h>
1208main()
1209{
1210 FILE *f=fopen("conftestval", "w");
1211 if (!f) exit(1);
1212 fprintf(f, "%d\n", sizeof(long long));
1213 exit(0);
1214}
1215EOF
[1745]1216if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1663]1217then
1218 ac_cv_sizeof_long_long=`cat conftestval`
1219else
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1222 rm -fr conftest*
1223 ac_cv_sizeof_long_long=0
1224fi
1225rm -fr conftest*
1226fi
1227
1228fi
1229echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1230cat >> confdefs.h <<EOF
1231#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1232EOF
1233
1234
[1407]1235echo $ac_n "checking size of float""... $ac_c" 1>&6
[1745]1236echo "configure:1237: checking size of float" >&5
[1407]1237if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1239else
1240 if test "$cross_compiling" = yes; then
1241 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1242else
1243 cat > conftest.$ac_ext <<EOF
[1745]1244#line 1245 "configure"
[1407]1245#include "confdefs.h"
1246#include <stdio.h>
1247main()
1248{
1249 FILE *f=fopen("conftestval", "w");
1250 if (!f) exit(1);
1251 fprintf(f, "%d\n", sizeof(float));
1252 exit(0);
1253}
1254EOF
[1745]1255if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1256then
1257 ac_cv_sizeof_float=`cat conftestval`
1258else
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 rm -fr conftest*
1262 ac_cv_sizeof_float=0
1263fi
1264rm -fr conftest*
1265fi
1266
1267fi
1268echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1269cat >> confdefs.h <<EOF
1270#define SIZEOF_FLOAT $ac_cv_sizeof_float
1271EOF
1272
1273
1274echo $ac_n "checking size of double""... $ac_c" 1>&6
[1745]1275echo "configure:1276: checking size of double" >&5
[1407]1276if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278else
1279 if test "$cross_compiling" = yes; then
1280 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1281else
1282 cat > conftest.$ac_ext <<EOF
[1745]1283#line 1284 "configure"
[1407]1284#include "confdefs.h"
1285#include <stdio.h>
1286main()
1287{
1288 FILE *f=fopen("conftestval", "w");
1289 if (!f) exit(1);
1290 fprintf(f, "%d\n", sizeof(double));
1291 exit(0);
1292}
1293EOF
[1745]1294if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1295then
1296 ac_cv_sizeof_double=`cat conftestval`
1297else
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1300 rm -fr conftest*
1301 ac_cv_sizeof_double=0
1302fi
1303rm -fr conftest*
1304fi
1305
1306fi
1307echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1308cat >> confdefs.h <<EOF
1309#define SIZEOF_DOUBLE $ac_cv_sizeof_double
1310EOF
1311
1312
1313echo $ac_n "checking size of long double""... $ac_c" 1>&6
[1745]1314echo "configure:1315: checking size of long double" >&5
[1407]1315if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317else
1318 if test "$cross_compiling" = yes; then
1319 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1320else
1321 cat > conftest.$ac_ext <<EOF
[1745]1322#line 1323 "configure"
[1407]1323#include "confdefs.h"
1324#include <stdio.h>
1325main()
1326{
1327 FILE *f=fopen("conftestval", "w");
1328 if (!f) exit(1);
1329 fprintf(f, "%d\n", sizeof(long double));
1330 exit(0);
1331}
1332EOF
[1745]1333if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1334then
1335 ac_cv_sizeof_long_double=`cat conftestval`
1336else
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1339 rm -fr conftest*
1340 ac_cv_sizeof_long_double=0
1341fi
1342rm -fr conftest*
1343fi
1344
1345fi
1346echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
1347cat >> confdefs.h <<EOF
1348#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1349EOF
1350
1351
1352
1353
1354echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
[1745]1355echo "configure:1356: checking "for cfitsio lib"" >&5
[1407]1356MACHDIR=`uname`-$CXX
1357if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
1358 cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
[1730]1359elif test -f $EXTLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
1360 cfitslibdir='-L$(EXTLIBDIR)/$(MACHDIR)/Libs'
[1407]1361elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
1362 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
1363elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
1364 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
1365elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
1366 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
1367elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
1368 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
1369elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
1370 cfitslibdir='-L$(CFITSIOLIBDIR)'
1371elif test -f $CFITSIODIR/libcfitsio.a; then
1372 cfitslibdir='-L$(CFITSIODIR)'
1373elif test -f /usr/local/lib/libcfitsio.a; then
1374 cfitslibdir=""
1375else
1376 { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
1377fi
1378echo "$ac_t""$cfitslibdir" 1>&6
1379
1380
1381echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
[1745]1382echo "configure:1383: checking "for cfitsio includes"" >&5
[1407]1383if test -f $CFITSIODIR/fitsio.h; then
1384 cfitsincdir='-I$(CFITSIODIR)'
[1730]1385elif test -f $EXTLIBDIR/Include/FitsIO/fitsio.h; then
[1738]1386 cfitsincdir='-I$(EXTLIBDIR)/Include/FitsIO'
[1407]1387elif test -f /usr/local/include/fitsio.h; then
1388 cfitsincdir=""
1389else
1390 { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
1391fi
1392echo "$ac_t""$cfitsincdir" 1>&6
1393
1394
1395echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
[1745]1396echo "configure:1397: checking for sin in -lm" >&5
[1407]1397ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1400else
1401 ac_save_LIBS="$LIBS"
1402LIBS="-lm $LIBS"
1403cat > conftest.$ac_ext <<EOF
[1745]1404#line 1405 "configure"
[1407]1405#include "confdefs.h"
1406/* Override any gcc2 internal prototype to avoid an error. */
1407/* We use char because int might match the return type of a gcc2
1408 builtin and then its argument prototype would still apply. */
1409char sin();
1410
1411int main() {
1412sin()
1413; return 0; }
1414EOF
[1745]1415if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1407]1416 rm -rf conftest*
1417 eval "ac_cv_lib_$ac_lib_var=yes"
1418else
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1421 rm -rf conftest*
1422 eval "ac_cv_lib_$ac_lib_var=no"
1423fi
1424rm -f conftest*
1425LIBS="$ac_save_LIBS"
1426
1427fi
1428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1429 echo "$ac_t""yes" 1>&6
1430 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1431 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1432 cat >> confdefs.h <<EOF
1433#define $ac_tr_lib 1
1434EOF
1435
1436 LIBS="-lm $LIBS"
1437
1438else
1439 echo "$ac_t""no" 1>&6
1440fi
1441
[1732]1442echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
[1745]1443echo "configure:1444: checking for pthread_create in -lpthread" >&5
[1732]1444ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1447else
1448 ac_save_LIBS="$LIBS"
1449LIBS="-lpthread $LIBS"
1450cat > conftest.$ac_ext <<EOF
[1745]1451#line 1452 "configure"
[1732]1452#include "confdefs.h"
1453/* Override any gcc2 internal prototype to avoid an error. */
1454/* We use char because int might match the return type of a gcc2
1455 builtin and then its argument prototype would still apply. */
1456char pthread_create();
[1407]1457
[1732]1458int main() {
1459pthread_create()
1460; return 0; }
1461EOF
[1745]1462if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1732]1463 rm -rf conftest*
1464 eval "ac_cv_lib_$ac_lib_var=yes"
1465else
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1468 rm -rf conftest*
1469 eval "ac_cv_lib_$ac_lib_var=no"
1470fi
1471rm -f conftest*
1472LIBS="$ac_save_LIBS"
1473
1474fi
1475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1479 cat >> confdefs.h <<EOF
1480#define $ac_tr_lib 1
1481EOF
1482
1483 LIBS="-lpthread $LIBS"
1484
1485else
1486 echo "$ac_t""no" 1>&6
1487fi
1488
1489echo $ac_n "checking for scopy_ in -lblas""... $ac_c" 1>&6
[1745]1490echo "configure:1491: checking for scopy_ in -lblas" >&5
[1732]1491ac_lib_var=`echo blas'_'scopy_ | sed 'y%./+-%__p_%'`
1492if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494else
1495 ac_save_LIBS="$LIBS"
1496LIBS="-lblas $LIBS"
1497cat > conftest.$ac_ext <<EOF
[1745]1498#line 1499 "configure"
[1732]1499#include "confdefs.h"
1500/* Override any gcc2 internal prototype to avoid an error. */
1501/* We use char because int might match the return type of a gcc2
1502 builtin and then its argument prototype would still apply. */
1503char scopy_();
1504
1505int main() {
1506scopy_()
1507; return 0; }
1508EOF
[1745]1509if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1732]1510 rm -rf conftest*
1511 eval "ac_cv_lib_$ac_lib_var=yes"
1512else
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1515 rm -rf conftest*
1516 eval "ac_cv_lib_$ac_lib_var=no"
1517fi
1518rm -f conftest*
1519LIBS="$ac_save_LIBS"
1520
1521fi
1522if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1524 ac_tr_lib=HAVE_LIB`echo blas | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1526 cat >> confdefs.h <<EOF
1527#define $ac_tr_lib 1
1528EOF
1529
1530 LIBS="-lblas $LIBS"
1531
1532else
1533 echo "$ac_t""no" 1>&6
1534fi
1535
1536echo $ac_n "checking for s_copy in -lg2c""... $ac_c" 1>&6
[1745]1537echo "configure:1538: checking for s_copy in -lg2c" >&5
[1732]1538ac_lib_var=`echo g2c'_'s_copy | sed 'y%./+-%__p_%'`
1539if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1541else
1542 ac_save_LIBS="$LIBS"
1543LIBS="-lg2c $LIBS"
1544cat > conftest.$ac_ext <<EOF
[1745]1545#line 1546 "configure"
[1732]1546#include "confdefs.h"
1547/* Override any gcc2 internal prototype to avoid an error. */
1548/* We use char because int might match the return type of a gcc2
1549 builtin and then its argument prototype would still apply. */
1550char s_copy();
1551
1552int main() {
1553s_copy()
1554; return 0; }
1555EOF
[1745]1556if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1732]1557 rm -rf conftest*
1558 eval "ac_cv_lib_$ac_lib_var=yes"
1559else
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1562 rm -rf conftest*
1563 eval "ac_cv_lib_$ac_lib_var=no"
1564fi
1565rm -f conftest*
1566LIBS="$ac_save_LIBS"
1567
1568fi
1569if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1570 echo "$ac_t""yes" 1>&6
1571 ac_tr_lib=HAVE_LIB`echo g2c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1572 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1573 cat >> confdefs.h <<EOF
1574#define $ac_tr_lib 1
1575EOF
1576
1577 LIBS="-lg2c $LIBS"
1578
1579else
1580 echo "$ac_t""no" 1>&6
1581fi
1582
1583
[1407]1584echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
[1745]1585echo "configure:1586: checking how to run the C preprocessor" >&5
[1407]1586# On Suns, sometimes $CPP names a directory.
1587if test -n "$CPP" && test -d "$CPP"; then
1588 CPP=
1589fi
1590if test -z "$CPP"; then
1591if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593else
1594 # This must be in double quotes, not single quotes, because CPP may get
1595 # substituted into the Makefile and "${CC-cc}" will confuse make.
1596 CPP="${CC-cc} -E"
1597 # On the NeXT, cc -E runs the code through the compiler's parser,
1598 # not just through cpp.
1599 cat > conftest.$ac_ext <<EOF
[1745]1600#line 1601 "configure"
[1407]1601#include "confdefs.h"
1602#include <assert.h>
1603Syntax Error
1604EOF
1605ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1745]1606{ (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1607ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1608if test -z "$ac_err"; then
1609 :
1610else
1611 echo "$ac_err" >&5
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 rm -rf conftest*
1615 CPP="${CC-cc} -E -traditional-cpp"
1616 cat > conftest.$ac_ext <<EOF
[1745]1617#line 1618 "configure"
[1407]1618#include "confdefs.h"
1619#include <assert.h>
1620Syntax Error
1621EOF
1622ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1745]1623{ (eval echo configure:1624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1624ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1625if test -z "$ac_err"; then
1626 :
1627else
1628 echo "$ac_err" >&5
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 rm -rf conftest*
1632 CPP="${CC-cc} -nologo -E"
1633 cat > conftest.$ac_ext <<EOF
[1745]1634#line 1635 "configure"
[1407]1635#include "confdefs.h"
1636#include <assert.h>
1637Syntax Error
1638EOF
1639ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1745]1640{ (eval echo configure:1641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1641ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1642if test -z "$ac_err"; then
1643 :
1644else
1645 echo "$ac_err" >&5
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1648 rm -rf conftest*
1649 CPP=/lib/cpp
1650fi
1651rm -f conftest*
1652fi
1653rm -f conftest*
1654fi
1655rm -f conftest*
1656 ac_cv_prog_CPP="$CPP"
1657fi
1658 CPP="$ac_cv_prog_CPP"
1659else
1660 ac_cv_prog_CPP="$CPP"
1661fi
1662echo "$ac_t""$CPP" 1>&6
1663
1664echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
[1745]1665echo "configure:1666: checking for ANSI C header files" >&5
[1407]1666if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668else
1669 cat > conftest.$ac_ext <<EOF
[1745]1670#line 1671 "configure"
[1407]1671#include "confdefs.h"
1672#include <stdlib.h>
1673#include <stdarg.h>
1674#include <string.h>
1675#include <float.h>
1676EOF
1677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1745]1678{ (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1680if test -z "$ac_err"; then
1681 rm -rf conftest*
1682 ac_cv_header_stdc=yes
1683else
1684 echo "$ac_err" >&5
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 rm -rf conftest*
1688 ac_cv_header_stdc=no
1689fi
1690rm -f conftest*
1691
1692if test $ac_cv_header_stdc = yes; then
1693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1694cat > conftest.$ac_ext <<EOF
[1745]1695#line 1696 "configure"
[1407]1696#include "confdefs.h"
1697#include <string.h>
1698EOF
1699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1700 egrep "memchr" >/dev/null 2>&1; then
1701 :
1702else
1703 rm -rf conftest*
1704 ac_cv_header_stdc=no
1705fi
1706rm -f conftest*
1707
1708fi
1709
1710if test $ac_cv_header_stdc = yes; then
1711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1712cat > conftest.$ac_ext <<EOF
[1745]1713#line 1714 "configure"
[1407]1714#include "confdefs.h"
1715#include <stdlib.h>
1716EOF
1717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1718 egrep "free" >/dev/null 2>&1; then
1719 :
1720else
1721 rm -rf conftest*
1722 ac_cv_header_stdc=no
1723fi
1724rm -f conftest*
1725
1726fi
1727
1728if test $ac_cv_header_stdc = yes; then
1729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1730if test "$cross_compiling" = yes; then
1731 :
1732else
1733 cat > conftest.$ac_ext <<EOF
[1745]1734#line 1735 "configure"
[1407]1735#include "confdefs.h"
1736#include <ctype.h>
1737#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1738#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1739#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1740int main () { int i; for (i = 0; i < 256; i++)
1741if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1742exit (0); }
1743
1744EOF
[1745]1745if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1746then
1747 :
1748else
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 rm -fr conftest*
1752 ac_cv_header_stdc=no
1753fi
1754rm -fr conftest*
1755fi
1756
1757fi
1758fi
1759
1760echo "$ac_t""$ac_cv_header_stdc" 1>&6
1761if test $ac_cv_header_stdc = yes; then
1762 cat >> confdefs.h <<\EOF
1763#define STDC_HEADERS 1
1764EOF
1765
1766fi
1767
[1685]1768for ac_hdr in values.h stdint.h
[1663]1769do
1770ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1771echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
[1745]1772echo "configure:1773: checking for $ac_hdr" >&5
[1663]1773if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776 cat > conftest.$ac_ext <<EOF
[1745]1777#line 1778 "configure"
[1663]1778#include "confdefs.h"
1779#include <$ac_hdr>
1780EOF
1781ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1745]1782{ (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1663]1783ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1784if test -z "$ac_err"; then
1785 rm -rf conftest*
1786 eval "ac_cv_header_$ac_safe=yes"
1787else
1788 echo "$ac_err" >&5
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1791 rm -rf conftest*
1792 eval "ac_cv_header_$ac_safe=no"
1793fi
1794rm -f conftest*
1795fi
1796if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1799 cat >> confdefs.h <<EOF
1800#define $ac_tr_hdr 1
1801EOF
1802
1803else
1804 echo "$ac_t""no" 1>&6
1805fi
1806done
[1407]1807
[1663]1808
[1477]1809outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
1810if [ $use_sophya = 1 ]; then
1811 outfiles="$outfiles sophya/Makefile"
1812fi
1813
[1407]1814trap '' 1 2 15
1815cat > confcache <<\EOF
1816# This file is a shell script that caches the results of configure
1817# tests run on this system so they can be shared between configure
1818# scripts and configure runs. It is not useful on other systems.
1819# If it contains results you don't want to keep, you may remove or edit it.
1820#
1821# By default, configure uses ./config.cache as the cache file,
1822# creating it if it does not exist already. You can give configure
1823# the --cache-file=FILE option to use a different cache file; that is
1824# what configure does when it calls configure scripts in
1825# subdirectories, so they share the cache.
1826# Giving --cache-file=/dev/null disables caching, for debugging configure.
1827# config.status only pays attention to the cache file if you give it the
1828# --recheck option to rerun configure.
1829#
1830EOF
1831# The following way of writing the cache mishandles newlines in values,
1832# but we know of no workaround that is simple, portable, and efficient.
1833# So, don't put newlines in cache variables' values.
1834# Ultrix sh set writes to stderr and can't be redirected directly,
1835# and sets the high bit in the cache file unless we assign to the vars.
1836(set) 2>&1 |
1837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1838 *ac_space=\ *)
1839 # `set' does not quote correctly, so add quotes (double-quote substitution
1840 # turns \\\\ into \\, and sed turns \\ into \).
1841 sed -n \
1842 -e "s/'/'\\\\''/g" \
1843 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1844 ;;
1845 *)
1846 # `set' quotes correctly as required by POSIX, so do not add quotes.
1847 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1848 ;;
1849 esac >> confcache
1850if cmp -s $cache_file confcache; then
1851 :
1852else
1853 if test -w $cache_file; then
1854 echo "updating cache $cache_file"
1855 cat confcache > $cache_file
1856 else
1857 echo "not updating unwritable cache $cache_file"
1858 fi
1859fi
1860rm -f confcache
1861
1862trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1863
1864test "x$prefix" = xNONE && prefix=$ac_default_prefix
1865# Let make expand exec_prefix.
1866test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1867
1868# Any assignment to VPATH causes Sun make to only execute
1869# the first set of double-colon rules, so remove it if not needed.
1870# If there is a colon in the path, we need to keep it.
1871if test "x$srcdir" = x.; then
1872 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1873fi
1874
1875trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1876
1877DEFS=-DHAVE_CONFIG_H
1878
1879# Without the "./", some shells look in PATH for config.status.
1880: ${CONFIG_STATUS=./config.status}
1881
1882echo creating $CONFIG_STATUS
1883rm -f $CONFIG_STATUS
1884cat > $CONFIG_STATUS <<EOF
1885#! /bin/sh
1886# Generated automatically by configure.
1887# Run this file to recreate the current configuration.
1888# This directory was configured as follows,
1889# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1890#
1891# $0 $ac_configure_args
1892#
1893# Compiler output produced by configure, useful for debugging
1894# configure, is in ./config.log if it exists.
1895
1896ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1897for ac_option
1898do
1899 case "\$ac_option" in
1900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1901 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1902 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1903 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1904 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1905 exit 0 ;;
1906 -help | --help | --hel | --he | --h)
1907 echo "\$ac_cs_usage"; exit 0 ;;
1908 *) echo "\$ac_cs_usage"; exit 1 ;;
1909 esac
1910done
1911
1912ac_given_srcdir=$srcdir
[1745]1913ac_given_INSTALL="$INSTALL"
[1407]1914
[1477]1915trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
[1407]1916EOF
1917cat >> $CONFIG_STATUS <<EOF
1918
1919# Protect against being on the right side of a sed subst in config.status.
1920sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1921 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1922$ac_vpsub
1923$extrasub
1924s%@SHELL@%$SHELL%g
1925s%@CFLAGS@%$CFLAGS%g
1926s%@CPPFLAGS@%$CPPFLAGS%g
1927s%@CXXFLAGS@%$CXXFLAGS%g
1928s%@FFLAGS@%$FFLAGS%g
1929s%@DEFS@%$DEFS%g
1930s%@LDFLAGS@%$LDFLAGS%g
1931s%@LIBS@%$LIBS%g
1932s%@exec_prefix@%$exec_prefix%g
1933s%@prefix@%$prefix%g
1934s%@program_transform_name@%$program_transform_name%g
1935s%@bindir@%$bindir%g
1936s%@sbindir@%$sbindir%g
1937s%@libexecdir@%$libexecdir%g
1938s%@datadir@%$datadir%g
1939s%@sysconfdir@%$sysconfdir%g
1940s%@sharedstatedir@%$sharedstatedir%g
1941s%@localstatedir@%$localstatedir%g
1942s%@libdir@%$libdir%g
1943s%@includedir@%$includedir%g
1944s%@oldincludedir@%$oldincludedir%g
1945s%@infodir@%$infodir%g
1946s%@mandir@%$mandir%g
1947s%@use_sophya@%$use_sophya%g
[1477]1948s%@CC@%$CC%g
[1407]1949s%@CXX@%$CXX%g
[1706]1950s%@AR@%$AR%g
[1707]1951s%@RANLIB@%$RANLIB%g
[1745]1952s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1953s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1954s%@INSTALL_DATA@%$INSTALL_DATA%g
[1692]1955s%@gcc@%$gcc%g
[1407]1956s%@cfitslibdir@%$cfitslibdir%g
1957s%@cfitsincdir@%$cfitsincdir%g
1958s%@CPP@%$CPP%g
1959
1960CEOF
1961EOF
1962
1963cat >> $CONFIG_STATUS <<\EOF
1964
1965# Split the substitutions into bite-sized pieces for seds with
1966# small command number limits, like on Digital OSF/1 and HP-UX.
1967ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1968ac_file=1 # Number of current file.
1969ac_beg=1 # First line for current file.
1970ac_end=$ac_max_sed_cmds # Line after last line for current file.
1971ac_more_lines=:
1972ac_sed_cmds=""
1973while $ac_more_lines; do
1974 if test $ac_beg -gt 1; then
1975 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1976 else
1977 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1978 fi
1979 if test ! -s conftest.s$ac_file; then
1980 ac_more_lines=false
1981 rm -f conftest.s$ac_file
1982 else
1983 if test -z "$ac_sed_cmds"; then
1984 ac_sed_cmds="sed -f conftest.s$ac_file"
1985 else
1986 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1987 fi
1988 ac_file=`expr $ac_file + 1`
1989 ac_beg=$ac_end
1990 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1991 fi
1992done
1993if test -z "$ac_sed_cmds"; then
1994 ac_sed_cmds=cat
1995fi
1996EOF
1997
1998cat >> $CONFIG_STATUS <<EOF
1999
[1477]2000CONFIG_FILES=\${CONFIG_FILES-"$outfiles"}
[1407]2001EOF
2002cat >> $CONFIG_STATUS <<\EOF
2003for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2005 case "$ac_file" in
2006 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2007 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2008 *) ac_file_in="${ac_file}.in" ;;
2009 esac
2010
2011 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2012
2013 # Remove last slash and all that follows it. Not all systems have dirname.
2014 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2015 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2016 # The file is in a subdirectory.
2017 test ! -d "$ac_dir" && mkdir "$ac_dir"
2018 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2019 # A "../" for each directory in $ac_dir_suffix.
2020 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2021 else
2022 ac_dir_suffix= ac_dots=
2023 fi
2024
2025 case "$ac_given_srcdir" in
2026 .) srcdir=.
2027 if test -z "$ac_dots"; then top_srcdir=.
2028 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2029 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2030 *) # Relative path.
2031 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2032 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2033 esac
2034
[1745]2035 case "$ac_given_INSTALL" in
2036 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2037 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2038 esac
[1407]2039
2040 echo creating "$ac_file"
2041 rm -f "$ac_file"
2042 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2043 case "$ac_file" in
2044 *Makefile*) ac_comsub="1i\\
2045# $configure_input" ;;
2046 *) ac_comsub= ;;
2047 esac
2048
2049 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2050 sed -e "$ac_comsub
2051s%@configure_input@%$configure_input%g
2052s%@srcdir@%$srcdir%g
2053s%@top_srcdir@%$top_srcdir%g
[1745]2054s%@INSTALL@%$INSTALL%g
[1407]2055" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2056fi; done
2057rm -f conftest.s*
2058
2059# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2060# NAME is the cpp macro being defined and VALUE is the value it is being given.
2061#
2062# ac_d sets the value in "#define NAME VALUE" lines.
2063ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2064ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2065ac_dC='\3'
2066ac_dD='%g'
2067# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2068ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2069ac_uB='\([ ]\)%\1#\2define\3'
2070ac_uC=' '
2071ac_uD='\4%g'
2072# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2073ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2074ac_eB='$%\1#\2define\3'
2075ac_eC=' '
2076ac_eD='%g'
2077
2078if test "${CONFIG_HEADERS+set}" != set; then
2079EOF
2080cat >> $CONFIG_STATUS <<EOF
2081 CONFIG_HEADERS="conf.h"
2082EOF
2083cat >> $CONFIG_STATUS <<\EOF
2084fi
2085for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2087 case "$ac_file" in
2088 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2089 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2090 *) ac_file_in="${ac_file}.in" ;;
2091 esac
2092
2093 echo creating $ac_file
2094
2095 rm -f conftest.frag conftest.in conftest.out
2096 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2097 cat $ac_file_inputs > conftest.in
2098
2099EOF
2100
2101# Transform confdefs.h into a sed script conftest.vals that substitutes
2102# the proper values into config.h.in to produce config.h. And first:
2103# Protect against being on the right side of a sed subst in config.status.
2104# Protect against being in an unquoted here document in config.status.
2105rm -f conftest.vals
2106cat > conftest.hdr <<\EOF
2107s/[\\&%]/\\&/g
2108s%[\\$`]%\\&%g
2109s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2110s%ac_d%ac_u%gp
2111s%ac_u%ac_e%gp
2112EOF
2113sed -n -f conftest.hdr confdefs.h > conftest.vals
2114rm -f conftest.hdr
2115
2116# This sed command replaces #undef with comments. This is necessary, for
2117# example, in the case of _POSIX_SOURCE, which is predefined and required
2118# on some systems where configure will not decide to define it.
2119cat >> conftest.vals <<\EOF
2120s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2121EOF
2122
2123# Break up conftest.vals because some shells have a limit on
2124# the size of here documents, and old seds have small limits too.
2125
2126rm -f conftest.tail
2127while :
2128do
2129 ac_lines=`grep -c . conftest.vals`
2130 # grep -c gives empty output for an empty file on some AIX systems.
2131 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2132 # Write a limited-size here document to conftest.frag.
2133 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2134 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2135 echo 'CEOF
2136 sed -f conftest.frag conftest.in > conftest.out
2137 rm -f conftest.in
2138 mv conftest.out conftest.in
2139' >> $CONFIG_STATUS
2140 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2141 rm -f conftest.vals
2142 mv conftest.tail conftest.vals
2143done
2144rm -f conftest.vals
2145
2146cat >> $CONFIG_STATUS <<\EOF
2147 rm -f conftest.frag conftest.h
2148 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2149 cat conftest.in >> conftest.h
2150 rm -f conftest.in
2151 if cmp -s $ac_file conftest.h 2>/dev/null; then
2152 echo "$ac_file is unchanged"
2153 rm -f conftest.h
2154 else
2155 # Remove last slash and all that follows it. Not all systems have dirname.
2156 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2157 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2158 # The file is in a subdirectory.
2159 test ! -d "$ac_dir" && mkdir "$ac_dir"
2160 fi
2161 rm -f $ac_file
2162 mv conftest.h $ac_file
2163 fi
2164fi; done
2165
2166EOF
2167cat >> $CONFIG_STATUS <<EOF
2168
2169EOF
2170cat >> $CONFIG_STATUS <<\EOF
2171
2172exit 0
2173EOF
2174chmod +x $CONFIG_STATUS
2175rm -fr confdefs* $ac_clean_files
2176test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2177
[1477]2178
Note: See TracBrowser for help on using the repository browser.