1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.68 for Duchamp 1.1.11. |
---|
4 | # |
---|
5 | # Report bugs to <Matthew.Whiting@csiro.au>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
---|
10 | # Foundation, Inc. |
---|
11 | # |
---|
12 | # |
---|
13 | # This configure script is free software; the Free Software Foundation |
---|
14 | # gives unlimited permission to copy, distribute and modify it. |
---|
15 | ## -------------------- ## |
---|
16 | ## M4sh Initialization. ## |
---|
17 | ## -------------------- ## |
---|
18 | |
---|
19 | # Be more Bourne compatible |
---|
20 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | setopt NO_GLOB_SUBST |
---|
28 | else |
---|
29 | case `(set -o) 2>/dev/null` in #( |
---|
30 | *posix*) : |
---|
31 | set -o posix ;; #( |
---|
32 | *) : |
---|
33 | ;; |
---|
34 | esac |
---|
35 | fi |
---|
36 | |
---|
37 | |
---|
38 | as_nl=' |
---|
39 | ' |
---|
40 | export as_nl |
---|
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
46 | # but without wasting forks for bash or zsh. |
---|
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
49 | as_echo='print -r --' |
---|
50 | as_echo_n='print -rn --' |
---|
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
52 | as_echo='printf %s\n' |
---|
53 | as_echo_n='printf %s' |
---|
54 | else |
---|
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
57 | as_echo_n='/usr/ucb/echo -n' |
---|
58 | else |
---|
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
60 | as_echo_n_body='eval |
---|
61 | arg=$1; |
---|
62 | case $arg in #( |
---|
63 | *"$as_nl"*) |
---|
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
66 | esac; |
---|
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
68 | ' |
---|
69 | export as_echo_n_body |
---|
70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
71 | fi |
---|
72 | export as_echo_body |
---|
73 | as_echo='sh -c $as_echo_body as_echo' |
---|
74 | fi |
---|
75 | |
---|
76 | # The user is always right. |
---|
77 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
78 | PATH_SEPARATOR=: |
---|
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
81 | PATH_SEPARATOR=';' |
---|
82 | } |
---|
83 | fi |
---|
84 | |
---|
85 | |
---|
86 | # IFS |
---|
87 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
88 | # there to prevent editors from complaining about space-tab. |
---|
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
90 | # splitting by setting IFS to empty value.) |
---|
91 | IFS=" "" $as_nl" |
---|
92 | |
---|
93 | # Find who we are. Look in the path if we contain no directory separator. |
---|
94 | as_myself= |
---|
95 | case $0 in #(( |
---|
96 | *[\\/]* ) as_myself=$0 ;; |
---|
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
98 | for as_dir in $PATH |
---|
99 | do |
---|
100 | IFS=$as_save_IFS |
---|
101 | test -z "$as_dir" && as_dir=. |
---|
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
103 | done |
---|
104 | IFS=$as_save_IFS |
---|
105 | |
---|
106 | ;; |
---|
107 | esac |
---|
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
109 | # in which case we are not to be found in the path. |
---|
110 | if test "x$as_myself" = x; then |
---|
111 | as_myself=$0 |
---|
112 | fi |
---|
113 | if test ! -f "$as_myself"; then |
---|
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
115 | exit 1 |
---|
116 | fi |
---|
117 | |
---|
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
120 | # suppresses any "Segmentation fault" message there. '((' could |
---|
121 | # trigger a bug in pdksh 5.2.14. |
---|
122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
123 | do eval test x\${$as_var+set} = xset \ |
---|
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
125 | done |
---|
126 | PS1='$ ' |
---|
127 | PS2='> ' |
---|
128 | PS4='+ ' |
---|
129 | |
---|
130 | # NLS nuisances. |
---|
131 | LC_ALL=C |
---|
132 | export LC_ALL |
---|
133 | LANGUAGE=C |
---|
134 | export LANGUAGE |
---|
135 | |
---|
136 | # CDPATH. |
---|
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
138 | |
---|
139 | if test "x$CONFIG_SHELL" = x; then |
---|
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
141 | emulate sh |
---|
142 | NULLCMD=: |
---|
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
144 | # is contrary to our usage. Disable this feature. |
---|
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
146 | setopt NO_GLOB_SUBST |
---|
147 | else |
---|
148 | case \`(set -o) 2>/dev/null\` in #( |
---|
149 | *posix*) : |
---|
150 | set -o posix ;; #( |
---|
151 | *) : |
---|
152 | ;; |
---|
153 | esac |
---|
154 | fi |
---|
155 | " |
---|
156 | as_required="as_fn_return () { (exit \$1); } |
---|
157 | as_fn_success () { as_fn_return 0; } |
---|
158 | as_fn_failure () { as_fn_return 1; } |
---|
159 | as_fn_ret_success () { return 0; } |
---|
160 | as_fn_ret_failure () { return 1; } |
---|
161 | |
---|
162 | exitcode=0 |
---|
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
168 | |
---|
169 | else |
---|
170 | exitcode=1; echo positional parameters were not saved. |
---|
171 | fi |
---|
172 | test x\$exitcode = x0 || exit 1" |
---|
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
177 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
178 | if (eval "$as_required") 2>/dev/null; then : |
---|
179 | as_have_required=yes |
---|
180 | else |
---|
181 | as_have_required=no |
---|
182 | fi |
---|
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
184 | |
---|
185 | else |
---|
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
187 | as_found=false |
---|
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
189 | do |
---|
190 | IFS=$as_save_IFS |
---|
191 | test -z "$as_dir" && as_dir=. |
---|
192 | as_found=: |
---|
193 | case $as_dir in #( |
---|
194 | /*) |
---|
195 | for as_base in sh bash ksh sh5; do |
---|
196 | # Try only shells that exist, to save several forks. |
---|
197 | as_shell=$as_dir/$as_base |
---|
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
200 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
202 | break 2 |
---|
203 | fi |
---|
204 | fi |
---|
205 | done;; |
---|
206 | esac |
---|
207 | as_found=false |
---|
208 | done |
---|
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
211 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
212 | fi; } |
---|
213 | IFS=$as_save_IFS |
---|
214 | |
---|
215 | |
---|
216 | if test "x$CONFIG_SHELL" != x; then : |
---|
217 | # We cannot yet assume a decent shell, so we have to provide a |
---|
218 | # neutralization value for shells without unset; and this also |
---|
219 | # works around shells that cannot unset nonexistent variables. |
---|
220 | # Preserve -v and -x to the replacement shell. |
---|
221 | BASH_ENV=/dev/null |
---|
222 | ENV=/dev/null |
---|
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
224 | export CONFIG_SHELL |
---|
225 | case $- in # (((( |
---|
226 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
227 | *v* ) as_opts=-v ;; |
---|
228 | *x* ) as_opts=-x ;; |
---|
229 | * ) as_opts= ;; |
---|
230 | esac |
---|
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
---|
232 | fi |
---|
233 | |
---|
234 | if test x$as_have_required = xno; then : |
---|
235 | $as_echo "$0: This script requires a shell more modern than all" |
---|
236 | $as_echo "$0: the shells that I found on your system." |
---|
237 | if test x${ZSH_VERSION+set} = xset ; then |
---|
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
240 | else |
---|
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
242 | $0: Matthew.Whiting@csiro.au about your system, including |
---|
243 | $0: any error possibly output before this message. Then |
---|
244 | $0: install a modern shell, or manually run the script |
---|
245 | $0: under such a shell if you do have one." |
---|
246 | fi |
---|
247 | exit 1 |
---|
248 | fi |
---|
249 | fi |
---|
250 | fi |
---|
251 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
252 | export SHELL |
---|
253 | # Unset more variables known to interfere with behavior of common tools. |
---|
254 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
255 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
256 | |
---|
257 | ## --------------------- ## |
---|
258 | ## M4sh Shell Functions. ## |
---|
259 | ## --------------------- ## |
---|
260 | # as_fn_unset VAR |
---|
261 | # --------------- |
---|
262 | # Portably unset VAR. |
---|
263 | as_fn_unset () |
---|
264 | { |
---|
265 | { eval $1=; unset $1;} |
---|
266 | } |
---|
267 | as_unset=as_fn_unset |
---|
268 | |
---|
269 | # as_fn_set_status STATUS |
---|
270 | # ----------------------- |
---|
271 | # Set $? to STATUS, without forking. |
---|
272 | as_fn_set_status () |
---|
273 | { |
---|
274 | return $1 |
---|
275 | } # as_fn_set_status |
---|
276 | |
---|
277 | # as_fn_exit STATUS |
---|
278 | # ----------------- |
---|
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
280 | as_fn_exit () |
---|
281 | { |
---|
282 | set +e |
---|
283 | as_fn_set_status $1 |
---|
284 | exit $1 |
---|
285 | } # as_fn_exit |
---|
286 | |
---|
287 | # as_fn_mkdir_p |
---|
288 | # ------------- |
---|
289 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
290 | as_fn_mkdir_p () |
---|
291 | { |
---|
292 | |
---|
293 | case $as_dir in #( |
---|
294 | -*) as_dir=./$as_dir;; |
---|
295 | esac |
---|
296 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
297 | as_dirs= |
---|
298 | while :; do |
---|
299 | case $as_dir in #( |
---|
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
301 | *) as_qdir=$as_dir;; |
---|
302 | esac |
---|
303 | as_dirs="'$as_qdir' $as_dirs" |
---|
304 | as_dir=`$as_dirname -- "$as_dir" || |
---|
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
307 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
309 | $as_echo X"$as_dir" | |
---|
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
311 | s//\1/ |
---|
312 | q |
---|
313 | } |
---|
314 | /^X\(\/\/\)[^/].*/{ |
---|
315 | s//\1/ |
---|
316 | q |
---|
317 | } |
---|
318 | /^X\(\/\/\)$/{ |
---|
319 | s//\1/ |
---|
320 | q |
---|
321 | } |
---|
322 | /^X\(\/\).*/{ |
---|
323 | s//\1/ |
---|
324 | q |
---|
325 | } |
---|
326 | s/.*/./; q'` |
---|
327 | test -d "$as_dir" && break |
---|
328 | done |
---|
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
331 | |
---|
332 | |
---|
333 | } # as_fn_mkdir_p |
---|
334 | # as_fn_append VAR VALUE |
---|
335 | # ---------------------- |
---|
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
337 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
338 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
339 | # implementations. |
---|
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
341 | eval 'as_fn_append () |
---|
342 | { |
---|
343 | eval $1+=\$2 |
---|
344 | }' |
---|
345 | else |
---|
346 | as_fn_append () |
---|
347 | { |
---|
348 | eval $1=\$$1\$2 |
---|
349 | } |
---|
350 | fi # as_fn_append |
---|
351 | |
---|
352 | # as_fn_arith ARG... |
---|
353 | # ------------------ |
---|
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
356 | # must be portable across $(()) and expr. |
---|
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
358 | eval 'as_fn_arith () |
---|
359 | { |
---|
360 | as_val=$(( $* )) |
---|
361 | }' |
---|
362 | else |
---|
363 | as_fn_arith () |
---|
364 | { |
---|
365 | as_val=`expr "$@" || test $? -eq 1` |
---|
366 | } |
---|
367 | fi # as_fn_arith |
---|
368 | |
---|
369 | |
---|
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
371 | # ---------------------------------------- |
---|
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
374 | # script with STATUS, using 1 if that was 0. |
---|
375 | as_fn_error () |
---|
376 | { |
---|
377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
378 | if test "$4"; then |
---|
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
381 | fi |
---|
382 | $as_echo "$as_me: error: $2" >&2 |
---|
383 | as_fn_exit $as_status |
---|
384 | } # as_fn_error |
---|
385 | |
---|
386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
388 | as_expr=expr |
---|
389 | else |
---|
390 | as_expr=false |
---|
391 | fi |
---|
392 | |
---|
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
394 | as_basename=basename |
---|
395 | else |
---|
396 | as_basename=false |
---|
397 | fi |
---|
398 | |
---|
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
400 | as_dirname=dirname |
---|
401 | else |
---|
402 | as_dirname=false |
---|
403 | fi |
---|
404 | |
---|
405 | as_me=`$as_basename -- "$0" || |
---|
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
407 | X"$0" : 'X\(//\)$' \| \ |
---|
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
409 | $as_echo X/"$0" | |
---|
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
411 | s//\1/ |
---|
412 | q |
---|
413 | } |
---|
414 | /^X\/\(\/\/\)$/{ |
---|
415 | s//\1/ |
---|
416 | q |
---|
417 | } |
---|
418 | /^X\/\(\/\).*/{ |
---|
419 | s//\1/ |
---|
420 | q |
---|
421 | } |
---|
422 | s/.*/./; q'` |
---|
423 | |
---|
424 | # Avoid depending upon Character Ranges. |
---|
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
428 | as_cr_digits='0123456789' |
---|
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
430 | |
---|
431 | |
---|
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
437 | sed -n ' |
---|
438 | p |
---|
439 | /[$]LINENO/= |
---|
440 | ' <$as_myself | |
---|
441 | sed ' |
---|
442 | s/[$]LINENO.*/&-/ |
---|
443 | t lineno |
---|
444 | b |
---|
445 | :lineno |
---|
446 | N |
---|
447 | :loop |
---|
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
449 | t loop |
---|
450 | s/-\n.*// |
---|
451 | ' >$as_me.lineno && |
---|
452 | chmod +x "$as_me.lineno" || |
---|
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
454 | |
---|
455 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
456 | # (the dirname of $[0] is not the place where we might find the |
---|
457 | # original and so on. Autoconf is especially sensitive to this). |
---|
458 | . "./$as_me.lineno" |
---|
459 | # Exit status is that of the last command. |
---|
460 | exit |
---|
461 | } |
---|
462 | |
---|
463 | ECHO_C= ECHO_N= ECHO_T= |
---|
464 | case `echo -n x` in #((((( |
---|
465 | -n*) |
---|
466 | case `echo 'xy\c'` in |
---|
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
468 | xy) ECHO_C='\c';; |
---|
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
470 | ECHO_T=' ';; |
---|
471 | esac;; |
---|
472 | *) |
---|
473 | ECHO_N='-n';; |
---|
474 | esac |
---|
475 | |
---|
476 | rm -f conf$$ conf$$.exe conf$$.file |
---|
477 | if test -d conf$$.dir; then |
---|
478 | rm -f conf$$.dir/conf$$.file |
---|
479 | else |
---|
480 | rm -f conf$$.dir |
---|
481 | mkdir conf$$.dir 2>/dev/null |
---|
482 | fi |
---|
483 | if (echo >conf$$.file) 2>/dev/null; then |
---|
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
485 | as_ln_s='ln -s' |
---|
486 | # ... but there are two gotchas: |
---|
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
489 | # In both cases, we have to default to `cp -p'. |
---|
490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
491 | as_ln_s='cp -p' |
---|
492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
493 | as_ln_s=ln |
---|
494 | else |
---|
495 | as_ln_s='cp -p' |
---|
496 | fi |
---|
497 | else |
---|
498 | as_ln_s='cp -p' |
---|
499 | fi |
---|
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
501 | rmdir conf$$.dir 2>/dev/null |
---|
502 | |
---|
503 | if mkdir -p . 2>/dev/null; then |
---|
504 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
505 | else |
---|
506 | test -d ./-p && rmdir ./-p |
---|
507 | as_mkdir_p=false |
---|
508 | fi |
---|
509 | |
---|
510 | if test -x / >/dev/null 2>&1; then |
---|
511 | as_test_x='test -x' |
---|
512 | else |
---|
513 | if ls -dL / >/dev/null 2>&1; then |
---|
514 | as_ls_L_option=L |
---|
515 | else |
---|
516 | as_ls_L_option= |
---|
517 | fi |
---|
518 | as_test_x=' |
---|
519 | eval sh -c '\'' |
---|
520 | if test -d "$1"; then |
---|
521 | test -d "$1/."; |
---|
522 | else |
---|
523 | case $1 in #( |
---|
524 | -*)set "./$1";; |
---|
525 | esac; |
---|
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
527 | ???[sx]*):;;*)false;;esac;fi |
---|
528 | '\'' sh |
---|
529 | ' |
---|
530 | fi |
---|
531 | as_executable_p=$as_test_x |
---|
532 | |
---|
533 | # Sed expression to map a string onto a valid CPP name. |
---|
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
535 | |
---|
536 | # Sed expression to map a string onto a valid variable name. |
---|
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
538 | |
---|
539 | |
---|
540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
541 | exec 6>&1 |
---|
542 | |
---|
543 | # Name of the host. |
---|
544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
545 | # so uname gets run too. |
---|
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
547 | |
---|
548 | # |
---|
549 | # Initializations. |
---|
550 | # |
---|
551 | ac_default_prefix=/usr/local |
---|
552 | ac_clean_files= |
---|
553 | ac_config_libobj_dir=. |
---|
554 | LIBOBJS= |
---|
555 | cross_compiling=no |
---|
556 | subdirs= |
---|
557 | MFLAGS= |
---|
558 | MAKEFLAGS= |
---|
559 | |
---|
560 | # Identity of this package. |
---|
561 | PACKAGE_NAME='Duchamp' |
---|
562 | PACKAGE_TARNAME='duchamp' |
---|
563 | PACKAGE_VERSION='1.1.11' |
---|
564 | PACKAGE_STRING='Duchamp 1.1.11' |
---|
565 | PACKAGE_BUGREPORT='Matthew.Whiting@csiro.au' |
---|
566 | PACKAGE_URL='' |
---|
567 | |
---|
568 | ac_unique_file="src/duchamp.hh" |
---|
569 | ac_default_prefix=/usr/local |
---|
570 | # Factoring default headers for most tests. |
---|
571 | ac_includes_default="\ |
---|
572 | #include <stdio.h> |
---|
573 | #ifdef HAVE_SYS_TYPES_H |
---|
574 | # include <sys/types.h> |
---|
575 | #endif |
---|
576 | #ifdef HAVE_SYS_STAT_H |
---|
577 | # include <sys/stat.h> |
---|
578 | #endif |
---|
579 | #ifdef STDC_HEADERS |
---|
580 | # include <stdlib.h> |
---|
581 | # include <stddef.h> |
---|
582 | #else |
---|
583 | # ifdef HAVE_STDLIB_H |
---|
584 | # include <stdlib.h> |
---|
585 | # endif |
---|
586 | #endif |
---|
587 | #ifdef HAVE_STRING_H |
---|
588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
589 | # include <memory.h> |
---|
590 | # endif |
---|
591 | # include <string.h> |
---|
592 | #endif |
---|
593 | #ifdef HAVE_STRINGS_H |
---|
594 | # include <strings.h> |
---|
595 | #endif |
---|
596 | #ifdef HAVE_INTTYPES_H |
---|
597 | # include <inttypes.h> |
---|
598 | #endif |
---|
599 | #ifdef HAVE_STDINT_H |
---|
600 | # include <stdint.h> |
---|
601 | #endif |
---|
602 | #ifdef HAVE_UNISTD_H |
---|
603 | # include <unistd.h> |
---|
604 | #endif" |
---|
605 | |
---|
606 | ac_subst_vars='LTLIBOBJS |
---|
607 | WCSLIB |
---|
608 | WCSINC |
---|
609 | CFITSIOLIB |
---|
610 | CFITSIOINC |
---|
611 | PGPLOTLIB |
---|
612 | PGPLOTINC |
---|
613 | LINKER |
---|
614 | X_EXTRA_LIBS |
---|
615 | X_LIBS |
---|
616 | X_PRE_LIBS |
---|
617 | X_CFLAGS |
---|
618 | XMKMF |
---|
619 | LIBOBJS |
---|
620 | POW_LIB |
---|
621 | RANLIB |
---|
622 | EGREP |
---|
623 | GREP |
---|
624 | INSTALL |
---|
625 | LN_S |
---|
626 | ac_ct_F77 |
---|
627 | FFLAGS |
---|
628 | F77 |
---|
629 | CPP |
---|
630 | ac_ct_CC |
---|
631 | CFLAGS |
---|
632 | CC |
---|
633 | OBJEXT |
---|
634 | EXEEXT |
---|
635 | ac_ct_CXX |
---|
636 | CPPFLAGS |
---|
637 | LDFLAGS |
---|
638 | CXXFLAGS |
---|
639 | CXX |
---|
640 | target_alias |
---|
641 | host_alias |
---|
642 | build_alias |
---|
643 | LIBS |
---|
644 | ECHO_T |
---|
645 | ECHO_N |
---|
646 | ECHO_C |
---|
647 | DEFS |
---|
648 | mandir |
---|
649 | localedir |
---|
650 | libdir |
---|
651 | psdir |
---|
652 | pdfdir |
---|
653 | dvidir |
---|
654 | htmldir |
---|
655 | infodir |
---|
656 | docdir |
---|
657 | oldincludedir |
---|
658 | includedir |
---|
659 | localstatedir |
---|
660 | sharedstatedir |
---|
661 | sysconfdir |
---|
662 | datadir |
---|
663 | datarootdir |
---|
664 | libexecdir |
---|
665 | sbindir |
---|
666 | bindir |
---|
667 | program_transform_name |
---|
668 | prefix |
---|
669 | exec_prefix |
---|
670 | PACKAGE_URL |
---|
671 | PACKAGE_BUGREPORT |
---|
672 | PACKAGE_STRING |
---|
673 | PACKAGE_VERSION |
---|
674 | PACKAGE_TARNAME |
---|
675 | PACKAGE_NAME |
---|
676 | PATH_SEPARATOR |
---|
677 | SHELL' |
---|
678 | ac_subst_files='' |
---|
679 | ac_user_opts=' |
---|
680 | enable_option_checking |
---|
681 | with_pgplot |
---|
682 | with_x |
---|
683 | with_cfitsio |
---|
684 | with_wcslib |
---|
685 | ' |
---|
686 | ac_precious_vars='build_alias |
---|
687 | host_alias |
---|
688 | target_alias |
---|
689 | CXX |
---|
690 | CXXFLAGS |
---|
691 | LDFLAGS |
---|
692 | LIBS |
---|
693 | CPPFLAGS |
---|
694 | CCC |
---|
695 | CC |
---|
696 | CFLAGS |
---|
697 | LDFLAGS |
---|
698 | LIBS |
---|
699 | CPPFLAGS |
---|
700 | CPP |
---|
701 | CPPFLAGS |
---|
702 | F77 |
---|
703 | FFLAGS |
---|
704 | LDFLAGS |
---|
705 | LIBS |
---|
706 | XMKMF' |
---|
707 | |
---|
708 | |
---|
709 | # Initialize some variables set by options. |
---|
710 | ac_init_help= |
---|
711 | ac_init_version=false |
---|
712 | ac_unrecognized_opts= |
---|
713 | ac_unrecognized_sep= |
---|
714 | # The variables have the same names as the options, with |
---|
715 | # dashes changed to underlines. |
---|
716 | cache_file=/dev/null |
---|
717 | exec_prefix=NONE |
---|
718 | no_create= |
---|
719 | no_recursion= |
---|
720 | prefix=NONE |
---|
721 | program_prefix=NONE |
---|
722 | program_suffix=NONE |
---|
723 | program_transform_name=s,x,x, |
---|
724 | silent= |
---|
725 | site= |
---|
726 | srcdir= |
---|
727 | verbose= |
---|
728 | x_includes=NONE |
---|
729 | x_libraries=NONE |
---|
730 | |
---|
731 | # Installation directory options. |
---|
732 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
733 | # and all the variables that are supposed to be based on exec_prefix |
---|
734 | # by default will actually change. |
---|
735 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
736 | # (The list follows the same order as the GNU Coding Standards.) |
---|
737 | bindir='${exec_prefix}/bin' |
---|
738 | sbindir='${exec_prefix}/sbin' |
---|
739 | libexecdir='${exec_prefix}/libexec' |
---|
740 | datarootdir='${prefix}/share' |
---|
741 | datadir='${datarootdir}' |
---|
742 | sysconfdir='${prefix}/etc' |
---|
743 | sharedstatedir='${prefix}/com' |
---|
744 | localstatedir='${prefix}/var' |
---|
745 | includedir='${prefix}/include' |
---|
746 | oldincludedir='/usr/include' |
---|
747 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
748 | infodir='${datarootdir}/info' |
---|
749 | htmldir='${docdir}' |
---|
750 | dvidir='${docdir}' |
---|
751 | pdfdir='${docdir}' |
---|
752 | psdir='${docdir}' |
---|
753 | libdir='${exec_prefix}/lib' |
---|
754 | localedir='${datarootdir}/locale' |
---|
755 | mandir='${datarootdir}/man' |
---|
756 | |
---|
757 | ac_prev= |
---|
758 | ac_dashdash= |
---|
759 | for ac_option |
---|
760 | do |
---|
761 | # If the previous option needs an argument, assign it. |
---|
762 | if test -n "$ac_prev"; then |
---|
763 | eval $ac_prev=\$ac_option |
---|
764 | ac_prev= |
---|
765 | continue |
---|
766 | fi |
---|
767 | |
---|
768 | case $ac_option in |
---|
769 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
770 | *=) ac_optarg= ;; |
---|
771 | *) ac_optarg=yes ;; |
---|
772 | esac |
---|
773 | |
---|
774 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
775 | |
---|
776 | case $ac_dashdash$ac_option in |
---|
777 | --) |
---|
778 | ac_dashdash=yes ;; |
---|
779 | |
---|
780 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
781 | ac_prev=bindir ;; |
---|
782 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
783 | bindir=$ac_optarg ;; |
---|
784 | |
---|
785 | -build | --build | --buil | --bui | --bu) |
---|
786 | ac_prev=build_alias ;; |
---|
787 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
788 | build_alias=$ac_optarg ;; |
---|
789 | |
---|
790 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
791 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
792 | ac_prev=cache_file ;; |
---|
793 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
794 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
795 | cache_file=$ac_optarg ;; |
---|
796 | |
---|
797 | --config-cache | -C) |
---|
798 | cache_file=config.cache ;; |
---|
799 | |
---|
800 | -datadir | --datadir | --datadi | --datad) |
---|
801 | ac_prev=datadir ;; |
---|
802 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
803 | datadir=$ac_optarg ;; |
---|
804 | |
---|
805 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
806 | | --dataroo | --dataro | --datar) |
---|
807 | ac_prev=datarootdir ;; |
---|
808 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
809 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
810 | datarootdir=$ac_optarg ;; |
---|
811 | |
---|
812 | -disable-* | --disable-*) |
---|
813 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
814 | # Reject names that are not valid shell variable names. |
---|
815 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
816 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
817 | ac_useropt_orig=$ac_useropt |
---|
818 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
819 | case $ac_user_opts in |
---|
820 | *" |
---|
821 | "enable_$ac_useropt" |
---|
822 | "*) ;; |
---|
823 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
824 | ac_unrecognized_sep=', ';; |
---|
825 | esac |
---|
826 | eval enable_$ac_useropt=no ;; |
---|
827 | |
---|
828 | -docdir | --docdir | --docdi | --doc | --do) |
---|
829 | ac_prev=docdir ;; |
---|
830 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
831 | docdir=$ac_optarg ;; |
---|
832 | |
---|
833 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
834 | ac_prev=dvidir ;; |
---|
835 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
836 | dvidir=$ac_optarg ;; |
---|
837 | |
---|
838 | -enable-* | --enable-*) |
---|
839 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
840 | # Reject names that are not valid shell variable names. |
---|
841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
842 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
843 | ac_useropt_orig=$ac_useropt |
---|
844 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
845 | case $ac_user_opts in |
---|
846 | *" |
---|
847 | "enable_$ac_useropt" |
---|
848 | "*) ;; |
---|
849 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
850 | ac_unrecognized_sep=', ';; |
---|
851 | esac |
---|
852 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
853 | |
---|
854 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
855 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
856 | | --exec | --exe | --ex) |
---|
857 | ac_prev=exec_prefix ;; |
---|
858 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
859 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
860 | | --exec=* | --exe=* | --ex=*) |
---|
861 | exec_prefix=$ac_optarg ;; |
---|
862 | |
---|
863 | -gas | --gas | --ga | --g) |
---|
864 | # Obsolete; use --with-gas. |
---|
865 | with_gas=yes ;; |
---|
866 | |
---|
867 | -help | --help | --hel | --he | -h) |
---|
868 | ac_init_help=long ;; |
---|
869 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
870 | ac_init_help=recursive ;; |
---|
871 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
872 | ac_init_help=short ;; |
---|
873 | |
---|
874 | -host | --host | --hos | --ho) |
---|
875 | ac_prev=host_alias ;; |
---|
876 | -host=* | --host=* | --hos=* | --ho=*) |
---|
877 | host_alias=$ac_optarg ;; |
---|
878 | |
---|
879 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
880 | ac_prev=htmldir ;; |
---|
881 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
882 | | --ht=*) |
---|
883 | htmldir=$ac_optarg ;; |
---|
884 | |
---|
885 | -includedir | --includedir | --includedi | --included | --include \ |
---|
886 | | --includ | --inclu | --incl | --inc) |
---|
887 | ac_prev=includedir ;; |
---|
888 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
889 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
890 | includedir=$ac_optarg ;; |
---|
891 | |
---|
892 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
893 | ac_prev=infodir ;; |
---|
894 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
895 | infodir=$ac_optarg ;; |
---|
896 | |
---|
897 | -libdir | --libdir | --libdi | --libd) |
---|
898 | ac_prev=libdir ;; |
---|
899 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
900 | libdir=$ac_optarg ;; |
---|
901 | |
---|
902 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
903 | | --libexe | --libex | --libe) |
---|
904 | ac_prev=libexecdir ;; |
---|
905 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
906 | | --libexe=* | --libex=* | --libe=*) |
---|
907 | libexecdir=$ac_optarg ;; |
---|
908 | |
---|
909 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
910 | ac_prev=localedir ;; |
---|
911 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
912 | localedir=$ac_optarg ;; |
---|
913 | |
---|
914 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
915 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
916 | ac_prev=localstatedir ;; |
---|
917 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
918 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
919 | localstatedir=$ac_optarg ;; |
---|
920 | |
---|
921 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
922 | ac_prev=mandir ;; |
---|
923 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
924 | mandir=$ac_optarg ;; |
---|
925 | |
---|
926 | -nfp | --nfp | --nf) |
---|
927 | # Obsolete; use --without-fp. |
---|
928 | with_fp=no ;; |
---|
929 | |
---|
930 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
931 | | --no-cr | --no-c | -n) |
---|
932 | no_create=yes ;; |
---|
933 | |
---|
934 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
935 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
936 | no_recursion=yes ;; |
---|
937 | |
---|
938 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
939 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
940 | | --oldin | --oldi | --old | --ol | --o) |
---|
941 | ac_prev=oldincludedir ;; |
---|
942 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
943 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
944 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
945 | oldincludedir=$ac_optarg ;; |
---|
946 | |
---|
947 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
948 | ac_prev=prefix ;; |
---|
949 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
950 | prefix=$ac_optarg ;; |
---|
951 | |
---|
952 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
953 | | --program-pre | --program-pr | --program-p) |
---|
954 | ac_prev=program_prefix ;; |
---|
955 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
956 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
957 | program_prefix=$ac_optarg ;; |
---|
958 | |
---|
959 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
960 | | --program-suf | --program-su | --program-s) |
---|
961 | ac_prev=program_suffix ;; |
---|
962 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
963 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
964 | program_suffix=$ac_optarg ;; |
---|
965 | |
---|
966 | -program-transform-name | --program-transform-name \ |
---|
967 | | --program-transform-nam | --program-transform-na \ |
---|
968 | | --program-transform-n | --program-transform- \ |
---|
969 | | --program-transform | --program-transfor \ |
---|
970 | | --program-transfo | --program-transf \ |
---|
971 | | --program-trans | --program-tran \ |
---|
972 | | --progr-tra | --program-tr | --program-t) |
---|
973 | ac_prev=program_transform_name ;; |
---|
974 | -program-transform-name=* | --program-transform-name=* \ |
---|
975 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
976 | | --program-transform-n=* | --program-transform-=* \ |
---|
977 | | --program-transform=* | --program-transfor=* \ |
---|
978 | | --program-transfo=* | --program-transf=* \ |
---|
979 | | --program-trans=* | --program-tran=* \ |
---|
980 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
981 | program_transform_name=$ac_optarg ;; |
---|
982 | |
---|
983 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
984 | ac_prev=pdfdir ;; |
---|
985 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
986 | pdfdir=$ac_optarg ;; |
---|
987 | |
---|
988 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
989 | ac_prev=psdir ;; |
---|
990 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
991 | psdir=$ac_optarg ;; |
---|
992 | |
---|
993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
994 | | -silent | --silent | --silen | --sile | --sil) |
---|
995 | silent=yes ;; |
---|
996 | |
---|
997 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
998 | ac_prev=sbindir ;; |
---|
999 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1000 | | --sbi=* | --sb=*) |
---|
1001 | sbindir=$ac_optarg ;; |
---|
1002 | |
---|
1003 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1004 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1005 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1006 | | --sha | --sh) |
---|
1007 | ac_prev=sharedstatedir ;; |
---|
1008 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1009 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1010 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1011 | | --sha=* | --sh=*) |
---|
1012 | sharedstatedir=$ac_optarg ;; |
---|
1013 | |
---|
1014 | -site | --site | --sit) |
---|
1015 | ac_prev=site ;; |
---|
1016 | -site=* | --site=* | --sit=*) |
---|
1017 | site=$ac_optarg ;; |
---|
1018 | |
---|
1019 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1020 | ac_prev=srcdir ;; |
---|
1021 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1022 | srcdir=$ac_optarg ;; |
---|
1023 | |
---|
1024 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1025 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1026 | ac_prev=sysconfdir ;; |
---|
1027 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1028 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1029 | sysconfdir=$ac_optarg ;; |
---|
1030 | |
---|
1031 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1032 | ac_prev=target_alias ;; |
---|
1033 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1034 | target_alias=$ac_optarg ;; |
---|
1035 | |
---|
1036 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1037 | verbose=yes ;; |
---|
1038 | |
---|
1039 | -version | --version | --versio | --versi | --vers | -V) |
---|
1040 | ac_init_version=: ;; |
---|
1041 | |
---|
1042 | -with-* | --with-*) |
---|
1043 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1044 | # Reject names that are not valid shell variable names. |
---|
1045 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1046 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1047 | ac_useropt_orig=$ac_useropt |
---|
1048 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1049 | case $ac_user_opts in |
---|
1050 | *" |
---|
1051 | "with_$ac_useropt" |
---|
1052 | "*) ;; |
---|
1053 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1054 | ac_unrecognized_sep=', ';; |
---|
1055 | esac |
---|
1056 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1057 | |
---|
1058 | -without-* | --without-*) |
---|
1059 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1060 | # Reject names that are not valid shell variable names. |
---|
1061 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1062 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1063 | ac_useropt_orig=$ac_useropt |
---|
1064 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1065 | case $ac_user_opts in |
---|
1066 | *" |
---|
1067 | "with_$ac_useropt" |
---|
1068 | "*) ;; |
---|
1069 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1070 | ac_unrecognized_sep=', ';; |
---|
1071 | esac |
---|
1072 | eval with_$ac_useropt=no ;; |
---|
1073 | |
---|
1074 | --x) |
---|
1075 | # Obsolete; use --with-x. |
---|
1076 | with_x=yes ;; |
---|
1077 | |
---|
1078 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1079 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1080 | ac_prev=x_includes ;; |
---|
1081 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1082 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1083 | x_includes=$ac_optarg ;; |
---|
1084 | |
---|
1085 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1086 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1087 | ac_prev=x_libraries ;; |
---|
1088 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1089 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1090 | x_libraries=$ac_optarg ;; |
---|
1091 | |
---|
1092 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1093 | Try \`$0 --help' for more information" |
---|
1094 | ;; |
---|
1095 | |
---|
1096 | *=*) |
---|
1097 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1098 | # Reject names that are not valid shell variable names. |
---|
1099 | case $ac_envvar in #( |
---|
1100 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1101 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1102 | esac |
---|
1103 | eval $ac_envvar=\$ac_optarg |
---|
1104 | export $ac_envvar ;; |
---|
1105 | |
---|
1106 | *) |
---|
1107 | # FIXME: should be removed in autoconf 3.0. |
---|
1108 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1109 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1110 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1111 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1112 | ;; |
---|
1113 | |
---|
1114 | esac |
---|
1115 | done |
---|
1116 | |
---|
1117 | if test -n "$ac_prev"; then |
---|
1118 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1119 | as_fn_error $? "missing argument to $ac_option" |
---|
1120 | fi |
---|
1121 | |
---|
1122 | if test -n "$ac_unrecognized_opts"; then |
---|
1123 | case $enable_option_checking in |
---|
1124 | no) ;; |
---|
1125 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1126 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1127 | esac |
---|
1128 | fi |
---|
1129 | |
---|
1130 | # Check all directory arguments for consistency. |
---|
1131 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1132 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1133 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1134 | libdir localedir mandir |
---|
1135 | do |
---|
1136 | eval ac_val=\$$ac_var |
---|
1137 | # Remove trailing slashes. |
---|
1138 | case $ac_val in |
---|
1139 | */ ) |
---|
1140 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1141 | eval $ac_var=\$ac_val;; |
---|
1142 | esac |
---|
1143 | # Be sure to have absolute directory names. |
---|
1144 | case $ac_val in |
---|
1145 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1146 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1147 | esac |
---|
1148 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1149 | done |
---|
1150 | |
---|
1151 | # There might be people who depend on the old broken behavior: `$host' |
---|
1152 | # used to hold the argument of --host etc. |
---|
1153 | # FIXME: To remove some day. |
---|
1154 | build=$build_alias |
---|
1155 | host=$host_alias |
---|
1156 | target=$target_alias |
---|
1157 | |
---|
1158 | # FIXME: To remove some day. |
---|
1159 | if test "x$host_alias" != x; then |
---|
1160 | if test "x$build_alias" = x; then |
---|
1161 | cross_compiling=maybe |
---|
1162 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1163 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1164 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1165 | cross_compiling=yes |
---|
1166 | fi |
---|
1167 | fi |
---|
1168 | |
---|
1169 | ac_tool_prefix= |
---|
1170 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1171 | |
---|
1172 | test "$silent" = yes && exec 6>/dev/null |
---|
1173 | |
---|
1174 | |
---|
1175 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1176 | ac_ls_di=`ls -di .` && |
---|
1177 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1178 | as_fn_error $? "working directory cannot be determined" |
---|
1179 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1180 | as_fn_error $? "pwd does not report name of working directory" |
---|
1181 | |
---|
1182 | |
---|
1183 | # Find the source files, if location was not specified. |
---|
1184 | if test -z "$srcdir"; then |
---|
1185 | ac_srcdir_defaulted=yes |
---|
1186 | # Try the directory containing this script, then the parent directory. |
---|
1187 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1188 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1189 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1190 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1191 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1192 | $as_echo X"$as_myself" | |
---|
1193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1194 | s//\1/ |
---|
1195 | q |
---|
1196 | } |
---|
1197 | /^X\(\/\/\)[^/].*/{ |
---|
1198 | s//\1/ |
---|
1199 | q |
---|
1200 | } |
---|
1201 | /^X\(\/\/\)$/{ |
---|
1202 | s//\1/ |
---|
1203 | q |
---|
1204 | } |
---|
1205 | /^X\(\/\).*/{ |
---|
1206 | s//\1/ |
---|
1207 | q |
---|
1208 | } |
---|
1209 | s/.*/./; q'` |
---|
1210 | srcdir=$ac_confdir |
---|
1211 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1212 | srcdir=.. |
---|
1213 | fi |
---|
1214 | else |
---|
1215 | ac_srcdir_defaulted=no |
---|
1216 | fi |
---|
1217 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1218 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1219 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1220 | fi |
---|
1221 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1222 | ac_abs_confdir=`( |
---|
1223 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1224 | pwd)` |
---|
1225 | # When building in place, set srcdir=. |
---|
1226 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1227 | srcdir=. |
---|
1228 | fi |
---|
1229 | # Remove unnecessary trailing slashes from srcdir. |
---|
1230 | # Double slashes in file names in object file debugging info |
---|
1231 | # mess up M-x gdb in Emacs. |
---|
1232 | case $srcdir in |
---|
1233 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1234 | esac |
---|
1235 | for ac_var in $ac_precious_vars; do |
---|
1236 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1237 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1238 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1239 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1240 | done |
---|
1241 | |
---|
1242 | # |
---|
1243 | # Report the --help message. |
---|
1244 | # |
---|
1245 | if test "$ac_init_help" = "long"; then |
---|
1246 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1247 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1248 | cat <<_ACEOF |
---|
1249 | \`configure' configures Duchamp 1.1.11 to adapt to many kinds of systems. |
---|
1250 | |
---|
1251 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1252 | |
---|
1253 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1254 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1255 | |
---|
1256 | Defaults for the options are specified in brackets. |
---|
1257 | |
---|
1258 | Configuration: |
---|
1259 | -h, --help display this help and exit |
---|
1260 | --help=short display options specific to this package |
---|
1261 | --help=recursive display the short help of all the included packages |
---|
1262 | -V, --version display version information and exit |
---|
1263 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1264 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1265 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1266 | -n, --no-create do not create output files |
---|
1267 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1268 | |
---|
1269 | Installation directories: |
---|
1270 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1271 | [$ac_default_prefix] |
---|
1272 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1273 | [PREFIX] |
---|
1274 | |
---|
1275 | By default, \`make install' will install all the files in |
---|
1276 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1277 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1278 | for instance \`--prefix=\$HOME'. |
---|
1279 | |
---|
1280 | For better control, use the options below. |
---|
1281 | |
---|
1282 | Fine tuning of the installation directories: |
---|
1283 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1284 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1285 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1286 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1287 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1288 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1289 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1290 | --includedir=DIR C header files [PREFIX/include] |
---|
1291 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1292 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1293 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1294 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1295 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1296 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1297 | --docdir=DIR documentation root [DATAROOTDIR/doc/duchamp] |
---|
1298 | --htmldir=DIR html documentation [DOCDIR] |
---|
1299 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1300 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1301 | --psdir=DIR ps documentation [DOCDIR] |
---|
1302 | _ACEOF |
---|
1303 | |
---|
1304 | cat <<\_ACEOF |
---|
1305 | |
---|
1306 | X features: |
---|
1307 | --x-includes=DIR X include files are in DIR |
---|
1308 | --x-libraries=DIR X library files are in DIR |
---|
1309 | _ACEOF |
---|
1310 | fi |
---|
1311 | |
---|
1312 | if test -n "$ac_init_help"; then |
---|
1313 | case $ac_init_help in |
---|
1314 | short | recursive ) echo "Configuration of Duchamp 1.1.11:";; |
---|
1315 | esac |
---|
1316 | cat <<\_ACEOF |
---|
1317 | |
---|
1318 | Optional Packages: |
---|
1319 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1320 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1321 | |
---|
1322 | --with-pgplot=no Compile without PGPLOT graphics capabilities. |
---|
1323 | --without-pgplot Compile without PGPLOT graphics capabilities. |
---|
1324 | --with-pgplot=<dir> Compile with PGPLOT graphics capabilities, using the |
---|
1325 | directory <dir> to specify the PGPLOT library., |
---|
1326 | |
---|
1327 | --with-x use the X Window System |
---|
1328 | --with-cfitsio=<dir> The CFITSIO library and include files are in |
---|
1329 | directory <dir>. |
---|
1330 | --with-wcslib=<dir> The WCSLIB library and include files are in |
---|
1331 | directory <dir>. |
---|
1332 | |
---|
1333 | Some influential environment variables: |
---|
1334 | CXX C++ compiler command |
---|
1335 | CXXFLAGS C++ compiler flags |
---|
1336 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1337 | nonstandard directory <lib dir> |
---|
1338 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1339 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1340 | you have headers in a nonstandard directory <include dir> |
---|
1341 | CC C compiler command |
---|
1342 | CFLAGS C compiler flags |
---|
1343 | CPP C preprocessor |
---|
1344 | F77 Fortran 77 compiler command |
---|
1345 | FFLAGS Fortran 77 compiler flags |
---|
1346 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1347 | |
---|
1348 | Use these variables to override the choices made by `configure' or to help |
---|
1349 | it to find libraries and programs with nonstandard names/locations. |
---|
1350 | |
---|
1351 | Report bugs to <Matthew.Whiting@csiro.au>. |
---|
1352 | _ACEOF |
---|
1353 | ac_status=$? |
---|
1354 | fi |
---|
1355 | |
---|
1356 | if test "$ac_init_help" = "recursive"; then |
---|
1357 | # If there are subdirs, report their specific --help. |
---|
1358 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1359 | test -d "$ac_dir" || |
---|
1360 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1361 | continue |
---|
1362 | ac_builddir=. |
---|
1363 | |
---|
1364 | case "$ac_dir" in |
---|
1365 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1366 | *) |
---|
1367 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1368 | # A ".." for each directory in $ac_dir_suffix. |
---|
1369 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1370 | case $ac_top_builddir_sub in |
---|
1371 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1372 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1373 | esac ;; |
---|
1374 | esac |
---|
1375 | ac_abs_top_builddir=$ac_pwd |
---|
1376 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1377 | # for backward compatibility: |
---|
1378 | ac_top_builddir=$ac_top_build_prefix |
---|
1379 | |
---|
1380 | case $srcdir in |
---|
1381 | .) # We are building in place. |
---|
1382 | ac_srcdir=. |
---|
1383 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1384 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1385 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1386 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1387 | ac_top_srcdir=$srcdir |
---|
1388 | ac_abs_top_srcdir=$srcdir ;; |
---|
1389 | *) # Relative name. |
---|
1390 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1391 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1392 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1393 | esac |
---|
1394 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1395 | |
---|
1396 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1397 | # Check for guested configure. |
---|
1398 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1399 | echo && |
---|
1400 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1401 | elif test -f "$ac_srcdir/configure"; then |
---|
1402 | echo && |
---|
1403 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1404 | else |
---|
1405 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1406 | fi || ac_status=$? |
---|
1407 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1408 | done |
---|
1409 | fi |
---|
1410 | |
---|
1411 | test -n "$ac_init_help" && exit $ac_status |
---|
1412 | if $ac_init_version; then |
---|
1413 | cat <<\_ACEOF |
---|
1414 | Duchamp configure 1.1.11 |
---|
1415 | generated by GNU Autoconf 2.68 |
---|
1416 | |
---|
1417 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1418 | This configure script is free software; the Free Software Foundation |
---|
1419 | gives unlimited permission to copy, distribute and modify it. |
---|
1420 | _ACEOF |
---|
1421 | exit |
---|
1422 | fi |
---|
1423 | |
---|
1424 | ## ------------------------ ## |
---|
1425 | ## Autoconf initialization. ## |
---|
1426 | ## ------------------------ ## |
---|
1427 | |
---|
1428 | # ac_fn_cxx_try_compile LINENO |
---|
1429 | # ---------------------------- |
---|
1430 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1431 | ac_fn_cxx_try_compile () |
---|
1432 | { |
---|
1433 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1434 | rm -f conftest.$ac_objext |
---|
1435 | if { { ac_try="$ac_compile" |
---|
1436 | case "(($ac_try" in |
---|
1437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1438 | *) ac_try_echo=$ac_try;; |
---|
1439 | esac |
---|
1440 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1441 | $as_echo "$ac_try_echo"; } >&5 |
---|
1442 | (eval "$ac_compile") 2>conftest.err |
---|
1443 | ac_status=$? |
---|
1444 | if test -s conftest.err; then |
---|
1445 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1446 | cat conftest.er1 >&5 |
---|
1447 | mv -f conftest.er1 conftest.err |
---|
1448 | fi |
---|
1449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1450 | test $ac_status = 0; } && { |
---|
1451 | test -z "$ac_cxx_werror_flag" || |
---|
1452 | test ! -s conftest.err |
---|
1453 | } && test -s conftest.$ac_objext; then : |
---|
1454 | ac_retval=0 |
---|
1455 | else |
---|
1456 | $as_echo "$as_me: failed program was:" >&5 |
---|
1457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1458 | |
---|
1459 | ac_retval=1 |
---|
1460 | fi |
---|
1461 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1462 | as_fn_set_status $ac_retval |
---|
1463 | |
---|
1464 | } # ac_fn_cxx_try_compile |
---|
1465 | |
---|
1466 | # ac_fn_c_try_compile LINENO |
---|
1467 | # -------------------------- |
---|
1468 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1469 | ac_fn_c_try_compile () |
---|
1470 | { |
---|
1471 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1472 | rm -f conftest.$ac_objext |
---|
1473 | if { { ac_try="$ac_compile" |
---|
1474 | case "(($ac_try" in |
---|
1475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1476 | *) ac_try_echo=$ac_try;; |
---|
1477 | esac |
---|
1478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1479 | $as_echo "$ac_try_echo"; } >&5 |
---|
1480 | (eval "$ac_compile") 2>conftest.err |
---|
1481 | ac_status=$? |
---|
1482 | if test -s conftest.err; then |
---|
1483 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1484 | cat conftest.er1 >&5 |
---|
1485 | mv -f conftest.er1 conftest.err |
---|
1486 | fi |
---|
1487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1488 | test $ac_status = 0; } && { |
---|
1489 | test -z "$ac_c_werror_flag" || |
---|
1490 | test ! -s conftest.err |
---|
1491 | } && test -s conftest.$ac_objext; then : |
---|
1492 | ac_retval=0 |
---|
1493 | else |
---|
1494 | $as_echo "$as_me: failed program was:" >&5 |
---|
1495 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1496 | |
---|
1497 | ac_retval=1 |
---|
1498 | fi |
---|
1499 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1500 | as_fn_set_status $ac_retval |
---|
1501 | |
---|
1502 | } # ac_fn_c_try_compile |
---|
1503 | |
---|
1504 | # ac_fn_c_try_cpp LINENO |
---|
1505 | # ---------------------- |
---|
1506 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1507 | ac_fn_c_try_cpp () |
---|
1508 | { |
---|
1509 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1510 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1511 | case "(($ac_try" in |
---|
1512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1513 | *) ac_try_echo=$ac_try;; |
---|
1514 | esac |
---|
1515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1516 | $as_echo "$ac_try_echo"; } >&5 |
---|
1517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1518 | ac_status=$? |
---|
1519 | if test -s conftest.err; then |
---|
1520 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1521 | cat conftest.er1 >&5 |
---|
1522 | mv -f conftest.er1 conftest.err |
---|
1523 | fi |
---|
1524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1525 | test $ac_status = 0; } > conftest.i && { |
---|
1526 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1527 | test ! -s conftest.err |
---|
1528 | }; then : |
---|
1529 | ac_retval=0 |
---|
1530 | else |
---|
1531 | $as_echo "$as_me: failed program was:" >&5 |
---|
1532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1533 | |
---|
1534 | ac_retval=1 |
---|
1535 | fi |
---|
1536 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1537 | as_fn_set_status $ac_retval |
---|
1538 | |
---|
1539 | } # ac_fn_c_try_cpp |
---|
1540 | |
---|
1541 | # ac_fn_f77_try_compile LINENO |
---|
1542 | # ---------------------------- |
---|
1543 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1544 | ac_fn_f77_try_compile () |
---|
1545 | { |
---|
1546 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1547 | rm -f conftest.$ac_objext |
---|
1548 | if { { ac_try="$ac_compile" |
---|
1549 | case "(($ac_try" in |
---|
1550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1551 | *) ac_try_echo=$ac_try;; |
---|
1552 | esac |
---|
1553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1554 | $as_echo "$ac_try_echo"; } >&5 |
---|
1555 | (eval "$ac_compile") 2>conftest.err |
---|
1556 | ac_status=$? |
---|
1557 | if test -s conftest.err; then |
---|
1558 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1559 | cat conftest.er1 >&5 |
---|
1560 | mv -f conftest.er1 conftest.err |
---|
1561 | fi |
---|
1562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1563 | test $ac_status = 0; } && { |
---|
1564 | test -z "$ac_f77_werror_flag" || |
---|
1565 | test ! -s conftest.err |
---|
1566 | } && test -s conftest.$ac_objext; then : |
---|
1567 | ac_retval=0 |
---|
1568 | else |
---|
1569 | $as_echo "$as_me: failed program was:" >&5 |
---|
1570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1571 | |
---|
1572 | ac_retval=1 |
---|
1573 | fi |
---|
1574 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1575 | as_fn_set_status $ac_retval |
---|
1576 | |
---|
1577 | } # ac_fn_f77_try_compile |
---|
1578 | |
---|
1579 | # ac_fn_c_try_link LINENO |
---|
1580 | # ----------------------- |
---|
1581 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1582 | ac_fn_c_try_link () |
---|
1583 | { |
---|
1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1585 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1586 | if { { ac_try="$ac_link" |
---|
1587 | case "(($ac_try" in |
---|
1588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1589 | *) ac_try_echo=$ac_try;; |
---|
1590 | esac |
---|
1591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1592 | $as_echo "$ac_try_echo"; } >&5 |
---|
1593 | (eval "$ac_link") 2>conftest.err |
---|
1594 | ac_status=$? |
---|
1595 | if test -s conftest.err; then |
---|
1596 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1597 | cat conftest.er1 >&5 |
---|
1598 | mv -f conftest.er1 conftest.err |
---|
1599 | fi |
---|
1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1601 | test $ac_status = 0; } && { |
---|
1602 | test -z "$ac_c_werror_flag" || |
---|
1603 | test ! -s conftest.err |
---|
1604 | } && test -s conftest$ac_exeext && { |
---|
1605 | test "$cross_compiling" = yes || |
---|
1606 | $as_test_x conftest$ac_exeext |
---|
1607 | }; then : |
---|
1608 | ac_retval=0 |
---|
1609 | else |
---|
1610 | $as_echo "$as_me: failed program was:" >&5 |
---|
1611 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1612 | |
---|
1613 | ac_retval=1 |
---|
1614 | fi |
---|
1615 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1616 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1617 | # interfere with the next link command; also delete a directory that is |
---|
1618 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1619 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1620 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1621 | as_fn_set_status $ac_retval |
---|
1622 | |
---|
1623 | } # ac_fn_c_try_link |
---|
1624 | |
---|
1625 | # ac_fn_c_try_run LINENO |
---|
1626 | # ---------------------- |
---|
1627 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1628 | # that executables *can* be run. |
---|
1629 | ac_fn_c_try_run () |
---|
1630 | { |
---|
1631 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1632 | if { { ac_try="$ac_link" |
---|
1633 | case "(($ac_try" in |
---|
1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1635 | *) ac_try_echo=$ac_try;; |
---|
1636 | esac |
---|
1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1638 | $as_echo "$ac_try_echo"; } >&5 |
---|
1639 | (eval "$ac_link") 2>&5 |
---|
1640 | ac_status=$? |
---|
1641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1642 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1643 | { { case "(($ac_try" in |
---|
1644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1645 | *) ac_try_echo=$ac_try;; |
---|
1646 | esac |
---|
1647 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1648 | $as_echo "$ac_try_echo"; } >&5 |
---|
1649 | (eval "$ac_try") 2>&5 |
---|
1650 | ac_status=$? |
---|
1651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1652 | test $ac_status = 0; }; }; then : |
---|
1653 | ac_retval=0 |
---|
1654 | else |
---|
1655 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1656 | $as_echo "$as_me: failed program was:" >&5 |
---|
1657 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1658 | |
---|
1659 | ac_retval=$ac_status |
---|
1660 | fi |
---|
1661 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1662 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1663 | as_fn_set_status $ac_retval |
---|
1664 | |
---|
1665 | } # ac_fn_c_try_run |
---|
1666 | |
---|
1667 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1668 | # ------------------------------------------------------- |
---|
1669 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1670 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1671 | # accordingly. |
---|
1672 | ac_fn_c_check_header_mongrel () |
---|
1673 | { |
---|
1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1675 | if eval \${$3+:} false; then : |
---|
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1677 | $as_echo_n "checking for $2... " >&6; } |
---|
1678 | if eval \${$3+:} false; then : |
---|
1679 | $as_echo_n "(cached) " >&6 |
---|
1680 | fi |
---|
1681 | eval ac_res=\$$3 |
---|
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1683 | $as_echo "$ac_res" >&6; } |
---|
1684 | else |
---|
1685 | # Is the header compilable? |
---|
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1687 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1689 | /* end confdefs.h. */ |
---|
1690 | $4 |
---|
1691 | #include <$2> |
---|
1692 | _ACEOF |
---|
1693 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1694 | ac_header_compiler=yes |
---|
1695 | else |
---|
1696 | ac_header_compiler=no |
---|
1697 | fi |
---|
1698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1700 | $as_echo "$ac_header_compiler" >&6; } |
---|
1701 | |
---|
1702 | # Is the header present? |
---|
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1704 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1706 | /* end confdefs.h. */ |
---|
1707 | #include <$2> |
---|
1708 | _ACEOF |
---|
1709 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1710 | ac_header_preproc=yes |
---|
1711 | else |
---|
1712 | ac_header_preproc=no |
---|
1713 | fi |
---|
1714 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1716 | $as_echo "$ac_header_preproc" >&6; } |
---|
1717 | |
---|
1718 | # So? What about this header? |
---|
1719 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1720 | yes:no: ) |
---|
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1722 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1724 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1725 | ;; |
---|
1726 | no:yes:* ) |
---|
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1728 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1730 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1732 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1734 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1736 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1737 | ( $as_echo "## --------------------------------------- ## |
---|
1738 | ## Report this to Matthew.Whiting@csiro.au ## |
---|
1739 | ## --------------------------------------- ##" |
---|
1740 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1741 | ;; |
---|
1742 | esac |
---|
1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1744 | $as_echo_n "checking for $2... " >&6; } |
---|
1745 | if eval \${$3+:} false; then : |
---|
1746 | $as_echo_n "(cached) " >&6 |
---|
1747 | else |
---|
1748 | eval "$3=\$ac_header_compiler" |
---|
1749 | fi |
---|
1750 | eval ac_res=\$$3 |
---|
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1752 | $as_echo "$ac_res" >&6; } |
---|
1753 | fi |
---|
1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1755 | |
---|
1756 | } # ac_fn_c_check_header_mongrel |
---|
1757 | |
---|
1758 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1759 | # ------------------------------------------------------- |
---|
1760 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1761 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1762 | ac_fn_c_check_header_compile () |
---|
1763 | { |
---|
1764 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1766 | $as_echo_n "checking for $2... " >&6; } |
---|
1767 | if eval \${$3+:} false; then : |
---|
1768 | $as_echo_n "(cached) " >&6 |
---|
1769 | else |
---|
1770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1771 | /* end confdefs.h. */ |
---|
1772 | $4 |
---|
1773 | #include <$2> |
---|
1774 | _ACEOF |
---|
1775 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1776 | eval "$3=yes" |
---|
1777 | else |
---|
1778 | eval "$3=no" |
---|
1779 | fi |
---|
1780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1781 | fi |
---|
1782 | eval ac_res=\$$3 |
---|
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1784 | $as_echo "$ac_res" >&6; } |
---|
1785 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1786 | |
---|
1787 | } # ac_fn_c_check_header_compile |
---|
1788 | |
---|
1789 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1790 | # ------------------------------------------- |
---|
1791 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1792 | # variable VAR accordingly. |
---|
1793 | ac_fn_c_check_type () |
---|
1794 | { |
---|
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1797 | $as_echo_n "checking for $2... " >&6; } |
---|
1798 | if eval \${$3+:} false; then : |
---|
1799 | $as_echo_n "(cached) " >&6 |
---|
1800 | else |
---|
1801 | eval "$3=no" |
---|
1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1803 | /* end confdefs.h. */ |
---|
1804 | $4 |
---|
1805 | int |
---|
1806 | main () |
---|
1807 | { |
---|
1808 | if (sizeof ($2)) |
---|
1809 | return 0; |
---|
1810 | ; |
---|
1811 | return 0; |
---|
1812 | } |
---|
1813 | _ACEOF |
---|
1814 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1816 | /* end confdefs.h. */ |
---|
1817 | $4 |
---|
1818 | int |
---|
1819 | main () |
---|
1820 | { |
---|
1821 | if (sizeof (($2))) |
---|
1822 | return 0; |
---|
1823 | ; |
---|
1824 | return 0; |
---|
1825 | } |
---|
1826 | _ACEOF |
---|
1827 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1828 | |
---|
1829 | else |
---|
1830 | eval "$3=yes" |
---|
1831 | fi |
---|
1832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1833 | fi |
---|
1834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1835 | fi |
---|
1836 | eval ac_res=\$$3 |
---|
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1838 | $as_echo "$ac_res" >&6; } |
---|
1839 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1840 | |
---|
1841 | } # ac_fn_c_check_type |
---|
1842 | |
---|
1843 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1844 | # ---------------------------------- |
---|
1845 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1846 | ac_fn_c_check_func () |
---|
1847 | { |
---|
1848 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1850 | $as_echo_n "checking for $2... " >&6; } |
---|
1851 | if eval \${$3+:} false; then : |
---|
1852 | $as_echo_n "(cached) " >&6 |
---|
1853 | else |
---|
1854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1855 | /* end confdefs.h. */ |
---|
1856 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1858 | #define $2 innocuous_$2 |
---|
1859 | |
---|
1860 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1861 | which can conflict with char $2 (); below. |
---|
1862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1863 | <limits.h> exists even on freestanding compilers. */ |
---|
1864 | |
---|
1865 | #ifdef __STDC__ |
---|
1866 | # include <limits.h> |
---|
1867 | #else |
---|
1868 | # include <assert.h> |
---|
1869 | #endif |
---|
1870 | |
---|
1871 | #undef $2 |
---|
1872 | |
---|
1873 | /* Override any GCC internal prototype to avoid an error. |
---|
1874 | Use char because int might match the return type of a GCC |
---|
1875 | builtin and then its argument prototype would still apply. */ |
---|
1876 | #ifdef __cplusplus |
---|
1877 | extern "C" |
---|
1878 | #endif |
---|
1879 | char $2 (); |
---|
1880 | /* The GNU C library defines this for functions which it implements |
---|
1881 | to always fail with ENOSYS. Some functions are actually named |
---|
1882 | something starting with __ and the normal name is an alias. */ |
---|
1883 | #if defined __stub_$2 || defined __stub___$2 |
---|
1884 | choke me |
---|
1885 | #endif |
---|
1886 | |
---|
1887 | int |
---|
1888 | main () |
---|
1889 | { |
---|
1890 | return $2 (); |
---|
1891 | ; |
---|
1892 | return 0; |
---|
1893 | } |
---|
1894 | _ACEOF |
---|
1895 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1896 | eval "$3=yes" |
---|
1897 | else |
---|
1898 | eval "$3=no" |
---|
1899 | fi |
---|
1900 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1901 | conftest$ac_exeext conftest.$ac_ext |
---|
1902 | fi |
---|
1903 | eval ac_res=\$$3 |
---|
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1905 | $as_echo "$ac_res" >&6; } |
---|
1906 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1907 | |
---|
1908 | } # ac_fn_c_check_func |
---|
1909 | |
---|
1910 | # ac_fn_f77_try_link LINENO |
---|
1911 | # ------------------------- |
---|
1912 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1913 | ac_fn_f77_try_link () |
---|
1914 | { |
---|
1915 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1916 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1917 | if { { ac_try="$ac_link" |
---|
1918 | case "(($ac_try" in |
---|
1919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1920 | *) ac_try_echo=$ac_try;; |
---|
1921 | esac |
---|
1922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1923 | $as_echo "$ac_try_echo"; } >&5 |
---|
1924 | (eval "$ac_link") 2>conftest.err |
---|
1925 | ac_status=$? |
---|
1926 | if test -s conftest.err; then |
---|
1927 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1928 | cat conftest.er1 >&5 |
---|
1929 | mv -f conftest.er1 conftest.err |
---|
1930 | fi |
---|
1931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1932 | test $ac_status = 0; } && { |
---|
1933 | test -z "$ac_f77_werror_flag" || |
---|
1934 | test ! -s conftest.err |
---|
1935 | } && test -s conftest$ac_exeext && { |
---|
1936 | test "$cross_compiling" = yes || |
---|
1937 | $as_test_x conftest$ac_exeext |
---|
1938 | }; then : |
---|
1939 | ac_retval=0 |
---|
1940 | else |
---|
1941 | $as_echo "$as_me: failed program was:" >&5 |
---|
1942 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1943 | |
---|
1944 | ac_retval=1 |
---|
1945 | fi |
---|
1946 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1947 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1948 | # interfere with the next link command; also delete a directory that is |
---|
1949 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1950 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1951 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1952 | as_fn_set_status $ac_retval |
---|
1953 | |
---|
1954 | } # ac_fn_f77_try_link |
---|
1955 | cat >config.log <<_ACEOF |
---|
1956 | This file contains any messages produced by compilers while |
---|
1957 | running configure, to aid debugging if configure makes a mistake. |
---|
1958 | |
---|
1959 | It was created by Duchamp $as_me 1.1.11, which was |
---|
1960 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
1961 | |
---|
1962 | $ $0 $@ |
---|
1963 | |
---|
1964 | _ACEOF |
---|
1965 | exec 5>>config.log |
---|
1966 | { |
---|
1967 | cat <<_ASUNAME |
---|
1968 | ## --------- ## |
---|
1969 | ## Platform. ## |
---|
1970 | ## --------- ## |
---|
1971 | |
---|
1972 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1973 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1974 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1975 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1976 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1977 | |
---|
1978 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1979 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1980 | |
---|
1981 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1982 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1983 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1984 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1985 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1986 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1987 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1988 | |
---|
1989 | _ASUNAME |
---|
1990 | |
---|
1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1992 | for as_dir in $PATH |
---|
1993 | do |
---|
1994 | IFS=$as_save_IFS |
---|
1995 | test -z "$as_dir" && as_dir=. |
---|
1996 | $as_echo "PATH: $as_dir" |
---|
1997 | done |
---|
1998 | IFS=$as_save_IFS |
---|
1999 | |
---|
2000 | } >&5 |
---|
2001 | |
---|
2002 | cat >&5 <<_ACEOF |
---|
2003 | |
---|
2004 | |
---|
2005 | ## ----------- ## |
---|
2006 | ## Core tests. ## |
---|
2007 | ## ----------- ## |
---|
2008 | |
---|
2009 | _ACEOF |
---|
2010 | |
---|
2011 | |
---|
2012 | # Keep a trace of the command line. |
---|
2013 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2014 | # Strip out --silent because we don't want to record it for future runs. |
---|
2015 | # Also quote any args containing shell meta-characters. |
---|
2016 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2017 | ac_configure_args= |
---|
2018 | ac_configure_args0= |
---|
2019 | ac_configure_args1= |
---|
2020 | ac_must_keep_next=false |
---|
2021 | for ac_pass in 1 2 |
---|
2022 | do |
---|
2023 | for ac_arg |
---|
2024 | do |
---|
2025 | case $ac_arg in |
---|
2026 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2028 | | -silent | --silent | --silen | --sile | --sil) |
---|
2029 | continue ;; |
---|
2030 | *\'*) |
---|
2031 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2032 | esac |
---|
2033 | case $ac_pass in |
---|
2034 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2035 | 2) |
---|
2036 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2037 | if test $ac_must_keep_next = true; then |
---|
2038 | ac_must_keep_next=false # Got value, back to normal. |
---|
2039 | else |
---|
2040 | case $ac_arg in |
---|
2041 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2042 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2043 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2044 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2045 | case "$ac_configure_args0 " in |
---|
2046 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2047 | esac |
---|
2048 | ;; |
---|
2049 | -* ) ac_must_keep_next=true ;; |
---|
2050 | esac |
---|
2051 | fi |
---|
2052 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2053 | ;; |
---|
2054 | esac |
---|
2055 | done |
---|
2056 | done |
---|
2057 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2058 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2059 | |
---|
2060 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2061 | # config.log. We remove comments because anyway the quotes in there |
---|
2062 | # would cause problems or look ugly. |
---|
2063 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2064 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2065 | trap 'exit_status=$? |
---|
2066 | # Save into config.log some information that might help in debugging. |
---|
2067 | { |
---|
2068 | echo |
---|
2069 | |
---|
2070 | $as_echo "## ---------------- ## |
---|
2071 | ## Cache variables. ## |
---|
2072 | ## ---------------- ##" |
---|
2073 | echo |
---|
2074 | # The following way of writing the cache mishandles newlines in values, |
---|
2075 | ( |
---|
2076 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2077 | eval ac_val=\$$ac_var |
---|
2078 | case $ac_val in #( |
---|
2079 | *${as_nl}*) |
---|
2080 | case $ac_var in #( |
---|
2081 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2082 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2083 | esac |
---|
2084 | case $ac_var in #( |
---|
2085 | _ | IFS | as_nl) ;; #( |
---|
2086 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2087 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2088 | esac ;; |
---|
2089 | esac |
---|
2090 | done |
---|
2091 | (set) 2>&1 | |
---|
2092 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2093 | *${as_nl}ac_space=\ *) |
---|
2094 | sed -n \ |
---|
2095 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2096 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2097 | ;; #( |
---|
2098 | *) |
---|
2099 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2100 | ;; |
---|
2101 | esac | |
---|
2102 | sort |
---|
2103 | ) |
---|
2104 | echo |
---|
2105 | |
---|
2106 | $as_echo "## ----------------- ## |
---|
2107 | ## Output variables. ## |
---|
2108 | ## ----------------- ##" |
---|
2109 | echo |
---|
2110 | for ac_var in $ac_subst_vars |
---|
2111 | do |
---|
2112 | eval ac_val=\$$ac_var |
---|
2113 | case $ac_val in |
---|
2114 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2115 | esac |
---|
2116 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2117 | done | sort |
---|
2118 | echo |
---|
2119 | |
---|
2120 | if test -n "$ac_subst_files"; then |
---|
2121 | $as_echo "## ------------------- ## |
---|
2122 | ## File substitutions. ## |
---|
2123 | ## ------------------- ##" |
---|
2124 | echo |
---|
2125 | for ac_var in $ac_subst_files |
---|
2126 | do |
---|
2127 | eval ac_val=\$$ac_var |
---|
2128 | case $ac_val in |
---|
2129 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2130 | esac |
---|
2131 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2132 | done | sort |
---|
2133 | echo |
---|
2134 | fi |
---|
2135 | |
---|
2136 | if test -s confdefs.h; then |
---|
2137 | $as_echo "## ----------- ## |
---|
2138 | ## confdefs.h. ## |
---|
2139 | ## ----------- ##" |
---|
2140 | echo |
---|
2141 | cat confdefs.h |
---|
2142 | echo |
---|
2143 | fi |
---|
2144 | test "$ac_signal" != 0 && |
---|
2145 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2146 | $as_echo "$as_me: exit $exit_status" |
---|
2147 | } >&5 |
---|
2148 | rm -f core *.core core.conftest.* && |
---|
2149 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2150 | exit $exit_status |
---|
2151 | ' 0 |
---|
2152 | for ac_signal in 1 2 13 15; do |
---|
2153 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2154 | done |
---|
2155 | ac_signal=0 |
---|
2156 | |
---|
2157 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2158 | rm -f -r conftest* confdefs.h |
---|
2159 | |
---|
2160 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2161 | |
---|
2162 | # Predefined preprocessor variables. |
---|
2163 | |
---|
2164 | cat >>confdefs.h <<_ACEOF |
---|
2165 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2166 | _ACEOF |
---|
2167 | |
---|
2168 | cat >>confdefs.h <<_ACEOF |
---|
2169 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2170 | _ACEOF |
---|
2171 | |
---|
2172 | cat >>confdefs.h <<_ACEOF |
---|
2173 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2174 | _ACEOF |
---|
2175 | |
---|
2176 | cat >>confdefs.h <<_ACEOF |
---|
2177 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2178 | _ACEOF |
---|
2179 | |
---|
2180 | cat >>confdefs.h <<_ACEOF |
---|
2181 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2182 | _ACEOF |
---|
2183 | |
---|
2184 | cat >>confdefs.h <<_ACEOF |
---|
2185 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2186 | _ACEOF |
---|
2187 | |
---|
2188 | |
---|
2189 | # Let the site file select an alternate cache file if it wants to. |
---|
2190 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2191 | ac_site_file1=NONE |
---|
2192 | ac_site_file2=NONE |
---|
2193 | if test -n "$CONFIG_SITE"; then |
---|
2194 | # We do not want a PATH search for config.site. |
---|
2195 | case $CONFIG_SITE in #(( |
---|
2196 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2197 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2198 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2199 | esac |
---|
2200 | elif test "x$prefix" != xNONE; then |
---|
2201 | ac_site_file1=$prefix/share/config.site |
---|
2202 | ac_site_file2=$prefix/etc/config.site |
---|
2203 | else |
---|
2204 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2205 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2206 | fi |
---|
2207 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2208 | do |
---|
2209 | test "x$ac_site_file" = xNONE && continue |
---|
2210 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2212 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2213 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2214 | . "$ac_site_file" \ |
---|
2215 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2217 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2218 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2219 | fi |
---|
2220 | done |
---|
2221 | |
---|
2222 | if test -r "$cache_file"; then |
---|
2223 | # Some versions of bash will fail to source /dev/null (special files |
---|
2224 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2225 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2227 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2228 | case $cache_file in |
---|
2229 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2230 | *) . "./$cache_file";; |
---|
2231 | esac |
---|
2232 | fi |
---|
2233 | else |
---|
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2235 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2236 | >$cache_file |
---|
2237 | fi |
---|
2238 | |
---|
2239 | # Check that the precious variables saved in the cache have kept the same |
---|
2240 | # value. |
---|
2241 | ac_cache_corrupted=false |
---|
2242 | for ac_var in $ac_precious_vars; do |
---|
2243 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2244 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2245 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2246 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2247 | case $ac_old_set,$ac_new_set in |
---|
2248 | set,) |
---|
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2250 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2251 | ac_cache_corrupted=: ;; |
---|
2252 | ,set) |
---|
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2254 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2255 | ac_cache_corrupted=: ;; |
---|
2256 | ,);; |
---|
2257 | *) |
---|
2258 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2259 | # differences in whitespace do not lead to failure. |
---|
2260 | ac_old_val_w=`echo x $ac_old_val` |
---|
2261 | ac_new_val_w=`echo x $ac_new_val` |
---|
2262 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2264 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2265 | ac_cache_corrupted=: |
---|
2266 | else |
---|
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2268 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2269 | eval $ac_var=\$ac_old_val |
---|
2270 | fi |
---|
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2272 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2274 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2275 | fi;; |
---|
2276 | esac |
---|
2277 | # Pass precious variables to config.status. |
---|
2278 | if test "$ac_new_set" = set; then |
---|
2279 | case $ac_new_val in |
---|
2280 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2281 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2282 | esac |
---|
2283 | case " $ac_configure_args " in |
---|
2284 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2285 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2286 | esac |
---|
2287 | fi |
---|
2288 | done |
---|
2289 | if $ac_cache_corrupted; then |
---|
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2291 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2293 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2294 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2295 | fi |
---|
2296 | ## -------------------- ## |
---|
2297 | ## Main body of script. ## |
---|
2298 | ## -------------------- ## |
---|
2299 | |
---|
2300 | ac_ext=c |
---|
2301 | ac_cpp='$CPP $CPPFLAGS' |
---|
2302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2305 | |
---|
2306 | |
---|
2307 | |
---|
2308 | ac_config_headers="$ac_config_headers src/config.h" |
---|
2309 | |
---|
2310 | |
---|
2311 | |
---|
2312 | # Checks for programs. |
---|
2313 | ac_ext=cpp |
---|
2314 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2318 | if test -z "$CXX"; then |
---|
2319 | if test -n "$CCC"; then |
---|
2320 | CXX=$CCC |
---|
2321 | else |
---|
2322 | if test -n "$ac_tool_prefix"; then |
---|
2323 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
2324 | do |
---|
2325 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2326 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2328 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2329 | if ${ac_cv_prog_CXX+:} false; then : |
---|
2330 | $as_echo_n "(cached) " >&6 |
---|
2331 | else |
---|
2332 | if test -n "$CXX"; then |
---|
2333 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
2334 | else |
---|
2335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2336 | for as_dir in $PATH |
---|
2337 | do |
---|
2338 | IFS=$as_save_IFS |
---|
2339 | test -z "$as_dir" && as_dir=. |
---|
2340 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2342 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
2343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2344 | break 2 |
---|
2345 | fi |
---|
2346 | done |
---|
2347 | done |
---|
2348 | IFS=$as_save_IFS |
---|
2349 | |
---|
2350 | fi |
---|
2351 | fi |
---|
2352 | CXX=$ac_cv_prog_CXX |
---|
2353 | if test -n "$CXX"; then |
---|
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
2355 | $as_echo "$CXX" >&6; } |
---|
2356 | else |
---|
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2358 | $as_echo "no" >&6; } |
---|
2359 | fi |
---|
2360 | |
---|
2361 | |
---|
2362 | test -n "$CXX" && break |
---|
2363 | done |
---|
2364 | fi |
---|
2365 | if test -z "$CXX"; then |
---|
2366 | ac_ct_CXX=$CXX |
---|
2367 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
2368 | do |
---|
2369 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2370 | set dummy $ac_prog; ac_word=$2 |
---|
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2372 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2373 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
2374 | $as_echo_n "(cached) " >&6 |
---|
2375 | else |
---|
2376 | if test -n "$ac_ct_CXX"; then |
---|
2377 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
2378 | else |
---|
2379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2380 | for as_dir in $PATH |
---|
2381 | do |
---|
2382 | IFS=$as_save_IFS |
---|
2383 | test -z "$as_dir" && as_dir=. |
---|
2384 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2386 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
2387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2388 | break 2 |
---|
2389 | fi |
---|
2390 | done |
---|
2391 | done |
---|
2392 | IFS=$as_save_IFS |
---|
2393 | |
---|
2394 | fi |
---|
2395 | fi |
---|
2396 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
2397 | if test -n "$ac_ct_CXX"; then |
---|
2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
2399 | $as_echo "$ac_ct_CXX" >&6; } |
---|
2400 | else |
---|
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2402 | $as_echo "no" >&6; } |
---|
2403 | fi |
---|
2404 | |
---|
2405 | |
---|
2406 | test -n "$ac_ct_CXX" && break |
---|
2407 | done |
---|
2408 | |
---|
2409 | if test "x$ac_ct_CXX" = x; then |
---|
2410 | CXX="g++" |
---|
2411 | else |
---|
2412 | case $cross_compiling:$ac_tool_warned in |
---|
2413 | yes:) |
---|
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2416 | ac_tool_warned=yes ;; |
---|
2417 | esac |
---|
2418 | CXX=$ac_ct_CXX |
---|
2419 | fi |
---|
2420 | fi |
---|
2421 | |
---|
2422 | fi |
---|
2423 | fi |
---|
2424 | # Provide some information about the compiler. |
---|
2425 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
2426 | set X $ac_compile |
---|
2427 | ac_compiler=$2 |
---|
2428 | for ac_option in --version -v -V -qversion; do |
---|
2429 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2430 | case "(($ac_try" in |
---|
2431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2432 | *) ac_try_echo=$ac_try;; |
---|
2433 | esac |
---|
2434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2435 | $as_echo "$ac_try_echo"; } >&5 |
---|
2436 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2437 | ac_status=$? |
---|
2438 | if test -s conftest.err; then |
---|
2439 | sed '10a\ |
---|
2440 | ... rest of stderr output deleted ... |
---|
2441 | 10q' conftest.err >conftest.er1 |
---|
2442 | cat conftest.er1 >&5 |
---|
2443 | fi |
---|
2444 | rm -f conftest.er1 conftest.err |
---|
2445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2446 | test $ac_status = 0; } |
---|
2447 | done |
---|
2448 | |
---|
2449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2450 | /* end confdefs.h. */ |
---|
2451 | |
---|
2452 | int |
---|
2453 | main () |
---|
2454 | { |
---|
2455 | |
---|
2456 | ; |
---|
2457 | return 0; |
---|
2458 | } |
---|
2459 | _ACEOF |
---|
2460 | ac_clean_files_save=$ac_clean_files |
---|
2461 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2462 | # Try to create an executable without -o first, disregard a.out. |
---|
2463 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2464 | # of exeext. |
---|
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
2466 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
2467 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2468 | |
---|
2469 | # The possible output files: |
---|
2470 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2471 | |
---|
2472 | ac_rmfiles= |
---|
2473 | for ac_file in $ac_files |
---|
2474 | do |
---|
2475 | case $ac_file in |
---|
2476 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2477 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2478 | esac |
---|
2479 | done |
---|
2480 | rm -f $ac_rmfiles |
---|
2481 | |
---|
2482 | if { { ac_try="$ac_link_default" |
---|
2483 | case "(($ac_try" in |
---|
2484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2485 | *) ac_try_echo=$ac_try;; |
---|
2486 | esac |
---|
2487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2488 | $as_echo "$ac_try_echo"; } >&5 |
---|
2489 | (eval "$ac_link_default") 2>&5 |
---|
2490 | ac_status=$? |
---|
2491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2492 | test $ac_status = 0; }; then : |
---|
2493 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2494 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2495 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2496 | # so that the user can short-circuit this test for compilers unknown to |
---|
2497 | # Autoconf. |
---|
2498 | for ac_file in $ac_files '' |
---|
2499 | do |
---|
2500 | test -f "$ac_file" || continue |
---|
2501 | case $ac_file in |
---|
2502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2503 | ;; |
---|
2504 | [ab].out ) |
---|
2505 | # We found the default executable, but exeext='' is most |
---|
2506 | # certainly right. |
---|
2507 | break;; |
---|
2508 | *.* ) |
---|
2509 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2510 | then :; else |
---|
2511 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2512 | fi |
---|
2513 | # We set ac_cv_exeext here because the later test for it is not |
---|
2514 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2515 | # argument, so we may need to know it at that point already. |
---|
2516 | # Even if this section looks crufty: it has the advantage of |
---|
2517 | # actually working. |
---|
2518 | break;; |
---|
2519 | * ) |
---|
2520 | break;; |
---|
2521 | esac |
---|
2522 | done |
---|
2523 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2524 | |
---|
2525 | else |
---|
2526 | ac_file='' |
---|
2527 | fi |
---|
2528 | if test -z "$ac_file"; then : |
---|
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2530 | $as_echo "no" >&6; } |
---|
2531 | $as_echo "$as_me: failed program was:" >&5 |
---|
2532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2533 | |
---|
2534 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2535 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2536 | as_fn_error 77 "C++ compiler cannot create executables |
---|
2537 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2538 | else |
---|
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2540 | $as_echo "yes" >&6; } |
---|
2541 | fi |
---|
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
2543 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2545 | $as_echo "$ac_file" >&6; } |
---|
2546 | ac_exeext=$ac_cv_exeext |
---|
2547 | |
---|
2548 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2549 | ac_clean_files=$ac_clean_files_save |
---|
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2551 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2552 | if { { ac_try="$ac_link" |
---|
2553 | case "(($ac_try" in |
---|
2554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2555 | *) ac_try_echo=$ac_try;; |
---|
2556 | esac |
---|
2557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2558 | $as_echo "$ac_try_echo"; } >&5 |
---|
2559 | (eval "$ac_link") 2>&5 |
---|
2560 | ac_status=$? |
---|
2561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2562 | test $ac_status = 0; }; then : |
---|
2563 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2564 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2565 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2566 | # `rm'. |
---|
2567 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2568 | test -f "$ac_file" || continue |
---|
2569 | case $ac_file in |
---|
2570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2571 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2572 | break;; |
---|
2573 | * ) break;; |
---|
2574 | esac |
---|
2575 | done |
---|
2576 | else |
---|
2577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2579 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
2580 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2581 | fi |
---|
2582 | rm -f conftest conftest$ac_cv_exeext |
---|
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2584 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2585 | |
---|
2586 | rm -f conftest.$ac_ext |
---|
2587 | EXEEXT=$ac_cv_exeext |
---|
2588 | ac_exeext=$EXEEXT |
---|
2589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2590 | /* end confdefs.h. */ |
---|
2591 | #include <stdio.h> |
---|
2592 | int |
---|
2593 | main () |
---|
2594 | { |
---|
2595 | FILE *f = fopen ("conftest.out", "w"); |
---|
2596 | return ferror (f) || fclose (f) != 0; |
---|
2597 | |
---|
2598 | ; |
---|
2599 | return 0; |
---|
2600 | } |
---|
2601 | _ACEOF |
---|
2602 | ac_clean_files="$ac_clean_files conftest.out" |
---|
2603 | # Check that the compiler produces executables we can run. If not, either |
---|
2604 | # the compiler is broken, or we cross compile. |
---|
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
2606 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2607 | if test "$cross_compiling" != yes; then |
---|
2608 | { { ac_try="$ac_link" |
---|
2609 | case "(($ac_try" in |
---|
2610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2611 | *) ac_try_echo=$ac_try;; |
---|
2612 | esac |
---|
2613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2614 | $as_echo "$ac_try_echo"; } >&5 |
---|
2615 | (eval "$ac_link") 2>&5 |
---|
2616 | ac_status=$? |
---|
2617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2618 | test $ac_status = 0; } |
---|
2619 | if { ac_try='./conftest$ac_cv_exeext' |
---|
2620 | { { case "(($ac_try" in |
---|
2621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2622 | *) ac_try_echo=$ac_try;; |
---|
2623 | esac |
---|
2624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2625 | $as_echo "$ac_try_echo"; } >&5 |
---|
2626 | (eval "$ac_try") 2>&5 |
---|
2627 | ac_status=$? |
---|
2628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2629 | test $ac_status = 0; }; }; then |
---|
2630 | cross_compiling=no |
---|
2631 | else |
---|
2632 | if test "$cross_compiling" = maybe; then |
---|
2633 | cross_compiling=yes |
---|
2634 | else |
---|
2635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2637 | as_fn_error $? "cannot run C++ compiled programs. |
---|
2638 | If you meant to cross compile, use \`--host'. |
---|
2639 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2640 | fi |
---|
2641 | fi |
---|
2642 | fi |
---|
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
2644 | $as_echo "$cross_compiling" >&6; } |
---|
2645 | |
---|
2646 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
2647 | ac_clean_files=$ac_clean_files_save |
---|
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
2649 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
2650 | if ${ac_cv_objext+:} false; then : |
---|
2651 | $as_echo_n "(cached) " >&6 |
---|
2652 | else |
---|
2653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2654 | /* end confdefs.h. */ |
---|
2655 | |
---|
2656 | int |
---|
2657 | main () |
---|
2658 | { |
---|
2659 | |
---|
2660 | ; |
---|
2661 | return 0; |
---|
2662 | } |
---|
2663 | _ACEOF |
---|
2664 | rm -f conftest.o conftest.obj |
---|
2665 | if { { ac_try="$ac_compile" |
---|
2666 | case "(($ac_try" in |
---|
2667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2668 | *) ac_try_echo=$ac_try;; |
---|
2669 | esac |
---|
2670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2671 | $as_echo "$ac_try_echo"; } >&5 |
---|
2672 | (eval "$ac_compile") 2>&5 |
---|
2673 | ac_status=$? |
---|
2674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2675 | test $ac_status = 0; }; then : |
---|
2676 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
2677 | test -f "$ac_file" || continue; |
---|
2678 | case $ac_file in |
---|
2679 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
2680 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2681 | break;; |
---|
2682 | esac |
---|
2683 | done |
---|
2684 | else |
---|
2685 | $as_echo "$as_me: failed program was:" >&5 |
---|
2686 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2687 | |
---|
2688 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2690 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
2691 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2692 | fi |
---|
2693 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2694 | fi |
---|
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
2696 | $as_echo "$ac_cv_objext" >&6; } |
---|
2697 | OBJEXT=$ac_cv_objext |
---|
2698 | ac_objext=$OBJEXT |
---|
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
2700 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
2701 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
2702 | $as_echo_n "(cached) " >&6 |
---|
2703 | else |
---|
2704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2705 | /* end confdefs.h. */ |
---|
2706 | |
---|
2707 | int |
---|
2708 | main () |
---|
2709 | { |
---|
2710 | #ifndef __GNUC__ |
---|
2711 | choke me |
---|
2712 | #endif |
---|
2713 | |
---|
2714 | ; |
---|
2715 | return 0; |
---|
2716 | } |
---|
2717 | _ACEOF |
---|
2718 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2719 | ac_compiler_gnu=yes |
---|
2720 | else |
---|
2721 | ac_compiler_gnu=no |
---|
2722 | fi |
---|
2723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2724 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2725 | |
---|
2726 | fi |
---|
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2728 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
2729 | if test $ac_compiler_gnu = yes; then |
---|
2730 | GXX=yes |
---|
2731 | else |
---|
2732 | GXX= |
---|
2733 | fi |
---|
2734 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2735 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
2737 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
2738 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
2739 | $as_echo_n "(cached) " >&6 |
---|
2740 | else |
---|
2741 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
2742 | ac_cxx_werror_flag=yes |
---|
2743 | ac_cv_prog_cxx_g=no |
---|
2744 | CXXFLAGS="-g" |
---|
2745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2746 | /* end confdefs.h. */ |
---|
2747 | |
---|
2748 | int |
---|
2749 | main () |
---|
2750 | { |
---|
2751 | |
---|
2752 | ; |
---|
2753 | return 0; |
---|
2754 | } |
---|
2755 | _ACEOF |
---|
2756 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2757 | ac_cv_prog_cxx_g=yes |
---|
2758 | else |
---|
2759 | CXXFLAGS="" |
---|
2760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2761 | /* end confdefs.h. */ |
---|
2762 | |
---|
2763 | int |
---|
2764 | main () |
---|
2765 | { |
---|
2766 | |
---|
2767 | ; |
---|
2768 | return 0; |
---|
2769 | } |
---|
2770 | _ACEOF |
---|
2771 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2772 | |
---|
2773 | else |
---|
2774 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
2775 | CXXFLAGS="-g" |
---|
2776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2777 | /* end confdefs.h. */ |
---|
2778 | |
---|
2779 | int |
---|
2780 | main () |
---|
2781 | { |
---|
2782 | |
---|
2783 | ; |
---|
2784 | return 0; |
---|
2785 | } |
---|
2786 | _ACEOF |
---|
2787 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2788 | ac_cv_prog_cxx_g=yes |
---|
2789 | fi |
---|
2790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2791 | fi |
---|
2792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2793 | fi |
---|
2794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2795 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
2796 | fi |
---|
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
2798 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
2799 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2800 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2801 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2802 | if test "$GXX" = yes; then |
---|
2803 | CXXFLAGS="-g -O2" |
---|
2804 | else |
---|
2805 | CXXFLAGS="-g" |
---|
2806 | fi |
---|
2807 | else |
---|
2808 | if test "$GXX" = yes; then |
---|
2809 | CXXFLAGS="-O2" |
---|
2810 | else |
---|
2811 | CXXFLAGS= |
---|
2812 | fi |
---|
2813 | fi |
---|
2814 | ac_ext=c |
---|
2815 | ac_cpp='$CPP $CPPFLAGS' |
---|
2816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2819 | |
---|
2820 | ac_ext=c |
---|
2821 | ac_cpp='$CPP $CPPFLAGS' |
---|
2822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2825 | if test -n "$ac_tool_prefix"; then |
---|
2826 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2827 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2829 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2830 | if ${ac_cv_prog_CC+:} false; then : |
---|
2831 | $as_echo_n "(cached) " >&6 |
---|
2832 | else |
---|
2833 | if test -n "$CC"; then |
---|
2834 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2835 | else |
---|
2836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2837 | for as_dir in $PATH |
---|
2838 | do |
---|
2839 | IFS=$as_save_IFS |
---|
2840 | test -z "$as_dir" && as_dir=. |
---|
2841 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2843 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2845 | break 2 |
---|
2846 | fi |
---|
2847 | done |
---|
2848 | done |
---|
2849 | IFS=$as_save_IFS |
---|
2850 | |
---|
2851 | fi |
---|
2852 | fi |
---|
2853 | CC=$ac_cv_prog_CC |
---|
2854 | if test -n "$CC"; then |
---|
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2856 | $as_echo "$CC" >&6; } |
---|
2857 | else |
---|
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2859 | $as_echo "no" >&6; } |
---|
2860 | fi |
---|
2861 | |
---|
2862 | |
---|
2863 | fi |
---|
2864 | if test -z "$ac_cv_prog_CC"; then |
---|
2865 | ac_ct_CC=$CC |
---|
2866 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2867 | set dummy gcc; ac_word=$2 |
---|
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2869 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2870 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2871 | $as_echo_n "(cached) " >&6 |
---|
2872 | else |
---|
2873 | if test -n "$ac_ct_CC"; then |
---|
2874 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2875 | else |
---|
2876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2877 | for as_dir in $PATH |
---|
2878 | do |
---|
2879 | IFS=$as_save_IFS |
---|
2880 | test -z "$as_dir" && as_dir=. |
---|
2881 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2883 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2885 | break 2 |
---|
2886 | fi |
---|
2887 | done |
---|
2888 | done |
---|
2889 | IFS=$as_save_IFS |
---|
2890 | |
---|
2891 | fi |
---|
2892 | fi |
---|
2893 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2894 | if test -n "$ac_ct_CC"; then |
---|
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2896 | $as_echo "$ac_ct_CC" >&6; } |
---|
2897 | else |
---|
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2899 | $as_echo "no" >&6; } |
---|
2900 | fi |
---|
2901 | |
---|
2902 | if test "x$ac_ct_CC" = x; then |
---|
2903 | CC="" |
---|
2904 | else |
---|
2905 | case $cross_compiling:$ac_tool_warned in |
---|
2906 | yes:) |
---|
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2908 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2909 | ac_tool_warned=yes ;; |
---|
2910 | esac |
---|
2911 | CC=$ac_ct_CC |
---|
2912 | fi |
---|
2913 | else |
---|
2914 | CC="$ac_cv_prog_CC" |
---|
2915 | fi |
---|
2916 | |
---|
2917 | if test -z "$CC"; then |
---|
2918 | if test -n "$ac_tool_prefix"; then |
---|
2919 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2920 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2922 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2923 | if ${ac_cv_prog_CC+:} false; then : |
---|
2924 | $as_echo_n "(cached) " >&6 |
---|
2925 | else |
---|
2926 | if test -n "$CC"; then |
---|
2927 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2928 | else |
---|
2929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2930 | for as_dir in $PATH |
---|
2931 | do |
---|
2932 | IFS=$as_save_IFS |
---|
2933 | test -z "$as_dir" && as_dir=. |
---|
2934 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2936 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2938 | break 2 |
---|
2939 | fi |
---|
2940 | done |
---|
2941 | done |
---|
2942 | IFS=$as_save_IFS |
---|
2943 | |
---|
2944 | fi |
---|
2945 | fi |
---|
2946 | CC=$ac_cv_prog_CC |
---|
2947 | if test -n "$CC"; then |
---|
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2949 | $as_echo "$CC" >&6; } |
---|
2950 | else |
---|
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2952 | $as_echo "no" >&6; } |
---|
2953 | fi |
---|
2954 | |
---|
2955 | |
---|
2956 | fi |
---|
2957 | fi |
---|
2958 | if test -z "$CC"; then |
---|
2959 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2960 | set dummy cc; ac_word=$2 |
---|
2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2962 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2963 | if ${ac_cv_prog_CC+:} false; then : |
---|
2964 | $as_echo_n "(cached) " >&6 |
---|
2965 | else |
---|
2966 | if test -n "$CC"; then |
---|
2967 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2968 | else |
---|
2969 | ac_prog_rejected=no |
---|
2970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2971 | for as_dir in $PATH |
---|
2972 | do |
---|
2973 | IFS=$as_save_IFS |
---|
2974 | test -z "$as_dir" && as_dir=. |
---|
2975 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2977 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2978 | ac_prog_rejected=yes |
---|
2979 | continue |
---|
2980 | fi |
---|
2981 | ac_cv_prog_CC="cc" |
---|
2982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2983 | break 2 |
---|
2984 | fi |
---|
2985 | done |
---|
2986 | done |
---|
2987 | IFS=$as_save_IFS |
---|
2988 | |
---|
2989 | if test $ac_prog_rejected = yes; then |
---|
2990 | # We found a bogon in the path, so make sure we never use it. |
---|
2991 | set dummy $ac_cv_prog_CC |
---|
2992 | shift |
---|
2993 | if test $# != 0; then |
---|
2994 | # We chose a different compiler from the bogus one. |
---|
2995 | # However, it has the same basename, so the bogon will be chosen |
---|
2996 | # first if we set CC to just the basename; use the full file name. |
---|
2997 | shift |
---|
2998 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2999 | fi |
---|
3000 | fi |
---|
3001 | fi |
---|
3002 | fi |
---|
3003 | CC=$ac_cv_prog_CC |
---|
3004 | if test -n "$CC"; then |
---|
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3006 | $as_echo "$CC" >&6; } |
---|
3007 | else |
---|
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3009 | $as_echo "no" >&6; } |
---|
3010 | fi |
---|
3011 | |
---|
3012 | |
---|
3013 | fi |
---|
3014 | if test -z "$CC"; then |
---|
3015 | if test -n "$ac_tool_prefix"; then |
---|
3016 | for ac_prog in cl.exe |
---|
3017 | do |
---|
3018 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3019 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3021 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3022 | if ${ac_cv_prog_CC+:} false; then : |
---|
3023 | $as_echo_n "(cached) " >&6 |
---|
3024 | else |
---|
3025 | if test -n "$CC"; then |
---|
3026 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3027 | else |
---|
3028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3029 | for as_dir in $PATH |
---|
3030 | do |
---|
3031 | IFS=$as_save_IFS |
---|
3032 | test -z "$as_dir" && as_dir=. |
---|
3033 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3035 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3037 | break 2 |
---|
3038 | fi |
---|
3039 | done |
---|
3040 | done |
---|
3041 | IFS=$as_save_IFS |
---|
3042 | |
---|
3043 | fi |
---|
3044 | fi |
---|
3045 | CC=$ac_cv_prog_CC |
---|
3046 | if test -n "$CC"; then |
---|
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3048 | $as_echo "$CC" >&6; } |
---|
3049 | else |
---|
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3051 | $as_echo "no" >&6; } |
---|
3052 | fi |
---|
3053 | |
---|
3054 | |
---|
3055 | test -n "$CC" && break |
---|
3056 | done |
---|
3057 | fi |
---|
3058 | if test -z "$CC"; then |
---|
3059 | ac_ct_CC=$CC |
---|
3060 | for ac_prog in cl.exe |
---|
3061 | do |
---|
3062 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3063 | set dummy $ac_prog; ac_word=$2 |
---|
3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3065 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3066 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3067 | $as_echo_n "(cached) " >&6 |
---|
3068 | else |
---|
3069 | if test -n "$ac_ct_CC"; then |
---|
3070 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3071 | else |
---|
3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3073 | for as_dir in $PATH |
---|
3074 | do |
---|
3075 | IFS=$as_save_IFS |
---|
3076 | test -z "$as_dir" && as_dir=. |
---|
3077 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3079 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3081 | break 2 |
---|
3082 | fi |
---|
3083 | done |
---|
3084 | done |
---|
3085 | IFS=$as_save_IFS |
---|
3086 | |
---|
3087 | fi |
---|
3088 | fi |
---|
3089 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3090 | if test -n "$ac_ct_CC"; then |
---|
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3092 | $as_echo "$ac_ct_CC" >&6; } |
---|
3093 | else |
---|
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3095 | $as_echo "no" >&6; } |
---|
3096 | fi |
---|
3097 | |
---|
3098 | |
---|
3099 | test -n "$ac_ct_CC" && break |
---|
3100 | done |
---|
3101 | |
---|
3102 | if test "x$ac_ct_CC" = x; then |
---|
3103 | CC="" |
---|
3104 | else |
---|
3105 | case $cross_compiling:$ac_tool_warned in |
---|
3106 | yes:) |
---|
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3108 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3109 | ac_tool_warned=yes ;; |
---|
3110 | esac |
---|
3111 | CC=$ac_ct_CC |
---|
3112 | fi |
---|
3113 | fi |
---|
3114 | |
---|
3115 | fi |
---|
3116 | |
---|
3117 | |
---|
3118 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3119 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3120 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3121 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3122 | |
---|
3123 | # Provide some information about the compiler. |
---|
3124 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3125 | set X $ac_compile |
---|
3126 | ac_compiler=$2 |
---|
3127 | for ac_option in --version -v -V -qversion; do |
---|
3128 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3129 | case "(($ac_try" in |
---|
3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3131 | *) ac_try_echo=$ac_try;; |
---|
3132 | esac |
---|
3133 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3134 | $as_echo "$ac_try_echo"; } >&5 |
---|
3135 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3136 | ac_status=$? |
---|
3137 | if test -s conftest.err; then |
---|
3138 | sed '10a\ |
---|
3139 | ... rest of stderr output deleted ... |
---|
3140 | 10q' conftest.err >conftest.er1 |
---|
3141 | cat conftest.er1 >&5 |
---|
3142 | fi |
---|
3143 | rm -f conftest.er1 conftest.err |
---|
3144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3145 | test $ac_status = 0; } |
---|
3146 | done |
---|
3147 | |
---|
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3149 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3150 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3151 | $as_echo_n "(cached) " >&6 |
---|
3152 | else |
---|
3153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3154 | /* end confdefs.h. */ |
---|
3155 | |
---|
3156 | int |
---|
3157 | main () |
---|
3158 | { |
---|
3159 | #ifndef __GNUC__ |
---|
3160 | choke me |
---|
3161 | #endif |
---|
3162 | |
---|
3163 | ; |
---|
3164 | return 0; |
---|
3165 | } |
---|
3166 | _ACEOF |
---|
3167 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3168 | ac_compiler_gnu=yes |
---|
3169 | else |
---|
3170 | ac_compiler_gnu=no |
---|
3171 | fi |
---|
3172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3173 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3174 | |
---|
3175 | fi |
---|
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3177 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3178 | if test $ac_compiler_gnu = yes; then |
---|
3179 | GCC=yes |
---|
3180 | else |
---|
3181 | GCC= |
---|
3182 | fi |
---|
3183 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3184 | ac_save_CFLAGS=$CFLAGS |
---|
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3186 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3187 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3188 | $as_echo_n "(cached) " >&6 |
---|
3189 | else |
---|
3190 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3191 | ac_c_werror_flag=yes |
---|
3192 | ac_cv_prog_cc_g=no |
---|
3193 | CFLAGS="-g" |
---|
3194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3195 | /* end confdefs.h. */ |
---|
3196 | |
---|
3197 | int |
---|
3198 | main () |
---|
3199 | { |
---|
3200 | |
---|
3201 | ; |
---|
3202 | return 0; |
---|
3203 | } |
---|
3204 | _ACEOF |
---|
3205 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3206 | ac_cv_prog_cc_g=yes |
---|
3207 | else |
---|
3208 | CFLAGS="" |
---|
3209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3210 | /* end confdefs.h. */ |
---|
3211 | |
---|
3212 | int |
---|
3213 | main () |
---|
3214 | { |
---|
3215 | |
---|
3216 | ; |
---|
3217 | return 0; |
---|
3218 | } |
---|
3219 | _ACEOF |
---|
3220 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3221 | |
---|
3222 | else |
---|
3223 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3224 | CFLAGS="-g" |
---|
3225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3226 | /* end confdefs.h. */ |
---|
3227 | |
---|
3228 | int |
---|
3229 | main () |
---|
3230 | { |
---|
3231 | |
---|
3232 | ; |
---|
3233 | return 0; |
---|
3234 | } |
---|
3235 | _ACEOF |
---|
3236 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3237 | ac_cv_prog_cc_g=yes |
---|
3238 | fi |
---|
3239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3240 | fi |
---|
3241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3242 | fi |
---|
3243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3244 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3245 | fi |
---|
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3247 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3248 | if test "$ac_test_CFLAGS" = set; then |
---|
3249 | CFLAGS=$ac_save_CFLAGS |
---|
3250 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3251 | if test "$GCC" = yes; then |
---|
3252 | CFLAGS="-g -O2" |
---|
3253 | else |
---|
3254 | CFLAGS="-g" |
---|
3255 | fi |
---|
3256 | else |
---|
3257 | if test "$GCC" = yes; then |
---|
3258 | CFLAGS="-O2" |
---|
3259 | else |
---|
3260 | CFLAGS= |
---|
3261 | fi |
---|
3262 | fi |
---|
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3264 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3265 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3266 | $as_echo_n "(cached) " >&6 |
---|
3267 | else |
---|
3268 | ac_cv_prog_cc_c89=no |
---|
3269 | ac_save_CC=$CC |
---|
3270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3271 | /* end confdefs.h. */ |
---|
3272 | #include <stdarg.h> |
---|
3273 | #include <stdio.h> |
---|
3274 | #include <sys/types.h> |
---|
3275 | #include <sys/stat.h> |
---|
3276 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3277 | struct buf { int x; }; |
---|
3278 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3279 | static char *e (p, i) |
---|
3280 | char **p; |
---|
3281 | int i; |
---|
3282 | { |
---|
3283 | return p[i]; |
---|
3284 | } |
---|
3285 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3286 | { |
---|
3287 | char *s; |
---|
3288 | va_list v; |
---|
3289 | va_start (v,p); |
---|
3290 | s = g (p, va_arg (v,int)); |
---|
3291 | va_end (v); |
---|
3292 | return s; |
---|
3293 | } |
---|
3294 | |
---|
3295 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3296 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3297 | These don't provoke an error unfortunately, instead are silently treated |
---|
3298 | as 'x'. The following induces an error, until -std is added to get |
---|
3299 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3300 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3301 | that's true only with -std. */ |
---|
3302 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3303 | |
---|
3304 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3305 | inside strings and character constants. */ |
---|
3306 | #define FOO(x) 'x' |
---|
3307 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3308 | |
---|
3309 | int test (int i, double x); |
---|
3310 | struct s1 {int (*f) (int a);}; |
---|
3311 | struct s2 {int (*f) (double a);}; |
---|
3312 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3313 | int argc; |
---|
3314 | char **argv; |
---|
3315 | int |
---|
3316 | main () |
---|
3317 | { |
---|
3318 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3319 | ; |
---|
3320 | return 0; |
---|
3321 | } |
---|
3322 | _ACEOF |
---|
3323 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3324 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3325 | do |
---|
3326 | CC="$ac_save_CC $ac_arg" |
---|
3327 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3328 | ac_cv_prog_cc_c89=$ac_arg |
---|
3329 | fi |
---|
3330 | rm -f core conftest.err conftest.$ac_objext |
---|
3331 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3332 | done |
---|
3333 | rm -f conftest.$ac_ext |
---|
3334 | CC=$ac_save_CC |
---|
3335 | |
---|
3336 | fi |
---|
3337 | # AC_CACHE_VAL |
---|
3338 | case "x$ac_cv_prog_cc_c89" in |
---|
3339 | x) |
---|
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3341 | $as_echo "none needed" >&6; } ;; |
---|
3342 | xno) |
---|
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3344 | $as_echo "unsupported" >&6; } ;; |
---|
3345 | *) |
---|
3346 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3348 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3349 | esac |
---|
3350 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3351 | |
---|
3352 | fi |
---|
3353 | |
---|
3354 | ac_ext=c |
---|
3355 | ac_cpp='$CPP $CPPFLAGS' |
---|
3356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3359 | |
---|
3360 | ac_ext=c |
---|
3361 | ac_cpp='$CPP $CPPFLAGS' |
---|
3362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
3366 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
3367 | # On Suns, sometimes $CPP names a directory. |
---|
3368 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3369 | CPP= |
---|
3370 | fi |
---|
3371 | if test -z "$CPP"; then |
---|
3372 | if ${ac_cv_prog_CPP+:} false; then : |
---|
3373 | $as_echo_n "(cached) " >&6 |
---|
3374 | else |
---|
3375 | # Double quotes because CPP needs to be expanded |
---|
3376 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3377 | do |
---|
3378 | ac_preproc_ok=false |
---|
3379 | for ac_c_preproc_warn_flag in '' yes |
---|
3380 | do |
---|
3381 | # Use a header file that comes with gcc, so configuring glibc |
---|
3382 | # with a fresh cross-compiler works. |
---|
3383 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3384 | # <limits.h> exists even on freestanding compilers. |
---|
3385 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3386 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3388 | /* end confdefs.h. */ |
---|
3389 | #ifdef __STDC__ |
---|
3390 | # include <limits.h> |
---|
3391 | #else |
---|
3392 | # include <assert.h> |
---|
3393 | #endif |
---|
3394 | Syntax error |
---|
3395 | _ACEOF |
---|
3396 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3397 | |
---|
3398 | else |
---|
3399 | # Broken: fails on valid input. |
---|
3400 | continue |
---|
3401 | fi |
---|
3402 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3403 | |
---|
3404 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3405 | # can be detected and how. |
---|
3406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3407 | /* end confdefs.h. */ |
---|
3408 | #include <ac_nonexistent.h> |
---|
3409 | _ACEOF |
---|
3410 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3411 | # Broken: success on invalid input. |
---|
3412 | continue |
---|
3413 | else |
---|
3414 | # Passes both tests. |
---|
3415 | ac_preproc_ok=: |
---|
3416 | break |
---|
3417 | fi |
---|
3418 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3419 | |
---|
3420 | done |
---|
3421 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3422 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3423 | if $ac_preproc_ok; then : |
---|
3424 | break |
---|
3425 | fi |
---|
3426 | |
---|
3427 | done |
---|
3428 | ac_cv_prog_CPP=$CPP |
---|
3429 | |
---|
3430 | fi |
---|
3431 | CPP=$ac_cv_prog_CPP |
---|
3432 | else |
---|
3433 | ac_cv_prog_CPP=$CPP |
---|
3434 | fi |
---|
3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
3436 | $as_echo "$CPP" >&6; } |
---|
3437 | ac_preproc_ok=false |
---|
3438 | for ac_c_preproc_warn_flag in '' yes |
---|
3439 | do |
---|
3440 | # Use a header file that comes with gcc, so configuring glibc |
---|
3441 | # with a fresh cross-compiler works. |
---|
3442 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3443 | # <limits.h> exists even on freestanding compilers. |
---|
3444 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3445 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3447 | /* end confdefs.h. */ |
---|
3448 | #ifdef __STDC__ |
---|
3449 | # include <limits.h> |
---|
3450 | #else |
---|
3451 | # include <assert.h> |
---|
3452 | #endif |
---|
3453 | Syntax error |
---|
3454 | _ACEOF |
---|
3455 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3456 | |
---|
3457 | else |
---|
3458 | # Broken: fails on valid input. |
---|
3459 | continue |
---|
3460 | fi |
---|
3461 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3462 | |
---|
3463 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3464 | # can be detected and how. |
---|
3465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3466 | /* end confdefs.h. */ |
---|
3467 | #include <ac_nonexistent.h> |
---|
3468 | _ACEOF |
---|
3469 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3470 | # Broken: success on invalid input. |
---|
3471 | continue |
---|
3472 | else |
---|
3473 | # Passes both tests. |
---|
3474 | ac_preproc_ok=: |
---|
3475 | break |
---|
3476 | fi |
---|
3477 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3478 | |
---|
3479 | done |
---|
3480 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3481 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3482 | if $ac_preproc_ok; then : |
---|
3483 | |
---|
3484 | else |
---|
3485 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3486 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3487 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
3488 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3489 | fi |
---|
3490 | |
---|
3491 | ac_ext=c |
---|
3492 | ac_cpp='$CPP $CPPFLAGS' |
---|
3493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3496 | |
---|
3497 | ac_ext=f |
---|
3498 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3499 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3500 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3501 | if test -n "$ac_tool_prefix"; then |
---|
3502 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn |
---|
3503 | do |
---|
3504 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3505 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3507 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3508 | if ${ac_cv_prog_F77+:} false; then : |
---|
3509 | $as_echo_n "(cached) " >&6 |
---|
3510 | else |
---|
3511 | if test -n "$F77"; then |
---|
3512 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3513 | else |
---|
3514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3515 | for as_dir in $PATH |
---|
3516 | do |
---|
3517 | IFS=$as_save_IFS |
---|
3518 | test -z "$as_dir" && as_dir=. |
---|
3519 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3521 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3523 | break 2 |
---|
3524 | fi |
---|
3525 | done |
---|
3526 | done |
---|
3527 | IFS=$as_save_IFS |
---|
3528 | |
---|
3529 | fi |
---|
3530 | fi |
---|
3531 | F77=$ac_cv_prog_F77 |
---|
3532 | if test -n "$F77"; then |
---|
3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 |
---|
3534 | $as_echo "$F77" >&6; } |
---|
3535 | else |
---|
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3537 | $as_echo "no" >&6; } |
---|
3538 | fi |
---|
3539 | |
---|
3540 | |
---|
3541 | test -n "$F77" && break |
---|
3542 | done |
---|
3543 | fi |
---|
3544 | if test -z "$F77"; then |
---|
3545 | ac_ct_F77=$F77 |
---|
3546 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn |
---|
3547 | do |
---|
3548 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3549 | set dummy $ac_prog; ac_word=$2 |
---|
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3551 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3552 | if ${ac_cv_prog_ac_ct_F77+:} false; then : |
---|
3553 | $as_echo_n "(cached) " >&6 |
---|
3554 | else |
---|
3555 | if test -n "$ac_ct_F77"; then |
---|
3556 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3557 | else |
---|
3558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3559 | for as_dir in $PATH |
---|
3560 | do |
---|
3561 | IFS=$as_save_IFS |
---|
3562 | test -z "$as_dir" && as_dir=. |
---|
3563 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3565 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3567 | break 2 |
---|
3568 | fi |
---|
3569 | done |
---|
3570 | done |
---|
3571 | IFS=$as_save_IFS |
---|
3572 | |
---|
3573 | fi |
---|
3574 | fi |
---|
3575 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3576 | if test -n "$ac_ct_F77"; then |
---|
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 |
---|
3578 | $as_echo "$ac_ct_F77" >&6; } |
---|
3579 | else |
---|
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3581 | $as_echo "no" >&6; } |
---|
3582 | fi |
---|
3583 | |
---|
3584 | |
---|
3585 | test -n "$ac_ct_F77" && break |
---|
3586 | done |
---|
3587 | |
---|
3588 | if test "x$ac_ct_F77" = x; then |
---|
3589 | F77="" |
---|
3590 | else |
---|
3591 | case $cross_compiling:$ac_tool_warned in |
---|
3592 | yes:) |
---|
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3594 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3595 | ac_tool_warned=yes ;; |
---|
3596 | esac |
---|
3597 | F77=$ac_ct_F77 |
---|
3598 | fi |
---|
3599 | fi |
---|
3600 | |
---|
3601 | |
---|
3602 | # Provide some information about the compiler. |
---|
3603 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 |
---|
3604 | set X $ac_compile |
---|
3605 | ac_compiler=$2 |
---|
3606 | for ac_option in --version -v -V -qversion; do |
---|
3607 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3608 | case "(($ac_try" in |
---|
3609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3610 | *) ac_try_echo=$ac_try;; |
---|
3611 | esac |
---|
3612 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3613 | $as_echo "$ac_try_echo"; } >&5 |
---|
3614 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3615 | ac_status=$? |
---|
3616 | if test -s conftest.err; then |
---|
3617 | sed '10a\ |
---|
3618 | ... rest of stderr output deleted ... |
---|
3619 | 10q' conftest.err >conftest.er1 |
---|
3620 | cat conftest.er1 >&5 |
---|
3621 | fi |
---|
3622 | rm -f conftest.er1 conftest.err |
---|
3623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3624 | test $ac_status = 0; } |
---|
3625 | done |
---|
3626 | rm -f a.out |
---|
3627 | |
---|
3628 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3629 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3630 | ac_save_ext=$ac_ext |
---|
3631 | ac_ext=F |
---|
3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
3633 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } |
---|
3634 | if ${ac_cv_f77_compiler_gnu+:} false; then : |
---|
3635 | $as_echo_n "(cached) " >&6 |
---|
3636 | else |
---|
3637 | cat > conftest.$ac_ext <<_ACEOF |
---|
3638 | program main |
---|
3639 | #ifndef __GNUC__ |
---|
3640 | choke me |
---|
3641 | #endif |
---|
3642 | |
---|
3643 | end |
---|
3644 | _ACEOF |
---|
3645 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
3646 | ac_compiler_gnu=yes |
---|
3647 | else |
---|
3648 | ac_compiler_gnu=no |
---|
3649 | fi |
---|
3650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3651 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
3652 | |
---|
3653 | fi |
---|
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
3655 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } |
---|
3656 | ac_ext=$ac_save_ext |
---|
3657 | ac_test_FFLAGS=${FFLAGS+set} |
---|
3658 | ac_save_FFLAGS=$FFLAGS |
---|
3659 | FFLAGS= |
---|
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 |
---|
3661 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } |
---|
3662 | if ${ac_cv_prog_f77_g+:} false; then : |
---|
3663 | $as_echo_n "(cached) " >&6 |
---|
3664 | else |
---|
3665 | FFLAGS=-g |
---|
3666 | cat > conftest.$ac_ext <<_ACEOF |
---|
3667 | program main |
---|
3668 | |
---|
3669 | end |
---|
3670 | _ACEOF |
---|
3671 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
3672 | ac_cv_prog_f77_g=yes |
---|
3673 | else |
---|
3674 | ac_cv_prog_f77_g=no |
---|
3675 | fi |
---|
3676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3677 | |
---|
3678 | fi |
---|
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 |
---|
3680 | $as_echo "$ac_cv_prog_f77_g" >&6; } |
---|
3681 | if test "$ac_test_FFLAGS" = set; then |
---|
3682 | FFLAGS=$ac_save_FFLAGS |
---|
3683 | elif test $ac_cv_prog_f77_g = yes; then |
---|
3684 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3685 | FFLAGS="-g -O2" |
---|
3686 | else |
---|
3687 | FFLAGS="-g" |
---|
3688 | fi |
---|
3689 | else |
---|
3690 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3691 | FFLAGS="-O2" |
---|
3692 | else |
---|
3693 | FFLAGS= |
---|
3694 | fi |
---|
3695 | fi |
---|
3696 | |
---|
3697 | if test $ac_compiler_gnu = yes; then |
---|
3698 | G77=yes |
---|
3699 | else |
---|
3700 | G77= |
---|
3701 | fi |
---|
3702 | ac_ext=c |
---|
3703 | ac_cpp='$CPP $CPPFLAGS' |
---|
3704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3707 | |
---|
3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
3709 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
3710 | LN_S=$as_ln_s |
---|
3711 | if test "$LN_S" = "ln -s"; then |
---|
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3713 | $as_echo "yes" >&6; } |
---|
3714 | else |
---|
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
3716 | $as_echo "no, using $LN_S" >&6; } |
---|
3717 | fi |
---|
3718 | |
---|
3719 | for ac_prog in install |
---|
3720 | do |
---|
3721 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3722 | set dummy $ac_prog; ac_word=$2 |
---|
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3724 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3725 | if ${ac_cv_prog_INSTALL+:} false; then : |
---|
3726 | $as_echo_n "(cached) " >&6 |
---|
3727 | else |
---|
3728 | if test -n "$INSTALL"; then |
---|
3729 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. |
---|
3730 | else |
---|
3731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3732 | for as_dir in $PATH |
---|
3733 | do |
---|
3734 | IFS=$as_save_IFS |
---|
3735 | test -z "$as_dir" && as_dir=. |
---|
3736 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3738 | ac_cv_prog_INSTALL="$ac_prog" |
---|
3739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3740 | break 2 |
---|
3741 | fi |
---|
3742 | done |
---|
3743 | done |
---|
3744 | IFS=$as_save_IFS |
---|
3745 | |
---|
3746 | fi |
---|
3747 | fi |
---|
3748 | INSTALL=$ac_cv_prog_INSTALL |
---|
3749 | if test -n "$INSTALL"; then |
---|
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
3751 | $as_echo "$INSTALL" >&6; } |
---|
3752 | else |
---|
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3754 | $as_echo "no" >&6; } |
---|
3755 | fi |
---|
3756 | |
---|
3757 | |
---|
3758 | test -n "$INSTALL" && break |
---|
3759 | done |
---|
3760 | |
---|
3761 | |
---|
3762 | # Check for maths library -- will add -lm to $LIBS |
---|
3763 | |
---|
3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5 |
---|
3765 | $as_echo_n "checking for log in -lm... " >&6; } |
---|
3766 | if ${ac_cv_lib_m_log+:} false; then : |
---|
3767 | $as_echo_n "(cached) " >&6 |
---|
3768 | else |
---|
3769 | ac_check_lib_save_LIBS=$LIBS |
---|
3770 | LIBS="-lm $LIBS" |
---|
3771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3772 | /* end confdefs.h. */ |
---|
3773 | |
---|
3774 | /* Override any GCC internal prototype to avoid an error. |
---|
3775 | Use char because int might match the return type of a GCC |
---|
3776 | builtin and then its argument prototype would still apply. */ |
---|
3777 | #ifdef __cplusplus |
---|
3778 | extern "C" |
---|
3779 | #endif |
---|
3780 | char log (); |
---|
3781 | int |
---|
3782 | main () |
---|
3783 | { |
---|
3784 | return log (); |
---|
3785 | ; |
---|
3786 | return 0; |
---|
3787 | } |
---|
3788 | _ACEOF |
---|
3789 | if ac_fn_c_try_link "$LINENO"; then : |
---|
3790 | ac_cv_lib_m_log=yes |
---|
3791 | else |
---|
3792 | ac_cv_lib_m_log=no |
---|
3793 | fi |
---|
3794 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3795 | conftest$ac_exeext conftest.$ac_ext |
---|
3796 | LIBS=$ac_check_lib_save_LIBS |
---|
3797 | fi |
---|
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5 |
---|
3799 | $as_echo "$ac_cv_lib_m_log" >&6; } |
---|
3800 | if test "x$ac_cv_lib_m_log" = xyes; then : |
---|
3801 | cat >>confdefs.h <<_ACEOF |
---|
3802 | #define HAVE_LIBM 1 |
---|
3803 | _ACEOF |
---|
3804 | |
---|
3805 | LIBS="-lm $LIBS" |
---|
3806 | |
---|
3807 | fi |
---|
3808 | |
---|
3809 | |
---|
3810 | # Checks for header files. |
---|
3811 | |
---|
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
3813 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
3814 | if ${ac_cv_path_GREP+:} false; then : |
---|
3815 | $as_echo_n "(cached) " >&6 |
---|
3816 | else |
---|
3817 | if test -z "$GREP"; then |
---|
3818 | ac_path_GREP_found=false |
---|
3819 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3821 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3822 | do |
---|
3823 | IFS=$as_save_IFS |
---|
3824 | test -z "$as_dir" && as_dir=. |
---|
3825 | for ac_prog in grep ggrep; do |
---|
3826 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3827 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3828 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
3829 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
3830 | # Check for GNU $ac_path_GREP |
---|
3831 | case `"$ac_path_GREP" --version 2>&1` in |
---|
3832 | *GNU*) |
---|
3833 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
3834 | *) |
---|
3835 | ac_count=0 |
---|
3836 | $as_echo_n 0123456789 >"conftest.in" |
---|
3837 | while : |
---|
3838 | do |
---|
3839 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3840 | mv "conftest.tmp" "conftest.in" |
---|
3841 | cp "conftest.in" "conftest.nl" |
---|
3842 | $as_echo 'GREP' >> "conftest.nl" |
---|
3843 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3844 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3845 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3846 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
3847 | # Best one so far, save it but keep looking for a better one |
---|
3848 | ac_cv_path_GREP="$ac_path_GREP" |
---|
3849 | ac_path_GREP_max=$ac_count |
---|
3850 | fi |
---|
3851 | # 10*(2^10) chars as input seems more than enough |
---|
3852 | test $ac_count -gt 10 && break |
---|
3853 | done |
---|
3854 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3855 | esac |
---|
3856 | |
---|
3857 | $ac_path_GREP_found && break 3 |
---|
3858 | done |
---|
3859 | done |
---|
3860 | done |
---|
3861 | IFS=$as_save_IFS |
---|
3862 | if test -z "$ac_cv_path_GREP"; then |
---|
3863 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3864 | fi |
---|
3865 | else |
---|
3866 | ac_cv_path_GREP=$GREP |
---|
3867 | fi |
---|
3868 | |
---|
3869 | fi |
---|
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
3871 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
3872 | GREP="$ac_cv_path_GREP" |
---|
3873 | |
---|
3874 | |
---|
3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
3876 | $as_echo_n "checking for egrep... " >&6; } |
---|
3877 | if ${ac_cv_path_EGREP+:} false; then : |
---|
3878 | $as_echo_n "(cached) " >&6 |
---|
3879 | else |
---|
3880 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3881 | then ac_cv_path_EGREP="$GREP -E" |
---|
3882 | else |
---|
3883 | if test -z "$EGREP"; then |
---|
3884 | ac_path_EGREP_found=false |
---|
3885 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3887 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3888 | do |
---|
3889 | IFS=$as_save_IFS |
---|
3890 | test -z "$as_dir" && as_dir=. |
---|
3891 | for ac_prog in egrep; do |
---|
3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3893 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3894 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
3895 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3896 | # Check for GNU $ac_path_EGREP |
---|
3897 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3898 | *GNU*) |
---|
3899 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3900 | *) |
---|
3901 | ac_count=0 |
---|
3902 | $as_echo_n 0123456789 >"conftest.in" |
---|
3903 | while : |
---|
3904 | do |
---|
3905 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3906 | mv "conftest.tmp" "conftest.in" |
---|
3907 | cp "conftest.in" "conftest.nl" |
---|
3908 | $as_echo 'EGREP' >> "conftest.nl" |
---|
3909 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3910 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3911 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3912 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3913 | # Best one so far, save it but keep looking for a better one |
---|
3914 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
3915 | ac_path_EGREP_max=$ac_count |
---|
3916 | fi |
---|
3917 | # 10*(2^10) chars as input seems more than enough |
---|
3918 | test $ac_count -gt 10 && break |
---|
3919 | done |
---|
3920 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3921 | esac |
---|
3922 | |
---|
3923 | $ac_path_EGREP_found && break 3 |
---|
3924 | done |
---|
3925 | done |
---|
3926 | done |
---|
3927 | IFS=$as_save_IFS |
---|
3928 | if test -z "$ac_cv_path_EGREP"; then |
---|
3929 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3930 | fi |
---|
3931 | else |
---|
3932 | ac_cv_path_EGREP=$EGREP |
---|
3933 | fi |
---|
3934 | |
---|
3935 | fi |
---|
3936 | fi |
---|
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
3938 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
3939 | EGREP="$ac_cv_path_EGREP" |
---|
3940 | |
---|
3941 | |
---|
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
3943 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
3944 | if ${ac_cv_header_stdc+:} false; then : |
---|
3945 | $as_echo_n "(cached) " >&6 |
---|
3946 | else |
---|
3947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3948 | /* end confdefs.h. */ |
---|
3949 | #include <stdlib.h> |
---|
3950 | #include <stdarg.h> |
---|
3951 | #include <string.h> |
---|
3952 | #include <float.h> |
---|
3953 | |
---|
3954 | int |
---|
3955 | main () |
---|
3956 | { |
---|
3957 | |
---|
3958 | ; |
---|
3959 | return 0; |
---|
3960 | } |
---|
3961 | _ACEOF |
---|
3962 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3963 | ac_cv_header_stdc=yes |
---|
3964 | else |
---|
3965 | ac_cv_header_stdc=no |
---|
3966 | fi |
---|
3967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3968 | |
---|
3969 | if test $ac_cv_header_stdc = yes; then |
---|
3970 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3972 | /* end confdefs.h. */ |
---|
3973 | #include <string.h> |
---|
3974 | |
---|
3975 | _ACEOF |
---|
3976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3977 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
3978 | |
---|
3979 | else |
---|
3980 | ac_cv_header_stdc=no |
---|
3981 | fi |
---|
3982 | rm -f conftest* |
---|
3983 | |
---|
3984 | fi |
---|
3985 | |
---|
3986 | if test $ac_cv_header_stdc = yes; then |
---|
3987 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3989 | /* end confdefs.h. */ |
---|
3990 | #include <stdlib.h> |
---|
3991 | |
---|
3992 | _ACEOF |
---|
3993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3994 | $EGREP "free" >/dev/null 2>&1; then : |
---|
3995 | |
---|
3996 | else |
---|
3997 | ac_cv_header_stdc=no |
---|
3998 | fi |
---|
3999 | rm -f conftest* |
---|
4000 | |
---|
4001 | fi |
---|
4002 | |
---|
4003 | if test $ac_cv_header_stdc = yes; then |
---|
4004 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4005 | if test "$cross_compiling" = yes; then : |
---|
4006 | : |
---|
4007 | else |
---|
4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4009 | /* end confdefs.h. */ |
---|
4010 | #include <ctype.h> |
---|
4011 | #include <stdlib.h> |
---|
4012 | #if ((' ' & 0x0FF) == 0x020) |
---|
4013 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4014 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4015 | #else |
---|
4016 | # define ISLOWER(c) \ |
---|
4017 | (('a' <= (c) && (c) <= 'i') \ |
---|
4018 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4019 | || ('s' <= (c) && (c) <= 'z')) |
---|
4020 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4021 | #endif |
---|
4022 | |
---|
4023 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4024 | int |
---|
4025 | main () |
---|
4026 | { |
---|
4027 | int i; |
---|
4028 | for (i = 0; i < 256; i++) |
---|
4029 | if (XOR (islower (i), ISLOWER (i)) |
---|
4030 | || toupper (i) != TOUPPER (i)) |
---|
4031 | return 2; |
---|
4032 | return 0; |
---|
4033 | } |
---|
4034 | _ACEOF |
---|
4035 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4036 | |
---|
4037 | else |
---|
4038 | ac_cv_header_stdc=no |
---|
4039 | fi |
---|
4040 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4041 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4042 | fi |
---|
4043 | |
---|
4044 | fi |
---|
4045 | fi |
---|
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4047 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4048 | if test $ac_cv_header_stdc = yes; then |
---|
4049 | |
---|
4050 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4051 | |
---|
4052 | fi |
---|
4053 | |
---|
4054 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4055 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4056 | inttypes.h stdint.h unistd.h |
---|
4057 | do : |
---|
4058 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4059 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4060 | " |
---|
4061 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4062 | cat >>confdefs.h <<_ACEOF |
---|
4063 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4064 | _ACEOF |
---|
4065 | |
---|
4066 | fi |
---|
4067 | |
---|
4068 | done |
---|
4069 | |
---|
4070 | |
---|
4071 | for ac_header in unistd.h time.h math.h values.h iostream fstream sstream iomanip vector string algorithm functional |
---|
4072 | do : |
---|
4073 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4074 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
4075 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4076 | cat >>confdefs.h <<_ACEOF |
---|
4077 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4078 | _ACEOF |
---|
4079 | |
---|
4080 | fi |
---|
4081 | |
---|
4082 | done |
---|
4083 | |
---|
4084 | if test "x$ac_cv_header_stdc" = xno; then |
---|
4085 | as_fn_error 1 " |
---|
4086 | ------------------------------------------------------------------- |
---|
4087 | An ANSI standard C library is required to build Duchamp. |
---|
4088 | One of the ANSI C header files it requires is missing or unusable. |
---|
4089 | |
---|
4090 | ERROR: Duchamp configuration failure. |
---|
4091 | -------------------------------------------------------------------" "$LINENO" 5 |
---|
4092 | fi |
---|
4093 | |
---|
4094 | # Checks for typedefs, structures, and compiler characteristics. |
---|
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
4096 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
4097 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
4098 | $as_echo_n "(cached) " >&6 |
---|
4099 | else |
---|
4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4101 | /* end confdefs.h. */ |
---|
4102 | |
---|
4103 | #include <stdbool.h> |
---|
4104 | #ifndef bool |
---|
4105 | "error: bool is not defined" |
---|
4106 | #endif |
---|
4107 | #ifndef false |
---|
4108 | "error: false is not defined" |
---|
4109 | #endif |
---|
4110 | #if false |
---|
4111 | "error: false is not 0" |
---|
4112 | #endif |
---|
4113 | #ifndef true |
---|
4114 | "error: true is not defined" |
---|
4115 | #endif |
---|
4116 | #if true != 1 |
---|
4117 | "error: true is not 1" |
---|
4118 | #endif |
---|
4119 | #ifndef __bool_true_false_are_defined |
---|
4120 | "error: __bool_true_false_are_defined is not defined" |
---|
4121 | #endif |
---|
4122 | |
---|
4123 | struct s { _Bool s: 1; _Bool t; } s; |
---|
4124 | |
---|
4125 | char a[true == 1 ? 1 : -1]; |
---|
4126 | char b[false == 0 ? 1 : -1]; |
---|
4127 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
4128 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
4129 | /* See body of main program for 'e'. */ |
---|
4130 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
4131 | char g[true]; |
---|
4132 | char h[sizeof (_Bool)]; |
---|
4133 | char i[sizeof s.t]; |
---|
4134 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
4135 | /* The following fails for |
---|
4136 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
4137 | _Bool n[m]; |
---|
4138 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
4139 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
4140 | /* Catch a bug in an HP-UX C compiler. See |
---|
4141 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
4142 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
4143 | */ |
---|
4144 | _Bool q = true; |
---|
4145 | _Bool *pq = &q; |
---|
4146 | |
---|
4147 | int |
---|
4148 | main () |
---|
4149 | { |
---|
4150 | |
---|
4151 | bool e = &s; |
---|
4152 | *pq |= q; |
---|
4153 | *pq |= ! q; |
---|
4154 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
4155 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
4156 | + !m + !n + !o + !p + !q + !pq); |
---|
4157 | |
---|
4158 | ; |
---|
4159 | return 0; |
---|
4160 | } |
---|
4161 | _ACEOF |
---|
4162 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4163 | ac_cv_header_stdbool_h=yes |
---|
4164 | else |
---|
4165 | ac_cv_header_stdbool_h=no |
---|
4166 | fi |
---|
4167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4168 | fi |
---|
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
4170 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
4171 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
4172 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
4173 | |
---|
4174 | cat >>confdefs.h <<_ACEOF |
---|
4175 | #define HAVE__BOOL 1 |
---|
4176 | _ACEOF |
---|
4177 | |
---|
4178 | |
---|
4179 | fi |
---|
4180 | |
---|
4181 | if test $ac_cv_header_stdbool_h = yes; then |
---|
4182 | |
---|
4183 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
4184 | |
---|
4185 | fi |
---|
4186 | |
---|
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
---|
4188 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
---|
4189 | if ${ac_cv_c_const+:} false; then : |
---|
4190 | $as_echo_n "(cached) " >&6 |
---|
4191 | else |
---|
4192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4193 | /* end confdefs.h. */ |
---|
4194 | |
---|
4195 | int |
---|
4196 | main () |
---|
4197 | { |
---|
4198 | /* FIXME: Include the comments suggested by Paul. */ |
---|
4199 | #ifndef __cplusplus |
---|
4200 | /* Ultrix mips cc rejects this. */ |
---|
4201 | typedef int charset[2]; |
---|
4202 | const charset cs; |
---|
4203 | /* SunOS 4.1.1 cc rejects this. */ |
---|
4204 | char const *const *pcpcc; |
---|
4205 | char **ppc; |
---|
4206 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
4207 | struct point {int x, y;}; |
---|
4208 | static struct point const zero = {0,0}; |
---|
4209 | /* AIX XL C 1.02.0.0 rejects this. |
---|
4210 | It does not let you subtract one const X* pointer from another in |
---|
4211 | an arm of an if-expression whose if-part is not a constant |
---|
4212 | expression */ |
---|
4213 | const char *g = "string"; |
---|
4214 | pcpcc = &g + (g ? g-g : 0); |
---|
4215 | /* HPUX 7.0 cc rejects these. */ |
---|
4216 | ++pcpcc; |
---|
4217 | ppc = (char**) pcpcc; |
---|
4218 | pcpcc = (char const *const *) ppc; |
---|
4219 | { /* SCO 3.2v4 cc rejects this. */ |
---|
4220 | char *t; |
---|
4221 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
4222 | |
---|
4223 | *t++ = 0; |
---|
4224 | if (s) return 0; |
---|
4225 | } |
---|
4226 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
4227 | int x[] = {25, 17}; |
---|
4228 | const int *foo = &x[0]; |
---|
4229 | ++foo; |
---|
4230 | } |
---|
4231 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
4232 | typedef const int *iptr; |
---|
4233 | iptr p = 0; |
---|
4234 | ++p; |
---|
4235 | } |
---|
4236 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
4237 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
4238 | struct s { int j; const int *ap[3]; }; |
---|
4239 | struct s *b; b->j = 5; |
---|
4240 | } |
---|
4241 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
4242 | const int foo = 10; |
---|
4243 | if (!foo) return 0; |
---|
4244 | } |
---|
4245 | return !cs[0] && !zero.x; |
---|
4246 | #endif |
---|
4247 | |
---|
4248 | ; |
---|
4249 | return 0; |
---|
4250 | } |
---|
4251 | _ACEOF |
---|
4252 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4253 | ac_cv_c_const=yes |
---|
4254 | else |
---|
4255 | ac_cv_c_const=no |
---|
4256 | fi |
---|
4257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4258 | fi |
---|
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
---|
4260 | $as_echo "$ac_cv_c_const" >&6; } |
---|
4261 | if test $ac_cv_c_const = no; then |
---|
4262 | |
---|
4263 | $as_echo "#define const /**/" >>confdefs.h |
---|
4264 | |
---|
4265 | fi |
---|
4266 | |
---|
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
4268 | $as_echo_n "checking for inline... " >&6; } |
---|
4269 | if ${ac_cv_c_inline+:} false; then : |
---|
4270 | $as_echo_n "(cached) " >&6 |
---|
4271 | else |
---|
4272 | ac_cv_c_inline=no |
---|
4273 | for ac_kw in inline __inline__ __inline; do |
---|
4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4275 | /* end confdefs.h. */ |
---|
4276 | #ifndef __cplusplus |
---|
4277 | typedef int foo_t; |
---|
4278 | static $ac_kw foo_t static_foo () {return 0; } |
---|
4279 | $ac_kw foo_t foo () {return 0; } |
---|
4280 | #endif |
---|
4281 | |
---|
4282 | _ACEOF |
---|
4283 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4284 | ac_cv_c_inline=$ac_kw |
---|
4285 | fi |
---|
4286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4287 | test "$ac_cv_c_inline" != no && break |
---|
4288 | done |
---|
4289 | |
---|
4290 | fi |
---|
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
4292 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
4293 | |
---|
4294 | case $ac_cv_c_inline in |
---|
4295 | inline | yes) ;; |
---|
4296 | *) |
---|
4297 | case $ac_cv_c_inline in |
---|
4298 | no) ac_val=;; |
---|
4299 | *) ac_val=$ac_cv_c_inline;; |
---|
4300 | esac |
---|
4301 | cat >>confdefs.h <<_ACEOF |
---|
4302 | #ifndef __cplusplus |
---|
4303 | #define inline $ac_val |
---|
4304 | #endif |
---|
4305 | _ACEOF |
---|
4306 | ;; |
---|
4307 | esac |
---|
4308 | |
---|
4309 | |
---|
4310 | # Utilities. |
---|
4311 | if test -n "$ac_tool_prefix"; then |
---|
4312 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
4313 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4315 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4316 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
4317 | $as_echo_n "(cached) " >&6 |
---|
4318 | else |
---|
4319 | if test -n "$RANLIB"; then |
---|
4320 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
4321 | else |
---|
4322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4323 | for as_dir in $PATH |
---|
4324 | do |
---|
4325 | IFS=$as_save_IFS |
---|
4326 | test -z "$as_dir" && as_dir=. |
---|
4327 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4329 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
4330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4331 | break 2 |
---|
4332 | fi |
---|
4333 | done |
---|
4334 | done |
---|
4335 | IFS=$as_save_IFS |
---|
4336 | |
---|
4337 | fi |
---|
4338 | fi |
---|
4339 | RANLIB=$ac_cv_prog_RANLIB |
---|
4340 | if test -n "$RANLIB"; then |
---|
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
4342 | $as_echo "$RANLIB" >&6; } |
---|
4343 | else |
---|
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4345 | $as_echo "no" >&6; } |
---|
4346 | fi |
---|
4347 | |
---|
4348 | |
---|
4349 | fi |
---|
4350 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
4351 | ac_ct_RANLIB=$RANLIB |
---|
4352 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
4353 | set dummy ranlib; ac_word=$2 |
---|
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4355 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4356 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
4357 | $as_echo_n "(cached) " >&6 |
---|
4358 | else |
---|
4359 | if test -n "$ac_ct_RANLIB"; then |
---|
4360 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
4361 | else |
---|
4362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4363 | for as_dir in $PATH |
---|
4364 | do |
---|
4365 | IFS=$as_save_IFS |
---|
4366 | test -z "$as_dir" && as_dir=. |
---|
4367 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4369 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
4370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4371 | break 2 |
---|
4372 | fi |
---|
4373 | done |
---|
4374 | done |
---|
4375 | IFS=$as_save_IFS |
---|
4376 | |
---|
4377 | fi |
---|
4378 | fi |
---|
4379 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
4380 | if test -n "$ac_ct_RANLIB"; then |
---|
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
4382 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
4383 | else |
---|
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4385 | $as_echo "no" >&6; } |
---|
4386 | fi |
---|
4387 | |
---|
4388 | if test "x$ac_ct_RANLIB" = x; then |
---|
4389 | RANLIB=":" |
---|
4390 | else |
---|
4391 | case $cross_compiling:$ac_tool_warned in |
---|
4392 | yes:) |
---|
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4394 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4395 | ac_tool_warned=yes ;; |
---|
4396 | esac |
---|
4397 | RANLIB=$ac_ct_RANLIB |
---|
4398 | fi |
---|
4399 | else |
---|
4400 | RANLIB="$ac_cv_prog_RANLIB" |
---|
4401 | fi |
---|
4402 | |
---|
4403 | |
---|
4404 | # Checks for library functions. |
---|
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
---|
4406 | $as_echo_n "checking for working strtod... " >&6; } |
---|
4407 | if ${ac_cv_func_strtod+:} false; then : |
---|
4408 | $as_echo_n "(cached) " >&6 |
---|
4409 | else |
---|
4410 | if test "$cross_compiling" = yes; then : |
---|
4411 | ac_cv_func_strtod=no |
---|
4412 | else |
---|
4413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4414 | /* end confdefs.h. */ |
---|
4415 | |
---|
4416 | $ac_includes_default |
---|
4417 | #ifndef strtod |
---|
4418 | double strtod (); |
---|
4419 | #endif |
---|
4420 | int |
---|
4421 | main() |
---|
4422 | { |
---|
4423 | { |
---|
4424 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
---|
4425 | char *string = " +69"; |
---|
4426 | char *term; |
---|
4427 | double value; |
---|
4428 | value = strtod (string, &term); |
---|
4429 | if (value != 69 || term != (string + 4)) |
---|
4430 | return 1; |
---|
4431 | } |
---|
4432 | |
---|
4433 | { |
---|
4434 | /* Under Solaris 2.4, strtod returns the wrong value for the |
---|
4435 | terminating character under some conditions. */ |
---|
4436 | char *string = "NaN"; |
---|
4437 | char *term; |
---|
4438 | strtod (string, &term); |
---|
4439 | if (term != string && *(term - 1) == 0) |
---|
4440 | return 1; |
---|
4441 | } |
---|
4442 | return 0; |
---|
4443 | } |
---|
4444 | |
---|
4445 | _ACEOF |
---|
4446 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4447 | ac_cv_func_strtod=yes |
---|
4448 | else |
---|
4449 | ac_cv_func_strtod=no |
---|
4450 | fi |
---|
4451 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4452 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4453 | fi |
---|
4454 | |
---|
4455 | fi |
---|
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
---|
4457 | $as_echo "$ac_cv_func_strtod" >&6; } |
---|
4458 | if test $ac_cv_func_strtod = no; then |
---|
4459 | case " $LIBOBJS " in |
---|
4460 | *" strtod.$ac_objext "* ) ;; |
---|
4461 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
---|
4462 | ;; |
---|
4463 | esac |
---|
4464 | |
---|
4465 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
---|
4466 | if test "x$ac_cv_func_pow" = xyes; then : |
---|
4467 | |
---|
4468 | fi |
---|
4469 | |
---|
4470 | if test $ac_cv_func_pow = no; then |
---|
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
---|
4472 | $as_echo_n "checking for pow in -lm... " >&6; } |
---|
4473 | if ${ac_cv_lib_m_pow+:} false; then : |
---|
4474 | $as_echo_n "(cached) " >&6 |
---|
4475 | else |
---|
4476 | ac_check_lib_save_LIBS=$LIBS |
---|
4477 | LIBS="-lm $LIBS" |
---|
4478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4479 | /* end confdefs.h. */ |
---|
4480 | |
---|
4481 | /* Override any GCC internal prototype to avoid an error. |
---|
4482 | Use char because int might match the return type of a GCC |
---|
4483 | builtin and then its argument prototype would still apply. */ |
---|
4484 | #ifdef __cplusplus |
---|
4485 | extern "C" |
---|
4486 | #endif |
---|
4487 | char pow (); |
---|
4488 | int |
---|
4489 | main () |
---|
4490 | { |
---|
4491 | return pow (); |
---|
4492 | ; |
---|
4493 | return 0; |
---|
4494 | } |
---|
4495 | _ACEOF |
---|
4496 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4497 | ac_cv_lib_m_pow=yes |
---|
4498 | else |
---|
4499 | ac_cv_lib_m_pow=no |
---|
4500 | fi |
---|
4501 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4502 | conftest$ac_exeext conftest.$ac_ext |
---|
4503 | LIBS=$ac_check_lib_save_LIBS |
---|
4504 | fi |
---|
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
---|
4506 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
---|
4507 | if test "x$ac_cv_lib_m_pow" = xyes; then : |
---|
4508 | POW_LIB=-lm |
---|
4509 | else |
---|
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
---|
4511 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
---|
4512 | fi |
---|
4513 | |
---|
4514 | fi |
---|
4515 | |
---|
4516 | fi |
---|
4517 | |
---|
4518 | for ac_func in floor pow sqrt strtol log atan fabs |
---|
4519 | do : |
---|
4520 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4521 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
4522 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
4523 | cat >>confdefs.h <<_ACEOF |
---|
4524 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
4525 | _ACEOF |
---|
4526 | |
---|
4527 | fi |
---|
4528 | done |
---|
4529 | |
---|
4530 | |
---|
4531 | # Extra places to look for third-party include files and libraries. |
---|
4532 | INCDIRS="$INCDIRS \ |
---|
4533 | /usr/include \ |
---|
4534 | /usr/local/include \ |
---|
4535 | /usr/local/pgplot \ |
---|
4536 | /usr/local/cfitsio \ |
---|
4537 | /usr/local/wcslib \ |
---|
4538 | /local/pgplot \ |
---|
4539 | /local/cfitsio \ |
---|
4540 | /opt/local/include" |
---|
4541 | |
---|
4542 | LIBDIRS="$LIBDIRS \ |
---|
4543 | /usr/lib \ |
---|
4544 | /usr/local/lib \ |
---|
4545 | /usr/local/pgplot \ |
---|
4546 | /usr/local/cfitsio \ |
---|
4547 | /usr/local/wcslib \ |
---|
4548 | /local/lib \ |
---|
4549 | /local/pgplot \ |
---|
4550 | /local/cfitsio \ |
---|
4551 | /opt/SUNWspro/lib \ |
---|
4552 | /opt/local/lib" |
---|
4553 | |
---|
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: LIBDIRS" >&5 |
---|
4555 | $as_echo "$as_me: LIBDIRS" >&6;} |
---|
4556 | |
---|
4557 | for LIBDIR in $LIBDIRS ; do |
---|
4558 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
4560 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
4561 | if eval \${$as_ac_File+:} false; then : |
---|
4562 | $as_echo_n "(cached) " >&6 |
---|
4563 | else |
---|
4564 | test "$cross_compiling" = yes && |
---|
4565 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
4566 | if test -r "$LIBDIR"; then |
---|
4567 | eval "$as_ac_File=yes" |
---|
4568 | else |
---|
4569 | eval "$as_ac_File=no" |
---|
4570 | fi |
---|
4571 | fi |
---|
4572 | eval ac_res=\$$as_ac_File |
---|
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
4574 | $as_echo "$ac_res" >&6; } |
---|
4575 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
4576 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
4577 | else |
---|
4578 | continue |
---|
4579 | fi |
---|
4580 | |
---|
4581 | done |
---|
4582 | |
---|
4583 | ########################################################################## |
---|
4584 | # Search for PGPLOT |
---|
4585 | # use --with-pgplot=directory to specify a particular PGPLOT directory. |
---|
4586 | # or --without-pgplot or --with-pgplot=no to do without it |
---|
4587 | # else do the normal searching for libraries. |
---|
4588 | |
---|
4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- PGPLOT -- " >&5 |
---|
4590 | $as_echo "$as_me: -- PGPLOT -- " >&6;} |
---|
4591 | |
---|
4592 | # Check whether --with-pgplot was given. |
---|
4593 | if test "${with_pgplot+set}" = set; then : |
---|
4594 | withval=$with_pgplot; |
---|
4595 | if test "x$withval" != xno; then |
---|
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
4597 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
4598 | PGPLOTINCDIRS=$withval |
---|
4599 | PGPLOTLIBDIRS=$withval |
---|
4600 | LDFLAGS="$LDFLAGS -L$withval" |
---|
4601 | fi |
---|
4602 | |
---|
4603 | else |
---|
4604 | |
---|
4605 | PGPLOTINCDIRS=$INCDIRS |
---|
4606 | PGPLOTLIBDIRS=$LIBDIRS |
---|
4607 | |
---|
4608 | fi |
---|
4609 | |
---|
4610 | |
---|
4611 | if test "x$PGPLOTLIBDIRS" = x; then |
---|
4612 | #the argument to --with-pgplot was no, so we don't look for it. |
---|
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: Not enabling PGPLOT use." >&5 |
---|
4614 | $as_echo "$as_me: Not enabling PGPLOT use." >&6;} |
---|
4615 | #This is the command to do the linking stage of the compilation |
---|
4616 | #If no pgplot, we can just link with g++ (or equivalent) |
---|
4617 | LINKER=$CXX |
---|
4618 | # AC_CHECK_LIB([stdc++], [main], [PGPLOTLIB="-lstdc++"]) |
---|
4619 | # if test "x$F77" = xgfortran; then |
---|
4620 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
4621 | # fi |
---|
4622 | else |
---|
4623 | |
---|
4624 | #Set up the PGPLOT-related libraries and includes. |
---|
4625 | |
---|
4626 | for INCDIR in $PGPLOTINCDIRS ; do |
---|
4627 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/cpgplot.h" >&5 |
---|
4629 | $as_echo_n "checking for $INCDIR/cpgplot.h... " >&6; } |
---|
4630 | if eval \${$as_ac_File+:} false; then : |
---|
4631 | $as_echo_n "(cached) " >&6 |
---|
4632 | else |
---|
4633 | test "$cross_compiling" = yes && |
---|
4634 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
4635 | if test -r "$INCDIR/cpgplot.h"; then |
---|
4636 | eval "$as_ac_File=yes" |
---|
4637 | else |
---|
4638 | eval "$as_ac_File=no" |
---|
4639 | fi |
---|
4640 | fi |
---|
4641 | eval ac_res=\$$as_ac_File |
---|
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
4643 | $as_echo "$ac_res" >&6; } |
---|
4644 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
4645 | PGPLOTINC=-I$INCDIR; break |
---|
4646 | fi |
---|
4647 | |
---|
4648 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/pgplot/cpgplot.h" | $as_tr_sh` |
---|
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/pgplot/cpgplot.h" >&5 |
---|
4650 | $as_echo_n "checking for $INCDIR/pgplot/cpgplot.h... " >&6; } |
---|
4651 | if eval \${$as_ac_File+:} false; then : |
---|
4652 | $as_echo_n "(cached) " >&6 |
---|
4653 | else |
---|
4654 | test "$cross_compiling" = yes && |
---|
4655 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
4656 | if test -r "$INCDIR/pgplot/cpgplot.h"; then |
---|
4657 | eval "$as_ac_File=yes" |
---|
4658 | else |
---|
4659 | eval "$as_ac_File=no" |
---|
4660 | fi |
---|
4661 | fi |
---|
4662 | eval ac_res=\$$as_ac_File |
---|
4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
4664 | $as_echo "$ac_res" >&6; } |
---|
4665 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
4666 | PGPLOTINC=-I$INCDIR/pglot; break |
---|
4667 | fi |
---|
4668 | |
---|
4669 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/include/cpgplot.h" | $as_tr_sh` |
---|
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/include/cpgplot.h" >&5 |
---|
4671 | $as_echo_n "checking for $INCDIR/include/cpgplot.h... " >&6; } |
---|
4672 | if eval \${$as_ac_File+:} false; then : |
---|
4673 | $as_echo_n "(cached) " >&6 |
---|
4674 | else |
---|
4675 | test "$cross_compiling" = yes && |
---|
4676 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
4677 | if test -r "$INCDIR/include/cpgplot.h"; then |
---|
4678 | eval "$as_ac_File=yes" |
---|
4679 | else |
---|
4680 | eval "$as_ac_File=no" |
---|
4681 | fi |
---|
4682 | fi |
---|
4683 | eval ac_res=\$$as_ac_File |
---|
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
4685 | $as_echo "$ac_res" >&6; } |
---|
4686 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
4687 | PGPLOTINC=-I$INCDIR/include; break |
---|
4688 | fi |
---|
4689 | |
---|
4690 | done |
---|
4691 | |
---|
4692 | # PGPLOT compiled with a SUN compiler but linked with something else. |
---|
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosd in -lsunmath" >&5 |
---|
4694 | $as_echo_n "checking for cosd in -lsunmath... " >&6; } |
---|
4695 | if ${ac_cv_lib_sunmath_cosd+:} false; then : |
---|
4696 | $as_echo_n "(cached) " >&6 |
---|
4697 | else |
---|
4698 | ac_check_lib_save_LIBS=$LIBS |
---|
4699 | LIBS="-lsunmath $EXTRAPGLIB $LIBS $LIBS" |
---|
4700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4701 | /* end confdefs.h. */ |
---|
4702 | |
---|
4703 | /* Override any GCC internal prototype to avoid an error. |
---|
4704 | Use char because int might match the return type of a GCC |
---|
4705 | builtin and then its argument prototype would still apply. */ |
---|
4706 | #ifdef __cplusplus |
---|
4707 | extern "C" |
---|
4708 | #endif |
---|
4709 | char cosd (); |
---|
4710 | int |
---|
4711 | main () |
---|
4712 | { |
---|
4713 | return cosd (); |
---|
4714 | ; |
---|
4715 | return 0; |
---|
4716 | } |
---|
4717 | _ACEOF |
---|
4718 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4719 | ac_cv_lib_sunmath_cosd=yes |
---|
4720 | else |
---|
4721 | ac_cv_lib_sunmath_cosd=no |
---|
4722 | fi |
---|
4723 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4724 | conftest$ac_exeext conftest.$ac_ext |
---|
4725 | LIBS=$ac_check_lib_save_LIBS |
---|
4726 | fi |
---|
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_cosd" >&5 |
---|
4728 | $as_echo "$ac_cv_lib_sunmath_cosd" >&6; } |
---|
4729 | if test "x$ac_cv_lib_sunmath_cosd" = xyes; then : |
---|
4730 | EXTRAPGLIB="-lsunmath $EXTRAPGLIB" |
---|
4731 | fi |
---|
4732 | |
---|
4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iand_ in -lM77" >&5 |
---|
4734 | $as_echo_n "checking for iand_ in -lM77... " >&6; } |
---|
4735 | if ${ac_cv_lib_M77_iand_+:} false; then : |
---|
4736 | $as_echo_n "(cached) " >&6 |
---|
4737 | else |
---|
4738 | ac_check_lib_save_LIBS=$LIBS |
---|
4739 | LIBS="-lM77 $EXTRAPGLIB $LIBS $LIBS" |
---|
4740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4741 | /* end confdefs.h. */ |
---|
4742 | |
---|
4743 | /* Override any GCC internal prototype to avoid an error. |
---|
4744 | Use char because int might match the return type of a GCC |
---|
4745 | builtin and then its argument prototype would still apply. */ |
---|
4746 | #ifdef __cplusplus |
---|
4747 | extern "C" |
---|
4748 | #endif |
---|
4749 | char iand_ (); |
---|
4750 | int |
---|
4751 | main () |
---|
4752 | { |
---|
4753 | return iand_ (); |
---|
4754 | ; |
---|
4755 | return 0; |
---|
4756 | } |
---|
4757 | _ACEOF |
---|
4758 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4759 | ac_cv_lib_M77_iand_=yes |
---|
4760 | else |
---|
4761 | ac_cv_lib_M77_iand_=no |
---|
4762 | fi |
---|
4763 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4764 | conftest$ac_exeext conftest.$ac_ext |
---|
4765 | LIBS=$ac_check_lib_save_LIBS |
---|
4766 | fi |
---|
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_M77_iand_" >&5 |
---|
4768 | $as_echo "$ac_cv_lib_M77_iand_" >&6; } |
---|
4769 | if test "x$ac_cv_lib_M77_iand_" = xyes; then : |
---|
4770 | EXTRAPGLIB="-lM77 $EXTRAPGLIB" |
---|
4771 | fi |
---|
4772 | |
---|
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for f77_init in -lF77" >&5 |
---|
4774 | $as_echo_n "checking for f77_init in -lF77... " >&6; } |
---|
4775 | if ${ac_cv_lib_F77_f77_init+:} false; then : |
---|
4776 | $as_echo_n "(cached) " >&6 |
---|
4777 | else |
---|
4778 | ac_check_lib_save_LIBS=$LIBS |
---|
4779 | LIBS="-lF77 $EXTRAPGLIB $LIBS $LIBS" |
---|
4780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4781 | /* end confdefs.h. */ |
---|
4782 | |
---|
4783 | /* Override any GCC internal prototype to avoid an error. |
---|
4784 | Use char because int might match the return type of a GCC |
---|
4785 | builtin and then its argument prototype would still apply. */ |
---|
4786 | #ifdef __cplusplus |
---|
4787 | extern "C" |
---|
4788 | #endif |
---|
4789 | char f77_init (); |
---|
4790 | int |
---|
4791 | main () |
---|
4792 | { |
---|
4793 | return f77_init (); |
---|
4794 | ; |
---|
4795 | return 0; |
---|
4796 | } |
---|
4797 | _ACEOF |
---|
4798 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4799 | ac_cv_lib_F77_f77_init=yes |
---|
4800 | else |
---|
4801 | ac_cv_lib_F77_f77_init=no |
---|
4802 | fi |
---|
4803 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4804 | conftest$ac_exeext conftest.$ac_ext |
---|
4805 | LIBS=$ac_check_lib_save_LIBS |
---|
4806 | fi |
---|
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_F77_f77_init" >&5 |
---|
4808 | $as_echo "$ac_cv_lib_F77_f77_init" >&6; } |
---|
4809 | if test "x$ac_cv_lib_F77_f77_init" = xyes; then : |
---|
4810 | EXTRAPGLIB="-lF77 $EXTRAPGLIB" |
---|
4811 | fi |
---|
4812 | |
---|
4813 | |
---|
4814 | # Search for X11 includes and libraries. |
---|
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
4816 | $as_echo_n "checking for X... " >&6; } |
---|
4817 | |
---|
4818 | |
---|
4819 | # Check whether --with-x was given. |
---|
4820 | if test "${with_x+set}" = set; then : |
---|
4821 | withval=$with_x; |
---|
4822 | fi |
---|
4823 | |
---|
4824 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
4825 | if test "x$with_x" = xno; then |
---|
4826 | # The user explicitly disabled X. |
---|
4827 | have_x=disabled |
---|
4828 | else |
---|
4829 | case $x_includes,$x_libraries in #( |
---|
4830 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
4831 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
4832 | $as_echo_n "(cached) " >&6 |
---|
4833 | else |
---|
4834 | # One or both of the vars are not set, and there is no cached value. |
---|
4835 | ac_x_includes=no ac_x_libraries=no |
---|
4836 | rm -f -r conftest.dir |
---|
4837 | if mkdir conftest.dir; then |
---|
4838 | cd conftest.dir |
---|
4839 | cat >Imakefile <<'_ACEOF' |
---|
4840 | incroot: |
---|
4841 | @echo incroot='${INCROOT}' |
---|
4842 | usrlibdir: |
---|
4843 | @echo usrlibdir='${USRLIBDIR}' |
---|
4844 | libdir: |
---|
4845 | @echo libdir='${LIBDIR}' |
---|
4846 | _ACEOF |
---|
4847 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
4848 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4849 | for ac_var in incroot usrlibdir libdir; do |
---|
4850 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
4851 | done |
---|
4852 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
4853 | for ac_extension in a so sl dylib la dll; do |
---|
4854 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
4855 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
4856 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
4857 | fi |
---|
4858 | done |
---|
4859 | # Screen out bogus values from the imake configuration. They are |
---|
4860 | # bogus both because they are the default anyway, and because |
---|
4861 | # using them would break gcc on systems where it needs fixed includes. |
---|
4862 | case $ac_im_incroot in |
---|
4863 | /usr/include) ac_x_includes= ;; |
---|
4864 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
4865 | esac |
---|
4866 | case $ac_im_usrlibdir in |
---|
4867 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
4868 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
4869 | esac |
---|
4870 | fi |
---|
4871 | cd .. |
---|
4872 | rm -f -r conftest.dir |
---|
4873 | fi |
---|
4874 | |
---|
4875 | # Standard set of common directories for X headers. |
---|
4876 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
4877 | ac_x_header_dirs=' |
---|
4878 | /usr/X11/include |
---|
4879 | /usr/X11R7/include |
---|
4880 | /usr/X11R6/include |
---|
4881 | /usr/X11R5/include |
---|
4882 | /usr/X11R4/include |
---|
4883 | |
---|
4884 | /usr/include/X11 |
---|
4885 | /usr/include/X11R7 |
---|
4886 | /usr/include/X11R6 |
---|
4887 | /usr/include/X11R5 |
---|
4888 | /usr/include/X11R4 |
---|
4889 | |
---|
4890 | /usr/local/X11/include |
---|
4891 | /usr/local/X11R7/include |
---|
4892 | /usr/local/X11R6/include |
---|
4893 | /usr/local/X11R5/include |
---|
4894 | /usr/local/X11R4/include |
---|
4895 | |
---|
4896 | /usr/local/include/X11 |
---|
4897 | /usr/local/include/X11R7 |
---|
4898 | /usr/local/include/X11R6 |
---|
4899 | /usr/local/include/X11R5 |
---|
4900 | /usr/local/include/X11R4 |
---|
4901 | |
---|
4902 | /usr/X386/include |
---|
4903 | /usr/x386/include |
---|
4904 | /usr/XFree86/include/X11 |
---|
4905 | |
---|
4906 | /usr/include |
---|
4907 | /usr/local/include |
---|
4908 | /usr/unsupported/include |
---|
4909 | /usr/athena/include |
---|
4910 | /usr/local/x11r5/include |
---|
4911 | /usr/lpp/Xamples/include |
---|
4912 | |
---|
4913 | /usr/openwin/include |
---|
4914 | /usr/openwin/share/include' |
---|
4915 | |
---|
4916 | if test "$ac_x_includes" = no; then |
---|
4917 | # Guess where to find include files, by looking for Xlib.h. |
---|
4918 | # First, try using that file with no special directory specified. |
---|
4919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4920 | /* end confdefs.h. */ |
---|
4921 | #include <X11/Xlib.h> |
---|
4922 | _ACEOF |
---|
4923 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4924 | # We can compile using X headers with no special include directory. |
---|
4925 | ac_x_includes= |
---|
4926 | else |
---|
4927 | for ac_dir in $ac_x_header_dirs; do |
---|
4928 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
4929 | ac_x_includes=$ac_dir |
---|
4930 | break |
---|
4931 | fi |
---|
4932 | done |
---|
4933 | fi |
---|
4934 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4935 | fi # $ac_x_includes = no |
---|
4936 | |
---|
4937 | if test "$ac_x_libraries" = no; then |
---|
4938 | # Check for the libraries. |
---|
4939 | # See if we find them without any special options. |
---|
4940 | # Don't add to $LIBS permanently. |
---|
4941 | ac_save_LIBS=$LIBS |
---|
4942 | LIBS="-lX11 $LIBS" |
---|
4943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4944 | /* end confdefs.h. */ |
---|
4945 | #include <X11/Xlib.h> |
---|
4946 | int |
---|
4947 | main () |
---|
4948 | { |
---|
4949 | XrmInitialize () |
---|
4950 | ; |
---|
4951 | return 0; |
---|
4952 | } |
---|
4953 | _ACEOF |
---|
4954 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4955 | LIBS=$ac_save_LIBS |
---|
4956 | # We can link X programs with no special library path. |
---|
4957 | ac_x_libraries= |
---|
4958 | else |
---|
4959 | LIBS=$ac_save_LIBS |
---|
4960 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
4961 | do |
---|
4962 | # Don't even attempt the hair of trying to link an X program! |
---|
4963 | for ac_extension in a so sl dylib la dll; do |
---|
4964 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
4965 | ac_x_libraries=$ac_dir |
---|
4966 | break 2 |
---|
4967 | fi |
---|
4968 | done |
---|
4969 | done |
---|
4970 | fi |
---|
4971 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4972 | conftest$ac_exeext conftest.$ac_ext |
---|
4973 | fi # $ac_x_libraries = no |
---|
4974 | |
---|
4975 | case $ac_x_includes,$ac_x_libraries in #( |
---|
4976 | no,* | *,no | *\'*) |
---|
4977 | # Didn't find X, or a directory has "'" in its name. |
---|
4978 | ac_cv_have_x="have_x=no";; #( |
---|
4979 | *) |
---|
4980 | # Record where we found X for the cache. |
---|
4981 | ac_cv_have_x="have_x=yes\ |
---|
4982 | ac_x_includes='$ac_x_includes'\ |
---|
4983 | ac_x_libraries='$ac_x_libraries'" |
---|
4984 | esac |
---|
4985 | fi |
---|
4986 | ;; #( |
---|
4987 | *) have_x=yes;; |
---|
4988 | esac |
---|
4989 | eval "$ac_cv_have_x" |
---|
4990 | fi # $with_x != no |
---|
4991 | |
---|
4992 | if test "$have_x" != yes; then |
---|
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
4994 | $as_echo "$have_x" >&6; } |
---|
4995 | no_x=yes |
---|
4996 | else |
---|
4997 | # If each of the values was on the command line, it overrides each guess. |
---|
4998 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
4999 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
5000 | # Update the cache value to reflect the command line values. |
---|
5001 | ac_cv_have_x="have_x=yes\ |
---|
5002 | ac_x_includes='$x_includes'\ |
---|
5003 | ac_x_libraries='$x_libraries'" |
---|
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
5005 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
5006 | fi |
---|
5007 | |
---|
5008 | if test "$no_x" = yes; then |
---|
5009 | # Not all programs may use this symbol, but it does not hurt to define it. |
---|
5010 | |
---|
5011 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
---|
5012 | |
---|
5013 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
---|
5014 | else |
---|
5015 | if test -n "$x_includes"; then |
---|
5016 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
---|
5017 | fi |
---|
5018 | |
---|
5019 | # It would also be nice to do this for all -L options, not just this one. |
---|
5020 | if test -n "$x_libraries"; then |
---|
5021 | X_LIBS="$X_LIBS -L$x_libraries" |
---|
5022 | # For Solaris; some versions of Sun CC require a space after -R and |
---|
5023 | # others require no space. Words are not sufficient . . . . |
---|
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
---|
5025 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
---|
5026 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
---|
5027 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
---|
5028 | ac_c_werror_flag=yes |
---|
5029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5030 | /* end confdefs.h. */ |
---|
5031 | |
---|
5032 | int |
---|
5033 | main () |
---|
5034 | { |
---|
5035 | |
---|
5036 | ; |
---|
5037 | return 0; |
---|
5038 | } |
---|
5039 | _ACEOF |
---|
5040 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5042 | $as_echo "no" >&6; } |
---|
5043 | X_LIBS="$X_LIBS -R$x_libraries" |
---|
5044 | else |
---|
5045 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
---|
5046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5047 | /* end confdefs.h. */ |
---|
5048 | |
---|
5049 | int |
---|
5050 | main () |
---|
5051 | { |
---|
5052 | |
---|
5053 | ; |
---|
5054 | return 0; |
---|
5055 | } |
---|
5056 | _ACEOF |
---|
5057 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5059 | $as_echo "yes" >&6; } |
---|
5060 | X_LIBS="$X_LIBS -R $x_libraries" |
---|
5061 | else |
---|
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
---|
5063 | $as_echo "neither works" >&6; } |
---|
5064 | fi |
---|
5065 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5066 | conftest$ac_exeext conftest.$ac_ext |
---|
5067 | fi |
---|
5068 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5069 | conftest$ac_exeext conftest.$ac_ext |
---|
5070 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
---|
5071 | LIBS=$ac_xsave_LIBS |
---|
5072 | fi |
---|
5073 | |
---|
5074 | # Check for system-dependent libraries X programs must link with. |
---|
5075 | # Do this before checking for the system-independent R6 libraries |
---|
5076 | # (-lICE), since we may need -lsocket or whatever for X linking. |
---|
5077 | |
---|
5078 | if test "$ISC" = yes; then |
---|
5079 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
---|
5080 | else |
---|
5081 | # Martyn Johnson says this is needed for Ultrix, if the X |
---|
5082 | # libraries were built with DECnet support. And Karl Berry says |
---|
5083 | # the Alpha needs dnet_stub (dnet does not exist). |
---|
5084 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
---|
5085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5086 | /* end confdefs.h. */ |
---|
5087 | |
---|
5088 | /* Override any GCC internal prototype to avoid an error. |
---|
5089 | Use char because int might match the return type of a GCC |
---|
5090 | builtin and then its argument prototype would still apply. */ |
---|
5091 | #ifdef __cplusplus |
---|
5092 | extern "C" |
---|
5093 | #endif |
---|
5094 | char XOpenDisplay (); |
---|
5095 | int |
---|
5096 | main () |
---|
5097 | { |
---|
5098 | return XOpenDisplay (); |
---|
5099 | ; |
---|
5100 | return 0; |
---|
5101 | } |
---|
5102 | _ACEOF |
---|
5103 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5104 | |
---|
5105 | else |
---|
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
---|
5107 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
---|
5108 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
---|
5109 | $as_echo_n "(cached) " >&6 |
---|
5110 | else |
---|
5111 | ac_check_lib_save_LIBS=$LIBS |
---|
5112 | LIBS="-ldnet $LIBS" |
---|
5113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5114 | /* end confdefs.h. */ |
---|
5115 | |
---|
5116 | /* Override any GCC internal prototype to avoid an error. |
---|
5117 | Use char because int might match the return type of a GCC |
---|
5118 | builtin and then its argument prototype would still apply. */ |
---|
5119 | #ifdef __cplusplus |
---|
5120 | extern "C" |
---|
5121 | #endif |
---|
5122 | char dnet_ntoa (); |
---|
5123 | int |
---|
5124 | main () |
---|
5125 | { |
---|
5126 | return dnet_ntoa (); |
---|
5127 | ; |
---|
5128 | return 0; |
---|
5129 | } |
---|
5130 | _ACEOF |
---|
5131 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5132 | ac_cv_lib_dnet_dnet_ntoa=yes |
---|
5133 | else |
---|
5134 | ac_cv_lib_dnet_dnet_ntoa=no |
---|
5135 | fi |
---|
5136 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5137 | conftest$ac_exeext conftest.$ac_ext |
---|
5138 | LIBS=$ac_check_lib_save_LIBS |
---|
5139 | fi |
---|
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
---|
5141 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
---|
5142 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
---|
5143 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
---|
5144 | fi |
---|
5145 | |
---|
5146 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
---|
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
---|
5148 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
---|
5149 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
---|
5150 | $as_echo_n "(cached) " >&6 |
---|
5151 | else |
---|
5152 | ac_check_lib_save_LIBS=$LIBS |
---|
5153 | LIBS="-ldnet_stub $LIBS" |
---|
5154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5155 | /* end confdefs.h. */ |
---|
5156 | |
---|
5157 | /* Override any GCC internal prototype to avoid an error. |
---|
5158 | Use char because int might match the return type of a GCC |
---|
5159 | builtin and then its argument prototype would still apply. */ |
---|
5160 | #ifdef __cplusplus |
---|
5161 | extern "C" |
---|
5162 | #endif |
---|
5163 | char dnet_ntoa (); |
---|
5164 | int |
---|
5165 | main () |
---|
5166 | { |
---|
5167 | return dnet_ntoa (); |
---|
5168 | ; |
---|
5169 | return 0; |
---|
5170 | } |
---|
5171 | _ACEOF |
---|
5172 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5173 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
---|
5174 | else |
---|
5175 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
---|
5176 | fi |
---|
5177 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5178 | conftest$ac_exeext conftest.$ac_ext |
---|
5179 | LIBS=$ac_check_lib_save_LIBS |
---|
5180 | fi |
---|
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
---|
5182 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
---|
5183 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
---|
5184 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
---|
5185 | fi |
---|
5186 | |
---|
5187 | fi |
---|
5188 | fi |
---|
5189 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5190 | conftest$ac_exeext conftest.$ac_ext |
---|
5191 | LIBS="$ac_xsave_LIBS" |
---|
5192 | |
---|
5193 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
---|
5194 | # to get the SysV transport functions. |
---|
5195 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
---|
5196 | # needs -lnsl. |
---|
5197 | # The nsl library prevents programs from opening the X display |
---|
5198 | # on Irix 5.2, according to T.E. Dickey. |
---|
5199 | # The functions gethostbyname, getservbyname, and inet_addr are |
---|
5200 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
---|
5201 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
---|
5202 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
---|
5203 | |
---|
5204 | fi |
---|
5205 | |
---|
5206 | if test $ac_cv_func_gethostbyname = no; then |
---|
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
---|
5208 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
---|
5209 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
---|
5210 | $as_echo_n "(cached) " >&6 |
---|
5211 | else |
---|
5212 | ac_check_lib_save_LIBS=$LIBS |
---|
5213 | LIBS="-lnsl $LIBS" |
---|
5214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5215 | /* end confdefs.h. */ |
---|
5216 | |
---|
5217 | /* Override any GCC internal prototype to avoid an error. |
---|
5218 | Use char because int might match the return type of a GCC |
---|
5219 | builtin and then its argument prototype would still apply. */ |
---|
5220 | #ifdef __cplusplus |
---|
5221 | extern "C" |
---|
5222 | #endif |
---|
5223 | char gethostbyname (); |
---|
5224 | int |
---|
5225 | main () |
---|
5226 | { |
---|
5227 | return gethostbyname (); |
---|
5228 | ; |
---|
5229 | return 0; |
---|
5230 | } |
---|
5231 | _ACEOF |
---|
5232 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5233 | ac_cv_lib_nsl_gethostbyname=yes |
---|
5234 | else |
---|
5235 | ac_cv_lib_nsl_gethostbyname=no |
---|
5236 | fi |
---|
5237 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5238 | conftest$ac_exeext conftest.$ac_ext |
---|
5239 | LIBS=$ac_check_lib_save_LIBS |
---|
5240 | fi |
---|
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
---|
5242 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
---|
5243 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
---|
5244 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
---|
5245 | fi |
---|
5246 | |
---|
5247 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
---|
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
---|
5249 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
---|
5250 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
---|
5251 | $as_echo_n "(cached) " >&6 |
---|
5252 | else |
---|
5253 | ac_check_lib_save_LIBS=$LIBS |
---|
5254 | LIBS="-lbsd $LIBS" |
---|
5255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5256 | /* end confdefs.h. */ |
---|
5257 | |
---|
5258 | /* Override any GCC internal prototype to avoid an error. |
---|
5259 | Use char because int might match the return type of a GCC |
---|
5260 | builtin and then its argument prototype would still apply. */ |
---|
5261 | #ifdef __cplusplus |
---|
5262 | extern "C" |
---|
5263 | #endif |
---|
5264 | char gethostbyname (); |
---|
5265 | int |
---|
5266 | main () |
---|
5267 | { |
---|
5268 | return gethostbyname (); |
---|
5269 | ; |
---|
5270 | return 0; |
---|
5271 | } |
---|
5272 | _ACEOF |
---|
5273 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5274 | ac_cv_lib_bsd_gethostbyname=yes |
---|
5275 | else |
---|
5276 | ac_cv_lib_bsd_gethostbyname=no |
---|
5277 | fi |
---|
5278 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5279 | conftest$ac_exeext conftest.$ac_ext |
---|
5280 | LIBS=$ac_check_lib_save_LIBS |
---|
5281 | fi |
---|
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
---|
5283 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
---|
5284 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
---|
5285 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
---|
5286 | fi |
---|
5287 | |
---|
5288 | fi |
---|
5289 | fi |
---|
5290 | |
---|
5291 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
---|
5292 | # socket/setsockopt and other routines are undefined under SCO ODT |
---|
5293 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
---|
5294 | # on later versions), says Simon Leinen: it contains gethostby* |
---|
5295 | # variants that don't use the name server (or something). -lsocket |
---|
5296 | # must be given before -lnsl if both are needed. We assume that |
---|
5297 | # if connect needs -lnsl, so does gethostbyname. |
---|
5298 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
---|
5299 | if test "x$ac_cv_func_connect" = xyes; then : |
---|
5300 | |
---|
5301 | fi |
---|
5302 | |
---|
5303 | if test $ac_cv_func_connect = no; then |
---|
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
---|
5305 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
---|
5306 | if ${ac_cv_lib_socket_connect+:} false; then : |
---|
5307 | $as_echo_n "(cached) " >&6 |
---|
5308 | else |
---|
5309 | ac_check_lib_save_LIBS=$LIBS |
---|
5310 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
---|
5311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5312 | /* end confdefs.h. */ |
---|
5313 | |
---|
5314 | /* Override any GCC internal prototype to avoid an error. |
---|
5315 | Use char because int might match the return type of a GCC |
---|
5316 | builtin and then its argument prototype would still apply. */ |
---|
5317 | #ifdef __cplusplus |
---|
5318 | extern "C" |
---|
5319 | #endif |
---|
5320 | char connect (); |
---|
5321 | int |
---|
5322 | main () |
---|
5323 | { |
---|
5324 | return connect (); |
---|
5325 | ; |
---|
5326 | return 0; |
---|
5327 | } |
---|
5328 | _ACEOF |
---|
5329 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5330 | ac_cv_lib_socket_connect=yes |
---|
5331 | else |
---|
5332 | ac_cv_lib_socket_connect=no |
---|
5333 | fi |
---|
5334 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5335 | conftest$ac_exeext conftest.$ac_ext |
---|
5336 | LIBS=$ac_check_lib_save_LIBS |
---|
5337 | fi |
---|
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
---|
5339 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
---|
5340 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
---|
5341 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
---|
5342 | fi |
---|
5343 | |
---|
5344 | fi |
---|
5345 | |
---|
5346 | # Guillermo Gomez says -lposix is necessary on A/UX. |
---|
5347 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
---|
5348 | if test "x$ac_cv_func_remove" = xyes; then : |
---|
5349 | |
---|
5350 | fi |
---|
5351 | |
---|
5352 | if test $ac_cv_func_remove = no; then |
---|
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
---|
5354 | $as_echo_n "checking for remove in -lposix... " >&6; } |
---|
5355 | if ${ac_cv_lib_posix_remove+:} false; then : |
---|
5356 | $as_echo_n "(cached) " >&6 |
---|
5357 | else |
---|
5358 | ac_check_lib_save_LIBS=$LIBS |
---|
5359 | LIBS="-lposix $LIBS" |
---|
5360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5361 | /* end confdefs.h. */ |
---|
5362 | |
---|
5363 | /* Override any GCC internal prototype to avoid an error. |
---|
5364 | Use char because int might match the return type of a GCC |
---|
5365 | builtin and then its argument prototype would still apply. */ |
---|
5366 | #ifdef __cplusplus |
---|
5367 | extern "C" |
---|
5368 | #endif |
---|
5369 | char remove (); |
---|
5370 | int |
---|
5371 | main () |
---|
5372 | { |
---|
5373 | return remove (); |
---|
5374 | ; |
---|
5375 | return 0; |
---|
5376 | } |
---|
5377 | _ACEOF |
---|
5378 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5379 | ac_cv_lib_posix_remove=yes |
---|
5380 | else |
---|
5381 | ac_cv_lib_posix_remove=no |
---|
5382 | fi |
---|
5383 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5384 | conftest$ac_exeext conftest.$ac_ext |
---|
5385 | LIBS=$ac_check_lib_save_LIBS |
---|
5386 | fi |
---|
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
---|
5388 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
---|
5389 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
---|
5390 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
---|
5391 | fi |
---|
5392 | |
---|
5393 | fi |
---|
5394 | |
---|
5395 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
---|
5396 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
---|
5397 | if test "x$ac_cv_func_shmat" = xyes; then : |
---|
5398 | |
---|
5399 | fi |
---|
5400 | |
---|
5401 | if test $ac_cv_func_shmat = no; then |
---|
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
---|
5403 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
---|
5404 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
---|
5405 | $as_echo_n "(cached) " >&6 |
---|
5406 | else |
---|
5407 | ac_check_lib_save_LIBS=$LIBS |
---|
5408 | LIBS="-lipc $LIBS" |
---|
5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5410 | /* end confdefs.h. */ |
---|
5411 | |
---|
5412 | /* Override any GCC internal prototype to avoid an error. |
---|
5413 | Use char because int might match the return type of a GCC |
---|
5414 | builtin and then its argument prototype would still apply. */ |
---|
5415 | #ifdef __cplusplus |
---|
5416 | extern "C" |
---|
5417 | #endif |
---|
5418 | char shmat (); |
---|
5419 | int |
---|
5420 | main () |
---|
5421 | { |
---|
5422 | return shmat (); |
---|
5423 | ; |
---|
5424 | return 0; |
---|
5425 | } |
---|
5426 | _ACEOF |
---|
5427 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5428 | ac_cv_lib_ipc_shmat=yes |
---|
5429 | else |
---|
5430 | ac_cv_lib_ipc_shmat=no |
---|
5431 | fi |
---|
5432 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5433 | conftest$ac_exeext conftest.$ac_ext |
---|
5434 | LIBS=$ac_check_lib_save_LIBS |
---|
5435 | fi |
---|
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
---|
5437 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
---|
5438 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
---|
5439 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
---|
5440 | fi |
---|
5441 | |
---|
5442 | fi |
---|
5443 | fi |
---|
5444 | |
---|
5445 | # Check for libraries that X11R6 Xt/Xaw programs need. |
---|
5446 | ac_save_LDFLAGS=$LDFLAGS |
---|
5447 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
---|
5448 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
---|
5449 | # check for ICE first), but we must link in the order -lSM -lICE or |
---|
5450 | # we get undefined symbols. So assume we have SM if we have ICE. |
---|
5451 | # These have to be linked with before -lX11, unlike the other |
---|
5452 | # libraries we check for below, so use a different variable. |
---|
5453 | # John Interrante, Karl Berry |
---|
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
---|
5455 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
---|
5456 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
---|
5457 | $as_echo_n "(cached) " >&6 |
---|
5458 | else |
---|
5459 | ac_check_lib_save_LIBS=$LIBS |
---|
5460 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
---|
5461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5462 | /* end confdefs.h. */ |
---|
5463 | |
---|
5464 | /* Override any GCC internal prototype to avoid an error. |
---|
5465 | Use char because int might match the return type of a GCC |
---|
5466 | builtin and then its argument prototype would still apply. */ |
---|
5467 | #ifdef __cplusplus |
---|
5468 | extern "C" |
---|
5469 | #endif |
---|
5470 | char IceConnectionNumber (); |
---|
5471 | int |
---|
5472 | main () |
---|
5473 | { |
---|
5474 | return IceConnectionNumber (); |
---|
5475 | ; |
---|
5476 | return 0; |
---|
5477 | } |
---|
5478 | _ACEOF |
---|
5479 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5480 | ac_cv_lib_ICE_IceConnectionNumber=yes |
---|
5481 | else |
---|
5482 | ac_cv_lib_ICE_IceConnectionNumber=no |
---|
5483 | fi |
---|
5484 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5485 | conftest$ac_exeext conftest.$ac_ext |
---|
5486 | LIBS=$ac_check_lib_save_LIBS |
---|
5487 | fi |
---|
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
---|
5489 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
---|
5490 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
---|
5491 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
---|
5492 | fi |
---|
5493 | |
---|
5494 | LDFLAGS=$ac_save_LDFLAGS |
---|
5495 | |
---|
5496 | fi |
---|
5497 | |
---|
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&5 |
---|
5499 | $as_echo "$as_me: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&6;} |
---|
5500 | # returns C compiler flags needed for X to X_CFLAGS and the X linker flags to X_LIBS |
---|
5501 | if test "x$X_LIBS" != x; then |
---|
5502 | LDFLAGS="$LDFLAGS $X_LIBS" |
---|
5503 | EXTRAPGLIB="$X_LIBS $X_PRE_LIBS -lX11 $EXTRAPGLIB" |
---|
5504 | fi |
---|
5505 | |
---|
5506 | # # Add pgplot libraries, if they exist to the lib path |
---|
5507 | # for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
5508 | # AC_CHECK_FILE([$LIBDIR/libcpgplot.a], [PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break]) |
---|
5509 | # done |
---|
5510 | |
---|
5511 | # It is possible that other libraries may be required depending on what |
---|
5512 | # graphics drivers were installed with PGPLOT. |
---|
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
---|
5514 | $as_echo_n "checking for deflate in -lz... " >&6; } |
---|
5515 | if ${ac_cv_lib_z_deflate+:} false; then : |
---|
5516 | $as_echo_n "(cached) " >&6 |
---|
5517 | else |
---|
5518 | ac_check_lib_save_LIBS=$LIBS |
---|
5519 | LIBS="-lz $EXTRAPGLIB $LIBS $LIBS" |
---|
5520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5521 | /* end confdefs.h. */ |
---|
5522 | |
---|
5523 | /* Override any GCC internal prototype to avoid an error. |
---|
5524 | Use char because int might match the return type of a GCC |
---|
5525 | builtin and then its argument prototype would still apply. */ |
---|
5526 | #ifdef __cplusplus |
---|
5527 | extern "C" |
---|
5528 | #endif |
---|
5529 | char deflate (); |
---|
5530 | int |
---|
5531 | main () |
---|
5532 | { |
---|
5533 | return deflate (); |
---|
5534 | ; |
---|
5535 | return 0; |
---|
5536 | } |
---|
5537 | _ACEOF |
---|
5538 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5539 | ac_cv_lib_z_deflate=yes |
---|
5540 | else |
---|
5541 | ac_cv_lib_z_deflate=no |
---|
5542 | fi |
---|
5543 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5544 | conftest$ac_exeext conftest.$ac_ext |
---|
5545 | LIBS=$ac_check_lib_save_LIBS |
---|
5546 | fi |
---|
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
---|
5548 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
---|
5549 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
---|
5550 | EXTRAPGLIB="$EXTRAPGLIB -lz" |
---|
5551 | fi |
---|
5552 | |
---|
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_error in -lpng" >&5 |
---|
5554 | $as_echo_n "checking for png_error in -lpng... " >&6; } |
---|
5555 | if ${ac_cv_lib_png_png_error+:} false; then : |
---|
5556 | $as_echo_n "(cached) " >&6 |
---|
5557 | else |
---|
5558 | ac_check_lib_save_LIBS=$LIBS |
---|
5559 | LIBS="-lpng $EXTRAPGLIB $LIBS $LIBS" |
---|
5560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5561 | /* end confdefs.h. */ |
---|
5562 | |
---|
5563 | /* Override any GCC internal prototype to avoid an error. |
---|
5564 | Use char because int might match the return type of a GCC |
---|
5565 | builtin and then its argument prototype would still apply. */ |
---|
5566 | #ifdef __cplusplus |
---|
5567 | extern "C" |
---|
5568 | #endif |
---|
5569 | char png_error (); |
---|
5570 | int |
---|
5571 | main () |
---|
5572 | { |
---|
5573 | return png_error (); |
---|
5574 | ; |
---|
5575 | return 0; |
---|
5576 | } |
---|
5577 | _ACEOF |
---|
5578 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5579 | ac_cv_lib_png_png_error=yes |
---|
5580 | else |
---|
5581 | ac_cv_lib_png_png_error=no |
---|
5582 | fi |
---|
5583 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5584 | conftest$ac_exeext conftest.$ac_ext |
---|
5585 | LIBS=$ac_check_lib_save_LIBS |
---|
5586 | fi |
---|
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_error" >&5 |
---|
5588 | $as_echo "$ac_cv_lib_png_png_error" >&6; } |
---|
5589 | if test "x$ac_cv_lib_png_png_error" = xyes; then : |
---|
5590 | EXTRAPGLIB="$EXTRAPGLIB -lpng" |
---|
5591 | fi |
---|
5592 | |
---|
5593 | |
---|
5594 | ac_ext=f |
---|
5595 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5596 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5597 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5598 | |
---|
5599 | |
---|
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgopen in -lpgplot" >&5 |
---|
5601 | $as_echo_n "checking for pgopen in -lpgplot... " >&6; } |
---|
5602 | if ${ac_cv_lib_pgplot_pgopen+:} false; then : |
---|
5603 | $as_echo_n "(cached) " >&6 |
---|
5604 | else |
---|
5605 | ac_check_lib_save_LIBS=$LIBS |
---|
5606 | LIBS="-lpgplot $PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
5607 | cat > conftest.$ac_ext <<_ACEOF |
---|
5608 | program main |
---|
5609 | call pgopen |
---|
5610 | end |
---|
5611 | _ACEOF |
---|
5612 | if ac_fn_f77_try_link "$LINENO"; then : |
---|
5613 | ac_cv_lib_pgplot_pgopen=yes |
---|
5614 | else |
---|
5615 | ac_cv_lib_pgplot_pgopen=no |
---|
5616 | fi |
---|
5617 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5618 | conftest$ac_exeext conftest.$ac_ext |
---|
5619 | LIBS=$ac_check_lib_save_LIBS |
---|
5620 | fi |
---|
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgplot_pgopen" >&5 |
---|
5622 | $as_echo "$ac_cv_lib_pgplot_pgopen" >&6; } |
---|
5623 | if test "x$ac_cv_lib_pgplot_pgopen" = xyes; then : |
---|
5624 | PGPLOTLIB="-lpgplot" |
---|
5625 | fi |
---|
5626 | |
---|
5627 | ac_ext=c |
---|
5628 | ac_cpp='$CPP $CPPFLAGS' |
---|
5629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5632 | |
---|
5633 | # Checks for extra libraries needed by PGPLOT -- will add -lg2c -lstdc++ to $LIBS |
---|
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gerror_ in -lg2c" >&5 |
---|
5635 | $as_echo_n "checking for gerror_ in -lg2c... " >&6; } |
---|
5636 | if ${ac_cv_lib_g2c_gerror_+:} false; then : |
---|
5637 | $as_echo_n "(cached) " >&6 |
---|
5638 | else |
---|
5639 | ac_check_lib_save_LIBS=$LIBS |
---|
5640 | LIBS="-lg2c $LIBS" |
---|
5641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5642 | /* end confdefs.h. */ |
---|
5643 | |
---|
5644 | /* Override any GCC internal prototype to avoid an error. |
---|
5645 | Use char because int might match the return type of a GCC |
---|
5646 | builtin and then its argument prototype would still apply. */ |
---|
5647 | #ifdef __cplusplus |
---|
5648 | extern "C" |
---|
5649 | #endif |
---|
5650 | char gerror_ (); |
---|
5651 | int |
---|
5652 | main () |
---|
5653 | { |
---|
5654 | return gerror_ (); |
---|
5655 | ; |
---|
5656 | return 0; |
---|
5657 | } |
---|
5658 | _ACEOF |
---|
5659 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5660 | ac_cv_lib_g2c_gerror_=yes |
---|
5661 | else |
---|
5662 | ac_cv_lib_g2c_gerror_=no |
---|
5663 | fi |
---|
5664 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5665 | conftest$ac_exeext conftest.$ac_ext |
---|
5666 | LIBS=$ac_check_lib_save_LIBS |
---|
5667 | fi |
---|
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
5669 | $as_echo "$ac_cv_lib_g2c_gerror_" >&6; } |
---|
5670 | if test "x$ac_cv_lib_g2c_gerror_" = xyes; then : |
---|
5671 | cat >>confdefs.h <<_ACEOF |
---|
5672 | #define HAVE_LIBG2C 1 |
---|
5673 | _ACEOF |
---|
5674 | |
---|
5675 | LIBS="-lg2c $LIBS" |
---|
5676 | |
---|
5677 | fi |
---|
5678 | |
---|
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 |
---|
5680 | $as_echo_n "checking for main in -lstdc++... " >&6; } |
---|
5681 | if ${ac_cv_lib_stdcpp_main+:} false; then : |
---|
5682 | $as_echo_n "(cached) " >&6 |
---|
5683 | else |
---|
5684 | ac_check_lib_save_LIBS=$LIBS |
---|
5685 | LIBS="-lstdc++ $LIBS" |
---|
5686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5687 | /* end confdefs.h. */ |
---|
5688 | |
---|
5689 | |
---|
5690 | int |
---|
5691 | main () |
---|
5692 | { |
---|
5693 | return main (); |
---|
5694 | ; |
---|
5695 | return 0; |
---|
5696 | } |
---|
5697 | _ACEOF |
---|
5698 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5699 | ac_cv_lib_stdcpp_main=yes |
---|
5700 | else |
---|
5701 | ac_cv_lib_stdcpp_main=no |
---|
5702 | fi |
---|
5703 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5704 | conftest$ac_exeext conftest.$ac_ext |
---|
5705 | LIBS=$ac_check_lib_save_LIBS |
---|
5706 | fi |
---|
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
5708 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; } |
---|
5709 | if test "x$ac_cv_lib_stdcpp_main" = xyes; then : |
---|
5710 | cat >>confdefs.h <<_ACEOF |
---|
5711 | #define HAVE_LIBSTDC__ 1 |
---|
5712 | _ACEOF |
---|
5713 | |
---|
5714 | LIBS="-lstdc++ $LIBS" |
---|
5715 | |
---|
5716 | fi |
---|
5717 | |
---|
5718 | if test "x$F77" = xgfortran; then |
---|
5719 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&5 |
---|
5721 | $as_echo "$as_me: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&6;} |
---|
5722 | else |
---|
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgopen in -lcpgplot" >&5 |
---|
5724 | $as_echo_n "checking for cpgopen in -lcpgplot... " >&6; } |
---|
5725 | if ${ac_cv_lib_cpgplot_cpgopen+:} false; then : |
---|
5726 | $as_echo_n "(cached) " >&6 |
---|
5727 | else |
---|
5728 | ac_check_lib_save_LIBS=$LIBS |
---|
5729 | LIBS="-lcpgplot $PGPLOTLIB $LIBS $EXTRAPGLIB $LIBS" |
---|
5730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5731 | /* end confdefs.h. */ |
---|
5732 | |
---|
5733 | /* Override any GCC internal prototype to avoid an error. |
---|
5734 | Use char because int might match the return type of a GCC |
---|
5735 | builtin and then its argument prototype would still apply. */ |
---|
5736 | #ifdef __cplusplus |
---|
5737 | extern "C" |
---|
5738 | #endif |
---|
5739 | char cpgopen (); |
---|
5740 | int |
---|
5741 | main () |
---|
5742 | { |
---|
5743 | return cpgopen (); |
---|
5744 | ; |
---|
5745 | return 0; |
---|
5746 | } |
---|
5747 | _ACEOF |
---|
5748 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5749 | ac_cv_lib_cpgplot_cpgopen=yes |
---|
5750 | else |
---|
5751 | ac_cv_lib_cpgplot_cpgopen=no |
---|
5752 | fi |
---|
5753 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5754 | conftest$ac_exeext conftest.$ac_ext |
---|
5755 | LIBS=$ac_check_lib_save_LIBS |
---|
5756 | fi |
---|
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpgplot_cpgopen" >&5 |
---|
5758 | $as_echo "$ac_cv_lib_cpgplot_cpgopen" >&6; } |
---|
5759 | if test "x$ac_cv_lib_cpgplot_cpgopen" = xyes; then : |
---|
5760 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
5761 | fi |
---|
5762 | |
---|
5763 | fi |
---|
5764 | |
---|
5765 | # If PGPLOT is not present, we give a warning message but still continue. |
---|
5766 | # The compilation is able to work without the PGPLOT-dependent files. |
---|
5767 | if test "x$PGPLOTLIB" = x; then |
---|
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
5769 | ------------------------------------------------------- |
---|
5770 | WARNING! PGPLOT could not be found. |
---|
5771 | Compiling Duchamp without graphics capabilities. |
---|
5772 | -------------------------------------------------------" >&5 |
---|
5773 | $as_echo "$as_me: |
---|
5774 | ------------------------------------------------------- |
---|
5775 | WARNING! PGPLOT could not be found. |
---|
5776 | Compiling Duchamp without graphics capabilities. |
---|
5777 | -------------------------------------------------------" >&6;} |
---|
5778 | #We have no pgplot, so we just link with g++ (or equivalent) |
---|
5779 | LINKER=$CXX |
---|
5780 | else |
---|
5781 | #We are using pgplot, so link with the fortran compiler. |
---|
5782 | LINKER=$F77 |
---|
5783 | PGPLOTLIB="$PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: PGPLOT appears to be available." >&5 |
---|
5785 | $as_echo "$as_me: PGPLOT appears to be available." >&6;} |
---|
5786 | |
---|
5787 | $as_echo "#define HAVE_PGPLOT 1" >>confdefs.h |
---|
5788 | |
---|
5789 | for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
5790 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcpgplot.a" | $as_tr_sh` |
---|
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcpgplot.a" >&5 |
---|
5792 | $as_echo_n "checking for $LIBDIR/libcpgplot.a... " >&6; } |
---|
5793 | if eval \${$as_ac_File+:} false; then : |
---|
5794 | $as_echo_n "(cached) " >&6 |
---|
5795 | else |
---|
5796 | test "$cross_compiling" = yes && |
---|
5797 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
5798 | if test -r "$LIBDIR/libcpgplot.a"; then |
---|
5799 | eval "$as_ac_File=yes" |
---|
5800 | else |
---|
5801 | eval "$as_ac_File=no" |
---|
5802 | fi |
---|
5803 | fi |
---|
5804 | eval ac_res=\$$as_ac_File |
---|
5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
5806 | $as_echo "$ac_res" >&6; } |
---|
5807 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
5808 | PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break |
---|
5809 | fi |
---|
5810 | |
---|
5811 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/lib/libcpgplot.a" | $as_tr_sh` |
---|
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/lib/libcpgplot.a" >&5 |
---|
5813 | $as_echo_n "checking for $LIBDIR/lib/libcpgplot.a... " >&6; } |
---|
5814 | if eval \${$as_ac_File+:} false; then : |
---|
5815 | $as_echo_n "(cached) " >&6 |
---|
5816 | else |
---|
5817 | test "$cross_compiling" = yes && |
---|
5818 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
5819 | if test -r "$LIBDIR/lib/libcpgplot.a"; then |
---|
5820 | eval "$as_ac_File=yes" |
---|
5821 | else |
---|
5822 | eval "$as_ac_File=no" |
---|
5823 | fi |
---|
5824 | fi |
---|
5825 | eval ac_res=\$$as_ac_File |
---|
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
5827 | $as_echo "$ac_res" >&6; } |
---|
5828 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
5829 | PGPLOTLIB="-L$LIBDIR/lib $PGPLOTLIB"; break |
---|
5830 | fi |
---|
5831 | |
---|
5832 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/pgplot/libcpgplot.a" | $as_tr_sh` |
---|
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/pgplot/libcpgplot.a" >&5 |
---|
5834 | $as_echo_n "checking for $LIBDIR/pgplot/libcpgplot.a... " >&6; } |
---|
5835 | if eval \${$as_ac_File+:} false; then : |
---|
5836 | $as_echo_n "(cached) " >&6 |
---|
5837 | else |
---|
5838 | test "$cross_compiling" = yes && |
---|
5839 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
5840 | if test -r "$LIBDIR/pgplot/libcpgplot.a"; then |
---|
5841 | eval "$as_ac_File=yes" |
---|
5842 | else |
---|
5843 | eval "$as_ac_File=no" |
---|
5844 | fi |
---|
5845 | fi |
---|
5846 | eval ac_res=\$$as_ac_File |
---|
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
5848 | $as_echo "$ac_res" >&6; } |
---|
5849 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
5850 | PGPLOTLIB="-L$LIBDIR/pgplot $PGPLOTLIB"; break |
---|
5851 | fi |
---|
5852 | |
---|
5853 | done |
---|
5854 | # if test "x$F77" = xgfortran; then |
---|
5855 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
5856 | # fi |
---|
5857 | fi |
---|
5858 | |
---|
5859 | fi |
---|
5860 | |
---|
5861 | |
---|
5862 | |
---|
5863 | |
---|
5864 | ########################################################################## |
---|
5865 | |
---|
5866 | ########################################################################## |
---|
5867 | # Search for CFITSIO. |
---|
5868 | # use --with-cfitsio=directory to specify a particular CFITSIO directory. |
---|
5869 | # else do the normal searching for libraries. |
---|
5870 | |
---|
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- CFITSIO -- " >&5 |
---|
5872 | $as_echo "$as_me: -- CFITSIO -- " >&6;} |
---|
5873 | |
---|
5874 | # Check whether --with-cfitsio was given. |
---|
5875 | if test "${with_cfitsio+set}" = set; then : |
---|
5876 | withval=$with_cfitsio; #if we specify a directory... |
---|
5877 | if test "x$withval" = xno; then |
---|
5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
5879 | The CFITSIO library is required. |
---|
5880 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&5 |
---|
5881 | $as_echo "$as_me: |
---|
5882 | The CFITSIO library is required. |
---|
5883 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&1;} |
---|
5884 | CFITSIOINCDIRS=$INCDIRS |
---|
5885 | CFITSIOLIBDIRS=$LIBDIRS |
---|
5886 | else |
---|
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
5888 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
5889 | CFITSIOINCDIRS="$withval \ |
---|
5890 | $withval/include" |
---|
5891 | CFITSIOLIBDIRS="$withval \ |
---|
5892 | $withval/lib" |
---|
5893 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
5894 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
5896 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
5897 | if eval \${$as_ac_File+:} false; then : |
---|
5898 | $as_echo_n "(cached) " >&6 |
---|
5899 | else |
---|
5900 | test "$cross_compiling" = yes && |
---|
5901 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
5902 | if test -r "$LIBDIR"; then |
---|
5903 | eval "$as_ac_File=yes" |
---|
5904 | else |
---|
5905 | eval "$as_ac_File=no" |
---|
5906 | fi |
---|
5907 | fi |
---|
5908 | eval ac_res=\$$as_ac_File |
---|
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
5910 | $as_echo "$ac_res" >&6; } |
---|
5911 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
5912 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
5913 | else |
---|
5914 | continue |
---|
5915 | fi |
---|
5916 | |
---|
5917 | done |
---|
5918 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
5919 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR" | $as_tr_sh` |
---|
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR" >&5 |
---|
5921 | $as_echo_n "checking for $INCDIR... " >&6; } |
---|
5922 | if eval \${$as_ac_File+:} false; then : |
---|
5923 | $as_echo_n "(cached) " >&6 |
---|
5924 | else |
---|
5925 | test "$cross_compiling" = yes && |
---|
5926 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
5927 | if test -r "$INCDIR"; then |
---|
5928 | eval "$as_ac_File=yes" |
---|
5929 | else |
---|
5930 | eval "$as_ac_File=no" |
---|
5931 | fi |
---|
5932 | fi |
---|
5933 | eval ac_res=\$$as_ac_File |
---|
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
5935 | $as_echo "$ac_res" >&6; } |
---|
5936 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
5937 | CPPFLAGS="$CPPFLAGS -I$INCDIR" |
---|
5938 | else |
---|
5939 | continue |
---|
5940 | fi |
---|
5941 | |
---|
5942 | done |
---|
5943 | fi |
---|
5944 | |
---|
5945 | else |
---|
5946 | # if directory not specified, go searching. |
---|
5947 | CFITSIOINCDIRS=$INCDIRS |
---|
5948 | CFITSIOLIBDIRS=$LIBDIRS |
---|
5949 | |
---|
5950 | fi |
---|
5951 | |
---|
5952 | |
---|
5953 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
5954 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5 |
---|
5956 | $as_echo_n "checking for $INCDIR/fitsio.h... " >&6; } |
---|
5957 | if eval \${$as_ac_File+:} false; then : |
---|
5958 | $as_echo_n "(cached) " >&6 |
---|
5959 | else |
---|
5960 | test "$cross_compiling" = yes && |
---|
5961 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
5962 | if test -r "$INCDIR/fitsio.h"; then |
---|
5963 | eval "$as_ac_File=yes" |
---|
5964 | else |
---|
5965 | eval "$as_ac_File=no" |
---|
5966 | fi |
---|
5967 | fi |
---|
5968 | eval ac_res=\$$as_ac_File |
---|
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
5970 | $as_echo "$ac_res" >&6; } |
---|
5971 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
5972 | CFITSIOINC=-I$INCDIR; break |
---|
5973 | fi |
---|
5974 | |
---|
5975 | INCDIR=$INCDIR/cfitsio |
---|
5976 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5 |
---|
5978 | $as_echo_n "checking for $INCDIR/fitsio.h... " >&6; } |
---|
5979 | if eval \${$as_ac_File+:} false; then : |
---|
5980 | $as_echo_n "(cached) " >&6 |
---|
5981 | else |
---|
5982 | test "$cross_compiling" = yes && |
---|
5983 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
5984 | if test -r "$INCDIR/fitsio.h"; then |
---|
5985 | eval "$as_ac_File=yes" |
---|
5986 | else |
---|
5987 | eval "$as_ac_File=no" |
---|
5988 | fi |
---|
5989 | fi |
---|
5990 | eval ac_res=\$$as_ac_File |
---|
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
5992 | $as_echo "$ac_res" >&6; } |
---|
5993 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
5994 | CFITSIOINC=-I$INCDIR; break |
---|
5995 | fi |
---|
5996 | |
---|
5997 | done |
---|
5998 | |
---|
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv in -lsocket" >&5 |
---|
6000 | $as_echo_n "checking for recv in -lsocket... " >&6; } |
---|
6001 | if ${ac_cv_lib_socket_recv+:} false; then : |
---|
6002 | $as_echo_n "(cached) " >&6 |
---|
6003 | else |
---|
6004 | ac_check_lib_save_LIBS=$LIBS |
---|
6005 | LIBS="-lsocket $LIBS $LIBS" |
---|
6006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6007 | /* end confdefs.h. */ |
---|
6008 | |
---|
6009 | /* Override any GCC internal prototype to avoid an error. |
---|
6010 | Use char because int might match the return type of a GCC |
---|
6011 | builtin and then its argument prototype would still apply. */ |
---|
6012 | #ifdef __cplusplus |
---|
6013 | extern "C" |
---|
6014 | #endif |
---|
6015 | char recv (); |
---|
6016 | int |
---|
6017 | main () |
---|
6018 | { |
---|
6019 | return recv (); |
---|
6020 | ; |
---|
6021 | return 0; |
---|
6022 | } |
---|
6023 | _ACEOF |
---|
6024 | if ac_fn_c_try_link "$LINENO"; then : |
---|
6025 | ac_cv_lib_socket_recv=yes |
---|
6026 | else |
---|
6027 | ac_cv_lib_socket_recv=no |
---|
6028 | fi |
---|
6029 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6030 | conftest$ac_exeext conftest.$ac_ext |
---|
6031 | LIBS=$ac_check_lib_save_LIBS |
---|
6032 | fi |
---|
6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_recv" >&5 |
---|
6034 | $as_echo "$ac_cv_lib_socket_recv" >&6; } |
---|
6035 | if test "x$ac_cv_lib_socket_recv" = xyes; then : |
---|
6036 | CFITSIOLIB="$CFITSIOLIB -lsocket" |
---|
6037 | fi |
---|
6038 | |
---|
6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffopen in -lcfitsio" >&5 |
---|
6040 | $as_echo_n "checking for ffopen in -lcfitsio... " >&6; } |
---|
6041 | if ${ac_cv_lib_cfitsio_ffopen+:} false; then : |
---|
6042 | $as_echo_n "(cached) " >&6 |
---|
6043 | else |
---|
6044 | ac_check_lib_save_LIBS=$LIBS |
---|
6045 | LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS" |
---|
6046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6047 | /* end confdefs.h. */ |
---|
6048 | |
---|
6049 | /* Override any GCC internal prototype to avoid an error. |
---|
6050 | Use char because int might match the return type of a GCC |
---|
6051 | builtin and then its argument prototype would still apply. */ |
---|
6052 | #ifdef __cplusplus |
---|
6053 | extern "C" |
---|
6054 | #endif |
---|
6055 | char ffopen (); |
---|
6056 | int |
---|
6057 | main () |
---|
6058 | { |
---|
6059 | return ffopen (); |
---|
6060 | ; |
---|
6061 | return 0; |
---|
6062 | } |
---|
6063 | _ACEOF |
---|
6064 | if ac_fn_c_try_link "$LINENO"; then : |
---|
6065 | ac_cv_lib_cfitsio_ffopen=yes |
---|
6066 | else |
---|
6067 | ac_cv_lib_cfitsio_ffopen=no |
---|
6068 | fi |
---|
6069 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6070 | conftest$ac_exeext conftest.$ac_ext |
---|
6071 | LIBS=$ac_check_lib_save_LIBS |
---|
6072 | fi |
---|
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffopen" >&5 |
---|
6074 | $as_echo "$ac_cv_lib_cfitsio_ffopen" >&6; } |
---|
6075 | if test "x$ac_cv_lib_cfitsio_ffopen" = xyes; then : |
---|
6076 | CFITSIOLIB="$CFITSIOLIB -lcfitsio" |
---|
6077 | fi |
---|
6078 | |
---|
6079 | |
---|
6080 | # CFITSIO is essential for Duchamp, so exit with error message if it |
---|
6081 | # is not present. |
---|
6082 | if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then |
---|
6083 | as_fn_error 1 " |
---|
6084 | ------------------------------------------------------- |
---|
6085 | Could not find the CFITSIO library. |
---|
6086 | |
---|
6087 | ERROR: Duchamp configuration failure. |
---|
6088 | -------------------------------------------------------" "$LINENO" 5 |
---|
6089 | else |
---|
6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: CFITSIO appears to be available." >&5 |
---|
6091 | $as_echo "$as_me: CFITSIO appears to be available." >&6;} |
---|
6092 | |
---|
6093 | $as_echo "#define HAVE_CFITSIO 1" >>confdefs.h |
---|
6094 | |
---|
6095 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
6096 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
6098 | $as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; } |
---|
6099 | if eval \${$as_ac_File+:} false; then : |
---|
6100 | $as_echo_n "(cached) " >&6 |
---|
6101 | else |
---|
6102 | test "$cross_compiling" = yes && |
---|
6103 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6104 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
6105 | eval "$as_ac_File=yes" |
---|
6106 | else |
---|
6107 | eval "$as_ac_File=no" |
---|
6108 | fi |
---|
6109 | fi |
---|
6110 | eval ac_res=\$$as_ac_File |
---|
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6112 | $as_echo "$ac_res" >&6; } |
---|
6113 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6114 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
6115 | fi |
---|
6116 | |
---|
6117 | LIBDIR=$LIBDIR/cfitsio |
---|
6118 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
6120 | $as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; } |
---|
6121 | if eval \${$as_ac_File+:} false; then : |
---|
6122 | $as_echo_n "(cached) " >&6 |
---|
6123 | else |
---|
6124 | test "$cross_compiling" = yes && |
---|
6125 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6126 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
6127 | eval "$as_ac_File=yes" |
---|
6128 | else |
---|
6129 | eval "$as_ac_File=no" |
---|
6130 | fi |
---|
6131 | fi |
---|
6132 | eval ac_res=\$$as_ac_File |
---|
6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6134 | $as_echo "$ac_res" >&6; } |
---|
6135 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6136 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
6137 | fi |
---|
6138 | |
---|
6139 | done |
---|
6140 | |
---|
6141 | fi |
---|
6142 | |
---|
6143 | |
---|
6144 | |
---|
6145 | ########################################################################## |
---|
6146 | |
---|
6147 | ########################################################################## |
---|
6148 | # Search for WCSLIB. |
---|
6149 | # use --with-wcslib=directory to specify a particular WCSLIB directory. |
---|
6150 | # else do the normal searching for libraries. |
---|
6151 | |
---|
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- WCSLIB -- " >&5 |
---|
6153 | $as_echo "$as_me: -- WCSLIB -- " >&6;} |
---|
6154 | WCSINCDIR="" |
---|
6155 | |
---|
6156 | # Check whether --with-wcslib was given. |
---|
6157 | if test "${with_wcslib+set}" = set; then : |
---|
6158 | withval=$with_wcslib; #if we specify a directory... |
---|
6159 | if test "x$withval" = xno; then |
---|
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
6161 | The WCSLIB library is required. |
---|
6162 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&5 |
---|
6163 | $as_echo "$as_me: |
---|
6164 | The WCSLIB library is required. |
---|
6165 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&1;} |
---|
6166 | WCSINCDIRS=$INCDIRS |
---|
6167 | WCSLIBDIRS=$LIBDIRS |
---|
6168 | else |
---|
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
6170 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
6171 | WCSINCDIRS="$withval \ |
---|
6172 | $withval/include" |
---|
6173 | WCSLIBDIRS="$withval \ |
---|
6174 | $withval/lib" |
---|
6175 | for LIBDIR in $WCSLIBDIRS ; do |
---|
6176 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
6178 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
6179 | if eval \${$as_ac_File+:} false; then : |
---|
6180 | $as_echo_n "(cached) " >&6 |
---|
6181 | else |
---|
6182 | test "$cross_compiling" = yes && |
---|
6183 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6184 | if test -r "$LIBDIR"; then |
---|
6185 | eval "$as_ac_File=yes" |
---|
6186 | else |
---|
6187 | eval "$as_ac_File=no" |
---|
6188 | fi |
---|
6189 | fi |
---|
6190 | eval ac_res=\$$as_ac_File |
---|
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6192 | $as_echo "$ac_res" >&6; } |
---|
6193 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6194 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
6195 | else |
---|
6196 | continue |
---|
6197 | fi |
---|
6198 | |
---|
6199 | done |
---|
6200 | for INCDIR in $WCSINCDIRS ; do |
---|
6201 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/wcslib" | $as_tr_sh` |
---|
6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/wcslib" >&5 |
---|
6203 | $as_echo_n "checking for $INCDIR/wcslib... " >&6; } |
---|
6204 | if eval \${$as_ac_File+:} false; then : |
---|
6205 | $as_echo_n "(cached) " >&6 |
---|
6206 | else |
---|
6207 | test "$cross_compiling" = yes && |
---|
6208 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6209 | if test -r "$INCDIR/wcslib"; then |
---|
6210 | eval "$as_ac_File=yes" |
---|
6211 | else |
---|
6212 | eval "$as_ac_File=no" |
---|
6213 | fi |
---|
6214 | fi |
---|
6215 | eval ac_res=\$$as_ac_File |
---|
6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6217 | $as_echo "$ac_res" >&6; } |
---|
6218 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6219 | CPPFLAGS="$CPPFLAGS -I$INCDIR"; WCSINCDIR=$INCDIR; break |
---|
6220 | else |
---|
6221 | continue |
---|
6222 | fi |
---|
6223 | |
---|
6224 | done |
---|
6225 | fi |
---|
6226 | |
---|
6227 | else |
---|
6228 | # if directory not specified, go searching. |
---|
6229 | WCSINCDIRS=$INCDIRS |
---|
6230 | WCSLIBDIRS=$LIBDIRS |
---|
6231 | |
---|
6232 | fi |
---|
6233 | |
---|
6234 | |
---|
6235 | |
---|
6236 | if test "x$WCSINCDIR" = x; then |
---|
6237 | for INCBASE in $WCSINCDIRS ; do |
---|
6238 | as_ac_File=`$as_echo "ac_cv_file_$INCBASE/wcslib/wcs.h" | $as_tr_sh` |
---|
6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCBASE/wcslib/wcs.h" >&5 |
---|
6240 | $as_echo_n "checking for $INCBASE/wcslib/wcs.h... " >&6; } |
---|
6241 | if eval \${$as_ac_File+:} false; then : |
---|
6242 | $as_echo_n "(cached) " >&6 |
---|
6243 | else |
---|
6244 | test "$cross_compiling" = yes && |
---|
6245 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6246 | if test -r "$INCBASE/wcslib/wcs.h"; then |
---|
6247 | eval "$as_ac_File=yes" |
---|
6248 | else |
---|
6249 | eval "$as_ac_File=no" |
---|
6250 | fi |
---|
6251 | fi |
---|
6252 | eval ac_res=\$$as_ac_File |
---|
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6254 | $as_echo "$ac_res" >&6; } |
---|
6255 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6256 | WCSINC="-I$INCBASE -I$INCBASE/wcslib $WCSINC"; break |
---|
6257 | fi |
---|
6258 | |
---|
6259 | done |
---|
6260 | else |
---|
6261 | as_ac_File=`$as_echo "ac_cv_file_$WCSINCDIR/wcslib/wcs.h" | $as_tr_sh` |
---|
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WCSINCDIR/wcslib/wcs.h" >&5 |
---|
6263 | $as_echo_n "checking for $WCSINCDIR/wcslib/wcs.h... " >&6; } |
---|
6264 | if eval \${$as_ac_File+:} false; then : |
---|
6265 | $as_echo_n "(cached) " >&6 |
---|
6266 | else |
---|
6267 | test "$cross_compiling" = yes && |
---|
6268 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6269 | if test -r "$WCSINCDIR/wcslib/wcs.h"; then |
---|
6270 | eval "$as_ac_File=yes" |
---|
6271 | else |
---|
6272 | eval "$as_ac_File=no" |
---|
6273 | fi |
---|
6274 | fi |
---|
6275 | eval ac_res=\$$as_ac_File |
---|
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6277 | $as_echo "$ac_res" >&6; } |
---|
6278 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6279 | WCSINC="-I$WCSINCDIR -I$WCSINCDIR/wcslib $WCSINC" |
---|
6280 | fi |
---|
6281 | |
---|
6282 | fi |
---|
6283 | |
---|
6284 | |
---|
6285 | # Look for libwcs.a, and libpgsbox.a |
---|
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcss2p in -lwcs" >&5 |
---|
6287 | $as_echo_n "checking for wcss2p in -lwcs... " >&6; } |
---|
6288 | if ${ac_cv_lib_wcs_wcss2p+:} false; then : |
---|
6289 | $as_echo_n "(cached) " >&6 |
---|
6290 | else |
---|
6291 | ac_check_lib_save_LIBS=$LIBS |
---|
6292 | LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
6293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6294 | /* end confdefs.h. */ |
---|
6295 | |
---|
6296 | /* Override any GCC internal prototype to avoid an error. |
---|
6297 | Use char because int might match the return type of a GCC |
---|
6298 | builtin and then its argument prototype would still apply. */ |
---|
6299 | #ifdef __cplusplus |
---|
6300 | extern "C" |
---|
6301 | #endif |
---|
6302 | char wcss2p (); |
---|
6303 | int |
---|
6304 | main () |
---|
6305 | { |
---|
6306 | return wcss2p (); |
---|
6307 | ; |
---|
6308 | return 0; |
---|
6309 | } |
---|
6310 | _ACEOF |
---|
6311 | if ac_fn_c_try_link "$LINENO"; then : |
---|
6312 | ac_cv_lib_wcs_wcss2p=yes |
---|
6313 | else |
---|
6314 | ac_cv_lib_wcs_wcss2p=no |
---|
6315 | fi |
---|
6316 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6317 | conftest$ac_exeext conftest.$ac_ext |
---|
6318 | LIBS=$ac_check_lib_save_LIBS |
---|
6319 | fi |
---|
6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wcs_wcss2p" >&5 |
---|
6321 | $as_echo "$ac_cv_lib_wcs_wcss2p" >&6; } |
---|
6322 | if test "x$ac_cv_lib_wcs_wcss2p" = xyes; then : |
---|
6323 | WCSLIB="$WCSLIB -lwcs" |
---|
6324 | fi |
---|
6325 | |
---|
6326 | if test "x$F77" = xgfortran; then |
---|
6327 | WCSLIB="$WCSLIB -lpgsbox" |
---|
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&5 |
---|
6329 | $as_echo "$as_me: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&6;} |
---|
6330 | else |
---|
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgsbox in -lpgsbox" >&5 |
---|
6332 | $as_echo_n "checking for cpgsbox in -lpgsbox... " >&6; } |
---|
6333 | if ${ac_cv_lib_pgsbox_cpgsbox+:} false; then : |
---|
6334 | $as_echo_n "(cached) " >&6 |
---|
6335 | else |
---|
6336 | ac_check_lib_save_LIBS=$LIBS |
---|
6337 | LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
6338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6339 | /* end confdefs.h. */ |
---|
6340 | |
---|
6341 | /* Override any GCC internal prototype to avoid an error. |
---|
6342 | Use char because int might match the return type of a GCC |
---|
6343 | builtin and then its argument prototype would still apply. */ |
---|
6344 | #ifdef __cplusplus |
---|
6345 | extern "C" |
---|
6346 | #endif |
---|
6347 | char cpgsbox (); |
---|
6348 | int |
---|
6349 | main () |
---|
6350 | { |
---|
6351 | return cpgsbox (); |
---|
6352 | ; |
---|
6353 | return 0; |
---|
6354 | } |
---|
6355 | _ACEOF |
---|
6356 | if ac_fn_c_try_link "$LINENO"; then : |
---|
6357 | ac_cv_lib_pgsbox_cpgsbox=yes |
---|
6358 | else |
---|
6359 | ac_cv_lib_pgsbox_cpgsbox=no |
---|
6360 | fi |
---|
6361 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6362 | conftest$ac_exeext conftest.$ac_ext |
---|
6363 | LIBS=$ac_check_lib_save_LIBS |
---|
6364 | fi |
---|
6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgsbox_cpgsbox" >&5 |
---|
6366 | $as_echo "$ac_cv_lib_pgsbox_cpgsbox" >&6; } |
---|
6367 | if test "x$ac_cv_lib_pgsbox_cpgsbox" = xyes; then : |
---|
6368 | WCSLIB="$WCSLIB -lpgsbox" |
---|
6369 | fi |
---|
6370 | |
---|
6371 | fi |
---|
6372 | |
---|
6373 | # WCSLIB is essential for Duchamp, so exit with error message if it |
---|
6374 | # is not present. Need at least libwcs to be available -- libpgsbox will |
---|
6375 | # depend on PGPLOT being available, but is not critical. |
---|
6376 | if test "x$WCSINC" = x -o "x$WCSLIB" = x; then |
---|
6377 | as_fn_error 1 " |
---|
6378 | ------------------------------------------------------- |
---|
6379 | Could not find the WCSLIB library. |
---|
6380 | |
---|
6381 | ERROR: Duchamp configuration failure. |
---|
6382 | -------------------------------------------------------" "$LINENO" 5 |
---|
6383 | else |
---|
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WCSLIB appears to be available." >&5 |
---|
6385 | $as_echo "$as_me: WCSLIB appears to be available." >&6;} |
---|
6386 | |
---|
6387 | $as_echo "#define HAVE_WCSLIB 1" >>confdefs.h |
---|
6388 | |
---|
6389 | # Now add the -L statements to start of WCSLIB. |
---|
6390 | # Search for libwcs.a, and, if we find it, search for libpgsbox in same directory and |
---|
6391 | # then in other directories, keeping the appropriate order of -L calls. |
---|
6392 | |
---|
6393 | DIRLIST=". \ |
---|
6394 | wcs \ |
---|
6395 | wcslib" |
---|
6396 | |
---|
6397 | for LIBBASE in $WCSLIBDIRS ; do |
---|
6398 | for DIR in $DIRLIST; do |
---|
6399 | if test "x$DIR" = x.; then |
---|
6400 | LIBDIR=$LIBBASE |
---|
6401 | else |
---|
6402 | LIBDIR="$LIBBASE/$DIR" |
---|
6403 | fi |
---|
6404 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libwcs.a" >&5 |
---|
6406 | $as_echo_n "checking for $LIBDIR/libwcs.a... " >&6; } |
---|
6407 | if eval \${$as_ac_File+:} false; then : |
---|
6408 | $as_echo_n "(cached) " >&6 |
---|
6409 | else |
---|
6410 | test "$cross_compiling" = yes && |
---|
6411 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6412 | if test -r "$LIBDIR/libwcs.a"; then |
---|
6413 | eval "$as_ac_File=yes" |
---|
6414 | else |
---|
6415 | eval "$as_ac_File=no" |
---|
6416 | fi |
---|
6417 | fi |
---|
6418 | eval ac_res=\$$as_ac_File |
---|
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6420 | $as_echo "$ac_res" >&6; } |
---|
6421 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6422 | WCSLIBFRONT="-L$LIBDIR"; |
---|
6423 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
6425 | $as_echo_n "checking for $LIBDIR/libpgsbox.a... " >&6; } |
---|
6426 | if eval \${$as_ac_File+:} false; then : |
---|
6427 | $as_echo_n "(cached) " >&6 |
---|
6428 | else |
---|
6429 | test "$cross_compiling" = yes && |
---|
6430 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6431 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
6432 | eval "$as_ac_File=yes" |
---|
6433 | else |
---|
6434 | eval "$as_ac_File=no" |
---|
6435 | fi |
---|
6436 | fi |
---|
6437 | eval ac_res=\$$as_ac_File |
---|
6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6439 | $as_echo "$ac_res" >&6; } |
---|
6440 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6441 | |
---|
6442 | else |
---|
6443 | |
---|
6444 | for LIBBASE2 in $WCSLIBDIRS ; do |
---|
6445 | for DIR2 in $DIRLIST; do |
---|
6446 | if test "x$DIR" = x.; then |
---|
6447 | LIBDIR=$LIBBASE |
---|
6448 | else |
---|
6449 | LIBDIR="$LIBBASE/$DIR" |
---|
6450 | fi |
---|
6451 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR2/libpgsbox.a" | $as_tr_sh` |
---|
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR2/libpgsbox.a" >&5 |
---|
6453 | $as_echo_n "checking for $LIBDIR2/libpgsbox.a... " >&6; } |
---|
6454 | if eval \${$as_ac_File+:} false; then : |
---|
6455 | $as_echo_n "(cached) " >&6 |
---|
6456 | else |
---|
6457 | test "$cross_compiling" = yes && |
---|
6458 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
6459 | if test -r "$LIBDIR2/libpgsbox.a"; then |
---|
6460 | eval "$as_ac_File=yes" |
---|
6461 | else |
---|
6462 | eval "$as_ac_File=no" |
---|
6463 | fi |
---|
6464 | fi |
---|
6465 | eval ac_res=\$$as_ac_File |
---|
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
6467 | $as_echo "$ac_res" >&6; } |
---|
6468 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
6469 | WCSLIBFRONT="$WCSLIB -L$LIBDIR2"; break |
---|
6470 | fi |
---|
6471 | |
---|
6472 | done |
---|
6473 | done |
---|
6474 | fi |
---|
6475 | |
---|
6476 | break |
---|
6477 | fi |
---|
6478 | |
---|
6479 | done |
---|
6480 | done |
---|
6481 | WCSLIB="$WCSLIBFRONT $WCSLIB" |
---|
6482 | fi |
---|
6483 | |
---|
6484 | |
---|
6485 | |
---|
6486 | ########################################################################## |
---|
6487 | |
---|
6488 | |
---|
6489 | |
---|
6490 | ac_config_files="$ac_config_files Makefile" |
---|
6491 | |
---|
6492 | cat >confcache <<\_ACEOF |
---|
6493 | # This file is a shell script that caches the results of configure |
---|
6494 | # tests run on this system so they can be shared between configure |
---|
6495 | # scripts and configure runs, see configure's option --config-cache. |
---|
6496 | # It is not useful on other systems. If it contains results you don't |
---|
6497 | # want to keep, you may remove or edit it. |
---|
6498 | # |
---|
6499 | # config.status only pays attention to the cache file if you give it |
---|
6500 | # the --recheck option to rerun configure. |
---|
6501 | # |
---|
6502 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6503 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6504 | # following values. |
---|
6505 | |
---|
6506 | _ACEOF |
---|
6507 | |
---|
6508 | # The following way of writing the cache mishandles newlines in values, |
---|
6509 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6510 | # So, we kill variables containing newlines. |
---|
6511 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6512 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6513 | ( |
---|
6514 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6515 | eval ac_val=\$$ac_var |
---|
6516 | case $ac_val in #( |
---|
6517 | *${as_nl}*) |
---|
6518 | case $ac_var in #( |
---|
6519 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6520 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6521 | esac |
---|
6522 | case $ac_var in #( |
---|
6523 | _ | IFS | as_nl) ;; #( |
---|
6524 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6525 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
6526 | esac ;; |
---|
6527 | esac |
---|
6528 | done |
---|
6529 | |
---|
6530 | (set) 2>&1 | |
---|
6531 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6532 | *${as_nl}ac_space=\ *) |
---|
6533 | # `set' does not quote correctly, so add quotes: double-quote |
---|
6534 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
6535 | sed -n \ |
---|
6536 | "s/'/'\\\\''/g; |
---|
6537 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6538 | ;; #( |
---|
6539 | *) |
---|
6540 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6541 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6542 | ;; |
---|
6543 | esac | |
---|
6544 | sort |
---|
6545 | ) | |
---|
6546 | sed ' |
---|
6547 | /^ac_cv_env_/b end |
---|
6548 | t clear |
---|
6549 | :clear |
---|
6550 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6551 | t end |
---|
6552 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6553 | :end' >>confcache |
---|
6554 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6555 | if test -w "$cache_file"; then |
---|
6556 | if test "x$cache_file" != "x/dev/null"; then |
---|
6557 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
6558 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6559 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
6560 | cat confcache >"$cache_file" |
---|
6561 | else |
---|
6562 | case $cache_file in #( |
---|
6563 | */* | ?:*) |
---|
6564 | mv -f confcache "$cache_file"$$ && |
---|
6565 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
6566 | *) |
---|
6567 | mv -f confcache "$cache_file" ;; |
---|
6568 | esac |
---|
6569 | fi |
---|
6570 | fi |
---|
6571 | else |
---|
6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
6573 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6574 | fi |
---|
6575 | fi |
---|
6576 | rm -f confcache |
---|
6577 | |
---|
6578 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6579 | # Let make expand exec_prefix. |
---|
6580 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6581 | |
---|
6582 | DEFS=-DHAVE_CONFIG_H |
---|
6583 | |
---|
6584 | ac_libobjs= |
---|
6585 | ac_ltlibobjs= |
---|
6586 | U= |
---|
6587 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6588 | # 1. Remove the extension, and $U if already installed. |
---|
6589 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6590 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6591 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6592 | # will be set to the directory where LIBOBJS objects are built. |
---|
6593 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6594 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6595 | done |
---|
6596 | LIBOBJS=$ac_libobjs |
---|
6597 | |
---|
6598 | LTLIBOBJS=$ac_ltlibobjs |
---|
6599 | |
---|
6600 | |
---|
6601 | |
---|
6602 | : "${CONFIG_STATUS=./config.status}" |
---|
6603 | ac_write_fail=0 |
---|
6604 | ac_clean_files_save=$ac_clean_files |
---|
6605 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
6607 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6608 | as_write_fail=0 |
---|
6609 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
6610 | #! $SHELL |
---|
6611 | # Generated by $as_me. |
---|
6612 | # Run this file to recreate the current configuration. |
---|
6613 | # Compiler output produced by configure, useful for debugging |
---|
6614 | # configure, is in config.log if it exists. |
---|
6615 | |
---|
6616 | debug=false |
---|
6617 | ac_cs_recheck=false |
---|
6618 | ac_cs_silent=false |
---|
6619 | |
---|
6620 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6621 | export SHELL |
---|
6622 | _ASEOF |
---|
6623 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
6624 | ## -------------------- ## |
---|
6625 | ## M4sh Initialization. ## |
---|
6626 | ## -------------------- ## |
---|
6627 | |
---|
6628 | # Be more Bourne compatible |
---|
6629 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6630 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
6631 | emulate sh |
---|
6632 | NULLCMD=: |
---|
6633 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6634 | # is contrary to our usage. Disable this feature. |
---|
6635 | alias -g '${1+"$@"}'='"$@"' |
---|
6636 | setopt NO_GLOB_SUBST |
---|
6637 | else |
---|
6638 | case `(set -o) 2>/dev/null` in #( |
---|
6639 | *posix*) : |
---|
6640 | set -o posix ;; #( |
---|
6641 | *) : |
---|
6642 | ;; |
---|
6643 | esac |
---|
6644 | fi |
---|
6645 | |
---|
6646 | |
---|
6647 | as_nl=' |
---|
6648 | ' |
---|
6649 | export as_nl |
---|
6650 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6651 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6652 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6653 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6654 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
6655 | # but without wasting forks for bash or zsh. |
---|
6656 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
6657 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6658 | as_echo='print -r --' |
---|
6659 | as_echo_n='print -rn --' |
---|
6660 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6661 | as_echo='printf %s\n' |
---|
6662 | as_echo_n='printf %s' |
---|
6663 | else |
---|
6664 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6665 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6666 | as_echo_n='/usr/ucb/echo -n' |
---|
6667 | else |
---|
6668 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6669 | as_echo_n_body='eval |
---|
6670 | arg=$1; |
---|
6671 | case $arg in #( |
---|
6672 | *"$as_nl"*) |
---|
6673 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6674 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6675 | esac; |
---|
6676 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6677 | ' |
---|
6678 | export as_echo_n_body |
---|
6679 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6680 | fi |
---|
6681 | export as_echo_body |
---|
6682 | as_echo='sh -c $as_echo_body as_echo' |
---|
6683 | fi |
---|
6684 | |
---|
6685 | # The user is always right. |
---|
6686 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6687 | PATH_SEPARATOR=: |
---|
6688 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6689 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6690 | PATH_SEPARATOR=';' |
---|
6691 | } |
---|
6692 | fi |
---|
6693 | |
---|
6694 | |
---|
6695 | # IFS |
---|
6696 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6697 | # there to prevent editors from complaining about space-tab. |
---|
6698 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6699 | # splitting by setting IFS to empty value.) |
---|
6700 | IFS=" "" $as_nl" |
---|
6701 | |
---|
6702 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6703 | as_myself= |
---|
6704 | case $0 in #(( |
---|
6705 | *[\\/]* ) as_myself=$0 ;; |
---|
6706 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6707 | for as_dir in $PATH |
---|
6708 | do |
---|
6709 | IFS=$as_save_IFS |
---|
6710 | test -z "$as_dir" && as_dir=. |
---|
6711 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6712 | done |
---|
6713 | IFS=$as_save_IFS |
---|
6714 | |
---|
6715 | ;; |
---|
6716 | esac |
---|
6717 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6718 | # in which case we are not to be found in the path. |
---|
6719 | if test "x$as_myself" = x; then |
---|
6720 | as_myself=$0 |
---|
6721 | fi |
---|
6722 | if test ! -f "$as_myself"; then |
---|
6723 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6724 | exit 1 |
---|
6725 | fi |
---|
6726 | |
---|
6727 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6728 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6729 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6730 | # trigger a bug in pdksh 5.2.14. |
---|
6731 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6732 | do eval test x\${$as_var+set} = xset \ |
---|
6733 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6734 | done |
---|
6735 | PS1='$ ' |
---|
6736 | PS2='> ' |
---|
6737 | PS4='+ ' |
---|
6738 | |
---|
6739 | # NLS nuisances. |
---|
6740 | LC_ALL=C |
---|
6741 | export LC_ALL |
---|
6742 | LANGUAGE=C |
---|
6743 | export LANGUAGE |
---|
6744 | |
---|
6745 | # CDPATH. |
---|
6746 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6747 | |
---|
6748 | |
---|
6749 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6750 | # ---------------------------------------- |
---|
6751 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6752 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6753 | # script with STATUS, using 1 if that was 0. |
---|
6754 | as_fn_error () |
---|
6755 | { |
---|
6756 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6757 | if test "$4"; then |
---|
6758 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6759 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6760 | fi |
---|
6761 | $as_echo "$as_me: error: $2" >&2 |
---|
6762 | as_fn_exit $as_status |
---|
6763 | } # as_fn_error |
---|
6764 | |
---|
6765 | |
---|
6766 | # as_fn_set_status STATUS |
---|
6767 | # ----------------------- |
---|
6768 | # Set $? to STATUS, without forking. |
---|
6769 | as_fn_set_status () |
---|
6770 | { |
---|
6771 | return $1 |
---|
6772 | } # as_fn_set_status |
---|
6773 | |
---|
6774 | # as_fn_exit STATUS |
---|
6775 | # ----------------- |
---|
6776 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6777 | as_fn_exit () |
---|
6778 | { |
---|
6779 | set +e |
---|
6780 | as_fn_set_status $1 |
---|
6781 | exit $1 |
---|
6782 | } # as_fn_exit |
---|
6783 | |
---|
6784 | # as_fn_unset VAR |
---|
6785 | # --------------- |
---|
6786 | # Portably unset VAR. |
---|
6787 | as_fn_unset () |
---|
6788 | { |
---|
6789 | { eval $1=; unset $1;} |
---|
6790 | } |
---|
6791 | as_unset=as_fn_unset |
---|
6792 | # as_fn_append VAR VALUE |
---|
6793 | # ---------------------- |
---|
6794 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6795 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6796 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6797 | # implementations. |
---|
6798 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6799 | eval 'as_fn_append () |
---|
6800 | { |
---|
6801 | eval $1+=\$2 |
---|
6802 | }' |
---|
6803 | else |
---|
6804 | as_fn_append () |
---|
6805 | { |
---|
6806 | eval $1=\$$1\$2 |
---|
6807 | } |
---|
6808 | fi # as_fn_append |
---|
6809 | |
---|
6810 | # as_fn_arith ARG... |
---|
6811 | # ------------------ |
---|
6812 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6813 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6814 | # must be portable across $(()) and expr. |
---|
6815 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6816 | eval 'as_fn_arith () |
---|
6817 | { |
---|
6818 | as_val=$(( $* )) |
---|
6819 | }' |
---|
6820 | else |
---|
6821 | as_fn_arith () |
---|
6822 | { |
---|
6823 | as_val=`expr "$@" || test $? -eq 1` |
---|
6824 | } |
---|
6825 | fi # as_fn_arith |
---|
6826 | |
---|
6827 | |
---|
6828 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6829 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6830 | as_expr=expr |
---|
6831 | else |
---|
6832 | as_expr=false |
---|
6833 | fi |
---|
6834 | |
---|
6835 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6836 | as_basename=basename |
---|
6837 | else |
---|
6838 | as_basename=false |
---|
6839 | fi |
---|
6840 | |
---|
6841 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6842 | as_dirname=dirname |
---|
6843 | else |
---|
6844 | as_dirname=false |
---|
6845 | fi |
---|
6846 | |
---|
6847 | as_me=`$as_basename -- "$0" || |
---|
6848 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6849 | X"$0" : 'X\(//\)$' \| \ |
---|
6850 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6851 | $as_echo X/"$0" | |
---|
6852 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6853 | s//\1/ |
---|
6854 | q |
---|
6855 | } |
---|
6856 | /^X\/\(\/\/\)$/{ |
---|
6857 | s//\1/ |
---|
6858 | q |
---|
6859 | } |
---|
6860 | /^X\/\(\/\).*/{ |
---|
6861 | s//\1/ |
---|
6862 | q |
---|
6863 | } |
---|
6864 | s/.*/./; q'` |
---|
6865 | |
---|
6866 | # Avoid depending upon Character Ranges. |
---|
6867 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6868 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6869 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6870 | as_cr_digits='0123456789' |
---|
6871 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6872 | |
---|
6873 | ECHO_C= ECHO_N= ECHO_T= |
---|
6874 | case `echo -n x` in #((((( |
---|
6875 | -n*) |
---|
6876 | case `echo 'xy\c'` in |
---|
6877 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6878 | xy) ECHO_C='\c';; |
---|
6879 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6880 | ECHO_T=' ';; |
---|
6881 | esac;; |
---|
6882 | *) |
---|
6883 | ECHO_N='-n';; |
---|
6884 | esac |
---|
6885 | |
---|
6886 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6887 | if test -d conf$$.dir; then |
---|
6888 | rm -f conf$$.dir/conf$$.file |
---|
6889 | else |
---|
6890 | rm -f conf$$.dir |
---|
6891 | mkdir conf$$.dir 2>/dev/null |
---|
6892 | fi |
---|
6893 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6894 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6895 | as_ln_s='ln -s' |
---|
6896 | # ... but there are two gotchas: |
---|
6897 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6898 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6899 | # In both cases, we have to default to `cp -p'. |
---|
6900 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6901 | as_ln_s='cp -p' |
---|
6902 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6903 | as_ln_s=ln |
---|
6904 | else |
---|
6905 | as_ln_s='cp -p' |
---|
6906 | fi |
---|
6907 | else |
---|
6908 | as_ln_s='cp -p' |
---|
6909 | fi |
---|
6910 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6911 | rmdir conf$$.dir 2>/dev/null |
---|
6912 | |
---|
6913 | |
---|
6914 | # as_fn_mkdir_p |
---|
6915 | # ------------- |
---|
6916 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6917 | as_fn_mkdir_p () |
---|
6918 | { |
---|
6919 | |
---|
6920 | case $as_dir in #( |
---|
6921 | -*) as_dir=./$as_dir;; |
---|
6922 | esac |
---|
6923 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6924 | as_dirs= |
---|
6925 | while :; do |
---|
6926 | case $as_dir in #( |
---|
6927 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6928 | *) as_qdir=$as_dir;; |
---|
6929 | esac |
---|
6930 | as_dirs="'$as_qdir' $as_dirs" |
---|
6931 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6932 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6933 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6934 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6935 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6936 | $as_echo X"$as_dir" | |
---|
6937 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6938 | s//\1/ |
---|
6939 | q |
---|
6940 | } |
---|
6941 | /^X\(\/\/\)[^/].*/{ |
---|
6942 | s//\1/ |
---|
6943 | q |
---|
6944 | } |
---|
6945 | /^X\(\/\/\)$/{ |
---|
6946 | s//\1/ |
---|
6947 | q |
---|
6948 | } |
---|
6949 | /^X\(\/\).*/{ |
---|
6950 | s//\1/ |
---|
6951 | q |
---|
6952 | } |
---|
6953 | s/.*/./; q'` |
---|
6954 | test -d "$as_dir" && break |
---|
6955 | done |
---|
6956 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6957 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6958 | |
---|
6959 | |
---|
6960 | } # as_fn_mkdir_p |
---|
6961 | if mkdir -p . 2>/dev/null; then |
---|
6962 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6963 | else |
---|
6964 | test -d ./-p && rmdir ./-p |
---|
6965 | as_mkdir_p=false |
---|
6966 | fi |
---|
6967 | |
---|
6968 | if test -x / >/dev/null 2>&1; then |
---|
6969 | as_test_x='test -x' |
---|
6970 | else |
---|
6971 | if ls -dL / >/dev/null 2>&1; then |
---|
6972 | as_ls_L_option=L |
---|
6973 | else |
---|
6974 | as_ls_L_option= |
---|
6975 | fi |
---|
6976 | as_test_x=' |
---|
6977 | eval sh -c '\'' |
---|
6978 | if test -d "$1"; then |
---|
6979 | test -d "$1/."; |
---|
6980 | else |
---|
6981 | case $1 in #( |
---|
6982 | -*)set "./$1";; |
---|
6983 | esac; |
---|
6984 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
6985 | ???[sx]*):;;*)false;;esac;fi |
---|
6986 | '\'' sh |
---|
6987 | ' |
---|
6988 | fi |
---|
6989 | as_executable_p=$as_test_x |
---|
6990 | |
---|
6991 | # Sed expression to map a string onto a valid CPP name. |
---|
6992 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6993 | |
---|
6994 | # Sed expression to map a string onto a valid variable name. |
---|
6995 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6996 | |
---|
6997 | |
---|
6998 | exec 6>&1 |
---|
6999 | ## ----------------------------------- ## |
---|
7000 | ## Main body of $CONFIG_STATUS script. ## |
---|
7001 | ## ----------------------------------- ## |
---|
7002 | _ASEOF |
---|
7003 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
7004 | |
---|
7005 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7006 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
7007 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
7008 | # values after options handling. |
---|
7009 | ac_log=" |
---|
7010 | This file was extended by Duchamp $as_me 1.1.11, which was |
---|
7011 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
7012 | |
---|
7013 | CONFIG_FILES = $CONFIG_FILES |
---|
7014 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
7015 | CONFIG_LINKS = $CONFIG_LINKS |
---|
7016 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
7017 | $ $0 $@ |
---|
7018 | |
---|
7019 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
7020 | " |
---|
7021 | |
---|
7022 | _ACEOF |
---|
7023 | |
---|
7024 | case $ac_config_files in *" |
---|
7025 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
7026 | esac |
---|
7027 | |
---|
7028 | case $ac_config_headers in *" |
---|
7029 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
7030 | esac |
---|
7031 | |
---|
7032 | |
---|
7033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7034 | # Files that config.status was made for. |
---|
7035 | config_files="$ac_config_files" |
---|
7036 | config_headers="$ac_config_headers" |
---|
7037 | |
---|
7038 | _ACEOF |
---|
7039 | |
---|
7040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7041 | ac_cs_usage="\ |
---|
7042 | \`$as_me' instantiates files and other configuration actions |
---|
7043 | from templates according to the current configuration. Unless the files |
---|
7044 | and actions are specified as TAGs, all are instantiated by default. |
---|
7045 | |
---|
7046 | Usage: $0 [OPTION]... [TAG]... |
---|
7047 | |
---|
7048 | -h, --help print this help, then exit |
---|
7049 | -V, --version print version number and configuration settings, then exit |
---|
7050 | --config print configuration, then exit |
---|
7051 | -q, --quiet, --silent |
---|
7052 | do not print progress messages |
---|
7053 | -d, --debug don't remove temporary files |
---|
7054 | --recheck update $as_me by reconfiguring in the same conditions |
---|
7055 | --file=FILE[:TEMPLATE] |
---|
7056 | instantiate the configuration file FILE |
---|
7057 | --header=FILE[:TEMPLATE] |
---|
7058 | instantiate the configuration header FILE |
---|
7059 | |
---|
7060 | Configuration files: |
---|
7061 | $config_files |
---|
7062 | |
---|
7063 | Configuration headers: |
---|
7064 | $config_headers |
---|
7065 | |
---|
7066 | Report bugs to <Matthew.Whiting@csiro.au>." |
---|
7067 | |
---|
7068 | _ACEOF |
---|
7069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7070 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
7071 | ac_cs_version="\\ |
---|
7072 | Duchamp config.status 1.1.11 |
---|
7073 | configured by $0, generated by GNU Autoconf 2.68, |
---|
7074 | with options \\"\$ac_cs_config\\" |
---|
7075 | |
---|
7076 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
7077 | This config.status script is free software; the Free Software Foundation |
---|
7078 | gives unlimited permission to copy, distribute and modify it." |
---|
7079 | |
---|
7080 | ac_pwd='$ac_pwd' |
---|
7081 | srcdir='$srcdir' |
---|
7082 | test -n "\$AWK" || AWK=awk |
---|
7083 | _ACEOF |
---|
7084 | |
---|
7085 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7086 | # The default lists apply if the user does not specify any file. |
---|
7087 | ac_need_defaults=: |
---|
7088 | while test $# != 0 |
---|
7089 | do |
---|
7090 | case $1 in |
---|
7091 | --*=?*) |
---|
7092 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
7093 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
7094 | ac_shift=: |
---|
7095 | ;; |
---|
7096 | --*=) |
---|
7097 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
7098 | ac_optarg= |
---|
7099 | ac_shift=: |
---|
7100 | ;; |
---|
7101 | *) |
---|
7102 | ac_option=$1 |
---|
7103 | ac_optarg=$2 |
---|
7104 | ac_shift=shift |
---|
7105 | ;; |
---|
7106 | esac |
---|
7107 | |
---|
7108 | case $ac_option in |
---|
7109 | # Handling of the options. |
---|
7110 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7111 | ac_cs_recheck=: ;; |
---|
7112 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
7113 | $as_echo "$ac_cs_version"; exit ;; |
---|
7114 | --config | --confi | --conf | --con | --co | --c ) |
---|
7115 | $as_echo "$ac_cs_config"; exit ;; |
---|
7116 | --debug | --debu | --deb | --de | --d | -d ) |
---|
7117 | debug=: ;; |
---|
7118 | --file | --fil | --fi | --f ) |
---|
7119 | $ac_shift |
---|
7120 | case $ac_optarg in |
---|
7121 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
7122 | '') as_fn_error $? "missing file argument" ;; |
---|
7123 | esac |
---|
7124 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
7125 | ac_need_defaults=false;; |
---|
7126 | --header | --heade | --head | --hea ) |
---|
7127 | $ac_shift |
---|
7128 | case $ac_optarg in |
---|
7129 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
7130 | esac |
---|
7131 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
7132 | ac_need_defaults=false;; |
---|
7133 | --he | --h) |
---|
7134 | # Conflict between --help and --header |
---|
7135 | as_fn_error $? "ambiguous option: \`$1' |
---|
7136 | Try \`$0 --help' for more information.";; |
---|
7137 | --help | --hel | -h ) |
---|
7138 | $as_echo "$ac_cs_usage"; exit ;; |
---|
7139 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
7140 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
7141 | ac_cs_silent=: ;; |
---|
7142 | |
---|
7143 | # This is an error. |
---|
7144 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
7145 | Try \`$0 --help' for more information." ;; |
---|
7146 | |
---|
7147 | *) as_fn_append ac_config_targets " $1" |
---|
7148 | ac_need_defaults=false ;; |
---|
7149 | |
---|
7150 | esac |
---|
7151 | shift |
---|
7152 | done |
---|
7153 | |
---|
7154 | ac_configure_extra_args= |
---|
7155 | |
---|
7156 | if $ac_cs_silent; then |
---|
7157 | exec 6>/dev/null |
---|
7158 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7159 | fi |
---|
7160 | |
---|
7161 | _ACEOF |
---|
7162 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7163 | if \$ac_cs_recheck; then |
---|
7164 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7165 | shift |
---|
7166 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
7167 | CONFIG_SHELL='$SHELL' |
---|
7168 | export CONFIG_SHELL |
---|
7169 | exec "\$@" |
---|
7170 | fi |
---|
7171 | |
---|
7172 | _ACEOF |
---|
7173 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7174 | exec 5>>config.log |
---|
7175 | { |
---|
7176 | echo |
---|
7177 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7178 | ## Running $as_me. ## |
---|
7179 | _ASBOX |
---|
7180 | $as_echo "$ac_log" |
---|
7181 | } >&5 |
---|
7182 | |
---|
7183 | _ACEOF |
---|
7184 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7185 | _ACEOF |
---|
7186 | |
---|
7187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7188 | |
---|
7189 | # Handling of arguments. |
---|
7190 | for ac_config_target in $ac_config_targets |
---|
7191 | do |
---|
7192 | case $ac_config_target in |
---|
7193 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
---|
7194 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7195 | |
---|
7196 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
7197 | esac |
---|
7198 | done |
---|
7199 | |
---|
7200 | |
---|
7201 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7202 | # then the envvar interface is used. Set only those that are not. |
---|
7203 | # We use the long form for the default assignment because of an extremely |
---|
7204 | # bizarre bug on SunOS 4.1.3. |
---|
7205 | if $ac_need_defaults; then |
---|
7206 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7207 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7208 | fi |
---|
7209 | |
---|
7210 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7211 | # simply because there is no reason against having it here, and in addition, |
---|
7212 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7213 | # Hook for its removal unless debugging. |
---|
7214 | # Note that there is a small window in which the directory will not be cleaned: |
---|
7215 | # after its creation but before its name has been assigned to `$tmp'. |
---|
7216 | $debug || |
---|
7217 | { |
---|
7218 | tmp= ac_tmp= |
---|
7219 | trap 'exit_status=$? |
---|
7220 | : "${ac_tmp:=$tmp}" |
---|
7221 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
7222 | ' 0 |
---|
7223 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
7224 | } |
---|
7225 | # Create a (secure) tmp directory for tmp files. |
---|
7226 | |
---|
7227 | { |
---|
7228 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
7229 | test -d "$tmp" |
---|
7230 | } || |
---|
7231 | { |
---|
7232 | tmp=./conf$$-$RANDOM |
---|
7233 | (umask 077 && mkdir "$tmp") |
---|
7234 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
7235 | ac_tmp=$tmp |
---|
7236 | |
---|
7237 | # Set up the scripts for CONFIG_FILES section. |
---|
7238 | # No need to generate them if there are no CONFIG_FILES. |
---|
7239 | # This happens for instance with `./config.status config.h'. |
---|
7240 | if test -n "$CONFIG_FILES"; then |
---|
7241 | |
---|
7242 | |
---|
7243 | ac_cr=`echo X | tr X '\015'` |
---|
7244 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
7245 | # But we know of no other shell where ac_cr would be empty at this |
---|
7246 | # point, so we can use a bashism as a fallback. |
---|
7247 | if test "x$ac_cr" = x; then |
---|
7248 | eval ac_cr=\$\'\\r\' |
---|
7249 | fi |
---|
7250 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7251 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7252 | ac_cs_awk_cr='\\r' |
---|
7253 | else |
---|
7254 | ac_cs_awk_cr=$ac_cr |
---|
7255 | fi |
---|
7256 | |
---|
7257 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
7258 | _ACEOF |
---|
7259 | |
---|
7260 | |
---|
7261 | { |
---|
7262 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7263 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7264 | echo "_ACEOF" |
---|
7265 | } >conf$$subs.sh || |
---|
7266 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7267 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
7268 | ac_delim='%!_!# ' |
---|
7269 | for ac_last_try in false false false false false :; do |
---|
7270 | . ./conf$$subs.sh || |
---|
7271 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7272 | |
---|
7273 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7274 | if test $ac_delim_n = $ac_delim_num; then |
---|
7275 | break |
---|
7276 | elif $ac_last_try; then |
---|
7277 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7278 | else |
---|
7279 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7280 | fi |
---|
7281 | done |
---|
7282 | rm -f conf$$subs.sh |
---|
7283 | |
---|
7284 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7285 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
7286 | _ACEOF |
---|
7287 | sed -n ' |
---|
7288 | h |
---|
7289 | s/^/S["/; s/!.*/"]=/ |
---|
7290 | p |
---|
7291 | g |
---|
7292 | s/^[^!]*!// |
---|
7293 | :repl |
---|
7294 | t repl |
---|
7295 | s/'"$ac_delim"'$// |
---|
7296 | t delim |
---|
7297 | :nl |
---|
7298 | h |
---|
7299 | s/\(.\{148\}\)..*/\1/ |
---|
7300 | t more1 |
---|
7301 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7302 | p |
---|
7303 | n |
---|
7304 | b repl |
---|
7305 | :more1 |
---|
7306 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7307 | p |
---|
7308 | g |
---|
7309 | s/.\{148\}// |
---|
7310 | t nl |
---|
7311 | :delim |
---|
7312 | h |
---|
7313 | s/\(.\{148\}\)..*/\1/ |
---|
7314 | t more2 |
---|
7315 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7316 | p |
---|
7317 | b |
---|
7318 | :more2 |
---|
7319 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7320 | p |
---|
7321 | g |
---|
7322 | s/.\{148\}// |
---|
7323 | t delim |
---|
7324 | ' <conf$$subs.awk | sed ' |
---|
7325 | /^[^""]/{ |
---|
7326 | N |
---|
7327 | s/\n// |
---|
7328 | } |
---|
7329 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7330 | rm -f conf$$subs.awk |
---|
7331 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7332 | _ACAWK |
---|
7333 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
7334 | for (key in S) S_is_set[key] = 1 |
---|
7335 | FS = "" |
---|
7336 | |
---|
7337 | } |
---|
7338 | { |
---|
7339 | line = $ 0 |
---|
7340 | nfields = split(line, field, "@") |
---|
7341 | substed = 0 |
---|
7342 | len = length(field[1]) |
---|
7343 | for (i = 2; i < nfields; i++) { |
---|
7344 | key = field[i] |
---|
7345 | keylen = length(key) |
---|
7346 | if (S_is_set[key]) { |
---|
7347 | value = S[key] |
---|
7348 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7349 | len += length(value) + length(field[++i]) |
---|
7350 | substed = 1 |
---|
7351 | } else |
---|
7352 | len += 1 + keylen |
---|
7353 | } |
---|
7354 | |
---|
7355 | print line |
---|
7356 | } |
---|
7357 | |
---|
7358 | _ACAWK |
---|
7359 | _ACEOF |
---|
7360 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7361 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7362 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7363 | else |
---|
7364 | cat |
---|
7365 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
7366 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
7367 | _ACEOF |
---|
7368 | |
---|
7369 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
7370 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
7371 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7372 | # (actually we leave an empty line to preserve line numbers). |
---|
7373 | if test "x$srcdir" = x.; then |
---|
7374 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
7375 | h |
---|
7376 | s/// |
---|
7377 | s/^/:/ |
---|
7378 | s/[ ]*$/:/ |
---|
7379 | s/:\$(srcdir):/:/g |
---|
7380 | s/:\${srcdir}:/:/g |
---|
7381 | s/:@srcdir@:/:/g |
---|
7382 | s/^:*// |
---|
7383 | s/:*$// |
---|
7384 | x |
---|
7385 | s/\(=[ ]*\).*/\1/ |
---|
7386 | G |
---|
7387 | s/\n// |
---|
7388 | s/^[^=]*=[ ]*$// |
---|
7389 | }' |
---|
7390 | fi |
---|
7391 | |
---|
7392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7393 | fi # test -n "$CONFIG_FILES" |
---|
7394 | |
---|
7395 | # Set up the scripts for CONFIG_HEADERS section. |
---|
7396 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
7397 | # This happens for instance with `./config.status Makefile'. |
---|
7398 | if test -n "$CONFIG_HEADERS"; then |
---|
7399 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
7400 | BEGIN { |
---|
7401 | _ACEOF |
---|
7402 | |
---|
7403 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
7404 | # here-document in config.status, that substitutes the proper values into |
---|
7405 | # config.h.in to produce config.h. |
---|
7406 | |
---|
7407 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
7408 | # handling of long lines. |
---|
7409 | ac_delim='%!_!# ' |
---|
7410 | for ac_last_try in false false :; do |
---|
7411 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
7412 | if test -z "$ac_tt"; then |
---|
7413 | break |
---|
7414 | elif $ac_last_try; then |
---|
7415 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
7416 | else |
---|
7417 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7418 | fi |
---|
7419 | done |
---|
7420 | |
---|
7421 | # For the awk script, D is an array of macro values keyed by name, |
---|
7422 | # likewise P contains macro parameters if any. Preserve backslash |
---|
7423 | # newline sequences. |
---|
7424 | |
---|
7425 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
7426 | sed -n ' |
---|
7427 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7428 | t rset |
---|
7429 | :rset |
---|
7430 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
7431 | t def |
---|
7432 | d |
---|
7433 | :def |
---|
7434 | s/\\$// |
---|
7435 | t bsnl |
---|
7436 | s/["\\]/\\&/g |
---|
7437 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7438 | D["\1"]=" \3"/p |
---|
7439 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
7440 | d |
---|
7441 | :bsnl |
---|
7442 | s/["\\]/\\&/g |
---|
7443 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7444 | D["\1"]=" \3\\\\\\n"\\/p |
---|
7445 | t cont |
---|
7446 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
7447 | t cont |
---|
7448 | d |
---|
7449 | :cont |
---|
7450 | n |
---|
7451 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7452 | t clear |
---|
7453 | :clear |
---|
7454 | s/\\$// |
---|
7455 | t bsnlc |
---|
7456 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
7457 | d |
---|
7458 | :bsnlc |
---|
7459 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
7460 | b cont |
---|
7461 | ' <confdefs.h | sed ' |
---|
7462 | s/'"$ac_delim"'/"\\\ |
---|
7463 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7464 | |
---|
7465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7466 | for (key in D) D_is_set[key] = 1 |
---|
7467 | FS = "" |
---|
7468 | } |
---|
7469 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
7470 | line = \$ 0 |
---|
7471 | split(line, arg, " ") |
---|
7472 | if (arg[1] == "#") { |
---|
7473 | defundef = arg[2] |
---|
7474 | mac1 = arg[3] |
---|
7475 | } else { |
---|
7476 | defundef = substr(arg[1], 2) |
---|
7477 | mac1 = arg[2] |
---|
7478 | } |
---|
7479 | split(mac1, mac2, "(") #) |
---|
7480 | macro = mac2[1] |
---|
7481 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
7482 | if (D_is_set[macro]) { |
---|
7483 | # Preserve the white space surrounding the "#". |
---|
7484 | print prefix "define", macro P[macro] D[macro] |
---|
7485 | next |
---|
7486 | } else { |
---|
7487 | # Replace #undef with comments. This is necessary, for example, |
---|
7488 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
7489 | # on some systems where configure will not decide to define it. |
---|
7490 | if (defundef == "undef") { |
---|
7491 | print "/*", prefix defundef, macro, "*/" |
---|
7492 | next |
---|
7493 | } |
---|
7494 | } |
---|
7495 | } |
---|
7496 | { print } |
---|
7497 | _ACAWK |
---|
7498 | _ACEOF |
---|
7499 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7500 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
7501 | fi # test -n "$CONFIG_HEADERS" |
---|
7502 | |
---|
7503 | |
---|
7504 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
7505 | shift |
---|
7506 | for ac_tag |
---|
7507 | do |
---|
7508 | case $ac_tag in |
---|
7509 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7510 | esac |
---|
7511 | case $ac_mode$ac_tag in |
---|
7512 | :[FHL]*:*);; |
---|
7513 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
7514 | :[FH]-) ac_tag=-:-;; |
---|
7515 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7516 | esac |
---|
7517 | ac_save_IFS=$IFS |
---|
7518 | IFS=: |
---|
7519 | set x $ac_tag |
---|
7520 | IFS=$ac_save_IFS |
---|
7521 | shift |
---|
7522 | ac_file=$1 |
---|
7523 | shift |
---|
7524 | |
---|
7525 | case $ac_mode in |
---|
7526 | :L) ac_source=$1;; |
---|
7527 | :[FH]) |
---|
7528 | ac_file_inputs= |
---|
7529 | for ac_f |
---|
7530 | do |
---|
7531 | case $ac_f in |
---|
7532 | -) ac_f="$ac_tmp/stdin";; |
---|
7533 | *) # Look for the file first in the build tree, then in the source tree |
---|
7534 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7535 | # because $ac_f cannot contain `:'. |
---|
7536 | test -f "$ac_f" || |
---|
7537 | case $ac_f in |
---|
7538 | [\\/$]*) false;; |
---|
7539 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7540 | esac || |
---|
7541 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
7542 | esac |
---|
7543 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7544 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
7545 | done |
---|
7546 | |
---|
7547 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7548 | # use $as_me), people would be surprised to read: |
---|
7549 | # /* config.h. Generated by config.status. */ |
---|
7550 | configure_input='Generated from '` |
---|
7551 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7552 | `' by configure.' |
---|
7553 | if test x"$ac_file" != x-; then |
---|
7554 | configure_input="$ac_file. $configure_input" |
---|
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
7556 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7557 | fi |
---|
7558 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7559 | case $configure_input in #( |
---|
7560 | *\&* | *\|* | *\\* ) |
---|
7561 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7562 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7563 | *) ac_sed_conf_input=$configure_input;; |
---|
7564 | esac |
---|
7565 | |
---|
7566 | case $ac_tag in |
---|
7567 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
7568 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
7569 | esac |
---|
7570 | ;; |
---|
7571 | esac |
---|
7572 | |
---|
7573 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7574 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7575 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7576 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7577 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7578 | $as_echo X"$ac_file" | |
---|
7579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7580 | s//\1/ |
---|
7581 | q |
---|
7582 | } |
---|
7583 | /^X\(\/\/\)[^/].*/{ |
---|
7584 | s//\1/ |
---|
7585 | q |
---|
7586 | } |
---|
7587 | /^X\(\/\/\)$/{ |
---|
7588 | s//\1/ |
---|
7589 | q |
---|
7590 | } |
---|
7591 | /^X\(\/\).*/{ |
---|
7592 | s//\1/ |
---|
7593 | q |
---|
7594 | } |
---|
7595 | s/.*/./; q'` |
---|
7596 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
7597 | ac_builddir=. |
---|
7598 | |
---|
7599 | case "$ac_dir" in |
---|
7600 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7601 | *) |
---|
7602 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7603 | # A ".." for each directory in $ac_dir_suffix. |
---|
7604 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7605 | case $ac_top_builddir_sub in |
---|
7606 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7607 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7608 | esac ;; |
---|
7609 | esac |
---|
7610 | ac_abs_top_builddir=$ac_pwd |
---|
7611 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7612 | # for backward compatibility: |
---|
7613 | ac_top_builddir=$ac_top_build_prefix |
---|
7614 | |
---|
7615 | case $srcdir in |
---|
7616 | .) # We are building in place. |
---|
7617 | ac_srcdir=. |
---|
7618 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7619 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7620 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7621 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7622 | ac_top_srcdir=$srcdir |
---|
7623 | ac_abs_top_srcdir=$srcdir ;; |
---|
7624 | *) # Relative name. |
---|
7625 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7626 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7627 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7628 | esac |
---|
7629 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7630 | |
---|
7631 | |
---|
7632 | case $ac_mode in |
---|
7633 | :F) |
---|
7634 | # |
---|
7635 | # CONFIG_FILE |
---|
7636 | # |
---|
7637 | |
---|
7638 | _ACEOF |
---|
7639 | |
---|
7640 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7641 | # If the template does not know about datarootdir, expand it. |
---|
7642 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7643 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7644 | ac_sed_dataroot=' |
---|
7645 | /datarootdir/ { |
---|
7646 | p |
---|
7647 | q |
---|
7648 | } |
---|
7649 | /@datadir@/p |
---|
7650 | /@docdir@/p |
---|
7651 | /@infodir@/p |
---|
7652 | /@localedir@/p |
---|
7653 | /@mandir@/p' |
---|
7654 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7655 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7656 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7658 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7659 | _ACEOF |
---|
7660 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7661 | ac_datarootdir_hack=' |
---|
7662 | s&@datadir@&$datadir&g |
---|
7663 | s&@docdir@&$docdir&g |
---|
7664 | s&@infodir@&$infodir&g |
---|
7665 | s&@localedir@&$localedir&g |
---|
7666 | s&@mandir@&$mandir&g |
---|
7667 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7668 | esac |
---|
7669 | _ACEOF |
---|
7670 | |
---|
7671 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7672 | # Shell code in configure.ac might set extrasub. |
---|
7673 | # FIXME: do we really want to maintain this feature? |
---|
7674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7675 | ac_sed_extra="$ac_vpsub |
---|
7676 | $extrasub |
---|
7677 | _ACEOF |
---|
7678 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7679 | :t |
---|
7680 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7681 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7682 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7683 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7684 | s&@srcdir@&$ac_srcdir&;t t |
---|
7685 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7686 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7687 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7688 | s&@builddir@&$ac_builddir&;t t |
---|
7689 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7690 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7691 | $ac_datarootdir_hack |
---|
7692 | " |
---|
7693 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7694 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7695 | |
---|
7696 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7697 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7698 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7699 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7701 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7702 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7703 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7704 | |
---|
7705 | rm -f "$ac_tmp/stdin" |
---|
7706 | case $ac_file in |
---|
7707 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7708 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7709 | esac \ |
---|
7710 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7711 | ;; |
---|
7712 | :H) |
---|
7713 | # |
---|
7714 | # CONFIG_HEADER |
---|
7715 | # |
---|
7716 | if test x"$ac_file" != x-; then |
---|
7717 | { |
---|
7718 | $as_echo "/* $configure_input */" \ |
---|
7719 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
7720 | } >"$ac_tmp/config.h" \ |
---|
7721 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7722 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
7724 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7725 | else |
---|
7726 | rm -f "$ac_file" |
---|
7727 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
7728 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7729 | fi |
---|
7730 | else |
---|
7731 | $as_echo "/* $configure_input */" \ |
---|
7732 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
7733 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
7734 | fi |
---|
7735 | ;; |
---|
7736 | |
---|
7737 | |
---|
7738 | esac |
---|
7739 | |
---|
7740 | done # for ac_tag |
---|
7741 | |
---|
7742 | |
---|
7743 | as_fn_exit 0 |
---|
7744 | _ACEOF |
---|
7745 | ac_clean_files=$ac_clean_files_save |
---|
7746 | |
---|
7747 | test $ac_write_fail = 0 || |
---|
7748 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7749 | |
---|
7750 | |
---|
7751 | # configure is writing to config.log, and then calls config.status. |
---|
7752 | # config.status does its own redirection, appending to config.log. |
---|
7753 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7754 | # by configure, so config.status won't be able to write to it; its |
---|
7755 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7756 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7757 | # appended to by config.status. When coming back to configure, we |
---|
7758 | # need to make the FD available again. |
---|
7759 | if test "$no_create" != yes; then |
---|
7760 | ac_cs_success=: |
---|
7761 | ac_config_status_args= |
---|
7762 | test "$silent" = yes && |
---|
7763 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7764 | exec 5>/dev/null |
---|
7765 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7766 | exec 5>>config.log |
---|
7767 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7768 | # would make configure fail if this is the last instruction. |
---|
7769 | $ac_cs_success || as_fn_exit 1 |
---|
7770 | fi |
---|
7771 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7773 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7774 | fi |
---|
7775 | |
---|