source: Sophya/trunk/ArchTOIPipe/configure@ 2199

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

changements pour nouvelle structure

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