1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.57 for Duchamp 1.0.1. |
---|
4 | # |
---|
5 | # Report bugs to <matthew.whiting@csiro.au>. |
---|
6 | # |
---|
7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
8 | # Free Software Foundation, Inc. |
---|
9 | # This configure script is free software; the Free Software Foundation |
---|
10 | # gives unlimited permission to copy, distribute and modify it. |
---|
11 | ## --------------------- ## |
---|
12 | ## M4sh Initialization. ## |
---|
13 | ## --------------------- ## |
---|
14 | |
---|
15 | # Be Bourne compatible |
---|
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
17 | emulate sh |
---|
18 | NULLCMD=: |
---|
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
20 | # is contrary to our usage. Disable this feature. |
---|
21 | alias -g '${1+"$@"}'='"$@"' |
---|
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
23 | set -o posix |
---|
24 | fi |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
28 | as_unset=unset |
---|
29 | else |
---|
30 | as_unset=false |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
35 | $as_unset ENV MAIL MAILPATH |
---|
36 | PS1='$ ' |
---|
37 | PS2='> ' |
---|
38 | PS4='+ ' |
---|
39 | |
---|
40 | # NLS nuisances. |
---|
41 | for as_var in \ |
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
44 | LC_TELEPHONE LC_TIME |
---|
45 | do |
---|
46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
47 | eval $as_var=C; export $as_var |
---|
48 | else |
---|
49 | $as_unset $as_var |
---|
50 | fi |
---|
51 | done |
---|
52 | |
---|
53 | # Required to use basename. |
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
55 | as_expr=expr |
---|
56 | else |
---|
57 | as_expr=false |
---|
58 | fi |
---|
59 | |
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
61 | as_basename=basename |
---|
62 | else |
---|
63 | as_basename=false |
---|
64 | fi |
---|
65 | |
---|
66 | |
---|
67 | # Name of the executable. |
---|
68 | as_me=`$as_basename "$0" || |
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
70 | X"$0" : 'X\(//\)$' \| \ |
---|
71 | X"$0" : 'X\(/\)$' \| \ |
---|
72 | . : '\(.\)' 2>/dev/null || |
---|
73 | echo X/"$0" | |
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
77 | s/.*/./; q'` |
---|
78 | |
---|
79 | |
---|
80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
81 | # Avoid depending upon Character Ranges. |
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
85 | as_cr_digits='0123456789' |
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
87 | |
---|
88 | # The user is always right. |
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
90 | echo "#! /bin/sh" >conf$$.sh |
---|
91 | echo "exit 0" >>conf$$.sh |
---|
92 | chmod +x conf$$.sh |
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
94 | PATH_SEPARATOR=';' |
---|
95 | else |
---|
96 | PATH_SEPARATOR=: |
---|
97 | fi |
---|
98 | rm -f conf$$.sh |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | as_lineno_1=$LINENO |
---|
103 | as_lineno_2=$LINENO |
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
107 | # Find who we are. Look in the path if we contain no path at all |
---|
108 | # relative or not. |
---|
109 | case $0 in |
---|
110 | *[\\/]* ) as_myself=$0 ;; |
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
112 | for as_dir in $PATH |
---|
113 | do |
---|
114 | IFS=$as_save_IFS |
---|
115 | test -z "$as_dir" && as_dir=. |
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
117 | done |
---|
118 | |
---|
119 | ;; |
---|
120 | esac |
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
122 | # in which case we are not to be found in the path. |
---|
123 | if test "x$as_myself" = x; then |
---|
124 | as_myself=$0 |
---|
125 | fi |
---|
126 | if test ! -f "$as_myself"; then |
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
128 | { (exit 1); exit 1; }; } |
---|
129 | fi |
---|
130 | case $CONFIG_SHELL in |
---|
131 | '') |
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
134 | do |
---|
135 | IFS=$as_save_IFS |
---|
136 | test -z "$as_dir" && as_dir=. |
---|
137 | for as_base in sh bash ksh sh5; do |
---|
138 | case $as_dir in |
---|
139 | /*) |
---|
140 | if ("$as_dir/$as_base" -c ' |
---|
141 | as_lineno_1=$LINENO |
---|
142 | as_lineno_2=$LINENO |
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
148 | CONFIG_SHELL=$as_dir/$as_base |
---|
149 | export CONFIG_SHELL |
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
151 | fi;; |
---|
152 | esac |
---|
153 | done |
---|
154 | done |
---|
155 | ;; |
---|
156 | esac |
---|
157 | |
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
160 | # line-number line before each line; the second 'sed' does the real |
---|
161 | # work. The second script uses 'N' to pair each line-number line |
---|
162 | # with the numbered line, and appends trailing '-' during |
---|
163 | # substitution so that $LINENO is not a special case at line end. |
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
166 | sed '=' <$as_myself | |
---|
167 | sed ' |
---|
168 | N |
---|
169 | s,$,-, |
---|
170 | : loop |
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
172 | t loop |
---|
173 | s,-$,, |
---|
174 | s,^['$as_cr_digits']*\n,, |
---|
175 | ' >$as_me.lineno && |
---|
176 | chmod +x $as_me.lineno || |
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
178 | { (exit 1); exit 1; }; } |
---|
179 | |
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
181 | # (the dirname of $[0] is not the place where we might find the |
---|
182 | # original and so on. Autoconf is especially sensible to this). |
---|
183 | . ./$as_me.lineno |
---|
184 | # Exit status is that of the last command. |
---|
185 | exit |
---|
186 | } |
---|
187 | |
---|
188 | |
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
191 | ' ECHO_T=' ' ;; |
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
194 | esac |
---|
195 | |
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
197 | as_expr=expr |
---|
198 | else |
---|
199 | as_expr=false |
---|
200 | fi |
---|
201 | |
---|
202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
203 | echo >conf$$.file |
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
207 | if test -f conf$$.exe; then |
---|
208 | # Don't use ln at all; we don't have any links |
---|
209 | as_ln_s='cp -p' |
---|
210 | else |
---|
211 | as_ln_s='ln -s' |
---|
212 | fi |
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
214 | as_ln_s=ln |
---|
215 | else |
---|
216 | as_ln_s='cp -p' |
---|
217 | fi |
---|
218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
219 | |
---|
220 | if mkdir -p . 2>/dev/null; then |
---|
221 | as_mkdir_p=: |
---|
222 | else |
---|
223 | as_mkdir_p=false |
---|
224 | fi |
---|
225 | |
---|
226 | as_executable_p="test -f" |
---|
227 | |
---|
228 | # Sed expression to map a string onto a valid CPP name. |
---|
229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
230 | |
---|
231 | # Sed expression to map a string onto a valid variable name. |
---|
232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
233 | |
---|
234 | |
---|
235 | # IFS |
---|
236 | # We need space, tab and new line, in precisely that order. |
---|
237 | as_nl=' |
---|
238 | ' |
---|
239 | IFS=" $as_nl" |
---|
240 | |
---|
241 | # CDPATH. |
---|
242 | $as_unset CDPATH |
---|
243 | |
---|
244 | |
---|
245 | # Name of the host. |
---|
246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
247 | # so uname gets run too. |
---|
248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
249 | |
---|
250 | exec 6>&1 |
---|
251 | |
---|
252 | # |
---|
253 | # Initializations. |
---|
254 | # |
---|
255 | ac_default_prefix=/usr/local |
---|
256 | ac_config_libobj_dir=. |
---|
257 | cross_compiling=no |
---|
258 | subdirs= |
---|
259 | MFLAGS= |
---|
260 | MAKEFLAGS= |
---|
261 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
262 | |
---|
263 | # Maximum number of lines to put in a shell here document. |
---|
264 | # This variable seems obsolete. It should probably be removed, and |
---|
265 | # only ac_max_sed_lines should be used. |
---|
266 | : ${ac_max_here_lines=38} |
---|
267 | |
---|
268 | # Identity of this package. |
---|
269 | PACKAGE_NAME='Duchamp' |
---|
270 | PACKAGE_TARNAME='duchamp' |
---|
271 | PACKAGE_VERSION='1.0.1' |
---|
272 | PACKAGE_STRING='Duchamp 1.0.1' |
---|
273 | PACKAGE_BUGREPORT='matthew.whiting@csiro.au' |
---|
274 | |
---|
275 | ac_unique_file="src/param.cc" |
---|
276 | # Factoring default headers for most tests. |
---|
277 | ac_includes_default="\ |
---|
278 | #include <stdio.h> |
---|
279 | #if HAVE_SYS_TYPES_H |
---|
280 | # include <sys/types.h> |
---|
281 | #endif |
---|
282 | #if HAVE_SYS_STAT_H |
---|
283 | # include <sys/stat.h> |
---|
284 | #endif |
---|
285 | #if STDC_HEADERS |
---|
286 | # include <stdlib.h> |
---|
287 | # include <stddef.h> |
---|
288 | #else |
---|
289 | # if HAVE_STDLIB_H |
---|
290 | # include <stdlib.h> |
---|
291 | # endif |
---|
292 | #endif |
---|
293 | #if HAVE_STRING_H |
---|
294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
295 | # include <memory.h> |
---|
296 | # endif |
---|
297 | # include <string.h> |
---|
298 | #endif |
---|
299 | #if HAVE_STRINGS_H |
---|
300 | # include <strings.h> |
---|
301 | #endif |
---|
302 | #if HAVE_INTTYPES_H |
---|
303 | # include <inttypes.h> |
---|
304 | #else |
---|
305 | # if HAVE_STDINT_H |
---|
306 | # include <stdint.h> |
---|
307 | # endif |
---|
308 | #endif |
---|
309 | #if HAVE_UNISTD_H |
---|
310 | # include <unistd.h> |
---|
311 | #endif" |
---|
312 | |
---|
313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP EGREP POW_LIB LIBOBJS F77 FFLAGS ac_ct_F77 PGPLOTINC PGPLOTLIB CFITSIOINC CFITSIOLIB WCSINC WCSLIB LTLIBOBJS' |
---|
314 | ac_subst_files='' |
---|
315 | |
---|
316 | # Initialize some variables set by options. |
---|
317 | ac_init_help= |
---|
318 | ac_init_version=false |
---|
319 | # The variables have the same names as the options, with |
---|
320 | # dashes changed to underlines. |
---|
321 | cache_file=/dev/null |
---|
322 | exec_prefix=NONE |
---|
323 | no_create= |
---|
324 | no_recursion= |
---|
325 | prefix=NONE |
---|
326 | program_prefix=NONE |
---|
327 | program_suffix=NONE |
---|
328 | program_transform_name=s,x,x, |
---|
329 | silent= |
---|
330 | site= |
---|
331 | srcdir= |
---|
332 | verbose= |
---|
333 | x_includes=NONE |
---|
334 | x_libraries=NONE |
---|
335 | |
---|
336 | # Installation directory options. |
---|
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
338 | # and all the variables that are supposed to be based on exec_prefix |
---|
339 | # by default will actually change. |
---|
340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
341 | bindir='${exec_prefix}/bin' |
---|
342 | sbindir='${exec_prefix}/sbin' |
---|
343 | libexecdir='${exec_prefix}/libexec' |
---|
344 | datadir='${prefix}/share' |
---|
345 | sysconfdir='${prefix}/etc' |
---|
346 | sharedstatedir='${prefix}/com' |
---|
347 | localstatedir='${prefix}/var' |
---|
348 | libdir='${exec_prefix}/lib' |
---|
349 | includedir='${prefix}/include' |
---|
350 | oldincludedir='/usr/include' |
---|
351 | infodir='${prefix}/info' |
---|
352 | mandir='${prefix}/man' |
---|
353 | |
---|
354 | ac_prev= |
---|
355 | for ac_option |
---|
356 | do |
---|
357 | # If the previous option needs an argument, assign it. |
---|
358 | if test -n "$ac_prev"; then |
---|
359 | eval "$ac_prev=\$ac_option" |
---|
360 | ac_prev= |
---|
361 | continue |
---|
362 | fi |
---|
363 | |
---|
364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
365 | |
---|
366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
367 | |
---|
368 | case $ac_option in |
---|
369 | |
---|
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
371 | ac_prev=bindir ;; |
---|
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
373 | bindir=$ac_optarg ;; |
---|
374 | |
---|
375 | -build | --build | --buil | --bui | --bu) |
---|
376 | ac_prev=build_alias ;; |
---|
377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
378 | build_alias=$ac_optarg ;; |
---|
379 | |
---|
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
382 | ac_prev=cache_file ;; |
---|
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
385 | cache_file=$ac_optarg ;; |
---|
386 | |
---|
387 | --config-cache | -C) |
---|
388 | cache_file=config.cache ;; |
---|
389 | |
---|
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
391 | ac_prev=datadir ;; |
---|
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
393 | | --da=*) |
---|
394 | datadir=$ac_optarg ;; |
---|
395 | |
---|
396 | -disable-* | --disable-*) |
---|
397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
398 | # Reject names that are not valid shell variable names. |
---|
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
401 | { (exit 1); exit 1; }; } |
---|
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
403 | eval "enable_$ac_feature=no" ;; |
---|
404 | |
---|
405 | -enable-* | --enable-*) |
---|
406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
407 | # Reject names that are not valid shell variable names. |
---|
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
410 | { (exit 1); exit 1; }; } |
---|
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
412 | case $ac_option in |
---|
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
414 | *) ac_optarg=yes ;; |
---|
415 | esac |
---|
416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
417 | |
---|
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
420 | | --exec | --exe | --ex) |
---|
421 | ac_prev=exec_prefix ;; |
---|
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
424 | | --exec=* | --exe=* | --ex=*) |
---|
425 | exec_prefix=$ac_optarg ;; |
---|
426 | |
---|
427 | -gas | --gas | --ga | --g) |
---|
428 | # Obsolete; use --with-gas. |
---|
429 | with_gas=yes ;; |
---|
430 | |
---|
431 | -help | --help | --hel | --he | -h) |
---|
432 | ac_init_help=long ;; |
---|
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
434 | ac_init_help=recursive ;; |
---|
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
436 | ac_init_help=short ;; |
---|
437 | |
---|
438 | -host | --host | --hos | --ho) |
---|
439 | ac_prev=host_alias ;; |
---|
440 | -host=* | --host=* | --hos=* | --ho=*) |
---|
441 | host_alias=$ac_optarg ;; |
---|
442 | |
---|
443 | -includedir | --includedir | --includedi | --included | --include \ |
---|
444 | | --includ | --inclu | --incl | --inc) |
---|
445 | ac_prev=includedir ;; |
---|
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
448 | includedir=$ac_optarg ;; |
---|
449 | |
---|
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
451 | ac_prev=infodir ;; |
---|
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
453 | infodir=$ac_optarg ;; |
---|
454 | |
---|
455 | -libdir | --libdir | --libdi | --libd) |
---|
456 | ac_prev=libdir ;; |
---|
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
458 | libdir=$ac_optarg ;; |
---|
459 | |
---|
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
461 | | --libexe | --libex | --libe) |
---|
462 | ac_prev=libexecdir ;; |
---|
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
464 | | --libexe=* | --libex=* | --libe=*) |
---|
465 | libexecdir=$ac_optarg ;; |
---|
466 | |
---|
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
468 | | --localstate | --localstat | --localsta | --localst \ |
---|
469 | | --locals | --local | --loca | --loc | --lo) |
---|
470 | ac_prev=localstatedir ;; |
---|
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
474 | localstatedir=$ac_optarg ;; |
---|
475 | |
---|
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
477 | ac_prev=mandir ;; |
---|
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
479 | mandir=$ac_optarg ;; |
---|
480 | |
---|
481 | -nfp | --nfp | --nf) |
---|
482 | # Obsolete; use --without-fp. |
---|
483 | with_fp=no ;; |
---|
484 | |
---|
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
486 | | --no-cr | --no-c | -n) |
---|
487 | no_create=yes ;; |
---|
488 | |
---|
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
491 | no_recursion=yes ;; |
---|
492 | |
---|
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
495 | | --oldin | --oldi | --old | --ol | --o) |
---|
496 | ac_prev=oldincludedir ;; |
---|
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
500 | oldincludedir=$ac_optarg ;; |
---|
501 | |
---|
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
503 | ac_prev=prefix ;; |
---|
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
505 | prefix=$ac_optarg ;; |
---|
506 | |
---|
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
508 | | --program-pre | --program-pr | --program-p) |
---|
509 | ac_prev=program_prefix ;; |
---|
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
512 | program_prefix=$ac_optarg ;; |
---|
513 | |
---|
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
515 | | --program-suf | --program-su | --program-s) |
---|
516 | ac_prev=program_suffix ;; |
---|
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
519 | program_suffix=$ac_optarg ;; |
---|
520 | |
---|
521 | -program-transform-name | --program-transform-name \ |
---|
522 | | --program-transform-nam | --program-transform-na \ |
---|
523 | | --program-transform-n | --program-transform- \ |
---|
524 | | --program-transform | --program-transfor \ |
---|
525 | | --program-transfo | --program-transf \ |
---|
526 | | --program-trans | --program-tran \ |
---|
527 | | --progr-tra | --program-tr | --program-t) |
---|
528 | ac_prev=program_transform_name ;; |
---|
529 | -program-transform-name=* | --program-transform-name=* \ |
---|
530 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
531 | | --program-transform-n=* | --program-transform-=* \ |
---|
532 | | --program-transform=* | --program-transfor=* \ |
---|
533 | | --program-transfo=* | --program-transf=* \ |
---|
534 | | --program-trans=* | --program-tran=* \ |
---|
535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
536 | program_transform_name=$ac_optarg ;; |
---|
537 | |
---|
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
539 | | -silent | --silent | --silen | --sile | --sil) |
---|
540 | silent=yes ;; |
---|
541 | |
---|
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
543 | ac_prev=sbindir ;; |
---|
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
545 | | --sbi=* | --sb=*) |
---|
546 | sbindir=$ac_optarg ;; |
---|
547 | |
---|
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
550 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
551 | | --sha | --sh) |
---|
552 | ac_prev=sharedstatedir ;; |
---|
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
556 | | --sha=* | --sh=*) |
---|
557 | sharedstatedir=$ac_optarg ;; |
---|
558 | |
---|
559 | -site | --site | --sit) |
---|
560 | ac_prev=site ;; |
---|
561 | -site=* | --site=* | --sit=*) |
---|
562 | site=$ac_optarg ;; |
---|
563 | |
---|
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
565 | ac_prev=srcdir ;; |
---|
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
567 | srcdir=$ac_optarg ;; |
---|
568 | |
---|
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
570 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
571 | ac_prev=sysconfdir ;; |
---|
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
574 | sysconfdir=$ac_optarg ;; |
---|
575 | |
---|
576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
577 | ac_prev=target_alias ;; |
---|
578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
579 | target_alias=$ac_optarg ;; |
---|
580 | |
---|
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
582 | verbose=yes ;; |
---|
583 | |
---|
584 | -version | --version | --versio | --versi | --vers | -V) |
---|
585 | ac_init_version=: ;; |
---|
586 | |
---|
587 | -with-* | --with-*) |
---|
588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
589 | # Reject names that are not valid shell variable names. |
---|
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
592 | { (exit 1); exit 1; }; } |
---|
593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
594 | case $ac_option in |
---|
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
596 | *) ac_optarg=yes ;; |
---|
597 | esac |
---|
598 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
599 | |
---|
600 | -without-* | --without-*) |
---|
601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
602 | # Reject names that are not valid shell variable names. |
---|
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
605 | { (exit 1); exit 1; }; } |
---|
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
607 | eval "with_$ac_package=no" ;; |
---|
608 | |
---|
609 | --x) |
---|
610 | # Obsolete; use --with-x. |
---|
611 | with_x=yes ;; |
---|
612 | |
---|
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
614 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
615 | ac_prev=x_includes ;; |
---|
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
618 | x_includes=$ac_optarg ;; |
---|
619 | |
---|
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
622 | ac_prev=x_libraries ;; |
---|
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
625 | x_libraries=$ac_optarg ;; |
---|
626 | |
---|
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
628 | Try \`$0 --help' for more information." >&2 |
---|
629 | { (exit 1); exit 1; }; } |
---|
630 | ;; |
---|
631 | |
---|
632 | *=*) |
---|
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
634 | # Reject names that are not valid shell variable names. |
---|
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
637 | { (exit 1); exit 1; }; } |
---|
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
639 | eval "$ac_envvar='$ac_optarg'" |
---|
640 | export $ac_envvar ;; |
---|
641 | |
---|
642 | *) |
---|
643 | # FIXME: should be removed in autoconf 3.0. |
---|
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
648 | ;; |
---|
649 | |
---|
650 | esac |
---|
651 | done |
---|
652 | |
---|
653 | if test -n "$ac_prev"; then |
---|
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
656 | { (exit 1); exit 1; }; } |
---|
657 | fi |
---|
658 | |
---|
659 | # Be sure to have absolute paths. |
---|
660 | for ac_var in exec_prefix prefix |
---|
661 | do |
---|
662 | eval ac_val=$`echo $ac_var` |
---|
663 | case $ac_val in |
---|
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
666 | { (exit 1); exit 1; }; };; |
---|
667 | esac |
---|
668 | done |
---|
669 | |
---|
670 | # Be sure to have absolute paths. |
---|
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
672 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
673 | do |
---|
674 | eval ac_val=$`echo $ac_var` |
---|
675 | case $ac_val in |
---|
676 | [\\/$]* | ?:[\\/]* ) ;; |
---|
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
678 | { (exit 1); exit 1; }; };; |
---|
679 | esac |
---|
680 | done |
---|
681 | |
---|
682 | # There might be people who depend on the old broken behavior: `$host' |
---|
683 | # used to hold the argument of --host etc. |
---|
684 | # FIXME: To remove some day. |
---|
685 | build=$build_alias |
---|
686 | host=$host_alias |
---|
687 | target=$target_alias |
---|
688 | |
---|
689 | # FIXME: To remove some day. |
---|
690 | if test "x$host_alias" != x; then |
---|
691 | if test "x$build_alias" = x; then |
---|
692 | cross_compiling=maybe |
---|
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
695 | elif test "x$build_alias" != "x$host_alias"; then |
---|
696 | cross_compiling=yes |
---|
697 | fi |
---|
698 | fi |
---|
699 | |
---|
700 | ac_tool_prefix= |
---|
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
702 | |
---|
703 | test "$silent" = yes && exec 6>/dev/null |
---|
704 | |
---|
705 | |
---|
706 | # Find the source files, if location was not specified. |
---|
707 | if test -z "$srcdir"; then |
---|
708 | ac_srcdir_defaulted=yes |
---|
709 | # Try the directory containing this script, then its parent. |
---|
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
712 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
713 | X"$0" : 'X\(//\)$' \| \ |
---|
714 | X"$0" : 'X\(/\)' \| \ |
---|
715 | . : '\(.\)' 2>/dev/null || |
---|
716 | echo X"$0" | |
---|
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
720 | /^X\(\/\).*/{ s//\1/; q; } |
---|
721 | s/.*/./; q'` |
---|
722 | srcdir=$ac_confdir |
---|
723 | if test ! -r $srcdir/$ac_unique_file; then |
---|
724 | srcdir=.. |
---|
725 | fi |
---|
726 | else |
---|
727 | ac_srcdir_defaulted=no |
---|
728 | fi |
---|
729 | if test ! -r $srcdir/$ac_unique_file; then |
---|
730 | if test "$ac_srcdir_defaulted" = yes; then |
---|
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
732 | { (exit 1); exit 1; }; } |
---|
733 | else |
---|
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
735 | { (exit 1); exit 1; }; } |
---|
736 | fi |
---|
737 | fi |
---|
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
740 | { (exit 1); exit 1; }; } |
---|
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
742 | ac_env_build_alias_set=${build_alias+set} |
---|
743 | ac_env_build_alias_value=$build_alias |
---|
744 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
745 | ac_cv_env_build_alias_value=$build_alias |
---|
746 | ac_env_host_alias_set=${host_alias+set} |
---|
747 | ac_env_host_alias_value=$host_alias |
---|
748 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
749 | ac_cv_env_host_alias_value=$host_alias |
---|
750 | ac_env_target_alias_set=${target_alias+set} |
---|
751 | ac_env_target_alias_value=$target_alias |
---|
752 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
753 | ac_cv_env_target_alias_value=$target_alias |
---|
754 | ac_env_CXX_set=${CXX+set} |
---|
755 | ac_env_CXX_value=$CXX |
---|
756 | ac_cv_env_CXX_set=${CXX+set} |
---|
757 | ac_cv_env_CXX_value=$CXX |
---|
758 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
759 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
760 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
761 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
763 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
770 | ac_env_CC_set=${CC+set} |
---|
771 | ac_env_CC_value=$CC |
---|
772 | ac_cv_env_CC_set=${CC+set} |
---|
773 | ac_cv_env_CC_value=$CC |
---|
774 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
775 | ac_env_CFLAGS_value=$CFLAGS |
---|
776 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
777 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
778 | ac_env_CPP_set=${CPP+set} |
---|
779 | ac_env_CPP_value=$CPP |
---|
780 | ac_cv_env_CPP_set=${CPP+set} |
---|
781 | ac_cv_env_CPP_value=$CPP |
---|
782 | ac_env_F77_set=${F77+set} |
---|
783 | ac_env_F77_value=$F77 |
---|
784 | ac_cv_env_F77_set=${F77+set} |
---|
785 | ac_cv_env_F77_value=$F77 |
---|
786 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
787 | ac_env_FFLAGS_value=$FFLAGS |
---|
788 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
789 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
790 | |
---|
791 | # |
---|
792 | # Report the --help message. |
---|
793 | # |
---|
794 | if test "$ac_init_help" = "long"; then |
---|
795 | # Omit some internal or obsolete options to make the list less imposing. |
---|
796 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
797 | cat <<_ACEOF |
---|
798 | \`configure' configures Duchamp 1.0.1 to adapt to many kinds of systems. |
---|
799 | |
---|
800 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
801 | |
---|
802 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
803 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
804 | |
---|
805 | Defaults for the options are specified in brackets. |
---|
806 | |
---|
807 | Configuration: |
---|
808 | -h, --help display this help and exit |
---|
809 | --help=short display options specific to this package |
---|
810 | --help=recursive display the short help of all the included packages |
---|
811 | -V, --version display version information and exit |
---|
812 | -q, --quiet, --silent do not print \`checking...' messages |
---|
813 | --cache-file=FILE cache test results in FILE [disabled] |
---|
814 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
815 | -n, --no-create do not create output files |
---|
816 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
817 | |
---|
818 | _ACEOF |
---|
819 | |
---|
820 | cat <<_ACEOF |
---|
821 | Installation directories: |
---|
822 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
823 | [$ac_default_prefix] |
---|
824 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
825 | [PREFIX] |
---|
826 | |
---|
827 | By default, \`make install' will install all the files in |
---|
828 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
829 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
830 | for instance \`--prefix=\$HOME'. |
---|
831 | |
---|
832 | For better control, use the options below. |
---|
833 | |
---|
834 | Fine tuning of the installation directories: |
---|
835 | --bindir=DIR user executables [EPREFIX/bin] |
---|
836 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
837 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
838 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
839 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
840 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
841 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
842 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
843 | --includedir=DIR C header files [PREFIX/include] |
---|
844 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
845 | --infodir=DIR info documentation [PREFIX/info] |
---|
846 | --mandir=DIR man documentation [PREFIX/man] |
---|
847 | _ACEOF |
---|
848 | |
---|
849 | cat <<\_ACEOF |
---|
850 | |
---|
851 | X features: |
---|
852 | --x-includes=DIR X include files are in DIR |
---|
853 | --x-libraries=DIR X library files are in DIR |
---|
854 | _ACEOF |
---|
855 | fi |
---|
856 | |
---|
857 | if test -n "$ac_init_help"; then |
---|
858 | case $ac_init_help in |
---|
859 | short | recursive ) echo "Configuration of Duchamp 1.0.1:";; |
---|
860 | esac |
---|
861 | cat <<\_ACEOF |
---|
862 | |
---|
863 | Optional Packages: |
---|
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
866 | --with-x use the X Window System |
---|
867 | |
---|
868 | Some influential environment variables: |
---|
869 | CXX C++ compiler command |
---|
870 | CXXFLAGS C++ compiler flags |
---|
871 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
872 | nonstandard directory <lib dir> |
---|
873 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
874 | headers in a nonstandard directory <include dir> |
---|
875 | CC C compiler command |
---|
876 | CFLAGS C compiler flags |
---|
877 | CPP C preprocessor |
---|
878 | F77 Fortran 77 compiler command |
---|
879 | FFLAGS Fortran 77 compiler flags |
---|
880 | |
---|
881 | Use these variables to override the choices made by `configure' or to help |
---|
882 | it to find libraries and programs with nonstandard names/locations. |
---|
883 | |
---|
884 | Report bugs to <matthew.whiting@csiro.au>. |
---|
885 | _ACEOF |
---|
886 | fi |
---|
887 | |
---|
888 | if test "$ac_init_help" = "recursive"; then |
---|
889 | # If there are subdirs, report their specific --help. |
---|
890 | ac_popdir=`pwd` |
---|
891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
892 | test -d $ac_dir || continue |
---|
893 | ac_builddir=. |
---|
894 | |
---|
895 | if test "$ac_dir" != .; then |
---|
896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
897 | # A "../" for each directory in $ac_dir_suffix. |
---|
898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
899 | else |
---|
900 | ac_dir_suffix= ac_top_builddir= |
---|
901 | fi |
---|
902 | |
---|
903 | case $srcdir in |
---|
904 | .) # No --srcdir option. We are building in place. |
---|
905 | ac_srcdir=. |
---|
906 | if test -z "$ac_top_builddir"; then |
---|
907 | ac_top_srcdir=. |
---|
908 | else |
---|
909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
910 | fi ;; |
---|
911 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
912 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
913 | ac_top_srcdir=$srcdir ;; |
---|
914 | *) # Relative path. |
---|
915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
916 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
917 | esac |
---|
918 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
919 | # absolute. |
---|
920 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
921 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
922 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
923 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
924 | |
---|
925 | cd $ac_dir |
---|
926 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
927 | if test -f $ac_srcdir/configure.gnu; then |
---|
928 | echo |
---|
929 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
930 | elif test -f $ac_srcdir/configure; then |
---|
931 | echo |
---|
932 | $SHELL $ac_srcdir/configure --help=recursive |
---|
933 | elif test -f $ac_srcdir/configure.ac || |
---|
934 | test -f $ac_srcdir/configure.in; then |
---|
935 | echo |
---|
936 | $ac_configure --help |
---|
937 | else |
---|
938 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
939 | fi |
---|
940 | cd $ac_popdir |
---|
941 | done |
---|
942 | fi |
---|
943 | |
---|
944 | test -n "$ac_init_help" && exit 0 |
---|
945 | if $ac_init_version; then |
---|
946 | cat <<\_ACEOF |
---|
947 | Duchamp configure 1.0.1 |
---|
948 | generated by GNU Autoconf 2.57 |
---|
949 | |
---|
950 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
951 | Free Software Foundation, Inc. |
---|
952 | This configure script is free software; the Free Software Foundation |
---|
953 | gives unlimited permission to copy, distribute and modify it. |
---|
954 | _ACEOF |
---|
955 | exit 0 |
---|
956 | fi |
---|
957 | exec 5>config.log |
---|
958 | cat >&5 <<_ACEOF |
---|
959 | This file contains any messages produced by compilers while |
---|
960 | running configure, to aid debugging if configure makes a mistake. |
---|
961 | |
---|
962 | It was created by Duchamp $as_me 1.0.1, which was |
---|
963 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
964 | |
---|
965 | $ $0 $@ |
---|
966 | |
---|
967 | _ACEOF |
---|
968 | { |
---|
969 | cat <<_ASUNAME |
---|
970 | ## --------- ## |
---|
971 | ## Platform. ## |
---|
972 | ## --------- ## |
---|
973 | |
---|
974 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
975 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
976 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
977 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
978 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
979 | |
---|
980 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
981 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
982 | |
---|
983 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
984 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
985 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
986 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
987 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
988 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
989 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
990 | |
---|
991 | _ASUNAME |
---|
992 | |
---|
993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
994 | for as_dir in $PATH |
---|
995 | do |
---|
996 | IFS=$as_save_IFS |
---|
997 | test -z "$as_dir" && as_dir=. |
---|
998 | echo "PATH: $as_dir" |
---|
999 | done |
---|
1000 | |
---|
1001 | } >&5 |
---|
1002 | |
---|
1003 | cat >&5 <<_ACEOF |
---|
1004 | |
---|
1005 | |
---|
1006 | ## ----------- ## |
---|
1007 | ## Core tests. ## |
---|
1008 | ## ----------- ## |
---|
1009 | |
---|
1010 | _ACEOF |
---|
1011 | |
---|
1012 | |
---|
1013 | # Keep a trace of the command line. |
---|
1014 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1015 | # Strip out --silent because we don't want to record it for future runs. |
---|
1016 | # Also quote any args containing shell meta-characters. |
---|
1017 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1018 | ac_configure_args= |
---|
1019 | ac_configure_args0= |
---|
1020 | ac_configure_args1= |
---|
1021 | ac_sep= |
---|
1022 | ac_must_keep_next=false |
---|
1023 | for ac_pass in 1 2 |
---|
1024 | do |
---|
1025 | for ac_arg |
---|
1026 | do |
---|
1027 | case $ac_arg in |
---|
1028 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1029 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1030 | | -silent | --silent | --silen | --sile | --sil) |
---|
1031 | continue ;; |
---|
1032 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1033 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1034 | esac |
---|
1035 | case $ac_pass in |
---|
1036 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1037 | 2) |
---|
1038 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1039 | if test $ac_must_keep_next = true; then |
---|
1040 | ac_must_keep_next=false # Got value, back to normal. |
---|
1041 | else |
---|
1042 | case $ac_arg in |
---|
1043 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1044 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1045 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1046 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1047 | case "$ac_configure_args0 " in |
---|
1048 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1049 | esac |
---|
1050 | ;; |
---|
1051 | -* ) ac_must_keep_next=true ;; |
---|
1052 | esac |
---|
1053 | fi |
---|
1054 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1055 | # Get rid of the leading space. |
---|
1056 | ac_sep=" " |
---|
1057 | ;; |
---|
1058 | esac |
---|
1059 | done |
---|
1060 | done |
---|
1061 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1062 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1063 | |
---|
1064 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1065 | # config.log. We remove comments because anyway the quotes in there |
---|
1066 | # would cause problems or look ugly. |
---|
1067 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1068 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1069 | trap 'exit_status=$? |
---|
1070 | # Save into config.log some information that might help in debugging. |
---|
1071 | { |
---|
1072 | echo |
---|
1073 | |
---|
1074 | cat <<\_ASBOX |
---|
1075 | ## ---------------- ## |
---|
1076 | ## Cache variables. ## |
---|
1077 | ## ---------------- ## |
---|
1078 | _ASBOX |
---|
1079 | echo |
---|
1080 | # The following way of writing the cache mishandles newlines in values, |
---|
1081 | { |
---|
1082 | (set) 2>&1 | |
---|
1083 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1084 | *ac_space=\ *) |
---|
1085 | sed -n \ |
---|
1086 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1087 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1088 | ;; |
---|
1089 | *) |
---|
1090 | sed -n \ |
---|
1091 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1092 | ;; |
---|
1093 | esac; |
---|
1094 | } |
---|
1095 | echo |
---|
1096 | |
---|
1097 | cat <<\_ASBOX |
---|
1098 | ## ----------------- ## |
---|
1099 | ## Output variables. ## |
---|
1100 | ## ----------------- ## |
---|
1101 | _ASBOX |
---|
1102 | echo |
---|
1103 | for ac_var in $ac_subst_vars |
---|
1104 | do |
---|
1105 | eval ac_val=$`echo $ac_var` |
---|
1106 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1107 | done | sort |
---|
1108 | echo |
---|
1109 | |
---|
1110 | if test -n "$ac_subst_files"; then |
---|
1111 | cat <<\_ASBOX |
---|
1112 | ## ------------- ## |
---|
1113 | ## Output files. ## |
---|
1114 | ## ------------- ## |
---|
1115 | _ASBOX |
---|
1116 | echo |
---|
1117 | for ac_var in $ac_subst_files |
---|
1118 | do |
---|
1119 | eval ac_val=$`echo $ac_var` |
---|
1120 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1121 | done | sort |
---|
1122 | echo |
---|
1123 | fi |
---|
1124 | |
---|
1125 | if test -s confdefs.h; then |
---|
1126 | cat <<\_ASBOX |
---|
1127 | ## ----------- ## |
---|
1128 | ## confdefs.h. ## |
---|
1129 | ## ----------- ## |
---|
1130 | _ASBOX |
---|
1131 | echo |
---|
1132 | sed "/^$/d" confdefs.h | sort |
---|
1133 | echo |
---|
1134 | fi |
---|
1135 | test "$ac_signal" != 0 && |
---|
1136 | echo "$as_me: caught signal $ac_signal" |
---|
1137 | echo "$as_me: exit $exit_status" |
---|
1138 | } >&5 |
---|
1139 | rm -f core core.* *.core && |
---|
1140 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1141 | exit $exit_status |
---|
1142 | ' 0 |
---|
1143 | for ac_signal in 1 2 13 15; do |
---|
1144 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1145 | done |
---|
1146 | ac_signal=0 |
---|
1147 | |
---|
1148 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1149 | rm -rf conftest* confdefs.h |
---|
1150 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1151 | echo >confdefs.h |
---|
1152 | |
---|
1153 | # Predefined preprocessor variables. |
---|
1154 | |
---|
1155 | cat >>confdefs.h <<_ACEOF |
---|
1156 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1157 | _ACEOF |
---|
1158 | |
---|
1159 | |
---|
1160 | cat >>confdefs.h <<_ACEOF |
---|
1161 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1162 | _ACEOF |
---|
1163 | |
---|
1164 | |
---|
1165 | cat >>confdefs.h <<_ACEOF |
---|
1166 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1167 | _ACEOF |
---|
1168 | |
---|
1169 | |
---|
1170 | cat >>confdefs.h <<_ACEOF |
---|
1171 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1172 | _ACEOF |
---|
1173 | |
---|
1174 | |
---|
1175 | cat >>confdefs.h <<_ACEOF |
---|
1176 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1177 | _ACEOF |
---|
1178 | |
---|
1179 | |
---|
1180 | # Let the site file select an alternate cache file if it wants to. |
---|
1181 | # Prefer explicitly selected file to automatically selected ones. |
---|
1182 | if test -z "$CONFIG_SITE"; then |
---|
1183 | if test "x$prefix" != xNONE; then |
---|
1184 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1185 | else |
---|
1186 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1187 | fi |
---|
1188 | fi |
---|
1189 | for ac_site_file in $CONFIG_SITE; do |
---|
1190 | if test -r "$ac_site_file"; then |
---|
1191 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1192 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1193 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1194 | . "$ac_site_file" |
---|
1195 | fi |
---|
1196 | done |
---|
1197 | |
---|
1198 | if test -r "$cache_file"; then |
---|
1199 | # Some versions of bash will fail to source /dev/null (special |
---|
1200 | # files actually), so we avoid doing that. |
---|
1201 | if test -f "$cache_file"; then |
---|
1202 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1203 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1204 | case $cache_file in |
---|
1205 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1206 | *) . ./$cache_file;; |
---|
1207 | esac |
---|
1208 | fi |
---|
1209 | else |
---|
1210 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1211 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1212 | >$cache_file |
---|
1213 | fi |
---|
1214 | |
---|
1215 | # Check that the precious variables saved in the cache have kept the same |
---|
1216 | # value. |
---|
1217 | ac_cache_corrupted=false |
---|
1218 | for ac_var in `(set) 2>&1 | |
---|
1219 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1220 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1221 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1222 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1223 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1224 | case $ac_old_set,$ac_new_set in |
---|
1225 | set,) |
---|
1226 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1227 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1228 | ac_cache_corrupted=: ;; |
---|
1229 | ,set) |
---|
1230 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1231 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1232 | ac_cache_corrupted=: ;; |
---|
1233 | ,);; |
---|
1234 | *) |
---|
1235 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1236 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1237 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1238 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1239 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1240 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1241 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1242 | ac_cache_corrupted=: |
---|
1243 | fi;; |
---|
1244 | esac |
---|
1245 | # Pass precious variables to config.status. |
---|
1246 | if test "$ac_new_set" = set; then |
---|
1247 | case $ac_new_val in |
---|
1248 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1249 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1250 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1251 | esac |
---|
1252 | case " $ac_configure_args " in |
---|
1253 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1254 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1255 | esac |
---|
1256 | fi |
---|
1257 | done |
---|
1258 | if $ac_cache_corrupted; then |
---|
1259 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1260 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1261 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1262 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1263 | { (exit 1); exit 1; }; } |
---|
1264 | fi |
---|
1265 | |
---|
1266 | ac_ext=c |
---|
1267 | ac_cpp='$CPP $CPPFLAGS' |
---|
1268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1271 | |
---|
1272 | |
---|
1273 | |
---|
1274 | |
---|
1275 | |
---|
1276 | |
---|
1277 | |
---|
1278 | |
---|
1279 | |
---|
1280 | |
---|
1281 | |
---|
1282 | |
---|
1283 | |
---|
1284 | |
---|
1285 | |
---|
1286 | |
---|
1287 | |
---|
1288 | |
---|
1289 | |
---|
1290 | |
---|
1291 | |
---|
1292 | |
---|
1293 | |
---|
1294 | |
---|
1295 | |
---|
1296 | |
---|
1297 | |
---|
1298 | |
---|
1299 | ac_config_headers="$ac_config_headers src/config.h" |
---|
1300 | |
---|
1301 | |
---|
1302 | # Checks for programs. |
---|
1303 | ac_ext=cc |
---|
1304 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1305 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1306 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1307 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1308 | if test -n "$ac_tool_prefix"; then |
---|
1309 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1310 | do |
---|
1311 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1312 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1315 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1317 | else |
---|
1318 | if test -n "$CXX"; then |
---|
1319 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1320 | else |
---|
1321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1322 | for as_dir in $PATH |
---|
1323 | do |
---|
1324 | IFS=$as_save_IFS |
---|
1325 | test -z "$as_dir" && as_dir=. |
---|
1326 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1328 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1330 | break 2 |
---|
1331 | fi |
---|
1332 | done |
---|
1333 | done |
---|
1334 | |
---|
1335 | fi |
---|
1336 | fi |
---|
1337 | CXX=$ac_cv_prog_CXX |
---|
1338 | if test -n "$CXX"; then |
---|
1339 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1340 | echo "${ECHO_T}$CXX" >&6 |
---|
1341 | else |
---|
1342 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1343 | echo "${ECHO_T}no" >&6 |
---|
1344 | fi |
---|
1345 | |
---|
1346 | test -n "$CXX" && break |
---|
1347 | done |
---|
1348 | fi |
---|
1349 | if test -z "$CXX"; then |
---|
1350 | ac_ct_CXX=$CXX |
---|
1351 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1352 | do |
---|
1353 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1354 | set dummy $ac_prog; ac_word=$2 |
---|
1355 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1357 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1359 | else |
---|
1360 | if test -n "$ac_ct_CXX"; then |
---|
1361 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1362 | else |
---|
1363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1364 | for as_dir in $PATH |
---|
1365 | do |
---|
1366 | IFS=$as_save_IFS |
---|
1367 | test -z "$as_dir" && as_dir=. |
---|
1368 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1369 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1370 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1372 | break 2 |
---|
1373 | fi |
---|
1374 | done |
---|
1375 | done |
---|
1376 | |
---|
1377 | fi |
---|
1378 | fi |
---|
1379 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1380 | if test -n "$ac_ct_CXX"; then |
---|
1381 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1382 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1383 | else |
---|
1384 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1385 | echo "${ECHO_T}no" >&6 |
---|
1386 | fi |
---|
1387 | |
---|
1388 | test -n "$ac_ct_CXX" && break |
---|
1389 | done |
---|
1390 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1391 | |
---|
1392 | CXX=$ac_ct_CXX |
---|
1393 | fi |
---|
1394 | |
---|
1395 | |
---|
1396 | # Provide some information about the compiler. |
---|
1397 | echo "$as_me:$LINENO:" \ |
---|
1398 | "checking for C++ compiler version" >&5 |
---|
1399 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1400 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1401 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1402 | ac_status=$? |
---|
1403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1404 | (exit $ac_status); } |
---|
1405 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1406 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1407 | ac_status=$? |
---|
1408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1409 | (exit $ac_status); } |
---|
1410 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1411 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1412 | ac_status=$? |
---|
1413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1414 | (exit $ac_status); } |
---|
1415 | |
---|
1416 | cat >conftest.$ac_ext <<_ACEOF |
---|
1417 | #line $LINENO "configure" |
---|
1418 | /* confdefs.h. */ |
---|
1419 | _ACEOF |
---|
1420 | cat confdefs.h >>conftest.$ac_ext |
---|
1421 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1422 | /* end confdefs.h. */ |
---|
1423 | |
---|
1424 | int |
---|
1425 | main () |
---|
1426 | { |
---|
1427 | |
---|
1428 | ; |
---|
1429 | return 0; |
---|
1430 | } |
---|
1431 | _ACEOF |
---|
1432 | ac_clean_files_save=$ac_clean_files |
---|
1433 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1434 | # Try to create an executable without -o first, disregard a.out. |
---|
1435 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1436 | # of exeext. |
---|
1437 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
---|
1438 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
---|
1439 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1440 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1441 | (eval $ac_link_default) 2>&5 |
---|
1442 | ac_status=$? |
---|
1443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1444 | (exit $ac_status); }; then |
---|
1445 | # Find the output, starting from the most likely. This scheme is |
---|
1446 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1447 | # resort. |
---|
1448 | |
---|
1449 | # Be careful to initialize this variable, since it used to be cached. |
---|
1450 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1451 | ac_cv_exeext= |
---|
1452 | # b.out is created by i960 compilers. |
---|
1453 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1454 | do |
---|
1455 | test -f "$ac_file" || continue |
---|
1456 | case $ac_file in |
---|
1457 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1458 | ;; |
---|
1459 | conftest.$ac_ext ) |
---|
1460 | # This is the source file. |
---|
1461 | ;; |
---|
1462 | [ab].out ) |
---|
1463 | # We found the default executable, but exeext='' is most |
---|
1464 | # certainly right. |
---|
1465 | break;; |
---|
1466 | *.* ) |
---|
1467 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1468 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1469 | # but it would be cool to find out if it's true. Does anybody |
---|
1470 | # maintain Libtool? --akim. |
---|
1471 | export ac_cv_exeext |
---|
1472 | break;; |
---|
1473 | * ) |
---|
1474 | break;; |
---|
1475 | esac |
---|
1476 | done |
---|
1477 | else |
---|
1478 | echo "$as_me: failed program was:" >&5 |
---|
1479 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1480 | |
---|
1481 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1482 | See \`config.log' for more details." >&5 |
---|
1483 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1484 | See \`config.log' for more details." >&2;} |
---|
1485 | { (exit 77); exit 77; }; } |
---|
1486 | fi |
---|
1487 | |
---|
1488 | ac_exeext=$ac_cv_exeext |
---|
1489 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1490 | echo "${ECHO_T}$ac_file" >&6 |
---|
1491 | |
---|
1492 | # Check the compiler produces executables we can run. If not, either |
---|
1493 | # the compiler is broken, or we cross compile. |
---|
1494 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1495 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
1496 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1497 | # If not cross compiling, check that we can run a simple program. |
---|
1498 | if test "$cross_compiling" != yes; then |
---|
1499 | if { ac_try='./$ac_file' |
---|
1500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1501 | (eval $ac_try) 2>&5 |
---|
1502 | ac_status=$? |
---|
1503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1504 | (exit $ac_status); }; }; then |
---|
1505 | cross_compiling=no |
---|
1506 | else |
---|
1507 | if test "$cross_compiling" = maybe; then |
---|
1508 | cross_compiling=yes |
---|
1509 | else |
---|
1510 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
1511 | If you meant to cross compile, use \`--host'. |
---|
1512 | See \`config.log' for more details." >&5 |
---|
1513 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
1514 | If you meant to cross compile, use \`--host'. |
---|
1515 | See \`config.log' for more details." >&2;} |
---|
1516 | { (exit 1); exit 1; }; } |
---|
1517 | fi |
---|
1518 | fi |
---|
1519 | fi |
---|
1520 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1521 | echo "${ECHO_T}yes" >&6 |
---|
1522 | |
---|
1523 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1524 | ac_clean_files=$ac_clean_files_save |
---|
1525 | # Check the compiler produces executables we can run. If not, either |
---|
1526 | # the compiler is broken, or we cross compile. |
---|
1527 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1528 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1529 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1530 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1531 | |
---|
1532 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1533 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1535 | (eval $ac_link) 2>&5 |
---|
1536 | ac_status=$? |
---|
1537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1538 | (exit $ac_status); }; then |
---|
1539 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1540 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1541 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1542 | # `rm'. |
---|
1543 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1544 | test -f "$ac_file" || continue |
---|
1545 | case $ac_file in |
---|
1546 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1547 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1548 | export ac_cv_exeext |
---|
1549 | break;; |
---|
1550 | * ) break;; |
---|
1551 | esac |
---|
1552 | done |
---|
1553 | else |
---|
1554 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1555 | See \`config.log' for more details." >&5 |
---|
1556 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
1557 | See \`config.log' for more details." >&2;} |
---|
1558 | { (exit 1); exit 1; }; } |
---|
1559 | fi |
---|
1560 | |
---|
1561 | rm -f conftest$ac_cv_exeext |
---|
1562 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
1563 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
1564 | |
---|
1565 | rm -f conftest.$ac_ext |
---|
1566 | EXEEXT=$ac_cv_exeext |
---|
1567 | ac_exeext=$EXEEXT |
---|
1568 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
1569 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
1570 | if test "${ac_cv_objext+set}" = set; then |
---|
1571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1572 | else |
---|
1573 | cat >conftest.$ac_ext <<_ACEOF |
---|
1574 | #line $LINENO "configure" |
---|
1575 | /* confdefs.h. */ |
---|
1576 | _ACEOF |
---|
1577 | cat confdefs.h >>conftest.$ac_ext |
---|
1578 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1579 | /* end confdefs.h. */ |
---|
1580 | |
---|
1581 | int |
---|
1582 | main () |
---|
1583 | { |
---|
1584 | |
---|
1585 | ; |
---|
1586 | return 0; |
---|
1587 | } |
---|
1588 | _ACEOF |
---|
1589 | rm -f conftest.o conftest.obj |
---|
1590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1591 | (eval $ac_compile) 2>&5 |
---|
1592 | ac_status=$? |
---|
1593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1594 | (exit $ac_status); }; then |
---|
1595 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
1596 | case $ac_file in |
---|
1597 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
1598 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
1599 | break;; |
---|
1600 | esac |
---|
1601 | done |
---|
1602 | else |
---|
1603 | echo "$as_me: failed program was:" >&5 |
---|
1604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1605 | |
---|
1606 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
1607 | See \`config.log' for more details." >&5 |
---|
1608 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
1609 | See \`config.log' for more details." >&2;} |
---|
1610 | { (exit 1); exit 1; }; } |
---|
1611 | fi |
---|
1612 | |
---|
1613 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
1614 | fi |
---|
1615 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
1616 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
1617 | OBJEXT=$ac_cv_objext |
---|
1618 | ac_objext=$OBJEXT |
---|
1619 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
1620 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
1621 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
1622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1623 | else |
---|
1624 | cat >conftest.$ac_ext <<_ACEOF |
---|
1625 | #line $LINENO "configure" |
---|
1626 | /* confdefs.h. */ |
---|
1627 | _ACEOF |
---|
1628 | cat confdefs.h >>conftest.$ac_ext |
---|
1629 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1630 | /* end confdefs.h. */ |
---|
1631 | |
---|
1632 | int |
---|
1633 | main () |
---|
1634 | { |
---|
1635 | #ifndef __GNUC__ |
---|
1636 | choke me |
---|
1637 | #endif |
---|
1638 | |
---|
1639 | ; |
---|
1640 | return 0; |
---|
1641 | } |
---|
1642 | _ACEOF |
---|
1643 | rm -f conftest.$ac_objext |
---|
1644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1645 | (eval $ac_compile) 2>&5 |
---|
1646 | ac_status=$? |
---|
1647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1648 | (exit $ac_status); } && |
---|
1649 | { ac_try='test -s conftest.$ac_objext' |
---|
1650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1651 | (eval $ac_try) 2>&5 |
---|
1652 | ac_status=$? |
---|
1653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1654 | (exit $ac_status); }; }; then |
---|
1655 | ac_compiler_gnu=yes |
---|
1656 | else |
---|
1657 | echo "$as_me: failed program was:" >&5 |
---|
1658 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1659 | |
---|
1660 | ac_compiler_gnu=no |
---|
1661 | fi |
---|
1662 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
1663 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
1664 | |
---|
1665 | fi |
---|
1666 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
1667 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
1668 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
1669 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
1670 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
1671 | CXXFLAGS="-g" |
---|
1672 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
1673 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
1674 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1676 | else |
---|
1677 | cat >conftest.$ac_ext <<_ACEOF |
---|
1678 | #line $LINENO "configure" |
---|
1679 | /* confdefs.h. */ |
---|
1680 | _ACEOF |
---|
1681 | cat confdefs.h >>conftest.$ac_ext |
---|
1682 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1683 | /* end confdefs.h. */ |
---|
1684 | |
---|
1685 | int |
---|
1686 | main () |
---|
1687 | { |
---|
1688 | |
---|
1689 | ; |
---|
1690 | return 0; |
---|
1691 | } |
---|
1692 | _ACEOF |
---|
1693 | rm -f conftest.$ac_objext |
---|
1694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1695 | (eval $ac_compile) 2>&5 |
---|
1696 | ac_status=$? |
---|
1697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1698 | (exit $ac_status); } && |
---|
1699 | { ac_try='test -s conftest.$ac_objext' |
---|
1700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1701 | (eval $ac_try) 2>&5 |
---|
1702 | ac_status=$? |
---|
1703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1704 | (exit $ac_status); }; }; then |
---|
1705 | ac_cv_prog_cxx_g=yes |
---|
1706 | else |
---|
1707 | echo "$as_me: failed program was:" >&5 |
---|
1708 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1709 | |
---|
1710 | ac_cv_prog_cxx_g=no |
---|
1711 | fi |
---|
1712 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
1713 | fi |
---|
1714 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
1715 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
1716 | if test "$ac_test_CXXFLAGS" = set; then |
---|
1717 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
1718 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
1719 | if test "$GXX" = yes; then |
---|
1720 | CXXFLAGS="-g -O2" |
---|
1721 | else |
---|
1722 | CXXFLAGS="-g" |
---|
1723 | fi |
---|
1724 | else |
---|
1725 | if test "$GXX" = yes; then |
---|
1726 | CXXFLAGS="-O2" |
---|
1727 | else |
---|
1728 | CXXFLAGS= |
---|
1729 | fi |
---|
1730 | fi |
---|
1731 | for ac_declaration in \ |
---|
1732 | ''\ |
---|
1733 | '#include <stdlib.h>' \ |
---|
1734 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
1735 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
1736 | 'extern "C" void exit (int) throw ();' \ |
---|
1737 | 'extern "C" void exit (int);' \ |
---|
1738 | 'void exit (int);' |
---|
1739 | do |
---|
1740 | cat >conftest.$ac_ext <<_ACEOF |
---|
1741 | #line $LINENO "configure" |
---|
1742 | /* confdefs.h. */ |
---|
1743 | _ACEOF |
---|
1744 | cat confdefs.h >>conftest.$ac_ext |
---|
1745 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1746 | /* end confdefs.h. */ |
---|
1747 | #include <stdlib.h> |
---|
1748 | $ac_declaration |
---|
1749 | int |
---|
1750 | main () |
---|
1751 | { |
---|
1752 | exit (42); |
---|
1753 | ; |
---|
1754 | return 0; |
---|
1755 | } |
---|
1756 | _ACEOF |
---|
1757 | rm -f conftest.$ac_objext |
---|
1758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1759 | (eval $ac_compile) 2>&5 |
---|
1760 | ac_status=$? |
---|
1761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1762 | (exit $ac_status); } && |
---|
1763 | { ac_try='test -s conftest.$ac_objext' |
---|
1764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1765 | (eval $ac_try) 2>&5 |
---|
1766 | ac_status=$? |
---|
1767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1768 | (exit $ac_status); }; }; then |
---|
1769 | : |
---|
1770 | else |
---|
1771 | echo "$as_me: failed program was:" >&5 |
---|
1772 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1773 | |
---|
1774 | continue |
---|
1775 | fi |
---|
1776 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
1777 | cat >conftest.$ac_ext <<_ACEOF |
---|
1778 | #line $LINENO "configure" |
---|
1779 | /* confdefs.h. */ |
---|
1780 | _ACEOF |
---|
1781 | cat confdefs.h >>conftest.$ac_ext |
---|
1782 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1783 | /* end confdefs.h. */ |
---|
1784 | $ac_declaration |
---|
1785 | int |
---|
1786 | main () |
---|
1787 | { |
---|
1788 | exit (42); |
---|
1789 | ; |
---|
1790 | return 0; |
---|
1791 | } |
---|
1792 | _ACEOF |
---|
1793 | rm -f conftest.$ac_objext |
---|
1794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1795 | (eval $ac_compile) 2>&5 |
---|
1796 | ac_status=$? |
---|
1797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1798 | (exit $ac_status); } && |
---|
1799 | { ac_try='test -s conftest.$ac_objext' |
---|
1800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1801 | (eval $ac_try) 2>&5 |
---|
1802 | ac_status=$? |
---|
1803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1804 | (exit $ac_status); }; }; then |
---|
1805 | break |
---|
1806 | else |
---|
1807 | echo "$as_me: failed program was:" >&5 |
---|
1808 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1809 | |
---|
1810 | fi |
---|
1811 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
1812 | done |
---|
1813 | rm -f conftest* |
---|
1814 | if test -n "$ac_declaration"; then |
---|
1815 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
1816 | echo $ac_declaration >>confdefs.h |
---|
1817 | echo '#endif' >>confdefs.h |
---|
1818 | fi |
---|
1819 | |
---|
1820 | ac_ext=c |
---|
1821 | ac_cpp='$CPP $CPPFLAGS' |
---|
1822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1825 | |
---|
1826 | ac_ext=c |
---|
1827 | ac_cpp='$CPP $CPPFLAGS' |
---|
1828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1831 | if test -n "$ac_tool_prefix"; then |
---|
1832 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1833 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1836 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1838 | else |
---|
1839 | if test -n "$CC"; then |
---|
1840 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1841 | else |
---|
1842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1843 | for as_dir in $PATH |
---|
1844 | do |
---|
1845 | IFS=$as_save_IFS |
---|
1846 | test -z "$as_dir" && as_dir=. |
---|
1847 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1849 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1851 | break 2 |
---|
1852 | fi |
---|
1853 | done |
---|
1854 | done |
---|
1855 | |
---|
1856 | fi |
---|
1857 | fi |
---|
1858 | CC=$ac_cv_prog_CC |
---|
1859 | if test -n "$CC"; then |
---|
1860 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1861 | echo "${ECHO_T}$CC" >&6 |
---|
1862 | else |
---|
1863 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1864 | echo "${ECHO_T}no" >&6 |
---|
1865 | fi |
---|
1866 | |
---|
1867 | fi |
---|
1868 | if test -z "$ac_cv_prog_CC"; then |
---|
1869 | ac_ct_CC=$CC |
---|
1870 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1871 | set dummy gcc; ac_word=$2 |
---|
1872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1874 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1876 | else |
---|
1877 | if test -n "$ac_ct_CC"; then |
---|
1878 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1879 | else |
---|
1880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1881 | for as_dir in $PATH |
---|
1882 | do |
---|
1883 | IFS=$as_save_IFS |
---|
1884 | test -z "$as_dir" && as_dir=. |
---|
1885 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1887 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1889 | break 2 |
---|
1890 | fi |
---|
1891 | done |
---|
1892 | done |
---|
1893 | |
---|
1894 | fi |
---|
1895 | fi |
---|
1896 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1897 | if test -n "$ac_ct_CC"; then |
---|
1898 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1899 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1900 | else |
---|
1901 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1902 | echo "${ECHO_T}no" >&6 |
---|
1903 | fi |
---|
1904 | |
---|
1905 | CC=$ac_ct_CC |
---|
1906 | else |
---|
1907 | CC="$ac_cv_prog_CC" |
---|
1908 | fi |
---|
1909 | |
---|
1910 | if test -z "$CC"; then |
---|
1911 | if test -n "$ac_tool_prefix"; then |
---|
1912 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1913 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1916 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1918 | else |
---|
1919 | if test -n "$CC"; then |
---|
1920 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1921 | else |
---|
1922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1923 | for as_dir in $PATH |
---|
1924 | do |
---|
1925 | IFS=$as_save_IFS |
---|
1926 | test -z "$as_dir" && as_dir=. |
---|
1927 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1929 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1931 | break 2 |
---|
1932 | fi |
---|
1933 | done |
---|
1934 | done |
---|
1935 | |
---|
1936 | fi |
---|
1937 | fi |
---|
1938 | CC=$ac_cv_prog_CC |
---|
1939 | if test -n "$CC"; then |
---|
1940 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1941 | echo "${ECHO_T}$CC" >&6 |
---|
1942 | else |
---|
1943 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1944 | echo "${ECHO_T}no" >&6 |
---|
1945 | fi |
---|
1946 | |
---|
1947 | fi |
---|
1948 | if test -z "$ac_cv_prog_CC"; then |
---|
1949 | ac_ct_CC=$CC |
---|
1950 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1951 | set dummy cc; ac_word=$2 |
---|
1952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1954 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1956 | else |
---|
1957 | if test -n "$ac_ct_CC"; then |
---|
1958 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1959 | else |
---|
1960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1961 | for as_dir in $PATH |
---|
1962 | do |
---|
1963 | IFS=$as_save_IFS |
---|
1964 | test -z "$as_dir" && as_dir=. |
---|
1965 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1967 | ac_cv_prog_ac_ct_CC="cc" |
---|
1968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1969 | break 2 |
---|
1970 | fi |
---|
1971 | done |
---|
1972 | done |
---|
1973 | |
---|
1974 | fi |
---|
1975 | fi |
---|
1976 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1977 | if test -n "$ac_ct_CC"; then |
---|
1978 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1979 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1980 | else |
---|
1981 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1982 | echo "${ECHO_T}no" >&6 |
---|
1983 | fi |
---|
1984 | |
---|
1985 | CC=$ac_ct_CC |
---|
1986 | else |
---|
1987 | CC="$ac_cv_prog_CC" |
---|
1988 | fi |
---|
1989 | |
---|
1990 | fi |
---|
1991 | if test -z "$CC"; then |
---|
1992 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1993 | set dummy cc; ac_word=$2 |
---|
1994 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1996 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1998 | else |
---|
1999 | if test -n "$CC"; then |
---|
2000 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2001 | else |
---|
2002 | ac_prog_rejected=no |
---|
2003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2004 | for as_dir in $PATH |
---|
2005 | do |
---|
2006 | IFS=$as_save_IFS |
---|
2007 | test -z "$as_dir" && as_dir=. |
---|
2008 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2010 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2011 | ac_prog_rejected=yes |
---|
2012 | continue |
---|
2013 | fi |
---|
2014 | ac_cv_prog_CC="cc" |
---|
2015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2016 | break 2 |
---|
2017 | fi |
---|
2018 | done |
---|
2019 | done |
---|
2020 | |
---|
2021 | if test $ac_prog_rejected = yes; then |
---|
2022 | # We found a bogon in the path, so make sure we never use it. |
---|
2023 | set dummy $ac_cv_prog_CC |
---|
2024 | shift |
---|
2025 | if test $# != 0; then |
---|
2026 | # We chose a different compiler from the bogus one. |
---|
2027 | # However, it has the same basename, so the bogon will be chosen |
---|
2028 | # first if we set CC to just the basename; use the full file name. |
---|
2029 | shift |
---|
2030 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2031 | fi |
---|
2032 | fi |
---|
2033 | fi |
---|
2034 | fi |
---|
2035 | CC=$ac_cv_prog_CC |
---|
2036 | if test -n "$CC"; then |
---|
2037 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2038 | echo "${ECHO_T}$CC" >&6 |
---|
2039 | else |
---|
2040 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2041 | echo "${ECHO_T}no" >&6 |
---|
2042 | fi |
---|
2043 | |
---|
2044 | fi |
---|
2045 | if test -z "$CC"; then |
---|
2046 | if test -n "$ac_tool_prefix"; then |
---|
2047 | for ac_prog in cl |
---|
2048 | do |
---|
2049 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2050 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2051 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2053 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2055 | else |
---|
2056 | if test -n "$CC"; then |
---|
2057 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2058 | else |
---|
2059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2060 | for as_dir in $PATH |
---|
2061 | do |
---|
2062 | IFS=$as_save_IFS |
---|
2063 | test -z "$as_dir" && as_dir=. |
---|
2064 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2065 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2066 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2068 | break 2 |
---|
2069 | fi |
---|
2070 | done |
---|
2071 | done |
---|
2072 | |
---|
2073 | fi |
---|
2074 | fi |
---|
2075 | CC=$ac_cv_prog_CC |
---|
2076 | if test -n "$CC"; then |
---|
2077 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2078 | echo "${ECHO_T}$CC" >&6 |
---|
2079 | else |
---|
2080 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2081 | echo "${ECHO_T}no" >&6 |
---|
2082 | fi |
---|
2083 | |
---|
2084 | test -n "$CC" && break |
---|
2085 | done |
---|
2086 | fi |
---|
2087 | if test -z "$CC"; then |
---|
2088 | ac_ct_CC=$CC |
---|
2089 | for ac_prog in cl |
---|
2090 | do |
---|
2091 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2092 | set dummy $ac_prog; ac_word=$2 |
---|
2093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2095 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2097 | else |
---|
2098 | if test -n "$ac_ct_CC"; then |
---|
2099 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2100 | else |
---|
2101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2102 | for as_dir in $PATH |
---|
2103 | do |
---|
2104 | IFS=$as_save_IFS |
---|
2105 | test -z "$as_dir" && as_dir=. |
---|
2106 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2108 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2110 | break 2 |
---|
2111 | fi |
---|
2112 | done |
---|
2113 | done |
---|
2114 | |
---|
2115 | fi |
---|
2116 | fi |
---|
2117 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2118 | if test -n "$ac_ct_CC"; then |
---|
2119 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2120 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2121 | else |
---|
2122 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2123 | echo "${ECHO_T}no" >&6 |
---|
2124 | fi |
---|
2125 | |
---|
2126 | test -n "$ac_ct_CC" && break |
---|
2127 | done |
---|
2128 | |
---|
2129 | CC=$ac_ct_CC |
---|
2130 | fi |
---|
2131 | |
---|
2132 | fi |
---|
2133 | |
---|
2134 | |
---|
2135 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2136 | See \`config.log' for more details." >&5 |
---|
2137 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2138 | See \`config.log' for more details." >&2;} |
---|
2139 | { (exit 1); exit 1; }; } |
---|
2140 | |
---|
2141 | # Provide some information about the compiler. |
---|
2142 | echo "$as_me:$LINENO:" \ |
---|
2143 | "checking for C compiler version" >&5 |
---|
2144 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2145 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2146 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2147 | ac_status=$? |
---|
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2149 | (exit $ac_status); } |
---|
2150 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2151 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2152 | ac_status=$? |
---|
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2154 | (exit $ac_status); } |
---|
2155 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2156 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2157 | ac_status=$? |
---|
2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2159 | (exit $ac_status); } |
---|
2160 | |
---|
2161 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2162 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2163 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2165 | else |
---|
2166 | cat >conftest.$ac_ext <<_ACEOF |
---|
2167 | #line $LINENO "configure" |
---|
2168 | /* confdefs.h. */ |
---|
2169 | _ACEOF |
---|
2170 | cat confdefs.h >>conftest.$ac_ext |
---|
2171 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2172 | /* end confdefs.h. */ |
---|
2173 | |
---|
2174 | int |
---|
2175 | main () |
---|
2176 | { |
---|
2177 | #ifndef __GNUC__ |
---|
2178 | choke me |
---|
2179 | #endif |
---|
2180 | |
---|
2181 | ; |
---|
2182 | return 0; |
---|
2183 | } |
---|
2184 | _ACEOF |
---|
2185 | rm -f conftest.$ac_objext |
---|
2186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2187 | (eval $ac_compile) 2>&5 |
---|
2188 | ac_status=$? |
---|
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2190 | (exit $ac_status); } && |
---|
2191 | { ac_try='test -s conftest.$ac_objext' |
---|
2192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2193 | (eval $ac_try) 2>&5 |
---|
2194 | ac_status=$? |
---|
2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2196 | (exit $ac_status); }; }; then |
---|
2197 | ac_compiler_gnu=yes |
---|
2198 | else |
---|
2199 | echo "$as_me: failed program was:" >&5 |
---|
2200 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2201 | |
---|
2202 | ac_compiler_gnu=no |
---|
2203 | fi |
---|
2204 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2205 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2206 | |
---|
2207 | fi |
---|
2208 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2209 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2210 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2211 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2212 | ac_save_CFLAGS=$CFLAGS |
---|
2213 | CFLAGS="-g" |
---|
2214 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2215 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2216 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2218 | else |
---|
2219 | cat >conftest.$ac_ext <<_ACEOF |
---|
2220 | #line $LINENO "configure" |
---|
2221 | /* confdefs.h. */ |
---|
2222 | _ACEOF |
---|
2223 | cat confdefs.h >>conftest.$ac_ext |
---|
2224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2225 | /* end confdefs.h. */ |
---|
2226 | |
---|
2227 | int |
---|
2228 | main () |
---|
2229 | { |
---|
2230 | |
---|
2231 | ; |
---|
2232 | return 0; |
---|
2233 | } |
---|
2234 | _ACEOF |
---|
2235 | rm -f conftest.$ac_objext |
---|
2236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2237 | (eval $ac_compile) 2>&5 |
---|
2238 | ac_status=$? |
---|
2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2240 | (exit $ac_status); } && |
---|
2241 | { ac_try='test -s conftest.$ac_objext' |
---|
2242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2243 | (eval $ac_try) 2>&5 |
---|
2244 | ac_status=$? |
---|
2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2246 | (exit $ac_status); }; }; then |
---|
2247 | ac_cv_prog_cc_g=yes |
---|
2248 | else |
---|
2249 | echo "$as_me: failed program was:" >&5 |
---|
2250 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2251 | |
---|
2252 | ac_cv_prog_cc_g=no |
---|
2253 | fi |
---|
2254 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2255 | fi |
---|
2256 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2257 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2258 | if test "$ac_test_CFLAGS" = set; then |
---|
2259 | CFLAGS=$ac_save_CFLAGS |
---|
2260 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2261 | if test "$GCC" = yes; then |
---|
2262 | CFLAGS="-g -O2" |
---|
2263 | else |
---|
2264 | CFLAGS="-g" |
---|
2265 | fi |
---|
2266 | else |
---|
2267 | if test "$GCC" = yes; then |
---|
2268 | CFLAGS="-O2" |
---|
2269 | else |
---|
2270 | CFLAGS= |
---|
2271 | fi |
---|
2272 | fi |
---|
2273 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2274 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2275 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2277 | else |
---|
2278 | ac_cv_prog_cc_stdc=no |
---|
2279 | ac_save_CC=$CC |
---|
2280 | cat >conftest.$ac_ext <<_ACEOF |
---|
2281 | #line $LINENO "configure" |
---|
2282 | /* confdefs.h. */ |
---|
2283 | _ACEOF |
---|
2284 | cat confdefs.h >>conftest.$ac_ext |
---|
2285 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2286 | /* end confdefs.h. */ |
---|
2287 | #include <stdarg.h> |
---|
2288 | #include <stdio.h> |
---|
2289 | #include <sys/types.h> |
---|
2290 | #include <sys/stat.h> |
---|
2291 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2292 | struct buf { int x; }; |
---|
2293 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2294 | static char *e (p, i) |
---|
2295 | char **p; |
---|
2296 | int i; |
---|
2297 | { |
---|
2298 | return p[i]; |
---|
2299 | } |
---|
2300 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2301 | { |
---|
2302 | char *s; |
---|
2303 | va_list v; |
---|
2304 | va_start (v,p); |
---|
2305 | s = g (p, va_arg (v,int)); |
---|
2306 | va_end (v); |
---|
2307 | return s; |
---|
2308 | } |
---|
2309 | int test (int i, double x); |
---|
2310 | struct s1 {int (*f) (int a);}; |
---|
2311 | struct s2 {int (*f) (double a);}; |
---|
2312 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2313 | int argc; |
---|
2314 | char **argv; |
---|
2315 | int |
---|
2316 | main () |
---|
2317 | { |
---|
2318 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2319 | ; |
---|
2320 | return 0; |
---|
2321 | } |
---|
2322 | _ACEOF |
---|
2323 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2324 | # breaks some systems' header files. |
---|
2325 | # AIX -qlanglvl=ansi |
---|
2326 | # Ultrix and OSF/1 -std1 |
---|
2327 | # HP-UX 10.20 and later -Ae |
---|
2328 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2329 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2330 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2331 | do |
---|
2332 | CC="$ac_save_CC $ac_arg" |
---|
2333 | rm -f conftest.$ac_objext |
---|
2334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2335 | (eval $ac_compile) 2>&5 |
---|
2336 | ac_status=$? |
---|
2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2338 | (exit $ac_status); } && |
---|
2339 | { ac_try='test -s conftest.$ac_objext' |
---|
2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2341 | (eval $ac_try) 2>&5 |
---|
2342 | ac_status=$? |
---|
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2344 | (exit $ac_status); }; }; then |
---|
2345 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2346 | break |
---|
2347 | else |
---|
2348 | echo "$as_me: failed program was:" >&5 |
---|
2349 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2350 | |
---|
2351 | fi |
---|
2352 | rm -f conftest.$ac_objext |
---|
2353 | done |
---|
2354 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2355 | CC=$ac_save_CC |
---|
2356 | |
---|
2357 | fi |
---|
2358 | |
---|
2359 | case "x$ac_cv_prog_cc_stdc" in |
---|
2360 | x|xno) |
---|
2361 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2362 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2363 | *) |
---|
2364 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2365 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2366 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2367 | esac |
---|
2368 | |
---|
2369 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2370 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2371 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2372 | # the declaration of exit, since it's the most demanding environment. |
---|
2373 | cat >conftest.$ac_ext <<_ACEOF |
---|
2374 | #ifndef __cplusplus |
---|
2375 | choke me |
---|
2376 | #endif |
---|
2377 | _ACEOF |
---|
2378 | rm -f conftest.$ac_objext |
---|
2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2380 | (eval $ac_compile) 2>&5 |
---|
2381 | ac_status=$? |
---|
2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2383 | (exit $ac_status); } && |
---|
2384 | { ac_try='test -s conftest.$ac_objext' |
---|
2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2386 | (eval $ac_try) 2>&5 |
---|
2387 | ac_status=$? |
---|
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2389 | (exit $ac_status); }; }; then |
---|
2390 | for ac_declaration in \ |
---|
2391 | ''\ |
---|
2392 | '#include <stdlib.h>' \ |
---|
2393 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2394 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2395 | 'extern "C" void exit (int) throw ();' \ |
---|
2396 | 'extern "C" void exit (int);' \ |
---|
2397 | 'void exit (int);' |
---|
2398 | do |
---|
2399 | cat >conftest.$ac_ext <<_ACEOF |
---|
2400 | #line $LINENO "configure" |
---|
2401 | /* confdefs.h. */ |
---|
2402 | _ACEOF |
---|
2403 | cat confdefs.h >>conftest.$ac_ext |
---|
2404 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2405 | /* end confdefs.h. */ |
---|
2406 | #include <stdlib.h> |
---|
2407 | $ac_declaration |
---|
2408 | int |
---|
2409 | main () |
---|
2410 | { |
---|
2411 | exit (42); |
---|
2412 | ; |
---|
2413 | return 0; |
---|
2414 | } |
---|
2415 | _ACEOF |
---|
2416 | rm -f conftest.$ac_objext |
---|
2417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2418 | (eval $ac_compile) 2>&5 |
---|
2419 | ac_status=$? |
---|
2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2421 | (exit $ac_status); } && |
---|
2422 | { ac_try='test -s conftest.$ac_objext' |
---|
2423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2424 | (eval $ac_try) 2>&5 |
---|
2425 | ac_status=$? |
---|
2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2427 | (exit $ac_status); }; }; then |
---|
2428 | : |
---|
2429 | else |
---|
2430 | echo "$as_me: failed program was:" >&5 |
---|
2431 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2432 | |
---|
2433 | continue |
---|
2434 | fi |
---|
2435 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2436 | cat >conftest.$ac_ext <<_ACEOF |
---|
2437 | #line $LINENO "configure" |
---|
2438 | /* confdefs.h. */ |
---|
2439 | _ACEOF |
---|
2440 | cat confdefs.h >>conftest.$ac_ext |
---|
2441 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2442 | /* end confdefs.h. */ |
---|
2443 | $ac_declaration |
---|
2444 | int |
---|
2445 | main () |
---|
2446 | { |
---|
2447 | exit (42); |
---|
2448 | ; |
---|
2449 | return 0; |
---|
2450 | } |
---|
2451 | _ACEOF |
---|
2452 | rm -f conftest.$ac_objext |
---|
2453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2454 | (eval $ac_compile) 2>&5 |
---|
2455 | ac_status=$? |
---|
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2457 | (exit $ac_status); } && |
---|
2458 | { ac_try='test -s conftest.$ac_objext' |
---|
2459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2460 | (eval $ac_try) 2>&5 |
---|
2461 | ac_status=$? |
---|
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2463 | (exit $ac_status); }; }; then |
---|
2464 | break |
---|
2465 | else |
---|
2466 | echo "$as_me: failed program was:" >&5 |
---|
2467 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2468 | |
---|
2469 | fi |
---|
2470 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2471 | done |
---|
2472 | rm -f conftest* |
---|
2473 | if test -n "$ac_declaration"; then |
---|
2474 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2475 | echo $ac_declaration >>confdefs.h |
---|
2476 | echo '#endif' >>confdefs.h |
---|
2477 | fi |
---|
2478 | |
---|
2479 | else |
---|
2480 | echo "$as_me: failed program was:" >&5 |
---|
2481 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2482 | |
---|
2483 | fi |
---|
2484 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2485 | ac_ext=c |
---|
2486 | ac_cpp='$CPP $CPPFLAGS' |
---|
2487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2490 | |
---|
2491 | ac_ext=c |
---|
2492 | ac_cpp='$CPP $CPPFLAGS' |
---|
2493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2496 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
2497 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
2498 | # On Suns, sometimes $CPP names a directory. |
---|
2499 | if test -n "$CPP" && test -d "$CPP"; then |
---|
2500 | CPP= |
---|
2501 | fi |
---|
2502 | if test -z "$CPP"; then |
---|
2503 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
2504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2505 | else |
---|
2506 | # Double quotes because CPP needs to be expanded |
---|
2507 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
2508 | do |
---|
2509 | ac_preproc_ok=false |
---|
2510 | for ac_c_preproc_warn_flag in '' yes |
---|
2511 | do |
---|
2512 | # Use a header file that comes with gcc, so configuring glibc |
---|
2513 | # with a fresh cross-compiler works. |
---|
2514 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2515 | # <limits.h> exists even on freestanding compilers. |
---|
2516 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2517 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2518 | cat >conftest.$ac_ext <<_ACEOF |
---|
2519 | #line $LINENO "configure" |
---|
2520 | /* confdefs.h. */ |
---|
2521 | _ACEOF |
---|
2522 | cat confdefs.h >>conftest.$ac_ext |
---|
2523 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2524 | /* end confdefs.h. */ |
---|
2525 | #ifdef __STDC__ |
---|
2526 | # include <limits.h> |
---|
2527 | #else |
---|
2528 | # include <assert.h> |
---|
2529 | #endif |
---|
2530 | Syntax error |
---|
2531 | _ACEOF |
---|
2532 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2533 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2534 | ac_status=$? |
---|
2535 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2536 | rm -f conftest.er1 |
---|
2537 | cat conftest.err >&5 |
---|
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2539 | (exit $ac_status); } >/dev/null; then |
---|
2540 | if test -s conftest.err; then |
---|
2541 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2542 | else |
---|
2543 | ac_cpp_err= |
---|
2544 | fi |
---|
2545 | else |
---|
2546 | ac_cpp_err=yes |
---|
2547 | fi |
---|
2548 | if test -z "$ac_cpp_err"; then |
---|
2549 | : |
---|
2550 | else |
---|
2551 | echo "$as_me: failed program was:" >&5 |
---|
2552 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2553 | |
---|
2554 | # Broken: fails on valid input. |
---|
2555 | continue |
---|
2556 | fi |
---|
2557 | rm -f conftest.err conftest.$ac_ext |
---|
2558 | |
---|
2559 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2560 | # can be detected and how. |
---|
2561 | cat >conftest.$ac_ext <<_ACEOF |
---|
2562 | #line $LINENO "configure" |
---|
2563 | /* confdefs.h. */ |
---|
2564 | _ACEOF |
---|
2565 | cat confdefs.h >>conftest.$ac_ext |
---|
2566 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2567 | /* end confdefs.h. */ |
---|
2568 | #include <ac_nonexistent.h> |
---|
2569 | _ACEOF |
---|
2570 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2571 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2572 | ac_status=$? |
---|
2573 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2574 | rm -f conftest.er1 |
---|
2575 | cat conftest.err >&5 |
---|
2576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2577 | (exit $ac_status); } >/dev/null; then |
---|
2578 | if test -s conftest.err; then |
---|
2579 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2580 | else |
---|
2581 | ac_cpp_err= |
---|
2582 | fi |
---|
2583 | else |
---|
2584 | ac_cpp_err=yes |
---|
2585 | fi |
---|
2586 | if test -z "$ac_cpp_err"; then |
---|
2587 | # Broken: success on invalid input. |
---|
2588 | continue |
---|
2589 | else |
---|
2590 | echo "$as_me: failed program was:" >&5 |
---|
2591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2592 | |
---|
2593 | # Passes both tests. |
---|
2594 | ac_preproc_ok=: |
---|
2595 | break |
---|
2596 | fi |
---|
2597 | rm -f conftest.err conftest.$ac_ext |
---|
2598 | |
---|
2599 | done |
---|
2600 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2601 | rm -f conftest.err conftest.$ac_ext |
---|
2602 | if $ac_preproc_ok; then |
---|
2603 | break |
---|
2604 | fi |
---|
2605 | |
---|
2606 | done |
---|
2607 | ac_cv_prog_CPP=$CPP |
---|
2608 | |
---|
2609 | fi |
---|
2610 | CPP=$ac_cv_prog_CPP |
---|
2611 | else |
---|
2612 | ac_cv_prog_CPP=$CPP |
---|
2613 | fi |
---|
2614 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
2615 | echo "${ECHO_T}$CPP" >&6 |
---|
2616 | ac_preproc_ok=false |
---|
2617 | for ac_c_preproc_warn_flag in '' yes |
---|
2618 | do |
---|
2619 | # Use a header file that comes with gcc, so configuring glibc |
---|
2620 | # with a fresh cross-compiler works. |
---|
2621 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2622 | # <limits.h> exists even on freestanding compilers. |
---|
2623 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2624 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2625 | cat >conftest.$ac_ext <<_ACEOF |
---|
2626 | #line $LINENO "configure" |
---|
2627 | /* confdefs.h. */ |
---|
2628 | _ACEOF |
---|
2629 | cat confdefs.h >>conftest.$ac_ext |
---|
2630 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2631 | /* end confdefs.h. */ |
---|
2632 | #ifdef __STDC__ |
---|
2633 | # include <limits.h> |
---|
2634 | #else |
---|
2635 | # include <assert.h> |
---|
2636 | #endif |
---|
2637 | Syntax error |
---|
2638 | _ACEOF |
---|
2639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2641 | ac_status=$? |
---|
2642 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2643 | rm -f conftest.er1 |
---|
2644 | cat conftest.err >&5 |
---|
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2646 | (exit $ac_status); } >/dev/null; then |
---|
2647 | if test -s conftest.err; then |
---|
2648 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2649 | else |
---|
2650 | ac_cpp_err= |
---|
2651 | fi |
---|
2652 | else |
---|
2653 | ac_cpp_err=yes |
---|
2654 | fi |
---|
2655 | if test -z "$ac_cpp_err"; then |
---|
2656 | : |
---|
2657 | else |
---|
2658 | echo "$as_me: failed program was:" >&5 |
---|
2659 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2660 | |
---|
2661 | # Broken: fails on valid input. |
---|
2662 | continue |
---|
2663 | fi |
---|
2664 | rm -f conftest.err conftest.$ac_ext |
---|
2665 | |
---|
2666 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2667 | # can be detected and how. |
---|
2668 | cat >conftest.$ac_ext <<_ACEOF |
---|
2669 | #line $LINENO "configure" |
---|
2670 | /* confdefs.h. */ |
---|
2671 | _ACEOF |
---|
2672 | cat confdefs.h >>conftest.$ac_ext |
---|
2673 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2674 | /* end confdefs.h. */ |
---|
2675 | #include <ac_nonexistent.h> |
---|
2676 | _ACEOF |
---|
2677 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2678 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2679 | ac_status=$? |
---|
2680 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2681 | rm -f conftest.er1 |
---|
2682 | cat conftest.err >&5 |
---|
2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2684 | (exit $ac_status); } >/dev/null; then |
---|
2685 | if test -s conftest.err; then |
---|
2686 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2687 | else |
---|
2688 | ac_cpp_err= |
---|
2689 | fi |
---|
2690 | else |
---|
2691 | ac_cpp_err=yes |
---|
2692 | fi |
---|
2693 | if test -z "$ac_cpp_err"; then |
---|
2694 | # Broken: success on invalid input. |
---|
2695 | continue |
---|
2696 | else |
---|
2697 | echo "$as_me: failed program was:" >&5 |
---|
2698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2699 | |
---|
2700 | # Passes both tests. |
---|
2701 | ac_preproc_ok=: |
---|
2702 | break |
---|
2703 | fi |
---|
2704 | rm -f conftest.err conftest.$ac_ext |
---|
2705 | |
---|
2706 | done |
---|
2707 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2708 | rm -f conftest.err conftest.$ac_ext |
---|
2709 | if $ac_preproc_ok; then |
---|
2710 | : |
---|
2711 | else |
---|
2712 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
2713 | See \`config.log' for more details." >&5 |
---|
2714 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
2715 | See \`config.log' for more details." >&2;} |
---|
2716 | { (exit 1); exit 1; }; } |
---|
2717 | fi |
---|
2718 | |
---|
2719 | ac_ext=c |
---|
2720 | ac_cpp='$CPP $CPPFLAGS' |
---|
2721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2724 | |
---|
2725 | |
---|
2726 | # Checks for libraries. |
---|
2727 | |
---|
2728 | |
---|
2729 | echo "$as_me:$LINENO: checking for vector in -lstdc++" >&5 |
---|
2730 | echo $ECHO_N "checking for vector in -lstdc++... $ECHO_C" >&6 |
---|
2731 | if test "${ac_cv_lib_stdcpp_vector+set}" = set; then |
---|
2732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2733 | else |
---|
2734 | ac_check_lib_save_LIBS=$LIBS |
---|
2735 | LIBS="-lstdc++ $LIBS" |
---|
2736 | cat >conftest.$ac_ext <<_ACEOF |
---|
2737 | #line $LINENO "configure" |
---|
2738 | /* confdefs.h. */ |
---|
2739 | _ACEOF |
---|
2740 | cat confdefs.h >>conftest.$ac_ext |
---|
2741 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2742 | /* end confdefs.h. */ |
---|
2743 | |
---|
2744 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2745 | #ifdef __cplusplus |
---|
2746 | extern "C" |
---|
2747 | #endif |
---|
2748 | /* We use char because int might match the return type of a gcc2 |
---|
2749 | builtin and then its argument prototype would still apply. */ |
---|
2750 | char vector (); |
---|
2751 | int |
---|
2752 | main () |
---|
2753 | { |
---|
2754 | vector (); |
---|
2755 | ; |
---|
2756 | return 0; |
---|
2757 | } |
---|
2758 | _ACEOF |
---|
2759 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2761 | (eval $ac_link) 2>&5 |
---|
2762 | ac_status=$? |
---|
2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2764 | (exit $ac_status); } && |
---|
2765 | { ac_try='test -s conftest$ac_exeext' |
---|
2766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2767 | (eval $ac_try) 2>&5 |
---|
2768 | ac_status=$? |
---|
2769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2770 | (exit $ac_status); }; }; then |
---|
2771 | ac_cv_lib_stdcpp_vector=yes |
---|
2772 | else |
---|
2773 | echo "$as_me: failed program was:" >&5 |
---|
2774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2775 | |
---|
2776 | ac_cv_lib_stdcpp_vector=no |
---|
2777 | fi |
---|
2778 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
2779 | LIBS=$ac_check_lib_save_LIBS |
---|
2780 | fi |
---|
2781 | echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_vector" >&5 |
---|
2782 | echo "${ECHO_T}$ac_cv_lib_stdcpp_vector" >&6 |
---|
2783 | if test $ac_cv_lib_stdcpp_vector = yes; then |
---|
2784 | cat >>confdefs.h <<_ACEOF |
---|
2785 | #define HAVE_LIBSTDC__ 1 |
---|
2786 | _ACEOF |
---|
2787 | |
---|
2788 | LIBS="-lstdc++ $LIBS" |
---|
2789 | |
---|
2790 | fi |
---|
2791 | |
---|
2792 | |
---|
2793 | echo "$as_me:$LINENO: checking for gerror_ in -lg2c" >&5 |
---|
2794 | echo $ECHO_N "checking for gerror_ in -lg2c... $ECHO_C" >&6 |
---|
2795 | if test "${ac_cv_lib_g2c_gerror_+set}" = set; then |
---|
2796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2797 | else |
---|
2798 | ac_check_lib_save_LIBS=$LIBS |
---|
2799 | LIBS="-lg2c $LIBS" |
---|
2800 | cat >conftest.$ac_ext <<_ACEOF |
---|
2801 | #line $LINENO "configure" |
---|
2802 | /* confdefs.h. */ |
---|
2803 | _ACEOF |
---|
2804 | cat confdefs.h >>conftest.$ac_ext |
---|
2805 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2806 | /* end confdefs.h. */ |
---|
2807 | |
---|
2808 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2809 | #ifdef __cplusplus |
---|
2810 | extern "C" |
---|
2811 | #endif |
---|
2812 | /* We use char because int might match the return type of a gcc2 |
---|
2813 | builtin and then its argument prototype would still apply. */ |
---|
2814 | char gerror_ (); |
---|
2815 | int |
---|
2816 | main () |
---|
2817 | { |
---|
2818 | gerror_ (); |
---|
2819 | ; |
---|
2820 | return 0; |
---|
2821 | } |
---|
2822 | _ACEOF |
---|
2823 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2825 | (eval $ac_link) 2>&5 |
---|
2826 | ac_status=$? |
---|
2827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2828 | (exit $ac_status); } && |
---|
2829 | { ac_try='test -s conftest$ac_exeext' |
---|
2830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2831 | (eval $ac_try) 2>&5 |
---|
2832 | ac_status=$? |
---|
2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2834 | (exit $ac_status); }; }; then |
---|
2835 | ac_cv_lib_g2c_gerror_=yes |
---|
2836 | else |
---|
2837 | echo "$as_me: failed program was:" >&5 |
---|
2838 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2839 | |
---|
2840 | ac_cv_lib_g2c_gerror_=no |
---|
2841 | fi |
---|
2842 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
2843 | LIBS=$ac_check_lib_save_LIBS |
---|
2844 | fi |
---|
2845 | echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
2846 | echo "${ECHO_T}$ac_cv_lib_g2c_gerror_" >&6 |
---|
2847 | if test $ac_cv_lib_g2c_gerror_ = yes; then |
---|
2848 | cat >>confdefs.h <<_ACEOF |
---|
2849 | #define HAVE_LIBG2C 1 |
---|
2850 | _ACEOF |
---|
2851 | |
---|
2852 | LIBS="-lg2c $LIBS" |
---|
2853 | |
---|
2854 | fi |
---|
2855 | |
---|
2856 | |
---|
2857 | echo "$as_me:$LINENO: checking for log in -lm" >&5 |
---|
2858 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 |
---|
2859 | if test "${ac_cv_lib_m_log+set}" = set; then |
---|
2860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2861 | else |
---|
2862 | ac_check_lib_save_LIBS=$LIBS |
---|
2863 | LIBS="-lm $LIBS" |
---|
2864 | cat >conftest.$ac_ext <<_ACEOF |
---|
2865 | #line $LINENO "configure" |
---|
2866 | /* confdefs.h. */ |
---|
2867 | _ACEOF |
---|
2868 | cat confdefs.h >>conftest.$ac_ext |
---|
2869 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2870 | /* end confdefs.h. */ |
---|
2871 | |
---|
2872 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2873 | #ifdef __cplusplus |
---|
2874 | extern "C" |
---|
2875 | #endif |
---|
2876 | /* We use char because int might match the return type of a gcc2 |
---|
2877 | builtin and then its argument prototype would still apply. */ |
---|
2878 | char log (); |
---|
2879 | int |
---|
2880 | main () |
---|
2881 | { |
---|
2882 | log (); |
---|
2883 | ; |
---|
2884 | return 0; |
---|
2885 | } |
---|
2886 | _ACEOF |
---|
2887 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2889 | (eval $ac_link) 2>&5 |
---|
2890 | ac_status=$? |
---|
2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2892 | (exit $ac_status); } && |
---|
2893 | { ac_try='test -s conftest$ac_exeext' |
---|
2894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2895 | (eval $ac_try) 2>&5 |
---|
2896 | ac_status=$? |
---|
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2898 | (exit $ac_status); }; }; then |
---|
2899 | ac_cv_lib_m_log=yes |
---|
2900 | else |
---|
2901 | echo "$as_me: failed program was:" >&5 |
---|
2902 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2903 | |
---|
2904 | ac_cv_lib_m_log=no |
---|
2905 | fi |
---|
2906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
2907 | LIBS=$ac_check_lib_save_LIBS |
---|
2908 | fi |
---|
2909 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 |
---|
2910 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 |
---|
2911 | if test $ac_cv_lib_m_log = yes; then |
---|
2912 | cat >>confdefs.h <<_ACEOF |
---|
2913 | #define HAVE_LIBM 1 |
---|
2914 | _ACEOF |
---|
2915 | |
---|
2916 | LIBS="-lm $LIBS" |
---|
2917 | |
---|
2918 | fi |
---|
2919 | |
---|
2920 | |
---|
2921 | # Checks for header files. |
---|
2922 | |
---|
2923 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
2924 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
2925 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
2926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2927 | else |
---|
2928 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
2929 | then ac_cv_prog_egrep='grep -E' |
---|
2930 | else ac_cv_prog_egrep='egrep' |
---|
2931 | fi |
---|
2932 | fi |
---|
2933 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
2934 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
2935 | EGREP=$ac_cv_prog_egrep |
---|
2936 | |
---|
2937 | |
---|
2938 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
2939 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
2940 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
2941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2942 | else |
---|
2943 | cat >conftest.$ac_ext <<_ACEOF |
---|
2944 | #line $LINENO "configure" |
---|
2945 | /* confdefs.h. */ |
---|
2946 | _ACEOF |
---|
2947 | cat confdefs.h >>conftest.$ac_ext |
---|
2948 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2949 | /* end confdefs.h. */ |
---|
2950 | #include <stdlib.h> |
---|
2951 | #include <stdarg.h> |
---|
2952 | #include <string.h> |
---|
2953 | #include <float.h> |
---|
2954 | |
---|
2955 | int |
---|
2956 | main () |
---|
2957 | { |
---|
2958 | |
---|
2959 | ; |
---|
2960 | return 0; |
---|
2961 | } |
---|
2962 | _ACEOF |
---|
2963 | rm -f conftest.$ac_objext |
---|
2964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2965 | (eval $ac_compile) 2>&5 |
---|
2966 | ac_status=$? |
---|
2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2968 | (exit $ac_status); } && |
---|
2969 | { ac_try='test -s conftest.$ac_objext' |
---|
2970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2971 | (eval $ac_try) 2>&5 |
---|
2972 | ac_status=$? |
---|
2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2974 | (exit $ac_status); }; }; then |
---|
2975 | ac_cv_header_stdc=yes |
---|
2976 | else |
---|
2977 | echo "$as_me: failed program was:" >&5 |
---|
2978 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2979 | |
---|
2980 | ac_cv_header_stdc=no |
---|
2981 | fi |
---|
2982 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2983 | |
---|
2984 | if test $ac_cv_header_stdc = yes; then |
---|
2985 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
2986 | cat >conftest.$ac_ext <<_ACEOF |
---|
2987 | #line $LINENO "configure" |
---|
2988 | /* confdefs.h. */ |
---|
2989 | _ACEOF |
---|
2990 | cat confdefs.h >>conftest.$ac_ext |
---|
2991 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2992 | /* end confdefs.h. */ |
---|
2993 | #include <string.h> |
---|
2994 | |
---|
2995 | _ACEOF |
---|
2996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2997 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
2998 | : |
---|
2999 | else |
---|
3000 | ac_cv_header_stdc=no |
---|
3001 | fi |
---|
3002 | rm -f conftest* |
---|
3003 | |
---|
3004 | fi |
---|
3005 | |
---|
3006 | if test $ac_cv_header_stdc = yes; then |
---|
3007 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3008 | cat >conftest.$ac_ext <<_ACEOF |
---|
3009 | #line $LINENO "configure" |
---|
3010 | /* confdefs.h. */ |
---|
3011 | _ACEOF |
---|
3012 | cat confdefs.h >>conftest.$ac_ext |
---|
3013 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3014 | /* end confdefs.h. */ |
---|
3015 | #include <stdlib.h> |
---|
3016 | |
---|
3017 | _ACEOF |
---|
3018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3019 | $EGREP "free" >/dev/null 2>&1; then |
---|
3020 | : |
---|
3021 | else |
---|
3022 | ac_cv_header_stdc=no |
---|
3023 | fi |
---|
3024 | rm -f conftest* |
---|
3025 | |
---|
3026 | fi |
---|
3027 | |
---|
3028 | if test $ac_cv_header_stdc = yes; then |
---|
3029 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3030 | if test "$cross_compiling" = yes; then |
---|
3031 | : |
---|
3032 | else |
---|
3033 | cat >conftest.$ac_ext <<_ACEOF |
---|
3034 | #line $LINENO "configure" |
---|
3035 | /* confdefs.h. */ |
---|
3036 | _ACEOF |
---|
3037 | cat confdefs.h >>conftest.$ac_ext |
---|
3038 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3039 | /* end confdefs.h. */ |
---|
3040 | #include <ctype.h> |
---|
3041 | #if ((' ' & 0x0FF) == 0x020) |
---|
3042 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3043 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3044 | #else |
---|
3045 | # define ISLOWER(c) \ |
---|
3046 | (('a' <= (c) && (c) <= 'i') \ |
---|
3047 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3048 | || ('s' <= (c) && (c) <= 'z')) |
---|
3049 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3050 | #endif |
---|
3051 | |
---|
3052 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3053 | int |
---|
3054 | main () |
---|
3055 | { |
---|
3056 | int i; |
---|
3057 | for (i = 0; i < 256; i++) |
---|
3058 | if (XOR (islower (i), ISLOWER (i)) |
---|
3059 | || toupper (i) != TOUPPER (i)) |
---|
3060 | exit(2); |
---|
3061 | exit (0); |
---|
3062 | } |
---|
3063 | _ACEOF |
---|
3064 | rm -f conftest$ac_exeext |
---|
3065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3066 | (eval $ac_link) 2>&5 |
---|
3067 | ac_status=$? |
---|
3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3071 | (eval $ac_try) 2>&5 |
---|
3072 | ac_status=$? |
---|
3073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3074 | (exit $ac_status); }; }; then |
---|
3075 | : |
---|
3076 | else |
---|
3077 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3078 | echo "$as_me: failed program was:" >&5 |
---|
3079 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3080 | |
---|
3081 | ( exit $ac_status ) |
---|
3082 | ac_cv_header_stdc=no |
---|
3083 | fi |
---|
3084 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3085 | fi |
---|
3086 | fi |
---|
3087 | fi |
---|
3088 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3089 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3090 | if test $ac_cv_header_stdc = yes; then |
---|
3091 | |
---|
3092 | cat >>confdefs.h <<\_ACEOF |
---|
3093 | #define STDC_HEADERS 1 |
---|
3094 | _ACEOF |
---|
3095 | |
---|
3096 | fi |
---|
3097 | |
---|
3098 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3099 | |
---|
3100 | |
---|
3101 | |
---|
3102 | |
---|
3103 | |
---|
3104 | |
---|
3105 | |
---|
3106 | |
---|
3107 | |
---|
3108 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3109 | inttypes.h stdint.h unistd.h |
---|
3110 | do |
---|
3111 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3112 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3116 | else |
---|
3117 | cat >conftest.$ac_ext <<_ACEOF |
---|
3118 | #line $LINENO "configure" |
---|
3119 | /* confdefs.h. */ |
---|
3120 | _ACEOF |
---|
3121 | cat confdefs.h >>conftest.$ac_ext |
---|
3122 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3123 | /* end confdefs.h. */ |
---|
3124 | $ac_includes_default |
---|
3125 | |
---|
3126 | #include <$ac_header> |
---|
3127 | _ACEOF |
---|
3128 | rm -f conftest.$ac_objext |
---|
3129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3130 | (eval $ac_compile) 2>&5 |
---|
3131 | ac_status=$? |
---|
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3133 | (exit $ac_status); } && |
---|
3134 | { ac_try='test -s conftest.$ac_objext' |
---|
3135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3136 | (eval $ac_try) 2>&5 |
---|
3137 | ac_status=$? |
---|
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3139 | (exit $ac_status); }; }; then |
---|
3140 | eval "$as_ac_Header=yes" |
---|
3141 | else |
---|
3142 | echo "$as_me: failed program was:" >&5 |
---|
3143 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3144 | |
---|
3145 | eval "$as_ac_Header=no" |
---|
3146 | fi |
---|
3147 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3148 | fi |
---|
3149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3150 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3152 | cat >>confdefs.h <<_ACEOF |
---|
3153 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3154 | _ACEOF |
---|
3155 | |
---|
3156 | fi |
---|
3157 | |
---|
3158 | done |
---|
3159 | |
---|
3160 | |
---|
3161 | |
---|
3162 | |
---|
3163 | |
---|
3164 | |
---|
3165 | |
---|
3166 | for ac_header in stdlib.h string.h unistd.h time.h math.h |
---|
3167 | do |
---|
3168 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3170 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3172 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3174 | fi |
---|
3175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3176 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3177 | else |
---|
3178 | # Is the header compilable? |
---|
3179 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3180 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3181 | cat >conftest.$ac_ext <<_ACEOF |
---|
3182 | #line $LINENO "configure" |
---|
3183 | /* confdefs.h. */ |
---|
3184 | _ACEOF |
---|
3185 | cat confdefs.h >>conftest.$ac_ext |
---|
3186 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3187 | /* end confdefs.h. */ |
---|
3188 | $ac_includes_default |
---|
3189 | #include <$ac_header> |
---|
3190 | _ACEOF |
---|
3191 | rm -f conftest.$ac_objext |
---|
3192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3193 | (eval $ac_compile) 2>&5 |
---|
3194 | ac_status=$? |
---|
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3196 | (exit $ac_status); } && |
---|
3197 | { ac_try='test -s conftest.$ac_objext' |
---|
3198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3199 | (eval $ac_try) 2>&5 |
---|
3200 | ac_status=$? |
---|
3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3202 | (exit $ac_status); }; }; then |
---|
3203 | ac_header_compiler=yes |
---|
3204 | else |
---|
3205 | echo "$as_me: failed program was:" >&5 |
---|
3206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3207 | |
---|
3208 | ac_header_compiler=no |
---|
3209 | fi |
---|
3210 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3212 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3213 | |
---|
3214 | # Is the header present? |
---|
3215 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3216 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3217 | cat >conftest.$ac_ext <<_ACEOF |
---|
3218 | #line $LINENO "configure" |
---|
3219 | /* confdefs.h. */ |
---|
3220 | _ACEOF |
---|
3221 | cat confdefs.h >>conftest.$ac_ext |
---|
3222 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3223 | /* end confdefs.h. */ |
---|
3224 | #include <$ac_header> |
---|
3225 | _ACEOF |
---|
3226 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3227 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3228 | ac_status=$? |
---|
3229 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3230 | rm -f conftest.er1 |
---|
3231 | cat conftest.err >&5 |
---|
3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3233 | (exit $ac_status); } >/dev/null; then |
---|
3234 | if test -s conftest.err; then |
---|
3235 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3236 | else |
---|
3237 | ac_cpp_err= |
---|
3238 | fi |
---|
3239 | else |
---|
3240 | ac_cpp_err=yes |
---|
3241 | fi |
---|
3242 | if test -z "$ac_cpp_err"; then |
---|
3243 | ac_header_preproc=yes |
---|
3244 | else |
---|
3245 | echo "$as_me: failed program was:" >&5 |
---|
3246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3247 | |
---|
3248 | ac_header_preproc=no |
---|
3249 | fi |
---|
3250 | rm -f conftest.err conftest.$ac_ext |
---|
3251 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3252 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3253 | |
---|
3254 | # So? What about this header? |
---|
3255 | case $ac_header_compiler:$ac_header_preproc in |
---|
3256 | yes:no ) |
---|
3257 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3258 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3261 | ( |
---|
3262 | cat <<\_ASBOX |
---|
3263 | ## ------------------------------------ ## |
---|
3264 | ## Report this to bug-autoconf@gnu.org. ## |
---|
3265 | ## ------------------------------------ ## |
---|
3266 | _ASBOX |
---|
3267 | ) | |
---|
3268 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3269 | ;; |
---|
3270 | no:yes ) |
---|
3271 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3272 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3273 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3274 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3276 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3277 | ( |
---|
3278 | cat <<\_ASBOX |
---|
3279 | ## ------------------------------------ ## |
---|
3280 | ## Report this to bug-autoconf@gnu.org. ## |
---|
3281 | ## ------------------------------------ ## |
---|
3282 | _ASBOX |
---|
3283 | ) | |
---|
3284 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3285 | ;; |
---|
3286 | esac |
---|
3287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3291 | else |
---|
3292 | eval "$as_ac_Header=$ac_header_preproc" |
---|
3293 | fi |
---|
3294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3295 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3296 | |
---|
3297 | fi |
---|
3298 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3299 | cat >>confdefs.h <<_ACEOF |
---|
3300 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3301 | _ACEOF |
---|
3302 | |
---|
3303 | fi |
---|
3304 | |
---|
3305 | done |
---|
3306 | |
---|
3307 | |
---|
3308 | # Checks for typedefs, structures, and compiler characteristics. |
---|
3309 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
3310 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
3311 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
3312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3313 | else |
---|
3314 | cat >conftest.$ac_ext <<_ACEOF |
---|
3315 | #line $LINENO "configure" |
---|
3316 | /* confdefs.h. */ |
---|
3317 | _ACEOF |
---|
3318 | cat confdefs.h >>conftest.$ac_ext |
---|
3319 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3320 | /* end confdefs.h. */ |
---|
3321 | |
---|
3322 | #include <stdbool.h> |
---|
3323 | #ifndef bool |
---|
3324 | # error bool is not defined |
---|
3325 | #endif |
---|
3326 | #ifndef false |
---|
3327 | # error false is not defined |
---|
3328 | #endif |
---|
3329 | #if false |
---|
3330 | # error false is not 0 |
---|
3331 | #endif |
---|
3332 | #ifndef true |
---|
3333 | # error true is not defined |
---|
3334 | #endif |
---|
3335 | #if true != 1 |
---|
3336 | # error true is not 1 |
---|
3337 | #endif |
---|
3338 | #ifndef __bool_true_false_are_defined |
---|
3339 | # error __bool_true_false_are_defined is not defined |
---|
3340 | #endif |
---|
3341 | |
---|
3342 | struct s { _Bool s: 1; _Bool t; } s; |
---|
3343 | |
---|
3344 | char a[true == 1 ? 1 : -1]; |
---|
3345 | char b[false == 0 ? 1 : -1]; |
---|
3346 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
3347 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
3348 | bool e = &s; |
---|
3349 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
3350 | char g[true]; |
---|
3351 | char h[sizeof (_Bool)]; |
---|
3352 | char i[sizeof s.t]; |
---|
3353 | |
---|
3354 | int |
---|
3355 | main () |
---|
3356 | { |
---|
3357 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
3358 | ; |
---|
3359 | return 0; |
---|
3360 | } |
---|
3361 | _ACEOF |
---|
3362 | rm -f conftest.$ac_objext |
---|
3363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3364 | (eval $ac_compile) 2>&5 |
---|
3365 | ac_status=$? |
---|
3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3367 | (exit $ac_status); } && |
---|
3368 | { ac_try='test -s conftest.$ac_objext' |
---|
3369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3370 | (eval $ac_try) 2>&5 |
---|
3371 | ac_status=$? |
---|
3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3373 | (exit $ac_status); }; }; then |
---|
3374 | ac_cv_header_stdbool_h=yes |
---|
3375 | else |
---|
3376 | echo "$as_me: failed program was:" >&5 |
---|
3377 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3378 | |
---|
3379 | ac_cv_header_stdbool_h=no |
---|
3380 | fi |
---|
3381 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3382 | fi |
---|
3383 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
3384 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
3385 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
3386 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
3387 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3389 | else |
---|
3390 | cat >conftest.$ac_ext <<_ACEOF |
---|
3391 | #line $LINENO "configure" |
---|
3392 | /* confdefs.h. */ |
---|
3393 | _ACEOF |
---|
3394 | cat confdefs.h >>conftest.$ac_ext |
---|
3395 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3396 | /* end confdefs.h. */ |
---|
3397 | $ac_includes_default |
---|
3398 | int |
---|
3399 | main () |
---|
3400 | { |
---|
3401 | if ((_Bool *) 0) |
---|
3402 | return 0; |
---|
3403 | if (sizeof (_Bool)) |
---|
3404 | return 0; |
---|
3405 | ; |
---|
3406 | return 0; |
---|
3407 | } |
---|
3408 | _ACEOF |
---|
3409 | rm -f conftest.$ac_objext |
---|
3410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3411 | (eval $ac_compile) 2>&5 |
---|
3412 | ac_status=$? |
---|
3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3414 | (exit $ac_status); } && |
---|
3415 | { ac_try='test -s conftest.$ac_objext' |
---|
3416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3417 | (eval $ac_try) 2>&5 |
---|
3418 | ac_status=$? |
---|
3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3420 | (exit $ac_status); }; }; then |
---|
3421 | ac_cv_type__Bool=yes |
---|
3422 | else |
---|
3423 | echo "$as_me: failed program was:" >&5 |
---|
3424 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3425 | |
---|
3426 | ac_cv_type__Bool=no |
---|
3427 | fi |
---|
3428 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3429 | fi |
---|
3430 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
3431 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
3432 | if test $ac_cv_type__Bool = yes; then |
---|
3433 | |
---|
3434 | cat >>confdefs.h <<_ACEOF |
---|
3435 | #define HAVE__BOOL 1 |
---|
3436 | _ACEOF |
---|
3437 | |
---|
3438 | |
---|
3439 | fi |
---|
3440 | |
---|
3441 | if test $ac_cv_header_stdbool_h = yes; then |
---|
3442 | |
---|
3443 | cat >>confdefs.h <<\_ACEOF |
---|
3444 | #define HAVE_STDBOOL_H 1 |
---|
3445 | _ACEOF |
---|
3446 | |
---|
3447 | fi |
---|
3448 | |
---|
3449 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
3450 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
3451 | if test "${ac_cv_c_const+set}" = set; then |
---|
3452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3453 | else |
---|
3454 | cat >conftest.$ac_ext <<_ACEOF |
---|
3455 | #line $LINENO "configure" |
---|
3456 | /* confdefs.h. */ |
---|
3457 | _ACEOF |
---|
3458 | cat confdefs.h >>conftest.$ac_ext |
---|
3459 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3460 | /* end confdefs.h. */ |
---|
3461 | |
---|
3462 | int |
---|
3463 | main () |
---|
3464 | { |
---|
3465 | /* FIXME: Include the comments suggested by Paul. */ |
---|
3466 | #ifndef __cplusplus |
---|
3467 | /* Ultrix mips cc rejects this. */ |
---|
3468 | typedef int charset[2]; |
---|
3469 | const charset x; |
---|
3470 | /* SunOS 4.1.1 cc rejects this. */ |
---|
3471 | char const *const *ccp; |
---|
3472 | char **p; |
---|
3473 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
3474 | struct point {int x, y;}; |
---|
3475 | static struct point const zero = {0,0}; |
---|
3476 | /* AIX XL C 1.02.0.0 rejects this. |
---|
3477 | It does not let you subtract one const X* pointer from another in |
---|
3478 | an arm of an if-expression whose if-part is not a constant |
---|
3479 | expression */ |
---|
3480 | const char *g = "string"; |
---|
3481 | ccp = &g + (g ? g-g : 0); |
---|
3482 | /* HPUX 7.0 cc rejects these. */ |
---|
3483 | ++ccp; |
---|
3484 | p = (char**) ccp; |
---|
3485 | ccp = (char const *const *) p; |
---|
3486 | { /* SCO 3.2v4 cc rejects this. */ |
---|
3487 | char *t; |
---|
3488 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
3489 | |
---|
3490 | *t++ = 0; |
---|
3491 | } |
---|
3492 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
3493 | int x[] = {25, 17}; |
---|
3494 | const int *foo = &x[0]; |
---|
3495 | ++foo; |
---|
3496 | } |
---|
3497 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
3498 | typedef const int *iptr; |
---|
3499 | iptr p = 0; |
---|
3500 | ++p; |
---|
3501 | } |
---|
3502 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
3503 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
3504 | struct s { int j; const int *ap[3]; }; |
---|
3505 | struct s *b; b->j = 5; |
---|
3506 | } |
---|
3507 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
3508 | const int foo = 10; |
---|
3509 | } |
---|
3510 | #endif |
---|
3511 | |
---|
3512 | ; |
---|
3513 | return 0; |
---|
3514 | } |
---|
3515 | _ACEOF |
---|
3516 | rm -f conftest.$ac_objext |
---|
3517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3518 | (eval $ac_compile) 2>&5 |
---|
3519 | ac_status=$? |
---|
3520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3521 | (exit $ac_status); } && |
---|
3522 | { ac_try='test -s conftest.$ac_objext' |
---|
3523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3524 | (eval $ac_try) 2>&5 |
---|
3525 | ac_status=$? |
---|
3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3527 | (exit $ac_status); }; }; then |
---|
3528 | ac_cv_c_const=yes |
---|
3529 | else |
---|
3530 | echo "$as_me: failed program was:" >&5 |
---|
3531 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3532 | |
---|
3533 | ac_cv_c_const=no |
---|
3534 | fi |
---|
3535 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3536 | fi |
---|
3537 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
3538 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
3539 | if test $ac_cv_c_const = no; then |
---|
3540 | |
---|
3541 | cat >>confdefs.h <<\_ACEOF |
---|
3542 | #define const |
---|
3543 | _ACEOF |
---|
3544 | |
---|
3545 | fi |
---|
3546 | |
---|
3547 | echo "$as_me:$LINENO: checking for inline" >&5 |
---|
3548 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
---|
3549 | if test "${ac_cv_c_inline+set}" = set; then |
---|
3550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3551 | else |
---|
3552 | ac_cv_c_inline=no |
---|
3553 | for ac_kw in inline __inline__ __inline; do |
---|
3554 | cat >conftest.$ac_ext <<_ACEOF |
---|
3555 | #line $LINENO "configure" |
---|
3556 | /* confdefs.h. */ |
---|
3557 | _ACEOF |
---|
3558 | cat confdefs.h >>conftest.$ac_ext |
---|
3559 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3560 | /* end confdefs.h. */ |
---|
3561 | #ifndef __cplusplus |
---|
3562 | typedef int foo_t; |
---|
3563 | static $ac_kw foo_t static_foo () {return 0; } |
---|
3564 | $ac_kw foo_t foo () {return 0; } |
---|
3565 | #endif |
---|
3566 | |
---|
3567 | _ACEOF |
---|
3568 | rm -f conftest.$ac_objext |
---|
3569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3570 | (eval $ac_compile) 2>&5 |
---|
3571 | ac_status=$? |
---|
3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3573 | (exit $ac_status); } && |
---|
3574 | { ac_try='test -s conftest.$ac_objext' |
---|
3575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3576 | (eval $ac_try) 2>&5 |
---|
3577 | ac_status=$? |
---|
3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3579 | (exit $ac_status); }; }; then |
---|
3580 | ac_cv_c_inline=$ac_kw; break |
---|
3581 | else |
---|
3582 | echo "$as_me: failed program was:" >&5 |
---|
3583 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3584 | |
---|
3585 | fi |
---|
3586 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3587 | done |
---|
3588 | |
---|
3589 | fi |
---|
3590 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
3591 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
---|
3592 | case $ac_cv_c_inline in |
---|
3593 | inline | yes) ;; |
---|
3594 | no) |
---|
3595 | cat >>confdefs.h <<\_ACEOF |
---|
3596 | #define inline |
---|
3597 | _ACEOF |
---|
3598 | ;; |
---|
3599 | *) cat >>confdefs.h <<_ACEOF |
---|
3600 | #define inline $ac_cv_c_inline |
---|
3601 | _ACEOF |
---|
3602 | ;; |
---|
3603 | esac |
---|
3604 | |
---|
3605 | |
---|
3606 | # Checks for library functions. |
---|
3607 | echo "$as_me:$LINENO: checking for working strtod" >&5 |
---|
3608 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 |
---|
3609 | if test "${ac_cv_func_strtod+set}" = set; then |
---|
3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3611 | else |
---|
3612 | if test "$cross_compiling" = yes; then |
---|
3613 | ac_cv_func_strtod=no |
---|
3614 | else |
---|
3615 | cat >conftest.$ac_ext <<_ACEOF |
---|
3616 | #line $LINENO "configure" |
---|
3617 | /* confdefs.h. */ |
---|
3618 | _ACEOF |
---|
3619 | cat confdefs.h >>conftest.$ac_ext |
---|
3620 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3621 | /* end confdefs.h. */ |
---|
3622 | |
---|
3623 | double strtod (); |
---|
3624 | int |
---|
3625 | main() |
---|
3626 | { |
---|
3627 | { |
---|
3628 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
---|
3629 | char *string = " +69"; |
---|
3630 | char *term; |
---|
3631 | double value; |
---|
3632 | value = strtod (string, &term); |
---|
3633 | if (value != 69 || term != (string + 4)) |
---|
3634 | exit (1); |
---|
3635 | } |
---|
3636 | |
---|
3637 | { |
---|
3638 | /* Under Solaris 2.4, strtod returns the wrong value for the |
---|
3639 | terminating character under some conditions. */ |
---|
3640 | char *string = "NaN"; |
---|
3641 | char *term; |
---|
3642 | strtod (string, &term); |
---|
3643 | if (term != string && *(term - 1) == 0) |
---|
3644 | exit (1); |
---|
3645 | } |
---|
3646 | exit (0); |
---|
3647 | } |
---|
3648 | |
---|
3649 | _ACEOF |
---|
3650 | rm -f conftest$ac_exeext |
---|
3651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3652 | (eval $ac_link) 2>&5 |
---|
3653 | ac_status=$? |
---|
3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3657 | (eval $ac_try) 2>&5 |
---|
3658 | ac_status=$? |
---|
3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3660 | (exit $ac_status); }; }; then |
---|
3661 | ac_cv_func_strtod=yes |
---|
3662 | else |
---|
3663 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3664 | echo "$as_me: failed program was:" >&5 |
---|
3665 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3666 | |
---|
3667 | ( exit $ac_status ) |
---|
3668 | ac_cv_func_strtod=no |
---|
3669 | fi |
---|
3670 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3671 | fi |
---|
3672 | fi |
---|
3673 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
---|
3674 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 |
---|
3675 | if test $ac_cv_func_strtod = no; then |
---|
3676 | LIBOBJS="$LIBOBJS strtod.$ac_objext" |
---|
3677 | echo "$as_me:$LINENO: checking for pow" >&5 |
---|
3678 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 |
---|
3679 | if test "${ac_cv_func_pow+set}" = set; then |
---|
3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3681 | else |
---|
3682 | cat >conftest.$ac_ext <<_ACEOF |
---|
3683 | #line $LINENO "configure" |
---|
3684 | /* confdefs.h. */ |
---|
3685 | _ACEOF |
---|
3686 | cat confdefs.h >>conftest.$ac_ext |
---|
3687 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3688 | /* end confdefs.h. */ |
---|
3689 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3690 | which can conflict with char pow (); below. |
---|
3691 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3692 | <limits.h> exists even on freestanding compilers. */ |
---|
3693 | #ifdef __STDC__ |
---|
3694 | # include <limits.h> |
---|
3695 | #else |
---|
3696 | # include <assert.h> |
---|
3697 | #endif |
---|
3698 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3699 | #ifdef __cplusplus |
---|
3700 | extern "C" |
---|
3701 | { |
---|
3702 | #endif |
---|
3703 | /* We use char because int might match the return type of a gcc2 |
---|
3704 | builtin and then its argument prototype would still apply. */ |
---|
3705 | char pow (); |
---|
3706 | /* The GNU C library defines this for functions which it implements |
---|
3707 | to always fail with ENOSYS. Some functions are actually named |
---|
3708 | something starting with __ and the normal name is an alias. */ |
---|
3709 | #if defined (__stub_pow) || defined (__stub___pow) |
---|
3710 | choke me |
---|
3711 | #else |
---|
3712 | char (*f) () = pow; |
---|
3713 | #endif |
---|
3714 | #ifdef __cplusplus |
---|
3715 | } |
---|
3716 | #endif |
---|
3717 | |
---|
3718 | int |
---|
3719 | main () |
---|
3720 | { |
---|
3721 | return f != pow; |
---|
3722 | ; |
---|
3723 | return 0; |
---|
3724 | } |
---|
3725 | _ACEOF |
---|
3726 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3728 | (eval $ac_link) 2>&5 |
---|
3729 | ac_status=$? |
---|
3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3731 | (exit $ac_status); } && |
---|
3732 | { ac_try='test -s conftest$ac_exeext' |
---|
3733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3734 | (eval $ac_try) 2>&5 |
---|
3735 | ac_status=$? |
---|
3736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3737 | (exit $ac_status); }; }; then |
---|
3738 | ac_cv_func_pow=yes |
---|
3739 | else |
---|
3740 | echo "$as_me: failed program was:" >&5 |
---|
3741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3742 | |
---|
3743 | ac_cv_func_pow=no |
---|
3744 | fi |
---|
3745 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3746 | fi |
---|
3747 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
---|
3748 | echo "${ECHO_T}$ac_cv_func_pow" >&6 |
---|
3749 | |
---|
3750 | if test $ac_cv_func_pow = no; then |
---|
3751 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
3752 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
---|
3753 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
3754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3755 | else |
---|
3756 | ac_check_lib_save_LIBS=$LIBS |
---|
3757 | LIBS="-lm $LIBS" |
---|
3758 | cat >conftest.$ac_ext <<_ACEOF |
---|
3759 | #line $LINENO "configure" |
---|
3760 | /* confdefs.h. */ |
---|
3761 | _ACEOF |
---|
3762 | cat confdefs.h >>conftest.$ac_ext |
---|
3763 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3764 | /* end confdefs.h. */ |
---|
3765 | |
---|
3766 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3767 | #ifdef __cplusplus |
---|
3768 | extern "C" |
---|
3769 | #endif |
---|
3770 | /* We use char because int might match the return type of a gcc2 |
---|
3771 | builtin and then its argument prototype would still apply. */ |
---|
3772 | char pow (); |
---|
3773 | int |
---|
3774 | main () |
---|
3775 | { |
---|
3776 | pow (); |
---|
3777 | ; |
---|
3778 | return 0; |
---|
3779 | } |
---|
3780 | _ACEOF |
---|
3781 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3783 | (eval $ac_link) 2>&5 |
---|
3784 | ac_status=$? |
---|
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3786 | (exit $ac_status); } && |
---|
3787 | { ac_try='test -s conftest$ac_exeext' |
---|
3788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3789 | (eval $ac_try) 2>&5 |
---|
3790 | ac_status=$? |
---|
3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3792 | (exit $ac_status); }; }; then |
---|
3793 | ac_cv_lib_m_pow=yes |
---|
3794 | else |
---|
3795 | echo "$as_me: failed program was:" >&5 |
---|
3796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3797 | |
---|
3798 | ac_cv_lib_m_pow=no |
---|
3799 | fi |
---|
3800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3801 | LIBS=$ac_check_lib_save_LIBS |
---|
3802 | fi |
---|
3803 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
3804 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
---|
3805 | if test $ac_cv_lib_m_pow = yes; then |
---|
3806 | POW_LIB=-lm |
---|
3807 | else |
---|
3808 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
---|
3809 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
---|
3810 | fi |
---|
3811 | |
---|
3812 | fi |
---|
3813 | |
---|
3814 | fi |
---|
3815 | |
---|
3816 | |
---|
3817 | |
---|
3818 | |
---|
3819 | |
---|
3820 | |
---|
3821 | |
---|
3822 | |
---|
3823 | for ac_func in floor pow sqrt strtol log atan fabs |
---|
3824 | do |
---|
3825 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
3826 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
3827 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
3828 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3830 | else |
---|
3831 | cat >conftest.$ac_ext <<_ACEOF |
---|
3832 | #line $LINENO "configure" |
---|
3833 | /* confdefs.h. */ |
---|
3834 | _ACEOF |
---|
3835 | cat confdefs.h >>conftest.$ac_ext |
---|
3836 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3837 | /* end confdefs.h. */ |
---|
3838 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3839 | which can conflict with char $ac_func (); below. |
---|
3840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3841 | <limits.h> exists even on freestanding compilers. */ |
---|
3842 | #ifdef __STDC__ |
---|
3843 | # include <limits.h> |
---|
3844 | #else |
---|
3845 | # include <assert.h> |
---|
3846 | #endif |
---|
3847 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3848 | #ifdef __cplusplus |
---|
3849 | extern "C" |
---|
3850 | { |
---|
3851 | #endif |
---|
3852 | /* We use char because int might match the return type of a gcc2 |
---|
3853 | builtin and then its argument prototype would still apply. */ |
---|
3854 | char $ac_func (); |
---|
3855 | /* The GNU C library defines this for functions which it implements |
---|
3856 | to always fail with ENOSYS. Some functions are actually named |
---|
3857 | something starting with __ and the normal name is an alias. */ |
---|
3858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3859 | choke me |
---|
3860 | #else |
---|
3861 | char (*f) () = $ac_func; |
---|
3862 | #endif |
---|
3863 | #ifdef __cplusplus |
---|
3864 | } |
---|
3865 | #endif |
---|
3866 | |
---|
3867 | int |
---|
3868 | main () |
---|
3869 | { |
---|
3870 | return f != $ac_func; |
---|
3871 | ; |
---|
3872 | return 0; |
---|
3873 | } |
---|
3874 | _ACEOF |
---|
3875 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3877 | (eval $ac_link) 2>&5 |
---|
3878 | ac_status=$? |
---|
3879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3880 | (exit $ac_status); } && |
---|
3881 | { ac_try='test -s conftest$ac_exeext' |
---|
3882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3883 | (eval $ac_try) 2>&5 |
---|
3884 | ac_status=$? |
---|
3885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3886 | (exit $ac_status); }; }; then |
---|
3887 | eval "$as_ac_var=yes" |
---|
3888 | else |
---|
3889 | echo "$as_me: failed program was:" >&5 |
---|
3890 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3891 | |
---|
3892 | eval "$as_ac_var=no" |
---|
3893 | fi |
---|
3894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3895 | fi |
---|
3896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
3897 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
3898 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
3899 | cat >>confdefs.h <<_ACEOF |
---|
3900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
3901 | _ACEOF |
---|
3902 | |
---|
3903 | fi |
---|
3904 | done |
---|
3905 | |
---|
3906 | |
---|
3907 | # Look for a Fortran compiler. |
---|
3908 | ac_ext=f |
---|
3909 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3910 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3911 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3912 | if test -n "$ac_tool_prefix"; then |
---|
3913 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
---|
3914 | do |
---|
3915 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3916 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3919 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3921 | else |
---|
3922 | if test -n "$F77"; then |
---|
3923 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3924 | else |
---|
3925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3926 | for as_dir in $PATH |
---|
3927 | do |
---|
3928 | IFS=$as_save_IFS |
---|
3929 | test -z "$as_dir" && as_dir=. |
---|
3930 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3932 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3934 | break 2 |
---|
3935 | fi |
---|
3936 | done |
---|
3937 | done |
---|
3938 | |
---|
3939 | fi |
---|
3940 | fi |
---|
3941 | F77=$ac_cv_prog_F77 |
---|
3942 | if test -n "$F77"; then |
---|
3943 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3944 | echo "${ECHO_T}$F77" >&6 |
---|
3945 | else |
---|
3946 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3947 | echo "${ECHO_T}no" >&6 |
---|
3948 | fi |
---|
3949 | |
---|
3950 | test -n "$F77" && break |
---|
3951 | done |
---|
3952 | fi |
---|
3953 | if test -z "$F77"; then |
---|
3954 | ac_ct_F77=$F77 |
---|
3955 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
---|
3956 | do |
---|
3957 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3958 | set dummy $ac_prog; ac_word=$2 |
---|
3959 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3961 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3963 | else |
---|
3964 | if test -n "$ac_ct_F77"; then |
---|
3965 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3966 | else |
---|
3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3968 | for as_dir in $PATH |
---|
3969 | do |
---|
3970 | IFS=$as_save_IFS |
---|
3971 | test -z "$as_dir" && as_dir=. |
---|
3972 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3973 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3974 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3976 | break 2 |
---|
3977 | fi |
---|
3978 | done |
---|
3979 | done |
---|
3980 | |
---|
3981 | fi |
---|
3982 | fi |
---|
3983 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3984 | if test -n "$ac_ct_F77"; then |
---|
3985 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3986 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3987 | else |
---|
3988 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3989 | echo "${ECHO_T}no" >&6 |
---|
3990 | fi |
---|
3991 | |
---|
3992 | test -n "$ac_ct_F77" && break |
---|
3993 | done |
---|
3994 | |
---|
3995 | F77=$ac_ct_F77 |
---|
3996 | fi |
---|
3997 | |
---|
3998 | |
---|
3999 | # Provide some information about the compiler. |
---|
4000 | echo "$as_me:4000:" \ |
---|
4001 | "checking for Fortran 77 compiler version" >&5 |
---|
4002 | ac_compiler=`set X $ac_compile; echo $2` |
---|
4003 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
4004 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
4005 | ac_status=$? |
---|
4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4007 | (exit $ac_status); } |
---|
4008 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
4009 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
4010 | ac_status=$? |
---|
4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4012 | (exit $ac_status); } |
---|
4013 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
4014 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
4015 | ac_status=$? |
---|
4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4017 | (exit $ac_status); } |
---|
4018 | |
---|
4019 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
4020 | # input file. |
---|
4021 | ac_save_ext=$ac_ext |
---|
4022 | ac_ext=F |
---|
4023 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
4024 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
4025 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
4026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4027 | else |
---|
4028 | cat >conftest.$ac_ext <<_ACEOF |
---|
4029 | program main |
---|
4030 | #ifndef __GNUC__ |
---|
4031 | choke me |
---|
4032 | #endif |
---|
4033 | |
---|
4034 | end |
---|
4035 | _ACEOF |
---|
4036 | rm -f conftest.$ac_objext |
---|
4037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4038 | (eval $ac_compile) 2>&5 |
---|
4039 | ac_status=$? |
---|
4040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4041 | (exit $ac_status); } && |
---|
4042 | { ac_try='test -s conftest.$ac_objext' |
---|
4043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4044 | (eval $ac_try) 2>&5 |
---|
4045 | ac_status=$? |
---|
4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4047 | (exit $ac_status); }; }; then |
---|
4048 | ac_compiler_gnu=yes |
---|
4049 | else |
---|
4050 | echo "$as_me: failed program was:" >&5 |
---|
4051 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4052 | |
---|
4053 | ac_compiler_gnu=no |
---|
4054 | fi |
---|
4055 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4056 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
4057 | |
---|
4058 | fi |
---|
4059 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
4060 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
4061 | ac_ext=$ac_save_ext |
---|
4062 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
4063 | ac_test_FFLAGS=${FFLAGS+set} |
---|
4064 | ac_save_FFLAGS=$FFLAGS |
---|
4065 | FFLAGS= |
---|
4066 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
4067 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
4068 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
4069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4070 | else |
---|
4071 | FFLAGS=-g |
---|
4072 | cat >conftest.$ac_ext <<_ACEOF |
---|
4073 | program main |
---|
4074 | |
---|
4075 | end |
---|
4076 | _ACEOF |
---|
4077 | rm -f conftest.$ac_objext |
---|
4078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4079 | (eval $ac_compile) 2>&5 |
---|
4080 | ac_status=$? |
---|
4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4082 | (exit $ac_status); } && |
---|
4083 | { ac_try='test -s conftest.$ac_objext' |
---|
4084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4085 | (eval $ac_try) 2>&5 |
---|
4086 | ac_status=$? |
---|
4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4088 | (exit $ac_status); }; }; then |
---|
4089 | ac_cv_prog_f77_g=yes |
---|
4090 | else |
---|
4091 | echo "$as_me: failed program was:" >&5 |
---|
4092 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4093 | |
---|
4094 | ac_cv_prog_f77_g=no |
---|
4095 | fi |
---|
4096 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4097 | |
---|
4098 | fi |
---|
4099 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
4100 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
4101 | if test "$ac_test_FFLAGS" = set; then |
---|
4102 | FFLAGS=$ac_save_FFLAGS |
---|
4103 | elif test $ac_cv_prog_f77_g = yes; then |
---|
4104 | if test "$G77" = yes; then |
---|
4105 | FFLAGS="-g -O2" |
---|
4106 | else |
---|
4107 | FFLAGS="-g" |
---|
4108 | fi |
---|
4109 | else |
---|
4110 | if test "$G77" = yes; then |
---|
4111 | FFLAGS="-O2" |
---|
4112 | else |
---|
4113 | FFLAGS= |
---|
4114 | fi |
---|
4115 | fi |
---|
4116 | ac_ext=c |
---|
4117 | ac_cpp='$CPP $CPPFLAGS' |
---|
4118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4121 | |
---|
4122 | if test "x$F77" = x; then |
---|
4123 | { echo "$as_me:$LINENO: WARNING: Fortran compiler not found" >&5 |
---|
4124 | echo "$as_me: WARNING: Fortran compiler not found" >&2;} |
---|
4125 | else |
---|
4126 | if test "x$ac_cv_f77_compiler_gnu" = xyes ; then |
---|
4127 | FFLAGS="$FFLAGS -Wno-globals" |
---|
4128 | fi |
---|
4129 | |
---|
4130 | echo "$as_me:$LINENO: checking whether $F77 accepts -I" >&5 |
---|
4131 | echo $ECHO_N "checking whether $F77 accepts -I... $ECHO_C" >&6 |
---|
4132 | ac_ext=f |
---|
4133 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4134 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4135 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4136 | |
---|
4137 | FFLAGS_save=$FFLAGS |
---|
4138 | FFLAGS=-I. |
---|
4139 | |
---|
4140 | cat >conftest.$ac_ext <<_ACEOF |
---|
4141 | program main |
---|
4142 | |
---|
4143 | end |
---|
4144 | _ACEOF |
---|
4145 | rm -f conftest.$ac_objext |
---|
4146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4147 | (eval $ac_compile) 2>&5 |
---|
4148 | ac_status=$? |
---|
4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4150 | (exit $ac_status); } && |
---|
4151 | { ac_try='test -s conftest.$ac_objext' |
---|
4152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4153 | (eval $ac_try) 2>&5 |
---|
4154 | ac_status=$? |
---|
4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4156 | (exit $ac_status); }; }; then |
---|
4157 | FFLAGS="$FFLAGS_save -I."; echo "$as_me:$LINENO: result: yes" >&5 |
---|
4158 | echo "${ECHO_T}yes" >&6 |
---|
4159 | else |
---|
4160 | echo "$as_me: failed program was:" >&5 |
---|
4161 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4162 | |
---|
4163 | FFLAGS="$FFLAGS_save"; echo "$as_me:$LINENO: result: no" >&5 |
---|
4164 | echo "${ECHO_T}no" >&6 |
---|
4165 | fi |
---|
4166 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4167 | ac_ext=c |
---|
4168 | ac_cpp='$CPP $CPPFLAGS' |
---|
4169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4172 | |
---|
4173 | fi |
---|
4174 | |
---|
4175 | # Extra places to look for third-party include files and libraries. |
---|
4176 | INCDIRS="$INCDIRS \ |
---|
4177 | /usr/include \ |
---|
4178 | /usr/local/include \ |
---|
4179 | /usr/local/pgplot \ |
---|
4180 | /usr/local/cfitsio \ |
---|
4181 | /usr/local/wcslib \ |
---|
4182 | /local/pgplot \ |
---|
4183 | /local/cfitsio \ |
---|
4184 | /opt/local/include" |
---|
4185 | |
---|
4186 | LIBDIRS="$LIBDIRS \ |
---|
4187 | /usr/lib \ |
---|
4188 | /usr/local/lib \ |
---|
4189 | /usr/local/pgplot \ |
---|
4190 | /usr/local/cfitsio \ |
---|
4191 | /usr/local/wcslib \ |
---|
4192 | /local/lib \ |
---|
4193 | /local/pgplot \ |
---|
4194 | /local/cfitsio \ |
---|
4195 | /opt/SUNWspro/lib \ |
---|
4196 | /opt/local/lib" |
---|
4197 | |
---|
4198 | { echo "$as_me:$LINENO: LIBDIRS" >&5 |
---|
4199 | echo "$as_me: LIBDIRS" >&6;} |
---|
4200 | |
---|
4201 | for LIBDIR in $LIBDIRS ; do |
---|
4202 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
4203 | echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
4204 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6 |
---|
4205 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4207 | else |
---|
4208 | test "$cross_compiling" = yes && |
---|
4209 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
4210 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
4211 | { (exit 1); exit 1; }; } |
---|
4212 | if test -r "$LIBDIR"; then |
---|
4213 | eval "$as_ac_File=yes" |
---|
4214 | else |
---|
4215 | eval "$as_ac_File=no" |
---|
4216 | fi |
---|
4217 | fi |
---|
4218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
4219 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
4220 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
4221 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
4222 | else |
---|
4223 | continue |
---|
4224 | fi |
---|
4225 | |
---|
4226 | done |
---|
4227 | |
---|
4228 | ########################################################################## |
---|
4229 | # Search for PGPLOT |
---|
4230 | |
---|
4231 | for INCDIR in $INCDIRS ; do |
---|
4232 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
4233 | echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
4234 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6 |
---|
4235 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
4236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4237 | else |
---|
4238 | test "$cross_compiling" = yes && |
---|
4239 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
4240 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
4241 | { (exit 1); exit 1; }; } |
---|
4242 | if test -r "$INCDIR/cpgplot.h"; then |
---|
4243 | eval "$as_ac_File=yes" |
---|
4244 | else |
---|
4245 | eval "$as_ac_File=no" |
---|
4246 | fi |
---|
4247 | fi |
---|
4248 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
4249 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
4250 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
4251 | PGPLOTINC=-I$INCDIR; break |
---|
4252 | fi |
---|
4253 | |
---|
4254 | INCDIR=$INCDIR/pgplot |
---|
4255 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
4256 | echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
4257 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6 |
---|
4258 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
4259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4260 | else |
---|
4261 | test "$cross_compiling" = yes && |
---|
4262 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
4263 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
4264 | { (exit 1); exit 1; }; } |
---|
4265 | if test -r "$INCDIR/cpgplot.h"; then |
---|
4266 | eval "$as_ac_File=yes" |
---|
4267 | else |
---|
4268 | eval "$as_ac_File=no" |
---|
4269 | fi |
---|
4270 | fi |
---|
4271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
4272 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
4273 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
4274 | PGPLOTINC=-I$INCDIR; break |
---|
4275 | fi |
---|
4276 | |
---|
4277 | done |
---|
4278 | |
---|
4279 | # PGPLOT compiled with a SUN compiler but linked with something else. |
---|
4280 | echo "$as_me:$LINENO: checking for cosd in -lsunmath" >&5 |
---|
4281 | echo $ECHO_N "checking for cosd in -lsunmath... $ECHO_C" >&6 |
---|
4282 | if test "${ac_cv_lib_sunmath_cosd+set}" = set; then |
---|
4283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4284 | else |
---|
4285 | ac_check_lib_save_LIBS=$LIBS |
---|
4286 | LIBS="-lsunmath $PGPLOTLIB $LIBS $LIBS" |
---|
4287 | cat >conftest.$ac_ext <<_ACEOF |
---|
4288 | #line $LINENO "configure" |
---|
4289 | /* confdefs.h. */ |
---|
4290 | _ACEOF |
---|
4291 | cat confdefs.h >>conftest.$ac_ext |
---|
4292 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4293 | /* end confdefs.h. */ |
---|
4294 | |
---|
4295 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4296 | #ifdef __cplusplus |
---|
4297 | extern "C" |
---|
4298 | #endif |
---|
4299 | /* We use char because int might match the return type of a gcc2 |
---|
4300 | builtin and then its argument prototype would still apply. */ |
---|
4301 | char cosd (); |
---|
4302 | int |
---|
4303 | main () |
---|
4304 | { |
---|
4305 | cosd (); |
---|
4306 | ; |
---|
4307 | return 0; |
---|
4308 | } |
---|
4309 | _ACEOF |
---|
4310 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4312 | (eval $ac_link) 2>&5 |
---|
4313 | ac_status=$? |
---|
4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4315 | (exit $ac_status); } && |
---|
4316 | { ac_try='test -s conftest$ac_exeext' |
---|
4317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4318 | (eval $ac_try) 2>&5 |
---|
4319 | ac_status=$? |
---|
4320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4321 | (exit $ac_status); }; }; then |
---|
4322 | ac_cv_lib_sunmath_cosd=yes |
---|
4323 | else |
---|
4324 | echo "$as_me: failed program was:" >&5 |
---|
4325 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4326 | |
---|
4327 | ac_cv_lib_sunmath_cosd=no |
---|
4328 | fi |
---|
4329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4330 | LIBS=$ac_check_lib_save_LIBS |
---|
4331 | fi |
---|
4332 | echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_cosd" >&5 |
---|
4333 | echo "${ECHO_T}$ac_cv_lib_sunmath_cosd" >&6 |
---|
4334 | if test $ac_cv_lib_sunmath_cosd = yes; then |
---|
4335 | PGPLOTLIB="-lsunmath $PGPLOTLIB" |
---|
4336 | fi |
---|
4337 | |
---|
4338 | echo "$as_me:$LINENO: checking for iand_ in -lM77" >&5 |
---|
4339 | echo $ECHO_N "checking for iand_ in -lM77... $ECHO_C" >&6 |
---|
4340 | if test "${ac_cv_lib_M77_iand_+set}" = set; then |
---|
4341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4342 | else |
---|
4343 | ac_check_lib_save_LIBS=$LIBS |
---|
4344 | LIBS="-lM77 $PGPLOTLIB $LIBS $LIBS" |
---|
4345 | cat >conftest.$ac_ext <<_ACEOF |
---|
4346 | #line $LINENO "configure" |
---|
4347 | /* confdefs.h. */ |
---|
4348 | _ACEOF |
---|
4349 | cat confdefs.h >>conftest.$ac_ext |
---|
4350 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4351 | /* end confdefs.h. */ |
---|
4352 | |
---|
4353 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4354 | #ifdef __cplusplus |
---|
4355 | extern "C" |
---|
4356 | #endif |
---|
4357 | /* We use char because int might match the return type of a gcc2 |
---|
4358 | builtin and then its argument prototype would still apply. */ |
---|
4359 | char iand_ (); |
---|
4360 | int |
---|
4361 | main () |
---|
4362 | { |
---|
4363 | iand_ (); |
---|
4364 | ; |
---|
4365 | return 0; |
---|
4366 | } |
---|
4367 | _ACEOF |
---|
4368 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4370 | (eval $ac_link) 2>&5 |
---|
4371 | ac_status=$? |
---|
4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4373 | (exit $ac_status); } && |
---|
4374 | { ac_try='test -s conftest$ac_exeext' |
---|
4375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4376 | (eval $ac_try) 2>&5 |
---|
4377 | ac_status=$? |
---|
4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4379 | (exit $ac_status); }; }; then |
---|
4380 | ac_cv_lib_M77_iand_=yes |
---|
4381 | else |
---|
4382 | echo "$as_me: failed program was:" >&5 |
---|
4383 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4384 | |
---|
4385 | ac_cv_lib_M77_iand_=no |
---|
4386 | fi |
---|
4387 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4388 | LIBS=$ac_check_lib_save_LIBS |
---|
4389 | fi |
---|
4390 | echo "$as_me:$LINENO: result: $ac_cv_lib_M77_iand_" >&5 |
---|
4391 | echo "${ECHO_T}$ac_cv_lib_M77_iand_" >&6 |
---|
4392 | if test $ac_cv_lib_M77_iand_ = yes; then |
---|
4393 | PGPLOTLIB="-lM77 $PGPLOTLIB" |
---|
4394 | fi |
---|
4395 | |
---|
4396 | echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5 |
---|
4397 | echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6 |
---|
4398 | if test "${ac_cv_lib_F77_f77_init+set}" = set; then |
---|
4399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4400 | else |
---|
4401 | ac_check_lib_save_LIBS=$LIBS |
---|
4402 | LIBS="-lF77 $PGPLOTLIB $LIBS $LIBS" |
---|
4403 | cat >conftest.$ac_ext <<_ACEOF |
---|
4404 | #line $LINENO "configure" |
---|
4405 | /* confdefs.h. */ |
---|
4406 | _ACEOF |
---|
4407 | cat confdefs.h >>conftest.$ac_ext |
---|
4408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4409 | /* end confdefs.h. */ |
---|
4410 | |
---|
4411 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4412 | #ifdef __cplusplus |
---|
4413 | extern "C" |
---|
4414 | #endif |
---|
4415 | /* We use char because int might match the return type of a gcc2 |
---|
4416 | builtin and then its argument prototype would still apply. */ |
---|
4417 | char f77_init (); |
---|
4418 | int |
---|
4419 | main () |
---|
4420 | { |
---|
4421 | f77_init (); |
---|
4422 | ; |
---|
4423 | return 0; |
---|
4424 | } |
---|
4425 | _ACEOF |
---|
4426 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4428 | (eval $ac_link) 2>&5 |
---|
4429 | ac_status=$? |
---|
4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4431 | (exit $ac_status); } && |
---|
4432 | { ac_try='test -s conftest$ac_exeext' |
---|
4433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4434 | (eval $ac_try) 2>&5 |
---|
4435 | ac_status=$? |
---|
4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4437 | (exit $ac_status); }; }; then |
---|
4438 | ac_cv_lib_F77_f77_init=yes |
---|
4439 | else |
---|
4440 | echo "$as_me: failed program was:" >&5 |
---|
4441 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4442 | |
---|
4443 | ac_cv_lib_F77_f77_init=no |
---|
4444 | fi |
---|
4445 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4446 | LIBS=$ac_check_lib_save_LIBS |
---|
4447 | fi |
---|
4448 | echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5 |
---|
4449 | echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6 |
---|
4450 | if test $ac_cv_lib_F77_f77_init = yes; then |
---|
4451 | PGPLOTLIB="-lF77 $PGPLOTLIB" |
---|
4452 | fi |
---|
4453 | |
---|
4454 | # PGPLOT compiled with a GNU compiler but linked with something else. |
---|
4455 | echo "$as_me:$LINENO: checking for log in -lm" >&5 |
---|
4456 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 |
---|
4457 | if test "${ac_cv_lib_m_log+set}" = set; then |
---|
4458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4459 | else |
---|
4460 | ac_check_lib_save_LIBS=$LIBS |
---|
4461 | LIBS="-lm $LIBS" |
---|
4462 | cat >conftest.$ac_ext <<_ACEOF |
---|
4463 | #line $LINENO "configure" |
---|
4464 | /* confdefs.h. */ |
---|
4465 | _ACEOF |
---|
4466 | cat confdefs.h >>conftest.$ac_ext |
---|
4467 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4468 | /* end confdefs.h. */ |
---|
4469 | |
---|
4470 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4471 | #ifdef __cplusplus |
---|
4472 | extern "C" |
---|
4473 | #endif |
---|
4474 | /* We use char because int might match the return type of a gcc2 |
---|
4475 | builtin and then its argument prototype would still apply. */ |
---|
4476 | char log (); |
---|
4477 | int |
---|
4478 | main () |
---|
4479 | { |
---|
4480 | log (); |
---|
4481 | ; |
---|
4482 | return 0; |
---|
4483 | } |
---|
4484 | _ACEOF |
---|
4485 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4487 | (eval $ac_link) 2>&5 |
---|
4488 | ac_status=$? |
---|
4489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4490 | (exit $ac_status); } && |
---|
4491 | { ac_try='test -s conftest$ac_exeext' |
---|
4492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4493 | (eval $ac_try) 2>&5 |
---|
4494 | ac_status=$? |
---|
4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4496 | (exit $ac_status); }; }; then |
---|
4497 | ac_cv_lib_m_log=yes |
---|
4498 | else |
---|
4499 | echo "$as_me: failed program was:" >&5 |
---|
4500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4501 | |
---|
4502 | ac_cv_lib_m_log=no |
---|
4503 | fi |
---|
4504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4505 | LIBS=$ac_check_lib_save_LIBS |
---|
4506 | fi |
---|
4507 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 |
---|
4508 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 |
---|
4509 | if test $ac_cv_lib_m_log = yes; then |
---|
4510 | PGPLOTLIB="-lm $PGPLOTLIB" |
---|
4511 | fi |
---|
4512 | |
---|
4513 | echo "$as_me:$LINENO: checking for gerror_ in -lg2c" >&5 |
---|
4514 | echo $ECHO_N "checking for gerror_ in -lg2c... $ECHO_C" >&6 |
---|
4515 | if test "${ac_cv_lib_g2c_gerror_+set}" = set; then |
---|
4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4517 | else |
---|
4518 | ac_check_lib_save_LIBS=$LIBS |
---|
4519 | LIBS="-lg2c $PGPLOTLIB $LIBS $LIBS" |
---|
4520 | cat >conftest.$ac_ext <<_ACEOF |
---|
4521 | #line $LINENO "configure" |
---|
4522 | /* confdefs.h. */ |
---|
4523 | _ACEOF |
---|
4524 | cat confdefs.h >>conftest.$ac_ext |
---|
4525 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4526 | /* end confdefs.h. */ |
---|
4527 | |
---|
4528 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4529 | #ifdef __cplusplus |
---|
4530 | extern "C" |
---|
4531 | #endif |
---|
4532 | /* We use char because int might match the return type of a gcc2 |
---|
4533 | builtin and then its argument prototype would still apply. */ |
---|
4534 | char gerror_ (); |
---|
4535 | int |
---|
4536 | main () |
---|
4537 | { |
---|
4538 | gerror_ (); |
---|
4539 | ; |
---|
4540 | return 0; |
---|
4541 | } |
---|
4542 | _ACEOF |
---|
4543 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4545 | (eval $ac_link) 2>&5 |
---|
4546 | ac_status=$? |
---|
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4548 | (exit $ac_status); } && |
---|
4549 | { ac_try='test -s conftest$ac_exeext' |
---|
4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4551 | (eval $ac_try) 2>&5 |
---|
4552 | ac_status=$? |
---|
4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4554 | (exit $ac_status); }; }; then |
---|
4555 | ac_cv_lib_g2c_gerror_=yes |
---|
4556 | else |
---|
4557 | echo "$as_me: failed program was:" >&5 |
---|
4558 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4559 | |
---|
4560 | ac_cv_lib_g2c_gerror_=no |
---|
4561 | fi |
---|
4562 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4563 | LIBS=$ac_check_lib_save_LIBS |
---|
4564 | fi |
---|
4565 | echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
4566 | echo "${ECHO_T}$ac_cv_lib_g2c_gerror_" >&6 |
---|
4567 | if test $ac_cv_lib_g2c_gerror_ = yes; then |
---|
4568 | PGPLOTLIB="-lg2c $PGPLOTLIB" |
---|
4569 | fi |
---|
4570 | |
---|
4571 | |
---|
4572 | # Search for X11 includes and libraries. |
---|
4573 | echo "$as_me:$LINENO: checking for X" >&5 |
---|
4574 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
---|
4575 | |
---|
4576 | |
---|
4577 | # Check whether --with-x or --without-x was given. |
---|
4578 | if test "${with_x+set}" = set; then |
---|
4579 | withval="$with_x" |
---|
4580 | |
---|
4581 | fi; |
---|
4582 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
4583 | if test "x$with_x" = xno; then |
---|
4584 | # The user explicitly disabled X. |
---|
4585 | have_x=disabled |
---|
4586 | else |
---|
4587 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
---|
4588 | # Both variables are already set. |
---|
4589 | have_x=yes |
---|
4590 | else |
---|
4591 | if test "${ac_cv_have_x+set}" = set; then |
---|
4592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4593 | else |
---|
4594 | # One or both of the vars are not set, and there is no cached value. |
---|
4595 | ac_x_includes=no ac_x_libraries=no |
---|
4596 | rm -fr conftest.dir |
---|
4597 | if mkdir conftest.dir; then |
---|
4598 | cd conftest.dir |
---|
4599 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
---|
4600 | cat >Imakefile <<'_ACEOF' |
---|
4601 | acfindx: |
---|
4602 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
---|
4603 | _ACEOF |
---|
4604 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
4605 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
4606 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
---|
4607 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
4608 | for ac_extension in a so sl; do |
---|
4609 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
---|
4610 | test -f $ac_im_libdir/libX11.$ac_extension; then |
---|
4611 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
4612 | fi |
---|
4613 | done |
---|
4614 | # Screen out bogus values from the imake configuration. They are |
---|
4615 | # bogus both because they are the default anyway, and because |
---|
4616 | # using them would break gcc on systems where it needs fixed includes. |
---|
4617 | case $ac_im_incroot in |
---|
4618 | /usr/include) ;; |
---|
4619 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
4620 | esac |
---|
4621 | case $ac_im_usrlibdir in |
---|
4622 | /usr/lib | /lib) ;; |
---|
4623 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
4624 | esac |
---|
4625 | fi |
---|
4626 | cd .. |
---|
4627 | rm -fr conftest.dir |
---|
4628 | fi |
---|
4629 | |
---|
4630 | # Standard set of common directories for X headers. |
---|
4631 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
4632 | ac_x_header_dirs=' |
---|
4633 | /usr/X11/include |
---|
4634 | /usr/X11R6/include |
---|
4635 | /usr/X11R5/include |
---|
4636 | /usr/X11R4/include |
---|
4637 | |
---|
4638 | /usr/include/X11 |
---|
4639 | /usr/include/X11R6 |
---|
4640 | /usr/include/X11R5 |
---|
4641 | /usr/include/X11R4 |
---|
4642 | |
---|
4643 | /usr/local/X11/include |
---|
4644 | /usr/local/X11R6/include |
---|
4645 | /usr/local/X11R5/include |
---|
4646 | /usr/local/X11R4/include |
---|
4647 | |
---|
4648 | /usr/local/include/X11 |
---|
4649 | /usr/local/include/X11R6 |
---|
4650 | /usr/local/include/X11R5 |
---|
4651 | /usr/local/include/X11R4 |
---|
4652 | |
---|
4653 | /usr/X386/include |
---|
4654 | /usr/x386/include |
---|
4655 | /usr/XFree86/include/X11 |
---|
4656 | |
---|
4657 | /usr/include |
---|
4658 | /usr/local/include |
---|
4659 | /usr/unsupported/include |
---|
4660 | /usr/athena/include |
---|
4661 | /usr/local/x11r5/include |
---|
4662 | /usr/lpp/Xamples/include |
---|
4663 | |
---|
4664 | /usr/openwin/include |
---|
4665 | /usr/openwin/share/include' |
---|
4666 | |
---|
4667 | if test "$ac_x_includes" = no; then |
---|
4668 | # Guess where to find include files, by looking for Intrinsic.h. |
---|
4669 | # First, try using that file with no special directory specified. |
---|
4670 | cat >conftest.$ac_ext <<_ACEOF |
---|
4671 | #line $LINENO "configure" |
---|
4672 | /* confdefs.h. */ |
---|
4673 | _ACEOF |
---|
4674 | cat confdefs.h >>conftest.$ac_ext |
---|
4675 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4676 | /* end confdefs.h. */ |
---|
4677 | #include <X11/Intrinsic.h> |
---|
4678 | _ACEOF |
---|
4679 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4680 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4681 | ac_status=$? |
---|
4682 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4683 | rm -f conftest.er1 |
---|
4684 | cat conftest.err >&5 |
---|
4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4686 | (exit $ac_status); } >/dev/null; then |
---|
4687 | if test -s conftest.err; then |
---|
4688 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4689 | else |
---|
4690 | ac_cpp_err= |
---|
4691 | fi |
---|
4692 | else |
---|
4693 | ac_cpp_err=yes |
---|
4694 | fi |
---|
4695 | if test -z "$ac_cpp_err"; then |
---|
4696 | # We can compile using X headers with no special include directory. |
---|
4697 | ac_x_includes= |
---|
4698 | else |
---|
4699 | echo "$as_me: failed program was:" >&5 |
---|
4700 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4701 | |
---|
4702 | for ac_dir in $ac_x_header_dirs; do |
---|
4703 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
---|
4704 | ac_x_includes=$ac_dir |
---|
4705 | break |
---|
4706 | fi |
---|
4707 | done |
---|
4708 | fi |
---|
4709 | rm -f conftest.err conftest.$ac_ext |
---|
4710 | fi # $ac_x_includes = no |
---|
4711 | |
---|
4712 | if test "$ac_x_libraries" = no; then |
---|
4713 | # Check for the libraries. |
---|
4714 | # See if we find them without any special options. |
---|
4715 | # Don't add to $LIBS permanently. |
---|
4716 | ac_save_LIBS=$LIBS |
---|
4717 | LIBS="-lXt $LIBS" |
---|
4718 | cat >conftest.$ac_ext <<_ACEOF |
---|
4719 | #line $LINENO "configure" |
---|
4720 | /* confdefs.h. */ |
---|
4721 | _ACEOF |
---|
4722 | cat confdefs.h >>conftest.$ac_ext |
---|
4723 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4724 | /* end confdefs.h. */ |
---|
4725 | #include <X11/Intrinsic.h> |
---|
4726 | int |
---|
4727 | main () |
---|
4728 | { |
---|
4729 | XtMalloc (0) |
---|
4730 | ; |
---|
4731 | return 0; |
---|
4732 | } |
---|
4733 | _ACEOF |
---|
4734 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4736 | (eval $ac_link) 2>&5 |
---|
4737 | ac_status=$? |
---|
4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4739 | (exit $ac_status); } && |
---|
4740 | { ac_try='test -s conftest$ac_exeext' |
---|
4741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4742 | (eval $ac_try) 2>&5 |
---|
4743 | ac_status=$? |
---|
4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4745 | (exit $ac_status); }; }; then |
---|
4746 | LIBS=$ac_save_LIBS |
---|
4747 | # We can link X programs with no special library path. |
---|
4748 | ac_x_libraries= |
---|
4749 | else |
---|
4750 | echo "$as_me: failed program was:" >&5 |
---|
4751 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4752 | |
---|
4753 | LIBS=$ac_save_LIBS |
---|
4754 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
4755 | do |
---|
4756 | # Don't even attempt the hair of trying to link an X program! |
---|
4757 | for ac_extension in a so sl; do |
---|
4758 | if test -r $ac_dir/libXt.$ac_extension; then |
---|
4759 | ac_x_libraries=$ac_dir |
---|
4760 | break 2 |
---|
4761 | fi |
---|
4762 | done |
---|
4763 | done |
---|
4764 | fi |
---|
4765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4766 | fi # $ac_x_libraries = no |
---|
4767 | |
---|
4768 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
---|
4769 | # Didn't find X anywhere. Cache the known absence of X. |
---|
4770 | ac_cv_have_x="have_x=no" |
---|
4771 | else |
---|
4772 | # Record where we found X for the cache. |
---|
4773 | ac_cv_have_x="have_x=yes \ |
---|
4774 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
---|
4775 | fi |
---|
4776 | fi |
---|
4777 | |
---|
4778 | fi |
---|
4779 | eval "$ac_cv_have_x" |
---|
4780 | fi # $with_x != no |
---|
4781 | |
---|
4782 | if test "$have_x" != yes; then |
---|
4783 | echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
4784 | echo "${ECHO_T}$have_x" >&6 |
---|
4785 | no_x=yes |
---|
4786 | else |
---|
4787 | # If each of the values was on the command line, it overrides each guess. |
---|
4788 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
4789 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
4790 | # Update the cache value to reflect the command line values. |
---|
4791 | ac_cv_have_x="have_x=yes \ |
---|
4792 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
---|
4793 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
4794 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
---|
4795 | fi |
---|
4796 | |
---|
4797 | if test "x$ac_x_libraries" != x; then |
---|
4798 | LDFLAGS="$LDFLAGS -L$ac_x_libraries" |
---|
4799 | PGPLOTLIB="-lX11 $PGPLOTLIB" |
---|
4800 | fi |
---|
4801 | |
---|
4802 | # It is possible that other libraries may be required depending on what |
---|
4803 | # graphics drivers were installed with PGPLOT. |
---|
4804 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
---|
4805 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 |
---|
4806 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
---|
4807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4808 | else |
---|
4809 | ac_check_lib_save_LIBS=$LIBS |
---|
4810 | LIBS="-lz $PGPLOTLIB $LIBS $LIBS" |
---|
4811 | cat >conftest.$ac_ext <<_ACEOF |
---|
4812 | #line $LINENO "configure" |
---|
4813 | /* confdefs.h. */ |
---|
4814 | _ACEOF |
---|
4815 | cat confdefs.h >>conftest.$ac_ext |
---|
4816 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4817 | /* end confdefs.h. */ |
---|
4818 | |
---|
4819 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4820 | #ifdef __cplusplus |
---|
4821 | extern "C" |
---|
4822 | #endif |
---|
4823 | /* We use char because int might match the return type of a gcc2 |
---|
4824 | builtin and then its argument prototype would still apply. */ |
---|
4825 | char deflate (); |
---|
4826 | int |
---|
4827 | main () |
---|
4828 | { |
---|
4829 | deflate (); |
---|
4830 | ; |
---|
4831 | return 0; |
---|
4832 | } |
---|
4833 | _ACEOF |
---|
4834 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4836 | (eval $ac_link) 2>&5 |
---|
4837 | ac_status=$? |
---|
4838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4839 | (exit $ac_status); } && |
---|
4840 | { ac_try='test -s conftest$ac_exeext' |
---|
4841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4842 | (eval $ac_try) 2>&5 |
---|
4843 | ac_status=$? |
---|
4844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4845 | (exit $ac_status); }; }; then |
---|
4846 | ac_cv_lib_z_deflate=yes |
---|
4847 | else |
---|
4848 | echo "$as_me: failed program was:" >&5 |
---|
4849 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4850 | |
---|
4851 | ac_cv_lib_z_deflate=no |
---|
4852 | fi |
---|
4853 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4854 | LIBS=$ac_check_lib_save_LIBS |
---|
4855 | fi |
---|
4856 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
---|
4857 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 |
---|
4858 | if test $ac_cv_lib_z_deflate = yes; then |
---|
4859 | PGPLOTLIB="-lz $PGPLOTLIB" |
---|
4860 | fi |
---|
4861 | |
---|
4862 | echo "$as_me:$LINENO: checking for png_error in -lpng" >&5 |
---|
4863 | echo $ECHO_N "checking for png_error in -lpng... $ECHO_C" >&6 |
---|
4864 | if test "${ac_cv_lib_png_png_error+set}" = set; then |
---|
4865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4866 | else |
---|
4867 | ac_check_lib_save_LIBS=$LIBS |
---|
4868 | LIBS="-lpng $PGPLOTLIB $LIBS $LIBS" |
---|
4869 | cat >conftest.$ac_ext <<_ACEOF |
---|
4870 | #line $LINENO "configure" |
---|
4871 | /* confdefs.h. */ |
---|
4872 | _ACEOF |
---|
4873 | cat confdefs.h >>conftest.$ac_ext |
---|
4874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4875 | /* end confdefs.h. */ |
---|
4876 | |
---|
4877 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4878 | #ifdef __cplusplus |
---|
4879 | extern "C" |
---|
4880 | #endif |
---|
4881 | /* We use char because int might match the return type of a gcc2 |
---|
4882 | builtin and then its argument prototype would still apply. */ |
---|
4883 | char png_error (); |
---|
4884 | int |
---|
4885 | main () |
---|
4886 | { |
---|
4887 | png_error (); |
---|
4888 | ; |
---|
4889 | return 0; |
---|
4890 | } |
---|
4891 | _ACEOF |
---|
4892 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4894 | (eval $ac_link) 2>&5 |
---|
4895 | ac_status=$? |
---|
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4897 | (exit $ac_status); } && |
---|
4898 | { ac_try='test -s conftest$ac_exeext' |
---|
4899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4900 | (eval $ac_try) 2>&5 |
---|
4901 | ac_status=$? |
---|
4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4903 | (exit $ac_status); }; }; then |
---|
4904 | ac_cv_lib_png_png_error=yes |
---|
4905 | else |
---|
4906 | echo "$as_me: failed program was:" >&5 |
---|
4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4908 | |
---|
4909 | ac_cv_lib_png_png_error=no |
---|
4910 | fi |
---|
4911 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4912 | LIBS=$ac_check_lib_save_LIBS |
---|
4913 | fi |
---|
4914 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_error" >&5 |
---|
4915 | echo "${ECHO_T}$ac_cv_lib_png_png_error" >&6 |
---|
4916 | if test $ac_cv_lib_png_png_error = yes; then |
---|
4917 | PGPLOTLIB="-lpng $PGPLOTLIB" |
---|
4918 | fi |
---|
4919 | |
---|
4920 | echo "$as_me:$LINENO: checking for pgbeg_ in -lpgplot" >&5 |
---|
4921 | echo $ECHO_N "checking for pgbeg_ in -lpgplot... $ECHO_C" >&6 |
---|
4922 | if test "${ac_cv_lib_pgplot_pgbeg_+set}" = set; then |
---|
4923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4924 | else |
---|
4925 | ac_check_lib_save_LIBS=$LIBS |
---|
4926 | LIBS="-lpgplot $PGPLOTLIB $LIBS $LIBS" |
---|
4927 | cat >conftest.$ac_ext <<_ACEOF |
---|
4928 | #line $LINENO "configure" |
---|
4929 | /* confdefs.h. */ |
---|
4930 | _ACEOF |
---|
4931 | cat confdefs.h >>conftest.$ac_ext |
---|
4932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4933 | /* end confdefs.h. */ |
---|
4934 | |
---|
4935 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4936 | #ifdef __cplusplus |
---|
4937 | extern "C" |
---|
4938 | #endif |
---|
4939 | /* We use char because int might match the return type of a gcc2 |
---|
4940 | builtin and then its argument prototype would still apply. */ |
---|
4941 | char pgbeg_ (); |
---|
4942 | int |
---|
4943 | main () |
---|
4944 | { |
---|
4945 | pgbeg_ (); |
---|
4946 | ; |
---|
4947 | return 0; |
---|
4948 | } |
---|
4949 | _ACEOF |
---|
4950 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4952 | (eval $ac_link) 2>&5 |
---|
4953 | ac_status=$? |
---|
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4955 | (exit $ac_status); } && |
---|
4956 | { ac_try='test -s conftest$ac_exeext' |
---|
4957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4958 | (eval $ac_try) 2>&5 |
---|
4959 | ac_status=$? |
---|
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4961 | (exit $ac_status); }; }; then |
---|
4962 | ac_cv_lib_pgplot_pgbeg_=yes |
---|
4963 | else |
---|
4964 | echo "$as_me: failed program was:" >&5 |
---|
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4966 | |
---|
4967 | ac_cv_lib_pgplot_pgbeg_=no |
---|
4968 | fi |
---|
4969 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4970 | LIBS=$ac_check_lib_save_LIBS |
---|
4971 | fi |
---|
4972 | echo "$as_me:$LINENO: result: $ac_cv_lib_pgplot_pgbeg_" >&5 |
---|
4973 | echo "${ECHO_T}$ac_cv_lib_pgplot_pgbeg_" >&6 |
---|
4974 | if test $ac_cv_lib_pgplot_pgbeg_ = yes; then |
---|
4975 | PGPLOTLIB="-lpgplot $PGPLOTLIB" |
---|
4976 | fi |
---|
4977 | |
---|
4978 | echo "$as_me:$LINENO: checking for cpgopen in -lcpgplot" >&5 |
---|
4979 | echo $ECHO_N "checking for cpgopen in -lcpgplot... $ECHO_C" >&6 |
---|
4980 | if test "${ac_cv_lib_cpgplot_cpgopen+set}" = set; then |
---|
4981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4982 | else |
---|
4983 | ac_check_lib_save_LIBS=$LIBS |
---|
4984 | LIBS="-lcpgplot $PGPLOTLIB $LIBS $LIBS" |
---|
4985 | cat >conftest.$ac_ext <<_ACEOF |
---|
4986 | #line $LINENO "configure" |
---|
4987 | /* confdefs.h. */ |
---|
4988 | _ACEOF |
---|
4989 | cat confdefs.h >>conftest.$ac_ext |
---|
4990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4991 | /* end confdefs.h. */ |
---|
4992 | |
---|
4993 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4994 | #ifdef __cplusplus |
---|
4995 | extern "C" |
---|
4996 | #endif |
---|
4997 | /* We use char because int might match the return type of a gcc2 |
---|
4998 | builtin and then its argument prototype would still apply. */ |
---|
4999 | char cpgopen (); |
---|
5000 | int |
---|
5001 | main () |
---|
5002 | { |
---|
5003 | cpgopen (); |
---|
5004 | ; |
---|
5005 | return 0; |
---|
5006 | } |
---|
5007 | _ACEOF |
---|
5008 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5010 | (eval $ac_link) 2>&5 |
---|
5011 | ac_status=$? |
---|
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5013 | (exit $ac_status); } && |
---|
5014 | { ac_try='test -s conftest$ac_exeext' |
---|
5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5016 | (eval $ac_try) 2>&5 |
---|
5017 | ac_status=$? |
---|
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5019 | (exit $ac_status); }; }; then |
---|
5020 | ac_cv_lib_cpgplot_cpgopen=yes |
---|
5021 | else |
---|
5022 | echo "$as_me: failed program was:" >&5 |
---|
5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5024 | |
---|
5025 | ac_cv_lib_cpgplot_cpgopen=no |
---|
5026 | fi |
---|
5027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5028 | LIBS=$ac_check_lib_save_LIBS |
---|
5029 | fi |
---|
5030 | echo "$as_me:$LINENO: result: $ac_cv_lib_cpgplot_cpgopen" >&5 |
---|
5031 | echo "${ECHO_T}$ac_cv_lib_cpgplot_cpgopen" >&6 |
---|
5032 | if test $ac_cv_lib_cpgplot_cpgopen = yes; then |
---|
5033 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
5034 | else |
---|
5035 | PGPLOTLIB= |
---|
5036 | fi |
---|
5037 | |
---|
5038 | |
---|
5039 | if test "x$PGPLOTLIB" = x; then |
---|
5040 | { { echo "$as_me:$LINENO: error: |
---|
5041 | ------------------------------------------------------- |
---|
5042 | Could not find the PGPLOT library. |
---|
5043 | |
---|
5044 | ERROR: Duchamp configuration failure. |
---|
5045 | -------------------------------------------------------" >&5 |
---|
5046 | echo "$as_me: error: |
---|
5047 | ------------------------------------------------------- |
---|
5048 | Could not find the PGPLOT library. |
---|
5049 | |
---|
5050 | ERROR: Duchamp configuration failure. |
---|
5051 | -------------------------------------------------------" >&2;} |
---|
5052 | { (exit 1); exit 1; }; } |
---|
5053 | else |
---|
5054 | { echo "$as_me:$LINENO: PGPLOT appears to be available." >&5 |
---|
5055 | echo "$as_me: PGPLOT appears to be available." >&6;} |
---|
5056 | |
---|
5057 | cat >>confdefs.h <<\_ACEOF |
---|
5058 | #define HAVE_PGPLOT 1 |
---|
5059 | _ACEOF |
---|
5060 | |
---|
5061 | fi |
---|
5062 | |
---|
5063 | |
---|
5064 | |
---|
5065 | ########################################################################## |
---|
5066 | |
---|
5067 | ########################################################################## |
---|
5068 | # Search for CFITSIO. |
---|
5069 | for INCDIR in $INCDIRS ; do |
---|
5070 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
5071 | echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
5072 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6 |
---|
5073 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5075 | else |
---|
5076 | test "$cross_compiling" = yes && |
---|
5077 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5078 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5079 | { (exit 1); exit 1; }; } |
---|
5080 | if test -r "$INCDIR/fitsio.h"; then |
---|
5081 | eval "$as_ac_File=yes" |
---|
5082 | else |
---|
5083 | eval "$as_ac_File=no" |
---|
5084 | fi |
---|
5085 | fi |
---|
5086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5087 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5088 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5089 | CFITSIOINC=-I$INCDIR; break |
---|
5090 | fi |
---|
5091 | |
---|
5092 | INCDIR=$INCDIR/cfitsio |
---|
5093 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
5094 | echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
5095 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6 |
---|
5096 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5098 | else |
---|
5099 | test "$cross_compiling" = yes && |
---|
5100 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5101 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5102 | { (exit 1); exit 1; }; } |
---|
5103 | if test -r "$INCDIR/fitsio.h"; then |
---|
5104 | eval "$as_ac_File=yes" |
---|
5105 | else |
---|
5106 | eval "$as_ac_File=no" |
---|
5107 | fi |
---|
5108 | fi |
---|
5109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5110 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5111 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5112 | CFITSIOINC=-I$INCDIR; break |
---|
5113 | fi |
---|
5114 | |
---|
5115 | done |
---|
5116 | |
---|
5117 | echo "$as_me:$LINENO: checking for recv in -lsocket" >&5 |
---|
5118 | echo $ECHO_N "checking for recv in -lsocket... $ECHO_C" >&6 |
---|
5119 | if test "${ac_cv_lib_socket_recv+set}" = set; then |
---|
5120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5121 | else |
---|
5122 | ac_check_lib_save_LIBS=$LIBS |
---|
5123 | LIBS="-lsocket $LIBS $LIBS" |
---|
5124 | cat >conftest.$ac_ext <<_ACEOF |
---|
5125 | #line $LINENO "configure" |
---|
5126 | /* confdefs.h. */ |
---|
5127 | _ACEOF |
---|
5128 | cat confdefs.h >>conftest.$ac_ext |
---|
5129 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5130 | /* end confdefs.h. */ |
---|
5131 | |
---|
5132 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5133 | #ifdef __cplusplus |
---|
5134 | extern "C" |
---|
5135 | #endif |
---|
5136 | /* We use char because int might match the return type of a gcc2 |
---|
5137 | builtin and then its argument prototype would still apply. */ |
---|
5138 | char recv (); |
---|
5139 | int |
---|
5140 | main () |
---|
5141 | { |
---|
5142 | recv (); |
---|
5143 | ; |
---|
5144 | return 0; |
---|
5145 | } |
---|
5146 | _ACEOF |
---|
5147 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5149 | (eval $ac_link) 2>&5 |
---|
5150 | ac_status=$? |
---|
5151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5152 | (exit $ac_status); } && |
---|
5153 | { ac_try='test -s conftest$ac_exeext' |
---|
5154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5155 | (eval $ac_try) 2>&5 |
---|
5156 | ac_status=$? |
---|
5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5158 | (exit $ac_status); }; }; then |
---|
5159 | ac_cv_lib_socket_recv=yes |
---|
5160 | else |
---|
5161 | echo "$as_me: failed program was:" >&5 |
---|
5162 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5163 | |
---|
5164 | ac_cv_lib_socket_recv=no |
---|
5165 | fi |
---|
5166 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5167 | LIBS=$ac_check_lib_save_LIBS |
---|
5168 | fi |
---|
5169 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_recv" >&5 |
---|
5170 | echo "${ECHO_T}$ac_cv_lib_socket_recv" >&6 |
---|
5171 | if test $ac_cv_lib_socket_recv = yes; then |
---|
5172 | CFITSIOLIB="-lsocket" |
---|
5173 | fi |
---|
5174 | |
---|
5175 | echo "$as_me:$LINENO: checking for ffopen in -lcfitsio" >&5 |
---|
5176 | echo $ECHO_N "checking for ffopen in -lcfitsio... $ECHO_C" >&6 |
---|
5177 | if test "${ac_cv_lib_cfitsio_ffopen+set}" = set; then |
---|
5178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5179 | else |
---|
5180 | ac_check_lib_save_LIBS=$LIBS |
---|
5181 | LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS" |
---|
5182 | cat >conftest.$ac_ext <<_ACEOF |
---|
5183 | #line $LINENO "configure" |
---|
5184 | /* confdefs.h. */ |
---|
5185 | _ACEOF |
---|
5186 | cat confdefs.h >>conftest.$ac_ext |
---|
5187 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5188 | /* end confdefs.h. */ |
---|
5189 | |
---|
5190 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5191 | #ifdef __cplusplus |
---|
5192 | extern "C" |
---|
5193 | #endif |
---|
5194 | /* We use char because int might match the return type of a gcc2 |
---|
5195 | builtin and then its argument prototype would still apply. */ |
---|
5196 | char ffopen (); |
---|
5197 | int |
---|
5198 | main () |
---|
5199 | { |
---|
5200 | ffopen (); |
---|
5201 | ; |
---|
5202 | return 0; |
---|
5203 | } |
---|
5204 | _ACEOF |
---|
5205 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5207 | (eval $ac_link) 2>&5 |
---|
5208 | ac_status=$? |
---|
5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5210 | (exit $ac_status); } && |
---|
5211 | { ac_try='test -s conftest$ac_exeext' |
---|
5212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5213 | (eval $ac_try) 2>&5 |
---|
5214 | ac_status=$? |
---|
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5216 | (exit $ac_status); }; }; then |
---|
5217 | ac_cv_lib_cfitsio_ffopen=yes |
---|
5218 | else |
---|
5219 | echo "$as_me: failed program was:" >&5 |
---|
5220 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5221 | |
---|
5222 | ac_cv_lib_cfitsio_ffopen=no |
---|
5223 | fi |
---|
5224 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5225 | LIBS=$ac_check_lib_save_LIBS |
---|
5226 | fi |
---|
5227 | echo "$as_me:$LINENO: result: $ac_cv_lib_cfitsio_ffopen" >&5 |
---|
5228 | echo "${ECHO_T}$ac_cv_lib_cfitsio_ffopen" >&6 |
---|
5229 | if test $ac_cv_lib_cfitsio_ffopen = yes; then |
---|
5230 | CFITSIOLIB="-lcfitsio $CFITSIOLIB" |
---|
5231 | fi |
---|
5232 | |
---|
5233 | |
---|
5234 | if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then |
---|
5235 | { { echo "$as_me:$LINENO: error: |
---|
5236 | ------------------------------------------------------- |
---|
5237 | Could not find the CFITSIO library. |
---|
5238 | |
---|
5239 | ERROR: Duchamp configuration failure. |
---|
5240 | -------------------------------------------------------" >&5 |
---|
5241 | echo "$as_me: error: |
---|
5242 | ------------------------------------------------------- |
---|
5243 | Could not find the CFITSIO library. |
---|
5244 | |
---|
5245 | ERROR: Duchamp configuration failure. |
---|
5246 | -------------------------------------------------------" >&2;} |
---|
5247 | { (exit 1); exit 1; }; } |
---|
5248 | else |
---|
5249 | for LIBDIR in $LIBDIRS ; do |
---|
5250 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
5251 | echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
5252 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6 |
---|
5253 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5255 | else |
---|
5256 | test "$cross_compiling" = yes && |
---|
5257 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5258 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5259 | { (exit 1); exit 1; }; } |
---|
5260 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
5261 | eval "$as_ac_File=yes" |
---|
5262 | else |
---|
5263 | eval "$as_ac_File=no" |
---|
5264 | fi |
---|
5265 | fi |
---|
5266 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5267 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5268 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5269 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
5270 | fi |
---|
5271 | |
---|
5272 | LIBDIR=$LIBDIR/cfitsio |
---|
5273 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
5274 | echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
5275 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6 |
---|
5276 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5278 | else |
---|
5279 | test "$cross_compiling" = yes && |
---|
5280 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5281 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5282 | { (exit 1); exit 1; }; } |
---|
5283 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
5284 | eval "$as_ac_File=yes" |
---|
5285 | else |
---|
5286 | eval "$as_ac_File=no" |
---|
5287 | fi |
---|
5288 | fi |
---|
5289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5290 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5291 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5292 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
5293 | fi |
---|
5294 | |
---|
5295 | done |
---|
5296 | { echo "$as_me:$LINENO: CFITSIO appears to be available." >&5 |
---|
5297 | echo "$as_me: CFITSIO appears to be available." >&6;} |
---|
5298 | |
---|
5299 | cat >>confdefs.h <<\_ACEOF |
---|
5300 | #define HAVE_CFITSIO 1 |
---|
5301 | _ACEOF |
---|
5302 | |
---|
5303 | fi |
---|
5304 | |
---|
5305 | |
---|
5306 | |
---|
5307 | ########################################################################## |
---|
5308 | |
---|
5309 | ########################################################################## |
---|
5310 | # Search for WCSLIB. |
---|
5311 | for INCDIR in $INCDIRS ; do |
---|
5312 | as_ac_File=`echo "ac_cv_file_$INCDIR/wcs.h" | $as_tr_sh` |
---|
5313 | echo "$as_me:$LINENO: checking for $INCDIR/wcs.h" >&5 |
---|
5314 | echo $ECHO_N "checking for $INCDIR/wcs.h... $ECHO_C" >&6 |
---|
5315 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5317 | else |
---|
5318 | test "$cross_compiling" = yes && |
---|
5319 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5320 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5321 | { (exit 1); exit 1; }; } |
---|
5322 | if test -r "$INCDIR/wcs.h"; then |
---|
5323 | eval "$as_ac_File=yes" |
---|
5324 | else |
---|
5325 | eval "$as_ac_File=no" |
---|
5326 | fi |
---|
5327 | fi |
---|
5328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5329 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5330 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5331 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
5332 | fi |
---|
5333 | |
---|
5334 | INCDIR=$INCDIR/wcslib |
---|
5335 | as_ac_File=`echo "ac_cv_file_$INCDIR/wcs.h" | $as_tr_sh` |
---|
5336 | echo "$as_me:$LINENO: checking for $INCDIR/wcs.h" >&5 |
---|
5337 | echo $ECHO_N "checking for $INCDIR/wcs.h... $ECHO_C" >&6 |
---|
5338 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5340 | else |
---|
5341 | test "$cross_compiling" = yes && |
---|
5342 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5343 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5344 | { (exit 1); exit 1; }; } |
---|
5345 | if test -r "$INCDIR/wcs.h"; then |
---|
5346 | eval "$as_ac_File=yes" |
---|
5347 | else |
---|
5348 | eval "$as_ac_File=no" |
---|
5349 | fi |
---|
5350 | fi |
---|
5351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5352 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5353 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5354 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
5355 | fi |
---|
5356 | |
---|
5357 | done |
---|
5358 | for INCDIR in $INCDIRS ; do |
---|
5359 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgsbox.h" | $as_tr_sh` |
---|
5360 | echo "$as_me:$LINENO: checking for $INCDIR/cpgsbox.h" >&5 |
---|
5361 | echo $ECHO_N "checking for $INCDIR/cpgsbox.h... $ECHO_C" >&6 |
---|
5362 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5364 | else |
---|
5365 | test "$cross_compiling" = yes && |
---|
5366 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5367 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5368 | { (exit 1); exit 1; }; } |
---|
5369 | if test -r "$INCDIR/cpgsbox.h"; then |
---|
5370 | eval "$as_ac_File=yes" |
---|
5371 | else |
---|
5372 | eval "$as_ac_File=no" |
---|
5373 | fi |
---|
5374 | fi |
---|
5375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5376 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5377 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5378 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
5379 | fi |
---|
5380 | |
---|
5381 | INCDIR=$INCDIR/wcslib |
---|
5382 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgsbox.h" | $as_tr_sh` |
---|
5383 | echo "$as_me:$LINENO: checking for $INCDIR/cpgsbox.h" >&5 |
---|
5384 | echo $ECHO_N "checking for $INCDIR/cpgsbox.h... $ECHO_C" >&6 |
---|
5385 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5387 | else |
---|
5388 | test "$cross_compiling" = yes && |
---|
5389 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5390 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5391 | { (exit 1); exit 1; }; } |
---|
5392 | if test -r "$INCDIR/cpgsbox.h"; then |
---|
5393 | eval "$as_ac_File=yes" |
---|
5394 | else |
---|
5395 | eval "$as_ac_File=no" |
---|
5396 | fi |
---|
5397 | fi |
---|
5398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5399 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5400 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5401 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
5402 | fi |
---|
5403 | |
---|
5404 | done |
---|
5405 | |
---|
5406 | echo "$as_me:$LINENO: checking for wcss2p in -lwcs" >&5 |
---|
5407 | echo $ECHO_N "checking for wcss2p in -lwcs... $ECHO_C" >&6 |
---|
5408 | if test "${ac_cv_lib_wcs_wcss2p+set}" = set; then |
---|
5409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5410 | else |
---|
5411 | ac_check_lib_save_LIBS=$LIBS |
---|
5412 | LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
5413 | cat >conftest.$ac_ext <<_ACEOF |
---|
5414 | #line $LINENO "configure" |
---|
5415 | /* confdefs.h. */ |
---|
5416 | _ACEOF |
---|
5417 | cat confdefs.h >>conftest.$ac_ext |
---|
5418 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5419 | /* end confdefs.h. */ |
---|
5420 | |
---|
5421 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5422 | #ifdef __cplusplus |
---|
5423 | extern "C" |
---|
5424 | #endif |
---|
5425 | /* We use char because int might match the return type of a gcc2 |
---|
5426 | builtin and then its argument prototype would still apply. */ |
---|
5427 | char wcss2p (); |
---|
5428 | int |
---|
5429 | main () |
---|
5430 | { |
---|
5431 | wcss2p (); |
---|
5432 | ; |
---|
5433 | return 0; |
---|
5434 | } |
---|
5435 | _ACEOF |
---|
5436 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5438 | (eval $ac_link) 2>&5 |
---|
5439 | ac_status=$? |
---|
5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5441 | (exit $ac_status); } && |
---|
5442 | { ac_try='test -s conftest$ac_exeext' |
---|
5443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5444 | (eval $ac_try) 2>&5 |
---|
5445 | ac_status=$? |
---|
5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5447 | (exit $ac_status); }; }; then |
---|
5448 | ac_cv_lib_wcs_wcss2p=yes |
---|
5449 | else |
---|
5450 | echo "$as_me: failed program was:" >&5 |
---|
5451 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5452 | |
---|
5453 | ac_cv_lib_wcs_wcss2p=no |
---|
5454 | fi |
---|
5455 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5456 | LIBS=$ac_check_lib_save_LIBS |
---|
5457 | fi |
---|
5458 | echo "$as_me:$LINENO: result: $ac_cv_lib_wcs_wcss2p" >&5 |
---|
5459 | echo "${ECHO_T}$ac_cv_lib_wcs_wcss2p" >&6 |
---|
5460 | if test $ac_cv_lib_wcs_wcss2p = yes; then |
---|
5461 | WCSLIB="-lwcs $WCSLIB" |
---|
5462 | fi |
---|
5463 | |
---|
5464 | echo "$as_me:$LINENO: checking for cpgsbox in -lpgsbox" >&5 |
---|
5465 | echo $ECHO_N "checking for cpgsbox in -lpgsbox... $ECHO_C" >&6 |
---|
5466 | if test "${ac_cv_lib_pgsbox_cpgsbox+set}" = set; then |
---|
5467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5468 | else |
---|
5469 | ac_check_lib_save_LIBS=$LIBS |
---|
5470 | LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
5471 | cat >conftest.$ac_ext <<_ACEOF |
---|
5472 | #line $LINENO "configure" |
---|
5473 | /* confdefs.h. */ |
---|
5474 | _ACEOF |
---|
5475 | cat confdefs.h >>conftest.$ac_ext |
---|
5476 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5477 | /* end confdefs.h. */ |
---|
5478 | |
---|
5479 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5480 | #ifdef __cplusplus |
---|
5481 | extern "C" |
---|
5482 | #endif |
---|
5483 | /* We use char because int might match the return type of a gcc2 |
---|
5484 | builtin and then its argument prototype would still apply. */ |
---|
5485 | char cpgsbox (); |
---|
5486 | int |
---|
5487 | main () |
---|
5488 | { |
---|
5489 | cpgsbox (); |
---|
5490 | ; |
---|
5491 | return 0; |
---|
5492 | } |
---|
5493 | _ACEOF |
---|
5494 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5496 | (eval $ac_link) 2>&5 |
---|
5497 | ac_status=$? |
---|
5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5499 | (exit $ac_status); } && |
---|
5500 | { ac_try='test -s conftest$ac_exeext' |
---|
5501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5502 | (eval $ac_try) 2>&5 |
---|
5503 | ac_status=$? |
---|
5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5505 | (exit $ac_status); }; }; then |
---|
5506 | ac_cv_lib_pgsbox_cpgsbox=yes |
---|
5507 | else |
---|
5508 | echo "$as_me: failed program was:" >&5 |
---|
5509 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5510 | |
---|
5511 | ac_cv_lib_pgsbox_cpgsbox=no |
---|
5512 | fi |
---|
5513 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5514 | LIBS=$ac_check_lib_save_LIBS |
---|
5515 | fi |
---|
5516 | echo "$as_me:$LINENO: result: $ac_cv_lib_pgsbox_cpgsbox" >&5 |
---|
5517 | echo "${ECHO_T}$ac_cv_lib_pgsbox_cpgsbox" >&6 |
---|
5518 | if test $ac_cv_lib_pgsbox_cpgsbox = yes; then |
---|
5519 | WCSLIB="-lpgsbox $WCSLIB" |
---|
5520 | fi |
---|
5521 | |
---|
5522 | |
---|
5523 | if test "x$WCSINC" = x -o "x$WCSLIB" = x; then |
---|
5524 | { { echo "$as_me:$LINENO: error: |
---|
5525 | ------------------------------------------------------- |
---|
5526 | Could not find the WCSLIB library. |
---|
5527 | |
---|
5528 | ERROR: Duchamp configuration failure. |
---|
5529 | -------------------------------------------------------" >&5 |
---|
5530 | echo "$as_me: error: |
---|
5531 | ------------------------------------------------------- |
---|
5532 | Could not find the WCSLIB library. |
---|
5533 | |
---|
5534 | ERROR: Duchamp configuration failure. |
---|
5535 | -------------------------------------------------------" >&2;} |
---|
5536 | { (exit 1); exit 1; }; } |
---|
5537 | else |
---|
5538 | for LIBDIR in $LIBDIRS ; do |
---|
5539 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
5540 | echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5 |
---|
5541 | echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6 |
---|
5542 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5544 | else |
---|
5545 | test "$cross_compiling" = yes && |
---|
5546 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5547 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5548 | { (exit 1); exit 1; }; } |
---|
5549 | if test -r "$LIBDIR/libwcs.a"; then |
---|
5550 | eval "$as_ac_File=yes" |
---|
5551 | else |
---|
5552 | eval "$as_ac_File=no" |
---|
5553 | fi |
---|
5554 | fi |
---|
5555 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5556 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5557 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5558 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
5559 | fi |
---|
5560 | |
---|
5561 | LIBDIR=$LIBDIR/wcs |
---|
5562 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
5563 | echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5 |
---|
5564 | echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6 |
---|
5565 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5567 | else |
---|
5568 | test "$cross_compiling" = yes && |
---|
5569 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5570 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5571 | { (exit 1); exit 1; }; } |
---|
5572 | if test -r "$LIBDIR/libwcs.a"; then |
---|
5573 | eval "$as_ac_File=yes" |
---|
5574 | else |
---|
5575 | eval "$as_ac_File=no" |
---|
5576 | fi |
---|
5577 | fi |
---|
5578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5579 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5580 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5581 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
5582 | fi |
---|
5583 | |
---|
5584 | done |
---|
5585 | for LIBDIR in $LIBDIRS ; do |
---|
5586 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
5587 | echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
5588 | echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6 |
---|
5589 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5591 | else |
---|
5592 | test "$cross_compiling" = yes && |
---|
5593 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5594 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5595 | { (exit 1); exit 1; }; } |
---|
5596 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
5597 | eval "$as_ac_File=yes" |
---|
5598 | else |
---|
5599 | eval "$as_ac_File=no" |
---|
5600 | fi |
---|
5601 | fi |
---|
5602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5603 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5604 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5605 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
5606 | fi |
---|
5607 | |
---|
5608 | LIBDIR=$LIBDIR/wcs |
---|
5609 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
5610 | echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
5611 | echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6 |
---|
5612 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
5613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5614 | else |
---|
5615 | test "$cross_compiling" = yes && |
---|
5616 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5617 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5618 | { (exit 1); exit 1; }; } |
---|
5619 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
5620 | eval "$as_ac_File=yes" |
---|
5621 | else |
---|
5622 | eval "$as_ac_File=no" |
---|
5623 | fi |
---|
5624 | fi |
---|
5625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
5626 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
5627 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5628 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
5629 | fi |
---|
5630 | |
---|
5631 | done |
---|
5632 | { echo "$as_me:$LINENO: WCSLIB appears to be available." >&5 |
---|
5633 | echo "$as_me: WCSLIB appears to be available." >&6;} |
---|
5634 | |
---|
5635 | cat >>confdefs.h <<\_ACEOF |
---|
5636 | #define HAVE_WCSLIB 1 |
---|
5637 | _ACEOF |
---|
5638 | |
---|
5639 | fi |
---|
5640 | |
---|
5641 | |
---|
5642 | |
---|
5643 | ########################################################################## |
---|
5644 | |
---|
5645 | |
---|
5646 | |
---|
5647 | ac_config_files="$ac_config_files Makefile" |
---|
5648 | |
---|
5649 | cat >confcache <<\_ACEOF |
---|
5650 | # This file is a shell script that caches the results of configure |
---|
5651 | # tests run on this system so they can be shared between configure |
---|
5652 | # scripts and configure runs, see configure's option --config-cache. |
---|
5653 | # It is not useful on other systems. If it contains results you don't |
---|
5654 | # want to keep, you may remove or edit it. |
---|
5655 | # |
---|
5656 | # config.status only pays attention to the cache file if you give it |
---|
5657 | # the --recheck option to rerun configure. |
---|
5658 | # |
---|
5659 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5660 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5661 | # following values. |
---|
5662 | |
---|
5663 | _ACEOF |
---|
5664 | |
---|
5665 | # The following way of writing the cache mishandles newlines in values, |
---|
5666 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5667 | # So, don't put newlines in cache variables' values. |
---|
5668 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5669 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5670 | { |
---|
5671 | (set) 2>&1 | |
---|
5672 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
5673 | *ac_space=\ *) |
---|
5674 | # `set' does not quote correctly, so add quotes (double-quote |
---|
5675 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
5676 | sed -n \ |
---|
5677 | "s/'/'\\\\''/g; |
---|
5678 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5679 | ;; |
---|
5680 | *) |
---|
5681 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5682 | sed -n \ |
---|
5683 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
5684 | ;; |
---|
5685 | esac; |
---|
5686 | } | |
---|
5687 | sed ' |
---|
5688 | t clear |
---|
5689 | : clear |
---|
5690 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5691 | t end |
---|
5692 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5693 | : end' >>confcache |
---|
5694 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
5695 | if test -w $cache_file; then |
---|
5696 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
5697 | cat confcache >$cache_file |
---|
5698 | else |
---|
5699 | echo "not updating unwritable cache $cache_file" |
---|
5700 | fi |
---|
5701 | fi |
---|
5702 | rm -f confcache |
---|
5703 | |
---|
5704 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5705 | # Let make expand exec_prefix. |
---|
5706 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5707 | |
---|
5708 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
5709 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
5710 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
5711 | # (actually we leave an empty line to preserve line numbers). |
---|
5712 | if test "x$srcdir" = x.; then |
---|
5713 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
5714 | s/:*\$(srcdir):*/:/; |
---|
5715 | s/:*\${srcdir}:*/:/; |
---|
5716 | s/:*@srcdir@:*/:/; |
---|
5717 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
5718 | s/:*$//; |
---|
5719 | s/^[^=]*=[ ]*$//; |
---|
5720 | }' |
---|
5721 | fi |
---|
5722 | |
---|
5723 | DEFS=-DHAVE_CONFIG_H |
---|
5724 | |
---|
5725 | ac_libobjs= |
---|
5726 | ac_ltlibobjs= |
---|
5727 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5728 | # 1. Remove the extension, and $U if already installed. |
---|
5729 | ac_i=`echo "$ac_i" | |
---|
5730 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
5731 | # 2. Add them. |
---|
5732 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
5733 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
5734 | done |
---|
5735 | LIBOBJS=$ac_libobjs |
---|
5736 | |
---|
5737 | LTLIBOBJS=$ac_ltlibobjs |
---|
5738 | |
---|
5739 | |
---|
5740 | |
---|
5741 | : ${CONFIG_STATUS=./config.status} |
---|
5742 | ac_clean_files_save=$ac_clean_files |
---|
5743 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5744 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
5745 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5746 | cat >$CONFIG_STATUS <<_ACEOF |
---|
5747 | #! $SHELL |
---|
5748 | # Generated by $as_me. |
---|
5749 | # Run this file to recreate the current configuration. |
---|
5750 | # Compiler output produced by configure, useful for debugging |
---|
5751 | # configure, is in config.log if it exists. |
---|
5752 | |
---|
5753 | debug=false |
---|
5754 | ac_cs_recheck=false |
---|
5755 | ac_cs_silent=false |
---|
5756 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5757 | _ACEOF |
---|
5758 | |
---|
5759 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5760 | ## --------------------- ## |
---|
5761 | ## M4sh Initialization. ## |
---|
5762 | ## --------------------- ## |
---|
5763 | |
---|
5764 | # Be Bourne compatible |
---|
5765 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
5766 | emulate sh |
---|
5767 | NULLCMD=: |
---|
5768 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
5769 | # is contrary to our usage. Disable this feature. |
---|
5770 | alias -g '${1+"$@"}'='"$@"' |
---|
5771 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
5772 | set -o posix |
---|
5773 | fi |
---|
5774 | |
---|
5775 | # Support unset when possible. |
---|
5776 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
5777 | as_unset=unset |
---|
5778 | else |
---|
5779 | as_unset=false |
---|
5780 | fi |
---|
5781 | |
---|
5782 | |
---|
5783 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
5784 | $as_unset ENV MAIL MAILPATH |
---|
5785 | PS1='$ ' |
---|
5786 | PS2='> ' |
---|
5787 | PS4='+ ' |
---|
5788 | |
---|
5789 | # NLS nuisances. |
---|
5790 | for as_var in \ |
---|
5791 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
5792 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
5793 | LC_TELEPHONE LC_TIME |
---|
5794 | do |
---|
5795 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
5796 | eval $as_var=C; export $as_var |
---|
5797 | else |
---|
5798 | $as_unset $as_var |
---|
5799 | fi |
---|
5800 | done |
---|
5801 | |
---|
5802 | # Required to use basename. |
---|
5803 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5804 | as_expr=expr |
---|
5805 | else |
---|
5806 | as_expr=false |
---|
5807 | fi |
---|
5808 | |
---|
5809 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
5810 | as_basename=basename |
---|
5811 | else |
---|
5812 | as_basename=false |
---|
5813 | fi |
---|
5814 | |
---|
5815 | |
---|
5816 | # Name of the executable. |
---|
5817 | as_me=`$as_basename "$0" || |
---|
5818 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5819 | X"$0" : 'X\(//\)$' \| \ |
---|
5820 | X"$0" : 'X\(/\)$' \| \ |
---|
5821 | . : '\(.\)' 2>/dev/null || |
---|
5822 | echo X/"$0" | |
---|
5823 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
5824 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
5825 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
5826 | s/.*/./; q'` |
---|
5827 | |
---|
5828 | |
---|
5829 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
5830 | # Avoid depending upon Character Ranges. |
---|
5831 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5832 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5833 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5834 | as_cr_digits='0123456789' |
---|
5835 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5836 | |
---|
5837 | # The user is always right. |
---|
5838 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5839 | echo "#! /bin/sh" >conf$$.sh |
---|
5840 | echo "exit 0" >>conf$$.sh |
---|
5841 | chmod +x conf$$.sh |
---|
5842 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
5843 | PATH_SEPARATOR=';' |
---|
5844 | else |
---|
5845 | PATH_SEPARATOR=: |
---|
5846 | fi |
---|
5847 | rm -f conf$$.sh |
---|
5848 | fi |
---|
5849 | |
---|
5850 | |
---|
5851 | as_lineno_1=$LINENO |
---|
5852 | as_lineno_2=$LINENO |
---|
5853 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5854 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5855 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
5856 | # Find who we are. Look in the path if we contain no path at all |
---|
5857 | # relative or not. |
---|
5858 | case $0 in |
---|
5859 | *[\\/]* ) as_myself=$0 ;; |
---|
5860 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5861 | for as_dir in $PATH |
---|
5862 | do |
---|
5863 | IFS=$as_save_IFS |
---|
5864 | test -z "$as_dir" && as_dir=. |
---|
5865 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5866 | done |
---|
5867 | |
---|
5868 | ;; |
---|
5869 | esac |
---|
5870 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5871 | # in which case we are not to be found in the path. |
---|
5872 | if test "x$as_myself" = x; then |
---|
5873 | as_myself=$0 |
---|
5874 | fi |
---|
5875 | if test ! -f "$as_myself"; then |
---|
5876 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
5877 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
5878 | { (exit 1); exit 1; }; } |
---|
5879 | fi |
---|
5880 | case $CONFIG_SHELL in |
---|
5881 | '') |
---|
5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5883 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
5884 | do |
---|
5885 | IFS=$as_save_IFS |
---|
5886 | test -z "$as_dir" && as_dir=. |
---|
5887 | for as_base in sh bash ksh sh5; do |
---|
5888 | case $as_dir in |
---|
5889 | /*) |
---|
5890 | if ("$as_dir/$as_base" -c ' |
---|
5891 | as_lineno_1=$LINENO |
---|
5892 | as_lineno_2=$LINENO |
---|
5893 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5894 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5895 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
5896 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
5897 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
5898 | CONFIG_SHELL=$as_dir/$as_base |
---|
5899 | export CONFIG_SHELL |
---|
5900 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
5901 | fi;; |
---|
5902 | esac |
---|
5903 | done |
---|
5904 | done |
---|
5905 | ;; |
---|
5906 | esac |
---|
5907 | |
---|
5908 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
5909 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
5910 | # line-number line before each line; the second 'sed' does the real |
---|
5911 | # work. The second script uses 'N' to pair each line-number line |
---|
5912 | # with the numbered line, and appends trailing '-' during |
---|
5913 | # substitution so that $LINENO is not a special case at line end. |
---|
5914 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
5915 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
5916 | sed '=' <$as_myself | |
---|
5917 | sed ' |
---|
5918 | N |
---|
5919 | s,$,-, |
---|
5920 | : loop |
---|
5921 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
5922 | t loop |
---|
5923 | s,-$,, |
---|
5924 | s,^['$as_cr_digits']*\n,, |
---|
5925 | ' >$as_me.lineno && |
---|
5926 | chmod +x $as_me.lineno || |
---|
5927 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
5928 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
5929 | { (exit 1); exit 1; }; } |
---|
5930 | |
---|
5931 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
5932 | # (the dirname of $[0] is not the place where we might find the |
---|
5933 | # original and so on. Autoconf is especially sensible to this). |
---|
5934 | . ./$as_me.lineno |
---|
5935 | # Exit status is that of the last command. |
---|
5936 | exit |
---|
5937 | } |
---|
5938 | |
---|
5939 | |
---|
5940 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
5941 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
5942 | ' ECHO_T=' ' ;; |
---|
5943 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
5944 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
5945 | esac |
---|
5946 | |
---|
5947 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5948 | as_expr=expr |
---|
5949 | else |
---|
5950 | as_expr=false |
---|
5951 | fi |
---|
5952 | |
---|
5953 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5954 | echo >conf$$.file |
---|
5955 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5956 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
5957 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
5958 | if test -f conf$$.exe; then |
---|
5959 | # Don't use ln at all; we don't have any links |
---|
5960 | as_ln_s='cp -p' |
---|
5961 | else |
---|
5962 | as_ln_s='ln -s' |
---|
5963 | fi |
---|
5964 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5965 | as_ln_s=ln |
---|
5966 | else |
---|
5967 | as_ln_s='cp -p' |
---|
5968 | fi |
---|
5969 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5970 | |
---|
5971 | if mkdir -p . 2>/dev/null; then |
---|
5972 | as_mkdir_p=: |
---|
5973 | else |
---|
5974 | as_mkdir_p=false |
---|
5975 | fi |
---|
5976 | |
---|
5977 | as_executable_p="test -f" |
---|
5978 | |
---|
5979 | # Sed expression to map a string onto a valid CPP name. |
---|
5980 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
5981 | |
---|
5982 | # Sed expression to map a string onto a valid variable name. |
---|
5983 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
5984 | |
---|
5985 | |
---|
5986 | # IFS |
---|
5987 | # We need space, tab and new line, in precisely that order. |
---|
5988 | as_nl=' |
---|
5989 | ' |
---|
5990 | IFS=" $as_nl" |
---|
5991 | |
---|
5992 | # CDPATH. |
---|
5993 | $as_unset CDPATH |
---|
5994 | |
---|
5995 | exec 6>&1 |
---|
5996 | |
---|
5997 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
5998 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5999 | # values after options handling. Logging --version etc. is OK. |
---|
6000 | exec 5>>config.log |
---|
6001 | { |
---|
6002 | echo |
---|
6003 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6004 | ## Running $as_me. ## |
---|
6005 | _ASBOX |
---|
6006 | } >&5 |
---|
6007 | cat >&5 <<_CSEOF |
---|
6008 | |
---|
6009 | This file was extended by Duchamp $as_me 1.0.1, which was |
---|
6010 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
6011 | |
---|
6012 | CONFIG_FILES = $CONFIG_FILES |
---|
6013 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6014 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6015 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6016 | $ $0 $@ |
---|
6017 | |
---|
6018 | _CSEOF |
---|
6019 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6020 | echo >&5 |
---|
6021 | _ACEOF |
---|
6022 | |
---|
6023 | # Files that config.status was made for. |
---|
6024 | if test -n "$ac_config_files"; then |
---|
6025 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6026 | fi |
---|
6027 | |
---|
6028 | if test -n "$ac_config_headers"; then |
---|
6029 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6030 | fi |
---|
6031 | |
---|
6032 | if test -n "$ac_config_links"; then |
---|
6033 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6034 | fi |
---|
6035 | |
---|
6036 | if test -n "$ac_config_commands"; then |
---|
6037 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6038 | fi |
---|
6039 | |
---|
6040 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6041 | |
---|
6042 | ac_cs_usage="\ |
---|
6043 | \`$as_me' instantiates files from templates according to the |
---|
6044 | current configuration. |
---|
6045 | |
---|
6046 | Usage: $0 [OPTIONS] [FILE]... |
---|
6047 | |
---|
6048 | -h, --help print this help, then exit |
---|
6049 | -V, --version print version number, then exit |
---|
6050 | -q, --quiet do not print progress messages |
---|
6051 | -d, --debug don't remove temporary files |
---|
6052 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6053 | --file=FILE[:TEMPLATE] |
---|
6054 | instantiate the configuration file FILE |
---|
6055 | --header=FILE[:TEMPLATE] |
---|
6056 | instantiate the configuration header FILE |
---|
6057 | |
---|
6058 | Configuration files: |
---|
6059 | $config_files |
---|
6060 | |
---|
6061 | Configuration headers: |
---|
6062 | $config_headers |
---|
6063 | |
---|
6064 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6065 | _ACEOF |
---|
6066 | |
---|
6067 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6068 | ac_cs_version="\\ |
---|
6069 | Duchamp config.status 1.0.1 |
---|
6070 | configured by $0, generated by GNU Autoconf 2.57, |
---|
6071 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6072 | |
---|
6073 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
6074 | Free Software Foundation, Inc. |
---|
6075 | This config.status script is free software; the Free Software Foundation |
---|
6076 | gives unlimited permission to copy, distribute and modify it." |
---|
6077 | srcdir=$srcdir |
---|
6078 | _ACEOF |
---|
6079 | |
---|
6080 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6081 | # If no file are specified by the user, then we need to provide default |
---|
6082 | # value. By we need to know if files were specified by the user. |
---|
6083 | ac_need_defaults=: |
---|
6084 | while test $# != 0 |
---|
6085 | do |
---|
6086 | case $1 in |
---|
6087 | --*=*) |
---|
6088 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6089 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6090 | ac_shift=: |
---|
6091 | ;; |
---|
6092 | -*) |
---|
6093 | ac_option=$1 |
---|
6094 | ac_optarg=$2 |
---|
6095 | ac_shift=shift |
---|
6096 | ;; |
---|
6097 | *) # This is not an option, so the user has probably given explicit |
---|
6098 | # arguments. |
---|
6099 | ac_option=$1 |
---|
6100 | ac_need_defaults=false;; |
---|
6101 | esac |
---|
6102 | |
---|
6103 | case $ac_option in |
---|
6104 | # Handling of the options. |
---|
6105 | _ACEOF |
---|
6106 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6107 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6108 | ac_cs_recheck=: ;; |
---|
6109 | --version | --vers* | -V ) |
---|
6110 | echo "$ac_cs_version"; exit 0 ;; |
---|
6111 | --he | --h) |
---|
6112 | # Conflict between --help and --header |
---|
6113 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6114 | Try \`$0 --help' for more information." >&5 |
---|
6115 | echo "$as_me: error: ambiguous option: $1 |
---|
6116 | Try \`$0 --help' for more information." >&2;} |
---|
6117 | { (exit 1); exit 1; }; };; |
---|
6118 | --help | --hel | -h ) |
---|
6119 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6120 | --debug | --d* | -d ) |
---|
6121 | debug=: ;; |
---|
6122 | --file | --fil | --fi | --f ) |
---|
6123 | $ac_shift |
---|
6124 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
6125 | ac_need_defaults=false;; |
---|
6126 | --header | --heade | --head | --hea ) |
---|
6127 | $ac_shift |
---|
6128 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
6129 | ac_need_defaults=false;; |
---|
6130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6131 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6132 | ac_cs_silent=: ;; |
---|
6133 | |
---|
6134 | # This is an error. |
---|
6135 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6136 | Try \`$0 --help' for more information." >&5 |
---|
6137 | echo "$as_me: error: unrecognized option: $1 |
---|
6138 | Try \`$0 --help' for more information." >&2;} |
---|
6139 | { (exit 1); exit 1; }; } ;; |
---|
6140 | |
---|
6141 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6142 | |
---|
6143 | esac |
---|
6144 | shift |
---|
6145 | done |
---|
6146 | |
---|
6147 | ac_configure_extra_args= |
---|
6148 | |
---|
6149 | if $ac_cs_silent; then |
---|
6150 | exec 6>/dev/null |
---|
6151 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6152 | fi |
---|
6153 | |
---|
6154 | _ACEOF |
---|
6155 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6156 | if \$ac_cs_recheck; then |
---|
6157 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6158 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6159 | fi |
---|
6160 | |
---|
6161 | _ACEOF |
---|
6162 | |
---|
6163 | |
---|
6164 | |
---|
6165 | |
---|
6166 | |
---|
6167 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6168 | for ac_config_target in $ac_config_targets |
---|
6169 | do |
---|
6170 | case "$ac_config_target" in |
---|
6171 | # Handling of arguments. |
---|
6172 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6173 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
---|
6174 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6175 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6176 | { (exit 1); exit 1; }; };; |
---|
6177 | esac |
---|
6178 | done |
---|
6179 | |
---|
6180 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6181 | # then the envvar interface is used. Set only those that are not. |
---|
6182 | # We use the long form for the default assignment because of an extremely |
---|
6183 | # bizarre bug on SunOS 4.1.3. |
---|
6184 | if $ac_need_defaults; then |
---|
6185 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6186 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6187 | fi |
---|
6188 | |
---|
6189 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6190 | # simply because there is no reason to put it here, and in addition, |
---|
6191 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6192 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6193 | $debug || |
---|
6194 | { |
---|
6195 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6196 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6197 | } |
---|
6198 | |
---|
6199 | # Create a (secure) tmp directory for tmp files. |
---|
6200 | |
---|
6201 | { |
---|
6202 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6203 | test -n "$tmp" && test -d "$tmp" |
---|
6204 | } || |
---|
6205 | { |
---|
6206 | tmp=./confstat$$-$RANDOM |
---|
6207 | (umask 077 && mkdir $tmp) |
---|
6208 | } || |
---|
6209 | { |
---|
6210 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6211 | { (exit 1); exit 1; } |
---|
6212 | } |
---|
6213 | |
---|
6214 | _ACEOF |
---|
6215 | |
---|
6216 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6217 | |
---|
6218 | # |
---|
6219 | # CONFIG_FILES section. |
---|
6220 | # |
---|
6221 | |
---|
6222 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6223 | # This happens for instance when ./config.status config.h |
---|
6224 | if test -n "\$CONFIG_FILES"; then |
---|
6225 | # Protect against being on the right side of a sed subst in config.status. |
---|
6226 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6227 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6228 | s,@SHELL@,$SHELL,;t t |
---|
6229 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6230 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6231 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6232 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6233 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6234 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6235 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6236 | s,@prefix@,$prefix,;t t |
---|
6237 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6238 | s,@bindir@,$bindir,;t t |
---|
6239 | s,@sbindir@,$sbindir,;t t |
---|
6240 | s,@libexecdir@,$libexecdir,;t t |
---|
6241 | s,@datadir@,$datadir,;t t |
---|
6242 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6243 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6244 | s,@localstatedir@,$localstatedir,;t t |
---|
6245 | s,@libdir@,$libdir,;t t |
---|
6246 | s,@includedir@,$includedir,;t t |
---|
6247 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6248 | s,@infodir@,$infodir,;t t |
---|
6249 | s,@mandir@,$mandir,;t t |
---|
6250 | s,@build_alias@,$build_alias,;t t |
---|
6251 | s,@host_alias@,$host_alias,;t t |
---|
6252 | s,@target_alias@,$target_alias,;t t |
---|
6253 | s,@DEFS@,$DEFS,;t t |
---|
6254 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6255 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6256 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6257 | s,@LIBS@,$LIBS,;t t |
---|
6258 | s,@CXX@,$CXX,;t t |
---|
6259 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
6260 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6261 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6262 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
6263 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6264 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6265 | s,@CC@,$CC,;t t |
---|
6266 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6267 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6268 | s,@CPP@,$CPP,;t t |
---|
6269 | s,@EGREP@,$EGREP,;t t |
---|
6270 | s,@POW_LIB@,$POW_LIB,;t t |
---|
6271 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
6272 | s,@F77@,$F77,;t t |
---|
6273 | s,@FFLAGS@,$FFLAGS,;t t |
---|
6274 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
---|
6275 | s,@PGPLOTINC@,$PGPLOTINC,;t t |
---|
6276 | s,@PGPLOTLIB@,$PGPLOTLIB,;t t |
---|
6277 | s,@CFITSIOINC@,$CFITSIOINC,;t t |
---|
6278 | s,@CFITSIOLIB@,$CFITSIOLIB,;t t |
---|
6279 | s,@WCSINC@,$WCSINC,;t t |
---|
6280 | s,@WCSLIB@,$WCSLIB,;t t |
---|
6281 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6282 | CEOF |
---|
6283 | |
---|
6284 | _ACEOF |
---|
6285 | |
---|
6286 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6287 | # Split the substitutions into bite-sized pieces for seds with |
---|
6288 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6289 | ac_max_sed_lines=48 |
---|
6290 | ac_sed_frag=1 # Number of current file. |
---|
6291 | ac_beg=1 # First line for current file. |
---|
6292 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6293 | ac_more_lines=: |
---|
6294 | ac_sed_cmds= |
---|
6295 | while $ac_more_lines; do |
---|
6296 | if test $ac_beg -gt 1; then |
---|
6297 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6298 | else |
---|
6299 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6300 | fi |
---|
6301 | if test ! -s $tmp/subs.frag; then |
---|
6302 | ac_more_lines=false |
---|
6303 | else |
---|
6304 | # The purpose of the label and of the branching condition is to |
---|
6305 | # speed up the sed processing (if there are no `@' at all, there |
---|
6306 | # is no need to browse any of the substitutions). |
---|
6307 | # These are the two extra sed commands mentioned above. |
---|
6308 | (echo ':t |
---|
6309 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6310 | if test -z "$ac_sed_cmds"; then |
---|
6311 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6312 | else |
---|
6313 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6314 | fi |
---|
6315 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6316 | ac_beg=$ac_end |
---|
6317 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6318 | fi |
---|
6319 | done |
---|
6320 | if test -z "$ac_sed_cmds"; then |
---|
6321 | ac_sed_cmds=cat |
---|
6322 | fi |
---|
6323 | fi # test -n "$CONFIG_FILES" |
---|
6324 | |
---|
6325 | _ACEOF |
---|
6326 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6327 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6328 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6329 | case $ac_file in |
---|
6330 | - | *:- | *:-:* ) # input from stdin |
---|
6331 | cat >$tmp/stdin |
---|
6332 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6333 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6334 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6335 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6336 | * ) ac_file_in=$ac_file.in ;; |
---|
6337 | esac |
---|
6338 | |
---|
6339 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6340 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6341 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6342 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6343 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6344 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6345 | . : '\(.\)' 2>/dev/null || |
---|
6346 | echo X"$ac_file" | |
---|
6347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6348 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6349 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6350 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6351 | s/.*/./; q'` |
---|
6352 | { if $as_mkdir_p; then |
---|
6353 | mkdir -p "$ac_dir" |
---|
6354 | else |
---|
6355 | as_dir="$ac_dir" |
---|
6356 | as_dirs= |
---|
6357 | while test ! -d "$as_dir"; do |
---|
6358 | as_dirs="$as_dir $as_dirs" |
---|
6359 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6360 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6361 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6362 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6363 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6364 | . : '\(.\)' 2>/dev/null || |
---|
6365 | echo X"$as_dir" | |
---|
6366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6367 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6368 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6369 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6370 | s/.*/./; q'` |
---|
6371 | done |
---|
6372 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6373 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6374 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6375 | { (exit 1); exit 1; }; }; } |
---|
6376 | |
---|
6377 | ac_builddir=. |
---|
6378 | |
---|
6379 | if test "$ac_dir" != .; then |
---|
6380 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6381 | # A "../" for each directory in $ac_dir_suffix. |
---|
6382 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6383 | else |
---|
6384 | ac_dir_suffix= ac_top_builddir= |
---|
6385 | fi |
---|
6386 | |
---|
6387 | case $srcdir in |
---|
6388 | .) # No --srcdir option. We are building in place. |
---|
6389 | ac_srcdir=. |
---|
6390 | if test -z "$ac_top_builddir"; then |
---|
6391 | ac_top_srcdir=. |
---|
6392 | else |
---|
6393 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
6394 | fi ;; |
---|
6395 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
6396 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6397 | ac_top_srcdir=$srcdir ;; |
---|
6398 | *) # Relative path. |
---|
6399 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
6400 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
6401 | esac |
---|
6402 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
6403 | # absolute. |
---|
6404 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
6405 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
6406 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
6407 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
6408 | |
---|
6409 | |
---|
6410 | |
---|
6411 | if test x"$ac_file" != x-; then |
---|
6412 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6413 | echo "$as_me: creating $ac_file" >&6;} |
---|
6414 | rm -f "$ac_file" |
---|
6415 | fi |
---|
6416 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6417 | # use $as_me), people would be surprised to read: |
---|
6418 | # /* config.h. Generated by config.status. */ |
---|
6419 | if test x"$ac_file" = x-; then |
---|
6420 | configure_input= |
---|
6421 | else |
---|
6422 | configure_input="$ac_file. " |
---|
6423 | fi |
---|
6424 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
6425 | sed 's,.*/,,'` by configure." |
---|
6426 | |
---|
6427 | # First look for the input files in the build tree, otherwise in the |
---|
6428 | # src tree. |
---|
6429 | ac_file_inputs=`IFS=: |
---|
6430 | for f in $ac_file_in; do |
---|
6431 | case $f in |
---|
6432 | -) echo $tmp/stdin ;; |
---|
6433 | [\\/$]*) |
---|
6434 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6435 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6436 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6437 | { (exit 1); exit 1; }; } |
---|
6438 | echo $f;; |
---|
6439 | *) # Relative |
---|
6440 | if test -f "$f"; then |
---|
6441 | # Build tree |
---|
6442 | echo $f |
---|
6443 | elif test -f "$srcdir/$f"; then |
---|
6444 | # Source tree |
---|
6445 | echo $srcdir/$f |
---|
6446 | else |
---|
6447 | # /dev/null tree |
---|
6448 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6449 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6450 | { (exit 1); exit 1; }; } |
---|
6451 | fi;; |
---|
6452 | esac |
---|
6453 | done` || { (exit 1); exit 1; } |
---|
6454 | _ACEOF |
---|
6455 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6456 | sed "$ac_vpsub |
---|
6457 | $extrasub |
---|
6458 | _ACEOF |
---|
6459 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6460 | :t |
---|
6461 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6462 | s,@configure_input@,$configure_input,;t t |
---|
6463 | s,@srcdir@,$ac_srcdir,;t t |
---|
6464 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
6465 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
6466 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
6467 | s,@builddir@,$ac_builddir,;t t |
---|
6468 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
6469 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
6470 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
6471 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
6472 | rm -f $tmp/stdin |
---|
6473 | if test x"$ac_file" != x-; then |
---|
6474 | mv $tmp/out $ac_file |
---|
6475 | else |
---|
6476 | cat $tmp/out |
---|
6477 | rm -f $tmp/out |
---|
6478 | fi |
---|
6479 | |
---|
6480 | done |
---|
6481 | _ACEOF |
---|
6482 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6483 | |
---|
6484 | # |
---|
6485 | # CONFIG_HEADER section. |
---|
6486 | # |
---|
6487 | |
---|
6488 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
6489 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
6490 | # |
---|
6491 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
6492 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
6493 | ac_dB='[ ].*$,\1#\2' |
---|
6494 | ac_dC=' ' |
---|
6495 | ac_dD=',;t' |
---|
6496 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
6497 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
6498 | ac_uB='$,\1#\2define\3' |
---|
6499 | ac_uC=' ' |
---|
6500 | ac_uD=',;t' |
---|
6501 | |
---|
6502 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
6503 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6504 | case $ac_file in |
---|
6505 | - | *:- | *:-:* ) # input from stdin |
---|
6506 | cat >$tmp/stdin |
---|
6507 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6508 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6509 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6510 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6511 | * ) ac_file_in=$ac_file.in ;; |
---|
6512 | esac |
---|
6513 | |
---|
6514 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6515 | echo "$as_me: creating $ac_file" >&6;} |
---|
6516 | |
---|
6517 | # First look for the input files in the build tree, otherwise in the |
---|
6518 | # src tree. |
---|
6519 | ac_file_inputs=`IFS=: |
---|
6520 | for f in $ac_file_in; do |
---|
6521 | case $f in |
---|
6522 | -) echo $tmp/stdin ;; |
---|
6523 | [\\/$]*) |
---|
6524 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6525 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6526 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6527 | { (exit 1); exit 1; }; } |
---|
6528 | echo $f;; |
---|
6529 | *) # Relative |
---|
6530 | if test -f "$f"; then |
---|
6531 | # Build tree |
---|
6532 | echo $f |
---|
6533 | elif test -f "$srcdir/$f"; then |
---|
6534 | # Source tree |
---|
6535 | echo $srcdir/$f |
---|
6536 | else |
---|
6537 | # /dev/null tree |
---|
6538 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6539 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6540 | { (exit 1); exit 1; }; } |
---|
6541 | fi;; |
---|
6542 | esac |
---|
6543 | done` || { (exit 1); exit 1; } |
---|
6544 | # Remove the trailing spaces. |
---|
6545 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
6546 | |
---|
6547 | _ACEOF |
---|
6548 | |
---|
6549 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
6550 | # `conftest.undefs', that substitutes the proper values into |
---|
6551 | # config.h.in to produce config.h. The first handles `#define' |
---|
6552 | # templates, and the second `#undef' templates. |
---|
6553 | # And first: Protect against being on the right side of a sed subst in |
---|
6554 | # config.status. Protect against being in an unquoted here document |
---|
6555 | # in config.status. |
---|
6556 | rm -f conftest.defines conftest.undefs |
---|
6557 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
6558 | # Putting comments in sed scripts is not portable. |
---|
6559 | # |
---|
6560 | # `end' is used to avoid that the second main sed command (meant for |
---|
6561 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
6562 | # See the Autoconf documentation for `clear'. |
---|
6563 | cat >confdef2sed.sed <<\_ACEOF |
---|
6564 | s/[\\&,]/\\&/g |
---|
6565 | s,[\\$`],\\&,g |
---|
6566 | t clear |
---|
6567 | : clear |
---|
6568 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
6569 | t end |
---|
6570 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
6571 | : end |
---|
6572 | _ACEOF |
---|
6573 | # If some macros were called several times there might be several times |
---|
6574 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
6575 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
6576 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
6577 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
6578 | rm -f confdef2sed.sed |
---|
6579 | |
---|
6580 | # This sed command replaces #undef with comments. This is necessary, for |
---|
6581 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
6582 | # on some systems where configure will not decide to define it. |
---|
6583 | cat >>conftest.undefs <<\_ACEOF |
---|
6584 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
6585 | _ACEOF |
---|
6586 | |
---|
6587 | # Break up conftest.defines because some shells have a limit on the size |
---|
6588 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6589 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
6590 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
6591 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
6592 | echo ' :' >>$CONFIG_STATUS |
---|
6593 | rm -f conftest.tail |
---|
6594 | while grep . conftest.defines >/dev/null |
---|
6595 | do |
---|
6596 | # Write a limited-size here document to $tmp/defines.sed. |
---|
6597 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
6598 | # Speed up: don't consider the non `#define' lines. |
---|
6599 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
6600 | # Work around the forget-to-reset-the-flag bug. |
---|
6601 | echo 't clr' >>$CONFIG_STATUS |
---|
6602 | echo ': clr' >>$CONFIG_STATUS |
---|
6603 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
6604 | echo 'CEOF |
---|
6605 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
6606 | rm -f $tmp/in |
---|
6607 | mv $tmp/out $tmp/in |
---|
6608 | ' >>$CONFIG_STATUS |
---|
6609 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
6610 | rm -f conftest.defines |
---|
6611 | mv conftest.tail conftest.defines |
---|
6612 | done |
---|
6613 | rm -f conftest.defines |
---|
6614 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
6615 | echo >>$CONFIG_STATUS |
---|
6616 | |
---|
6617 | # Break up conftest.undefs because some shells have a limit on the size |
---|
6618 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6619 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
6620 | rm -f conftest.tail |
---|
6621 | while grep . conftest.undefs >/dev/null |
---|
6622 | do |
---|
6623 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
6624 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
6625 | # Speed up: don't consider the non `#undef' |
---|
6626 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
6627 | # Work around the forget-to-reset-the-flag bug. |
---|
6628 | echo 't clr' >>$CONFIG_STATUS |
---|
6629 | echo ': clr' >>$CONFIG_STATUS |
---|
6630 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
6631 | echo 'CEOF |
---|
6632 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
6633 | rm -f $tmp/in |
---|
6634 | mv $tmp/out $tmp/in |
---|
6635 | ' >>$CONFIG_STATUS |
---|
6636 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
6637 | rm -f conftest.undefs |
---|
6638 | mv conftest.tail conftest.undefs |
---|
6639 | done |
---|
6640 | rm -f conftest.undefs |
---|
6641 | |
---|
6642 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6643 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6644 | # use $as_me), people would be surprised to read: |
---|
6645 | # /* config.h. Generated by config.status. */ |
---|
6646 | if test x"$ac_file" = x-; then |
---|
6647 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
6648 | else |
---|
6649 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
6650 | fi |
---|
6651 | cat $tmp/in >>$tmp/config.h |
---|
6652 | rm -f $tmp/in |
---|
6653 | if test x"$ac_file" != x-; then |
---|
6654 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
6655 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
6656 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
6657 | else |
---|
6658 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6659 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6660 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6661 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6662 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6663 | . : '\(.\)' 2>/dev/null || |
---|
6664 | echo X"$ac_file" | |
---|
6665 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6666 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6667 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6668 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6669 | s/.*/./; q'` |
---|
6670 | { if $as_mkdir_p; then |
---|
6671 | mkdir -p "$ac_dir" |
---|
6672 | else |
---|
6673 | as_dir="$ac_dir" |
---|
6674 | as_dirs= |
---|
6675 | while test ! -d "$as_dir"; do |
---|
6676 | as_dirs="$as_dir $as_dirs" |
---|
6677 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6678 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6679 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6680 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6681 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6682 | . : '\(.\)' 2>/dev/null || |
---|
6683 | echo X"$as_dir" | |
---|
6684 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6685 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6686 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6687 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6688 | s/.*/./; q'` |
---|
6689 | done |
---|
6690 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6691 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6692 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6693 | { (exit 1); exit 1; }; }; } |
---|
6694 | |
---|
6695 | rm -f $ac_file |
---|
6696 | mv $tmp/config.h $ac_file |
---|
6697 | fi |
---|
6698 | else |
---|
6699 | cat $tmp/config.h |
---|
6700 | rm -f $tmp/config.h |
---|
6701 | fi |
---|
6702 | done |
---|
6703 | _ACEOF |
---|
6704 | |
---|
6705 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6706 | |
---|
6707 | { (exit 0); exit 0; } |
---|
6708 | _ACEOF |
---|
6709 | chmod +x $CONFIG_STATUS |
---|
6710 | ac_clean_files=$ac_clean_files_save |
---|
6711 | |
---|
6712 | |
---|
6713 | # configure is writing to config.log, and then calls config.status. |
---|
6714 | # config.status does its own redirection, appending to config.log. |
---|
6715 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6716 | # by configure, so config.status won't be able to write to it; its |
---|
6717 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6718 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6719 | # appended to by config.status. When coming back to configure, we |
---|
6720 | # need to make the FD available again. |
---|
6721 | if test "$no_create" != yes; then |
---|
6722 | ac_cs_success=: |
---|
6723 | ac_config_status_args= |
---|
6724 | test "$silent" = yes && |
---|
6725 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6726 | exec 5>/dev/null |
---|
6727 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6728 | exec 5>>config.log |
---|
6729 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6730 | # would make configure fail if this is the last instruction. |
---|
6731 | $ac_cs_success || { (exit 1); exit 1; } |
---|
6732 | fi |
---|
6733 | |
---|