source: Sophya/trunk/ArchTOIPipe/configure@ 3032

Last change on this file since 3032 was 2398, checked in by aubourg, 22 years ago

pio avec JMD a cote!

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