source: Sophya/trunk/ArchTOIPipe/configure@ 1685

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

compatibilites diverses

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