source: Sophya/trunk/ArchTOIPipe/configure@ 1407

Last change on this file since 1407 was 1407, checked in by aubourg, 25 years ago

configure

  • Property svn:executable set to *
File size: 47.4 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --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.
456ac_unique_file=toi.cc
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
547for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
548do
549# Extract the first word of "$ac_prog", so it can be a program name with args.
550set dummy $ac_prog; ac_word=$2
551echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
552echo "configure:553: checking for $ac_word" >&5
553if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
555else
556 if test -n "$CXX"; then
557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
558else
559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
560 ac_dummy="$PATH"
561 for ac_dir in $ac_dummy; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
564 ac_cv_prog_CXX="$ac_prog"
565 break
566 fi
567 done
568 IFS="$ac_save_ifs"
569fi
570fi
571CXX="$ac_cv_prog_CXX"
572if test -n "$CXX"; then
573 echo "$ac_t""$CXX" 1>&6
574else
575 echo "$ac_t""no" 1>&6
576fi
577
578test -n "$CXX" && break
579done
580test -n "$CXX" || CXX="gcc"
581
582
583echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
584echo "configure:585: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
585
586ac_ext=C
587# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
588ac_cpp='$CXXCPP $CPPFLAGS'
589ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
590ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
591cross_compiling=$ac_cv_prog_cxx_cross
592
593cat > conftest.$ac_ext << EOF
594
595#line 596 "configure"
596#include "confdefs.h"
597
598int main(){return(0);}
599EOF
600if { (eval echo configure:601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
601 ac_cv_prog_cxx_works=yes
602 # If we can't run a trivial program, we are probably using a cross compiler.
603 if (./conftest; exit) 2>/dev/null; then
604 ac_cv_prog_cxx_cross=no
605 else
606 ac_cv_prog_cxx_cross=yes
607 fi
608else
609 echo "configure: failed program was:" >&5
610 cat conftest.$ac_ext >&5
611 ac_cv_prog_cxx_works=no
612fi
613rm -fr conftest*
614ac_ext=c
615# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
616ac_cpp='$CPP $CPPFLAGS'
617ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
618ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
619cross_compiling=$ac_cv_prog_cc_cross
620
621echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
622if test $ac_cv_prog_cxx_works = no; then
623 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
624fi
625echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
626echo "configure:627: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
627echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
628cross_compiling=$ac_cv_prog_cxx_cross
629
630echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
631echo "configure:632: checking whether we are using GNU C++" >&5
632if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
634else
635 cat > conftest.C <<EOF
636#ifdef __GNUC__
637 yes;
638#endif
639EOF
640if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
641 ac_cv_prog_gxx=yes
642else
643 ac_cv_prog_gxx=no
644fi
645fi
646
647echo "$ac_t""$ac_cv_prog_gxx" 1>&6
648
649if test $ac_cv_prog_gxx = yes; then
650 GXX=yes
651else
652 GXX=
653fi
654
655ac_test_CXXFLAGS="${CXXFLAGS+set}"
656ac_save_CXXFLAGS="$CXXFLAGS"
657CXXFLAGS=
658echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
659echo "configure:660: checking whether ${CXX-g++} accepts -g" >&5
660if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
662else
663 echo 'void f(){}' > conftest.cc
664if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
665 ac_cv_prog_cxx_g=yes
666else
667 ac_cv_prog_cxx_g=no
668fi
669rm -f conftest*
670
671fi
672
673echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
674if test "$ac_test_CXXFLAGS" = set; then
675 CXXFLAGS="$ac_save_CXXFLAGS"
676elif test $ac_cv_prog_cxx_g = yes; then
677 if test "$GXX" = yes; then
678 CXXFLAGS="-g -O2"
679 else
680 CXXFLAGS="-g"
681 fi
682else
683 if test "$GXX" = yes; then
684 CXXFLAGS="-O2"
685 else
686 CXXFLAGS=
687 fi
688fi
689
690
691echo $ac_n "checking size of short""... $ac_c" 1>&6
692echo "configure:693: checking size of short" >&5
693if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695else
696 if test "$cross_compiling" = yes; then
697 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
698else
699 cat > conftest.$ac_ext <<EOF
700#line 701 "configure"
701#include "confdefs.h"
702#include <stdio.h>
703main()
704{
705 FILE *f=fopen("conftestval", "w");
706 if (!f) exit(1);
707 fprintf(f, "%d\n", sizeof(short));
708 exit(0);
709}
710EOF
711if { (eval echo configure:712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
712then
713 ac_cv_sizeof_short=`cat conftestval`
714else
715 echo "configure: failed program was:" >&5
716 cat conftest.$ac_ext >&5
717 rm -fr conftest*
718 ac_cv_sizeof_short=0
719fi
720rm -fr conftest*
721fi
722
723fi
724echo "$ac_t""$ac_cv_sizeof_short" 1>&6
725cat >> confdefs.h <<EOF
726#define SIZEOF_SHORT $ac_cv_sizeof_short
727EOF
728
729
730echo $ac_n "checking size of int""... $ac_c" 1>&6
731echo "configure:732: checking size of int" >&5
732if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
734else
735 if test "$cross_compiling" = yes; then
736 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
737else
738 cat > conftest.$ac_ext <<EOF
739#line 740 "configure"
740#include "confdefs.h"
741#include <stdio.h>
742main()
743{
744 FILE *f=fopen("conftestval", "w");
745 if (!f) exit(1);
746 fprintf(f, "%d\n", sizeof(int));
747 exit(0);
748}
749EOF
750if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
751then
752 ac_cv_sizeof_int=`cat conftestval`
753else
754 echo "configure: failed program was:" >&5
755 cat conftest.$ac_ext >&5
756 rm -fr conftest*
757 ac_cv_sizeof_int=0
758fi
759rm -fr conftest*
760fi
761
762fi
763echo "$ac_t""$ac_cv_sizeof_int" 1>&6
764cat >> confdefs.h <<EOF
765#define SIZEOF_INT $ac_cv_sizeof_int
766EOF
767
768
769echo $ac_n "checking size of long""... $ac_c" 1>&6
770echo "configure:771: checking size of long" >&5
771if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
773else
774 if test "$cross_compiling" = yes; then
775 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
776else
777 cat > conftest.$ac_ext <<EOF
778#line 779 "configure"
779#include "confdefs.h"
780#include <stdio.h>
781main()
782{
783 FILE *f=fopen("conftestval", "w");
784 if (!f) exit(1);
785 fprintf(f, "%d\n", sizeof(long));
786 exit(0);
787}
788EOF
789if { (eval echo configure:790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
790then
791 ac_cv_sizeof_long=`cat conftestval`
792else
793 echo "configure: failed program was:" >&5
794 cat conftest.$ac_ext >&5
795 rm -fr conftest*
796 ac_cv_sizeof_long=0
797fi
798rm -fr conftest*
799fi
800
801fi
802echo "$ac_t""$ac_cv_sizeof_long" 1>&6
803cat >> confdefs.h <<EOF
804#define SIZEOF_LONG $ac_cv_sizeof_long
805EOF
806
807
808echo $ac_n "checking size of float""... $ac_c" 1>&6
809echo "configure:810: checking size of float" >&5
810if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
812else
813 if test "$cross_compiling" = yes; then
814 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
815else
816 cat > conftest.$ac_ext <<EOF
817#line 818 "configure"
818#include "confdefs.h"
819#include <stdio.h>
820main()
821{
822 FILE *f=fopen("conftestval", "w");
823 if (!f) exit(1);
824 fprintf(f, "%d\n", sizeof(float));
825 exit(0);
826}
827EOF
828if { (eval echo configure:829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
829then
830 ac_cv_sizeof_float=`cat conftestval`
831else
832 echo "configure: failed program was:" >&5
833 cat conftest.$ac_ext >&5
834 rm -fr conftest*
835 ac_cv_sizeof_float=0
836fi
837rm -fr conftest*
838fi
839
840fi
841echo "$ac_t""$ac_cv_sizeof_float" 1>&6
842cat >> confdefs.h <<EOF
843#define SIZEOF_FLOAT $ac_cv_sizeof_float
844EOF
845
846
847echo $ac_n "checking size of double""... $ac_c" 1>&6
848echo "configure:849: checking size of double" >&5
849if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851else
852 if test "$cross_compiling" = yes; then
853 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
854else
855 cat > conftest.$ac_ext <<EOF
856#line 857 "configure"
857#include "confdefs.h"
858#include <stdio.h>
859main()
860{
861 FILE *f=fopen("conftestval", "w");
862 if (!f) exit(1);
863 fprintf(f, "%d\n", sizeof(double));
864 exit(0);
865}
866EOF
867if { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
868then
869 ac_cv_sizeof_double=`cat conftestval`
870else
871 echo "configure: failed program was:" >&5
872 cat conftest.$ac_ext >&5
873 rm -fr conftest*
874 ac_cv_sizeof_double=0
875fi
876rm -fr conftest*
877fi
878
879fi
880echo "$ac_t""$ac_cv_sizeof_double" 1>&6
881cat >> confdefs.h <<EOF
882#define SIZEOF_DOUBLE $ac_cv_sizeof_double
883EOF
884
885
886echo $ac_n "checking size of long double""... $ac_c" 1>&6
887echo "configure:888: checking size of long double" >&5
888if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
890else
891 if test "$cross_compiling" = yes; then
892 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
893else
894 cat > conftest.$ac_ext <<EOF
895#line 896 "configure"
896#include "confdefs.h"
897#include <stdio.h>
898main()
899{
900 FILE *f=fopen("conftestval", "w");
901 if (!f) exit(1);
902 fprintf(f, "%d\n", sizeof(long double));
903 exit(0);
904}
905EOF
906if { (eval echo configure:907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
907then
908 ac_cv_sizeof_long_double=`cat conftestval`
909else
910 echo "configure: failed program was:" >&5
911 cat conftest.$ac_ext >&5
912 rm -fr conftest*
913 ac_cv_sizeof_long_double=0
914fi
915rm -fr conftest*
916fi
917
918fi
919echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
920cat >> confdefs.h <<EOF
921#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
922EOF
923
924
925
926
927echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
928echo "configure:929: checking "for cfitsio lib"" >&5
929MACHDIR=`uname`-$CXX
930if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
931 cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
932elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
933 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
934elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
935 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
936elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
937 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
938elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
939 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
940elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
941 cfitslibdir='-L$(CFITSIOLIBDIR)'
942elif test -f $CFITSIODIR/libcfitsio.a; then
943 cfitslibdir='-L$(CFITSIODIR)'
944elif test -f /usr/local/lib/libcfitsio.a; then
945 cfitslibdir=""
946else
947 { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
948fi
949echo "$ac_t""$cfitslibdir" 1>&6
950
951
952echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
953echo "configure:954: checking "for cfitsio includes"" >&5
954if test -f $CFITSIODIR/fitsio.h; then
955 cfitsincdir='-I$(CFITSIODIR)'
956elif test -f /usr/local/include/fitsio.h; then
957 cfitsincdir=""
958else
959 { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
960fi
961echo "$ac_t""$cfitsincdir" 1>&6
962
963
964echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
965echo "configure:966: checking for sin in -lm" >&5
966ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
967if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969else
970 ac_save_LIBS="$LIBS"
971LIBS="-lm $LIBS"
972cat > conftest.$ac_ext <<EOF
973#line 974 "configure"
974#include "confdefs.h"
975/* Override any gcc2 internal prototype to avoid an error. */
976/* We use char because int might match the return type of a gcc2
977 builtin and then its argument prototype would still apply. */
978char sin();
979
980int main() {
981sin()
982; return 0; }
983EOF
984if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
985 rm -rf conftest*
986 eval "ac_cv_lib_$ac_lib_var=yes"
987else
988 echo "configure: failed program was:" >&5
989 cat conftest.$ac_ext >&5
990 rm -rf conftest*
991 eval "ac_cv_lib_$ac_lib_var=no"
992fi
993rm -f conftest*
994LIBS="$ac_save_LIBS"
995
996fi
997if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
998 echo "$ac_t""yes" 1>&6
999 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1000 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1001 cat >> confdefs.h <<EOF
1002#define $ac_tr_lib 1
1003EOF
1004
1005 LIBS="-lm $LIBS"
1006
1007else
1008 echo "$ac_t""no" 1>&6
1009fi
1010
1011
1012echo $ac_n "checking "for source files in distribution"""... $ac_c" 1>&6
1013echo "configure:1014: checking "for source files in distribution"" >&5
1014srcfiles=""
1015curd=`pwd`
1016cd $srcdir
1017for n in *.cc; do
1018 grep -q 'main(.*)' $n || srcfiles="$srcfiles $n"
1019done
1020cd $curd
1021
1022echo "$ac_t"""done"" 1>&6
1023
1024echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1025echo "configure:1026: checking how to run the C preprocessor" >&5
1026# On Suns, sometimes $CPP names a directory.
1027if test -n "$CPP" && test -d "$CPP"; then
1028 CPP=
1029fi
1030if test -z "$CPP"; then
1031if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033else
1034 # This must be in double quotes, not single quotes, because CPP may get
1035 # substituted into the Makefile and "${CC-cc}" will confuse make.
1036 CPP="${CC-cc} -E"
1037 # On the NeXT, cc -E runs the code through the compiler's parser,
1038 # not just through cpp.
1039 cat > conftest.$ac_ext <<EOF
1040#line 1041 "configure"
1041#include "confdefs.h"
1042#include <assert.h>
1043Syntax Error
1044EOF
1045ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1046{ (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1047ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1048if test -z "$ac_err"; then
1049 :
1050else
1051 echo "$ac_err" >&5
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1054 rm -rf conftest*
1055 CPP="${CC-cc} -E -traditional-cpp"
1056 cat > conftest.$ac_ext <<EOF
1057#line 1058 "configure"
1058#include "confdefs.h"
1059#include <assert.h>
1060Syntax Error
1061EOF
1062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1063{ (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1065if test -z "$ac_err"; then
1066 :
1067else
1068 echo "$ac_err" >&5
1069 echo "configure: failed program was:" >&5
1070 cat conftest.$ac_ext >&5
1071 rm -rf conftest*
1072 CPP="${CC-cc} -nologo -E"
1073 cat > conftest.$ac_ext <<EOF
1074#line 1075 "configure"
1075#include "confdefs.h"
1076#include <assert.h>
1077Syntax Error
1078EOF
1079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080{ (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082if test -z "$ac_err"; then
1083 :
1084else
1085 echo "$ac_err" >&5
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1088 rm -rf conftest*
1089 CPP=/lib/cpp
1090fi
1091rm -f conftest*
1092fi
1093rm -f conftest*
1094fi
1095rm -f conftest*
1096 ac_cv_prog_CPP="$CPP"
1097fi
1098 CPP="$ac_cv_prog_CPP"
1099else
1100 ac_cv_prog_CPP="$CPP"
1101fi
1102echo "$ac_t""$CPP" 1>&6
1103
1104echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1105echo "configure:1106: checking for ANSI C header files" >&5
1106if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1108else
1109 cat > conftest.$ac_ext <<EOF
1110#line 1111 "configure"
1111#include "confdefs.h"
1112#include <stdlib.h>
1113#include <stdarg.h>
1114#include <string.h>
1115#include <float.h>
1116EOF
1117ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1118{ (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1119ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1120if test -z "$ac_err"; then
1121 rm -rf conftest*
1122 ac_cv_header_stdc=yes
1123else
1124 echo "$ac_err" >&5
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1127 rm -rf conftest*
1128 ac_cv_header_stdc=no
1129fi
1130rm -f conftest*
1131
1132if test $ac_cv_header_stdc = yes; then
1133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1134cat > conftest.$ac_ext <<EOF
1135#line 1136 "configure"
1136#include "confdefs.h"
1137#include <string.h>
1138EOF
1139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1140 egrep "memchr" >/dev/null 2>&1; then
1141 :
1142else
1143 rm -rf conftest*
1144 ac_cv_header_stdc=no
1145fi
1146rm -f conftest*
1147
1148fi
1149
1150if test $ac_cv_header_stdc = yes; then
1151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1152cat > conftest.$ac_ext <<EOF
1153#line 1154 "configure"
1154#include "confdefs.h"
1155#include <stdlib.h>
1156EOF
1157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1158 egrep "free" >/dev/null 2>&1; then
1159 :
1160else
1161 rm -rf conftest*
1162 ac_cv_header_stdc=no
1163fi
1164rm -f conftest*
1165
1166fi
1167
1168if test $ac_cv_header_stdc = yes; then
1169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1170if test "$cross_compiling" = yes; then
1171 :
1172else
1173 cat > conftest.$ac_ext <<EOF
1174#line 1175 "configure"
1175#include "confdefs.h"
1176#include <ctype.h>
1177#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1178#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1179#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1180int main () { int i; for (i = 0; i < 256; i++)
1181if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1182exit (0); }
1183
1184EOF
1185if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1186then
1187 :
1188else
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1191 rm -fr conftest*
1192 ac_cv_header_stdc=no
1193fi
1194rm -fr conftest*
1195fi
1196
1197fi
1198fi
1199
1200echo "$ac_t""$ac_cv_header_stdc" 1>&6
1201if test $ac_cv_header_stdc = yes; then
1202 cat >> confdefs.h <<\EOF
1203#define STDC_HEADERS 1
1204EOF
1205
1206fi
1207
1208
1209trap '' 1 2 15
1210cat > confcache <<\EOF
1211# This file is a shell script that caches the results of configure
1212# tests run on this system so they can be shared between configure
1213# scripts and configure runs. It is not useful on other systems.
1214# If it contains results you don't want to keep, you may remove or edit it.
1215#
1216# By default, configure uses ./config.cache as the cache file,
1217# creating it if it does not exist already. You can give configure
1218# the --cache-file=FILE option to use a different cache file; that is
1219# what configure does when it calls configure scripts in
1220# subdirectories, so they share the cache.
1221# Giving --cache-file=/dev/null disables caching, for debugging configure.
1222# config.status only pays attention to the cache file if you give it the
1223# --recheck option to rerun configure.
1224#
1225EOF
1226# The following way of writing the cache mishandles newlines in values,
1227# but we know of no workaround that is simple, portable, and efficient.
1228# So, don't put newlines in cache variables' values.
1229# Ultrix sh set writes to stderr and can't be redirected directly,
1230# and sets the high bit in the cache file unless we assign to the vars.
1231(set) 2>&1 |
1232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1233 *ac_space=\ *)
1234 # `set' does not quote correctly, so add quotes (double-quote substitution
1235 # turns \\\\ into \\, and sed turns \\ into \).
1236 sed -n \
1237 -e "s/'/'\\\\''/g" \
1238 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1239 ;;
1240 *)
1241 # `set' quotes correctly as required by POSIX, so do not add quotes.
1242 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1243 ;;
1244 esac >> confcache
1245if cmp -s $cache_file confcache; then
1246 :
1247else
1248 if test -w $cache_file; then
1249 echo "updating cache $cache_file"
1250 cat confcache > $cache_file
1251 else
1252 echo "not updating unwritable cache $cache_file"
1253 fi
1254fi
1255rm -f confcache
1256
1257trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1258
1259test "x$prefix" = xNONE && prefix=$ac_default_prefix
1260# Let make expand exec_prefix.
1261test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1262
1263# Any assignment to VPATH causes Sun make to only execute
1264# the first set of double-colon rules, so remove it if not needed.
1265# If there is a colon in the path, we need to keep it.
1266if test "x$srcdir" = x.; then
1267 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1268fi
1269
1270trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1271
1272DEFS=-DHAVE_CONFIG_H
1273
1274# Without the "./", some shells look in PATH for config.status.
1275: ${CONFIG_STATUS=./config.status}
1276
1277echo creating $CONFIG_STATUS
1278rm -f $CONFIG_STATUS
1279cat > $CONFIG_STATUS <<EOF
1280#! /bin/sh
1281# Generated automatically by configure.
1282# Run this file to recreate the current configuration.
1283# This directory was configured as follows,
1284# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1285#
1286# $0 $ac_configure_args
1287#
1288# Compiler output produced by configure, useful for debugging
1289# configure, is in ./config.log if it exists.
1290
1291ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1292for ac_option
1293do
1294 case "\$ac_option" in
1295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1296 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1297 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1298 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1299 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1300 exit 0 ;;
1301 -help | --help | --hel | --he | --h)
1302 echo "\$ac_cs_usage"; exit 0 ;;
1303 *) echo "\$ac_cs_usage"; exit 1 ;;
1304 esac
1305done
1306
1307ac_given_srcdir=$srcdir
1308
1309trap 'rm -fr `echo "Makefile conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1310EOF
1311cat >> $CONFIG_STATUS <<EOF
1312
1313# Protect against being on the right side of a sed subst in config.status.
1314sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1315 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1316$ac_vpsub
1317$extrasub
1318s%@SHELL@%$SHELL%g
1319s%@CFLAGS@%$CFLAGS%g
1320s%@CPPFLAGS@%$CPPFLAGS%g
1321s%@CXXFLAGS@%$CXXFLAGS%g
1322s%@FFLAGS@%$FFLAGS%g
1323s%@DEFS@%$DEFS%g
1324s%@LDFLAGS@%$LDFLAGS%g
1325s%@LIBS@%$LIBS%g
1326s%@exec_prefix@%$exec_prefix%g
1327s%@prefix@%$prefix%g
1328s%@program_transform_name@%$program_transform_name%g
1329s%@bindir@%$bindir%g
1330s%@sbindir@%$sbindir%g
1331s%@libexecdir@%$libexecdir%g
1332s%@datadir@%$datadir%g
1333s%@sysconfdir@%$sysconfdir%g
1334s%@sharedstatedir@%$sharedstatedir%g
1335s%@localstatedir@%$localstatedir%g
1336s%@libdir@%$libdir%g
1337s%@includedir@%$includedir%g
1338s%@oldincludedir@%$oldincludedir%g
1339s%@infodir@%$infodir%g
1340s%@mandir@%$mandir%g
1341s%@use_sophya@%$use_sophya%g
1342s%@CXX@%$CXX%g
1343s%@cfitslibdir@%$cfitslibdir%g
1344s%@cfitsincdir@%$cfitsincdir%g
1345s%@srcfiles@%$srcfiles%g
1346s%@CPP@%$CPP%g
1347
1348CEOF
1349EOF
1350
1351cat >> $CONFIG_STATUS <<\EOF
1352
1353# Split the substitutions into bite-sized pieces for seds with
1354# small command number limits, like on Digital OSF/1 and HP-UX.
1355ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1356ac_file=1 # Number of current file.
1357ac_beg=1 # First line for current file.
1358ac_end=$ac_max_sed_cmds # Line after last line for current file.
1359ac_more_lines=:
1360ac_sed_cmds=""
1361while $ac_more_lines; do
1362 if test $ac_beg -gt 1; then
1363 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1364 else
1365 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1366 fi
1367 if test ! -s conftest.s$ac_file; then
1368 ac_more_lines=false
1369 rm -f conftest.s$ac_file
1370 else
1371 if test -z "$ac_sed_cmds"; then
1372 ac_sed_cmds="sed -f conftest.s$ac_file"
1373 else
1374 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1375 fi
1376 ac_file=`expr $ac_file + 1`
1377 ac_beg=$ac_end
1378 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1379 fi
1380done
1381if test -z "$ac_sed_cmds"; then
1382 ac_sed_cmds=cat
1383fi
1384EOF
1385
1386cat >> $CONFIG_STATUS <<EOF
1387
1388CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1389EOF
1390cat >> $CONFIG_STATUS <<\EOF
1391for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1393 case "$ac_file" in
1394 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1396 *) ac_file_in="${ac_file}.in" ;;
1397 esac
1398
1399 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1400
1401 # Remove last slash and all that follows it. Not all systems have dirname.
1402 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1404 # The file is in a subdirectory.
1405 test ! -d "$ac_dir" && mkdir "$ac_dir"
1406 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1407 # A "../" for each directory in $ac_dir_suffix.
1408 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1409 else
1410 ac_dir_suffix= ac_dots=
1411 fi
1412
1413 case "$ac_given_srcdir" in
1414 .) srcdir=.
1415 if test -z "$ac_dots"; then top_srcdir=.
1416 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1417 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1418 *) # Relative path.
1419 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1420 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1421 esac
1422
1423
1424 echo creating "$ac_file"
1425 rm -f "$ac_file"
1426 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1427 case "$ac_file" in
1428 *Makefile*) ac_comsub="1i\\
1429# $configure_input" ;;
1430 *) ac_comsub= ;;
1431 esac
1432
1433 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1434 sed -e "$ac_comsub
1435s%@configure_input@%$configure_input%g
1436s%@srcdir@%$srcdir%g
1437s%@top_srcdir@%$top_srcdir%g
1438" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1439fi; done
1440rm -f conftest.s*
1441
1442# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1443# NAME is the cpp macro being defined and VALUE is the value it is being given.
1444#
1445# ac_d sets the value in "#define NAME VALUE" lines.
1446ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1447ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1448ac_dC='\3'
1449ac_dD='%g'
1450# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1451ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1452ac_uB='\([ ]\)%\1#\2define\3'
1453ac_uC=' '
1454ac_uD='\4%g'
1455# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1456ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1457ac_eB='$%\1#\2define\3'
1458ac_eC=' '
1459ac_eD='%g'
1460
1461if test "${CONFIG_HEADERS+set}" != set; then
1462EOF
1463cat >> $CONFIG_STATUS <<EOF
1464 CONFIG_HEADERS="conf.h"
1465EOF
1466cat >> $CONFIG_STATUS <<\EOF
1467fi
1468for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1470 case "$ac_file" in
1471 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1472 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1473 *) ac_file_in="${ac_file}.in" ;;
1474 esac
1475
1476 echo creating $ac_file
1477
1478 rm -f conftest.frag conftest.in conftest.out
1479 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1480 cat $ac_file_inputs > conftest.in
1481
1482EOF
1483
1484# Transform confdefs.h into a sed script conftest.vals that substitutes
1485# the proper values into config.h.in to produce config.h. And first:
1486# Protect against being on the right side of a sed subst in config.status.
1487# Protect against being in an unquoted here document in config.status.
1488rm -f conftest.vals
1489cat > conftest.hdr <<\EOF
1490s/[\\&%]/\\&/g
1491s%[\\$`]%\\&%g
1492s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1493s%ac_d%ac_u%gp
1494s%ac_u%ac_e%gp
1495EOF
1496sed -n -f conftest.hdr confdefs.h > conftest.vals
1497rm -f conftest.hdr
1498
1499# This sed command replaces #undef with comments. This is necessary, for
1500# example, in the case of _POSIX_SOURCE, which is predefined and required
1501# on some systems where configure will not decide to define it.
1502cat >> conftest.vals <<\EOF
1503s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1504EOF
1505
1506# Break up conftest.vals because some shells have a limit on
1507# the size of here documents, and old seds have small limits too.
1508
1509rm -f conftest.tail
1510while :
1511do
1512 ac_lines=`grep -c . conftest.vals`
1513 # grep -c gives empty output for an empty file on some AIX systems.
1514 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1515 # Write a limited-size here document to conftest.frag.
1516 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1517 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1518 echo 'CEOF
1519 sed -f conftest.frag conftest.in > conftest.out
1520 rm -f conftest.in
1521 mv conftest.out conftest.in
1522' >> $CONFIG_STATUS
1523 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1524 rm -f conftest.vals
1525 mv conftest.tail conftest.vals
1526done
1527rm -f conftest.vals
1528
1529cat >> $CONFIG_STATUS <<\EOF
1530 rm -f conftest.frag conftest.h
1531 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1532 cat conftest.in >> conftest.h
1533 rm -f conftest.in
1534 if cmp -s $ac_file conftest.h 2>/dev/null; then
1535 echo "$ac_file is unchanged"
1536 rm -f conftest.h
1537 else
1538 # Remove last slash and all that follows it. Not all systems have dirname.
1539 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1540 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1541 # The file is in a subdirectory.
1542 test ! -d "$ac_dir" && mkdir "$ac_dir"
1543 fi
1544 rm -f $ac_file
1545 mv conftest.h $ac_file
1546 fi
1547fi; done
1548
1549EOF
1550cat >> $CONFIG_STATUS <<EOF
1551
1552EOF
1553cat >> $CONFIG_STATUS <<\EOF
1554
1555exit 0
1556EOF
1557chmod +x $CONFIG_STATUS
1558rm -fr confdefs* $ac_clean_files
1559test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1560
Note: See TracBrowser for help on using the repository browser.